/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-orange: #FC8626;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  --font-size-xs: 0.75rem;
  --font-size-base: 1rem;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 3rem;
  --font-size-4xl: 4rem;
  --font-size-5xl: 5rem;

  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-blur: blur(20px);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--color-black);
  color: var(--color-white);
  line-height: 1.6;
  font-size: var(--font-size-base);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(252, 134, 38, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(252, 134, 38, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  will-change: scroll-position;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 50% 50%, rgba(252, 134, 38, 0.15) 0%, transparent 70%);
  opacity: 0.5;
  z-index: 0;
  overflow: hidden;
}

.hero-background>.gradient-orb {
  z-index: 2;
}

/* Team Photos Background */
.team-photos-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  transform: translateZ(0);
  will-change: contents;
  contain: layout style paint;
}

.team-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(8px) brightness(0.5) grayscale(0.15) contrast(1.2);
  transform: translateZ(0) scale(1.05);
  pointer-events: none;
  will-change: opacity;
  z-index: 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Animation delays for staggered fade in/out - 9 photos over 45 seconds */
.team-photo-1 {
  animation: teamPhotoFade 45s infinite;
  animation-delay: 0s;
}

.team-photo-2 {
  animation: teamPhotoFade 45s infinite;
  animation-delay: 5s;
}

.team-photo-3 {
  animation: teamPhotoFade 45s infinite;
  animation-delay: 10s;
}

.team-photo-4 {
  animation: teamPhotoFade 45s infinite;
  animation-delay: 15s;
}

.team-photo-5 {
  animation: teamPhotoFade 45s infinite;
  animation-delay: 20s;
}

.team-photo-6 {
  animation: teamPhotoFade 45s infinite;
  animation-delay: 25s;
}

.team-photo-7 {
  animation: teamPhotoFade 45s infinite;
  animation-delay: 30s;
}

.team-photo-8 {
  animation: teamPhotoFade 45s infinite;
  animation-delay: 35s;
}

.team-photo-9 {
  animation: teamPhotoFade 45s infinite;
  animation-delay: 40s;
}

@keyframes teamPhotoFade {
  0% {
    opacity: 0;
    transform: translateZ(0) scale(1.1);
  }

  5% {
    opacity: 0.4;
  }

  15% {
    opacity: 0.4;
  }

  20% {
    opacity: 0;
    transform: translateZ(0) scale(1.0);
  }

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

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s infinite ease-in-out;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(252, 134, 38, 0.6), transparent);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(252, 134, 38, 0.4), transparent);
  bottom: -150px;
  right: -150px;
  animation-delay: -7s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(252, 134, 38, 0.3), transparent);
  top: 50%;
  right: 10%;
  animation-delay: -14s;
}

@keyframes float {

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

  33% {
    transform: translate(30px, -30px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
  animation: fadeInUp 1s ease-out;
}

.hero-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-xl);
  /* Removed container animation to focus on the logo itself */
}

.hero-logo {
  height: 120px;
  width: auto;
  max-width: 90%;
  /* Intro animation (1.5s) + Infinite Idle (starts after 1.5s) */
  animation:
    cinematicIntro 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards,
    glowBreathe 4s ease-in-out 1.5s infinite;

  transition: all var(--transition-base);
  opacity: 0;
  /* Init hidden for intro */
}

.hero-logo:hover {
  filter: drop-shadow(0 0 60px rgba(252, 134, 38, 1));
  transform: scale(1.02);
}

@keyframes cinematicIntro {
  0% {
    opacity: 0;
    transform: scale(2) translateY(-20px);
    filter: blur(20px) drop-shadow(0 0 0 rgba(252, 134, 38, 0));
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px) drop-shadow(0 0 30px rgba(252, 134, 38, 0.6));
  }
}

@keyframes glowBreathe {

  0%,
  100% {
    filter: drop-shadow(0 0 30px rgba(252, 134, 38, 0.6));
  }

  50% {
    filter: drop-shadow(0 0 50px rgba(252, 134, 38, 0.8));
  }
}


.hero-subtitle {
  font-size: clamp(var(--font-size-xl), 3vw, var(--font-size-2xl));
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.02em;
  margin-bottom: var(--spacing-xl);
  text-align: center;
  min-height: 3em;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 1s ease-out 0.5s both;
}

.typewriter-text {
  display: inline-block;
  position: relative;
}

.typewriter-text::after {
  content: '|';
  display: inline-block;
  animation: blink 1s infinite;
  color: var(--color-orange);
  margin-left: 2px;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInUp 1s ease-out 0.7s both;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-number {
  font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-4xl));
  font-weight: 300;
  color: var(--color-orange);
  line-height: 1;
  margin-bottom: var(--spacing-xs);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
}

/* Hero Preview Cards */
.hero-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-sm);
  margin: var(--spacing-lg) 0;
}

.preview-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all var(--transition-base);
}

.preview-card:hover {
  transform: translateY(-8px) scale(1.05);
  border-color: rgba(252, 134, 38, 0.5);
  box-shadow: 0 8px 32px rgba(252, 134, 38, 0.3);
}

.preview-image {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.preview-card:hover .preview-image img {
  transform: scale(1.2);
}

.preview-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, rgba(252, 134, 38, 0.1), rgba(252, 134, 38, 0.05));
}

.preview-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-sm);
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.8),
      transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.preview-card:hover .preview-overlay {
  opacity: 1;
}

.preview-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: var(--font-size-xs);
  background: rgba(252, 134, 38, 0.2);
  border: 1px solid rgba(252, 134, 38, 0.3);
  border-radius: 8px;
  color: var(--color-orange);
  backdrop-filter: blur(10px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-xl);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--font-size-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.scroll-arrow {
  width: 2px;
  height: 30px;
  background: linear-gradient(to bottom,
      rgba(252, 134, 38, 0.8),
      transparent);
  position: relative;
  animation: scrollDown 2s ease-in-out infinite;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-orange);
  border-bottom: 2px solid var(--color-orange);
  transform: translateX(-50%) rotate(45deg);
}

@keyframes scrollDown {

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

  50% {
    transform: translateY(10px);
    opacity: 0.5;
  }
}

/* Timeline Section */
.timeline-section {
  padding: var(--spacing-xl) 0;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-3xl));
  font-weight: 300;
  text-align: center;
  margin-bottom: var(--spacing-xl);
  letter-spacing: -0.01em;
  color: var(--color-white);
  opacity: 0.95;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--spacing-lg) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom,
      transparent,
      rgba(252, 134, 38, 0.3) 10%,
      rgba(252, 134, 38, 0.3) 90%,
      transparent);
  transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(252, 134, 38, 0.5);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-xl);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.timeline-item:nth-child(1) {
  animation-delay: 0.1s;
}

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

.timeline-item:nth-child(3) {
  animation-delay: 0.3s;
}

.timeline-item:nth-child(4) {
  animation-delay: 0.4s;
}

.timeline-item:nth-child(5) {
  animation-delay: 0.5s;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 2rem;
  width: 16px;
  height: 16px;
  background: var(--color-orange);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 3;
  box-shadow:
    0 0 20px rgba(252, 134, 38, 0.8),
    0 0 40px rgba(252, 134, 38, 0.4),
    inset 0 0 10px rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: var(--spacing-md);
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-base);
  overflow: hidden;
  position: relative;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 12px 40px 0 rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(252, 134, 38, 0.1);
}

.timeline-content {
  width: 48%;
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 0;
  margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
  margin-right: 0;
}

.timeline-image {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: var(--spacing-sm);
  background: rgba(0, 0, 0, 0.3);
  position: relative;
}

.timeline-image>img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--transition-slow);
}

.timeline-image-centered>img:first-child {
  object-position: center center;
}

.timeline-image-contain {
  background: linear-gradient(135deg,
      #f9a8d4 0%,
      #c084fc 25%,
      #818cf8 50%,
      #c084fc 75%,
      #f9a8d4 100%);
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

.timeline-image-contain>img:first-child {
  object-fit: contain;
  object-position: center center;
}

@keyframes gradient-shift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.glass-card:hover .timeline-image img {
  transform: scale(1.1);
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
}

.timeline-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 0;
  backdrop-filter: none;
  transition: all var(--transition-base);
  overflow: hidden;
}

.timeline-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.glass-card:hover .timeline-logo {
  transform: scale(1.05);
}

.timeline-project {
  flex: 1;
  margin: 0;
}

.timeline-header:has(.timeline-logo) .timeline-project {
  margin: 0;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-3xl);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, rgba(252, 134, 38, 0.1), rgba(252, 134, 38, 0.05));
}

.timeline-year {
  font-size: var(--font-size-sm);
  color: var(--color-orange);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-xs);
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(252, 134, 38, 0.1);
  border: 1px solid rgba(252, 134, 38, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.timeline-project {
  font-size: clamp(var(--font-size-xl), 3vw, var(--font-size-2xl));
  font-weight: 400;
  margin-bottom: var(--spacing-xs);
  letter-spacing: -0.01em;
  color: var(--color-white);
}

.timeline-subtitle {
  font-size: var(--font-size-lg);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-xs);
  font-style: italic;
}

.timeline-period {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--spacing-sm);
  letter-spacing: 0.05em;
}

.timeline-description {
  font-size: var(--font-size-base);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: var(--spacing-sm);
}

.timeline-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-sm);
}

.feature-tag {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  font-size: var(--font-size-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.feature-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.feature-tag.award {
  background: rgba(252, 134, 38, 0.15);
  border-color: rgba(252, 134, 38, 0.3);
  color: var(--color-orange);
}

.timeline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-orange);
  text-decoration: none;
  font-size: var(--font-size-sm);
  letter-spacing: 0.05em;
  transition: all var(--transition-base);
  position: relative;
  padding: 0.5rem 1rem;
  background: rgba(252, 134, 38, 0.1);
  border: 1px solid rgba(252, 134, 38, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.timeline-link span {
  transition: transform var(--transition-base);
  display: inline-block;
}

.timeline-link:hover {
  color: var(--color-white);
  background: rgba(252, 134, 38, 0.2);
  border-color: rgba(252, 134, 38, 0.4);
  transform: translateX(4px);
}

.timeline-link:hover span {
  transform: translateX(4px);
}

/* Awards */
.timeline-awards {
  margin-top: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.award-item {
  display: flex;
  align-items: center;
}

.award-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 8px;
}

.award-link:hover {
  color: var(--color-white);
  background: rgba(252, 134, 38, 0.1);
  transform: translateX(4px);
}

.award-icon {
  font-size: var(--font-size-lg);
  line-height: 1;
}

.award-text {
  font-weight: 500;
}

.award-year {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  margin-left: 0.25rem;
}

/* Funding */
.timeline-funding {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.funding-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
}

.funding-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.funding-link:hover {
  transform: scale(1.05);
}

.fff-logo {
  height: 40px;
  width: auto;
  display: block;
}

.funding-text {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  font-style: italic;
  margin: 0;
}

/* Attribution */
.timeline-attribution {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
}

.attribution-text {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  text-align: center;
}

.attribution-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 8px;
}

.attribution-link:hover {
  color: var(--color-white);
  background: rgba(252, 134, 38, 0.1);
  transform: translateY(-2px);
}

.attribution-logo {
  height: 32px;
  width: auto;
  display: block;
  max-width: 150px;
}

.attribution-name {
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-left: 0.5rem;
}

/* Timeline Item Link Overlay */
.timeline-content.clickable {
  cursor: pointer;
  position: relative;
}

.timeline-content.clickable:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
  border-color: rgba(252, 134, 38, 0.3);
}

.timeline-item-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  text-decoration: none;
}

.timeline-item-link~* {
  position: relative;
  z-index: 2;
}

.timeline-content.clickable .timeline-link {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

/* Ensure all other interactive elements are above the card link */
.timeline-content a:not(.timeline-item-link),
.timeline-content button {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

/* Footer */
.footer {
  padding: var(--spacing-lg) 0;
  text-align: center;
  margin-top: var(--spacing-xl);
  position: relative;
  z-index: 1;
}

.footer-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
  padding: var(--spacing-md);
  border-radius: 20px 20px 0 0;
}

.footer-text {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  overflow-y: auto;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10001;
}

.modal-container {
  position: relative;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  margin: var(--spacing-lg) auto;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 10002;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: var(--color-white);
  font-size: var(--font-size-2xl);
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: 10003;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(252, 134, 38, 0.2);
  border-color: var(--color-orange);
  transform: rotate(90deg);
}

.modal-content {
  padding: var(--spacing-lg);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-logo {
  flex-shrink: 0;
}

.modal-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 12px;
}

.modal-title-section {
  flex: 1;
}

.modal-title {
  font-size: var(--font-size-3xl);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--color-white);
}

.modal-subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-xs);
}

.modal-period {
  font-size: var(--font-size-sm);
  color: var(--color-orange);
  font-weight: 500;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.modal-image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.modal-image-gallery img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-description {
  font-size: var(--font-size-base);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-md);
}

.modal-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}

.modal-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.modal-details h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--color-white);
}

.modal-details p {
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(252, 134, 38, 0.1);
  border: 1px solid rgba(252, 134, 38, 0.2);
  border-radius: 8px;
  color: var(--color-orange);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all var(--transition-base);
}

.modal-links a:hover {
  background: rgba(252, 134, 38, 0.2);
  border-color: rgba(252, 134, 38, 0.4);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal-container {
    width: 95%;
    margin: var(--spacing-md) auto;
    max-height: 95vh;
  }

  .modal-content {
    padding: var(--spacing-md);
  }

  .modal-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .modal-title {
    font-size: var(--font-size-2xl);
  }

  .modal-image-gallery {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 2rem;
  }

  .timeline-item::before {
    left: 2rem;
  }

  .timeline-content {
    width: calc(100% - 4rem);
    margin-left: 4rem !important;
    margin-right: 0 !important;
  }

  .hero {
    min-height: 80vh;
  }

  .timeline-section {
    padding: var(--spacing-lg) 0;
  }

  .hero-glass {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .glass-card {
    padding: var(--spacing-sm);
  }

  .hero-logo {
    height: 80px;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

  .hero-preview {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .preview-card {
    aspect-ratio: 16/9;
  }

  .orb-1,
  .orb-2,
  .orb-3 {
    filter: blur(60px);
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-xl: 4rem;
    --spacing-lg: 2rem;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  .timeline-content {
    width: calc(100% - 3rem);
    margin-left: 3rem !important;
  }

  .timeline::before {
    left: 1.5rem;
  }

  .timeline-item::before {
    left: 1.5rem;
  }

  .timeline-image {
    height: 150px;
  }
}

/* Smooth scroll behavior */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Legal Pages */
.nav-minimal {
  padding: var(--spacing-md) 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.nav-home {
  color: var(--color-orange);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.05em;
  font-size: var(--font-size-sm);
  display: inline-flex;
  align-items: center;
  transition: transform var(--transition-base);
}

.nav-home:hover {
  transform: translateX(-4px);
}

.legal-page {
  padding: var(--spacing-xl) 0;
  min-height: 80vh;
  padding-top: calc(var(--spacing-xl) + var(--spacing-lg));
  /* Make space for nav */
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.8);
}

.legal-content h1 {
  font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-3xl));
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
  font-weight: 300;
}

.legal-content h2 {
  font-size: var(--font-size-xl);
  color: var(--color-orange);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  font-weight: 400;
}

.legal-content h3 {
  font-size: var(--font-size-lg);
  color: var(--color-white);
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
}

.legal-content p {
  margin-bottom: var(--spacing-sm);
  line-height: 1.7;
}

.legal-content a {
  color: var(--color-orange);
  text-decoration: none;
  border-bottom: 1px dotted var(--color-orange);
}

.legal-content a:hover {
  border-bottom-style: solid;
}

/* Footer Links */
.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

.footer-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-link:hover {
  color: var(--color-orange);
}

/* Footer Socials & Redesign */
.footer {
  padding: var(--spacing-xxl) 0 var(--spacing-xl);
  /* More breathing room */
  margin-top: 0;
  position: relative;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.footer-glass {
  /* Removed the "card" look to avoid cut-off feeling */
  background: transparent;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  padding: 0;
  text-align: center;
}

.footer-text {
  color: rgba(255, 255, 255, 0.3);
  font-size: var(--font-size-sm);
  margin-top: var(--spacing-lg);
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-base);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
  color: var(--color-white);
  background: var(--color-orange);
  border-color: var(--color-orange);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(252, 134, 38, 0.3);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Desktop Timeline Improvements */
@media (min-width: 769px) {
  .timeline {
    max-width: 1200px;
    /* Widen container to let content breathe */
  }

  /* Large Year Marker on empty side */
  .timeline-item::after {
    content: attr(data-year);
    position: absolute;
    top: 2rem;
    font-size: 8rem;
    font-weight: 800;
    /* Revert to bold */
    line-height: 1;
    color: rgba(255, 255, 255, 0.05);
    /* Solid subtle fill */
    -webkit-text-stroke: 0;
    /* Remove stroke ("stars") */
    z-index: 0;
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    transition: all var(--transition-base);
  }

  /* Position Year: Odd items (Content Left) -> Year Right */
  .timeline-item:nth-child(odd)::after {
    right: 0;
    left: 55%;
    /* Start a bit past center */
    text-align: left;
  }

  /* Position Year: Even items (Content Right) -> Year Left */
  .timeline-item:nth-child(even)::after {
    left: 0;
    right: 55%;
    /* Start a bit before center */
    text-align: right;
  }

  /* Hover effect for Year */
  .timeline-item:hover::after {
    -webkit-text-stroke-color: rgba(252, 134, 38, 0.1);
    transform: scale(1.05);
  }

  /* Connector Lines */
  .timeline-content::before {
    content: '';
    position: absolute;
    top: 3rem;
    /* Align with dot */
    width: 2rem;
    /* Length of connector */
    height: 1px;
    background: linear-gradient(90deg, rgba(252, 134, 38, 0.5), transparent);
    z-index: 1;
  }

  /* Connector Position: Odd (Content Left) -> Line on Right edge */
  .timeline-item:nth-child(odd) .timeline-content::before {
    right: -2rem;
    /* Extend out to center */
    background: linear-gradient(to right, rgba(252, 134, 38, 0.5), rgba(252, 134, 38, 0.1));
  }

  /* Connector Position: Even (Content Right) -> Line on Left edge */
  .timeline-item:nth-child(even) .timeline-content::before {
    left: -2rem;
    /* Extend out to center */
    background: linear-gradient(to left, rgba(252, 134, 38, 0.5), rgba(252, 134, 38, 0.1));
  }
}