:root {
  --bg-color: #f5f5f7;
  --text-color: #1d1d1f;
  --gray: #86868b;
  --light-gray: #ffffff;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 60px;
  position: fixed;
  top: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 100;
  /* backdrop-filter is on ::before to avoid isolated stacking context */
}

nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(245, 245, 247, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}

.logo-wordmark {
  font-family: 'Newsreader', serif;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-color);
}

.nav-links a {
  text-decoration: none;
  color: var(--gray);
  margin-left: 40px;
  font-size: 0.95rem;
  font-weight: 400;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--text-color);
}

/* Scrollytelling Architecture */
.scrolly-section {
  width: 100%;
  /* Height is set inline, e.g., 300vh */
}

.sticky-content {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-color);
}

/* The Orbital Element generated by JS */
.orbital-container {
  /* Dimensions will be handled by JS inline styles */
  z-index: 0;
  will-change: transform, opacity;
  mix-blend-mode: multiply; /* Applied to the container so all icons blend properly with the page background regardless of transforms */
}

.spin-icon {
  position: absolute;
  width: 110px; /* Increased another 20% */
  height: 110px;
  margin-top: -55px; /* properly centers the icon on the orbital ring */
  margin-left: -55px;
  filter: brightness(1.15) contrast(1.05) saturate(2.8) hue-rotate(-5deg); /* Softer contrast, slightly shifted hue, and matte brightness for a claymorphic look */
  opacity: 0.6;
  will-change: transform;
}

/* Frosted Glass Background separated from text */
/* Hero Blur isolated container */
.hero-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 780px; /* Increased by 15% */
  max-width: 92vw; /* Prevents overflow on narrow screens */
  height: 780px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  text-align: center;
}

/* The blur background has been removed as per user request */

.hero-text {
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-family: 'Newsreader', serif;
  font-size: 4.5rem;
  font-weight: 400;
  letter-spacing: -0.04em;
  margin: 0 0 15px 0;
  color: var(--text-color);
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--gray);
  margin: 0 0 35px 0;
  font-weight: 300;
  letter-spacing: -0.01em;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.primary-button {
  display: inline-block;
  background: var(--text-color);
  color: var(--bg-color);
  border: none;
  padding: 14px 35px;
  border-radius: 40px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.primary-button:hover {
  transform: translateY(-2px) scale(1.02);
  background: #000000;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* About Us Scrollytelling Card */
.about-carousel-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  max-width: 90vw;
  max-height: 90vw;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  border-radius: 40px;
  background: linear-gradient(135deg, #111 0%, #222 100%);
  box-shadow: 0 40px 100px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: translate(-50%, -50%) scale(0.6);
  color: #fff;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: scale(0.95);
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.carousel-slide h2 {
  font-family: 'Newsreader', serif;
  font-size: 3.5rem;
  margin: 0 0 20px 0;
  color: #fff;
  letter-spacing: -0.04em;
}

.carousel-slide p {
  font-size: 1.15rem;
  color: #aaa;
  line-height: 1.7;
  margin: 0;
  max-width: 500px;
  font-weight: 300;
}

.carousel-controls {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  z-index: 30;
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.carousel-dots {
  display: flex;
  gap: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* Our Talent Section */
.talent-section {
  position: relative;
  z-index: 30;
  background: var(--bg-color);
  padding: 80px 40px 120px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.talent-header {
  text-align: center;
  margin-bottom: 60px;
}

.talent-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  letter-spacing: -0.03em;
}

.talent-header p {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

.talent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.talent-card {
  background: var(--bg-color); /* Match page background to fix icon blending without extreme contrast */
  border-radius: 24px;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Increased shadow to maintain depth since background matches page */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid rgba(0,0,0,0.03); /* Added slightly stronger border for the bento box look */
}

.talent-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.talent-card h3 {
  font-size: 1.4rem;
  margin: 0 0 15px 0;
  letter-spacing: -0.02em;
}

.talent-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 30px 0;
}

/* Atom Animation */
.atom-container {
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.atom-ring {
  position: absolute;
  border: 1px dashed rgba(0,0,0,0.15);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.atom-ring-1 { width: 80px; height: 80px; }
.atom-ring-2 { width: 120px; height: 120px; }
.atom-ring-3 { width: 160px; height: 160px; }

.atom-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  animation: orbitSpin linear infinite;
}

/* Ensure the icon stays upright by counter-spinning */
.atom-icon {
  position: absolute;
  width: 45px;
  height: 45px;
  top: -22.5px; /* offset to sit exactly on the ring edge */
  left: 50%;
  margin-left: -22.5px;
  animation: counterSpin linear infinite;
  filter: brightness(1.15) contrast(1.05) saturate(2.8) hue-rotate(-5deg); /* Matches the premium claymorphic filter from the hero section */
}

/* Individual orbit speeds and directions */
.orbit-1 { animation-duration: 6s; width: 80px; height: 80px; margin-top: -40px; margin-left: -40px; }
.orbit-1 .atom-icon { animation-duration: 6s; }

.orbit-2 { animation-duration: 10s; width: 120px; height: 120px; margin-top: -60px; margin-left: -60px; animation-direction: reverse; }
.orbit-2 .atom-icon { animation-duration: 10s; animation-direction: reverse; }

.orbit-3 { animation-duration: 14s; width: 160px; height: 160px; margin-top: -80px; margin-left: -80px; }
.orbit-3 .atom-icon { animation-duration: 14s; }

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

@keyframes counterSpin {
  100% { transform: rotate(-360deg); }
}

/* Pill Tags & Hover Reveal */
.pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  
  /* Hover Reveal Styling */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.talent-card:hover .pill-cloud {
  max-height: 400px; /* enough to show all pills */
  opacity: 1;
  margin-top: 25px; /* Adds space above the cloud when revealed */
  transform: translateY(0);
}

.pill-tag {
  background: #ffffff; /* pure white pops off the soft gray card */
  box-shadow: 0 4px 10px rgba(0,0,0,0.03); /* subtle depth */
  color: var(--text-color);
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.04);
  font-weight: 500;
  transition: all 0.2s ease;
}

.pill-tag:hover {
  background: var(--text-color);
  color: #ffffff;
  transform: scale(1.05);
}

/* CTA Section */
.cta-section {
  padding: 140px 40px;
  text-align: center;
  background: var(--bg-color);
}

.cta-content h2 {
  font-size: 3.5rem;
  letter-spacing: -0.04em;
  margin: 0 0 20px 0;
  color: var(--text-color);
}

.cta-content p {
  font-size: 1.25rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.btn-cosmos-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text-color);
  color: #ffffff;
  padding: 18px 40px;
  border-radius: 40px;
  font-size: 1.15rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.btn-cosmos-cta .arrow {
  transition: transform 0.3s ease;
}

.btn-cosmos-cta:hover {
  transform: translateY(-2px) scale(1.02);
  background: #000000;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.btn-cosmos-cta:hover .arrow {
  transform: translateX(5px);
}

/* Footer */
.site-footer {
  padding: 50px 40px;
  background: var(--bg-color);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 35px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-color);
}

.footer-legal {
  text-align: center;
  margin: 20px 0 0 0;
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 400;
  opacity: 0.7;
}

@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 3.5rem;
  }
  .talent-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* --- Navbar --- */
  nav {
    padding: 16px 24px;
  }
  .logo-img {
    height: 44px;
  }
  .nav-links a {
    margin-left: 20px;
    font-size: 0.85rem;
  }

  /* --- Hero --- */
  .hero-text h1 {
    font-size: 2.4rem;
  }
  .hero-text p {
    font-size: 1rem;
    max-width: 85vw;
  }
  .primary-button {
    padding: 13px 28px;
    font-size: 0.9rem;
  }

  /* --- Talent Grid --- */
  .talent-grid {
    grid-template-columns: 1fr;
  }
  .talent-section {
    padding: 60px 20px 80px 20px;
  }

  /* --- About Card: portrait rectangle, NOT a square --- */
  .about-carousel-wrapper {
    width: 88vw !important;  /* JS overrides inline, so !important is needed */
    max-width: 88vw !important;
    /* Height is driven by JS — we DON'T constrain it with max-height here */
    border-radius: 28px;
  }
  .carousel-slide {
    padding: 40px 28px 80px 28px; /* extra bottom for controls */
  }
  .carousel-slide h2 {
    font-size: 2.2rem;
  }
  .carousel-slide p {
    font-size: 1rem;
    max-width: 100%;
  }

  /* --- CTA Section --- */
  .cta-section {
    padding: 100px 24px;
  }
  .cta-content h2 {
    font-size: 2.2rem;
  }
  .cta-content p {
    font-size: 1rem;
  }
  .btn-cosmos-cta {
    font-size: 1rem;
    padding: 16px 32px;
  }

  /* --- Footer --- */
  .footer-links {
    gap: 16px;
  }
  .footer-links a {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  /* Smallest phones (iPhone SE etc.) */
  nav {
    padding: 14px 18px;
  }
  .logo-img {
    height: 36px;
  }
  .nav-links a {
    margin-left: 14px;
    font-size: 0.8rem;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text p {
    max-width: 90vw;
  }
  .carousel-slide h2 {
    font-size: 1.9rem;
  }
  .cta-content h2 {
    font-size: 1.9rem;
  }
}
