/* FITSHIELD Ultra-Performance Dark Cyber-Athletic Theme
   Faithfully matching the high-contrast orange neon & carbon design */

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

:root {
  --bg-black: #07080a;
  --bg-card: rgba(16, 20, 28, 0.82);
  --bg-card-hover: rgba(22, 28, 39, 0.95);
  --bg-subtle: #0d0f14;
  --line-dim: rgba(255, 255, 255, 0.08);
  --line-glow: rgba(255, 115, 0, 0.55);
  
  --ember: #ff7700;
  --ember-bright: #ff9400;
  --ember-deep: #e65c00;
  --ember-glow: rgba(255, 119, 0, 0.45);
  --ember-gradient: linear-gradient(90deg, #ff6600, #ff8c00);
  --ember-pill: linear-gradient(135deg, #ff8c00 0%, #ff5e00 100%);
  
  --diet: #ff4838;
  --diet-glow: rgba(255, 72, 56, 0.35);
  --supp: #00e599;
  --supp-glow: rgba(0, 229, 153, 0.35);
  --pose: #00d4ff;
  --pose-glow: rgba(0, 212, 255, 0.35);
  --habit: #a855f7;
  --habit-glow: rgba(168, 85, 247, 0.35);
  
  --text-white: #ffffff;
  --text-primary: #f0f3f8;
  --text-muted: #9aa2b0;
  --text-dim: #6c7382;
  
  --wrap: 1240px;
  --f-head: 'Barlow Condensed', 'Kanit', -apple-system, sans-serif;
  --f-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  background-color: var(--bg-black);
  color: var(--text-primary);
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--ember-bright);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ffb74d;
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--f-head);
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--text-white);
}

h1 {
  font-size: clamp(2.8rem, 5.2vw, 4.4rem);
  font-weight: 800;
  font-style: italic;
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.01em;
}

h3 {
  font-size: 1.6rem;
  font-weight: 700;
}

h4 {
  font-size: 1.2rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

.wrap {
  width: min(100% - 3rem, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ember);
  color: #000;
  padding: 0.6rem 1rem;
  z-index: 100;
  font-weight: 700;
}
.skip:focus { left: 0; }

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 11, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-dim);
}

/* Glowing top and bottom neon accent lines */
.header-glow-line {
  height: 1.5px;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 119, 0, 0.15) 15%,
    #ff7700 35%,
    #ffaa00 50%,
    #ff7700 65%,
    rgba(255, 119, 0, 0.15) 85%,
    transparent 100%
  );
  box-shadow: 0 0 12px var(--ember-glow);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 8px;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(255, 119, 0, 0.35));
  transition: transform 0.2s ease;
}

.brand:hover .brand-logo-img {
  transform: scale(1.02);
}

/* Rounded Dark Acrylic Container for Menu Links */
.nav-container {
  display: flex;
  align-items: center;
  background: rgba(14, 18, 25, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 4px 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: block;
  padding: 7px 18px;
  color: #d1d6e0;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-list a:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.06);
}

/* Active Home Pill matching reference */
.nav-list a[aria-current="page"] {
  background: var(--ember-pill);
  color: #07080a;
  font-weight: 700;
  box-shadow: 0 2px 14px rgba(255, 110, 0, 0.45);
}

/* ==========================================================================
   DROPDOWN MENUS (Project Scope & Downloads)
   ========================================================================== */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.dropdown-chevron {
  transition: transform 0.22s ease, stroke 0.2s ease;
  opacity: 0.8;
  display: inline-block;
  vertical-align: middle;
}

.nav-item-dropdown:hover .dropdown-chevron,
.nav-item-dropdown:focus-within .dropdown-chevron,
.nav-item-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
  opacity: 1;
  stroke: var(--ember);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: rgba(12, 16, 24, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 119, 0, 0.35);
  border-radius: 12px;
  padding: 8px 6px;
  list-style: none;
  margin: 0;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.8), 0 0 18px rgba(255, 119, 0, 0.15);
  z-index: 1000;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: rgba(12, 16, 24, 0.96);
  border-left: 1px solid rgba(255, 119, 0, 0.35);
  border-top: 1px solid rgba(255, 119, 0, 0.35);
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu,
.nav-item-dropdown.open .dropdown-menu {
  display: block;
  animation: dropdown-fade-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdown-fade-in {
  from { opacity: 0; transform: translate(-50%, -6px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.dropdown-menu li {
  margin: 0;
  width: 100%;
}

.dropdown-menu a {
  display: block;
  width: 100%;
  padding: 8px 14px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  color: #ffffff;
  background: rgba(255, 119, 0, 0.18);
  transform: translateX(3px);
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dim);
  color: #fff;
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.nav-toggle:hover {
  background: rgba(255, 119, 0, 0.15);
  border-color: var(--ember);
}

/* ==========================================================================
   HERO SECTION (100% Match to Mockup)
   ========================================================================== */
.hero {
  position: relative;
  background-color: var(--bg-black);
  color: var(--text-white);
  overflow: hidden;
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Background Atmosphere, Grid & Light Flares */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 75% 42%, rgba(255, 115, 0, 0.22) 0%, rgba(255, 70, 0, 0.06) 45%, transparent 70%),
    radial-gradient(circle at 10% 20%, rgba(255, 119, 0, 0.06) 0%, transparent 40%),
    linear-gradient(135deg, rgba(255, 119, 0, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* Subtle Sci-fi Tech Panel Lines in Background */
.hero-tech-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: 
    linear-gradient(115deg, transparent 40%, rgba(255, 115, 0, 0.03) 40.5%, transparent 41%),
    linear-gradient(115deg, transparent 65%, rgba(255, 115, 0, 0.02) 65.5%, transparent 66%);
}

.hero-main-content {
  position: relative;
  z-index: 2;
  width: min(100% - 3rem, var(--wrap));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2rem;
  padding-top: 4rem;
  padding-bottom: 3rem;
  flex: 1;
}

.hero-text-block {
  max-width: 620px;
}

/* Small Glowing Neon Orange Accent Bar */
.hero-accent-bar {
  width: 44px;
  height: 3.5px;
  background: var(--ember);
  border-radius: 2px;
  margin-bottom: 24px;
  box-shadow: 0 0 12px var(--ember);
}

.hero-title {
  font-family: var(--f-head);
  font-size: clamp(2.8rem, 5.2vw, 4.4rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1.06;
  color: var(--text-white);
  letter-spacing: -0.015em;
  margin: 0 0 22px 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}

.hero-desc {
  font-family: var(--f-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: #b8c0cc;
  max-width: 530px;
  margin-bottom: 34px;
}

/* CTA Buttons */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ember-gradient);
  color: #07080a;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 30px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 22px var(--ember-glow);
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 200, 100, 0.3);
}

.btn-hero-primary:hover {
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255, 119, 0, 0.65);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 18, 25, 0.75);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 28px;
  border-radius: 9999px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.btn-hero-secondary:hover {
  color: #ffffff;
  background: rgba(22, 28, 38, 0.9);
  border-color: rgba(255, 119, 0, 0.65);
  box-shadow: 0 0 18px rgba(255, 119, 0, 0.25);
  transform: translateY(-2px);
}

.btn-arrow {
  transition: transform 0.2s ease;
}

.btn-hero-primary:hover .btn-arrow,
.btn-hero-secondary:hover .btn-arrow {
  transform: translateX(4px);
}

/* Athlete Runner Visual on the Right */
/* ==========================================================================
   INTERACTIVE ANIMATED FITNESS VISUAL (Pose Vision & Biometrics HUD)
   ========================================================================== */
.hero-interactive-fitness {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  width: 100%;
}

.hud-ambient-glow {
  position: absolute;
  inset: -15%;
  background: radial-gradient(circle at 55% 50%, rgba(255, 119, 0, 0.22) 0%, rgba(255, 75, 0, 0.05) 50%, transparent 72%);
  pointer-events: none;
  filter: blur(40px);
  z-index: 1;
}

/* Mode Switcher Segmented Control */
.hud-modes {
  display: inline-flex;
  gap: 6px;
  background: rgba(14, 18, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 4px;
  margin-bottom: 14px;
  position: relative;
  z-index: 10;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hud-tab {
  background: transparent;
  border: 1px solid transparent;
  color: #9aa2b0;
  font-family: var(--f-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.22s ease;
  user-select: none;
}

.hud-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.hud-tab.active {
  background: rgba(255, 119, 0, 0.16);
  color: #ffffff;
  border-color: rgba(255, 119, 0, 0.45);
  box-shadow: 0 0 14px rgba(255, 119, 0, 0.25);
}

.tab-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748b;
  transition: all 0.22s ease;
}

.hud-tab.active .tab-indicator {
  background: var(--ember);
  box-shadow: 0 0 8px var(--ember);
}

/* 3D Perspective Stage */
.hud-stage {
  position: relative;
  width: 100%;
  max-width: 620px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  z-index: 2;
}

.hud-canvas-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fitness-canvas {
  width: 100%;
  height: 100%;
  max-width: 620px;
  max-height: 480px;
  display: block;
  z-index: 2;
  border-radius: 20px;
}

.telemetry-cards-group {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Floating Glass Telemetry Cards */
.telemetry-card {
  position: absolute;
  background: rgba(13, 17, 24, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 16px rgba(255, 119, 0, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  z-index: 5;
  pointer-events: auto;
}

.telemetry-card:hover {
  border-color: rgba(255, 119, 0, 0.4);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.75), 0 0 22px rgba(255, 119, 0, 0.2);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.pulse-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4d4d;
  box-shadow: 0 0 8px #ff4d4d;
  animation: pulse-dot 1.2s infinite ease-in-out;
}

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

.card-badge {
  font-family: var(--f-head);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #94a3b8;
}

.badge-green { color: #00e599; }
.badge-orange { color: #ff9400; }

/* Vitals Card (Top Right) */
.card-vitals {
  top: 10px;
  right: -8px;
  min-width: 200px;
}

.vitals-metric-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.bpm-counter {
  font-family: var(--f-head);
  font-size: 2.2rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  color: #ffffff;
}

.bpm-details {
  display: flex;
  flex-direction: column;
}

.bpm-unit {
  font-family: var(--f-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ember);
  line-height: 1;
}

.bpm-zone {
  font-size: 0.75rem;
  color: #94a3b8;
}

.ecg-track {
  width: 100%;
  height: 32px;
  margin: 4px 0 8px;
  overflow: hidden;
  position: relative;
}

.ecg-svg {
  width: 100%;
  height: 100%;
}

.ecg-wave {
  fill: none;
  stroke: var(--ember);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 0;
  animation: ecg-stream 2s linear infinite;
  filter: drop-shadow(0 0 4px var(--ember));
}

@keyframes ecg-stream {
  0% { stroke-dashoffset: 200; }
  100% { stroke-dashoffset: 0; }
}

.card-footer-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 6px;
}

.card-footer-stats strong {
  color: #ffffff;
}

/* Pose Form Card (Bottom Right) */
.card-form {
  bottom: 12px;
  right: 6px;
  min-width: 210px;
}

.form-score-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.score-display {
  display: flex;
  align-items: baseline;
}

.score-number {
  font-family: var(--f-head);
  font-size: 2.1rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  color: #00e599;
}

.score-percent {
  font-family: var(--f-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: #00e599;
  margin-left: 2px;
}

.score-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.status-pill-green {
  font-size: 0.7rem;
  font-weight: 700;
  color: #00e599;
  background: rgba(0, 229, 153, 0.12);
  border: 1px solid rgba(0, 229, 153, 0.3);
  padding: 2px 7px;
  border-radius: 9999px;
  margin-bottom: 2px;
}

.rep-label {
  font-size: 0.76rem;
  color: #94a3b8;
}

.rep-label strong {
  color: #ffffff;
}

.joint-angles-list {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 6px;
}

.joint-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.joint-val {
  color: #ffffff;
}

.joint-status {
  color: #00e599;
  font-weight: 700;
}

.joint-meter {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.meter-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff7700, #00e599);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Safety Shield Card (Bottom Left) */
.card-shield {
  bottom: 20px;
  left: -12px;
  min-width: 210px;
}

.shield-status-line {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: #ffffff;
  margin-bottom: 3px;
}

.green-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e599;
  box-shadow: 0 0 6px #00e599;
}

.shield-desc {
  margin: 0;
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.35;
  max-width: 180px;
}

/* ==========================================================================
   BOTTOM FEATURE BAR (100% Match to Mockup)
   ========================================================================== */
.feature-ribbon-wrap {
  position: relative;
  z-index: 10;
  width: min(100% - 3rem, var(--wrap));
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

.feature-ribbon {
  position: relative;
  background: linear-gradient(180deg, rgba(16, 20, 27, 0.92) 0%, rgba(9, 11, 16, 0.98) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1.5px solid var(--line-glow);
  clip-path: polygon(32px 0, 100% 0, 100% 100%, 0 100%, 0 32px);
  padding: 22px 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

/* Flare on the top border of the feature ribbon */
.feature-ribbon::before {
  content: '';
  position: absolute;
  top: -1.5px;
  left: 28%;
  width: 44%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffea88, #ff8c00, transparent);
  box-shadow: 0 0 14px var(--ember);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
}

.feature-item + .feature-item::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.feature-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ember);
}

.feature-icon {
  width: 34px;
  height: 34px;
  stroke: var(--ember);
  filter: drop-shadow(0 0 6px var(--ember-glow));
}

.feature-texts {
  display: flex;
  flex-direction: column;
}

.feature-title {
  color: var(--text-white);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.25;
}

.feature-sub {
  color: #9aa2b0;
  font-size: 0.95rem;
  line-height: 1.25;
}

/* ==========================================================================
   SECTIONS: ABSTRACT / METRICS (The Facts)
   ========================================================================== */
.section {
  padding-block: 5.5rem;
  position: relative;
}

.section.alt {
  background: var(--bg-subtle);
  border-top: 1px solid var(--line-dim);
  border-bottom: 1px solid var(--line-dim);
}

.section-head {
  margin-bottom: 2.8rem;
  max-width: 780px;
}

.section-head h2 {
  margin-bottom: 0.4em;
  background: linear-gradient(90deg, #ffffff 60%, var(--ember-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-head .lede {
  color: #b0b8c6;
  font-size: 1.15rem;
  line-height: 1.65;
}

/* Fact Metric Cards with Fiery Ember Accents */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0 0;
}

.fact-card {
  background: var(--bg-card);
  border: 1px solid var(--line-dim);
  border-radius: 12px;
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.fact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.fact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 119, 0, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 119, 0, 0.15);
}

.fact-card:hover::before {
  opacity: 1;
}

.fact-num {
  font-family: var(--f-head);
  font-size: 3.2rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  background: linear-gradient(135deg, #ffb300, #ff6600);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.4rem;
  display: block;
}

.fact-label {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================================
   AHEE CONNECTIVITY FLOW DIAGRAM
   ========================================================================== */
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
}

.flow-col {
  display: grid;
  gap: 1rem;
}

.node {
  border: 1px solid var(--line-dim);
  border-left: 5px solid var(--mc, #888);
  background: var(--bg-card);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.node:hover {
  transform: translateX(4px);
  border-color: rgba(255, 255, 255, 0.18);
}

.node strong {
  display: block;
  font-family: var(--f-head);
  font-size: 1.3rem;
  line-height: 1.15;
  color: var(--text-white);
}

.node span {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
  display: block;
  margin-top: 0.3rem;
}

.node.hub {
  background: linear-gradient(145deg, #121622 0%, #0c0e16 100%);
  color: #fff;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-left: 6px solid var(--habit);
  padding: 1.8rem 1.5rem;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.18);
}

.node.hub strong {
  font-size: 1.45rem;
  background: linear-gradient(90deg, #ffffff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.node.hub span {
  color: #c4b5fd;
}

.node.out {
  background: rgba(14, 18, 25, 0.5);
  border-style: dashed;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ember);
}

.flow-arrow svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 6px var(--ember-glow));
}

/* ==========================================================================
   COMPONENT SHOWCASE CARDS
   ========================================================================== */
.component {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: center;
  padding: 2.4rem;
  background: var(--bg-card);
  border: 1px solid var(--line-dim);
  border-radius: 14px;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.component::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--mc, var(--ember));
  box-shadow: 0 0 12px var(--mc-glow, var(--ember-glow));
}

.component:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.component.rev {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}
.component.rev .c-media {
  order: 2;
}

.c-media img {
  border-radius: 10px;
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  filter: brightness(0.92) contrast(1.05);
}

.c-text h3 {
  color: var(--mct, var(--text-white));
  font-size: 1.8rem;
  margin-bottom: 0.5em;
}

.c-text p {
  color: #b0b8c6;
  font-size: 1.05rem;
  line-height: 1.6;
}

.c-text .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--ember-bright);
  margin-top: 0.5rem;
}

.c-text .more:hover {
  color: #ffca28;
}

/* ==========================================================================
   SITEMAP
   ========================================================================== */
.sitemap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap li {
  background: var(--bg-card);
  border: 1px solid var(--line-dim);
  border-radius: 10px;
  padding: 1.4rem;
  margin: 0;
  transition: all 0.2s ease;
}

.sitemap li:hover {
  border-color: rgba(255, 119, 0, 0.4);
  transform: translateY(-2px);
}

.sitemap a {
  font-family: var(--f-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  display: inline-block;
  margin-bottom: 0.3rem;
}

.sitemap a:hover {
  color: var(--ember-bright);
}

.sitemap p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   FOOTER (Structured Academic & Research Multi-Column Layout)
   ========================================================================== */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #07090d 0%, #040507 100%);
  color: #9aa2b0;
  padding-block: 4rem 2.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.94rem;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 119, 0, 0.15) 18%,
    #ff7700 40%,
    #ffaa00 50%,
    #ff7700 60%,
    rgba(255, 119, 0, 0.15) 82%,
    transparent 100%
  );
  box-shadow: 0 0 12px rgba(255, 119, 0, 0.35);
}

.site-footer .wrap {
  display: block;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem 3rem;
  padding-bottom: 2.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-col {
  max-width: 390px;
}

.site-footer .brand-logo-img {
  height: 44px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-desc {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0 0 1.1rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: #cbd5e1;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.footer-meta strong {
  color: var(--ember-bright);
  font-weight: 700;
}

.footer-sep {
  color: #475569;
  user-select: none;
}

.footer-col-title {
  font-family: var(--f-head);
  font-size: 1.2rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.02em;
  color: var(--text-white);
  margin: 0 0 1rem;
}

.site-footer ul.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
}

.site-footer ul.footer-links li {
  margin: 0;
}

.site-footer ul.footer-links a {
  color: #94a3b8;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
  display: inline-block;
}

.site-footer ul.footer-links a:hover {
  color: var(--ember-bright);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  padding-top: 1.6rem;
  font-size: 0.86rem;
  color: #64748b;
}

.footer-copy {
  margin: 0;
  color: #7c8698;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}

.footer-bottom-links a {
  color: #94a3b8;
  font-size: 0.86rem;
  text-decoration: none;
  transition: color 0.18s ease;
  white-space: nowrap;
}

.footer-bottom-links a:hover {
  color: var(--ember-bright);
}

/* ==========================================================================
   ANIMATED TECHNOLOGIES USED SECTION
   ========================================================================== */
.tech-head {
  margin-bottom: 2rem;
}

.tech-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2rem;
  background: rgba(14, 18, 26, 0.85);
  border: 1px solid var(--line-dim);
  border-radius: 9999px;
  padding: 6px;
  width: fit-content;
  max-width: 100%;
}

.tech-filter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-family: var(--f-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

.tech-filter-btn.active {
  background: rgba(255, 119, 0, 0.18);
  color: #ffffff;
  border-color: rgba(255, 119, 0, 0.45);
  box-shadow: 0 0 14px rgba(255, 119, 0, 0.25);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--line-dim);
  border-radius: 14px;
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--t-glow, var(--ember)), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.tech-card:hover {
  transform: translateY(-4px);
  border-color: var(--t-glow, rgba(255, 119, 0, 0.45));
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7), 0 0 20px var(--t-bg, rgba(255, 119, 0, 0.15));
}

.tech-card:hover::before {
  opacity: 1;
}

.tech-card.hidden {
  display: none !important;
}

.tech-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}

.tech-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--t-bg, rgba(255, 119, 0, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.tech-card:hover .tech-icon-wrap {
  transform: scale(1.08);
  border-color: var(--t-glow, var(--ember));
  box-shadow: 0 0 16px var(--t-bg, rgba(255, 119, 0, 0.3));
}

.tech-svg {
  width: 100%;
  height: 100%;
}

.tech-tag {
  font-family: var(--f-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--t-glow, #94a3b8);
  background: var(--t-bg, rgba(255, 255, 255, 0.05));
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tech-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--text-white);
}

.tech-desc {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0 0 1.2rem 0;
  flex: 1;
}

.tech-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

.tech-pill {
  font-size: 0.75rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
}

/* Keyframe Animations for Icons */
@keyframes spin-orbit {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes core-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

@keyframes float-icon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes laser-sweep {
  0%, 100% { transform: translateY(-8px); opacity: 0.3; }
  50% { transform: translateY(8px); opacity: 0.9; }
}

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 2px var(--t-glow)); }
  50% { filter: drop-shadow(0 0 8px var(--t-glow)); }
}

.anim-spin-orbit ellipse {
  transform-origin: 24px 24px;
}
.tech-card:hover .anim-spin-orbit ellipse {
  animation: spin-orbit 8s linear infinite;
}

.anim-core-pulse {
  transform-origin: 24px 24px;
  animation: core-pulse 2s ease-in-out infinite;
}

.anim-float {
  animation: float-icon 3s ease-in-out infinite;
}

.anim-pulse-glow {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

.anim-laser-line {
  animation: laser-sweep 2s ease-in-out infinite;
}

/* ==========================================================================
   INNER PAGES SHARED STYLES (Domain, Milestones, Docs, Slides, About, Contact)
   ========================================================================== */
.has-medical-bg main,
.has-medical-bg .site-footer {
  position: relative;
  z-index: 2;
}

.has-medical-bg .hero {
  background-color: transparent;
}

.is-home-page .med-dna-group {
  display: none;
}

.has-medical-bg .section.alt {
  background: rgba(13, 15, 20, 0.72);
  backdrop-filter: blur(4px);
}

.medical-bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.med-bg-grid {
  position: absolute;
  inset: -60px;
  background-image:
    radial-gradient(circle at center, rgba(0, 229, 153, 0.08) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 119, 0, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 212, 255, 0.025) 1px, transparent 1px);
  background-size: 36px 36px, 72px 72px, 72px 72px;
  animation: medGridDrift 28s linear infinite;
}

.med-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}

.med-glow-1 {
  width: 480px;
  height: 480px;
  top: 12%;
  right: -120px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.16) 0%, rgba(0, 229, 153, 0.06) 55%, transparent 75%);
  animation: medOrbFloat 16s ease-in-out infinite alternate;
}

.med-glow-2 {
  width: 520px;
  height: 520px;
  bottom: 8%;
  left: -140px;
  background: radial-gradient(circle, rgba(255, 119, 0, 0.14) 0%, rgba(168, 85, 247, 0.05) 55%, transparent 75%);
  animation: medOrbFloat 20s ease-in-out infinite alternate-reverse;
}

.med-bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.med-ecg-line {
  stroke-dasharray: 320 900;
  stroke-dashoffset: 1220;
  filter: drop-shadow(0 0 6px rgba(0, 229, 153, 0.3));
}

.med-ecg-1 {
  animation: medEcgSweep 11s linear infinite;
}

.med-ecg-2 {
  stroke-dasharray: 260 960;
  stroke-dashoffset: 1220;
  animation: medEcgSweep 14s linear infinite 3.5s;
}

.med-float-slow {
  animation: medFloatSlow 9s ease-in-out infinite;
}

.med-float-reverse {
  animation: medFloatReverse 11s ease-in-out infinite;
}

.med-cross {
  opacity: 0.22;
  animation: medCrossPulse 6s ease-in-out infinite;
}

.med-cross-2 { animation-delay: 1.2s; }
.med-cross-3 { animation-delay: 2.5s; }
.med-cross-4 { animation-delay: 3.8s; }
.med-cross-5 { animation-delay: 4.9s; }

.med-pulse-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: medRadarPing 5.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.med-delay-1 { animation-delay: 1.8s; }
.med-delay-2 { animation-delay: 2.7s; }

@keyframes medEcgSweep {
  0% { stroke-dashoffset: 1220; }
  100% { stroke-dashoffset: -1220; }
}

@keyframes medGridDrift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(72px, 72px, 0); }
}

@keyframes medOrbFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-30px, 35px, 0) scale(1.08); }
}

@keyframes medFloatSlow {
  0%, 100% { transform: translate(85px, 340px) translateY(0px); }
  50% { transform: translate(85px, 340px) translateY(-18px); }
}

@keyframes medFloatReverse {
  0%, 100% { transform: translate(1260px, 140px) translateY(0px); }
  50% { transform: translate(1260px, 140px) translateY(16px); }
}

@keyframes medCrossPulse {
  0%, 100% { opacity: 0.14; }
  50% { opacity: 0.36; }
}

@keyframes medRadarPing {
  0% { transform: scale(0.4); opacity: 0.55; }
  80%, 100% { transform: scale(2.8); opacity: 0; }
}

.page-head {
  position: relative;
  background: linear-gradient(180deg, rgba(13, 16, 23, 0.88) 0%, rgba(7, 8, 10, 0.78) 100%);
  color: #fff;
  padding-block: 3.2rem 3rem;
  border-bottom: 2px solid var(--ember);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
}

.page-head h1 {
  margin-bottom: 0.2em;
}

.crumbs {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.crumbs a {
  color: #b0b8c6;
}

/* ==========================================================================
   FITSHIELD Domain Page - Full-Section Background Animated DNA & AI Network
   ========================================================================== */
.domain-page-head {
  position: relative;
  overflow: hidden;
  padding-block: 4.2rem 4rem;
  min-height: 350px;
  background: #07090e;
  border-bottom: 2px solid var(--ember);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
}

.domain-bg-canvas-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
  overflow: hidden;
}

.dna-research-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Ambient glow blobs across the whole hero background */
.dna-glow-ambient {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.38;
  transition: opacity 0.5s ease;
}

.dna-glow-orange {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.30) 0%, transparent 70%);
  top: -15%;
  right: 22%;
}

.dna-glow-cyan {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.28) 0%, transparent 70%);
  bottom: -20%;
  right: 5%;
}

/* Vignette overlay: ensures left-hand text has pristine contrast while helix shines on the right */
.dna-canvas-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(7, 9, 14, 0.90) 0%,
    rgba(7, 9, 14, 0.76) 38%,
    rgba(7, 9, 14, 0.40) 65%,
    rgba(7, 9, 14, 0.25) 100%
  );
}

.domain-hero-wrap {
  position: relative;
  z-index: 3;
}

.domain-hero-content {
  max-width: 680px;
}

.domain-hero-content h1 {
  margin-bottom: 0.25em;
  font-family: var(--f-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
}

.domain-hero-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 1.35rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9);
}

/* High-tech scientific telemetry pills below description */
.dna-hero-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dna-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-body, system-ui, sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(241, 245, 249, 0.88);
  background: rgba(13, 17, 26, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.02em;
}

.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px currentColor;
}

.hud-dot.orange { background: #ff6a00; color: #ff6a00; }
.hud-dot.cyan { background: #00e5ff; color: #00e5ff; }
.hud-dot.ember { background: #ffa726; color: #ffa726; }
.hud-dot.blue { background: #38bdf8; color: #38bdf8; }

@media (max-width: 991px) {
  .domain-page-head {
    padding-block: 3.2rem 2.8rem;
    min-height: auto;
  }
  .domain-hero-content {
    max-width: 100%;
  }
  .dna-canvas-vignette {
    background: linear-gradient(
      180deg,
      rgba(7, 9, 14, 0.88) 0%,
      rgba(7, 9, 14, 0.70) 50%,
      rgba(7, 9, 14, 0.55) 100%
    );
  }
}

@media (max-width: 640px) {
  .domain-page-head {
    padding-block: 2.6rem 2.2rem;
  }
  .dna-hero-pills {
    gap: 6px;
  }
  .dna-hero-pill {
    font-size: 0.7rem;
    padding: 3px 8px;
  }
}

.with-toc {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 3rem;
  padding-block: 3rem 5rem;
}

.toc {
  position: sticky;
  top: 96px;
  align-self: start;
}

.toc strong {
  display: block;
  font-family: var(--f-head);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--text-white);
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--line-dim);
}

.toc a {
  display: block;
  padding: 0.35rem 0 0.35rem 1rem;
  color: var(--text-muted);
  border-left: 2px solid transparent;
  margin-left: -2px;
}

.toc a:hover {
  color: var(--ember-bright);
  border-left-color: var(--ember);
}

.doc section {
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--line-dim);
}

.doc section:last-child {
  border-bottom: 0;
}

.callout {
  border-left: 4px solid var(--ember);
  background: var(--bg-card);
  padding: 1.2rem 1.4rem;
  border-radius: 0 10px 10px 0;
  margin: 1.5rem 0;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border: 1px solid var(--line-dim);
  border-radius: 10px;
  background: var(--bg-card);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 500px;
}

th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line-dim);
}

th {
  font-family: var(--f-head);
  font-size: 1.15rem;
  border-bottom: 2px solid var(--ember);
  color: var(--text-white);
}

/* Project Scope / Domain Content Modules & Themes */
.doc {
  min-width: 0;
  max-width: 100%;
}

.doc h2 {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: var(--text-white);
  border-bottom: 2px solid rgba(255, 119, 0, 0.35);
  padding-bottom: 0.4rem;
  display: inline-block;
}

.doc h3 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  color: var(--mct, var(--text-white));
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
}

.doc ul, .doc ol {
  padding-left: 1.4rem;
  margin: 1rem 0 1.5rem;
}

.doc li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ff9d42;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: inline-block;
  max-width: 100%;
}

.theme, .mod {
  background: var(--bg-card);
  border: 1px solid var(--line-dim);
  border-left: 4px solid var(--mc, var(--ember));
  border-radius: 0 12px 12px 0;
  padding: 1.4rem 1.6rem;
  margin: 1.5rem 0;
  max-width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.theme:hover, .mod:hover {
  border-color: var(--mc, var(--ember));
}

.theme h3, .mod h3 {
  margin-top: 0;
}

.steps {
  list-style: decimal;
  padding-left: 1.4rem;
  margin: 1rem 0;
}

.steps li {
  padding-left: 0.3rem;
  margin-bottom: 0.65rem;
  line-height: 1.6;
}

.figure {
  margin: 1.8rem 0;
  padding: 1rem;
  background: rgba(14, 18, 26, 0.7);
  border: 1px solid var(--line-dim);
  border-radius: 12px;
  text-align: center;
  max-width: 100%;
}

.figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}

.figure figcaption {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Milestones picker */
.picker {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

.picker label {
  font-weight: 700;
  color: var(--text-white);
}

.picker select {
  font: inherit;
  padding: 0.7rem 2.4rem 0.7rem 1rem;
  border: 1px solid var(--line-dim);
  border-radius: 8px;
  background: var(--bg-card);
  color: #fff;
  max-width: 100%;
}

.ms-panel {
  background: var(--bg-card);
  border: 1px solid var(--line-dim);
  border-top: 4px solid var(--ember);
  border-radius: 12px;
  padding: 2rem;
}

.ms-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
  margin: 1.2rem 0 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-dim);
  border-radius: 10px;
  padding: 1.2rem;
}

.ms-meta dt {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.ms-meta dd {
  font-family: var(--f-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 0;
}

/* Professional Documents & Presentations Deck System */
.downloads-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.d-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--line-dim);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.d-stat-card:hover {
  border-color: rgba(255, 115, 0, 0.4);
  transform: translateY(-2px);
}

.d-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 119, 0, 0.12);
  border: 1px solid rgba(255, 119, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ember);
  flex-shrink: 0;
}

.d-stat-val {
  font-family: var(--f-head);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.d-stat-lbl {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.downloads-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: rgba(14, 18, 26, 0.7);
  border: 1px solid var(--line-dim);
  border-radius: 12px;
}

.downloads-search-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.downloads-search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.6rem;
  font: inherit;
  font-size: 0.92rem;
  border-radius: 8px;
  border: 1px solid var(--line-dim);
  background: rgba(8, 10, 14, 0.9);
  color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.downloads-search-input:focus {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 10px var(--ember-glow);
}

.downloads-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.downloads-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--line-dim);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.filter-chip.active {
  background: var(--ember-pill);
  color: #000;
  border-color: var(--ember);
  font-weight: 700;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--line-dim);
  border-radius: 12px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.doc-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 115, 0, 0.4);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.doc-card.featured-available {
  border-color: rgba(0, 229, 153, 0.45);
  background: linear-gradient(180deg, rgba(0, 229, 153, 0.06) 0%, rgba(16, 20, 28, 0.9) 100%);
  box-shadow: 0 4px 20px rgba(0, 229, 153, 0.12);
}

.doc-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.doc-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--line-dim);
}

.doc-type-badge.pdf {
  background: rgba(255, 72, 56, 0.12);
  color: #ff6b5e;
  border-color: rgba(255, 72, 56, 0.35);
}

.doc-type-badge.pptx {
  background: rgba(255, 119, 0, 0.12);
  color: var(--ember-bright);
  border-color: rgba(255, 119, 0, 0.35);
}

.doc-type-badge.checklist {
  background: rgba(0, 212, 255, 0.12);
  color: #38d8ff;
  border-color: rgba(0, 212, 255, 0.35);
}

.doc-status-pill {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.doc-status-pill.available {
  background: rgba(0, 229, 153, 0.15);
  color: #00e599;
  border: 1px solid rgba(0, 229, 153, 0.4);
}

.doc-status-pill.available::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e599;
  box-shadow: 0 0 6px #00e599;
}

.doc-status-pill.pending {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid var(--line-dim);
}

.doc-card h3 {
  font-family: var(--f-head);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

.doc-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 1.2rem;
  flex: 1;
}

.doc-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 0.8rem 0;
  margin-bottom: 1.2rem;
  border-top: 1px solid var(--line-dim);
  border-bottom: 1px solid var(--line-dim);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.doc-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.doc-meta-item strong {
  color: #cbd5e1;
}

.doc-owner-tag {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.05);
  color: var(--owner-color, var(--ember));
  border: 1px solid var(--owner-color, var(--ember));
}

.doc-actions-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: auto;
}

.btn-doc-download {
  flex: 1;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 8px;
  background: var(--ember-pill);
  color: #000;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-doc-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 119, 0, 0.45);
}

.btn-doc-download.download-success {
  background: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4) !important;
}

.btn-doc-preview {
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid var(--line-dim);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-doc-preview:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-doc-disabled {
  flex: 1;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  border: 1px solid var(--line-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: not-allowed;
}

/* Slide Presentation Cards */
.deck-card {
  background: var(--bg-card);
  border: 1px solid var(--line-dim);
  border-top: 4px solid var(--deck-accent, var(--ember));
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.deck-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 115, 0, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.deck-preview-screen {
  background: radial-gradient(circle at 75% 25%, rgba(255, 119, 0, 0.18) 0%, rgba(10, 13, 18, 0.98) 75%), #0c1017;
  border-bottom: 1px solid var(--line-dim);
  padding: 1.8rem 1.6rem;
  position: relative;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.deck-screen-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--deck-accent, var(--ember));
  border: 1px solid var(--deck-accent, var(--ember));
  width: fit-content;
}

.deck-screen-title {
  font-family: var(--f-head);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 0.8rem 0 0.2rem;
  line-height: 1.2;
}

.deck-screen-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.deck-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.deck-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-dim);
}

.deck-meta-cell dt {
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.deck-meta-cell dd {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.deck-agenda-title {
  font-family: var(--f-head);
  font-size: 1.05rem;
  color: var(--ember);
  margin: 0 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.deck-agenda-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.deck-agenda-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.deck-agenda-bullet {
  color: var(--deck-accent, var(--ember));
  font-weight: bold;
}

.deck-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

/* Citation & Academic Box */
.academic-citation-box {
  background: var(--bg-card);
  border: 1px solid var(--line-dim);
  border-radius: 12px;
  padding: 1.8rem;
  margin-top: 3rem;
  position: relative;
}

.academic-citation-box h3 {
  font-family: var(--f-head);
  font-size: 1.4rem;
  color: #fff;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.citation-code {
  background: rgba(6, 8, 12, 0.95);
  border: 1px solid var(--line-dim);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  font-family: monospace;
  font-size: 0.85rem;
  color: #a5f3fc;
  overflow-x: auto;
  line-height: 1.5;
  margin: 1rem 0;
}

/* Interactive Preview Modal */
.doc-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.doc-modal-overlay.open {
  display: flex;
}

.doc-modal-box {
  background: #0f131c;
  border: 1px solid rgba(255, 115, 0, 0.45);
  border-radius: 14px;
  max-width: 860px;
  width: 95%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 115, 0, 0.15);
  position: relative;
}

.doc-download-banner {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.doc-download-banner .banner-icon {
  width: 28px;
  height: 28px;
  background: #10b981;
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.doc-download-banner .banner-text {
  font-size: 0.9rem;
  color: #e2e8f0;
  line-height: 1.45;
}

.doc-download-banner code {
  color: #6ee7b7;
  font-family: monospace;
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
}

.doc-modal-actions-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-modal-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: var(--f-body, system-ui, sans-serif);
}

.btn-modal-primary {
  background: var(--ember, #ff6b35);
  color: #fff;
  border: 1px solid var(--ember, #ff6b35);
}

.btn-modal-primary:hover {
  background: #ff521a;
  transform: translateY(-1px);
}

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

.btn-modal-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-modal-print {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.4);
}

.btn-modal-print:hover {
  background: rgba(14, 165, 233, 0.28);
}

@keyframes docSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.doc-spinner {
  animation: docSpin 0.75s linear infinite;
  display: inline-block;
  transform-origin: center center;
}

.doc-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-dim);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.doc-modal-close:hover {
  background: rgba(255, 72, 56, 0.25);
  color: #ff6b5e;
}

/* Downloads Hub Switcher Navigation */
.downloads-hub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line-dim);
}

.downloads-hub-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  font-family: var(--f-head);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dim);
  text-decoration: none;
  transition: all 0.2s ease;
}

.downloads-hub-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 119, 0, 0.35);
  transform: translateY(-2px);
}

.downloads-hub-tab.active {
  color: #000;
  background: var(--ember-pill);
  border-color: var(--ember);
  box-shadow: 0 4px 18px rgba(255, 119, 0, 0.38);
}

.downloads-hub-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-family: var(--f-body);
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
}

.downloads-hub-tab.active .downloads-hub-count {
  background: rgba(0, 0, 0, 0.2);
  color: #000;
}

/* Decks Grid */
.decks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.8rem;
  margin-bottom: 3.2rem;
}

.deck-actions-row {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-dim);
}

.deck-screen-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.deck-time-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--line-dim);
}

.oral-defense-guide-box {
  background: var(--bg-card);
  border: 1px solid var(--line-dim);
  border-radius: 14px;
  padding: 2rem;
  margin-top: 3.5rem;
  position: relative;
  overflow: hidden;
}

.oral-defense-guide-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--ember-pill);
}

.oral-defense-guide-box h3 {
  font-family: var(--f-head);
  font-size: 1.45rem;
  color: #fff;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.oral-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.4rem;
}

.oral-guide-card {
  background: rgba(8, 10, 15, 0.75);
  border: 1px solid var(--line-dim);
  border-radius: 10px;
  padding: 1.3rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.oral-guide-card:hover {
  border-color: rgba(255, 119, 0, 0.35);
  transform: translateY(-2px);
}

.oral-guide-card h4 {
  font-family: var(--f-head);
  font-size: 1.15rem;
  color: var(--text-white);
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.oral-guide-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Responsive updates for downloads & decks */
@media (max-width: 768px) {
  .docs-grid, .decks-grid {
    grid-template-columns: 1fr;
  }
  .downloads-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .downloads-filter-chips {
    justify-content: flex-start;
  }
  .downloads-hub-nav {
    flex-direction: column;
  }
  .downloads-hub-tab {
    width: 100%;
    justify-content: space-between;
  }
}


/* Team / About */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
}

.person {
  background: var(--bg-card);
  border: 1px solid var(--line-dim);
  border-top: 4px solid var(--mc, var(--ember));
  border-radius: 12px;
  padding: 1.6rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.person:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #181d29;
  border: 2px solid var(--mc, var(--ember));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--f-head);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.person h3 {
  margin-bottom: 0.2em;
}

.person .role {
  color: var(--ember);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.person p {
  margin-bottom: 0.35em;
  font-size: 0.95rem;
}

/* Contact Grid & Form Enhancements */
.contact-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2.8rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line-dim);
  border-top: 3px solid var(--ember);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 115, 0, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.contact-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 119, 0, 0.12);
  border: 1px solid rgba(255, 119, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ember);
}

.contact-card-badge {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--line-dim);
}

.contact-card-badge.active-dot {
  color: #00e599;
  border-color: rgba(0, 229, 153, 0.3);
  background: rgba(0, 229, 153, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.contact-card-badge.active-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e599;
  box-shadow: 0 0 6px #00e599;
}

.contact-card h3 {
  font-family: var(--f-head);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.3rem;
  color: var(--text-white);
}

.contact-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
  line-height: 1.45;
}

.contact-card-value {
  font-family: var(--f-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 1.1rem;
  word-break: break-all;
}

.contact-card-value a {
  color: var(--text-white);
  text-decoration: none;
  transition: color 0.15s ease;
}

.contact-card-value a:hover {
  color: var(--ember);
}

.contact-card-actions {
  margin-top: auto;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.btn-card-action {
  flex: 1;
  text-align: center;
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 8px;
  background: rgba(255, 119, 0, 0.15);
  color: var(--ember-bright);
  border: 1px solid rgba(255, 119, 0, 0.4);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-card-action:hover {
  background: var(--ember);
  color: #000;
  border-color: var(--ember);
}

.btn-icon-copy {
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--line-dim);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-icon-copy:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-icon-copy.copied {
  background: rgba(0, 229, 153, 0.15);
  color: #00e599;
  border-color: rgba(0, 229, 153, 0.4);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.contact-panel {
  background: var(--bg-card);
  border: 1px solid var(--line-dim);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.contact-panel h2 {
  font-family: var(--f-head);
  font-size: 1.85rem;
  letter-spacing: 0.02em;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--text-white);
}

.contact-panel-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
  line-height: 1.5;
}

.leads-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.lead-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-dim);
  border-left: 3px solid var(--lead-accent, var(--ember));
  border-radius: 10px;
  transition: all 0.2s ease;
}

.lead-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--lead-accent, var(--ember));
  transform: translateX(3px);
}

.lead-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lead-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lead-name {
  font-family: var(--f-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.lead-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.06);
  color: var(--lead-accent, var(--ember));
  border: 1px solid var(--lead-accent, var(--ember));
}

.lead-id {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.lead-email {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.lead-email:hover {
  color: var(--lead-accent, var(--ember));
}

.lead-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.info-banner {
  background: rgba(255, 119, 0, 0.06);
  border: 1px solid rgba(255, 119, 0, 0.25);
  border-radius: 10px;
  padding: 1.2rem;
}

.info-banner h4 {
  font-family: var(--f-head);
  font-size: 1.1rem;
  color: var(--ember);
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 7px;
}

.info-banner ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.info-banner li strong {
  color: #fff;
}

/* Form Styles */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

form label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin: 1.1rem 0 0.4rem;
  color: #e2e8f0;
}

form label small {
  font-weight: normal;
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-left: 4px;
}

form input, form textarea, form select {
  width: 100%;
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-dim);
  border-radius: 8px;
  background: rgba(10, 13, 18, 0.9);
  color: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form input:focus, form textarea:focus, form select:focus {
  border-color: var(--ember);
  outline: none;
  box-shadow: 0 0 12px var(--ember-glow);
}

form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-actions-row {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-submit-main {
  flex: 1;
  min-width: 200px;
  padding: 0.85rem 1.4rem;
  background: var(--ember-pill);
  color: #000;
  font-family: var(--f-head);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(255, 119, 0, 0.35);
}

.btn-submit-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 119, 0, 0.55);
}

.btn-copy-msg {
  padding: 0.85rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: var(--f-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--line-dim);
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-copy-msg:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.form-note {
  color: var(--text-dim);
  font-size: 0.84rem;
  margin-top: 1rem;
  line-height: 1.45;
}

/* Campus Map & FAQ Section */
.campus-section {
  margin-top: 3.5rem;
}

.campus-card {
  background: var(--bg-card);
  border: 1px solid var(--line-dim);
  border-radius: 14px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3.5rem;
  position: relative;
  overflow: hidden;
}

.campus-card-content h3 {
  font-family: var(--f-head);
  font-size: 1.85rem;
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: #fff;
}

.campus-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.campus-meta-item dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.campus-meta-item dd {
  font-weight: 700;
  color: #fff;
  margin: 0;
  font-size: 0.95rem;
}

.campus-visual {
  background: radial-gradient(circle at center, rgba(255, 119, 0, 0.1) 0%, rgba(7, 8, 10, 0.8) 75%), #0c1017;
  border: 1px solid rgba(255, 119, 0, 0.25);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.campus-visual-pin {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 119, 0, 0.15);
  border: 2px solid var(--ember);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ember);
  margin-bottom: 1rem;
  box-shadow: 0 0 24px var(--ember-glow);
  animation: pulse-dot 2s infinite ease-in-out;
}

.campus-visual-coords {
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--ember-bright);
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.campus-visual-name {
  font-family: var(--f-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

/* FAQ Accordion */
.faq-section {
  margin-top: 3.5rem;
}

.faq-section h2 {
  font-family: var(--f-head);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.4rem;
  color: #fff;
}

.faq-section-desc {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line-dim);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover, .faq-item.open {
  border-color: rgba(255, 115, 0, 0.4);
}

.faq-btn {
  width: 100%;
  padding: 1.1rem 1.4rem;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--f-head);
  font-size: 1.25rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.faq-chevron {
  transition: transform 0.25s ease;
  color: var(--ember);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 1.4rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.6;
  display: none;
}

.faq-item.open .faq-body {
  display: block;
}

/* Responsive updates for Contact */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .campus-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablets & Mobile Viewports)
   ========================================================================== */
@media (max-width: 992px) {
  /* Navigation Bar & Header for Tablets & Mobile */
  .site-header {
    border-bottom: 1px solid rgba(255, 115, 0, 0.3);
  }

  .nav-bar {
    min-height: 64px;
    gap: 1rem;
  }

  .brand-logo-img {
    height: 42px;
  }

  .nav-container {
    background: transparent;
    border: none;
    padding: 0;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    background: rgba(14, 18, 26, 0.9);
    border: 1px solid var(--line-glow);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .nav-toggle:hover {
    background: rgba(255, 119, 0, 0.15);
    border-color: var(--ember);
  }

  .nav-list {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    background: rgba(8, 10, 14, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 2px solid var(--ember);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.9);
    z-index: 999;
    gap: 4px;
  }

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

  .nav-list a {
    width: 100%;
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 1.05rem;
    text-align: left;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-list a[aria-current="page"] {
    background: var(--ember-pill);
    color: #07080a;
    font-weight: 700;
  }

  .nav-item-dropdown {
    width: 100%;
  }

  .nav-dropdown-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .dropdown-menu {
    position: static;
    display: none;
    transform: none;
    min-width: 0;
    width: 100%;
    margin: 4px 0 8px 0;
    background: rgba(16, 21, 32, 0.95);
    border: 1px solid rgba(255, 119, 0, 0.25);
    border-radius: 8px;
    padding: 6px;
    box-shadow: none;
  }

  .dropdown-menu::before {
    display: none;
  }

  .nav-item-dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    padding: 9px 14px;
    font-size: 0.95rem;
    color: #e2e8f0;
    min-height: 40px;
  }

  /* Hero Section */
  .hero-main-content {
    grid-template-columns: 1fr;
    padding-top: 2rem;
    padding-bottom: 2rem;
    gap: 2rem;
  }
  
  .hero-text-block {
    max-width: 100%;
  }

  .hero-interactive-fitness {
    width: 100%;
    min-height: auto;
  }

  .hud-stage {
    position: relative;
    width: 100%;
    max-width: 540px;
    height: auto;
    flex-direction: column;
    align-items: center;
    perspective: none !important;
    transform: none !important;
    margin-inline: auto;
  }

  .hud-canvas-wrap {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 440px;
    height: 300px;
    margin-bottom: 1rem;
  }

  .fitness-canvas {
    max-width: 440px;
    max-height: 300px;
  }

  .telemetry-cards-group {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 520px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    pointer-events: auto;
  }

  .telemetry-card {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100%;
    min-width: 0 !important;
  }

  .card-shield {
    grid-column: 1 / -1;
  }

  .feature-ribbon-wrap {
    margin-bottom: 1.2rem;
  }

  .feature-ribbon {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 18px 20px;
    clip-path: none;
    border-radius: 12px;
    border: 1px solid var(--line-glow);
  }

  .feature-ribbon::before {
    display: none;
  }

  .feature-item + .feature-item::before {
    display: none;
  }

  .facts {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .flow {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .flow-arrow svg {
    transform: rotate(90deg);
  }

  .component, .component.rev {
    grid-template-columns: 1fr;
    padding: 1.6rem;
    gap: 1.6rem;
  }

  .component.rev .c-media {
    order: 0;
  }

  /* Domain / Scope Page */
  .with-toc {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: 2rem 3.5rem;
  }

  .toc {
    position: static;
    background: var(--bg-card);
    border: 1px solid var(--line-dim);
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
  }

  .toc ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-left: none;
  }

  .toc a {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
    margin-left: 0;
    border-left: none;
  }

  .toc a:hover {
    background: rgba(255, 119, 0, 0.16);
    border-color: var(--ember);
    color: #ffffff;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  /* Contact Page */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  /* Team / About Page */
  .team {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 2rem, var(--wrap));
  }

  .page-head {
    padding-block: 2.2rem 2rem;
  }

  .page-head h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .crumbs {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
  }

  .hero-main-content {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    gap: 1.5rem;
  }

  .hero-accent-bar {
    margin-bottom: 16px;
  }

  .hero-title {
    font-size: clamp(2.1rem, 8.5vw, 2.7rem);
    line-height: 1.1;
    margin-bottom: 14px;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-desc {
    font-size: 0.98rem;
    line-height: 1.55;
    margin-bottom: 22px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .btn-hero-primary, .btn-hero-secondary {
    width: 100%;
    justify-content: center;
    padding: 13px 22px;
    font-size: 0.98rem;
    min-height: 48px;
  }

  .hud-modes {
    width: 100%;
    max-width: 360px;
    padding: 3px;
    gap: 4px;
  }

  .hud-tab {
    padding: 6px 10px;
    font-size: 0.76rem;
    flex: 1;
    justify-content: center;
  }

  .hud-canvas-wrap {
    max-width: 340px;
    height: 250px;
    margin-bottom: 0.8rem;
  }

  .fitness-canvas {
    max-width: 340px;
    max-height: 250px;
  }

  .telemetry-cards-group {
    grid-template-columns: 1fr;
    max-width: 340px;
    gap: 10px;
  }

  .telemetry-card {
    padding: 12px 14px;
  }

  .card-shield {
    grid-column: auto;
  }

  .card-shield .shield-desc {
    max-width: none;
  }

  .facts {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .fact-card {
    padding: 1.2rem 1rem;
  }

  .fact-num {
    font-size: 2.3rem;
  }

  .fact-label {
    font-size: 0.85rem;
  }

  /* Technologies filter & cards */
  .tech-filter-bar {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    padding: 5px;
    scrollbar-width: none;
  }

  .tech-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .tech-filter-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .tech-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tech-card {
    padding: 1.2rem;
  }

  /* Milestones */
  .picker {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .picker select {
    width: 100%;
    min-height: 44px;
    font-size: 1rem;
  }

  .ms-panel {
    padding: 1.4rem 1.2rem;
  }

  .ms-meta {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    padding: 1rem;
  }

  .ms-meta dd {
    font-size: 1.15rem;
  }

  /* Documents & Slides item rows */
  .items li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 0;
  }

  .items li .name {
    width: 100%;
  }

  .items li small {
    display: block;
    margin-top: 0.25rem;
  }

  /* Team */
  .team {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .person {
    padding: 1.3rem;
  }

  /* Contact Form */
  form input, form textarea, form select {
    padding: 0.75rem;
    font-size: 1rem;
    min-height: 44px;
  }

  form button[type="submit"] {
    width: 100%;
    min-height: 46px;
  }

  /* Tables */
  th, td {
    padding: 0.6rem 0.75rem;
    font-size: 0.88rem;
  }

  /* Project Scope (Domain) Mobile Content Refinements */
  .with-toc {
    gap: 1.5rem;
    padding-block: 1.5rem 3rem;
  }

  .toc {
    padding: 1rem;
    border-radius: 10px;
  }

  .toc strong {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
  }

  .toc a {
    padding: 5px 12px;
    font-size: 0.82rem;
  }

  .theme, .mod {
    padding: 1.1rem 1.2rem;
    border-radius: 0 10px 10px 0;
    margin: 1.2rem 0;
  }

  .callout {
    padding: 1rem 1.2rem;
    border-radius: 0 8px 8px 0;
    margin: 1.2rem 0;
    font-size: 0.94rem;
  }

  .figure {
    padding: 0.75rem;
    margin: 1.4rem 0;
  }

  .figure figcaption {
    font-size: 0.82rem;
  }

  .doc ul, .doc ol {
    padding-left: 1.2rem;
  }

  .doc section {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }

  .sitemap {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .site-footer {
    padding-block: 2.8rem 1.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    padding-bottom: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }
}

@media (max-width: 380px) {
  .wrap {
    width: min(100% - 1.25rem, var(--wrap));
  }

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

  .ms-meta {
    grid-template-columns: 1fr;
  }

  .hud-modes {
    flex-direction: column;
    border-radius: 12px;
  }

  .hud-tab {
    width: 100%;
    border-radius: 8px;
  }

  .hud-canvas-wrap {
    max-width: 280px;
    height: 210px;
  }

  .fitness-canvas {
    max-width: 280px;
    max-height: 210px;
  }

  .hero-title {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
