/* Modern About Page with Tokyo Night Theme */

/* Hero Section */
.main_about {
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--tn-bg-primary) 0%, var(--tn-bg-secondary) 100%);
  overflow: hidden;
}

.main_about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(122, 162, 247, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(187, 154, 247, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(125, 207, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.main__container_pages {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.main__image_video {
  width: 500px;
  height: 340px;
  margin: 0 auto 3rem;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--tn-shadow-lg);
  animation: float 6s ease-in-out infinite;
}

.main__image_video::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--tn-gradient-primary);
  border-radius: 22px;
  z-index: -1;
  animation: glow 3s ease-in-out infinite;
}

.main__image_video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.main__title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: var(--tn-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease 0.2s backwards;
  line-height: 1.2;
  padding-bottom: 0.2em;
}

.main__text_pages {
  font-size: 1.3rem;
  color: var(--tn-text-secondary);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 1 !important;
  visibility: visible !important;
}

/* About Section */
.about {
  padding: 8rem 0;
  background: var(--tn-bg-float);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 30%, rgba(125, 207, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(187, 154, 247, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.about__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.about__image {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--tn-shadow-lg);
  transform: perspective(1000px) rotateY(-5deg);
  transition: var(--tn-transition-slow);
}

.about__image:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.about__image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--tn-gradient-primary);
  opacity: 0.1;
  z-index: 1;
  transition: var(--tn-transition-normal);
}

.about__image:hover::before {
  opacity: 0.15;
}

.about__image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: var(--tn-transition-slow);
}

.about__content {
  animation: slideInRight 1s ease;
}

.about__title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 2rem;
  position: relative;
}

.about__title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--tn-gradient-primary);
  border-radius: 2px;
}

.about__text {
  color: var(--tn-text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.about__text p {
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.about__text p::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 4px;
  height: 4px;
  background: var(--tn-cyan);
  border-radius: 50%;
}

.about__button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  background: var(--tn-gradient-primary);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--tn-transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(122, 162, 247, 0.3);
}

.about__button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(122, 162, 247, 0.4);
}

.about__button::after {
  content: '→';
  transition: var(--tn-transition-fast);
}

.about__button:hover::after {
  transform: translateX(5px);
}

/* Mission Section Enhancement */
.about__content {
  position: relative;
}

.about__content::before {
  content: '';
  position: absolute;
  top: -2rem;
  left: -2rem;
  width: 100px;
  height: 100px;
  background: var(--tn-gradient-secondary);
  opacity: 0.1;
  border-radius: 50%;
  z-index: -1;
}

/* Outro Section - About Page Override (compact CTA) */
.page__outro.outro {
  padding: 3rem 0 2rem;
  margin-top: 0;
  margin-bottom: 0;
}

.page__outro.outro .outro__container {
  padding: 0 2rem;
}

.page__outro.outro .outro__content {
  padding: 1.5rem;
  margin: 0;
}

/* Footer gap fix for about page */
.footer.glass-footer {
  margin-top: 0;
}


.outro__container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.outro__title {
  margin-bottom: 1.5rem;
  position: relative;
}

.outro__title::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--tn-gradient-primary);
  border-radius: 2px;
}

.outro__text {
  font-size: 1.2rem;
  color: var(--tn-text-secondary);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.outro__button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  background: var(--tn-gradient-secondary);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--tn-transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(125, 207, 255, 0.3);
}

.outro__button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(125, 207, 255, 0.4);
}

.outro__button::after {
  content: '→';
  transition: var(--tn-transition-fast);
}

.outro__button:hover::after {
  transform: translateX(5px);
}

/* Story Section */
.story {
  padding: 8rem 0;
  background: var(--tn-bg-primary);
  position: relative;
}

.story__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.story__header {
  width: 100%;
  text-align: left;
  z-index: 2;
  position: relative;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
}

.story__title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 2rem;
}

.story__text {
  color: var(--tn-text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 3rem;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.story__text p {
  margin-bottom: 1.5rem;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.story__image {
  position: relative;
  height: 100%;
  animation: none !important;
}

.story__image .glass-card-enhanced {
  height: 100%;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  transition: var(--tn-transition-normal);
  padding: 0;
  margin: 0;
  /* Restore glassmorphism effect */
  background: rgba(36, 40, 59, 0.4);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.4),
    0 0 100px rgba(122, 162, 247, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.story__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: var(--tn-transition-slow);
  display: block;
}

.story__image:hover .glass-card-enhanced {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(122, 162, 247, 0.3);
  box-shadow: 
    0 20px 60px rgba(122, 162, 247, 0.3),
    0 0 100px rgba(122, 162, 247, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.story__image:hover img {
  transform: scale(1.05);
}

.story__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1.5rem;
  height: 100%;
}

.stat-card {
  background: var(--tn-bg-secondary);
  border: 1px solid var(--tn-bg-tertiary);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: var(--tn-transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  height: 100%;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--tn-gradient-primary);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--tn-shadow-lg);
  border-color: var(--tn-blue);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--tn-text-primary);
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  color: var(--tn-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}


/* Mission Section */
.mission {
  padding: 8rem 0;
  background: var(--tn-bg-primary);
  position: relative;
}

.mission__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.mission__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.mission-card {
  background: var(--tn-bg-primary);
  border: 1px solid var(--tn-bg-tertiary);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  transition: var(--tn-transition-normal);
  position: relative;
  overflow: hidden;
}

.mission-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--tn-gradient-secondary);
}

.mission-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--tn-shadow-lg);
  border-color: var(--tn-cyan);
}

.mission-icon {
  margin-bottom: 1.5rem;
}

.mission-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--tn-text-primary);
  margin-bottom: 1rem;
}

.mission-text {
  color: var(--tn-text-secondary);
  line-height: 1.6;
  font-size: 1rem;
}

/* Team Section */
.team {
  padding: 8rem 0;
  background: var(--tn-bg-secondary);
}

.team__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.team__subtitle {
  text-align: left;
  max-width: 700px;
  margin: 0 0 3rem;
  color: var(--tn-text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
}

.team__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--tn-bg-secondary);
  border: 1px solid var(--tn-bg-tertiary);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  transition: var(--tn-transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--tn-gradient-primary);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--tn-shadow-lg);
  border-color: var(--tn-blue);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--tn-text-primary);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--tn-text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Why Section */
.why {
  padding: 8rem 0 4rem;
  background: var(--tn-bg-primary);
}

.why__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.why-item {
  background: var(--tn-bg-primary);
  border: 1px solid var(--tn-bg-tertiary);
  border-radius: 20px;
  padding: 2.5rem;
  transition: var(--tn-transition-normal);
  position: relative;
  overflow: hidden;
}

.why-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--tn-gradient-secondary);
}

.why-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--tn-shadow-lg);
  border-color: var(--tn-cyan);
}

.why-icon {
  margin-bottom: 1rem;
}

.why-icon img {
  filter: drop-shadow(0 0 6px rgba(125, 207, 255, 0.3));
}

.why-item:hover .why-icon img {
  filter: drop-shadow(0 0 10px rgba(125, 207, 255, 0.5));
}

.why-item h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--tn-text-primary);
  margin-bottom: 1rem;
}

.why-item p {
  color: var(--tn-text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Enhanced Visual Elements */
.about__container::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -10%;
  width: 200px;
  height: 200px;
  background: var(--tn-gradient-primary);
  opacity: 0.05;
  border-radius: 50%;
  z-index: -1;
  animation: pulse 4s ease-in-out infinite;
}

/* float, glow, pulse keyframes defined in brand/utilities.css */

/* Responsive Design */
@media (max-width: 1024px) {
  .about__container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .story__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about__image {
    max-width: 500px;
    margin: 0 auto;
    transform: none;
  }
  
  .about__image:hover {
    transform: scale(1.02);
  }
  
  .story__stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .mission__grid,
  .team__features,
  .why__grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .main__image_video {
    width: 250px;
    height: 167px;
    margin-bottom: 2rem;
  }
  
  .about__container {
    gap: 2rem;
  }
  
  .story__container {
    gap: 2rem;
  }
  
  .story__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about__image img,
  .story__image img {
    height: 350px;
    min-height: 350px;
  }
  
  .story__image {
    height: auto;
    min-height: 350px;
  }
  
  .story__image .glass-card-enhanced {
    height: 350px;
    min-height: 350px;
  }
  
  .about__text p {
    padding-left: 1rem;
  }
  
  .about__content::before {
    top: -1rem;
    left: -1rem;
    width: 60px;
    height: 60px;
  }
  
  .story__stats {
    grid-template-columns: 1fr;
  }
  
  .stat-card,
  .mission-card,
  .feature-card,
  .why-item {
    padding: 1.5rem;
  }

  .story,
  .mission,
  .team {
    padding: 4rem 0;
  }
  
  .why {
    padding: 4rem 0 2rem;
  }
  
  .page__outro.outro {
    padding: 1.5rem 0 1rem;
  }
  
  .page__outro.outro .outro__content {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .main__container_pages {
    padding: 0 1rem;
  }
  
  .main__image_video {
    width: 200px;
    height: 133px;
  }
  
  .about__container {
    padding: 0 1rem;
  }
  
  .about__image img {
    height: 250px;
  }
}

/* Loading Animation for Video */
.main__image_video::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(122, 162, 247, 0.3);
  border-top: 3px solid var(--tn-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  opacity: 0;
  transition: var(--tn-transition-normal);
}

.main__image_video.loading::after {
  opacity: 1;
}

/* spin keyframe defined in brand/utilities.css */

/* Footer Styles */
.footer {
  background: var(--tn-bg-float);
  border-top: 1px solid var(--tn-bg-tertiary);
  padding: 3rem 0 2rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--tn-gradient-primary);
}

.footer__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer__policy {
  color: var(--tn-text-secondary);
  text-decoration: none;
  transition: var(--tn-transition-fast);
  font-size: 0.9rem;
}

.footer__policy:hover {
  color: var(--tn-blue);
}

.footer__logo img {
  height: 40px;
  width: auto;
  transition: var(--tn-transition-fast);
}

.footer__logo:hover img {
  filter: brightness(1.2);
}

.footer__copyright {
  color: var(--tn-text-muted);
  font-size: 0.9rem;
}

/* Outro Button Spacing Fix */
.outro__actions {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

/* Fix for disappearing story content */
.story__content * {
  animation-play-state: running !important;
}

.story__text,
.story__text p,
.story__title {
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

/* ============================================
   AI Workforce Sections
   ============================================ */

/* --- Workforce Section --- */
.workforce {
  padding: 8rem 0;
  background: var(--tn-bg-secondary);
  position: relative;
}

.workforce__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.workforce__intro {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.workforce__narrative {
  color: var(--tn-text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
}

.workforce__narrative p {
  margin-bottom: 1.5rem;
}

.workforce__highlights {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.workforce-highlight {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 12px;
  transition: var(--tn-transition-normal);
}

.workforce-highlight:hover {
  transform: translateY(-3px);
  box-shadow: var(--tn-shadow-md);
}

.workforce-highlight__icon {
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(122, 162, 247, 0.3));
}

.workforce-highlight__content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tn-text-primary);
  margin-bottom: 0.35rem;
}

.workforce-highlight__content p {
  font-size: 0.9rem;
  color: var(--tn-text-secondary);
  line-height: 1.5;
}

/* --- Agents Section --- */
.agents {
  padding: 8rem 0;
  background: var(--tn-bg-primary);
  position: relative;
}

.agents__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.agents__department {
  margin-bottom: 3rem;
}

.agents__dept-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--tn-bg-tertiary);
}

.agents__dept-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
}

.agents__dept-count {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

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

.agent-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 0;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: var(--tn-transition-normal);
  min-height: 200px;
}

.agent-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2;
}

.agent-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--tn-shadow-lg);
}

/* Left side: text info */
.agent-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1.75rem;
  flex: 1;
  min-width: 0;
  order: 1;
}

.agent-card__name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--tn-text-primary);
  margin-bottom: 0.25rem;
}

.agent-card__role {
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.agent-card__dept-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  width: fit-content;
  margin-bottom: 0.75rem;
}

.agent-card__desc {
  font-size: 0.9rem;
  color: var(--tn-text-secondary);
  line-height: 1.6;
}

/* Right side: avatar in dark panel */
.agent-card__header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 260px;
  padding: 0;
  background: rgba(0, 0, 0, 0.3);
  margin-bottom: 0;
  order: 2;
  overflow: hidden;
}

.agent-card__avatar {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  border: none;
  flex-shrink: 0;
  display: block;
}

/* Hide the info block inside header — it's moved to body */
.agent-card__info {
  display: none;
}

/* Department Colors */
.dept-executive { color: var(--tn-purple); }
.dept-executive .agent-card__avatar { border-color: var(--tn-purple); }
.dept-executive .agent-card__role { color: var(--tn-purple); }
.dept-executive::before { background: linear-gradient(90deg, var(--tn-purple), var(--tn-blue)); }
.dept-executive:hover { border-color: rgba(187, 154, 247, 0.3); }
.dept-executive-bg { background: rgba(187, 154, 247, 0.15); color: var(--tn-purple); }

.dept-engineering { color: var(--tn-blue); }
.dept-engineering .agent-card__avatar { border-color: var(--tn-blue); }
.dept-engineering .agent-card__role { color: var(--tn-blue); }
.dept-engineering::before { background: linear-gradient(90deg, var(--tn-blue), var(--tn-cyan)); }
.dept-engineering:hover { border-color: rgba(122, 162, 247, 0.3); }
.dept-engineering-bg { background: rgba(122, 162, 247, 0.15); color: var(--tn-blue); }

.dept-qa-bizops { color: var(--tn-teal); }
.dept-qa-bizops .agent-card__avatar { border-color: var(--tn-teal); }
.dept-qa-bizops .agent-card__role { color: var(--tn-teal); }
.dept-qa-bizops::before { background: linear-gradient(90deg, var(--tn-teal), var(--tn-green)); }
.dept-qa-bizops:hover { border-color: rgba(115, 218, 202, 0.3); }
.dept-qa-bizops-bg { background: rgba(115, 218, 202, 0.15); color: var(--tn-teal); }

.dept-media { color: var(--tn-pink); }
.dept-media .agent-card__avatar { border-color: var(--tn-pink); }
.dept-media .agent-card__role { color: var(--tn-pink); }
.dept-media::before { background: linear-gradient(90deg, var(--tn-pink), var(--tn-purple)); }
.dept-media:hover { border-color: rgba(255, 143, 163, 0.3); }
.dept-media-bg { background: rgba(255, 143, 163, 0.15); color: var(--tn-pink); }

.dept-dynamic { color: var(--tn-orange); }
.dept-dynamic .agent-card__avatar { border-color: var(--tn-orange); }
.dept-dynamic .agent-card__role { color: var(--tn-orange); }
.dept-dynamic::before { background: linear-gradient(90deg, var(--tn-orange), var(--tn-yellow)); }
.dept-dynamic:hover { border-color: rgba(255, 158, 100, 0.3); }
.dept-dynamic-bg { background: rgba(255, 158, 100, 0.15); color: var(--tn-orange); }

.dept-standalone { color: var(--tn-yellow); }
.dept-standalone .agent-card__avatar { border-color: var(--tn-yellow); }
.dept-standalone .agent-card__role { color: var(--tn-yellow); }
.dept-standalone::before { background: linear-gradient(90deg, var(--tn-yellow), var(--tn-orange)); }
.dept-standalone:hover { border-color: rgba(224, 175, 104, 0.3); }
.dept-standalone-bg { background: rgba(224, 175, 104, 0.15); color: var(--tn-yellow); }

/* --- Boardroom Section (Enhanced) --- */
.boardroom {
  padding: 8rem 0;
  background: var(--tn-bg-secondary);
  position: relative;
}

.boardroom__container {
  max-width: 1400px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

.boardroom__description {
  color: var(--tn-text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.boardroom__description p {
  margin-bottom: 0.75rem;
}

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

/* Layout: Roundtable + Transcript side by side */
.boardroom__layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

/* --- Roundtable --- */
.boardroom__roundtable {
  background: rgba(22, 22, 30, 0.6);
  border: 1px solid var(--tn-bg-tertiary);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.boardroom__table-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--tn-text-muted);
  margin-bottom: 1rem;
}

.boardroom__circle {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 680px;
  margin: auto;
}

.boardroom__circle-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130px;
  height: 130px;
  background: var(--tn-bg-primary);
  border: 2px solid var(--tn-blue);
  border-radius: 50%;
  overflow: hidden;
  z-index: 3;
  box-shadow: 0 0 40px rgba(122, 162, 247, 0.4);
}

.boardroom__circle-center img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.4);
}

.boardroom__circle-center::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 162, 247, 0.5), transparent 70%);
  animation: boardroom-pulse 3s ease-in-out infinite;
  z-index: -1;
}

@keyframes boardroom-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Avatar positions around the circle */
.boardroom__circle-avatar {
  position: absolute;
  z-index: 2;
  --angle: calc(var(--i) * (360deg / var(--total)) - 90deg);
  --radius: 40%;
  --size: 80px;
  width: var(--size);
  height: var(--size);
  top: calc(50% + var(--radius) * sin(var(--angle)) - var(--size) / 2);
  left: calc(50% + var(--radius) * cos(var(--angle)) - var(--size) / 2);
  transition: transform 0.3s ease;
}

.boardroom__circle-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--tn-bg-tertiary);
  object-fit: cover;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
  transition: var(--tn-transition-normal);
}

.boardroom__circle-avatar:hover img {
  border-color: var(--tn-cyan);
  box-shadow: 0 0 20px rgba(125, 207, 255, 0.4);
}

/* Active speaker — larger with glow */
.boardroom__circle-avatar--speaking {
  --size: 120px;
  z-index: 4;
}

.boardroom__circle-avatar--speaking img {
  border-color: var(--tn-cyan);
  box-shadow:
    0 0 20px rgba(125, 207, 255, 0.5),
    0 0 40px rgba(125, 207, 255, 0.2);
}

.boardroom__circle-avatar--speaking::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 207, 255, 0.4), transparent 70%);
  animation: speaker-glow 2s ease-in-out infinite;
  z-index: -1;
}

@keyframes speaker-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.boardroom__speaking-label {
  position: absolute;
  bottom: -26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--tn-cyan);
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(125, 207, 255, 0.5);
  letter-spacing: 0.05em;
}

/* Spoken checkmark */
.boardroom__circle-avatar--spoken .boardroom__check {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  background: var(--tn-teal);
  color: var(--tn-bg-primary);
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 0 6px rgba(115, 218, 202, 0.5);
}

/* SVG connecting lines — animated flowing dots */
.boardroom__circle-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.boardroom__circle-lines line {
  stroke-linecap: round;
  stroke-dasharray: 4 12;
  animation: flow-dots 2s linear infinite;
}

.boardroom__circle-lines line:nth-child(2n) { animation-delay: -0.3s; }
.boardroom__circle-lines line:nth-child(3n) { animation-delay: -0.7s; }
.boardroom__circle-lines line:nth-child(4n) { animation-delay: -1.1s; }
.boardroom__circle-lines line:nth-child(5n) { animation-delay: -1.5s; }
.boardroom__circle-lines line:nth-child(6n) { animation-delay: -0.5s; }

@keyframes flow-dots {
  to { stroke-dashoffset: -32; }
}

/* --- Transcript Panel --- */
.boardroom__transcript {
  background: rgba(22, 22, 30, 0.6);
  border: 1px solid var(--tn-bg-tertiary);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.boardroom__transcript-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--tn-bg-tertiary);
}

.boardroom__transcript-header h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--tn-text-muted);
}

.boardroom__transcript-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  background: rgba(115, 218, 202, 0.15);
  color: var(--tn-teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.boardroom__transcript-feed {
  padding: 1rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}

/* Individual message */
.boardroom__message {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(65, 72, 104, 0.3);
}

.boardroom__message:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.boardroom__message-avatar {
  flex-shrink: 0;
}

.boardroom__message-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--tn-bg-tertiary);
  object-fit: cover;
}

.boardroom__message-body {
  flex: 1;
  min-width: 0;
}

.boardroom__message-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.boardroom__message-header strong {
  font-size: 0.85rem;
}

.boardroom__message-role {
  font-size: 0.7rem;
  color: var(--tn-text-muted);
}

.boardroom__message-header time {
  font-size: 0.65rem;
  color: var(--tn-text-muted);
  margin-left: auto;
}

.boardroom__message-body p {
  font-size: 0.85rem;
  color: var(--tn-text-secondary);
  line-height: 1.6;
}

/* Typing indicator */
.boardroom__typing-indicator {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}

.boardroom__typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--tn-text-muted);
  border-radius: 50%;
  animation: typing-bounce 1.4s ease-in-out infinite;
}

.boardroom__typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.boardroom__typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* --- Features bar below --- */
.boardroom__features-bar {
  max-width: 1400px;
  margin: 3rem auto 0;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}

.boardroom__feature-item {
  font-size: 0.85rem;
  color: var(--tn-text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.boardroom__feature-icon {
  color: var(--tn-cyan);
  font-size: 0.5rem;
  text-shadow: 0 0 6px rgba(125, 207, 255, 0.5);
}

/* ==========================================================================
   Mobile Agent Cards — must come AFTER base .agent-card styles
   ========================================================================== */
@media (max-width: 768px) {
  .agents__grid {
    grid-template-columns: 1fr;
  }

  .agent-card {
    flex-direction: column;
    min-height: auto;
  }

  .agent-card__header {
    width: 100%;
    height: 220px;
    order: 1;
  }

  .agent-card__body {
    order: 2;
    padding: 1.25rem;
    text-align: center;
  }

  .agent-card__body .agent-card__name {
    font-size: 1.2rem;
  }

  .agent-card__body .agent-card__dept-badge {
    margin-left: auto;
    margin-right: auto;
  }
}
