/**
 * Section-Specific Styles
 * Styles for navigation, hero, about, skills, projects, experience, and contact sections
 */

/* ===== Navigation Bar ===== */

/**
 * Navigation component with glassmorphism
 * Requirements: 4.1, 5.1, 5.2, 5.5, 10.1
 */

/* Base navigation styles */
.nav {
  position: fixed;
  top: 8px;
  left: var(--spacing-sm);
  right: var(--spacing-sm);
  width: auto;
  z-index: var(--z-index-fixed);
  transition:
    background var(--transition-base) var(--easing-default),
    border-color var(--transition-base) var(--easing-default),
    box-shadow var(--transition-base) var(--easing-default);
  
  /* Glassmorphism effect - Requirement 4.1 */
  /* Fallback for browsers without backdrop-filter support */
  background: rgba(17, 17, 17, 0.92);
  background:
    linear-gradient(
      140deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.02) 26%,
      rgba(17, 17, 17, 0.9) 56%,
      rgba(17, 17, 17, 0.95) 100%
    ),
    radial-gradient(
      120% 160% at 12% -40%,
      rgba(255, 255, 255, 0.14) 0%,
      rgba(255, 255, 255, 0) 55%
    );
  border: none;
  border-radius: var(--radius-lg);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  overflow: visible;
  isolation: isolate;
  --liquid-pointer-x: 50%;
  --liquid-pointer-y: 50%;
  --liquid-pointer-o: 0;
  --nav-progress-scale: 0.142857;
}

.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--liquid-pointer-x) var(--liquid-pointer-y),
    rgba(255, 255, 255, calc(var(--liquid-pointer-o) * 0.75)) 0%,
    rgba(255, 255, 255, calc(var(--liquid-pointer-o) * 0.3)) 24%,
    rgba(255, 255, 255, 0) 58%
  );
  pointer-events: none;
}

.nav::after {
  content: '';
  position: absolute;
  inset: 0;
  border: none;
  border-radius: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.nav__progress {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 8px;
  height: 2px;
  border-radius: var(--radius-full);
  overflow: hidden;
  pointer-events: none;
  opacity: 0.48;
  background: rgba(245, 245, 245, 0.08);
}

.nav__progress::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform: scaleX(var(--nav-progress-scale));
  transform-origin: left center;
  transition: transform 260ms var(--easing-default);
  background: linear-gradient(
    90deg,
    rgba(245, 245, 245, 0.22) 0%,
    rgba(245, 245, 245, 0.5) 74%,
    rgba(245, 245, 245, 0.72) 100%
  );
  box-shadow: 0 0 12px rgba(245, 245, 245, 0.12);
}

.nav__progress::after {
  content: '';
  position: absolute;
  top: 50%;
  left: calc((100% * var(--nav-progress-scale)) - 8px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: left 260ms var(--easing-default);
  background: radial-gradient(
    circle,
    rgba(245, 245, 245, 0.92) 0%,
    rgba(245, 245, 245, 0.48) 42%,
    rgba(245, 245, 245, 0.08) 72%,
    rgba(245, 245, 245, 0) 100%
  );
  filter: blur(1.6px);
  box-shadow:
    0 0 14px rgba(245, 245, 245, 0.28),
    0 0 24px rgba(245, 245, 245, 0.14);
  animation: nav-progress-tip-flicker 1.9s steps(2, end) infinite;
}

@keyframes nav-progress-tip-flicker {
  0%,
  18%,
  52%,
  100% {
    opacity: 0.84;
    filter: blur(1.6px) brightness(1);
  }

  10%,
  44%,
  72% {
    opacity: 1;
    filter: blur(1.9px) brightness(1.16);
  }

  14%,
  48% {
    opacity: 0.72;
    filter: blur(1.4px) brightness(0.92);
  }
}

/* Enhanced glassmorphism for supported browsers */
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .nav {
    background: linear-gradient(
      150deg,
      rgba(255, 255, 255, 0.15) 0%,
      rgba(255, 255, 255, 0.04) 24%,
      rgba(17, 17, 17, 0.7) 46%,
      rgba(17, 17, 17, 0.84) 100%
    );
    backdrop-filter: blur(calc(var(--blur-xl) + 4px)) saturate(140%);
    -webkit-backdrop-filter: blur(calc(var(--blur-xl) + 4px)) saturate(140%);
  }
}

/* Scrolled state - enhanced glass effect */
.nav--scrolled {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(17, 17, 17, 0.92) 48%,
    rgba(17, 17, 17, 0.96) 100%
  );
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .nav--scrolled {
    background: linear-gradient(
      150deg,
      rgba(255, 255, 255, 0.14) 0%,
      rgba(17, 17, 17, 0.82) 50%,
      rgba(17, 17, 17, 0.92) 100%
    );
    backdrop-filter: blur(calc(var(--blur-lg) + 2px)) saturate(128%);
    -webkit-backdrop-filter: blur(calc(var(--blur-lg) + 2px)) saturate(128%);
  }
}

/* Navigation container */
.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: var(--spacing-md) var(--spacing-lg);
}

/* Logo/Brand */
.nav__logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-light);
  line-height: 1;
  text-decoration: none;
  transition: color var(--transition-fast) var(--easing-default);
  z-index: calc(var(--z-index-fixed) + 1);
}

.nav__logo-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  border: 1px dotted rgba(245, 245, 245, 0.28);
  border-radius: var(--radius-full);
  box-shadow:
    inset 0 0 0 1px rgba(245, 245, 245, 0.06),
    0 0 16px rgba(17, 17, 17, 0.32);
  pointer-events: none;
  animation: nav-logo-orbit 7.2s linear infinite;
}

.nav__logo-orbit-star {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-light);
  text-shadow:
    0 0 6px rgba(245, 245, 245, 0.6),
    0 0 10px rgba(168, 168, 168, 0.5);
  animation: nav-logo-star-pulse 1.9s ease-in-out infinite;
}

.nav__logo-icon {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  transform: scale(1.3);
  transform-origin: center;
  border-radius: 0;
  box-shadow: none;
  transition: transform var(--transition-fast) var(--easing-default),
              box-shadow var(--transition-fast) var(--easing-default);
}

.nav__logo:hover .nav__logo-icon {
  transform: scale(1.36);
  box-shadow: none;
}

.nav__logo-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-light);
  background: linear-gradient(
    145deg,
    rgba(168, 168, 168, 0.85) 0%,
    rgba(38, 38, 38, 0.95) 100%
  );
  border: 1px solid rgba(245, 245, 245, 0.3);
  box-shadow:
    0 0 0 1px rgba(245, 245, 245, 0.14),
    0 10px 24px rgba(17, 17, 17, 0.34),
    0 0 20px rgba(168, 168, 168, 0.22);
  overflow: hidden;
  transform-style: preserve-3d;
  animation: logo-float 2.4s ease-in-out infinite,
             logo-glow 3.8s ease-in-out infinite;
}

.nav__logo-mark::before {
  content: '';
  position: absolute;
  inset: -20%;
  border-radius: inherit;
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0.12) 28%,
      rgba(255, 255, 255, 0) 55%
    ),
    radial-gradient(
      circle at 72% 78%,
      rgba(168, 168, 168, 0.35) 0%,
      rgba(168, 168, 168, 0.08) 36%,
      rgba(168, 168, 168, 0) 62%
    );
  mix-blend-mode: screen;
  animation: logo-liquid 2.9s ease-in-out infinite;
}

.nav__logo-mark::after {
  content: '';
  position: absolute;
  inset: -35%;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 65%
  );
  transform: translateX(-130%);
  animation: logo-shimmer 2.5s ease-in-out infinite;
}

.nav__logo:hover .nav__logo-mark {
  animation-duration: 1.8s, 2.6s;
  box-shadow:
    0 0 0 1px rgba(245, 245, 245, 0.2),
    0 14px 28px rgba(17, 17, 17, 0.4),
    0 0 26px rgba(168, 168, 168, 0.32);
}

.nav__logo-fallback {
  display: none;
}

@keyframes logo-float {
  0%, 100% {
    transform: translateY(0) rotate(-2deg) scale(1);
  }
  25% {
    transform: translateY(-2px) rotate(1deg) scale(1.02);
  }
  50% {
    transform: translateY(-4px) rotate(3deg) scale(1.04);
  }
  75% {
    transform: translateY(-1px) rotate(0deg) scale(1.01);
  }
}

@keyframes logo-shimmer {
  0%, 22% {
    transform: translateX(-130%);
  }
  48%, 100% {
    transform: translateX(130%);
  }
}

@keyframes logo-liquid {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  40% {
    transform: translate3d(3%, -4%, 0) scale(1.04);
  }
  70% {
    transform: translate3d(-2%, 3%, 0) scale(0.98);
  }
}

@keyframes logo-glow {
  0%, 100% {
    filter: brightness(1) saturate(1);
  }
  50% {
    filter: brightness(1.12) saturate(1.14);
  }
}

@keyframes nav-logo-orbit {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes nav-logo-star-pulse {
  0%, 100% {
    opacity: 0.72;
    filter: brightness(1) saturate(1);
  }
  50% {
    opacity: 1;
    filter: brightness(1.2) saturate(1.12);
  }
}

.nav__logo:hover {
  color: var(--color-light-accent);
}

.nav__logo:focus {
  outline: 2px solid var(--color-light-accent);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* Theme mode toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--touch-target-min);
  min-height: var(--touch-target-min);
  width: var(--touch-target-min);
  height: var(--touch-target-min);
  padding: 0;
  border: 1px solid rgba(245, 245, 245, 0.2);
  border-radius: var(--radius-full);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  color: var(--color-primary-light);
  box-shadow:
    0 8px 18px rgba(17, 17, 17, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition:
    transform var(--transition-fast) var(--easing-default),
    box-shadow var(--transition-fast) var(--easing-default),
    border-color var(--transition-fast) var(--easing-default),
    background var(--transition-fast) var(--easing-default);
}

.theme-toggle--mobile {
  display: none;
  margin-left: auto;
  margin-right: var(--spacing-sm);
}

.theme-toggle--desktop {
  margin-left: var(--spacing-xs);
}

.theme-toggle:hover {
  transform: translateY(-1px) scale(1.03);
  border-color: rgba(245, 245, 245, 0.34);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--color-light-accent);
  outline-offset: 2px;
}

.theme-toggle__icon {
  font-size: 1rem;
  line-height: 1;
}

/* Mobile menu toggle button */
.nav__toggle {
  display: none; /* Hidden by default, shown on mobile */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: var(--touch-target-min);
  min-height: var(--touch-target-min);
  width: var(--touch-target-min);
  height: var(--touch-target-min);
  padding: var(--spacing-sm);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  border: 1px solid rgba(245, 245, 245, 0.24);
  border-radius: var(--radius-full);
  box-shadow:
    0 8px 18px rgba(17, 17, 17, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  cursor: pointer;
  z-index: calc(var(--z-index-fixed) + 1);
  transition:
    transform var(--transition-fast) var(--easing-default),
    box-shadow var(--transition-fast) var(--easing-default),
    border-color var(--transition-fast) var(--easing-default);
}

.nav__toggle:hover {
  transform: translateY(-1px) scale(1.03);
  border-color: rgba(245, 245, 245, 0.34);
  box-shadow:
    0 10px 22px rgba(17, 17, 17, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.nav__toggle:focus {
  outline: 2px solid var(--color-light-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.nav__toggle:active {
  transform: scale(0.96);
}

/* Hamburger icon */
.nav__toggle-icon {
  position: relative;
  width: 22px;
  height: 2.5px;
  background: var(--color-primary-light);
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px rgba(245, 245, 245, 0.22);
  transition:
    background var(--transition-base) var(--easing-default),
    box-shadow var(--transition-base) var(--easing-default);
}

.nav__toggle-icon::before,
.nav__toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  height: 2.5px;
  background: var(--color-primary-light);
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px rgba(245, 245, 245, 0.2);
  transition:
    transform var(--transition-base) var(--easing-default),
    width var(--transition-base) var(--easing-default),
    box-shadow var(--transition-base) var(--easing-default);
}

.nav__toggle-icon::before {
  top: -7px;
  width: 16px;
}

.nav__toggle-icon::after {
  bottom: -7px;
  width: 20px;
}

/* Hamburger icon animation when menu is open */
.nav__toggle[aria-expanded="true"] .nav__toggle-icon {
  background: transparent;
  box-shadow: none;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-icon::before {
  width: 22px;
  transform: translateY(8px) rotate(45deg);
  box-shadow: 0 0 12px rgba(245, 245, 245, 0.3);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-icon::after {
  width: 22px;
  transform: translateY(-8px) rotate(-45deg);
  box-shadow: 0 0 12px rgba(245, 245, 245, 0.3);
}

/* Navigation menu */
.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Navigation menu item */
.nav__item {
  margin: 0;
  padding: 0;
}

/* Navigation link */
.nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-target-min);
  padding: var(--spacing-sm) var(--spacing-md);
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-primary-light);
  text-decoration: none;
  border-radius: var(--radius-base);
  transition: all var(--transition-fast) var(--easing-default);
  position: relative;
}

/* Navigation link hover state */
.nav__link:hover {
  color: var(--color-light-accent);
  background: rgba(255, 255, 255, 0.05);
}

/* Navigation link focus state */
.nav__link:focus {
  outline: 2px solid var(--color-light-accent);
  outline-offset: 2px;
}

/* Active navigation link - Requirement 5.5 */
.nav__link--active {
  color: var(--color-light-accent);
  background: rgba(168, 168, 168, 0.15);
}

/* Active link indicator (underline) */
.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--color-light-accent);
  border-radius: var(--radius-full);
}

/* ===== Mobile Navigation Styles ===== */

/**
 * Mobile navigation - Requirement 5.4
 * Display mobile-friendly menu on screens < 768px
 */
@media (max-width: 767px) {
  .nav {
    top: 6px;
    left: 8px;
    right: 8px;
    border-radius: var(--radius-lg);
  }

  .nav__progress {
    left: 18px;
    right: 18px;
    bottom: 6px;
    opacity: 0.36;
  }

  .nav__logo-icon {
    width: 38px;
    height: 38px;
    transform: scale(1.32);
  }

  .nav__logo-orbit {
    width: 50px;
    height: 50px;
  }

  .nav__logo-orbit-star {
    top: -7px;
    font-size: 0.7rem;
  }

  .nav__logo-mark {
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
  }

  .theme-toggle {
    margin-right: 0;
  }

  /* Show mobile toggle button */
  .nav__toggle {
    display: flex;
  }

  .theme-toggle--desktop {
    display: none;
  }

  .theme-toggle--mobile {
    display: inline-flex;
    margin-right: var(--spacing-xs);
  }
  
  /* Mobile menu styling */
  .nav__menu {
    position: fixed;
    top: 72px;
    right: var(--spacing-sm);
    bottom: auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: var(--spacing-sm);
    width: min(82vw, 248px);
    max-width: 248px;
    height: auto;
    max-height: calc(100vh - 88px);
    padding: var(--spacing-md);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    
    /* Liquid-glass background */
    background: linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.26) 0%,
      rgba(17, 17, 17, 0.84) 58%,
      rgba(17, 17, 17, 0.93) 100%
    );
    border: 1px solid rgba(245, 245, 245, 0.28);
    border-radius: var(--radius-xl);
    box-shadow:
      0 18px 38px rgba(17, 17, 17, 0.42),
      0 0 0 1px rgba(245, 245, 245, 0.09),
      inset 0 1px 0 rgba(255, 255, 255, 0.26);
    
    /* Hidden by default */
    transform: translateX(100%);
    transition: transform var(--transition-base) var(--easing-default);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: var(--z-index-fixed);
    overflow: hidden;
    isolation: isolate;
    --liquid-pointer-x: 50%;
    --liquid-pointer-y: 50%;
    --liquid-pointer-o: 0.12;
  }

  .nav__menu::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(
        circle at var(--liquid-pointer-x) var(--liquid-pointer-y),
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.06) 30%,
        rgba(255, 255, 255, 0) 62%
      ),
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.32) 0%,
        rgba(255, 255, 255, 0) 52%
      );
    pointer-events: none;
  }

  .nav__menu::after {
    content: '';
    position: absolute;
    inset: -60% -20%;
    background: linear-gradient(
      120deg,
      rgba(255, 255, 255, 0) 42%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(255, 255, 255, 0) 58%
    );
    transform: translateX(-120%);
    animation: nav-mobile-sheen 4.8s ease-in-out infinite;
    pointer-events: none;
  }

  @keyframes nav-mobile-sheen {
    0%,
    62% {
      transform: translateX(-120%);
      opacity: 0;
    }
    72% {
      opacity: 0.8;
    }
    100% {
      transform: translateX(120%);
      opacity: 0;
    }
  }
  
  @supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
    .nav__menu {
      backdrop-filter: blur(var(--blur-xl)) saturate(128%);
      -webkit-backdrop-filter: blur(var(--blur-xl)) saturate(128%);
    }
  }
  
  /* Show menu when toggle is active */
  .nav__menu--open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  
  /* Mobile menu items */
  .nav__item {
    width: auto;
    max-width: 100%;
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    transition:
      opacity 280ms var(--easing-out),
      transform 280ms var(--easing-out);
  }

  .nav__menu--open .nav__item {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .nav__menu--open .nav__item:nth-child(1) { transition-delay: 40ms; }
  .nav__menu--open .nav__item:nth-child(2) { transition-delay: 80ms; }
  .nav__menu--open .nav__item:nth-child(3) { transition-delay: 120ms; }
  .nav__menu--open .nav__item:nth-child(4) { transition-delay: 160ms; }
  .nav__menu--open .nav__item:nth-child(5) { transition-delay: 200ms; }
  .nav__menu--open .nav__item:nth-child(6) { transition-delay: 240ms; }
  .nav__menu--open .nav__item:nth-child(7) { transition-delay: 280ms; }
  
  /* Mobile menu links */
  .nav__link {
    width: auto;
    min-width: 132px;
    justify-content: center;
    padding: var(--spacing-xs) var(--spacing-lg);
    min-height: 40px;
    font-size: var(--font-size-base);
    color: var(--color-primary-light);
    border: 1px solid rgba(245, 245, 245, 0.24);
    border-radius: var(--radius-full);
    background: linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.11) 0%,
      rgba(255, 255, 255, 0.04) 100%
    );
    box-shadow:
      0 8px 18px rgba(17, 17, 17, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  
  /* Active link indicator on mobile */
  .nav__link--active::after {
    bottom: 12px;
  }

  /* Hide active underline bar in hamburger menu */
  .nav__menu .nav__link--active::after {
    display: none;
  }

  .nav__link:hover,
  .nav__link:focus {
    transform: translateY(-1px);
    border-color: rgba(245, 245, 245, 0.34);
    background: linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.17) 0%,
      rgba(255, 255, 255, 0.06) 100%
    );
  }
  
  /* Adjust body padding for mobile nav height */
  body {
    padding-top: 0;
  }
}

/* ===== Tablet Navigation Styles ===== */

@media (min-width: 768px) and (max-width: 1023px) {
  .nav__container {
    padding: var(--spacing-md) var(--spacing-xl);
  }
  
  .nav__menu {
    gap: var(--spacing-xs);
  }
  
  .nav__link {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
  }
}

/* ===== Desktop Navigation Styles ===== */

@media (min-width: 1024px) {
  .nav__container {
    padding: var(--spacing-lg) var(--spacing-2xl);
  }
  
  .nav__menu {
    gap: var(--spacing-md);
  }
  
  .nav__link {
    padding: var(--spacing-sm) var(--spacing-lg);
  }
}

/* ===== Accessibility & Performance ===== */

/**
 * Reduced motion support
 * Requirement 7.6: Respect user motion preferences
 */
@media (prefers-reduced-motion: reduce) {
  .nav,
  .nav__logo,
  .nav__logo-icon,
  .nav__logo-orbit,
  .nav__logo-orbit-star,
  .nav__logo-mark,
  .nav__toggle,
  .nav__toggle-icon,
  .nav__toggle-icon::before,
  .nav__toggle-icon::after,
  .nav__menu,
  .nav__link {
    transition: none;
  }
  
  .nav__toggle:hover,
  .nav__toggle:active {
    transform: none;
  }

  .nav__logo-mark::after {
    animation: none;
  }

  .nav__logo-mark::before {
    animation: none;
  }

  .nav__menu::after {
    animation: none;
  }

  .nav {
    --liquid-pointer-o: 0;
  }
}

@media (pointer: coarse) {
  .nav {
    --liquid-pointer-o: 0;
  }
}

/**
 * High contrast mode support
 */
@media (prefers-contrast: high) {
  .nav {
    border-bottom-width: 2px;
    border-bottom-color: currentColor;
  }
  
  .nav__link {
    border: 1px solid transparent;
  }
  
  .nav__link:hover,
  .nav__link--active {
    border-color: currentColor;
  }
}

/**
 * Print styles - hide navigation when printing
 */
@media print {
  .nav {
    display: none;
  }
}

/* Safari tuning: reduce expensive blur layers for smoother scrolling/animation */
@supports (-webkit-touch-callout: none) {
  .nav {
    backdrop-filter: blur(var(--blur-lg)) saturate(122%);
    -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(122%);
  }

  .nav::before {
    background: radial-gradient(
      circle at var(--liquid-pointer-x) var(--liquid-pointer-y),
      rgba(255, 255, 255, calc(var(--liquid-pointer-o) * 0.55)) 0%,
      rgba(255, 255, 255, calc(var(--liquid-pointer-o) * 0.22)) 24%,
      rgba(255, 255, 255, 0) 58%
    );
  }

  .hero__contrib-grid {
    opacity: 0.7;
    filter: blur(0.8px);
  }

  .hero::before {
    filter: blur(var(--blur-lg));
    opacity: 0.52;
  }

  .hero::after {
    filter: blur(var(--blur-lg));
    opacity: 0.62;
  }
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 767px) {
    .hero__contrib-grid {
      opacity: 0.62;
      filter: blur(0.45px);
    }

    .hero::before,
    .hero::after {
      filter: blur(var(--blur-md));
      opacity: 0.42;
    }
  }
}

/* Edge tuning: reduce layered blur/filter cost while preserving visual style */
.is-edge .nav {
  backdrop-filter: blur(var(--blur-lg)) saturate(124%);
  -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(124%);
}

.is-edge .nav::before {
  background: radial-gradient(
    circle at var(--liquid-pointer-x) var(--liquid-pointer-y),
    rgba(255, 255, 255, calc(var(--liquid-pointer-o) * 0.52)) 0%,
    rgba(255, 255, 255, calc(var(--liquid-pointer-o) * 0.2)) 24%,
    rgba(255, 255, 255, 0) 58%
  );
}

.is-edge .hero__contrib-grid {
  opacity: 0.7;
  filter: blur(0.95px);
}

.is-edge .hero::before,
.is-edge .hero::after {
  filter: blur(var(--blur-lg));
}

/* ===== Body Padding for Fixed Navigation ===== */

/**
 * Add top padding to body to prevent content from being hidden under fixed nav
 */
body {
  padding-top: 0;
}

/* Shared section container spacing */
.section__container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

.section__content {
  width: 100%;
}

@media (max-width: 767px) {
  .section__container {
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
  }
}

/* ===== Hero Section ===== */

/**
 * Hero section - Landing area with introduction and CTA
 * Requirements: 1.1, 3.7, 11.1, 11.2
 * Properties: 3 (Responsive Layout), 4 (Minimum Font Size)
 */

/* Base hero section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-3xl) var(--spacing-lg);
  
  /* Background styling using color palette - Requirement 3.7 */
  background: linear-gradient(
    135deg,
    var(--color-primary-dark) 0%,
    var(--color-secondary-dark) 50%,
    var(--color-mid-tone) 100%
  );
  
  /* Ensure text is readable */
  color: var(--color-text-light);
  overflow: hidden;
  isolation: isolate;
  --hero-liquid-drift-a: 0px;
  --hero-liquid-drift-b: 0px;
}

.hero__contrib-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.78;
  filter: blur(1.25px);
  transform: scale(1.01);
}

.hero::before {
  content: '';
  position: absolute;
  top: -34%;
  left: -22%;
  width: 50%;
  height: 58%;
  background: radial-gradient(
    circle,
    rgba(168, 168, 168, 0.12) 0%,
    rgba(255, 255, 255, 0) 65%
  );
  filter: blur(var(--blur-xl));
  opacity: 0.65;
  transform: translate3d(
    calc(var(--hero-liquid-drift-a) * -0.7),
    calc(var(--hero-liquid-drift-a) * -1),
    0
  );
  transition: transform var(--transition-slow) var(--easing-out);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  right: -12%;
  bottom: -25%;
  width: 58%;
  height: 75%;
  background: radial-gradient(
    circle,
    rgba(168, 168, 168, 0.26) 0%,
    rgba(168, 168, 168, 0) 72%
  );
  filter: blur(var(--blur-xl));
  transform: translate3d(
    calc(var(--hero-liquid-drift-b) * 0.55),
    calc(var(--hero-liquid-drift-b) * 0.85),
    0
  );
  transition: transform var(--transition-slow) var(--easing-out);
  pointer-events: none;
}

/* Hero container */
.hero__container {
  width: 100%;
  max-width: var(--container-lg);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Hero content wrapper */
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--spacing-xl);
}

/* Hero title */
.hero__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-primary-light);
}

/* Hero greeting text */
.hero__greeting {
  display: block;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
  color: var(--color-light-accent);
  margin-bottom: var(--spacing-sm);
}

/* Hero name text */
.hero__name {
  position: relative;
  display: block;
  font-size: var(--font-size-4xl);
  background: linear-gradient(
    120deg,
    var(--color-primary-light) 0%,
    var(--color-light-accent) 46%,
    var(--color-primary-light) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(245, 245, 245, 0.18));
  animation: hero-name-glow 2.8s ease-in-out infinite;
  will-change: filter;
}

.hero__name::after {
  content: '';
  position: absolute;
  top: 52%;
  left: 50%;
  width: 44%;
  height: 88%;
  transform: translate(-50%, -50%) scale(0.9);
  background: radial-gradient(
    circle,
    rgba(245, 245, 245, 0.38) 0%,
    rgba(168, 168, 168, 0.22) 34%,
    rgba(168, 168, 168, 0) 74%
  );
  filter: blur(12px);
  opacity: 0.25;
  pointer-events: none;
  animation: hero-name-right-blink 2.8s ease-in-out infinite;
}

@keyframes hero-name-glow {
  0%,
  100% {
    filter:
      drop-shadow(0 0 7px rgba(245, 245, 245, 0.16))
      drop-shadow(0 0 14px rgba(168, 168, 168, 0.12));
  }
  50% {
    filter:
      drop-shadow(0 0 12px rgba(245, 245, 245, 0.3))
      drop-shadow(0 0 24px rgba(168, 168, 168, 0.22));
  }
}

@keyframes hero-name-right-blink {
  0%,
  100% {
    opacity: 0.22;
    transform: translate(-50%, -50%) scale(0.9);
  }
  50% {
    opacity: 0.66;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

/* Hero subtitle (professional title) */
.hero__subtitle-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 2.2rem;
}

.hero__spark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--color-light-accent);
  opacity: 0;
  transform: scale(0.75) rotate(0deg);
  animation: hero-spark-intro 2.05s var(--easing-out) 0.08s forwards;
  pointer-events: none;
}

.hero__subtitle {
  grid-area: 1 / 1;
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
  color: var(--color-light-accent);
  letter-spacing: 0.02em;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  filter: blur(2px);
  animation: hero-subtitle-flash 2.35s var(--easing-out) 1.45s forwards;
}

.hero__subtitle-stage .hero__description {
  grid-area: 1 / 1;
  position: relative;
  display: block;
  width: max-content;
  max-width: 100%;
  text-align: center;
  margin: 0 auto;
  min-height: 2.2rem;
  font-size: clamp(0.95rem, 2.4vw, var(--font-size-xl));
  line-height: 1.2;
  color: var(--color-primary-light);
  text-shadow: 0 0 8px rgba(245, 245, 245, 0.22);
  white-space: nowrap;
  overflow: visible;
}

@media (max-width: 767px) {
  .hero__subtitle-stage .hero__description {
    font-size: 0.95rem;
  }
}

@keyframes hero-spark-intro {
  0% {
    opacity: 0;
    transform: scale(0.56) rotate(-80deg);
  }
  24% {
    opacity: 1;
    transform: scale(1.2) rotate(160deg);
  }
  52% {
    opacity: 1;
    transform: scale(0.92) rotate(360deg);
  }
  78% {
    opacity: 0.88;
    transform: scale(1.02) rotate(560deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.84) rotate(760deg);
  }
}

@keyframes hero-subtitle-flash {
  from {
    opacity: 0;
    transform: translateY(6px);
    letter-spacing: 0.18em;
    filter: blur(2px);
  }
  26% {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0.04em;
    filter: blur(0);
  }
  66% {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0.04em;
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: translateY(-2px);
    letter-spacing: 0.11em;
    filter: blur(1.6px);
  }
}

/* Hero description */
.hero__description {
  margin: 0;
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-primary-light);
  max-width: 600px;
  opacity: 0.9;
  text-align: center;
  text-justify: auto;
}

.hero__description--queued {
  opacity: 0;
  visibility: hidden;
  transform: none;
}

.hero__description--ready {
  visibility: visible;
  opacity: 0.9;
  transform: none;
  transition: opacity var(--transition-fast) var(--easing-out);
}

.hero__description--typing {
  position: relative;
  min-height: 1.6em;
}

.hero__description--typing::after,
.hero__description--typing-complete::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 0.2em;
  background: currentColor;
  vertical-align: -0.1em;
  animation: hero-typing-caret 0.9s steps(1, end) infinite;
}

@keyframes hero-typing-caret {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

/* Hero CTA buttons container */
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  justify-content: center;
  align-items: center;
  margin-top: var(--spacing-lg);
}

.hero__cta .btn {
  border: none;
  border-radius: var(--radius-full);
  letter-spacing: 0.01em;
}

.hero__cta .btn--large {
  min-width: 108px;
  min-height: 48px;
  padding: var(--spacing-sm) var(--spacing-xl);
  font-size: var(--font-size-base);
}

.hero__cta .btn.btn--glass {
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.hero__cta .btn.btn--glass::after {
  display: none;
}

.hero__cta .btn--primary,
.hero__cta .btn--secondary {
  background: var(--color-secondary-dark);
  color: var(--color-primary-light);
  box-shadow: var(--liquid-shadow-soft);
}

@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .hero__cta .btn--primary.btn--glass,
  .hero__cta .btn--secondary.btn--glass {
    background: linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.16) 0%,
      var(--glass-bg-medium) 60%,
      rgba(168, 168, 168, 0.22) 100%
    );
    backdrop-filter: blur(var(--blur-lg)) saturate(125%);
    -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(125%);
    border: none;
  }
}

.hero__cta .btn--primary:hover,
.hero__cta .btn--secondary:hover {
  background: var(--color-primary-dark);
  color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .hero__cta .btn--primary.btn--glass:hover,
  .hero__cta .btn--secondary.btn--glass:hover {
    background: rgba(38, 38, 38, 0.64);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
  }
}

.hero__cta .btn--primary.btn--glass::before,
.hero__cta .btn--secondary.btn--glass::before {
  opacity: 0.42;
}

.hero__cta .btn--primary.btn--glass:hover::before,
.hero__cta .btn--secondary.btn--glass:hover::before {
  opacity: 0.3;
}

.hero__cta .btn--primary:focus,
.hero__cta .btn--secondary:focus {
  color: var(--color-primary-light);
  outline: 2px solid var(--color-light-accent);
  outline-offset: 2px;
}

.hero__cta .btn--primary:active,
.hero__cta .btn--secondary:active {
  color: var(--color-primary-light);
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* ===== Mobile Hero Styles ===== */

/**
 * Mobile layout - Requirement 2.1
 * Smaller typography, adjusted spacing
 */
@media (max-width: 767px) {
  .hero {
    min-height: 100vh;
    padding: var(--spacing-2xl) var(--spacing-lg);
  }
  
  .hero__content {
    gap: var(--spacing-lg);
  }
  
  .hero__greeting {
    font-size: var(--font-size-base);
  }
  
  .hero__name {
    font-size: var(--font-size-3xl);
  }
  
  .hero__subtitle {
    font-size: var(--font-size-base);
  }
  
  .hero__description {
    font-size: var(--font-size-base);
    max-width: 100%;
  }
  
  .hero__cta {
    flex-direction: column;
    width: 100%;
    gap: var(--spacing-md);
  }
  
  .hero__cta .btn {
    width: auto;
    max-width: 240px;
  }

  .hero__cta .btn--secondary {
    color: var(--color-primary-light);
  }
}

/* ===== Tablet Hero Styles ===== */

/**
 * Tablet layout - Requirement 2.2
 * Medium typography, balanced spacing
 */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero {
    min-height: 100vh;
    padding: var(--spacing-3xl) var(--spacing-xl);
  }
  
  .hero__content {
    gap: var(--spacing-xl);
  }
  
  .hero__greeting {
    font-size: var(--font-size-lg);
  }
  
  .hero__name {
    font-size: var(--font-size-4xl);
  }
  
  .hero__subtitle {
    font-size: var(--font-size-lg);
  }
  
  .hero__description {
    font-size: var(--font-size-base);
  }
}

/* ===== Desktop Hero Styles ===== */

/**
 * Desktop layout - Requirement 2.3
 * Larger typography for better visual impact
 */
@media (min-width: 1024px) {
  .hero {
    min-height: 100vh;
    padding: var(--spacing-4xl) var(--spacing-2xl);
  }
  
  .hero__content {
    gap: var(--spacing-2xl);
  }
  
  .hero__greeting {
    font-size: var(--font-size-xl);
  }
  
  .hero__name {
    font-size: var(--font-size-5xl);
  }
  
  .hero__subtitle {
    font-size: var(--font-size-2xl);
  }
  
  .hero__description {
    font-size: var(--font-size-lg);
  }
}

/* ===== Hero Accessibility & Performance ===== */

/**
 * Reduced motion support
 * Requirement 7.6: Respect user motion preferences
 */
@media (prefers-reduced-motion: reduce) {
  .hero__contrib-grid {
    opacity: 0.52;
    filter: blur(0.7px);
  }

  .hero__name {
    animation: none;
  }

  .hero__subtitle {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero__spark {
    display: none;
  }

  .hero__description--typing::after {
    animation: none;
  }

  .hero::before,
  .hero::after {
    transform: none;
    transition: none;
  }
}

/**
 * High contrast mode support
 */
@media (prefers-contrast: high) {
  .hero {
    background: var(--color-primary-dark);
  }
  
  .hero__name {
    -webkit-text-fill-color: var(--color-primary-light);
    background: none;
    color: var(--color-primary-light);
    text-shadow:
      0 0 12px rgba(245, 245, 245, 0.34),
      0 0 24px rgba(245, 245, 245, 0.18);
  }

  .nav__toggle-icon,
  .nav__toggle-icon::before,
  .nav__toggle-icon::after {
    background: var(--color-primary-light);
    box-shadow: 0 0 14px rgba(245, 245, 245, 0.38);
  }
}

/* Forced-color mode support (Windows/Edge high contrast and similar overrides) */
@media (forced-colors: active) {
  .hero__name {
    background: none;
    -webkit-text-fill-color: var(--color-primary-light);
    color: var(--color-primary-light);
    text-shadow:
      0 0 10px rgba(245, 245, 245, 0.32),
      0 0 18px rgba(245, 245, 245, 0.16);
    filter: none;
  }

  .hero__name::after {
    opacity: 0.2;
  }

  .nav__toggle-icon,
  .nav__toggle-icon::before,
  .nav__toggle-icon::after {
    background: var(--color-primary-light);
    box-shadow: 0 0 14px rgba(245, 245, 245, 0.34);
  }
}

/**
 * Print styles - optimize hero for printing
 */
@media print {
  .hero {
    min-height: auto;
    padding: var(--spacing-xl);
    background: none;
    color: var(--color-black);
    page-break-after: always;
  }
  
  .hero__cta {
    display: none;
  }
  
  .hero__name {
    -webkit-text-fill-color: var(--color-black);
    background: none;
  }
}

/* ===== About Section ===== */

/**
 * About section - Personal introduction and education
 * Requirements: 3.7, 8.6, 11.3
 * Properties: 24 (Line Length Limit)
 */

#about {
  position: relative;
  background: linear-gradient(
    145deg,
    var(--color-bg-dark) 0%,
    rgba(17, 17, 17, 0.98) 52%,
    var(--color-secondary-dark) 100%
  );
  color: var(--color-text-light);
}

#about .section__title {
  color: var(--color-primary-light);
}

#about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(920px, 84%);
  height: 2px;
  transform: translateX(-50%);
  border-radius: var(--radius-full);
  background: linear-gradient(
    90deg,
    rgba(245, 245, 245, 0) 0%,
    rgba(168, 168, 168, 0.28) 22%,
    rgba(245, 245, 245, 0.7) 50%,
    rgba(168, 168, 168, 0.28) 78%,
    rgba(245, 245, 245, 0) 100%
  );
  box-shadow:
    0 0 10px rgba(245, 245, 245, 0.12),
    0 0 20px rgba(168, 168, 168, 0.08);
  opacity: 0.8;
  pointer-events: none;
  animation: section-divider-breathe 3.8s ease-in-out infinite;
}

/* Section heading defaults and dark-section contrast fix */
.section__title {
  color: var(--color-text-primary);
}

.section__title--with-bookmark {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
}

.section-bookmark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2em;
  height: 1.2em;
  color: inherit;
  text-decoration: none;
}

.section-bookmark:focus-visible {
  outline: 2px solid var(--color-light-accent);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.section-bookmark__icon {
  position: relative;
  display: block;
  width: 0.78em;
  height: 1.02em;
  border-radius: 0.2em 0.2em 0.16em 0.16em;
  background: linear-gradient(
    180deg,
    rgba(245, 245, 245, 0.96) 0%,
    rgba(168, 168, 168, 0.86) 100%
  );
  box-shadow:
    0 0 12px rgba(245, 245, 245, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
  animation: section-bookmark-float 2.9s ease-in-out infinite;
}

.section-bookmark__icon::after {
  content: '';
  position: absolute;
  inset: -0.16em -0.12em -0.2em;
  border-radius: 0.36em;
  background: radial-gradient(
    circle at 50% 30%,
    rgba(245, 245, 245, 0.3) 0%,
    rgba(245, 245, 245, 0) 72%
  );
  filter: blur(4px);
  opacity: 0.75;
  animation: section-bookmark-glow 2.9s ease-in-out infinite;
  z-index: -1;
}

@keyframes section-bookmark-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-2px) scale(1.03);
  }
}

@keyframes section-bookmark-glow {
  0%,
  100% {
    opacity: 0.48;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.86;
    transform: scale(1.05);
  }
}

.section--dark .section__title {
  color: var(--color-text-light);
}

/* Defer rendering work for heavier lower sections until they near the viewport. */
#experience,
#skills,
#projects,
#research,
#contact {
  content-visibility: auto;
  contain-intrinsic-size: 1px 920px;
}

/* About text content */
.about__text {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
  padding: var(--spacing-xl);
  border: 1px solid rgba(245, 245, 245, 0.2);
  border-radius: var(--radius-xl);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(245, 245, 245, 0.08) 36%,
    rgba(168, 168, 168, 0.14) 100%
  );
  box-shadow:
    0 10px 22px rgba(17, 17, 17, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .about__text {
    backdrop-filter: blur(var(--blur-lg)) saturate(120%);
    -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(120%);
  }
}

.about__text p {
  margin: 0;
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: rgba(245, 245, 245, 0.9);
  max-width: 100%;
}

.about__link {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: rgba(245, 245, 245, 0.72);
  text-underline-offset: 0.18em;
  transition:
    color var(--transition-fast) var(--easing-default),
    text-decoration-color var(--transition-fast) var(--easing-default);
}

.about__link:hover,
.about__link:focus-visible {
  color: var(--color-light-accent);
  text-decoration-color: rgba(245, 245, 245, 0.95);
}

/* About education section */
.about__education {
  margin-top: var(--spacing-2xl);
}

.about__education h3 {
  margin: 0 0 var(--spacing-lg) 0;
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-light);
}

/* Education flow container */
.education-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  align-items: start;
}

/* Education item */
.education-item {
  position: relative;
  padding: var(--spacing-lg);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(245, 245, 245, 0.1) 34%,
    rgba(168, 168, 168, 0.16) 100%
  );
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245, 245, 245, 0.24);
  box-shadow:
    0 10px 22px rgba(17, 17, 17, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  overflow: hidden;
  transition: transform var(--transition-normal) var(--easing-default),
              border-color var(--transition-fast) var(--easing-default),
              box-shadow var(--transition-fast) var(--easing-default);
  height: auto;
}

.education-item:hover {
  transform: translateY(-3px);
  border-color: var(--color-light-accent);
  box-shadow:
    0 14px 30px rgba(17, 17, 17, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.education-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    rgba(92, 92, 92, 0.75),
    rgba(168, 168, 168, 0.95),
    rgba(92, 92, 92, 0.75)
  );
}

.education-item:not(:last-child)::after {
  content: ">";
  position: absolute;
  left: 50%;
  bottom: calc(-1 * (var(--spacing-lg) + 0.3rem));
  transform: translateX(-50%);
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border-light);
  background: rgba(245, 245, 245, 0.75);
  color: var(--color-primary-dark);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  box-shadow: 0 6px 16px rgba(17, 17, 17, 0.14);
}

.education-item h4 {
  margin: 0 0 var(--spacing-sm) 0;
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary-light);
}

.education-degree {
  margin: 0 0 var(--spacing-xs) 0;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: rgba(245, 245, 245, 0.92);
}

.education-date {
  margin: 0 0 var(--spacing-sm) 0;
  font-size: var(--font-size-sm);
  color: rgba(245, 245, 245, 0.82);
}

.education-details {
  margin: 0;
  font-size: var(--font-size-base);
  color: rgba(245, 245, 245, 0.86);
}

/* ===== Mobile About Styles ===== */

/**
 * Mobile layout - Requirement 2.1
 * Full-width text, adjusted spacing
 */
@media (max-width: 767px) {
  .about__text {
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
  }
  
  .about__text p {
    font-size: var(--font-size-base);
    max-width: 100%;
  }
  
  .about__education {
    margin-top: var(--spacing-xl);
  }
  
  .about__education h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
  }
  
  .education-flow {
    gap: var(--spacing-md);
  }

  .education-item {
    padding: var(--spacing-md);
  }
  
  .education-item:not(:last-child)::after {
    bottom: calc(-1 * (var(--spacing-md) + 0.1rem));
  }

  .education-item h4 {
    font-size: var(--font-size-lg);
  }
}

/* ===== Tablet About Styles ===== */

/**
 * Tablet layout - Requirement 2.2
 * Balanced spacing and typography
 */
@media (min-width: 768px) and (max-width: 1023px) {
  .about__text {
    gap: var(--spacing-lg);
  }
  
  .about__text p {
    font-size: var(--font-size-base);
    max-width: 100%;
  }
  
  .about__education h3 {
    font-size: var(--font-size-2xl);
  }
  
  .education-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-xl);
  }

  .education-item:not(:last-child)::after {
    content: ">";
    left: auto;
    right: calc(-1 * (var(--spacing-xl) + 0.35rem));
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
  }

  .education-item {
    padding: var(--spacing-lg);
  }
}

/* ===== Desktop About Styles ===== */

/**
 * Desktop layout - Requirement 2.3
 * Optimal line length and spacing
 */
@media (min-width: 1024px) {
  .about__text {
    gap: var(--spacing-xl);
  }
  
  .about__text p {
    font-size: var(--font-size-lg);
    max-width: 100%;
  }
  
  .about__education h3 {
    font-size: var(--font-size-2xl);
  }
  
  .education-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-2xl);
  }

  .education-item:not(:last-child)::after {
    content: ">";
    left: auto;
    right: calc(-1 * (var(--spacing-2xl) + 0.45rem));
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
  }

  .education-item {
    padding: var(--spacing-lg);
  }
  
  .education-item h4 {
    font-size: var(--font-size-xl);
  }
}

/* ===== About Accessibility & Performance ===== */

/**
 * Reduced motion support
 * Requirement 7.6: Respect user motion preferences
 */
@media (prefers-reduced-motion: reduce) {
  .education-item {
    transition: none;
  }
}

/**
 * High contrast mode support
 */
@media (prefers-contrast: high) {
  .education-item {
    border-width: 2px;
    border-color: currentColor;
  }
}

/**
 * Print styles - optimize About section for printing
 */
@media print {
  .about__text p {
    max-width: 100%;
  }
  
  .education-item {
    background: none;
    border: 1px solid var(--color-black);
    page-break-inside: avoid;
  }
}

/* ===== Skills Section ===== */

/**
 * Skills section - Display technical competencies
 * Requirements: 2.1, 2.2, 2.3, 4.3, 11.4
 * Properties: 3 (Responsive Layout), 7 (Glassmorphism on Cards)
 */

/* Soft animated divider between adjacent dark sections (Experience -> Tools) */
#skills {
  position: relative;
}

#skills::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(920px, 84%);
  height: 2px;
  transform: translateX(-50%);
  border-radius: var(--radius-full);
  background: linear-gradient(
    90deg,
    rgba(245, 245, 245, 0) 0%,
    rgba(168, 168, 168, 0.28) 22%,
    rgba(245, 245, 245, 0.7) 50%,
    rgba(168, 168, 168, 0.28) 78%,
    rgba(245, 245, 245, 0) 100%
  );
  box-shadow:
    0 0 10px rgba(245, 245, 245, 0.12),
    0 0 20px rgba(168, 168, 168, 0.08);
  opacity: 0.8;
  pointer-events: none;
  animation: section-divider-breathe 3.8s ease-in-out infinite;
}

@keyframes section-divider-breathe {
  0%,
  100% {
    opacity: 0.55;
    box-shadow:
      0 0 8px rgba(245, 245, 245, 0.1),
      0 0 16px rgba(168, 168, 168, 0.06);
  }
  50% {
    opacity: 0.92;
    box-shadow:
      0 0 14px rgba(245, 245, 245, 0.18),
      0 0 28px rgba(168, 168, 168, 0.11);
  }
}

@media (prefers-reduced-motion: reduce) {
  #about::before,
  #skills::before,
  #projects::before,
  #research::before,
  #experience::before,
  #contact::before {
    animation: none;
  }
}

/* Skills grid container */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  width: 100%;
}

/* Skill category card */
.skill-category {
  position: relative;
  overflow: hidden;
  padding: var(--spacing-sm) 0;
  min-height: auto;
  background: transparent;
  border: none;
  box-shadow: none;
  min-height: 68px;
  contain: layout paint;
}

.skill-category.card--glass::after {
  border: none;
  box-shadow: none;
}

/* Skill category title */
.skill-category__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary-light);
  text-align: center;
  padding: 0;
}

.skill-category__title.sr-only {
  margin: 0;
  padding: 0;
  border: 0;
}

.skill-category::before {
  content: attr(data-category);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  max-width: min(43vw, 13.5rem);
  padding: 0.45rem 0.9rem;
  font-family: var(--font-heading);
  font-size: clamp(0.78rem, 0.25vw + 0.72rem, 0.95rem);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary-light);
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  border: none;
  border-radius: var(--radius-full);
  background: linear-gradient(
    152deg,
    rgba(245, 245, 245, 0.2) 0%,
    rgba(168, 168, 168, 0.34) 28%,
    rgba(38, 38, 38, 0.54) 62%,
    rgba(38, 38, 38, 0.64) 100%
  );
  box-shadow:
    0 8px 18px rgba(17, 17, 17, 0.3),
    0 0 0 1px rgba(245, 245, 245, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -1px 0 rgba(17, 17, 17, 0.22);
  text-shadow:
    0 1px 0 rgba(17, 17, 17, 0.45),
    0 0 8px rgba(245, 245, 245, 0.12);
  z-index: 3;
  pointer-events: none;
}

@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .skill-category::before {
    backdrop-filter: blur(calc(var(--blur-lg) + 3px)) saturate(124%);
    -webkit-backdrop-filter: blur(calc(var(--blur-lg) + 3px)) saturate(124%);
  }
}

.skills-grid .skill-category:nth-child(odd)::before {
  left: auto;
  right: var(--spacing-lg);
}

.skills-grid .skill-category:nth-child(even)::before {
  right: auto;
  left: var(--spacing-lg);
}

.skill-category::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(17, 17, 17, 0.97) 0%,
    rgba(17, 17, 17, 0.94) 11%,
    rgba(17, 17, 17, 0.2) 24%,
    rgba(17, 17, 17, 0.2) 76%,
    rgba(17, 17, 17, 0.94) 89%,
    rgba(17, 17, 17, 0.97) 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Keep a larger safe margin so lanes do not touch screen corners */
.section#skills .section__container {
  padding-left: max(var(--spacing-lg), 4vw);
  padding-right: max(var(--spacing-lg), 4vw);
}

/* Skill list */
.skill-list {
  list-style: none;
  margin: 0;
  padding: var(--spacing-sm) calc(var(--spacing-lg) + 9.6rem);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--spacing-md);
  width: max-content;
  animation: skills-marquee var(--skills-marquee-duration, 30s) linear infinite;
  will-change: transform;
  position: relative;
  z-index: 1;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: layout paint;
}

.skill-list.is-paused {
  animation-play-state: paused;
}

.skills-grid .skill-category:nth-child(even) .skill-list {
  animation-direction: reverse;
}

@keyframes skills-marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(calc(-1 * var(--skills-marquee-shift, 50%)), 0, 0);
  }
}

/* Skill item */
.skill-item {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 0.4rem 0.8rem;
  font-size: clamp(0.8rem, 0.4vw + 0.76rem, 1rem);
  font-weight: var(--font-weight-medium);
  color: var(--color-primary-light);
  background: rgba(168, 168, 168, 0.18);
  border-radius: var(--radius-full);
  border: none;
  transition:
    background var(--transition-fast) var(--easing-default),
    transform var(--transition-fast) var(--easing-default);
  position: relative;
  line-height: 1.35;
  white-space: nowrap;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.skill-item--spacer {
  width: clamp(2.25rem, 3.6vw, 4.5rem);
  min-width: clamp(2.25rem, 3.6vw, 4.5rem);
  height: 1px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

/* Skill item hover effect */
.skill-item:hover {
  background: rgba(168, 168, 168, 0.28);
  transform: translateY(-1px);
}

/* Alternating radii gives a more organic layout */
.skill-item:nth-child(3n) {
  border-radius: 1.1rem 1.9rem 1.1rem 1.9rem;
}

.skill-item:nth-child(3n + 1) {
  border-radius: 1.9rem 1.1rem 1.9rem 1.1rem;
}

.skill-item:nth-child(3n + 2) {
  border-radius: 1.5rem;
}

/* ===== Mobile Skills Styles ===== */

/**
 * Mobile layout - Requirement 2.1
 * Adjusted spacing and typography
 */
@media (max-width: 767px) {
  .skill-category {
    padding: var(--spacing-sm) 0;
    min-height: auto;
  }
  
  .section#skills .section__container {
    padding-left: max(var(--spacing-md), 3vw);
    padding-right: max(var(--spacing-md), 3vw);
  }

  .skill-category::before {
    min-height: 34px;
    max-width: min(52vw, 11.4rem);
    padding: 0.35rem 0.75rem;
    font-size: var(--font-size-sm);
  }

  .skills-grid .skill-category:nth-child(odd)::before {
    right: var(--spacing-md);
  }

  .skills-grid .skill-category:nth-child(even)::before {
    left: var(--spacing-md);
  }
  
  .skill-list {
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) calc(var(--spacing-md) + 8rem);
  }
  
  .skill-item {
    padding: 0.35rem 0.65rem;
    font-size: var(--font-size-sm);
    line-height: 1.3;
  }
}

/* ===== Tablet Skills Styles ===== */

/**
 * Tablet layout - Requirement 2.2
 * Balanced spacing
 */
@media (min-width: 768px) and (max-width: 1023px) {
  .skill-category {
    padding: var(--spacing-sm) 0;
  }

  .skill-category::before {
    max-width: min(48vw, 12.6rem);
  }
  
  .skill-item {
    font-size: var(--font-size-sm);
  }
}

/* ===== Desktop Skills Styles ===== */

/**
 * Desktop layout - Requirement 2.3
 * Optimal spacing and sizing
 */
@media (min-width: 1024px) {
  .skill-category {
    padding: var(--spacing-md) 0;
  }
  
  .skill-item {
    font-size: var(--font-size-base);
  }
}

/* ===== Skills Accessibility & Performance ===== */

/**
 * Reduced motion support
 * Requirement 7.6: Respect user motion preferences
 */
@media (prefers-reduced-motion: reduce) {
  .skill-item {
    transition: none;
  }
  
  .skill-item:hover {
    transform: none;
  }

  .skill-list {
    animation: none;
  }
}

/**
 * High contrast mode support
 */
@media (prefers-contrast: high) {
  .skill-category__title {
    border-bottom-width: 3px;
    border-bottom-color: currentColor;
  }
  
  .skill-item {
    border-width: 2px;
    border-color: currentColor;
  }
}

/**
 * Print styles - optimize Skills section for printing
 */
@media print {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }
  
  .skill-category {
    background: none;
    border: 1px solid var(--color-black);
    page-break-inside: avoid;
  }
  
  .skill-category__title {
    color: var(--color-black);
    border-bottom-color: var(--color-black);
  }
  
  .skill-item {
    color: var(--color-black);
    background: none;
    border-color: var(--color-black);
  }
  
  .skill-item:hover {
    transform: none;
  }
}

/* ===== Projects Section ===== */

/**
 * Projects section - Showcase portfolio work
 * Requirements: 2.1, 2.2, 2.3, 4.3, 7.1, 11.5
 * Properties: 3 (Responsive Layout), 7 (Glassmorphism on Cards), 16 (Hover State Feedback)
 */

/* Match dark visual language and add divider from Tools -> Projects */
#projects {
  position: relative;
  background: linear-gradient(
    145deg,
    var(--color-bg-dark) 0%,
    rgba(17, 17, 17, 0.98) 52%,
    var(--color-secondary-dark) 100%
  );
  color: var(--color-text-light);
}

#projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(920px, 84%);
  height: 2px;
  transform: translateX(-50%);
  border-radius: var(--radius-full);
  background: linear-gradient(
    90deg,
    rgba(245, 245, 245, 0) 0%,
    rgba(168, 168, 168, 0.28) 22%,
    rgba(245, 245, 245, 0.7) 50%,
    rgba(168, 168, 168, 0.28) 78%,
    rgba(245, 245, 245, 0) 100%
  );
  box-shadow:
    0 0 10px rgba(245, 245, 245, 0.12),
    0 0 20px rgba(168, 168, 168, 0.08);
  opacity: 0.8;
  pointer-events: none;
  animation: section-divider-breathe 3.8s ease-in-out infinite;
}

#projects .section__title {
  color: var(--color-primary-light);
}

/* Projects grid container */
.projects-grid {
  display: grid;
  gap: var(--spacing-xl);
  width: 100%;
}

.projects-tier {
  display: grid;
  gap: var(--spacing-xl);
  width: 100%;
}

.projects-tier__eyebrow {
  margin: 0;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.66);
}

.projects-tier__eyebrow--with-marker {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
}

.projects-tier__marker {
  position: relative;
  display: inline-flex;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 0.2rem;
  background: linear-gradient(
    135deg,
    rgba(245, 245, 245, 0.9) 0%,
    rgba(168, 168, 168, 0.76) 100%
  );
  transform: rotate(45deg);
  box-shadow:
    0 0 10px rgba(245, 245, 245, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  animation: projects-marker-pulse 2.6s ease-in-out infinite;
}

.projects-tier__marker::before,
.projects-tier__marker::after {
  content: '';
  position: absolute;
  inset: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.projects-tier__marker::before {
  width: 0.22rem;
  height: 0.22rem;
  background: rgba(17, 17, 17, 0.72);
}

.projects-tier__marker::after {
  width: 1.1rem;
  height: 1.1rem;
  border: 1px solid rgba(245, 245, 245, 0.16);
  opacity: 0.6;
  animation: projects-marker-orbit 2.6s ease-in-out infinite;
}

@keyframes projects-marker-pulse {
  0%,
  100% {
    transform: rotate(45deg) scale(1);
    box-shadow:
      0 0 10px rgba(245, 245, 245, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  50% {
    transform: rotate(45deg) scale(1.08);
    box-shadow:
      0 0 16px rgba(245, 245, 245, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }
}

@keyframes projects-marker-orbit {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.34;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 0.68;
  }
}

.projects-tabs {
  width: 100%;
}

.projects-tabs__rail {
  display: none;
}

.projects-tabs__panels {
  display: grid;
  gap: var(--spacing-xl);
  width: 100%;
}

.projects-tabs__panel {
  width: 100%;
}

.projects-featured-grid {
  display: grid;
  gap: var(--spacing-xl);
  width: 100%;
}

[data-project-additional-tier] {
  margin-top: calc(var(--spacing-3xl) + var(--spacing-lg));
}

.projects-mobile-reveal {
  display: none;
  justify-content: center;
  margin-top: var(--spacing-lg);
}

.projects-mobile-reveal__button {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 40px;
  padding: 0.46rem 0.9rem;
  border: 1px solid rgba(245, 245, 245, 0.1);
  border-radius: var(--radius-full);
  background: linear-gradient(
    155deg,
    rgba(245, 245, 245, 0.1) 0%,
    rgba(168, 168, 168, 0.1) 38%,
    rgba(17, 17, 17, 0.42) 100%
  );
  color: var(--color-primary-light);
  box-shadow:
    0 10px 22px rgba(17, 17, 17, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition:
    transform var(--transition-fast) var(--easing-default),
    border-color var(--transition-fast) var(--easing-default),
    box-shadow var(--transition-fast) var(--easing-default);
}

.projects-mobile-reveal__button:hover,
.projects-mobile-reveal__button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(245, 245, 245, 0.28);
  box-shadow:
    0 12px 24px rgba(17, 17, 17, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.projects-mobile-reveal__arrows {
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  letter-spacing: -0.14em;
  color: rgba(245, 245, 245, 0.9);
}

.projects-mobile-reveal__arrows span {
  display: inline-block;
  animation: projects-mobile-arrow-pulse 1.2s ease-in-out infinite;
}

.projects-mobile-reveal__arrows span:nth-child(2) {
  animation-delay: 0.12s;
}

.projects-mobile-reveal__arrows span:nth-child(3) {
  animation-delay: 0.24s;
}

.projects-mobile-reveal__button.is-open .projects-mobile-reveal__arrows {
  transform: rotate(90deg);
}

.projects-mobile-reveal__label {
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.projects-mobile-filters {
  width: min(100%, 520px);
}

.projects-mobile-filters__list {
  display: flex;
  gap: var(--spacing-sm);
  width: 100%;
  padding: 0.4rem;
  overflow-x: auto;
  border: 1px solid rgba(245, 245, 245, 0.1);
  border-radius: calc(var(--radius-xl) + 2px);
  background: linear-gradient(
    155deg,
    rgba(245, 245, 245, 0.08) 0%,
    rgba(168, 168, 168, 0.08) 38%,
    rgba(17, 17, 17, 0.38) 100%
  );
  box-shadow:
    0 10px 22px rgba(17, 17, 17, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.projects-mobile-filters__list::-webkit-scrollbar {
  display: none;
}

.projects-mobile-filter {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.46rem;
  min-height: 38px;
  padding: 0.44rem 0.72rem;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background: transparent;
  color: rgba(245, 245, 245, 0.78);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    color var(--transition-fast) var(--easing-default),
    border-color var(--transition-fast) var(--easing-default),
    background var(--transition-fast) var(--easing-default),
    transform var(--transition-fast) var(--easing-default);
}

.projects-mobile-filter__check {
  position: relative;
  width: 0.82rem;
  height: 0.82rem;
  flex: 0 0 auto;
  border: 1px solid rgba(245, 245, 245, 0.32);
  border-radius: 0.22rem;
  background: rgba(17, 17, 17, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: rotate(0deg) scale(1);
  transition:
    border-color var(--transition-fast) var(--easing-default),
    background var(--transition-fast) var(--easing-default),
    box-shadow var(--transition-fast) var(--easing-default),
    transform var(--transition-fast) var(--easing-default);
}

.projects-mobile-filter__check::after {
  content: '';
  position: absolute;
  left: 0.22rem;
  top: 0.08rem;
  width: 0.26rem;
  height: 0.48rem;
  border-right: 2px solid var(--color-primary-light);
  border-bottom: 2px solid var(--color-primary-light);
  opacity: 0;
  transform: rotate(42deg) scale(0.62) translate3d(-1px, 1px, 0);
  transform-origin: 58% 58%;
  transition:
    opacity var(--transition-fast) var(--easing-default),
    transform var(--transition-fast) var(--easing-default);
}

.projects-mobile-filter__check::before {
  content: '';
  position: absolute;
  inset: -0.36rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(245, 245, 245, 0.28);
  opacity: 0;
  transform: scale(0.4);
  transition:
    opacity var(--transition-base) var(--easing-out),
    transform var(--transition-base) var(--easing-out);
}

.projects-mobile-filter:hover,
.projects-mobile-filter:focus-visible {
  color: var(--color-primary-light);
  border-color: rgba(245, 245, 245, 0.16);
  transform: translateY(-1px);
}

.projects-mobile-filter:active {
  transform: translateY(0) scale(0.985);
}

.projects-mobile-filter[aria-pressed="true"] {
  color: var(--color-primary-light);
  border-color: rgba(245, 245, 245, 0.2);
  background: linear-gradient(
    150deg,
    rgba(245, 245, 245, 0.14) 0%,
    rgba(168, 168, 168, 0.12) 42%,
    rgba(17, 17, 17, 0.24) 100%
  );
}

.projects-mobile-filter[aria-pressed="true"] .projects-mobile-filter__check {
  border-color: rgba(245, 245, 245, 0.68);
  background: rgba(168, 168, 168, 0.22);
  box-shadow:
    0 0 0 3px rgba(245, 245, 245, 0.08),
    0 0 14px rgba(245, 245, 245, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transform: rotate(-4deg) scale(1.08);
}

.projects-mobile-filter[aria-pressed="true"] .projects-mobile-filter__check::after {
  opacity: 1;
  transform: rotate(42deg) scale(1) translate3d(0, 0, 0);
  animation: projects-check-draw 260ms var(--easing-out);
}

.projects-mobile-filter[aria-pressed="true"] .projects-mobile-filter__check::before {
  opacity: 0;
  transform: scale(1.45);
  animation: projects-check-bloom 420ms var(--easing-out);
}

@keyframes projects-check-draw {
  0% {
    opacity: 0;
    transform: rotate(42deg) scale(0.42) translate3d(-2px, 2px, 0);
  }

  72% {
    opacity: 1;
    transform: rotate(42deg) scale(1.14) translate3d(0, 0, 0);
  }

  100% {
    opacity: 1;
    transform: rotate(42deg) scale(1) translate3d(0, 0, 0);
  }
}

@keyframes projects-check-bloom {
  0% {
    opacity: 0.58;
    transform: scale(0.4);
  }

  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}

@keyframes projects-mobile-arrow-pulse {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.42;
  }

  50% {
    transform: translateX(2px);
    opacity: 1;
  }
}

/* Mobile: Single column - Requirement 2.1 */
@media (max-width: 767px) {
  .projects-tier {
    gap: var(--spacing-lg);
  }

  .projects-tier__eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  [data-project-additional-tier] .projects-tier__eyebrow {
    display: none;
  }

  .projects-featured-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .projects-mobile-reveal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
  }

  [data-project-additional-tier] {
    margin-top: var(--spacing-lg);
  }

  .projects-tabs {
    display: none !important;
  }
}

/* Tablet: Two columns - Requirement 2.2 */
@media (min-width: 768px) and (max-width: 1023px) {
  .projects-featured-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }

  .project-card--featured-primary {
    grid-column: 1 / -1;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }
}

/* Desktop: Three columns - Requirement 2.3 */
@media (min-width: 1024px) {
  .projects-featured-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: var(--spacing-xl);
  }

  .project-card--featured-primary {
    grid-column: span 6;
  }

  .project-card--featured {
    grid-column: span 3;
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
  }

  .projects-tabs.is-enhanced {
    display: grid !important;
    gap: var(--spacing-lg);
  }

  .projects-tabs.is-enhanced .projects-tabs__rail {
    display: inline-flex;
    align-items: center;
    gap: 0.78rem;
    flex-wrap: wrap;
    width: fit-content;
    max-width: 100%;
    padding: 0.42rem;
    border: 1px solid rgba(245, 245, 245, 0.1);
    border-radius: calc(var(--radius-xl) + 2px);
    background: linear-gradient(
      155deg,
      rgba(245, 245, 245, 0.08) 0%,
      rgba(168, 168, 168, 0.08) 36%,
      rgba(17, 17, 17, 0.34) 100%
    );
    box-shadow:
      0 12px 26px rgba(17, 17, 17, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(var(--blur-lg)) saturate(120%);
    -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(120%);
  }

  .projects-tabs.is-enhanced + .projects-grid[data-project-additional-grid] {
    display: none;
  }

  .projects-tabs__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.56rem 1rem;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    background: transparent;
    color: rgba(245, 245, 245, 0.8);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition:
      color var(--transition-fast) var(--easing-default),
      border-color var(--transition-fast) var(--easing-default),
      background var(--transition-fast) var(--easing-default),
      box-shadow var(--transition-fast) var(--easing-default),
      transform var(--transition-fast) var(--easing-default);
  }

  .projects-tabs__tab:hover,
  .projects-tabs__tab:focus-visible {
    color: var(--color-primary-light);
    border-color: rgba(245, 245, 245, 0.16);
    transform: translateY(-1px);
  }

  .projects-tabs__tab[aria-selected="true"] {
    color: var(--color-primary-light);
    border-color: rgba(245, 245, 245, 0.2);
    background: linear-gradient(
      150deg,
      rgba(245, 245, 245, 0.14) 0%,
      rgba(168, 168, 168, 0.12) 42%,
      rgba(17, 17, 17, 0.22) 100%
    );
    box-shadow:
      0 8px 18px rgba(17, 17, 17, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  .projects-tabs.is-enhanced .projects-tabs__panel[hidden] {
    display: none;
  }

  .projects-tabs.is-enhanced .projects-tabs__panel {
    animation: projects-tab-fade 220ms var(--easing-out);
  }
}

@keyframes projects-tab-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Project card */
.project-card {
  /* Inherits card and card--glass styles from components.css */
  /* Additional specific styling for project cards */
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.project-card.card--glass {
  background: linear-gradient(
    160deg,
    rgba(245, 245, 245, 0.1) 0%,
    rgba(168, 168, 168, 0.12) 34%,
    rgba(17, 17, 17, 0.36) 100%
  );
  border: 1px solid rgba(245, 245, 245, 0.24);
  box-shadow:
    0 10px 22px rgba(17, 17, 17, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .project-card.card--glass {
    backdrop-filter: blur(var(--blur-lg)) saturate(122%);
    -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(122%);
  }
}

.project-card.card--glass:hover {
  box-shadow:
    0 14px 30px rgba(17, 17, 17, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.project-card--featured.card--glass {
  border-color: rgba(245, 245, 245, 0.3);
  box-shadow:
    0 16px 34px rgba(17, 17, 17, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 0 1px rgba(245, 245, 245, 0.06);
}

.project-card--featured-primary.card--glass {
  background: linear-gradient(
    155deg,
    rgba(245, 245, 245, 0.12) 0%,
    rgba(168, 168, 168, 0.14) 28%,
    rgba(17, 17, 17, 0.42) 100%
  );
}

.project-card--featured .project-card__image {
  height: auto;
  aspect-ratio: 16 / 10;
}

.project-card--featured .project-card__content {
  padding: calc(var(--spacing-xl) + 2px);
}

.project-card--featured .project-card__title {
  font-size: clamp(1.35rem, 1.1rem + 0.7vw, 1.8rem);
}

/* Project card image container */
.project-card__image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--color-mid-tone);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.project-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.35), rgba(38, 38, 38, 0.35));
}

.project-card__image--research {
  display: grid;
  place-items: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 45%, rgba(245, 245, 245, 0.12) 0%, rgba(245, 245, 245, 0) 38%),
    linear-gradient(145deg, rgba(17, 17, 17, 0.96) 0%, rgba(38, 38, 38, 0.92) 100%);
  transform: translateZ(0);
  contain: paint;
}

.research-thumb {
  --research-spin-duration: 12s;
  --research-pulse-duration: 3.8s;
}

.research-thumb::before,
.research-thumb::after {
  content: '';
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(245, 245, 245, 0.14);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.research-thumb::after {
  inset: 28%;
  border-color: rgba(168, 168, 168, 0.2);
  transform: rotate(45deg);
}

.research-thumb__grid,
.research-thumb__ring,
.research-thumb__axis,
.research-thumb__wave,
.research-thumb__pulse,
.research-thumb__chain,
.research-thumb__proof,
.research-thumb__relay,
.research-thumb__node {
  position: absolute;
  display: block;
  pointer-events: none;
  will-change: transform, opacity;
}

.research-thumb__grid {
  inset: 18%;
  opacity: 0.56;
  background-image:
    linear-gradient(rgba(245, 245, 245, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 245, 245, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 72%);
  -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 72%);
  animation: research-grid-drift 8s linear infinite;
}

.research-thumb__ring {
  width: 76px;
  height: 76px;
  border: 1px solid rgba(245, 245, 245, 0.34);
  border-top-color: rgba(168, 168, 168, 0.1);
  border-radius: var(--radius-full);
  animation: research-spin var(--research-spin-duration) linear infinite;
}

.research-thumb__node {
  width: 13px;
  height: 13px;
  border-radius: var(--radius-full);
  background: rgba(245, 245, 245, 0.82);
  box-shadow:
    0 0 18px rgba(245, 245, 245, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  animation: research-node-pulse var(--research-pulse-duration) ease-in-out infinite;
}

.research-thumb__node--a {
  transform: translate(-58px, -20px);
}

.research-thumb__node--b {
  transform: translate(50px, -26px);
  animation-delay: 0.42s;
}

.research-thumb__node--c {
  transform: translate(8px, 44px);
  animation-delay: 0.84s;
}

.research-thumb--forecasting .research-thumb__axis {
  left: 14%;
  right: 14%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, rgba(245, 245, 245, 0), rgba(245, 245, 245, 0.34), rgba(245, 245, 245, 0));
}

.research-thumb__wave {
  left: 14%;
  right: 14%;
  height: 42px;
  border: 1px solid transparent;
  border-top-color: rgba(245, 245, 245, 0.52);
  border-radius: 50%;
  transform-origin: center;
  animation: research-wave-shift 4.6s ease-in-out infinite;
}

.research-thumb__wave--a {
  top: 40%;
}

.research-thumb__wave--b {
  top: 48%;
  border-top-color: rgba(168, 168, 168, 0.46);
  animation-delay: 0.9s;
}

.research-thumb__pulse {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(245, 245, 245, 0.58);
  background: rgba(168, 168, 168, 0.2);
  box-shadow: 0 0 22px rgba(245, 245, 245, 0.18);
  animation: research-anomaly-pulse 2.8s ease-in-out infinite;
}

.research-thumb__chain {
  width: 88px;
  height: 42px;
  border: 1px solid rgba(245, 245, 245, 0.22);
  border-radius: var(--radius-full);
}

.research-thumb__chain--a {
  transform: translate(-42px, -14px) rotate(-18deg);
}

.research-thumb__chain--b {
  transform: translate(42px, 14px) rotate(-18deg);
}

.research-thumb__proof {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(245, 245, 245, 0.38);
  border-radius: 0.9rem;
  transform: rotate(45deg);
  animation: research-proof-float 5.2s ease-in-out infinite;
}

.research-thumb__relay {
  width: 132px;
  height: 1px;
  background: linear-gradient(90deg, rgba(245, 245, 245, 0), rgba(245, 245, 245, 0.56), rgba(245, 245, 245, 0));
  animation: research-relay-scan 3.6s ease-in-out infinite;
}

@keyframes research-grid-drift {
  to {
    background-position: 22px 22px;
  }
}

@keyframes research-grid-drift-mobile {
  to {
    background-position: 14px 14px;
  }
}

@keyframes research-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes research-node-pulse {
  0%,
  100% {
    opacity: 0.58;
  }

  50% {
    opacity: 1;
  }
}

@keyframes research-wave-shift {
  0%,
  100% {
    transform: translateY(0) scaleX(0.92);
    opacity: 0.52;
  }

  50% {
    transform: translateY(-8px) scaleX(1);
    opacity: 0.92;
  }
}

@keyframes research-anomaly-pulse {
  0%,
  100% {
    transform: translate(42px, -10px) scale(0.82);
    opacity: 0.54;
  }

  50% {
    transform: translate(42px, -10px) scale(1.12);
    opacity: 1;
  }
}

@keyframes research-anomaly-pulse-mobile {
  0%,
  100% {
    transform: translate(24px, -6px) scale(0.82);
    opacity: 0.54;
  }

  50% {
    transform: translate(24px, -6px) scale(1.12);
    opacity: 1;
  }
}

@keyframes research-proof-float {
  0%,
  100% {
    transform: rotate(45deg) translate3d(0, 0, 0);
    opacity: 0.74;
  }

  50% {
    transform: rotate(45deg) translate3d(4px, -4px, 0);
    opacity: 1;
  }
}

@keyframes research-relay-scan {
  0%,
  100% {
    transform: translateY(-24px) scaleX(0.62);
    opacity: 0.35;
  }

  50% {
    transform: translateY(24px) scaleX(1);
    opacity: 0.95;
  }
}

@keyframes research-relay-scan-mobile {
  0%,
  100% {
    transform: translateY(-14px) scaleX(0.62);
    opacity: 0.35;
  }

  50% {
    transform: translateY(14px) scaleX(1);
    opacity: 0.95;
  }
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-base) var(--easing-default);
}

/* Image zoom on card hover - Requirement 7.1 */
.project-card:hover .project-card__image img {
  transform: scale(1.1);
}

/* Project card content area */
.project-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--spacing-xl);
  gap: var(--spacing-md);
  background: linear-gradient(
    180deg,
    rgba(17, 17, 17, 0.06) 0%,
    rgba(245, 245, 245, 0.06) 100%
  );
}

/* Project card title */
.project-card__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-primary-light);
}

/* Project card description */
.project-card__description {
  margin: 0;
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: rgba(245, 245, 245, 0.86);
  flex: 1;
}

/* Project card tags container */
.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: auto;
  padding-top: var(--spacing-md);
}

/* Project tags - styled as small pills/badges */
.project-card__tags .tag {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  color: var(--color-primary-light);
  background: rgba(168, 168, 168, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all var(--transition-fast) var(--easing-default);
}

/* Tag hover effect */
.project-card__tags .tag:hover {
  background: rgba(168, 168, 168, 0.5);
  border-color: var(--color-light-accent);
  transform: translateY(-2px);
}

/* Project card links container */
.project-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--glass-border);
}

.project-card__links:empty {
  display: none;
}

.project-card__links .btn {
  min-height: 38px;
  padding: var(--spacing-xs) var(--spacing-lg);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background: linear-gradient(
    155deg,
    rgba(168, 168, 168, 0.22) 0%,
    rgba(38, 38, 38, 0.4) 56%,
    rgba(17, 17, 17, 0.62) 100%
  );
  background-clip: padding-box;
  overflow: hidden;
  isolation: isolate;
  color: var(--color-primary-light);
  box-shadow:
    0 8px 18px rgba(17, 17, 17, 0.2),
    inset 0 1px 0 rgba(245, 245, 245, 0.2),
    0 0 0 1px rgba(245, 245, 245, 0.2);
  letter-spacing: 0.01em;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.project-card__links .btn::after {
  display: none;
}

.project-card__links .btn:hover {
  transform: translate3d(0, -2px, 0);
  background: linear-gradient(
    155deg,
    rgba(168, 168, 168, 0.26) 0%,
    rgba(38, 38, 38, 0.46) 56%,
    rgba(17, 17, 17, 0.7) 100%
  );
  box-shadow:
    0 12px 24px rgba(17, 17, 17, 0.26),
    inset 0 1px 0 rgba(245, 245, 245, 0.24),
    0 0 0 1px rgba(168, 168, 168, 0.45);
}

.project-card__links .btn:focus-visible {
  outline: 2px solid var(--color-light-accent);
  outline-offset: 2px;
}

/* ===== Mobile Projects Styles ===== */

/**
 * Mobile layout - Requirement 2.1
 * Adjusted spacing and typography
 */
@media (max-width: 767px) {
  .project-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    grid-template-rows: auto auto auto;
    column-gap: var(--spacing-sm);
    row-gap: var(--spacing-sm);
    min-height: auto;
    padding: var(--spacing-md);
  }

  .project-card--featured,
  .project-card--featured-primary {
    padding: var(--spacing-sm);
    grid-template-columns: minmax(0, 1fr) 108px;
    column-gap: var(--spacing-sm);
  }
  
  .project-card__image {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 118px;
    height: 86px;
    border-radius: var(--radius-md);
    z-index: 1;
  }

  .project-card--featured .project-card__image,
  .project-card--featured-primary .project-card__image {
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    width: 108px;
    height: 78px;
    aspect-ratio: auto;
  }

  .project-card__image--research {
    overflow: hidden;
  }

  .project-card__image--research::before {
    inset: 14%;
    border-radius: var(--radius-md);
  }

  .project-card__image--research::after {
    inset: 30%;
  }

  .research-thumb__grid {
    inset: 8%;
    background-size: 14px 14px;
    animation-name: research-grid-drift-mobile;
  }

  .research-thumb__ring {
    width: 44px;
    height: 44px;
  }

  .research-thumb__node {
    width: 8px;
    height: 8px;
  }

  .research-thumb__node--a {
    transform: translate(-32px, -12px);
  }

  .research-thumb__node--b {
    transform: translate(29px, -15px);
  }

  .research-thumb__node--c {
    transform: translate(4px, 25px);
  }

  .research-thumb__wave {
    left: 9%;
    right: 9%;
    height: 26px;
  }

  .research-thumb__wave--a {
    top: 39%;
  }

  .research-thumb__wave--b {
    top: 48%;
  }

  .research-thumb__pulse {
    width: 11px;
    height: 11px;
    animation-name: research-anomaly-pulse-mobile;
  }

  .research-thumb__chain {
    width: 48px;
    height: 24px;
  }

  .research-thumb__chain--a {
    transform: translate(-22px, -8px) rotate(-18deg);
  }

  .research-thumb__chain--b {
    transform: translate(22px, 8px) rotate(-18deg);
  }

  .research-thumb__proof {
    width: 32px;
    height: 32px;
    border-radius: 0.58rem;
  }

  .research-thumb__relay {
    width: 78px;
    animation-name: research-relay-scan-mobile;
  }
  
  .project-card__content {
    display: contents;
    padding: 0;
  }
  
  .project-card__title {
    grid-column: 1;
    grid-row: 1;
    font-size: var(--font-size-lg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.42rem 0.72rem;
    min-height: 0;
    display: block;
    text-align: left;
    align-self: start;
  }

  .project-card--featured .project-card__title,
  .project-card--featured-primary .project-card__title {
    font-size: 1rem;
    padding: 0.4rem 0.66rem;
  }
  
  .project-card__description {
    grid-column: 1;
    grid-row: 2;
    font-size: var(--font-size-sm);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    overflow: visible;
  }

  .project-card--featured .project-card__description,
  .project-card--featured-primary .project-card__description {
    font-size: 0.8rem;
    line-height: 1.55;
  }
  
  .project-card__tags {
    position: absolute;
    top: calc(var(--spacing-md) + 86px + var(--spacing-xs));
    right: var(--spacing-md);
    width: 118px;
    gap: var(--spacing-xs);
    padding: 0;
    margin-top: 0;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-start;
    max-height: calc(100% - (var(--spacing-md) * 2 + 86px + var(--spacing-xs)));
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .project-card--featured .project-card__tags,
  .project-card--featured-primary .project-card__tags {
    top: calc(var(--spacing-sm) + 78px + var(--spacing-xs));
    right: var(--spacing-sm);
    width: 108px;
    max-height: calc(100% - (var(--spacing-sm) * 2 + 78px + var(--spacing-xs)));
  }

  .project-card__tags::-webkit-scrollbar {
    display: none;
  }
  
  .project-card__tags .tag {
    font-size: 0.625rem; /* 10px */
    padding: 0.22rem 0.42rem;
  }
  
  .project-card__links {
    grid-column: 1;
    grid-row: 3;
    flex-direction: row;
    gap: var(--spacing-xs);
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    align-self: start;
    justify-content: flex-start;
  }
  
  .project-card__links .btn {
    width: auto;
    min-height: 30px;
    padding: 0.28rem 0.62rem;
    border-radius: var(--radius-md);
    font-size: 0.68rem;
    text-align: center;
  }

  .project-card__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0.28rem 0.62rem;
    border-radius: var(--radius-md);
    font-size: 0.68rem;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid rgba(168, 168, 168, 0.28);
    background: linear-gradient(
      155deg,
      rgba(168, 168, 168, 0.2) 0%,
      rgba(38, 38, 38, 0.56) 56%,
      rgba(17, 17, 17, 0.82) 100%
    );
    color: rgba(245, 245, 245, 0.95);
    box-shadow:
      0 6px 14px rgba(0, 0, 0, 0.35),
      inset 0 1px 0 rgba(245, 245, 245, 0.15);
  }

  .project-card__toggle:hover {
    background: linear-gradient(
      155deg,
      rgba(168, 168, 168, 0.24) 0%,
      rgba(38, 38, 38, 0.62) 56%,
      rgba(17, 17, 17, 0.88) 100%
    );
    box-shadow:
      0 8px 16px rgba(0, 0, 0, 0.42),
      inset 0 1px 0 rgba(245, 245, 245, 0.2);
  }

  .project-card__toggle:focus-visible {
    outline: 2px solid rgba(245, 245, 245, 0.7);
    outline-offset: 2px;
  }

  .project-card.project-card--compact:not(.is-expanded) .project-card__description,
  .project-card.project-card--compact:not(.is-expanded) .project-card__tags {
    display: none;
  }

  .project-card.project-card--compact:not(.is-expanded) .project-card__links {
    grid-row: 2;
    align-self: start;
  }

  .project-card.project-card--compact.is-expanded .project-card__tags {
    display: flex;
  }

  .project-card.project-card--compact.is-expanded .project-card__links {
    grid-row: 3;
  }
}

/* ===== Tablet Projects Styles ===== */

/**
 * Tablet layout - Requirement 2.2
 * Balanced spacing
 */
@media (min-width: 768px) and (max-width: 1023px) {
  .project-card {
    min-height: 320px;
  }
  
  .project-card__image {
    height: 180px;
  }
  
  .project-card__content {
    padding: var(--spacing-lg);
    gap: var(--spacing-sm);
  }
  
  .project-card__title {
    font-size: var(--font-size-lg);
  }
  
  .project-card__description {
    font-size: var(--font-size-sm);
  }
  
  .project-card__tags .tag {
    font-size: var(--font-size-xs);
  }
}

/* ===== Desktop Projects Styles ===== */

/**
 * Desktop layout - Requirement 2.3
 * Optimal spacing and sizing
 */
@media (min-width: 1024px) {
  .project-card {
    min-height: 350px;
  }
  
  .project-card__image {
    height: 200px;
  }
  
  .project-card__content {
    padding: var(--spacing-xl);
    gap: var(--spacing-md);
  }
  
  .project-card__title {
    font-size: var(--font-size-xl);
  }
  
  .project-card__description {
    font-size: var(--font-size-base);
  }
  
  .project-card__tags .tag {
    font-size: var(--font-size-xs);
  }
}

/* ===== Projects Accessibility & Performance ===== */

/**
 * Reduced motion support
 * Requirement 7.6: Respect user motion preferences
 */
@media (prefers-reduced-motion: reduce) {
  .projects-mobile-filter,
  .projects-mobile-filter__check::after,
  .projects-mobile-filter__check::before,
  .project-card__image img {
    transition: none;
  }

  .projects-mobile-filter[aria-pressed="true"] .projects-mobile-filter__check::after,
  .projects-mobile-filter[aria-pressed="true"] .projects-mobile-filter__check::before {
    animation: none;
  }
  
  .project-card:hover .project-card__image img {
    transform: none;
  }
  
  .project-card__tags .tag {
    transition: none;
  }
  
  .project-card__tags .tag:hover {
    transform: none;
  }

  .research-thumb__grid,
  .research-thumb__ring,
  .research-thumb__node,
  .research-thumb__wave,
  .research-thumb__pulse,
  .research-thumb__proof,
  .research-thumb__relay {
    animation: none;
    will-change: auto;
  }
}

/**
 * High contrast mode support
 */
@media (prefers-contrast: high) {
  .projects-mobile-filters__list,
  .projects-mobile-filter,
  .project-card__tags .tag {
    border-width: 2px;
    border-color: currentColor;
  }
  
  .project-card__links {
    border-top-width: 2px;
    border-top-color: currentColor;
  }
}

/**
 * Print styles - optimize Projects section for printing
 */
@media print {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }
  
  .project-card {
    background: none;
    border: 1px solid var(--color-black);
    page-break-inside: avoid;
    min-height: auto;
  }
  
  .project-card__image {
    display: none; /* Hide images in print */
  }
  
  .project-card__content {
    padding: var(--spacing-md);
  }
  
  .project-card__title {
    color: var(--color-black);
  }
  
  .project-card__description {
    color: var(--color-black);
  }
  
  .project-card__tags .tag {
    color: var(--color-black);
    background: none;
    border-color: var(--color-black);
  }
  
  .project-card__links {
    display: none; /* Hide links in print */
  }
}

/* ===== Experience Section ===== */

/* ===== Research Section ===== */

/**
 * Research & Publications section
 */
#research {
  position: relative;
  background: linear-gradient(
    145deg,
    var(--color-bg-dark) 0%,
    rgba(17, 17, 17, 0.98) 52%,
    var(--color-secondary-dark) 100%
  );
  color: var(--color-text-light);
}

#research::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(920px, 84%);
  height: 2px;
  transform: translate(-50%, -50%);
  border-radius: var(--radius-full);
  background: linear-gradient(
    90deg,
    rgba(245, 245, 245, 0) 0%,
    rgba(168, 168, 168, 0.28) 22%,
    rgba(245, 245, 245, 0.7) 50%,
    rgba(168, 168, 168, 0.28) 78%,
    rgba(245, 245, 245, 0) 100%
  );
  box-shadow:
    0 0 10px rgba(245, 245, 245, 0.12),
    0 0 20px rgba(168, 168, 168, 0.08);
  opacity: 0.8;
  pointer-events: none;
  animation: section-divider-breathe 3.8s ease-in-out infinite;
}

#research .section__title {
  color: var(--color-primary-light);
}

.research-list {
  display: grid;
  gap: var(--spacing-xl);
  width: 100%;
}

.research-thread {
  position: relative;
  overflow: hidden;
  padding: var(--spacing-xl);
  display: grid;
  gap: var(--spacing-lg);
}

.research-thread.card--glass {
  background: linear-gradient(
    160deg,
    rgba(245, 245, 245, 0.08) 0%,
    rgba(168, 168, 168, 0.1) 34%,
    rgba(17, 17, 17, 0.34) 100%
  );
  border: 1px solid rgba(245, 245, 245, 0.22);
  box-shadow:
    0 10px 22px rgba(17, 17, 17, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.research-thread__header {
  display: grid;
  gap: var(--spacing-xs);
}

.research-thread__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  line-height: var(--line-height-tight);
  color: var(--color-primary-light);
}

.research-thread__intro {
  margin: 0;
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: rgba(245, 245, 245, 0.72);
  max-width: 100%;
}

.research-thread__list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 calc(var(--spacing-xl) + 4px);
  display: grid;
  gap: var(--spacing-lg);
}

.research-thread__item {
  position: relative;
  display: grid;
  gap: var(--spacing-xs);
  padding: 0.9rem 1rem 0.9rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245, 245, 245, 0.12);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(245, 245, 245, 0.03) 42%,
    rgba(17, 17, 17, 0.14) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(17, 17, 17, 0.12);
  isolation: isolate;
  overflow: visible;
}

.research-thread__node {
  position: absolute;
  left: calc((var(--spacing-xl) + 4px) * -1);
  top: 0.88rem;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(168, 168, 168, 0.9);
  border-top-color: rgba(245, 245, 245, 0.98);
  border-right-color: rgba(245, 245, 245, 0.45);
  background: radial-gradient(
    circle at 50% 50%,
    rgba(245, 245, 245, 0.16) 0%,
    rgba(245, 245, 245, 0.02) 52%,
    rgba(17, 17, 17, 0) 100%
  );
  box-shadow:
    0 0 0 1px rgba(245, 245, 245, 0.2),
    0 0 16px rgba(168, 168, 168, 0.18);
  z-index: 1;
  animation: research-thread-spinner 1.8s linear infinite;
}

.research-thread__text {
  margin: 0;
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: rgba(245, 245, 245, 0.9);
  max-width: 100%;
}

@keyframes research-thread-spinner {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.research-item {
  position: relative;
  overflow: hidden;
  padding: var(--spacing-xl);
  display: grid;
  gap: var(--spacing-sm);
}

.research-item.card--glass {
  background: linear-gradient(
    160deg,
    rgba(245, 245, 245, 0.1) 0%,
    rgba(168, 168, 168, 0.12) 34%,
    rgba(17, 17, 17, 0.36) 100%
  );
  border: 1px solid rgba(245, 245, 245, 0.24);
  box-shadow:
    0 10px 22px rgba(17, 17, 17, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .research-item.card--glass {
    backdrop-filter: blur(var(--blur-lg)) saturate(122%);
    -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(122%);
  }
}

.research-item.card--glass:hover {
  box-shadow:
    0 14px 30px rgba(17, 17, 17, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.research-item::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: var(--radius-full);
  opacity: 0.9;
}

.research-item:nth-child(odd) {
  border-left: 1px solid rgba(168, 168, 168, 0.35);
}

.research-item:nth-child(odd)::before {
  left: 0;
  background: linear-gradient(180deg, var(--color-light-accent) 0%, var(--color-mid-tone) 100%);
}

.research-item:nth-child(even) {
  border-right: 1px solid rgba(168, 168, 168, 0.35);
}

.research-item:nth-child(even)::before {
  right: 0;
  background: linear-gradient(180deg, var(--color-mid-tone) 0%, var(--color-light-accent) 100%);
}

.research-item__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  line-height: var(--line-height-tight);
  color: var(--color-primary-light);
}

.research-item__authors {
  margin: 0;
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: rgba(245, 245, 245, 0.88);
  max-width: 100%;
}

.research-item__authors strong {
  font-weight: var(--font-weight-bold);
}

.research-item__venue {
  margin: 0;
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: rgba(245, 245, 245, 0.72);
}

.research-item__venue em {
  font-style: italic;
}

.research-item__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 38px;
  padding: var(--spacing-xs) var(--spacing-lg);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background: linear-gradient(
    155deg,
    rgba(168, 168, 168, 0.22) 0%,
    rgba(38, 38, 38, 0.4) 56%,
    rgba(17, 17, 17, 0.62) 100%
  );
  background-clip: padding-box;
  overflow: hidden;
  isolation: isolate;
  color: var(--color-primary-light);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0.01em;
  box-shadow:
    0 8px 18px rgba(17, 17, 17, 0.2),
    inset 0 1px 0 rgba(245, 245, 245, 0.2),
    0 0 0 1px rgba(245, 245, 245, 0.22);
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition:
    transform var(--transition-fast) var(--easing-default),
    border-color var(--transition-fast) var(--easing-default),
    background var(--transition-fast) var(--easing-default),
    box-shadow var(--transition-fast) var(--easing-default),
    color var(--transition-fast) var(--easing-default);
}

.research-item__link::after {
  display: none;
}

.research-item__link:hover {
  transform: translate3d(0, -2px, 0);
  background: linear-gradient(
    155deg,
    rgba(168, 168, 168, 0.26) 0%,
    rgba(38, 38, 38, 0.46) 56%,
    rgba(17, 17, 17, 0.7) 100%
  );
  box-shadow:
    0 12px 24px rgba(17, 17, 17, 0.26),
    inset 0 1px 0 rgba(245, 245, 245, 0.24),
    0 0 0 1px rgba(168, 168, 168, 0.45);
  color: var(--color-primary-light);
}

.research-item__link:focus {
  outline: 2px solid var(--color-light-accent);
  outline-offset: 2px;
  border-radius: var(--radius-full);
}

.research-item__link--placeholder,
.research-item__link--placeholder:hover {
  cursor: default;
  pointer-events: none;
  transform: none;
  opacity: 1;
}

@media (max-width: 767px) {
  .research-list {
    gap: var(--spacing-lg);
  }

  .research-thread {
    padding: var(--spacing-lg);
    gap: var(--spacing-md);
  }

  .research-thread__list {
    padding-left: calc(var(--spacing-lg) + 12px);
  }

  .research-thread__item {
    padding: 0.85rem 0.9rem 0.85rem 1rem;
  }

  .research-thread__node {
    left: calc((var(--spacing-lg) + 12px) * -1);
  }

  .research-thread__title {
    font-size: var(--font-size-lg);
  }

  .research-thread__intro,
  .research-thread__text {
    font-size: var(--font-size-sm);
  }

  .research-item {
    text-align: left;
    border-left: 1px solid rgba(168, 168, 168, 0.35);
    border-right: none;
    padding: var(--spacing-lg);
  }

  .research-item::before {
    left: 0;
    right: auto;
  }

  .research-item__title {
    font-size: var(--font-size-lg);
  }

  .research-item__authors,
  .research-item__venue {
    font-size: var(--font-size-sm);
  }
}

@media print {
  .research-list {
    gap: var(--spacing-lg);
  }

  .research-item {
    background: none;
    border: 1px solid var(--color-black);
    page-break-inside: avoid;
  }

  .research-item::before {
    display: none;
  }

  .research-item__title,
  .research-item__authors,
  .research-item__venue,
  .research-item__link {
    color: var(--color-black);
  }
}

/* ===== Experience Section ===== */

/**
 * Experience section - Display professional history with timeline
 * Requirements: 2.1, 2.2, 2.3, 4.3, 11.6
 * Properties: 3 (Responsive Layout), 7 (Glassmorphism on Cards)
 */

#experience {
  position: relative;
}

#experience::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(920px, 84%);
  height: 2px;
  transform: translateX(-50%);
  border-radius: var(--radius-full);
  background: linear-gradient(
    90deg,
    rgba(245, 245, 245, 0) 0%,
    rgba(168, 168, 168, 0.28) 22%,
    rgba(245, 245, 245, 0.7) 50%,
    rgba(168, 168, 168, 0.28) 78%,
    rgba(245, 245, 245, 0) 100%
  );
  box-shadow:
    0 0 10px rgba(245, 245, 245, 0.12),
    0 0 20px rgba(168, 168, 168, 0.08);
  opacity: 0.8;
  pointer-events: none;
  animation: section-divider-breathe 3.8s ease-in-out infinite;
}

/* Timeline container */
.timeline {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-xl) 0;
}

/* Timeline vertical connecting line - hidden on mobile */
.timeline::before {
  content: '';
  position: absolute;
  top: calc(var(--spacing-xl) - 2px);
  bottom: calc(var(--spacing-xl) + 18px);
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background:
    linear-gradient(
      180deg,
      var(--color-light-accent) 0%,
      var(--color-mid-tone) 50%,
      var(--color-light-accent) 100%
    ),
    linear-gradient(
      180deg,
      rgba(245, 245, 245, 0) 0%,
      rgba(255, 255, 255, 1) 26%,
      rgba(245, 245, 245, 0.98) 50%,
      rgba(255, 255, 255, 1) 74%,
      rgba(245, 245, 245, 0) 100%
    );
  background-repeat: no-repeat;
  background-size:
    100% 100%,
    100% 28%;
  background-position:
    center center,
    center 135%;
  opacity: 0.5;
  animation: timeline-light-rise 3.1s linear infinite;
}

/* Timeline item */
.timeline-item {
  position: relative;
  width: 100%;
  margin-bottom: var(--spacing-3xl);
  
  /* Inherits card and card--glass styles from components.css */
  /* Additional specific styling for timeline items */
  padding: var(--spacing-xl);
}

/* Remove margin from last timeline item */
.timeline-item:last-child {
  margin-bottom: 0;
}

/* Timeline marker (dot) */
.timeline-marker {
  position: absolute;
  top: calc(var(--spacing-xl) - 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--color-light-accent);
  border: 4px solid var(--color-primary-dark);
  border-radius: var(--radius-full);
  box-shadow: 0 0 0 4px rgba(168, 168, 168, 0.2);
  z-index: 2;
  transition: all var(--transition-base) var(--easing-default);
}

/* Timeline marker hover effect */
.timeline-item:hover .timeline-marker {
  background: var(--color-primary-light);
  box-shadow: 0 0 0 8px rgba(168, 168, 168, 0.3);
  transform: translateX(-50%) scale(1.2);
}

.timeline-item.card--glass::before {
  background:
    radial-gradient(
      circle at var(--liquid-pointer-x) var(--liquid-pointer-y),
      rgba(255, 255, 255, calc(var(--liquid-pointer-o) * 0.55)) 0%,
      rgba(255, 255, 255, calc(var(--liquid-pointer-o) * 0.18)) 24%,
      rgba(255, 255, 255, 0) 58%
    );
}

@keyframes timeline-light-rise {
  0% {
    background-position:
      center center,
      center 135%;
  }
  100% {
    background-position:
      center center,
      center -35%;
  }
}

/* Timeline content wrapper */
.timeline-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  min-width: 0;
}

/* Timeline date */
.timeline-date {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary-light);
  background: rgba(168, 168, 168, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  width: fit-content;
  letter-spacing: 0.02em;
}

/* Timeline title (job title) */
.timeline-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-primary-light);
}

/* Timeline company name */
.timeline-company {
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-light-accent);
  font-style: italic;
}

/* Timeline description */
.timeline-description {
  margin: 0;
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-primary-light);
}

.timeline-description p {
  margin: 0 0 var(--spacing-md) 0;
}

.timeline-description p:last-child {
  margin-bottom: 0;
}

.timeline-description strong {
  font-weight: var(--font-weight-semibold);
  color: var(--color-light-accent);
}

.timeline-description em {
  font-style: italic;
  color: var(--color-light-accent);
}

.timeline-description ul {
  margin: var(--spacing-sm) 0;
  padding-left: var(--spacing-xl);
  list-style-type: disc;
}

.timeline-description li {
  margin-bottom: var(--spacing-sm);
  line-height: var(--line-height-relaxed);
}

.timeline-description li:last-child {
  margin-bottom: 0;
}

/* Interactive experience disclosure cards */
.experience-disclosure-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--spacing-md);
  margin-top: var(--spacing-sm);
}

.experience-disclosure {
  display: inline-flex;
  flex-direction: column;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  padding: var(--spacing-sm);
  gap: var(--spacing-sm);
  border: 1px solid rgba(17, 17, 17, 0.22);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    155deg,
    rgba(245, 245, 245, 0.14) 0%,
    rgba(255, 255, 255, 0.06) 22%,
    rgba(168, 168, 168, 0.12) 48%,
    rgba(17, 17, 17, 0.26) 100%
  );
  box-shadow:
    0 8px 18px rgba(17, 17, 17, 0.18),
    inset 0 1px 0 rgba(245, 245, 245, 0.06),
    inset 0 -1px 0 rgba(17, 17, 17, 0.12);
  backdrop-filter: blur(calc(var(--blur-md) + 2px)) saturate(128%);
  -webkit-backdrop-filter: blur(calc(var(--blur-md) + 2px)) saturate(128%);
}

.experience-disclosure.is-expanded {
  width: 100%;
}

.experience-toggle {
  position: relative;
  width: auto;
  min-height: 32px;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: var(--font-weight-semibold);
  padding: 0.44rem 1.28rem;
  border: none;
  border-radius: calc(var(--radius-lg) - 4px);
  background:
    linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(245, 245, 245, 0.05) 30%,
      rgba(17, 17, 17, 0.14) 100%
    );
  color: var(--color-primary-light);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(17, 17, 17, 0.18),
    0 6px 14px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(calc(var(--blur-sm) + 1px)) saturate(118%);
  -webkit-backdrop-filter: blur(calc(var(--blur-sm) + 1px)) saturate(118%);
  box-sizing: border-box;
  isolation: isolate;
  overflow: hidden;
}

.experience-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(
      circle at 24% 18%,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0.08) 24%,
      rgba(255, 255, 255, 0) 58%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0) 62%
    );
  pointer-events: none;
}

.experience-toggle::after {
  content: none;
  position: absolute;
  top: 0.34rem;
  right: 0.58rem;
  font-size: 0.86rem;
  line-height: 1;
  transition: transform var(--transition-fast) var(--easing-default);
}

.experience-toggle[aria-expanded="true"]::after {
  content: none;
  transform: rotate(180deg);
}

.experience-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 1rem;
  border-radius: calc(var(--radius-lg) - 2px);
  background: linear-gradient(
    160deg,
    rgba(17, 17, 17, 0.74) 0%,
    rgba(17, 17, 17, 0.9) 52%,
    rgba(38, 38, 38, 0.82) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(245, 245, 245, 0.04),
    0 10px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(-6px);
  transition:
    max-height var(--transition-medium) var(--easing-default),
    opacity var(--transition-fast) var(--easing-default),
    transform var(--transition-fast) var(--easing-default),
    padding var(--transition-fast) var(--easing-default);
}

.experience-panel.is-open {
  max-height: 560px;
  opacity: 1;
  padding: 1rem;
  transform: translateY(0);
}

.experience-panel ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.experience-panel li {
  position: relative;
  padding-left: 1.25rem;
}

.experience-panel li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0.08rem;
  color: var(--color-light-accent);
  font-size: 0.78rem;
}

.experience-panel p:last-child {
  margin-bottom: 0;
}

/* ===== Mobile Timeline Styles ===== */

/**
 * Mobile layout - Requirement 2.1
 * Simplified timeline: remove connecting line, stack vertically
 */
@media (max-width: 767px) {
  .timeline {
    padding: var(--spacing-lg) 0;
    max-width: 100%;
  }
  
  .timeline::before {
    display: block;
    top: calc(var(--spacing-lg) - 10px);
    bottom: calc(var(--spacing-lg) + 15px);
    left: calc(var(--spacing-lg) + 8px);
    transform: none;
    width: 2px;
  }
  
  .timeline-item {
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-lg);
  }
  
  /* Position marker on the left side on mobile */
  .timeline-marker {
    left: var(--spacing-lg);
    top: calc(var(--spacing-lg) - 2px);
    transform: translateX(0);
    width: 16px;
    height: 16px;
    border-width: 3px;
  }
  
  .timeline-item:hover .timeline-marker {
    transform: translateX(0) scale(1.2);
  }
  
  /* Add left padding to content to make room for marker */
  .timeline-content {
    padding-left: var(--spacing-2xl);
    gap: var(--spacing-sm);
  }
  
  .timeline-date {
    font-size: 0.625rem; /* 10px */
    padding: var(--spacing-xs) var(--spacing-sm);
  }
  
  .timeline-title {
    font-size: var(--font-size-lg);
  }
  
  .timeline-company {
    font-size: var(--font-size-sm);
  }
  
  .timeline-description {
    font-size: var(--font-size-sm);
  }
  
  .timeline-description ul {
    padding-left: var(--spacing-lg);
  }
  
  .timeline-description li {
    margin-bottom: var(--spacing-xs);
  }

  .experience-disclosure {
    width: 100%;
    padding: var(--spacing-sm);
  }

  .experience-panel li {
    font-size: 0.9rem;
    line-height: 1.55;
    text-align: left;
    text-justify: auto;
  }

  .experience-panel li::before {
    font-size: 0.7rem;
    top: 0.12rem;
  }

  .experience-panel.is-open {
    max-height: 760px;
  }
}

/* ===== Tablet Timeline Styles ===== */

/**
 * Tablet layout - Requirement 2.2
 * Show timeline with connecting line
 */
@media (min-width: 768px) and (max-width: 1023px) {
  .timeline {
    padding: var(--spacing-xl) 0;
    max-width: 700px;
  }

  .timeline::before {
    top: calc(var(--spacing-lg) + 3px);
    bottom: calc(var(--spacing-lg) + 15px);
  }
  
  .timeline-item {
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-lg);
  }
  
  .timeline-marker {
    width: 18px;
    height: 18px;
    border-width: 3px;
    top: calc(var(--spacing-lg) - 6px);
  }
  
  .timeline-content {
    gap: var(--spacing-sm);
  }
  
  .timeline-date {
    font-size: var(--font-size-xs);
  }
  
  .timeline-title {
    font-size: var(--font-size-lg);
  }
  
  .timeline-company {
    font-size: var(--font-size-sm);
  }
  
  .timeline-description {
    font-size: var(--font-size-sm);
  }
}

/* ===== Desktop Timeline Styles ===== */

/**
 * Desktop layout - Requirement 2.3
 * Full timeline with optimal spacing
 */
@media (min-width: 1024px) {
  .timeline {
    padding: var(--spacing-2xl) 0;
    max-width: 980px;
  }

  .timeline::before {
    top: calc(var(--spacing-xl) + 2px);
    bottom: calc(var(--spacing-xl) + 22px);
  }
  
  .timeline-item {
    margin-bottom: var(--spacing-3xl);
    padding: var(--spacing-xl);
  }
  
  .timeline-marker {
    width: 20px;
    height: 20px;
    border-width: 4px;
    top: calc(var(--spacing-xl) - 14px);
  }
  
  .timeline-content {
    display: grid;
    grid-template-columns: minmax(240px, 0.86fr) minmax(0, 1.14fr);
    align-items: start;
    column-gap: var(--spacing-xl);
    row-gap: var(--spacing-sm);
  }
  
  .timeline-date {
    font-size: var(--font-size-sm);
  }
  
  .timeline-title {
    font-size: var(--font-size-xl);
  }
  
  .timeline-company {
    font-size: var(--font-size-base);
  }
  
  .timeline-description {
    font-size: var(--font-size-base);
    min-width: 0;
    padding-left: calc(var(--spacing-xl) + 4px);
  }

  .timeline-meta {
    gap: 0.7rem;
    padding-right: var(--spacing-sm);
  }

  .experience-disclosure-list {
    justify-content: flex-end;
    margin-top: 0;
    padding-left: calc(var(--spacing-xl) + 4px);
  }

  .experience-disclosure {
    width: fit-content;
    max-width: max-content;
  }
}

/* ===== Timeline Accessibility & Performance ===== */

/**
 * Reduced motion support
 * Requirement 7.6: Respect user motion preferences
 */
@media (prefers-reduced-motion: reduce) {
  .timeline-marker {
    transition: none;
  }
  
  .timeline-item:hover .timeline-marker {
    transform: translateX(-50%);
  }

  .experience-toggle::after,
  .experience-panel {
    transition: none;
  }
  
  @media (max-width: 767px) {
    .timeline-item:hover .timeline-marker {
      transform: translateX(0);
    }
  }
}

/**
 * High contrast mode support
 */
@media (prefers-contrast: high) {
  .timeline::before {
    opacity: 1;
    width: 3px;
  }
  
  .timeline-marker {
    border-width: 3px;
    border-color: currentColor;
  }
  
  .timeline-date {
    border-width: 2px;
    border-color: currentColor;
  }
}

/**
 * Print styles - optimize Timeline for printing
 */
@media print {
  .timeline {
    max-width: 100%;
    padding: var(--spacing-lg) 0;
  }
  
  .timeline::before {
    display: none;
  }
  
  .timeline-item {
    background: none;
    border: 1px solid var(--color-black);
    page-break-inside: avoid;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-md);
  }
  
  .timeline-marker {
    display: none;
  }
  
  .timeline-content {
    padding-left: 0;
  }
  
  .timeline-date {
    color: var(--color-black);
    background: none;
    border-color: var(--color-black);
  }
  
  .timeline-title {
    color: var(--color-black);
  }
  
  .timeline-company {
    color: var(--color-black);
  }
  
  .timeline-description {
    color: var(--color-black);
  }
}

/* ===== Contact Section ===== */

/**
 * Contact section - Provide contact methods and social links
 * Requirements: 2.1, 2.2, 2.3, 4.3, 11.7
 * Properties: 3 (Responsive Layout), 7 (Glassmorphism on Cards)
 */

#contact {
  position: relative;
  background: linear-gradient(
    145deg,
    var(--color-bg-dark) 0%,
    rgba(17, 17, 17, 0.98) 52%,
    var(--color-secondary-dark) 100%
  );
  color: var(--color-text-light);
  overflow: hidden;
}

.contact__rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.36;
  filter: none;
}

#contact::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 17, 17, 0.34) 0%,
    rgba(17, 17, 17, 0.5) 38%,
    rgba(17, 17, 17, 0.62) 100%
  );
  pointer-events: none;
  z-index: 1;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(920px, 84%);
  height: 2px;
  transform: translateX(-50%);
  border-radius: var(--radius-full);
  background: linear-gradient(
    90deg,
    rgba(245, 245, 245, 0) 0%,
    rgba(168, 168, 168, 0.28) 22%,
    rgba(245, 245, 245, 0.7) 50%,
    rgba(168, 168, 168, 0.28) 78%,
    rgba(245, 245, 245, 0) 100%
  );
  box-shadow:
    0 0 10px rgba(245, 245, 245, 0.12),
    0 0 20px rgba(168, 168, 168, 0.08);
  opacity: 0.8;
  pointer-events: none;
  animation: section-divider-breathe 3.8s ease-in-out infinite;
}

#contact .section__title {
  color: var(--color-primary-light);
}

/* Contact content wrapper */
.contact-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
  width: 100%;
  max-width: var(--container-lg);
  margin: 0 auto;
  padding: var(--spacing-xl);
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
  z-index: 2;
}

  .contact-footer-text {
    position: relative;
    z-index: 2;
    margin: var(--spacing-2xl) auto 0;
    width: 100%;
  text-align: center;
  color: rgba(245, 245, 245, 0.72);
  font-size: var(--font-size-sm);
    letter-spacing: 0.01em;
  }

  .contact-footer {
    display: block;
    width: 100%;
  }

@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .contact-content {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Contact intro text */
.contact-intro {
  margin: 0 auto;
  max-width: 68ch;
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: rgba(245, 245, 245, 0.9);
  text-align: justify;
  text-justify: inter-word;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  width: 100%;
}

.contact-primary {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Contact methods grid container */
.contact-methods {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-lg);
  width: 100%;
}

.contact-methods--dock {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Icon action link with liquid-glass */
.contact-icon-link {
  --contact-liquid-o: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  width: auto;
  min-height: 56px;
  min-width: 56px;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: linear-gradient(
    155deg,
    rgba(168, 168, 168, 0.22) 0%,
    rgba(38, 38, 38, 0.4) 56%,
    rgba(17, 17, 17, 0.62) 100%
  );
  color: var(--color-primary-light);
  text-decoration: none;
  box-shadow:
    0 8px 20px rgba(17, 17, 17, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform var(--transition-fast) var(--easing-default),
              box-shadow var(--transition-fast) var(--easing-default),
              border-color var(--transition-fast) var(--easing-default);
  overflow: hidden;
  isolation: isolate;
}

.contact-icon-link--email {
  width: min(100%, 560px);
  justify-content: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: calc(var(--radius-xl) - 2px);
  background: linear-gradient(
    155deg,
    rgba(245, 245, 245, 0.14) 0%,
    rgba(168, 168, 168, 0.12) 38%,
    rgba(17, 17, 17, 0.44) 100%
  );
  box-shadow:
    0 18px 34px rgba(17, 17, 17, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.contact-icon-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.32) 0%,
      rgba(255, 255, 255, 0) 54%
    );
  opacity: calc(0.55 + var(--contact-liquid-o));
  transition: opacity var(--transition-fast) var(--easing-default);
  pointer-events: none;
}

.contact-icon-link img,
.contact-icon-link span {
  position: relative;
  z-index: 1;
}

.contact-icon-link img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.contact-icon-link span {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary-light);
  word-break: break-word;
}

.contact-icon-link__content {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.contact-icon-link__title {
  display: block;
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.01em;
}

.contact-icon-link__meta {
  display: block;
  font-size: 0.78rem;
  font-weight: var(--font-weight-normal);
  color: rgba(245, 245, 245, 0.72);
  line-height: 1.45;
}

.contact-icon-link .contact-icon-link__meta {
  font-weight: var(--font-weight-normal);
}

.contact-icon-link--icon-only {
  width: 68px;
  min-width: 68px;
  min-height: 68px;
  padding: 0.9rem;
  border-radius: 999px;
  gap: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.contact-icon-link--icon-only img {
  width: 32px;
  height: 32px;
  filter:
    drop-shadow(0 10px 16px rgba(17, 17, 17, 0.22))
    drop-shadow(0 0 12px rgba(245, 245, 245, 0.06));
}

.contact-icon-link:hover {
  --contact-liquid-o: 0.12;
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow:
    0 12px 24px rgba(17, 17, 17, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.contact-icon-link--icon-only::before {
  content: none;
}

.contact-icon-link--icon-only:hover,
.contact-icon-link--icon-only:focus-visible {
  transform: translateY(-3px) scale(1.04);
  box-shadow: none;
}

.contact-icon-link--icon-only:hover img,
.contact-icon-link--icon-only:focus-visible img {
  filter:
    drop-shadow(0 14px 20px rgba(17, 17, 17, 0.28))
    drop-shadow(0 0 16px rgba(245, 245, 245, 0.1));
}

.contact-icon-link:focus {
  outline: 2px solid var(--color-secondary-dark);
  outline-offset: 2px;
}

@media (min-width: 1024px) {
  .contact-content {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    align-items: center;
    column-gap: var(--spacing-2xl);
    row-gap: 0;
  }

  .contact-intro {
    margin: 0;
    max-width: 32ch;
    padding-right: var(--spacing-xl);
    align-self: stretch;
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(245, 245, 245, 0.12);
  }

  .contact-actions {
    padding-left: var(--spacing-sm);
    align-items: center;
  }

  .contact-primary {
    justify-content: center;
  }

  .contact-icon-link--email {
    width: min(100%, 760px);
  }

  .contact-icon-link__meta {
    white-space: normal;
  }

  .contact-methods--dock {
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .contact-content {
    gap: var(--spacing-xl);
    padding: var(--spacing-lg) 0;
  }

  .contact-footer-text {
    margin-top: var(--spacing-lg);
    font-size: 0.78rem;
  }

  .contact-intro {
    font-size: var(--font-size-base);
  }

  .contact-primary {
    justify-content: stretch;
  }

  .contact-actions {
    gap: var(--spacing-md);
  }

  .contact-icon-link--email {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .contact-icon-link__title {
    font-size: 0.92rem;
  }

  .contact-icon-link__meta {
    font-size: 0.72rem;
  }

  .contact-methods {
    gap: var(--spacing-md);
  }

  .contact-methods--dock {
    width: 100%;
    justify-content: center;
    padding: 0;
    gap: 0.42rem;
  }

  .contact-icon-link {
    min-height: 52px;
    padding: var(--spacing-xs) var(--spacing-sm);
  }

  .contact-icon-link--icon-only {
    width: 56px;
    min-width: 56px;
    min-height: 56px;
    padding: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-icon-link {
    transition: none;
  }
}

@media (prefers-contrast: high) {
  .contact-icon-link {
    border-width: 2px;
    border-color: currentColor;
  }
}

@media print {
  .contact-methods {
    justify-content: flex-start;
  }

  .contact-icon-link {
    background: none;
    border: 1px solid var(--color-black);
    box-shadow: none;
  }
}

/* Footer */
.footer {
  padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-2xl);
  background: linear-gradient(
    145deg,
    var(--color-bg-dark) 0%,
    rgba(17, 17, 17, 0.98) 52%,
    var(--color-secondary-dark) 100%
  );
  border-top: 1px solid rgba(245, 245, 245, 0.12);
}

.footer__container {
  max-width: var(--container-xl);
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: center;
}

.footer__text {
  margin: 0;
  width: 100%;
  text-align: center;
  color: rgba(245, 245, 245, 0.78);
  font-size: var(--font-size-sm);
}

/* Performance-lite mode for constrained devices.
   Keep the visual language, but avoid costly live blur/shadow/animation work. */
@media (max-width: 767px), (pointer: coarse) {
  html.perf-lite .nav,
  html.perf-lite .nav--scrolled,
  html.perf-lite .nav__menu,
  html.perf-lite .card--glass,
  html.perf-lite .project-card.card--glass,
  html.perf-lite .timeline-item.card--glass,
  html.perf-lite .research-item.card--glass,
  html.perf-lite .research-thread.card--glass,
  html.perf-lite .btn--glass,
  html.perf-lite .projects-tabs.is-enhanced .projects-tabs__rail,
  html.perf-lite .projects-mobile-filters__list,
  html.perf-lite .about__text,
  html.perf-lite .skill-category.card--glass,
  html.perf-lite .contact-icon-link {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  html.perf-lite .nav__progress::after,
  html.perf-lite .hero__name,
  html.perf-lite .hero__name::after,
  html.perf-lite #about::before,
  html.perf-lite #skills::before,
  html.perf-lite #projects::before,
  html.perf-lite #research::before,
  html.perf-lite #experience::before,
  html.perf-lite #contact::before,
  html.perf-lite .projects-tier__marker,
  html.perf-lite .projects-tier__marker::after,
  html.perf-lite .timeline::before,
  html.perf-lite .research-thread__node {
    animation: none;
  }

  html.perf-lite .hero__contrib-grid {
    opacity: 0.38;
    filter: none;
  }

  html.perf-lite .hero::before,
  html.perf-lite .hero::after {
    filter: blur(var(--blur-md));
  }

  html.perf-lite .project-card.card--glass,
  html.perf-lite .timeline-item.card--glass,
  html.perf-lite .research-item.card--glass,
  html.perf-lite .research-thread.card--glass,
  html.perf-lite .about__text,
  html.perf-lite .education-item {
    box-shadow:
      0 8px 18px rgba(17, 17, 17, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  html.perf-lite .contact__rain {
    opacity: 0.22;
  }

  html.perf-lite .research-thread__list {
    padding-left: 0;
  }

  html.perf-lite .research-thread__node,
  html.perf-lite .timeline-marker {
    display: none;
  }

  html.perf-lite .timeline::before {
    display: none;
  }

  html.perf-lite .timeline-item:hover .timeline-marker {
    transform: none;
  }

  html.perf-lite .timeline-content {
    padding-left: 0;
  }

  html.perf-lite .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
    transition-delay: 0ms;
    will-change: auto;
  }
}

html.perf-lite .nav,
html.perf-lite .nav--scrolled,
html.perf-lite .nav__menu,
html.perf-lite .card--glass,
html.perf-lite .btn--glass,
html.perf-lite .glass-effect,
html.perf-lite .glass-button,
html.perf-lite .glass-card,
html.perf-lite .contact-icon-link {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html.perf-lite .nav__progress::after,
html.perf-lite .hero__name,
html.perf-lite .hero__name::after,
html.perf-lite #about::before,
html.perf-lite #skills::before,
html.perf-lite #projects::before,
html.perf-lite #research::before,
html.perf-lite #experience::before,
html.perf-lite #contact::before,
html.perf-lite .projects-tier__marker,
html.perf-lite .projects-tier__marker::after,
html.perf-lite .timeline::before,
html.perf-lite .research-thumb__grid,
html.perf-lite .research-thumb__ring,
html.perf-lite .research-thumb__node,
html.perf-lite .research-thumb__wave,
html.perf-lite .research-thumb__pulse,
html.perf-lite .research-thumb__proof,
html.perf-lite .research-thumb__relay {
  animation: none;
}

html.perf-lite .hero__contrib-grid {
  opacity: 0.34;
  filter: none;
}

html.perf-lite .nav,
html.perf-lite .nav--scrolled {
  background:
    linear-gradient(
      145deg,
      rgba(38, 38, 38, 0.96) 0%,
      rgba(17, 17, 17, 0.99) 52%,
      rgba(0, 0, 0, 1) 100%
    );
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

html.perf-lite .research-thread__node {
  animation: none;
  border-color: rgba(168, 168, 168, 0.76);
  border-top-color: rgba(168, 168, 168, 0.76);
  border-right-color: rgba(168, 168, 168, 0.76);
  background: radial-gradient(
    circle,
    rgba(245, 245, 245, 0.78) 0%,
    rgba(245, 245, 245, 0.3) 42%,
    rgba(168, 168, 168, 0.08) 70%,
    rgba(17, 17, 17, 0) 100%
  );
  box-shadow:
    0 0 0 1px rgba(245, 245, 245, 0.12),
    0 0 10px rgba(245, 245, 245, 0.12);
}

/* ===== Scroll Animations ===== */

/**
 * Scroll animation utilities
 * Requirements: 7.3, 7.5, 7.6
 */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--transition-slow) var(--easing-out),
    transform var(--transition-slow) var(--easing-out);
  transition-delay: calc(var(--stagger-index, 0) * 60ms);
  will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
    transition-delay: 0ms;
    will-change: auto;
  }
}



