/* ============================================================
   components.css — Reusable UI Components
   ============================================================ */

/* ===================== GLASS PANELS ===================== */
.glass {
  background: rgba(28, 27, 27, 0.70);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-top: var(--border-cyan-dim);
  border-left: 1px solid rgba(0, 242, 255, 0.04);
}

.glass-card {
  background: rgba(28, 27, 27, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: var(--border-glass);
}

.glass-panel {
  padding: 24px;
}

@media (min-width: 768px) {
  .glass-panel { padding: 48px; }
}

/* ===================== PROJECT CARDS ===================== */
.project-card {
  padding: 16px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: transform var(--dur-slow) var(--ease-smooth),
              border-color var(--dur-base) var(--ease-smooth),
              box-shadow var(--dur-base) var(--ease-smooth),
              background var(--dur-base);
  will-change: transform;
}

@media (min-width: 768px) {
  .project-card { padding: 24px; }
}

.project-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(0, 242, 255, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.project-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

@media (max-width: 767px) {
  .project-card h3 {
    font-size: 1.15rem !important;
  }
}

.glass-dark {
  background: rgba(14, 14, 14, 0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: var(--border-glass);
}

/* ===================== GLOW BORDERS ===================== */
.glow-border-top {
  box-shadow: 0 -1px 0 0 rgba(0, 242, 255, 0.30);
  border-top: var(--border-cyan-glow);
}

.glow-border-left {
  border-left: var(--border-cyan-glow);
}

.glow-border-inset {
  box-shadow: inset 0 1px 0 0 rgba(0, 242, 255, 0.10);
}

.glow-border-full {
  border: var(--border-cyan-glow);
}

/* ===================== BACKGROUNDS ===================== */
.bg-digital-grid-global {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.2;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(58, 73, 75, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(58, 73, 75, 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
}

.bg-dot-grid {
  background-image: radial-gradient(circle at 2px 2px, rgba(58, 73, 75, 0.18) 1px, transparent 0);
  background-size: 40px 40px;
}

.bg-surface-low {
  background-color: var(--surface-low);
}

.bg-surface-mid {
  background-color: var(--surface-mid);
}

.bg-surface-high {
  background-color: var(--surface-high);
}

.bg-surface-highest {
  background-color: var(--surface-highest);
}

/* === Ambient Bloom Orbs === */
.bloom {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.15;
  max-width: 100vw;
  z-index: 0;
}

.bloom-cyan {
  background: radial-gradient(circle, #00f2ff 0%, transparent 70%);
}

.bloom-purple {
  background: radial-gradient(circle, #7701d0 0%, transparent 70%);
}

.bloom-amber {
  background: radial-gradient(circle, #ffe173 0%, transparent 70%);
}

@media (max-width: 767px) {
  .bloom {
    width: 300px !important;
    height: 300px !important;
    filter: blur(40px);
  }
}

/* Bloom elements that animate get GPU promotion */
.bloom { will-change: opacity; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  transition: transform var(--dur-base) var(--ease-spring),
    box-shadow var(--dur-base) var(--ease-smooth),
    background var(--dur-base) var(--ease-smooth);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--on-primary-fixed);
  box-shadow: var(--glow-primary);
}

.btn-primary:hover {
  transform: scale(1.04) translateY(-1px);
  box-shadow: var(--glow-primary-hover);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  background: var(--surface-highest);
  color: var(--on-surface-variant);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  opacity: 0.6;
}

.btn-secondary {
  background: rgba(53, 53, 52, 0.80);
  color: var(--on-surface);
  border: 1px solid rgba(225, 253, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 242, 255, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--on-surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.13);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.625rem;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
}

/* ===================== BADGES / CHIPS ===================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-headline);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

.badge-cyan {
  background: rgba(0, 242, 255, 0.10);
  color: var(--primary-container);
  border: 1px solid rgba(0, 242, 255, 0.25);
}

.badge-purple {
  background: rgba(119, 1, 208, 0.15);
  color: var(--secondary);
  border: 1px solid rgba(119, 1, 208, 0.30);
}

.badge-amber {
  background: rgba(255, 225, 115, 0.10);
  color: var(--tertiary-fixed);
  border: 1px solid rgba(255, 225, 115, 0.25);
}

.badge-neutral {
  background: var(--surface-highest);
  color: var(--on-surface);
  border: 1px solid var(--outline-variant);
}

.badge-online {
  background: rgba(255, 225, 115, 0.12);
  color: var(--tertiary-fixed);
  border: 1px solid rgba(255, 225, 115, 0.30);
}

.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}

/* ===================== SKILL CHIPS ===================== */
.skill-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: rgba(53, 53, 52, 0.60);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-sm);
  font-family: var(--font-headline);
  font-size: 0.75rem;
  color: var(--primary-container);
  transition: border-color var(--dur-base), background var(--dur-base);
  cursor: default;
}

.skill-chip:hover {
  border-color: rgba(0, 242, 255, 0.50);
  background: rgba(0, 242, 255, 0.06);
}

/* ===================== STAT CARDS ===================== */
.stat-card {
  padding: 32px;
  transition: background var(--dur-base);
  cursor: default;
}

.stat-card:hover {
  background: var(--surface-highest);
}

.stat-card__value {
  font-family: var(--font-headline);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card__label {
  font-family: var(--font-headline);
  font-size: 0.5625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

/* ===================== PROJECT CARDS ===================== */
/* Note: .project-card is defined earlier in this file. This block
   handles additional tag/tech styles only. */

.project-card__tag {
  font-family: var(--font-headline);
  font-size: 0.5rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.project-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tech-tag {
  padding: 4px 10px;
  background: var(--surface-highest);
  border: 1px solid var(--outline-variant);
  font-family: var(--font-headline);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface);
}

/* ===================== SOCIAL CARDS ===================== */
.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 24px;
  background: rgba(45, 45, 45, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-md);
  transition: all var(--dur-base) var(--ease-smooth);
  text-decoration: none;
  overflow: hidden;
  position: relative;
  will-change: transform;
}

.social-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 242, 255, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity var(--dur-base);
}

.social-card:hover {
  background: rgba(55, 55, 55, 0.50);
  border-color: rgba(0, 242, 255, 0.40);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.social-card__icon {
  font-size: 2.25rem !important;
  color: var(--on-surface-variant);
  transition: color var(--dur-base), transform var(--dur-base);
  z-index: 1;
}

.social-card:hover .social-card__icon {
  color: var(--primary-container);
  transform: scale(1.1);
}

.social-card__label {
  font-family: var(--font-headline);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #8a8a8a;
  transition: color var(--dur-base);
  z-index: 1;
}

.social-card:hover .social-card__label {
  color: var(--on-surface);
}

/* ===================== TIMELINE ===================== */
.timeline {
  position: relative;
  padding: 48px 0;
}

.timeline__line {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 1px;
  border-left: 1px dashed rgba(255, 255, 255, 0.15);
  z-index: 0;
}

@media (min-width: 768px) {
  .timeline__line {
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
  }
}

.timeline__node {
  position: absolute;
  left: 24px;
  transform: translateX(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .timeline__node {
    left: 50%;
  }
}

.timeline__entry {
  position: relative;
  margin-bottom: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .timeline__entry {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .timeline__entry--right .timeline__card {
    margin-left: auto;
    margin-right: 0;
  }
}

.timeline__card {
  position: relative;
  z-index: 2;
  width: calc(100% - 64px);
  margin-left: 64px;
  padding: 32px;
  border-left: 1px solid var(--primary-container);
  transition: background var(--dur-base);
}

@media (min-width: 768px) {
  .timeline__card {
    width: 42%;
    margin-left: 0;
  }
}

.timeline__card:hover {
  background: var(--surface-high) !important;
}

/* ===================== CONTACT INPUTS ===================== */
.field {
  margin-bottom: 32px;
}

.field__label {
  display: block;
  font-family: var(--font-headline);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7a7a7a;
  margin-bottom: 12px;
  transition: color var(--dur-base);
}

.field:focus-within .field__label {
  color: var(--primary-container);
}

.field__input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--on-surface);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  outline: none;
  transition: all var(--dur-slow) var(--ease-smooth);
}

.field__input:focus {
  border-bottom-color: var(--primary-container);
}

.field__input::placeholder {
  color: #5a5a5a;
}

.turnstile-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 32px 0 !important;
  min-height: 65px;
  /* Prevent layout jump */
}

.field__input--select {
  appearance: none;
  cursor: pointer;
  color-scheme: dark;
  background: var(--surface-lowest);
}

.field__input--select option {
  background-color: var(--surface-low);
  color: var(--on-surface);
}

/* ===================== NAVIGATION ===================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(14, 14, 14, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 30px rgba(0, 242, 255, 0.06);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.nav__logo-text {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--primary-container);
  font-variant: small-caps;
}

/* Centered absolutely so logo stays left and links are truly centered */
.nav__links {
  display: none;
  align-items: center;
  gap: 32px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }
}

.nav__link {
  font-family: var(--font-headline);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a9899;
  transition: color var(--dur-fast);
  position: relative;
  padding-bottom: 4px;
}

.nav__link:hover {
  color: var(--on-surface);
}

.nav__link.active {
  color: var(--primary-container);
}

.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-container);
  border-radius: 1px;
}

.nav__menu-btn {
  padding: 8px;
  border-radius: var(--radius-md);
  transition: background var(--dur-fast);
  color: var(--primary-container);
}

.nav__menu-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Show FAB and sheet as global touch-nav for phone & tablet */
.nav__menu-btn {
  display: none !important;
}

.nav__menu-btn--desktop {
  display: none !important;
}

/* ===================== MOBILE FAB ===================== */
.mobile-fab {
  display: none;
  /* hidden by default, shown on mobile only */
  position: fixed;
  bottom: 28px;
  right: 20px;
  z-index: calc(var(--z-nav) + 10);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: var(--glow-primary), 0 8px 32px rgba(0, 0, 0, 0.45);
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease-spring),
    box-shadow 0.25s var(--ease-smooth);
  overflow: hidden;
}

@media (max-width: 1023px) {
  .mobile-fab {
    display: flex;
  }
}

.mobile-fab:active {
  transform: scale(0.92);
}

.mobile-fab__icon {
  position: absolute;
  font-size: 1.4rem !important;
  color: #0a0a0a;
  transition: opacity 0.2s, transform 0.25s var(--ease-spring);
}

.mobile-fab__icon--close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

/* When sheet is open, swap icons */
.mobile-fab.open .mobile-fab__icon:not(.mobile-fab__icon--close) {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

.mobile-fab.open .mobile-fab__icon--close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Pulse ring on idle */
.mobile-fab::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(0, 242, 255, 0.35);
  animation: fabPulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes fabPulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }

  50% {
    opacity: 0;
    transform: scale(1.35);
  }
}

/* ===================== BOTTOM SHEET OVERLAY ===================== */
.bottom-sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) + 8);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s var(--ease-smooth);
}

.bottom-sheet-overlay.open {
  display: block;
  opacity: 1;
}

/* ===================== SCROLL TO TOP ===================== */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 88px;
  /* Sidebar (64px) + margin (24px) */
  z-index: var(--z-nav);
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: rgba(28, 27, 27, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 242, 255, 0.15);
  color: var(--primary-container);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s var(--ease-smooth);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);

  /* Initial hidden state */
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.9);
  pointer-events: none;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-top:hover {
  background: rgba(45, 45, 45, 0.85);
  border-color: var(--primary-container);
  box-shadow: var(--glow-primary-dim);
  transform: translateY(-4px);
}

.scroll-top:active {
  transform: translateY(0) scale(0.95);
}

.scroll-top .material-symbols-outlined {
  font-size: 1.35rem !important;
  font-variation-settings: 'wght' 700;
  transition: transform 0.3s;
}

.scroll-top:hover .material-symbols-outlined {
  transform: translateY(-3px);
}

@media (max-width: 1023px) {
  .scroll-top {
    bottom: 104px;
    /* Space above FAB */
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* ===================== MOBILE BOTTOM SHEET ===================== */
.mobile-bottom-sheet {
  display: none;
  /* mobile only */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: calc(var(--z-nav) + 9);
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-top: 1px solid rgba(0, 242, 255, 0.12);
  border-radius: 24px 24px 0 0;
  padding: 0 0 env(safe-area-inset-bottom, 16px);
  transform: translateY(105%);
  transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.55),
    0 -1px 0 rgba(0, 242, 255, 0.06);
}

@media (max-width: 1023px) {
  .mobile-bottom-sheet {
    display: block;
  }
}

.mobile-bottom-sheet.open {
  transform: translateY(0);
}

/* Drag handle */
.bottom-sheet__handle {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  margin: 14px auto 0;
}

/* Sheet header */
.bottom-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bottom-sheet__title {
  font-family: var(--font-headline);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--primary-container);
  font-variant: small-caps;
}

.bottom-sheet__dots {
  display: flex;
  gap: 6px;
}

.bottom-sheet__dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0, 242, 255, 0.35);
  animation: pulse 2s ease-in-out infinite;
}

.bottom-sheet__dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.bottom-sheet__dots span:nth-child(3) {
  animation-delay: 0.4s;
}

/* Nav grid inside sheet */
.bottom-sheet__nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 18px 16px;
}

/* Each nav button rendered by renderer.js */
.bottom-sheet__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: var(--radius-lg);
  background: rgba(28, 28, 28, 0.80);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease-spring);
  font-family: var(--font-headline);
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

.bottom-sheet__btn:active {
  transform: scale(0.93);
}

.bottom-sheet__btn .material-symbols-outlined {
  font-size: 1.5rem !important;
  transition: color 0.2s;
}

.bottom-sheet__btn.active,
.bottom-sheet__btn:hover {
  background: rgba(0, 242, 255, 0.07);
  border-color: rgba(0, 242, 255, 0.22);
  color: var(--primary-container);
}

.bottom-sheet__btn.active .material-symbols-outlined,
.bottom-sheet__btn:hover .material-symbols-outlined {
  color: var(--primary-container);
}

/* Sheet footer */
.bottom-sheet__footer {
  padding: 12px 24px 96px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-family: var(--font-headline);
  font-size: 0.4375rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #7a8a8b;
  text-align: center;
}

/* Mission card bento offset - only on desktop/tablet */
.mission-nav-card--offset {
  margin-top: 0;
}

@media (min-width: 768px) {
  .mission-nav-card--offset {
    margin-top: 48px;
  }
}

/* ===================== ERROR / 404 COMPONENTS ===================== */
.glitch-text {
  text-shadow: 2.5px 0 rgba(0, 242, 255, 0.7), -2.5px 0 rgba(119, 1, 208, 0.7);
  animation: glitch-jitter 4s infinite;
}

@keyframes glitch-jitter {

  0%,
  100% {
    transform: none;
    opacity: 1;
  }

  7% {
    transform: skew(-0.5deg, -0.9deg);
    opacity: 0.75;
  }

  10% {
    transform: none;
    opacity: 1;
  }

  27% {
    transform: none;
    opacity: 1;
  }

  30% {
    transform: skew(0.8deg, -0.1deg);
    opacity: 0.8;
  }

  35% {
    transform: none;
    opacity: 1;
  }
}

.status-node {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: rgba(255, 180, 171, 0.05);
  border: 1px solid rgba(255, 180, 171, 0.15);
  border-radius: 4px;
  backdrop-filter: blur(8px);
}

.status-node__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffb4ab;
  box-shadow: 0 0 10px #ffb4ab;
  animation: pulse 1.5s ease-in-out infinite;
}

.status-node__text {
  font-family: var(--font-headline);
  font-size: 0.625rem;
  letter-spacing: 0.25rem;
  text-transform: uppercase;
  color: #ffb4ab;
}

/* ===================== DRAWER ===================== */
.drawer {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100%;
  width: 280px;
  z-index: var(--z-drawer);
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: -20px 0 60px rgba(119, 1, 208, 0.18);
  transition: right var(--dur-slow) var(--ease-smooth);
  display: flex;
  flex-direction: column;
  padding: 32px;
}

.drawer.open {
  right: 0;
}

.drawer__overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-drawer) - 1);
  background: rgba(0, 0, 0, 0.55);
  display: none;
}

.drawer__overlay.open {
  display: block;
}

.drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

.drawer__title {
  font-family: var(--font-headline);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-container);
  font-style: italic;
}

.drawer__close {
  color: #4a4a4a;
  transition: color var(--dur-fast);
  padding: 4px;
}

.drawer__close:hover {
  color: var(--on-surface);
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.drawer__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  color: #4a4a4a;
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: var(--radius-md);
  transition: color var(--dur-base), transform var(--dur-base) var(--ease-smooth), background var(--dur-base);
}

.drawer__link:hover {
  color: var(--primary);
  transform: translateX(8px);
  background: rgba(255, 255, 255, 0.03);
}

.drawer__link.active {
  color: var(--primary-container);
  background: rgba(0, 242, 255, 0.06);
  border-right: 3px solid var(--primary-container);
}

.drawer__footer {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===================== RIGHT SIDEBAR ===================== */
.sidebar-right {
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  width: 64px;
  z-index: var(--z-overlay);
  background: rgba(10, 10, 10, 0.30);
  backdrop-filter: blur(8px);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

@media (min-width: 1024px) {
  .sidebar-right {
    display: flex;
  }
}

.sidebar-right__icon {
  color: #6a7c7d;
  transition: color var(--dur-base);
  cursor: pointer;
  padding: 4px;
  font-size: 1.4rem !important;
}

.sidebar-right__icon:hover {
  color: var(--primary-container);
}

.sidebar-right__divider {
  width: 1px;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.20), transparent);
}

.sidebar-right__label {
  writing-mode: vertical-rl;
  font-family: var(--font-headline);
  font-size: 0.5rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: #4a5a5b;
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--surface-lowest);
  padding: 48px 32px 24px;
  background: var(--surface);
  border-top: 1px solid rgba(0, 242, 255, 0.05);
  display: block;
}

.footer__logo {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  font-variant: small-caps;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

.footer__link {
  font-family: var(--font-headline);
  font-size: 0.5625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #8a9a9b;
  transition: all var(--dur-base);
  width: fit-content;
}

.footer__link:hover {
  color: var(--primary-container);
  text-shadow: 0 0 12px rgba(0, 242, 255, 0.4);
}

.footer__copy {
  font-family: var(--font-headline);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #8a9a9b;
}

.footer__dots {
  display: flex;
  gap: 10px;
}

.footer__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0, 242, 255, 0.35);
  animation: pulse 2s ease-in-out infinite;
}

.footer__dot:nth-child(2) {
  animation-delay: 0.2s;
}

.footer__dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* ===================== SECTION HEADER ===================== */
.section-header {
  margin-bottom: 64px;
}

.section-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--surface-high);
  border: 1px solid rgba(58, 73, 75, 0.40);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.section-header__divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.section-header__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(58, 73, 75, 0.50), transparent);
}

/* ===================== PROGRESS BAR ===================== */
.progress-bar {
  height: 2px;
  background: var(--surface-highest);
  overflow: hidden;
  border-radius: 1px;
}

.progress-bar__fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 1px;
  transition: width 1.2s var(--ease-smooth);
}

/* ===================== LOADER SPINNER ===================== */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(0, 242, 255, 0.15);
  border-top-color: var(--primary-container);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ===================== TOAST ===================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: calc(var(--z-nav) + 50);
  padding: 14px 20px;
  background: var(--surface-high);
  border-left: 3px solid var(--primary-container);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-headline);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateX(120%);
  transition: transform var(--dur-slow) var(--ease-spring);
  box-shadow: var(--glow-primary);
}

.toast.show {
  transform: translateX(0);
}

/* ===================== FILTER BUTTONS ===================== */
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  row-gap: 14px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 18px;
  background: var(--surface-high);
  border: 1px solid rgba(58, 73, 75, 0.35);
  border-radius: var(--radius-sm);
  font-family: var(--font-headline);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  transition: all var(--dur-base);
  cursor: pointer;
}

.filter-btn:hover {
  color: var(--primary);
  border-color: rgba(0, 242, 255, 0.30);
}

.filter-btn.active {
  background: var(--primary-container);
  color: var(--on-primary-fixed);
  border-color: var(--primary-container);
}

/* ===================== MISSION NAV CARDS ===================== */
.mission-nav-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  background: rgba(20, 20, 20, 0.70);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  transition: transform 0.25s var(--ease-spring),
    box-shadow 0.25s var(--ease-smooth),
    background 0.25s var(--ease-smooth),
    border-color 0.25s var(--ease-smooth);
}

/* Per-card top accent line */
.mission-nav-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--card-accent, var(--primary-container));
  opacity: 0.6;
  transition: opacity 0.25s;
}

/* Subtle inner glow from accent color */
.mission-nav-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--card-glow, rgba(0, 242, 255, 0.06));
  border-radius: inherit;
  pointer-events: none;
  transition: opacity 0.25s;
  opacity: 1;
}

.mission-nav-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-accent, var(--primary-container));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px var(--card-accent, var(--primary-container));
}

.mission-nav-card:hover .mission-nav-card__accent {
  opacity: 1;
}

.mission-nav-card:hover::before {
  opacity: 1.6;
}

.mission-nav-card__icon {
  font-size: 2.25rem;
  margin-bottom: 10px;
  transition: transform 0.25s var(--ease-spring);
}

.mission-nav-card:hover .mission-nav-card__icon {
  transform: scale(1.15);
}

.mission-nav-card__title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--on-surface);
  margin: 0;
}

.mission-nav-card__sub {
  font-family: var(--font-headline);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4a5a5b;
  margin-top: 6px;
  transition: color 0.25s;
}

.mission-nav-card:hover .mission-nav-card__sub {
  color: var(--card-accent, var(--primary-container));
}

/* Arrow indicator bottom-right */
.mission-nav-card__arrow {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.875rem !important;
  color: rgba(255, 255, 255, 0.12);
  transition: color 0.25s, transform 0.25s;
}

.mission-nav-card:hover .mission-nav-card__arrow {
  color: var(--card-accent, var(--primary-container));
  transform: translate(2px, -2px);
}