/* =========================================================
   Home page — section-specific styles
   ========================================================= */

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--agi-olive-deep);
  color: #fff;
  padding: 88px 0 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg svg { width: 100%; height: 100%; }
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 72px;
  align-items: start;
  padding-bottom: 100px;
}
.hero-copy { padding-top: 28px; }
.hero-title {
  margin-top: 28px;
  color: #fff;
  font-size: clamp(44px, 5.6vw, 84px);
}
.hero-title em {
  font-style: italic;
  color: var(--agi-yellow);
  font-weight: 400;
}
.hero-sub {
  margin: 28px 0 36px;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(248, 242, 226, 0.78);
  max-width: 540px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.hero-meta > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-meta .num {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
  color: var(--agi-yellow);
  letter-spacing: -0.01em;
}
.hero-meta .lbl {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(248, 242, 226, 0.7);
}

/* Hero stack of program cards ----------------------------- */
.hero-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  /* Aligns top of "Featured stories" label with baseline of "Promoting" in hero headline */
  padding-top: clamp(78px, 9.2vw, 120px);
}
.stack-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248, 242, 226, 0.7);
  margin-bottom: 4px;
}
.stack-label .dot {
  width: 8px; height: 8px;
  background: var(--agi-yellow);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.program-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .35s ease, background .35s ease, border-color .35s ease;
  cursor: pointer;
}
.program-card:hover {
  transform: translateX(-6px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.22);
}
.pc-art {
  position: relative;
  height: 100%;
  min-height: 130px;
  background: var(--bg-1);
  overflow: hidden;
}
.pc-art svg, .pc-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.pc-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.45));
  pointer-events: none;
}
.pc-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 4px 9px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.pc-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.pc-body .h-card { color: #fff; font-size: 17px; }
.pc-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--agi-yellow);
  font-weight: 500;
}
.pc-more svg { transition: transform .25s ease; }
.program-card:hover .pc-more svg { transform: translateX(4px); }

/* Marquee --------------------------------------------------- */
.hero-marquee {
  position: relative;
  z-index: 1;
  background: var(--agi-red);
  color: #fff;
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid rgba(0,0,0,0.15);
}
.marquee-track {
  display: flex;
  gap: 36px;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.marquee-track span {
  flex-shrink: 0;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============ ABOUT ============ */
.about {
  background: var(--cream);
  padding: 120px 0 100px;
  position: relative;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 88px;
}
.about-left .eyebrow { margin-bottom: 22px; }
.about-right p { font-size: 16px; line-height: 1.7; color: var(--ink-2); margin: 0 0 18px; }
.about-right .lead { color: var(--ink); font-weight: 400; }
.about-right .btn { margin-top: 20px; }

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pillar {
  padding: 36px 28px 36px 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pillar:last-child { border-right: none; padding-right: 0; }
.pillar:not(:first-child) { padding-left: 36px; }
.pillar-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--agi-red);
}
.pillar h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  margin: 0;
  letter-spacing: -0.01em;
}
.pillar p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

/* ============ LATEST ARTICLES ============ */
.latest {
  background: var(--paper);
  padding: 120px 0;
}
.latest-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 56px;
}
.latest-head .eyebrow { margin-bottom: 16px; }
.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.article-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  group: card;
}
.ac-img {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream-2);
}
.ac-illu, .ac-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .6s ease;
}
.article-card:hover .ac-illu, .article-card:hover .ac-photo { transform: scale(1.04); }
.ac-date {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--paper);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  z-index: 2;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.ac-date .day {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--agi-red);
}
.ac-date .mon {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 4px;
}
.ac-body {
  padding: 22px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ac-cat {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--agi-red);
  font-weight: 500;
}
.ac-body .h-card {
  font-size: 26px;
  line-height: 1.18;
}
.ac-body .h-card a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .35s ease;
}
.ac-body .h-card a:hover { background-size: 100% 1px; }
.ac-meta {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--ink-3);
}

/* ============ INITIATIVES ============ */
.initiatives {
  position: relative;
  padding: 130px 0 130px;
  color: var(--cream);
  overflow: hidden;
  background: var(--agi-olive-dark);
}
.init-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(232, 185, 54, 0.18), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(178, 47, 40, 0.18), transparent 55%),
    linear-gradient(180deg, var(--agi-olive-dark), var(--agi-olive-deep));
}
.initiatives::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(255,255,255,0.04) 79px, rgba(255,255,255,0.04) 80px);
  z-index: 0;
}
.init-head {
  position: relative;
  z-index: 1;
  margin-bottom: 64px;
}
.init-head .eyebrow { margin-bottom: 22px; }
.init-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.init-card {
  padding: 40px 30px 40px 0;
  border-right: 1px solid rgba(255,255,255,0.18);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: background .3s ease;
}
.init-card:last-child { border-right: none; padding-right: 0; }
.init-card:not(:first-child) { padding-left: 30px; }
.init-card:hover {
  background: rgba(255,255,255,0.03);
}
.ic-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--agi-yellow);
  margin-bottom: 6px;
}
.ic-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 8px;
  text-wrap: balance;
}
.init-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(248, 242, 226, 0.78);
  margin: 0;
  flex: 1;
}
.ic-tag {
  margin-top: 24px;
  align-self: flex-start;
  padding: 6px 12px;
  background: rgba(232, 185, 54, 0.15);
  border: 1px solid rgba(232, 185, 54, 0.35);
  color: var(--agi-yellow);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ============ PARTNERS ============ */
.partners {
  background: var(--cream);
  padding: 120px 0;
}
.partners-head {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}
.partners-head .eyebrow {
  display: inline-block;
  margin-bottom: 22px;
}
.partners-head .lead {
  margin-top: 22px;
  font-size: 18px;
  color: var(--ink-2);
}
.partners-grid-full {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  width: 100%;
}
.partner-tile {
  aspect-ratio: 1.6 / 1;
  min-width: 0;
  min-height: 160px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 28px 22px;
  transition: background .25s ease;
  cursor: default;
  position: relative;
  box-sizing: border-box;
}
.partner-tile .pt-logo {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.partner-tile .pt-logo img {
  max-height: 100%;
  max-width: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) contrast(0.95);
  opacity: 0.78;
  transition: filter .3s ease, opacity .3s ease, transform .3s ease;
}
.partner-tile:hover .pt-logo img {
  filter: grayscale(0%) contrast(1);
  opacity: 1;
  transform: scale(1.04);
}
.partner-tile .pt-name {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
}
.partner-tile small {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  text-transform: none;
  text-align: center;
  line-height: 1.3;
}
.partner-tile:hover {
  background: var(--cream-2);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .partners-grid-full { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .init-grid { grid-template-columns: repeat(2, 1fr); }
  .init-card { border-bottom: 1px solid rgba(255,255,255,0.18); }
  .init-card:nth-child(2) { border-right: none; padding-right: 0; }
  .init-card:nth-child(3) { padding-left: 0; }
  .init-card:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; }
}
@media (max-width: 720px) {
  .hero { padding-top: 56px; }
  .hero-meta { grid-template-columns: 1fr; gap: 20px; }
  .latest-grid { grid-template-columns: 1fr; }
  .about-pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--line); padding: 28px 0; }
  .pillar:last-child { border-bottom: none; }
  .pillar:not(:first-child) { padding-left: 0; }
  .init-grid { grid-template-columns: 1fr; }
  .init-card { border-right: none !important; padding: 28px 0 !important; border-bottom: 1px solid rgba(255,255,255,0.18); }
  .partners-grid-full { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .partners-head { margin-bottom: 40px; }
  .latest-head { flex-direction: column; align-items: start; }
  .marquee-track { font-size: 18px; }
}
