/* ===== HOMEPAGE TYPOGRAPHY ===== */
body.home {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ===== HERO SECTION ===== */
.hero-section {
  height: 92vh;
  min-height: 640px;
  max-height: 960px;
  position: relative;
  overflow: visible;
  z-index: 2;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
  transition-property: opacity;
  overflow: hidden;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide-img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide.active .hero-slide-img {
  animation: heroKenBurns 9s ease-out forwards;
}

@keyframes heroKenBurns {
  0% { scale: 1; }
  100% { scale: 1.06; }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background:
    linear-gradient(
      100deg,
      rgba(8, 26, 43, 0.94) 0%,
      rgba(8, 26, 43, 0.78) 45%,
      rgba(8, 26, 43, 0.42) 100%
    );
  display: flex;
  align-items: center;
}

.hero-content {
  color: var(--text-inverse);
  max-width: 820px;
}

/* Eyebrow badge above hero heading */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  margin-bottom: var(--space-6);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.hero-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.25);
  animation: eyebrowPulse 2.4s ease-in-out infinite;
}

@keyframes eyebrowPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(201, 168, 76, 0.08); }
}

.hero-content h1 {
  font-size: clamp(2.25rem, 4.4vw, 3.75rem);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: var(--space-6);
  color: var(--text-inverse);
  text-wrap: balance;
}

.hero-content p {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-8);
  opacity: 0.9;
  max-width: 600px;
  text-wrap: pretty;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
}

.hero-buttons .btn-primary i,
.btn-primary i {
  margin-left: var(--space-2);
  font-size: 0.85em;
  transition: transform 0.35s var(--ease-expo);
}

.btn-primary:hover i {
  transform: translateX(3px);
}

/* Ghost / secondary button */
.btn-ghost {
  display: inline-block;
  padding: var(--space-3) var(--space-8);
  color: var(--text-inverse);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  transition:
    background 0.4s var(--ease-expo),
    border-color 0.4s var(--ease-expo),
    transform 0.4s var(--ease-expo);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* ===== HERO SLIDE NAVIGATION ===== */
.hero-nav {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-dots {
  display: flex;
  gap: var(--space-2);
  pointer-events: auto;
}

.hero-dot {
  width: 34px;
  height: 4px;
  border: none;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  padding: 0;
  transition: background 0.4s var(--ease-expo), width 0.4s var(--ease-expo);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.55);
}

.hero-dot.active {
  width: 52px;
  background: var(--color-gold);
}

.hero-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: auto;
  transition: color 0.35s var(--ease-expo);
}

.hero-scroll-cue i {
  animation: scrollCueBob 2s ease-in-out infinite;
}

@keyframes scrollCueBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.hero-scroll-cue:hover {
  color: var(--color-gold);
}

/* ===== FLOATING HERO ICONS (used on inner pages) ===== */
.hero-float-icons {
  position: absolute;
  bottom: -28px;
  left: 0;
  width: 100%;
  z-index: 10;
  pointer-events: none;
  overflow: visible;
}

.hero-float-icons .container {
  position: relative;
  overflow: visible;
}

.hero-float-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  justify-items: center;
}

.hero-float-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--text-inverse);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  position: absolute;
  bottom: 0;
  pointer-events: auto;
  box-shadow: 0 8px 24px rgba(8, 26, 43, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.hero-float-grid {
  position: relative;
  height: 0;
  overflow: visible;
}

.hero-float-icon:nth-child(1) { left: 12.5%; transform: translateX(-50%); }
.hero-float-icon:nth-child(2) { left: 37.5%; transform: translateX(-50%); }
.hero-float-icon:nth-child(3) { left: 62.5%; transform: translateX(-50%); }
.hero-float-icon:nth-child(4) { left: 87.5%; transform: translateX(-50%); }

.hero-float-icon:hover {
  transform: translateX(-50%) translateY(-4px);
  box-shadow: 0 14px 36px rgba(8, 26, 43, 0.45);
}

/* ===== SECTION HEADERS (shared homepage pattern) ===== */
.section-head {
  max-width: 720px;
  margin: 0 auto var(--space-12);
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: var(--space-3);
}

.section-eyebrow-inverse {
  color: var(--color-gold);
}

.section-head .section-title {
  margin-bottom: var(--space-4);
}

.section-sub {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  text-wrap: pretty;
}

/* ===== PILLARS / HERO FEATURE STRIP ===== */
.hero-features {
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
  border-bottom: 1px solid rgba(8, 26, 43, 0.06);
}

.hero-features .container {
  position: relative;
}

.feature-grid {
  position: relative;
  z-index: 2;
  padding: var(--space-16) 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  text-align: left;
}

.feature-item {
  position: relative;
  padding: var(--space-8);
  border-radius: var(--card-radius);
  background: var(--bg-primary);
  border: 1px solid rgba(8, 26, 43, 0.08);
  box-shadow: 0 1px 4px rgba(8, 26, 43, 0.05);
  transition:
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-item::after {
  content: "";
  position: absolute;
  left: var(--space-8);
  right: var(--space-8);
  bottom: 0;
  height: 3px;
  border-radius: var(--radius-full) var(--radius-full) 0 0;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-expo);
}

.feature-item:hover {
  box-shadow: 0 16px 44px rgba(8, 26, 43, 0.12);
  transform: translateY(-5px);
  border-color: rgba(201, 168, 76, 0.35);
}

.feature-item:hover::after {
  transform: scaleX(1);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--text-inverse);
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-5);
  box-shadow: 0 6px 18px rgba(11, 60, 93, 0.25);
}

.feature-item h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
  color: var(--color-primary);
}

.feature-item p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

/* ===== ABOUT HOME ===== */
.about-home {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.about-text {
  max-width: 900px;
  margin: 0 auto;
  font-size: var(--font-size-lg);
  line-height: var(--line-height-loose);
  text-align: center;
  color: var(--text-secondary);
}

/* ===== SERVICES / WHAT WE DO ===== */
.services {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-8);
  border-radius: var(--card-radius);
  border: 1px solid rgba(8, 26, 43, 0.08);
  background: var(--bg-primary);
  box-shadow: 0 1px 4px rgba(8, 26, 43, 0.05);
  text-decoration: none;
  overflow: hidden;
  transition:
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  box-shadow: 0 18px 48px rgba(8, 26, 43, 0.14);
  transform: translateY(-5px);
  border-color: rgba(201, 168, 76, 0.4);
}

.service-index {
  position: absolute;
  top: var(--space-5);
  right: var(--space-6);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: rgba(8, 26, 43, 0.07);
  letter-spacing: -0.03em;
  transition: color 0.45s var(--ease-expo);
}

.service-card:hover .service-index {
  color: rgba(201, 168, 76, 0.35);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: rgba(11, 60, 93, 0.07);
  color: var(--color-primary);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-5);
  transition:
    background 0.45s var(--ease-expo),
    color 0.45s var(--ease-expo);
}

.service-card:hover .service-icon {
  background: var(--color-primary);
  color: var(--text-inverse);
}

.service-card h3 {
  margin-bottom: var(--space-3);
  color: var(--color-primary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.01em;
}

.service-card p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-6);
}

.service-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gold-dark);
}

.service-link i {
  font-size: 0.8em;
  transition: transform 0.35s var(--ease-expo);
}

.service-card:hover .service-link i {
  transform: translateX(4px);
}

/* ===== HOME NEWS SPOTLIGHT ===== */
.home-news-spotlight {
  padding: 0 0 var(--section-padding);
  background: var(--bg-primary);
}

.home-news-card {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0;
  border: 1px solid rgba(8, 26, 43, 0.08);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(8, 26, 43, 0.08);
  background: var(--bg-primary);
  transition:
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 52px rgba(8, 26, 43, 0.15);
}

.home-news-image {
  position: relative;
  overflow: hidden;
}

.home-news-image img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  display: block;
  transition: scale 0.7s var(--ease-expo);
}

.home-news-card:hover .home-news-image img {
  scale: 1.04;
}

.home-news-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  padding: var(--space-1) var(--space-3);
  background: var(--color-gold);
  color: var(--color-primary-dark);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(8, 26, 43, 0.25);
}

.home-news-content {
  padding: var(--space-10) var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.home-news-content h2 {
  font-size: var(--font-size-3xl);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  line-height: var(--line-height-tight);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.home-news-content p {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-6);
  text-wrap: pretty;
}

.news-meta {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: var(--space-3);
}

/* ===== IMPACT ===== */
.impact {
  padding: var(--section-padding) 0;
  background:
    radial-gradient(
      1200px 400px at 20% 0%,
      rgba(11, 60, 93, 0.55),
      transparent 60%
    ),
    var(--color-primary-dark);
  color: var(--text-inverse);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  text-align: center;
  gap: var(--space-8);
}

.impact h3 {
  font-size: var(--font-size-5xl);
  color: var(--color-gold);
  font-weight: var(--font-weight-bold);
}

.impact p {
  opacity: 0.85;
  font-size: var(--font-size-lg);
}

.impact-compact {
  padding: var(--space-12) 0;
}

.impact-compact .impact-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  align-items: stretch;
}

.impact-cell {
  position: relative;
  padding: var(--space-4) var(--space-2);
}

.impact-cell:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 56%;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.impact-compact h3 {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-2);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.impact-compact p {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
  opacity: 0.72;
}

/* ===== ALGOLAB HIGHLIGHT ===== */
.algolab-highlight {
  padding: var(--section-padding) 0;
  background:
    radial-gradient(
      900px 480px at 85% 20%,
      rgba(15, 95, 168, 0.35),
      transparent 65%
    ),
    linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: var(--text-inverse);
}

.algolab-highlight .section-title {
  color: var(--text-inverse);
  text-align: left;
}

.algolab-highlight .highlight-text > p {
  opacity: 0.9;
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-6);
  text-wrap: pretty;
}

.highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

/* Highlight bullet points */
.highlight-points {
  list-style: none;
  margin: 0 0 var(--space-8);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.highlight-points li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-base);
  opacity: 0.92;
}

.highlight-points i {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: rgba(201, 168, 76, 0.18);
  color: var(--color-gold);
  font-size: 0.65rem;
}

.highlight-image img {
  width: 100%;
  border-radius: var(--card-radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* ===== HIGHLIGHT IMAGE SLIDER (AlgoLab) ===== */
.highlight-image-slider {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.highlight-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.highlight-slide.active {
  opacity: 1;
  z-index: 1;
}

.highlight-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== RESEARCH HIGHLIGHT ===== */
.research-highlight {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.research-highlight .section-title {
  color: var(--color-primary);
  text-align: left;
}

.research-highlight .highlight-text > p {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-6);
  text-wrap: pretty;
}

.research-highlight .highlight-grid {
  direction: rtl;
}

.research-highlight .highlight-text,
.research-highlight .highlight-video-wrap {
  direction: ltr;
}

.highlight-video-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 20px 56px rgba(8, 26, 43, 0.18);
  border: 1px solid rgba(8, 26, 43, 0.08);
}

.highlight-video-layer {
  position: absolute;
  inset: 0;
  background: var(--color-primary-dark);
}

.highlight-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.highlight-bg-video.is-active {
  opacity: 1;
}

.video-live-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: rgba(8, 26, 43, 0.72);
  color: var(--text-inverse);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.video-live-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--color-gold);
  animation: eyebrowPulse 2.4s ease-in-out infinite;
}

/* Award chips */
.award-chips {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.award-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  align-self: flex-start;
  padding: var(--space-3) var(--space-5);
  background: var(--bg-primary);
  border: 1px solid rgba(8, 26, 43, 0.08);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(8, 26, 43, 0.05);
}

.award-chip i {
  color: var(--color-gold-dark);
}

/* ===== ALGOLAB UPDATE (HOME) ===== */
.home-algolab-update {
  padding: var(--section-padding-sm) 0;
  background: var(--bg-secondary);
}

.program-update-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: var(--color-primary-dark);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.program-update-media {
  position: relative;
  min-height: 360px;
}

.program-update-media.highlight-image-slider {
  aspect-ratio: auto;
  min-height: 360px;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

.program-update-media.highlight-image-slider .highlight-slide img {
  position: absolute;
  inset: 0;
}

.program-update-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-update-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to right,
    rgba(8, 26, 43, 0) 55%,
    rgba(8, 26, 43, 0.55) 100%
  );
  pointer-events: none;
}

.program-update-body {
  padding: var(--space-12) var(--space-10);
  color: var(--text-inverse);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.program-update-eyebrow {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: var(--space-3);
}

.program-update-body h3 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
  text-wrap: balance;
}

.program-update-body > p {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-6);
}

.program-update-timeline {
  list-style: none;
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.program-update-timeline li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.program-update-timeline .timeline-marker {
  position: relative;
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: var(--radius-full);
  background: var(--color-gold);
  flex-shrink: 0;
}

.program-update-timeline li:not(:last-child) .timeline-marker::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 5px;
  width: 2px;
  height: 34px;
  background: rgba(255, 255, 255, 0.18);
}

.program-update-timeline strong {
  display: block;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 2px;
}

.program-update-timeline span {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
}

.announcement-actions {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.flagship-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-gold-light);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  transition: color 0.3s var(--ease-expo), gap 0.3s var(--ease-expo);
}

.flagship-link:hover {
  color: var(--color-gold);
  gap: var(--space-3);
}

/* ===== PARTNERS ===== */
.partners {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
  text-align: center;
}

.partners-text {
  max-width: 720px;
  margin: 0 auto;
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  text-wrap: pretty;
}

.partners-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.partner-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-8) var(--space-12);
  background: var(--bg-secondary);
  border: 1px solid rgba(8, 26, 43, 0.08);
  border-radius: var(--card-radius);
  transition:
    box-shadow 0.45s var(--ease-expo),
    transform 0.45s var(--ease-expo),
    border-color 0.45s var(--ease-expo);
}

.partner-card:hover {
  box-shadow: 0 14px 40px rgba(8, 26, 43, 0.12);
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.35);
}

.partner-card span {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
}

.partners-logos img {
  height: 96px;
  width: 96px;
  object-fit: contain;
}

/* ===== CTA BUTTONS (homepage) ===== */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

body.home .cta-section {
  background:
    radial-gradient(
      1000px 420px at 50% 120%,
      rgba(15, 95, 168, 0.4),
      transparent 65%
    ),
    var(--color-primary);
  padding: var(--section-padding) 0;
}

body.home .cta-content h2 {
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--space-6);
  text-wrap: balance;
}

body.home .cta-content p {
  max-width: 640px;
  margin: 0 auto var(--space-8);
  opacity: 0.9;
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  text-wrap: pretty;
}

/* ===== HOMEPAGE RESPONSIVE ===== */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .highlight-grid {
    gap: var(--space-10);
  }

  .program-update-card {
    grid-template-columns: 1fr;
  }

  .program-update-media,
  .program-update-media.highlight-image-slider {
    min-height: 260px;
  }

  .program-update-media::after {
    background: linear-gradient(
      to bottom,
      rgba(8, 26, 43, 0) 55%,
      rgba(8, 26, 43, 0.55) 100%
    );
  }

  .program-update-body {
    padding: var(--space-10) var(--space-8);
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 88vh;
    min-height: 560px;
  }

  .hero-nav {
    bottom: var(--space-6);
  }

  .hero-scroll-cue {
    display: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    padding: var(--space-10) 0;
  }

  .home-news-card {
    grid-template-columns: 1fr;
  }

  .home-news-content {
    padding: var(--space-8) var(--space-6);
  }

  .home-news-spotlight {
    padding-bottom: var(--section-padding-xs);
  }

  .impact-compact .impact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .impact-cell:nth-child(3)::before {
    display: none;
  }

  .highlight-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .algolab-highlight .highlight-text {
    order: 1;
  }

  .algolab-highlight .highlight-image {
    order: 2;
  }

  .award-chip {
    align-self: stretch;
  }

  .partner-card {
    width: 100%;
    padding: var(--space-6);
  }

  .program-update-body {
    padding: var(--space-8) var(--space-6);
  }
}

@media (max-width: 480px) {
  .impact-compact .impact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
  }

  .hero-buttons {
    width: 100%;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-ghost {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content h1 {
    animation: none;
  }

  .hero-slide.active .hero-slide-img {
    animation: none;
  }

  .hero-slide-img {
    transform: none !important;
  }

  .hero-eyebrow-dot,
  .video-live-dot,
  .hero-scroll-cue i {
    animation: none;
  }
}

/* FABLE 5: I FINISHED THIS FILE */
