/**
 * home.css — Homepage-only (index.php)
 */

.main-section {
  margin: 0;
  padding: 0;
  width: 100%;
}

/**
 * Prof.'s voice panels — bridge (dark) + conviction (gold).
 * Shared structure; distinct surface tokens per variant.
 */
.font-body .home-bridge,
.font-body .home-bridge *,
.font-body .home-conviction,
.font-body .home-conviction * {
  font-family: var(--font-serif) !important;
  font-optical-sizing: auto;
}

.home-bridge__inner,
.home-conviction__inner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem 2.25rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.home-bridge__inner::before,
.home-conviction__inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.home-bridge__mark,
.home-conviction__mark {
  display: block;
  margin: 0 0 0.35rem;
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-style: normal;
  line-height: 1;
}

/* ── Leadership conviction (gold voice panel, after pillars) ─────────── */

.home-conviction {
  margin: 3rem 0 0;
}

.home-conviction__panel {
  margin-left: auto;
  margin-right: auto;
  max-width: 52rem;
  padding: 0 0.25rem;
}

.home-conviction__inner {
  border: 1px solid rgba(146, 110, 24, 0.45);
  background: linear-gradient(168deg, #e8d088 0%, #d4af37 40%, #c9a227 72%, #b8922b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    var(--shadow-card);
}

.home-conviction__inner::before {
  background: linear-gradient(90deg, #92400e 0%, #b8922b 50%, #92400e 100%);
}

.home-bridge__eyebrow,
.home-conviction__eyebrow {
  margin: 0.25rem 0 1.5rem 0;
  font-family: var(--font-serif) !important;
  font-size: var(--text-caption);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #685c31;
}

.home-bridge__eyebrow {
  color: #f3cf4be0;
}

.home-conviction__mark {
  color: rgba(15, 23, 42, 0.22);
}

.home-conviction__statement {
  margin: 0 auto;
  max-width: 44rem;
  font-size: clamp(1.125rem, 2.4vw, 1.25rem);
  line-height: 1.56;
  font-style: italic;
  font-weight: 400 !important;
  color: #1e293b;
  text-wrap: pretty;
}

.home-conviction__lead {
  font-style: normal;
  font-style: italic;
  font-weight: 700 !important;
  color: #0f172a;
}

.home-stats {
  font-family: var(--font-serif) !important;
}

.font-body .home-stats__label { 
  font-family: var(--font-serif) !important;
  font-size: 14px!important;
  color: var(--color-accent-yellow)!important;
  font-style: italic!important;
}

@media (min-width: 768px) {
  .home-conviction__inner,
  .home-bridge__inner {
    padding: 2.5rem 2.5rem 2.75rem;
  }
}

.hero-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}

.hero-bg-ken {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg-zoom {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  transform: translateZ(0) scale(1.02);
  transform-origin: 50% 0%;
  backface-visibility: hidden;
  will-change: transform;
  animation: heroKenBurnsDrift 18s ease-in-out infinite alternate;
}

.hero-bg-slider > .hero-bg-slide:nth-of-type(2) .hero-bg-zoom {
  animation-delay: -9s;
}

.hero-bg-slide.is-active {
  opacity: 1;
}

@keyframes heroKenBurnsDrift {
  0% {
    transform: translateZ(0) scale(1.02);
  }

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

@media (prefers-reduced-motion: reduce) {
  .hero-bg-zoom {
    animation: none;
    transform: translateZ(0) scale(1.03);
  }
}

.hero-dot.hero-dot-active {
  transform: scale(1.5);
  background: var(--color-accent-yellow);
  border-color: var(--color-accent-yellow);
}

.hero-text-col > * {
  opacity: 0;
  transform: translateY(18px);
  animation: heroFadeUp 0.7s ease forwards;
}

.hero-text-col > *:nth-child(1) { animation-delay: 0.15s; }
.hero-text-col > *:nth-child(2) { animation-delay: 0.30s; }
.hero-text-col > *:nth-child(3) { animation-delay: 0.45s; }
.hero-text-col > *:nth-child(4) { animation-delay: 0.60s; }
.hero-text-col > *:nth-child(5) { animation-delay: 0.75s; }

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

/* ── Homepage section shell ───────────────────────────────────────────── */

.home-section {
  width: 100%;
  padding: 4rem 1.5rem;
}

.home-section--slate {
  background-color: var(--color-slate-gray);
}

.home-section--deep {
  background-color: var(--color-deep-blue);
}

.home-section--dark {
  background-color: #0f172a;
  border-top: 1px solid #1e293b;
}

.home-section--outro {
  border-top: 1px solid #334155;
  background: linear-gradient(
    180deg,
    #0f172a 0%,
    var(--color-slate-gray) 38%,
    #0c1222 100%
  );
  padding-bottom: 5rem;
}

.home-section__inner {
  margin-left: auto;
  margin-right: auto;
  max-width: 80rem;
}

.home-section__intro {
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #334155;
  text-align: center;
}

.home-section__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
}

.home-section__title {
  margin: 0;
  width: 100%;
  text-align: center;
}

.home-section__dek {
  max-width: 40rem;
  margin: 1rem auto 0;
  padding: 0 1rem;
  text-align: center;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-style: italic;
  color: var(--text-muted);
}

.home-section__actions {
  display: flex;
  justify-content: center;
  margin: 1.25rem auto 0;
}

.font-body .home-section__dek {
  font-family: var(--font-serif) !important;
  font-optical-sizing: auto;
}

.home-section__title--with-pulse {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.home-section__pulse {
  display: inline-block;
  height: 0.5rem;
  width: 0.5rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background-color: var(--color-accent-yellow);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.home-section__action {
  flex-shrink: 0;
  white-space: nowrap;
}

.home-section__action-icon {
  height: 1rem;
  width: 1rem;
  flex-shrink: 0;
}

/* ── Pre-footer outro (journey close) ─────────────────────────────────── */

.home-outro__paths {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .home-outro__paths {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.home-outro__path {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.55);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.home-outro__path:hover {
  transform: translateY(-0.25rem);
  border-color: rgba(250, 204, 21, 0.35);
  box-shadow: var(--shadow-card);
}

.home-outro__path-title {
  margin: 0 0 0.75rem;
}

.font-body .home-outro__path-body {
  margin: 0;
  flex-grow: 1;
  color: var(--text-subtle);
  font-family: var(--font-serif) !important;
  font-style: italic!important;
  font-size: 1rem!important;
}

.home-outro__path-action {
  justify-content: center;
  margin-top: 1.25rem;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.home-hero {
  position: relative;
  min-height: 680px;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-deep-blue);
}

.home-hero__gradient-side {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 10;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.98) 0%,
    rgba(15, 23, 42, 0.95) 22%,
    rgba(15, 23, 42, 0.88) 36%,
    rgba(15, 23, 42, 0.72) 48%,
    rgba(15, 23, 42, 0.48) 58%,
    rgba(15, 23, 42, 0.26) 68%,
    rgba(15, 23, 42, 0.12) 78%,
    rgba(15, 23, 42, 0.04) 88%,
    transparent 100%
  );
}

.home-hero__gradient-bottom {
  pointer-events: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 8rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
}

.home-hero__content {
  position: relative;
  z-index: 20;
  display: flex;
  min-height: 680px;
  width: 100%;
  max-width: 80rem;
  align-items: center;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
}

@media (min-width: 768px) {
  .home-hero__content {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.home-hero__text {
  width: 100%;
  max-width: 42rem;
}

.home-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(250, 204, 21, 0.45);
  background: rgba(250, 204, 21, 0.1);
  padding: 0.375rem 1rem;
  font-family: var(--font-vend) !important;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent-yellow);
  backdrop-filter: blur(12px);
}

.font-body .home-hero__badge {
  font-family: var(--font-vend) !important;
}

.home-hero__title {
  margin: 0 0 1rem;
}

.home-hero__title-line {
  display: block;
}

.home-hero__title-line--accent {
  margin-top: 0.25rem;
}

.font-body .home-hero__dek {
  margin: 0 0 1.5rem;
  max-width: 32rem;
  font-size: 1.125rem!important;
  font-family: var(--font-serif) !important;
  font-style: italic;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-hero__dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 2rem;
}

.home-hero__dot {
  height: 0.375rem;
  width: 0.375rem;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 9999px;
  border: 1px solid rgba(250, 204, 21, 0.6);
  background: rgba(250, 204, 21, 0.35);
  transition: all 0.3s ease;
}

/* ── Narrative bridge (hero → policy content) ─────────────────────────── */

.home-bridge {
  width: 100%;
  border-bottom: 1px solid #334155;
  background-color: var(--color-slate-gray);
  padding: 3rem 1.25rem 3.5rem;
}

.home-bridge__panel {
  margin-left: auto;
  margin-right: auto;
  max-width: 52rem;
  padding: 0 0.25rem;
}

.home-bridge__inner {
  border: 1px solid rgba(250, 204, 21, 0.28);
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.97) 0%, rgba(30, 41, 59, 0.72) 100%);
}

.home-bridge__inner::before {
  background: var(--color-accent-yellow);
}

.home-bridge__mark {
  color: rgba(250, 204, 21, 0.5);
}

.home-bridge__statement {
  margin: 0 0 1rem 0;
  font-size: clamp(1.125rem, 2.4vw, 1.25rem);
  line-height: 1.56;
  font-style: italic;
  color: var(--color-clean-white);
}

.home-bridge__role {
  font-style: italic;
  color: var(--color-accent-yellow);
}

.home-bridge__credentials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin: 1.25rem auto 0;
  max-width: 36rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(250, 204, 21, 0.14);
  font-size: var(--text-body-sm);
  line-height: 1.5;
  font-style: normal;
  color: #94a3b8;
}

.home-bridge__credentials-label {
  font-size: var(--text-caption);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gray);
}

.home-bridge__credential-role {
  font-style: italic;
  color: var(--color-gray);
}

.home-bridge__credential-sep {
  color: rgba(250, 204, 21, 0.55);
  font-style: normal;
}

.home-bridge__action {
  margin: 1.25rem 0 0;
}

.font-body .home-bridge__action .ui-link {
  font-family: var(--font-body) !important;
  font-size: var(--text-body-sm);
  font-style: normal;
}

@media (min-width: 768px) {
  .home-bridge {
    padding: 3.5rem 1.5rem 4rem;
  }
}

/* ── News ticker ──────────────────────────────────────────────────────── */

.home-ticker {
  width: 100%;
  border-bottom: 1px solid #1e293b;
  background-color: var(--color-deep-blue);
  font-family: var(--font-serif) !important;
}

.home-ticker__inner {
  display: flex;
  height: 3rem;
  max-width: 80rem;
  align-items: center;
  margin: 0 auto;
}

.home-ticker__label {
  z-index: 10;
  display: flex;
  height: 100%;
  align-items: center;
  white-space: nowrap;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  color: var(--color-accent-yellow);
  text-decoration: none;
  transition: color 0.15s ease;
}

.home-ticker__label:hover {
  color: var(--color-clean-white);
}

.home-ticker__track {
  display: flex;
  height: 100%;
  flex: 1;
  align-items: center;
  overflow: hidden;
  padding: 0 1rem;
  background-color: var(--color-deep-blue);
}

.home-ticker__item {
  font-style: italic;
  font-size: 0.875rem;
  color: var(--color-clean-white);
  text-decoration: none;
  transition: color 0.15s ease;
}

a.home-ticker__item:hover {
  color: var(--color-accent-yellow);
}

.home-ticker__item--plain {
  color: var(--text-muted);
}

/* ── Unified homepage cards ─────────────────────────────────────────────── */

.home-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .home-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-card-grid--tiles {
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 640px) {
  .home-card-grid--tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

.home-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-card);
  padding: var(--card-padding);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-card-hover);
}

.home-card--impact {
  background-color: var(--surface-card);
  border-color: rgba(51, 65, 85, 0.5);
}

.home-card--pillar {
  background-color: var(--surface-card-alt);
}

.home-card--tile {
  align-items: center;
  height: auto;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.home-card__icon-wrap {
  display: flex;
  height: 3.5rem;
  width: 3.5rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-card);
  background: rgba(250, 204, 21, 0.1);
  transition: transform 0.3s ease;
}

.home-card:hover .home-card__icon-wrap {
  transform: scale(1.1);
}

.home-card__icon {
  height: 1.75rem;
  width: 1.75rem;
  color: var(--color-accent-yellow);
}

.home-card__index {
  display: flex;
  height: 3.5rem;
  width: 3.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border-radius: 9999px;
  border: 2px solid rgba(250, 204, 21, 0.5);
  background-color: var(--surface-base);
  font-family: var(--font-heading) !important;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent-yellow);
}

.home-card__title {
  margin: 0 0 1rem;
}

.home-card__title-link {
  display: block;
  margin-bottom: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: color 0.15s ease;
}

.home-card__title-link:hover {
  color: var(--color-accent-yellow);
}

.font-body .home-card__body {
  margin: 0;
  font-family: var(--font-vend)!important;
  flex-grow: 1;
  font-size: 14px!important;
  color: #c6c6c6!important;
}

.home-card__link {
  margin-top: 1.5rem;
}

.home-card__tile-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
}

.home-card__tile-icon {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.home-card-grid__empty {
  grid-column: 1 / -1;
  padding: 3rem 0;
  text-align: center;
  color: var(--text-subtle);
}

/* ── Impact grid (stats) ──────────────────────────────────────────────── */

.home-stats {
  display: flex;
  font-family: var(--font-vend) !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(51, 65, 85, 0.5);
}

@media (min-width: 768px) {
  .home-stats {
    gap: 5rem;
  }

  .home-stats--policy {
    gap: 2.5rem;
  }
}

.home-stats--academic {
  margin-top: 3rem;
}

.home-stats__item {
  text-align: center;
}

.home-stats__value {
  margin-bottom: 0;
  font-size: 2.25rem;
  font-weight: 400;
  font-family: var(--font-vend) !important;
  color: var(--color-clean-white);
  transition: color 0.3s ease;
}

.home-stats__item:hover .home-stats__value {
  color: var(--color-accent-yellow);
}

.font-body .home-stats__suffix {
  color: var(--color-accent-yellow);
  font-weight: 400!important;
  font-family: var(--font-serif) !important;
  font-style: italic!important;
  font-size: 1.875rem!important;
}

.home-stats__label {
  margin: 0;
  font-size: 14px!important;
  font-family: var(--font-serif) !important;
  color: var(--color-accent-yellow)!important;
}

.home-stats__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.home-stats__nav-sep {
  color: #64748b;
}

/* ── Research section ───────────────────────────────────────────────────── */

.home-research {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .home-research {
    flex-direction: row;
  }
}

.home-research__grid-wrap,
.home-research__accordions {
  width: 100%;
  min-width: 0;
}

@media (min-width: 1024px) {
  .home-research__grid-wrap,
  .home-research__accordions {
    width: 50%;
  }
}

.home-research-accordion {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-card);
}

.home-research-accordion + .home-research-accordion {
  margin-top: 1rem;
}

.home-research-accordion__title {
  margin: 0;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  color: #e2e8f0;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.home-research-accordion__title::-webkit-details-marker {
  display: none;
}

.home-research-accordion__title::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid #e2e8f0;
  border-bottom: 2px solid #e2e8f0;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease;
  pointer-events: none;
}

.home-research-accordion[open] > .home-research-accordion__title::after {
  transform: translateY(-35%) rotate(225deg);
}

.home-research-accordion__content {
  padding: 0 1rem 1rem;
}

.home-research-accordion__list {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.home-research-accordion__list li + li {
  margin-top: 0.5rem;
}

.home-research-accordion__link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.home-research-accordion__link:hover {
  color: var(--color-accent-yellow);
}
