/* ==========================================================================
   DAVID THORPE — ABYSS TO ORBIT (VERTICAL SCROLLYTELLING CV)
   Ascending from Ocean Bed (-3,800m) to Infinite Space (+420km)
   ========================================================================== */

:root {
  --font-hero: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-heading: 'Space Grotesk', sans-serif;

  /* Theme Biome Accents */
  --accent-abyss: #00f0ff;
  --accent-reef: #06b6d4;
  --accent-island: #ffb703;
  --accent-sky: #38bdf8;
  --accent-space: #d946ef;
  
  --primary-cyan: #00f0ff;
  --primary-blue: #0284c7;
  --accent-green: #10b981;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Glassmorphism */
  --glass-bg: rgba(7, 12, 24, 0.76);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-blur: blur(20px);
  --glass-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(0, 240, 255, 0.06);

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: #030712;
}

body {
  width: 100%;
  min-height: 100%;
  background-color: #030712;
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at center, #0f172a 0%, #030712 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  max-width: 460px;
  padding: 2rem;
}

.loader-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--primary-cyan);
  margin-bottom: 1.5rem;
}

.pulsing-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--primary-cyan);
  animation: pulseDot 1.4s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
}

.loader-name {
  font-family: var(--font-hero);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.loader-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.loader-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.loader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00f0ff, #ffb703, #d946ef);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px #00f0ff;
}

.loader-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   TOP BAR HUD & LIVE ALTIMETER
   ========================================================================== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 46px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.85) 0%, rgba(3, 7, 18, 0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Central Altimeter Readout - Sleek & Compact */
.header-altimeter {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

.alt-zone-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.15);
  color: var(--primary-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  transition: all var(--transition-fast);
}

.alt-readout {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.alt-value {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  line-height: 1.15;
  white-space: nowrap;
}

.alt-label {
  font-family: var(--font-heading);
  font-size: 0.54rem;
  font-weight: 700;
  color: var(--primary-cyan);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.hud-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--glass-border);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-primary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hud-pill-btn:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: var(--primary-cyan);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
}

/* ==========================================================================
   FIXED SEAMLESS PANORAMA BACKDROP VIEWPORT (ONE CONTINUOUS VERTICAL IMAGE)
   ========================================================================== */
.parallax-backdrop-viewport {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.seamless-panorama-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.seamless-panorama-img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  width: 100%;
  min-width: 1920px;
  height: auto;
  will-change: transform;
  filter: brightness(0.92) contrast(1.04);
  transition: transform 0.08s linear;
}

.fx-abyss {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.fx-caustics {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.fx-cosmos {
  opacity: 1;
  transition: opacity 0.4s ease;
}

.fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.global-screen-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 65%, rgba(0, 0, 0, 0.55) 100%);
  z-index: 50;
}

.crt-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.12) 50%);
  background-size: 100% 4px;
  opacity: 0.12;
  z-index: 51;
}

/* ==========================================================================
   SCROLLABLE CONTENT SECTIONS STREAM
   ========================================================================== */
.scroll-stream {
  position: relative;
  z-index: 10;
  width: 100%;
}

.ascent-section {
  min-height: 160vh;
  margin-bottom: 95vh;
  padding: 0 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
}

.ascent-section:last-child {
  margin-bottom: 0;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
}

.ascent-section:last-child .section-container {
  position: relative;
  top: auto;
  transform: none;
}

.section-container {
  position: -webkit-sticky;
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  will-change: transform;
}

@media (max-height: 680px) {
  .ascent-section {
    min-height: 100vh;
    padding: 90px 1.2rem 70px 1.2rem;
    align-items: center;
  }
  .section-container {
    position: relative;
    top: auto;
    transform: none;
  }
}

/* Glass Dossier Cards - Compact & High-Translucency */
.glass-dossier-card {
  background: rgba(6, 12, 24, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 18px;
  padding: 1.25rem 1.6rem;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-dossier-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

/* STAGE 1: HERO DOSSIER */
.hero-split {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 1.2rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.hero-name {
  font-family: var(--font-hero);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  background: linear-gradient(135deg, #ffffff 40%, #bae6fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.2rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-cyan);
  margin-bottom: 0.15rem;
}

.hero-subdomain {
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

.hero-quote {
  font-size: 0.80rem;
  line-height: 1.4;
  color: #e2e8f0;
  font-style: italic;
  border-left: 2px solid var(--primary-cyan);
  padding: 0.4rem 0.75rem;
  background: rgba(0, 240, 255, 0.04);
  border-radius: 0 6px 6px 0;
  margin-bottom: 0.8rem;
}

.section-narrative {
  font-size: 0.76rem;
  color: #cbd5e1;
  line-height: 1.42;
}

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

.metric-badge-box {
  background: rgba(12, 20, 36, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-fast);
}

.metric-badge-box:hover {
  background: rgba(22, 34, 54, 0.9);
  border-color: var(--primary-cyan);
  transform: translateX(3px);
}

.metric-num {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  min-width: 65px;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.card-footer-action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.9rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.74rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.chip-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--primary-cyan);
  color: #ffffff;
}

.chip-btn.download-cv-btn {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.35);
  color: #ffffff;
  font-weight: 600;
}

.chip-btn.download-cv-btn:hover {
  background: rgba(0, 240, 255, 0.28);
  border-color: var(--primary-cyan);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
}

/* SECTION TITLES */
.section-title {
  font-family: var(--font-hero);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 0.15rem;
}

.section-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
  max-width: 650px;
  line-height: 1.4;
}

/* STAGE 2: SKILLS QUADRANT */
.skills-quadrant-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 0.8rem;
}

.skill-quadrant {
  background: rgba(10, 18, 34, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  transition: all var(--transition-smooth);
}

.skill-quadrant:hover {
  border-color: #22d3ee;
  background: rgba(18, 30, 52, 0.9);
  transform: translateY(-2px);
}

.quad-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.45rem;
}

.quad-icon {
  font-size: 0.95rem;
}
.quad-icon.cyan { color: #00f0ff; }
.quad-icon.blue { color: #38bdf8; }
.quad-icon.magenta { color: #e879f9; }
.quad-icon.gold { color: #fbbf24; }

.quad-head h3 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
}

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

.skill-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.68rem;
  color: #cbd5e1;
  line-height: 1.25;
}

.skill-checklist li i {
  color: #22d3ee;
  font-size: 0.62rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* STAGE 3: TIMELINE DOSSIER */
.timeline-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.t-tab {
  flex: 1;
  min-width: 140px;
  padding: 6px 10px;
  background: rgba(10, 18, 34, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-primary);
}

.t-tab:hover {
  background: rgba(22, 34, 54, 0.9);
  border-color: rgba(255, 183, 3, 0.5);
}

.t-tab.active {
  background: rgba(255, 183, 3, 0.15);
  border-color: #ffb703;
  box-shadow: 0 0 14px rgba(255, 183, 3, 0.2);
}

.tab-period {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.60rem;
  color: #ffb703;
  font-weight: 700;
}

.tab-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  color: #ffffff;
}

.timeline-body-box {
  background: rgba(10, 18, 34, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
}

.role-article {
  display: none;
}

.role-article.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.role-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.role-dept {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #ffb703;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.role-status-pill {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #cbd5e1;
}

.role-status-pill.current {
  background: rgba(255, 183, 3, 0.15);
  border-color: #ffb703;
  color: #ffb703;
  font-weight: 700;
}

.role-intro {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.role-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mini-card {
  display: flex;
  gap: 12px;
  background: rgba(10, 15, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1rem;
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.card-icon.gold { background: rgba(255, 183, 3, 0.15); color: #ffb703; }
.card-icon.cyan { background: rgba(0, 240, 255, 0.15); color: #00f0ff; }
.card-icon.magenta { background: rgba(217, 70, 239, 0.15); color: #e879f9; }

.card-details strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.card-details p {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* STAGE 4: SKY LEADERSHIP PILLARS */
.leadership-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 0.9rem;
}

.pillar-card {
  background: rgba(10, 18, 34, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.pillar-card:hover {
  background: rgba(18, 30, 52, 0.9);
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.15);
}

.pillar-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.pillar-card h3 {
  font-family: var(--font-hero);
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.pillar-card p {
  font-size: 0.74rem;
  color: #cbd5e1;
  line-height: 1.38;
  flex: 1;
  margin-bottom: 0.6rem;
}

.pillar-metric {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  font-weight: 700;
  color: #38bdf8;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* STAGE 5: SPACE & ORBIT */
.cosmic-title {
  background: linear-gradient(135deg, #ffffff 40%, #e879f9 70%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.space-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.space-box {
  background: rgba(10, 18, 34, 0.75);
  border: 1px solid rgba(217, 70, 239, 0.25);
  border-radius: 14px;
  padding: 1rem 1.2rem;
}

.box-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.60rem;
  color: #e879f9;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.space-box h3 {
  font-family: var(--font-hero);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.8rem;
}

.credentials-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cred-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 15, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 6px 10px;
}

.cred-year {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #00f0ff;
  padding: 2px 6px;
  background: rgba(0, 240, 255, 0.12);
  border-radius: 4px;
}

.cred-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  color: #ffffff;
}

.cred-text span {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.contact-launchpad p {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin-bottom: 1.4rem;
}

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

.launch-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.launch-btn.primary-btn {
  background: linear-gradient(135deg, #00f0ff, #0284c7);
  color: #030712;
  font-weight: 700;
  border: none;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
}

.launch-btn.primary-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

.launch-btn.secondary-btn {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.launch-btn.secondary-btn:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: #00f0ff;
  color: #00f0ff;
}

.launch-btn.download-btn {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.22), rgba(6, 182, 212, 0.22));
  border: 1px solid rgba(0, 240, 255, 0.45);
  color: #ffffff;
  text-decoration: none;
}

.launch-btn.download-btn:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.38), rgba(6, 182, 212, 0.38));
  border-color: #00f0ff;
  color: #00f0ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.3);
}

/* ==========================================================================
   EXECUTIVE DOSSIER / FULL RESUME MODAL
   ========================================================================== */
.dossier-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.dossier-modal.open {
  opacity: 1;
  visibility: visible;
}

.dossier-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
}

.dossier-sheet {
  position: relative;
  width: 100%;
  max-width: 860px;
  height: 100%;
  background: #0b0f19;
  border-left: 1px solid var(--glass-border);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.dossier-modal.open .dossier-sheet {
  transform: translateX(0);
}

.dossier-header {
  padding: 1.4rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.85);
}

.dossier-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--primary-cyan);
  letter-spacing: 0.1em;
}

.dossier-title-wrap h2 {
  font-family: var(--font-hero);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}

.dossier-title-wrap p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.dossier-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dossier-action-btn {
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dossier-action-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--primary-cyan);
}

.dossier-body {
  padding: 2.2rem;
  overflow-y: auto;
  flex: 1;
  background: #0f1422;
  color: #e2e8f0;
  line-height: 1.6;
}

.cv-header {
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 1.4rem;
  margin-bottom: 1.8rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cv-name-role h1 {
  font-family: var(--font-hero);
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.cv-name-role h2 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--primary-cyan);
  margin-bottom: 8px;
}

.cv-tagline {
  font-size: 0.82rem;
  font-style: italic;
  color: #94a3b8;
  max-width: 500px;
}

.cv-contact-box {
  font-size: 0.8rem;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cv-contact-box a {
  color: var(--primary-cyan);
  text-decoration: none;
}

.cv-section {
  margin-bottom: 1.8rem;
}

.cv-sec-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 5px;
  margin-bottom: 0.9rem;
}

.cv-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.cv-grid-2 h4 {
  font-size: 0.88rem;
  color: var(--primary-cyan);
  margin-bottom: 4px;
}

.cv-grid-2 p {
  font-size: 0.8rem;
  color: #cbd5e1;
}

.cv-bullet-list {
  list-style-type: disc;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cv-bullet-list li {
  font-size: 0.82rem;
  color: #cbd5e1;
}

.cv-bullet-list strong {
  color: #ffffff;
}

.cv-job {
  margin-bottom: 1.4rem;
}

.cv-job-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.cv-job-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.cv-job-company {
  font-size: 0.8rem;
  color: var(--accent-island);
}

.cv-job-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   PRINT STYLES FOR RECRUITERS
   ========================================================================== */
@media print {
  body * {
    visibility: hidden;
  }
  #dossierModal, #dossierModal * {
    visibility: visible;
  }
  #dossierModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    background: #ffffff !important;
    color: #000000 !important;
  }
  .dossier-sheet {
    max-width: 100%;
    transform: none !important;
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
    border: none !important;
  }
  .dossier-header, .dossier-backdrop {
    display: none !important;
  }
  .dossier-body {
    background: #ffffff !important;
    color: #111827 !important;
    padding: 0 !important;
  }
  .cv-name-role h1 { color: #000000 !important; }
  .cv-name-role h2 { color: #1e40af !important; }
  .cv-sec-title { color: #1e40af !important; border-bottom-color: #cbd5e1 !important; }
  .cv-bullet-list li, .cv-job-date, .cv-contact-box, .cv-grid-2 p { color: #374151 !important; }
  .cv-job-title, .cv-bullet-list strong { color: #000000 !important; }
}

/* ==========================================================================
   RESPONSIVE LAYOUT (TABLETS & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .skills-quadrant-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .leadership-pillars-grid {
    grid-template-columns: 1fr;
  }
  .role-cards-grid {
    grid-template-columns: 1fr;
  }
  .space-split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar {
    padding: 0 1rem;
    height: 42px;
  }
  #soundLabel {
    display: none;
  }
  .header-altimeter {
    padding: 4px 10px;
  }
  .alt-label {
    display: none;
  }
  .alt-value {
    font-size: 0.8rem;
  }
  .hud-pill-btn {
    padding: 5px 10px;
    font-size: 0.72rem;
  }
  .hero-name {
    font-size: 2.2rem;
  }
  .hero-title {
    font-size: 1.1rem;
  }
  .glass-dossier-card {
    padding: 1.5rem;
    border-radius: 18px;
  }
  .skills-quadrant-grid {
    grid-template-columns: 1fr;
  }
  .timeline-tabs {
    flex-direction: column;
  }
  .ascent-section {
    padding: 100px 1rem 60px 1rem;
  }
  .cv-grid-2 {
    grid-template-columns: 1fr;
  }
}
