/* ==========================================================================
   DUŠAN MILOSAVLJEVIĆ — AURA EXPEDITION PORTFOLIO
   Design System based on: https://dusancar-sudo.github.io/aura-website/
   Palette: #0b0f14 (Dark Obsidian), #e8eef4 (Ink White), #6ee7c8 (Aura Mint), #7aa5f8 (Electric Sky)
   ========================================================================== */

:root {
  /* Aura Color Palette */
  --bg: #0b0f14;
  --bg-primary: #0b0f14;
  --bg-secondary: #0e141c;
  --bg-surface: rgba(255, 255, 255, 0.035);
  --bg-surface-hover: rgba(110, 231, 200, 0.05);
  
  /* Text & Hierarchy */
  --ink: #e8eef4;
  --text-pure: #ffffff;
  --text-main: #e8eef4;
  --text-muted: #8fa3b5;
  --text-dim: #64748b;
  --muted: #8fa3b5;
  
  /* Accents */
  --accent: #6ee7c8;
  --accent-gold: #6ee7c8;
  --accent-glow: rgba(110, 231, 200, 0.4);
  --accent-gold-glow: rgba(110, 231, 200, 0.35);
  --accent2: #7aa5f8;
  --accent-cyan: #7aa5f8;
  --gold: #e5b364;
  --text-gold: #e5b364;
  --accent-clay: #e5b364;
  
  /* Glass Surfaces */
  --surface-glass: rgba(11, 15, 20, 0.88);
  --surface-glass-border: rgba(255, 255, 255, 0.08);
  --surface-glass-hover: rgba(16, 24, 34, 0.95);
  
  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-highlight: rgba(110, 231, 200, 0.4);
  
  /* Typography */
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-elevation-1: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-elevation-2: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 25px rgba(110, 231, 200, 0.1);
  --shadow-glow: 0 0 25px rgba(110, 231, 200, 0.35);
  
  /* Layout */
  --container-max: 1280px;
  --container-narrow: 920px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg);
  font-family: var(--font-sans);
}

body {
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
  background: var(--accent);
  color: #0b0f14;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-glass-border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   CANVAS & ATMOSPHERIC OVERLAYS
   -------------------------------------------------------------------------- */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  background: var(--bg);
  transition: opacity 0.5s ease;
}

#webgl-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.vignette-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 40%, rgba(11, 15, 20, 0.4) 75%, rgba(11, 15, 20, 0.85) 100%);
  will-change: transform;
  contain: strict;
}

.mountain-mist-layer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 40vh;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, var(--bg) 15%, rgba(11, 15, 20, 0.7) 50%, transparent);
  will-change: transform;
  contain: strict;
}

/* --------------------------------------------------------------------------
   NAVIGATION BAR
   -------------------------------------------------------------------------- */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  background: rgba(11, 15, 20, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-icon-svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}

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

@media (max-width: 900px) {
  .nav-center-links {
    display: none;
  }
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.25s ease;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--ink);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
  box-shadow: 0 0 8px var(--accent-glow);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hud-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.hud-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 16px rgba(110, 231, 200, 0.25);
  transform: translateY(-1px);
}

.hud-btn.primary {
  background: rgba(110, 231, 200, 0.12);
  border-color: rgba(110, 231, 200, 0.4);
  color: var(--accent);
}

.hud-btn.primary:hover {
  background: var(--accent);
  color: #0b0f14;
  box-shadow: 0 0 25px var(--accent-glow);
}

/* --------------------------------------------------------------------------
   HUD SATELLITE & ALTIMETER CONTROLS
   -------------------------------------------------------------------------- */
.hud-altimeter-panel {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-elevation-2);
  min-width: 210px;
}

.hud-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.hud-radar-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse-beacon 1.8s infinite;
}

.hud-alt-value-group {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.hud-alt-value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.hud-alt-unit {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.hud-summit-target {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-sans);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.hud-elevation-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.hud-elevation-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.1s linear;
}

/* Summit Waypoint HUD Quick Navigator (Right Side) */
.hud-summit-radar {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 14px 10px;
  box-shadow: var(--shadow-elevation-2);
}

@media (max-width: 768px) {
  .hud-summit-radar, .hud-altimeter-panel {
    display: none;
  }
}

.radar-node {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.radar-node:hover, .radar-node.active {
  background: var(--bg-surface-hover);
  border-color: var(--border-subtle);
  color: var(--accent);
}

.radar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.radar-node:hover .radar-dot, .radar-node.active .radar-dot {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transform: scale(1.3);
}

.radar-node-info {
  display: flex;
  flex-direction: column;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.hud-summit-radar:hover .radar-node-info {
  opacity: 1;
  max-width: 140px;
}

.radar-node-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.radar-node-alt {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--accent);
}

/* Environment / Audio HUD Switcher (Bottom Right) */
.hud-env-controls {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  box-shadow: var(--shadow-elevation-2);
}

.env-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.env-btn:hover, .env-btn.active {
  background: var(--bg-surface-hover);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   MAIN SCROLL CONTENT ARCHITECTURE
   -------------------------------------------------------------------------- */
main {
  position: relative;
  z-index: 10;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* --------------------------------------------------------------------------
   HERO SECTION (High Alpine Vista & Flagship Glass Tile)
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 140px 0 100px;
}

.hero-glass-tile {
  background: rgba(11, 15, 20, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow-elevation-2);
  position: relative;
  overflow: hidden;
  max-width: 920px;
}

.hero-glass-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(110, 231, 200, 0.1);
  border: 1px solid rgba(110, 231, 200, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  width: fit-content;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.hero-badge-text {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 6.2vw, 76px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
  font-family: var(--font-serif);
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  color: #cfdce8;
  max-width: 760px;
  margin-bottom: 30px;
  line-height: 1.65;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-highlight {
  color: var(--ink);
  font-weight: 600;
}

.hero-motto {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--accent2);
  border-left: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 36px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.scroll-indicator-wrap {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
  background: rgba(11, 15, 20, 0.75);
  backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.scroll-indicator-wrap:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.scroll-mouse-icon {
  width: 20px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}

.scroll-wheel-dot {
  width: 3px;
  height: 6px;
  background: var(--accent);
  border-radius: 2px;
  animation: scroll-wheel-anim 2s infinite ease-in-out;
}

.scroll-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   THE EXPEDITION JOURNEY — 3D SCROLL PEAK SECTIONS (GLASS TILES)
   -------------------------------------------------------------------------- */
.expedition-track {
  position: relative;
  padding: 60px 0;
}

.peak-checkpoint-section {
  min-height: 120vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0;
}

.peak-checkpoint-section:nth-child(even) .summit-card-wrapper {
  margin-left: auto;
  margin-right: 0;
}

.peak-checkpoint-section:nth-child(odd) .summit-card-wrapper {
  margin-right: auto;
  margin-left: 0;
}

@media (max-width: 992px) {
  .peak-checkpoint-section:nth-child(even) .summit-card-wrapper,
  .peak-checkpoint-section:nth-child(odd) .summit-card-wrapper {
    margin: 0 auto;
  }
}

.summit-card-wrapper {
  max-width: 620px;
  width: 100%;
  position: relative;
  z-index: 20;
}

.summit-card {
  background: rgba(11, 15, 20, 0.95);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-elevation-2);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.summit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.8;
}

.summit-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(110, 231, 200, 0.15);
}

.summit-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.summit-altitude-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(110, 231, 200, 0.12);
  border: 1px solid rgba(110, 231, 200, 0.35);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.summit-index-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.15em;
}

.summit-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 12px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.summit-tagline {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.summit-description {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.summit-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.metric-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  transition: background 0.2s, border-color 0.2s;
}

.metric-box:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent);
}

.metric-number {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
}

.metric-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summit-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-surface);
  color: var(--ink);
  border: 1px solid var(--border-subtle);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
}

.summit-action-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   INTERACTIVE ARCHITECTURE TERMINAL & PROJECT SPOTLIGHT (DARK GLASS TILES)
   -------------------------------------------------------------------------- */
.project-deepdive-section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin: 0 auto 55px auto;
  max-width: 840px;
  background: linear-gradient(145deg, rgba(10, 15, 22, 0.96), rgba(6, 10, 16, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 36px 44px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
  position: relative;
  z-index: 2;
}

.section-eyebrow, .kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
  font-weight: 600;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.2vw, 54px);
  color: var(--ink);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
  margin-bottom: 14px;
  line-height: 1.15;
}

.section-desc {
  font-size: 16px;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.65;
}

.terminal-container {
  background: #04070b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.terminal-header {
  background: #080d14;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
  max-height: 420px;
  overflow-y: auto;
}

.term-cmd { color: var(--accent); }
.term-success { color: #34d399; }
.term-agent { color: var(--accent2); }
.term-muted { color: var(--text-dim); }

/* --------------------------------------------------------------------------
   SKILLS TOPOGRAPHY & SYSTEMS RADAR (DEEP DARK GLASS TILES)
   -------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.skill-category-card, .card {
  background: linear-gradient(145deg, rgba(10, 15, 22, 0.96), rgba(6, 10, 16, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-category-card::before, .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(110, 231, 200, 0.6), transparent);
  opacity: 0.7;
}

.skill-category-card:hover, .card:hover {
  transform: translateY(-6px);
  border-color: rgba(110, 231, 200, 0.5);
  background: linear-gradient(145deg, rgba(14, 22, 32, 0.98), rgba(8, 14, 22, 0.99));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.9), 0 0 30px rgba(110, 231, 200, 0.18);
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.skill-cat-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(110, 231, 200, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-cat-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

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

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.skill-name-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink);
}

.skill-pct {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}

.skill-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

/* --------------------------------------------------------------------------
   EXPEDITION TIMELINE / 25-YEAR UNIFYING THREAD (GLASS TILES)
   -------------------------------------------------------------------------- */
.timeline-section {
  padding: 100px 0;
  position: relative;
}

.timeline-wrap {
  position: relative;
  margin-top: 40px;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2), var(--text-dim));
}

.timeline-item {
  position: relative;
  padding-left: 64px;
  margin-bottom: 48px;
}

.timeline-node {
  position: absolute;
  left: 17px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #070a10;
  border: 3px solid var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.timeline-content {
  background: rgba(11, 15, 20, 0.95);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 26px 30px;
  box-shadow: var(--shadow-elevation-1);
  transition: all 0.25s ease;
}

.timeline-content:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 20px rgba(110, 231, 200, 0.15);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  font-weight: 600;
}

.timeline-role {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.timeline-company {
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 500;
}

.timeline-text {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   ONE UNIFYING METHODOLOGY (GLASS TILES)
   -------------------------------------------------------------------------- */
.methodology-section {
  padding: 110px 0;
  position: relative;
}

.methodology-hero-card {
  background: rgba(11, 15, 20, 0.95);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow-elevation-2);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.methodology-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
}

.methodology-quote-large {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.methodology-quote-large em {
  color: var(--accent);
  font-style: italic;
}

.methodology-narrative {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 900px;
}

.methodology-narrative strong {
  color: var(--ink);
}

/* 4-Phase System Execution Framework */
.execution-framework-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.framework-step-card {
  background: rgba(10, 15, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all 0.25s ease;
  position: relative;
}

.framework-step-card:hover {
  background: rgba(14, 22, 32, 0.98);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
}

.framework-step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}

.framework-step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.framework-step-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* 3 Core Foundational Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.pillar-card {
  background: linear-gradient(145deg, rgba(10, 15, 22, 0.96), rgba(6, 10, 16, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
}

.pillar-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-4px);
  background: linear-gradient(145deg, rgba(14, 22, 32, 0.98), rgba(8, 14, 22, 0.99));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 25px rgba(110, 231, 200, 0.15);
}

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

.pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(110, 231, 200, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.pillar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.pillar-subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent2);
}

.pillar-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* Languages & Verification Bar */
.methodology-footer-bar {
  background: linear-gradient(145deg, rgba(10, 15, 22, 0.96), rgba(6, 10, 16, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-elevation-1);
}

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

.lang-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.lang-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  color: var(--ink);
}

.lang-pill strong {
  color: var(--accent);
}

.philosophy-badge {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}

.about-text-content p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.quote-highlight {
  border-left: 3px solid var(--accent);
  padding: 14px 22px;
  background: rgba(110, 231, 200, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 28px;
}

/* --------------------------------------------------------------------------
   CERTIFICATIONS & ACCREDITATIONS (GLASS TILES)
   -------------------------------------------------------------------------- */
.certifications-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.cert-card {
  background: linear-gradient(145deg, rgba(10, 15, 22, 0.96), rgba(6, 10, 16, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
  transition: all 0.2s ease;
}

.cert-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 20px rgba(110, 231, 200, 0.15);
}

.cert-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(110, 231, 200, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-info h4 {
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 4px;
}

.cert-info p {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   CONTACT / EXPEDITION BASECAMP (GLASS TILES)
   -------------------------------------------------------------------------- */
.basecamp-section {
  padding: 120px 0 80px;
  position: relative;
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(to top, var(--bg), transparent);
}

.basecamp-box {
  background: linear-gradient(145deg, rgba(10, 15, 22, 0.96), rgba(6, 10, 16, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 64px);
  box-shadow: var(--shadow-elevation-2);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.basecamp-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.basecamp-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  color: var(--ink);
  margin-bottom: 16px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.basecamp-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.contact-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.contact-tile {
  background: rgba(10, 15, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-md);
  padding: 20px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.contact-tile:hover {
  background: rgba(14, 22, 32, 0.98);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8), 0 0 15px rgba(110, 231, 200, 0.15);
}

.contact-tile-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.contact-tile-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-tile-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

/* Footer */
footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   MODALS (Deep Achievement Inspector)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 13, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: #0b0f14;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 840px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), var(--shadow-glow);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-backdrop.open .modal-window {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-inner {
  padding: clamp(24px, 5vw, 44px);
}

/* Animations */
@keyframes pulse-beacon {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

@keyframes scroll-wheel-anim {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes aura-shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* =========================================================================
   AURA PRESENTATION SHOWCASE & APEX SUMMIT STYLING
   ========================================================================= */
.apex-summit-card {
  border: 1px solid rgba(110, 231, 200, 0.45);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(110, 231, 200, 0.2);
  position: relative;
}

.apex-summit-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(110, 231, 200, 0.3), rgba(122, 165, 248, 0.2), rgba(229, 179, 100, 0.2));
  z-index: -1;
  opacity: 0.6;
  filter: blur(12px);
}

.apex-badge {
  background: linear-gradient(135deg, rgba(110, 231, 200, 0.25), rgba(122, 165, 248, 0.2)) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

.aura-presentation-btn {
  background: linear-gradient(135deg, #6ee7c8, #7aa5f8, #e5b364);
  background-size: 300% 300%;
  animation: aura-shimmer 5s ease infinite;
  color: #0b0f14 !important;
  border: none !important;
  box-shadow: 0 0 25px rgba(110, 231, 200, 0.4), 0 4px 16px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.aura-presentation-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 35px rgba(110, 231, 200, 0.65), 0 8px 24px rgba(0, 0, 0, 0.6);
}

.aura-presentation-window {
  max-width: 960px;
  background: #0b0f14;
  border: 1px solid var(--border-highlight);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9), 0 0 50px rgba(110, 231, 200, 0.25);
}

.aura-pres-container {
  padding: clamp(24px, 4.5vw, 44px);
}

.aura-pres-header {
  margin-bottom: 28px;
  text-align: center;
}

.aura-pres-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(110, 231, 200, 0.12);
  border: 1px solid rgba(110, 231, 200, 0.35);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
}

.aura-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse-beacon 1.6s infinite;
}

.aura-pres-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.8vw, 38px);
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.aura-pres-tagline {
  font-size: 15px;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

.aura-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .aura-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.aura-metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
}

.aura-metric-val {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 4px;
}

.aura-metric-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.aura-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .aura-pillars-grid {
    grid-template-columns: 1fr;
  }
}

.aura-pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.aura-pillar-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-highlight);
}

.aura-pillar-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.aura-pillar-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.aura-pillar-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.aura-eco-box {
  background: rgba(11, 15, 20, 0.88);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 30px;
}

.aura-eco-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.aura-eco-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.aura-eco-badge {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  color: var(--ink);
}

.aura-eco-badge strong {
  color: var(--accent);
}

.aura-pres-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   MOBILE / SMALL VIEWPORTS
   The layout previously only hid the centre nav links below 900px, which left
   the brand block, the action buttons and the three fixed HUD panels all
   fighting for the same corners on a phone. Everything below is about giving
   each of them room.
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --nav-height: 58px;
  }

  .top-nav {
    padding: 0 14px;
    gap: 10px;
  }

  /* The two-line brand wrapped to three lines and pushed itself out of the
     bar. On a phone the name alone is enough. */
  .brand-sub {
    display: none;
  }
  .brand-title {
    font-size: 13px;
    white-space: nowrap;
  }
  .brand-icon-svg {
    width: 20px;
    height: 20px;
  }
  .brand-wrapper {
    gap: 8px;
    min-width: 0;
  }

  .nav-actions {
    gap: 6px;
    flex-shrink: 0;
  }
  .nav-actions .hud-btn {
    padding: 7px 9px;
    font-size: 11px;
  }
  /* Keep the icons, drop the labels — they are what overflowed the bar. */
  .nav-actions .hud-btn span:not(:first-child) {
    display: none;
  }
  #nav-aura-pres-btn span:not(:first-child) {
    display: inline;
  }

  /* Fixed HUD panels: smaller, and out of each other's way. */
  .hud-altimeter-panel {
    bottom: 14px;
    left: 14px;
    transform: scale(0.85);
    transform-origin: bottom left;
  }
  /* Bottom-right puts this fixed dock straight on top of the hero's call to
     action, where it steals taps. There is nothing but sky under the nav, so
     move it up there on small screens. */
  .hud-env-controls {
    top: calc(var(--nav-height) + 10px);
    bottom: auto;
    right: 10px;
    transform: scale(0.82);
    transform-origin: top right;
  }

  /* Stack the hero actions instead of letting them overflow sideways. */
  .hero-cta-group {
    flex-wrap: wrap;
    gap: 10px;
  }
  .hero-cta-group > .hud-btn {
    flex: 1 1 100%;
    justify-content: center;
  }
  /* The waypoint rail is decorative and has no room next to content. */
  .hud-summit-radar {
    display: none;
  }

  /* Give the hero CTAs clearance above the bottom HUD row. */
  .hero-card,
  .summit-card,
  .methodology-hero-card {
    padding: 22px 18px;
  }
  .hero-card {
    margin-bottom: 96px;
  }

  .section-header {
    padding: 24px 18px;
  }
}

/* Very narrow phones: drop the brand text entirely so the logo and the
   action buttons always fit on one line. */
@media (max-width: 420px) {
  .brand-info {
    display: none;
  }
  .nav-actions .hud-btn {
    padding: 7px 8px;
  }
  #nav-aura-pres-btn span:not(:first-child) {
    display: none;
  }
}

/* The metric tiles were designed for the dark modal, where a 3.5%-white fill is
   enough. On the page they sit directly over the moving terrain, so give them
   the same solid panel treatment the surrounding cards use. */
#engine-internals .aura-metric-card {
  background: linear-gradient(145deg, rgba(10, 15, 22, 0.96), rgba(6, 10, 16, 0.98));
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8);
  padding: 20px 12px;
}
