/* ===== HOMEPAGE ONLY =====
   The homepage uses a publication-led visual system without altering shared site components. */

body.home {
  --home-ink: var(--color-ink);
  --home-paper: var(--color-canvas);
  --home-paper-deep: var(--color-canvas-deep);
  --home-cobalt: var(--color-link);
  --home-amber: var(--color-cta);
  background: var(--home-paper);
  color: var(--color-text);
  text-rendering: optimizeLegibility;
}

body.home::selection { color: var(--color-on-ink); background: var(--home-cobalt); }
body.home ::-webkit-scrollbar { width: 12px; }
body.home ::-webkit-scrollbar-track { background: var(--home-paper); }
body.home ::-webkit-scrollbar-thumb { border: 3px solid var(--home-paper); border-radius: 999px; background: #718099; }
body.home a:focus-visible { outline: 3px solid var(--home-amber); outline-offset: 4px; }

body.home .page-main { background: var(--home-paper); }
body.home .shell { width: min(1180px, calc(100% - 40px)); }

body.home .hero--home {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(420px, 1.13fr);
  gap: clamp(44px, 7vw, 104px);
  width: 100vw;
  min-height: min(740px, calc(100vh - 72px));
  margin-inline: calc(50% - 50vw);
  padding: clamp(70px, 9vw, 136px) max(20px, calc((100vw - 1180px) / 2));
  overflow: hidden;
  color: var(--color-on-ink);
  background: var(--home-ink);
}

body.home .hero--home::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -13vw;
  bottom: -20vw;
  width: min(58vw, 780px);
  aspect-ratio: 1;
  border: 1px solid rgba(229, 164, 73, .42);
  border-radius: 50%;
}

body.home .hero--home .hero-copy {
  max-width: 38rem;
  align-self: center;
}

body.home .eyebrow {
  margin: 0 0 1.35rem;
  color: var(--home-amber);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
}

body.home .hero h1 {
  color: var(--color-on-ink);
  font-size: clamp(3.2rem, 6.35vw, 6.1rem);
  font-weight: 850;
  letter-spacing: -.055em;
  line-height: .99;
  overflow-wrap: anywhere;
  word-break: break-all;
}

body.home .hero-subtitle {
  max-width: 34rem;
  margin: 2rem 0 2.4rem;
  color: var(--color-ink-text);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.9;
}

body.home .hero-actions { gap: 1rem 1.5rem; }
body.home .button-primary {
  min-height: 48px;
  padding: .7rem 1.25rem;
  border: 1px solid var(--color-cta);
  border-radius: 0;
  color: var(--home-ink);
  background: var(--color-cta);
  box-shadow: none;
}
body.home .button-primary:hover { background: var(--color-cta-hover); transform: translateY(-2px); }
body.home .hero--home .text-arrow { color: var(--color-on-ink); }
body.home .hero--home .text-arrow:hover { color: var(--home-amber); }

body.home .featured-story {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-self: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.home .featured-story::after {
  content: "";
  position: absolute;
  right: -14px;
  bottom: -14px;
  z-index: -1;
  width: 38%;
  height: 34%;
  background: var(--home-cobalt);
}
body.home .featured-story:hover { box-shadow: none; transform: none; }
body.home .featured-story-media {
  aspect-ratio: 1.3 / 1;
  border: 0;
  border-radius: 0;
  background: #24314b;
  box-shadow: none;
}
body.home .featured-story-media img { border-radius: 0; transition: transform .55s cubic-bezier(.16, 1, .3, 1); }
body.home .featured-story:hover .featured-story-media img { transform: scale(1.035); }
body.home .featured-story-body {
  width: min(88%, 33rem);
  margin: -4.2rem 0 0 auto;
  padding: clamp(24px, 3.4vw, 42px);
  color: var(--color-on-ink);
  background: var(--color-ink-raised);
}
body.home .featured-story .category-badge {
  border-radius: 0;
  color: var(--home-amber);
  background: transparent;
  padding: 0;
  letter-spacing: .1em;
}
body.home .featured-story h2 {
  margin: .95rem 0 1rem;
  color: var(--color-on-ink);
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
  font-weight: 780;
  letter-spacing: -.035em;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-all;
}
body.home .featured-story p { margin: 0 0 1.35rem; color: var(--color-ink-text); line-height: 1.75; }
body.home .featured-story .text-arrow { color: var(--color-on-ink); }
body.home .featured-story:hover .text-arrow { color: var(--home-amber); }

body.home .home-section {
  padding: clamp(64px, 9vw, 120px) 0;
  border-top: 1px solid #c9c0b2;
}
body.home .home-section:first-of-type { border-top: 0; }
body.home .section-head {
  align-items: flex-end;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--home-ink);
}
body.home .section-head h2 {
  color: var(--home-ink);
  font-size: clamp(1.75rem, 3.3vw, 2.75rem);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1.05;
}
body.home .section-head a,
body.home .text-arrow { color: var(--home-cobalt); }
body.home .section-head a:hover,
body.home .text-arrow:hover { color: #193aa9; }
body.home .section-intro {
  max-width: 46rem;
  margin: 1.35rem 0 2.7rem;
  color: #566276;
  line-height: 1.85;
}
body.home .section-note { color: #566276; }

body.home .card-grid,
body.home .card-grid--two {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 42px) 22px;
}
body.home .article-card {
  grid-column: span 4;
  min-height: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.home .article-card:hover { box-shadow: none; transform: none; }
body.home .article-card .image-slot {
  aspect-ratio: 1.28 / 1;
  border: 0;
  border-radius: 0;
  background: #d6d9dd;
}
body.home .article-card .image-slot img { border-radius: 0; transition: transform .45s cubic-bezier(.16, 1, .3, 1), filter .45s ease; }
body.home .article-card:hover .image-slot img { filter: saturate(1.1) contrast(1.03); transform: scale(1.04); }
body.home .article-card-body { padding: 1.2rem 0 0; }
body.home .category-badge {
  border-radius: 0;
  color: #35506e;
  background: transparent;
  padding: 0;
  font-size: .75rem;
  letter-spacing: .1em;
}
body.home .article-card h3 {
  margin: .8rem 0 .65rem;
  color: var(--home-ink);
  font-size: clamp(1.12rem, 1.55vw, 1.42rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.35;
  transition: color .2s ease;
}
body.home .article-card:hover h3 { color: var(--home-cobalt); }
body.home .article-card p {
  color: #5c6879;
  font-size: .92rem;
  line-height: 1.72;
  -webkit-line-clamp: 3;
}
body.home .card-date { color: #788396; }

body.home .home-section:nth-of-type(2) .article-card:first-child {
  grid-column: span 6;
}
body.home .home-section:nth-of-type(2) .article-card:first-child .image-slot {
  aspect-ratio: 1.45 / 1;
}
body.home .home-section:nth-of-type(2) .article-card:first-child h3 {
  font-size: clamp(1.45rem, 2.3vw, 2.1rem);
}
body.home .home-section:nth-of-type(3) .article-card { grid-column: span 6; }
body.home .home-section:nth-of-type(3) .article-card:nth-child(3),
body.home .home-section:nth-of-type(3) .article-card:nth-child(4) { grid-column: span 3; }
body.home .home-section:nth-of-type(5) .article-card:first-child { grid-column: span 6; }

body.home .report-card {
  grid-column: span 4;
  isolation: isolate;
  justify-content: flex-end;
  min-height: clamp(260px, 26vw, 350px);
  padding: clamp(24px, 3vw, 36px);
  border-radius: 0;
  color: #fff;
  background: var(--home-ink);
  box-shadow: none;
  transition: transform .25s ease;
}
body.home .report-card .report-card-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: var(--home-ink);
  box-shadow: none;
}
body.home .report-card .report-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
body.home .report-card::before { z-index: 1; opacity: 1; background: linear-gradient(180deg, rgba(16,24,42,.08) 22%, rgba(16,24,42,.9) 100%); }
body.home .report-card:hover { transform: translateY(-5px); }
body.home .report-card h3 {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #fff;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  font-weight: 760;
  letter-spacing: -.025em;
  line-height: 1.3;
}

body.home .about-intro {
  position: relative;
  margin: clamp(72px, 10vw, 144px) 0;
  padding: clamp(36px, 6vw, 76px);
  overflow: hidden;
  border-radius: 0;
  color: var(--home-ink);
  background: var(--home-paper-deep);
}
body.home .about-intro::after {
  content: "";
  position: absolute;
  right: clamp(24px, 6vw, 86px);
  bottom: -70px;
  width: 180px;
  aspect-ratio: 1;
  border: 26px solid var(--home-amber);
  border-radius: 50%;
}
body.home .about-intro h2 {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin: 0 0 1.15rem;
  color: var(--home-ink);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 850;
  letter-spacing: -.05em;
  line-height: 1.05;
}
body.home .about-intro p {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin: 0 0 1.7rem;
  color: #495669;
  font-size: 1.03rem;
  line-height: 1.9;
}

@media (max-width: 760px) {
  body.home .shell { width: min(100% - 32px, 1180px); }
  body.home .hero--home {
    display: block;
    min-height: 0;
    padding: 74px 24px 76px;
  }
  body.home .hero h1 {
    max-width: 100%;
    font-size: clamp(2.5rem, 10vw, 3.2rem);
    overflow-wrap: anywhere;
  }
  body.home .hero-subtitle { overflow-wrap: anywhere; word-break: break-all; }
  body.home .hero-subtitle { margin: 1.65rem 0 2rem; }
  body.home .featured-story { margin-top: 56px; }
  body.home .featured-story-media { aspect-ratio: 1.25 / 1; }
  body.home .featured-story-body { width: calc(100% - 18px); margin-top: -2.3rem; padding: 24px; }
  body.home .home-section { padding: 64px 0; }
  body.home .section-head { align-items: flex-start; flex-direction: column; gap: .7rem; }
  body.home .section-head h2 { font-size: 2rem; }
  body.home .card-grid,
  body.home .card-grid--two { grid-template-columns: 1fr; gap: 38px; }
  body.home .article-card,
  body.home .home-section:nth-of-type(2) .article-card:first-child,
  body.home .home-section:nth-of-type(3) .article-card,
  body.home .home-section:nth-of-type(3) .article-card:nth-child(3),
  body.home .home-section:nth-of-type(3) .article-card:nth-child(4),
  body.home .home-section:nth-of-type(5) .article-card:first-child,
  body.home .report-card { grid-column: auto; }
  body.home .article-card .image-slot,
  body.home .home-section:nth-of-type(2) .article-card:first-child .image-slot { aspect-ratio: 1.42 / 1; }
  body.home .about-intro { margin: 68px 0; padding: 36px 26px 96px; }
  body.home .about-intro::after { right: 18px; width: 126px; border-width: 18px; }
}

@media (prefers-reduced-motion: no-preference) {
  body.home .hero-copy { animation: home-hero-arrive .7s cubic-bezier(.16, 1, .3, 1) both; }
  body.home .featured-story { animation: home-hero-arrive .8s .1s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes home-hero-arrive {
    from { opacity: 0; filter: blur(8px); transform: translateY(18px); }
    to { opacity: 1; filter: blur(0); transform: translateY(0); }
  }
}
