/* Homepage composition. Editorial cards share the archive's component. */
[data-page="home"] { --home-space: clamp(44px, 6vw, 80px); }
[data-page="home"] main > .section { padding-block: var(--home-space); }
[data-page="home"] main > .section--tight { padding-block: calc(var(--home-space) * .65); }
[data-page="home"] main > .section:not(.bg-green) + .section:not(.bg-green) { padding-top: 0; }
[data-page="home"] .site-footer { margin-top: 0; }
[data-page="home"] main h2 { font-size: clamp(28px, 3.3vw, 46px); line-height: 1.18; }
[data-page="home"] main :is(h2, h3, .eyebrow, .btn) { overflow-wrap: anywhere; }
[data-page="home"] main .btn { white-space: normal; max-width: 100%; justify-content: center; }
[data-page="home"] main .btn .arr { flex-shrink: 0; }
[data-page="home"] :is(.section-head, .pillars-head) { gap: 24px; margin-bottom: 32px; }
[data-page="home"] :is(.section-head, .pillars-head) .eyebrow { margin-bottom: 12px; }
[data-page="home"] .section-head > div { min-width: 0; flex: 1 1 380px; }
[data-page="home"] .section-head > .btn { flex-shrink: 0; }
[data-page="home"] .lead { line-height: 1.7; }

/* Intrinsic slide height keeps long CMS copy and buttons inside the banner. */
.hero-slider { height: auto; min-height: clamp(520px, 68svh, 680px); }
.slider-track { position: relative; display: grid; min-height: inherit; }
.slide { position: relative; inset: auto; grid-area: 1 / 1; min-width: 0; transform: none; transition: opacity .9s ease; }
.slide-bg { transform: scale(1.03); transition: transform 8s ease; }
.slide.is-active .slide-bg { transform: scale(1); }
.slide-inner { width: 100%; max-width: var(--container); padding-top: 64px; padding-bottom: 128px; }
.slide-inner .slide-headline {
  max-width: 900px;
  margin: 18px 0 24px;
  font-size: clamp(34px, 4.7vw, 68px);
  line-height: 1.12;
  color: var(--white);
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.slide-headline p { margin: 0; }
.slide-inner .slide-headline :is(em, i) { font-style: normal; color: var(--lime-300); -webkit-text-fill-color: var(--lime-300); }
.slide-inner .hero-lead { max-width: 650px; margin-bottom: 28px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.7; }
.slide-inner .eyebrow { max-width: 100%; font-size: 12px; }
.hero-slider--single .slide-inner { padding-bottom: 64px; }
.hero-stats-strip { padding-block: 24px; }
.hero-stats-strip .container { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.hsm { min-width: 0; overflow-wrap: anywhere; }
.hsm strong { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }
.hsm span { line-height: 1.6; }

/* Pillars and supporting homepage sections. */
.home-cluster-intro { padding-block: 48px 32px; }
.home-cluster-intro__layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); }
.home-cluster-intro__layout > * { min-width: 0; }
.home-cluster-intro h2 { font-size: var(--portal-section-title); line-height: 1.25; margin: 0 0 24px; }
.home-cluster-intro__lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.75; }
.home-cluster-intro__lead strong { color: var(--green-800); font-weight: 600; }
.home-cluster-intro__summary .btn { margin-top: 16px; }
.home-cluster-intro__body { font-size: 16px; line-height: 1.85; color: var(--ink-700); }
.home-cluster-intro__body p { margin: 0 0 18px; }
.home-cluster-intro__body p:last-child, .home-cluster-intro__lead p:last-child { margin-bottom: 0; }
.home-cluster-intro__bridge { margin-top: 32px; padding: 24px 28px; background: var(--green-50); border-left: 3px solid var(--green-600); border-radius: 0 12px 12px 0; font-size: 17px; line-height: 1.8; }
.home-cluster-intro__bridge p { margin: 0; }
.home-cluster-intro__bridge a { color: var(--green-800); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (max-width: 740px) {
 .home-cluster-intro { padding-block: 32px 24px; }
 .home-cluster-intro__layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
 .home-cluster-intro h2 { margin-bottom: 20px; }
 .home-cluster-intro__bridge { padding: 20px; margin-top: 28px; font-size: 16px; }
}
[data-page="home"] .pillars-head { display: flex; flex-wrap: wrap; align-items: flex-end; }
[data-page="home"] .pillars-head > div { flex: 1 1 440px; min-width: 0; }
[data-page="home"] .pillars-head > p { flex: 1 1 300px; margin-bottom: 0; }
[data-page="home"] .pillars-head h2 { margin-top: 0; max-width: 850px; }
[data-page="home"] .pillars-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
[data-page="home"] .pillar { min-width: 0; padding: 28px; gap: 16px; border-radius: var(--radius); overflow-wrap: anywhere; }
[data-page="home"] .pillar h3 { font-size: clamp(22px, 2vw, 26px); line-height: 1.3; }
[data-page="home"] .pillar p { flex: initial; line-height: 1.7; }
[data-page="home"] .pillar ul { margin-block: 8px; }

/* Survey / consultation is a contained callout rather than an oversized band. */
.consult.home-consult {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  padding: clamp(24px, 3.5vw, 44px);
  background: var(--green-50);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
}
.home-consult > * { min-width: 0; }
[data-page="home"] .home-consult h2 { font-size: clamp(26px, 2.5vw, 34px); margin-bottom: 12px; }
.home-consult p.lead { font-size: 16px; margin-bottom: 0; }
.home-consult li > span { flex-shrink: 0; }
.home-consult .consult-form-wrap { align-self: center; }
.home-consult .consult-form-wrap .btn { margin-top: 0; }
[data-page="home"] .feature { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
[data-page="home"] .feature > * { min-width: 0; }
[data-page="home"] .feature-img img { width: 100%; height: 100%; object-fit: cover; }
[data-page="home"] .offerings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
[data-page="home"] .offering { min-width: 0; overflow-wrap: anywhere; }
[data-page="home"] .offering h3 { line-height: 1.3; }
.home-news .editorial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-news .editorial-card__media { aspect-ratio: 16 / 10; }
.home-news .editorial-card h3 { font-size: clamp(20px, 1.65vw, 24px); line-height: 1.3; }
.home-news .card-meta { flex-wrap: wrap; gap: 8px; }
.home-news__links { display: flex; flex-wrap: wrap; gap: 8px; }
.home-news .section-head > * { min-width: 0; }
.home-news .section-head { flex-wrap: wrap; gap: 24px; }
.home-event { display: flex; flex-direction: column; min-width: 0; padding: 28px; background: var(--green-900); color: #fff; border-radius: var(--radius); overflow-wrap: anywhere; }
.home-event__label { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--lime-300); text-transform: uppercase; }
.home-event__date { display: flex; align-items: center; gap: 16px; margin: 22px 0; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.2); }
.home-event__date strong { font-size: 60px; line-height: 1; font-weight: 600; letter-spacing: -.05em; }
.home-event__date span { max-width: 120px; font-size: 16px; line-height: 1.5; }
.home-event h3 { font-size: clamp(20px, 1.65vw, 24px); line-height: 1.35; color: #fff; margin-bottom: 16px; }
.home-event h3 a { color: inherit; }
.home-event h3 a:hover, .home-event__more:hover { color: var(--lime-300); }
.home-event__location { color: var(--lime-300); font-size: 14px; margin-bottom: 12px; }
.home-event__summary { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.75); }
.home-event__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 24px; margin-top: auto; }
.home-event__actions .btn { white-space: normal; max-width: 100%; }
.home-event__more { color: #fff; font-size: 14px; font-weight: 600; }
.home-event a:focus-visible { outline: 2px solid var(--lime-300); outline-offset: 4px; }

@media (max-width: 1100px) {
  [data-page="home"] .pillar { padding: 24px; }
  [data-page="home"] .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hero-stats-strip .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slide-inner { padding-top: 48px; padding-bottom: 104px; }
  .hero-slider--single .slide-inner { padding-bottom: 48px; }
  [data-page="home"] .feature { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  [data-page="home"] .feature--reverse .feature-text { order: initial; }
  .consult.home-consult { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .home-consult .consult-form-wrap { justify-self: start; }
}
@media (max-width: 740px) {
  .home-news__grid .home-event { order: -1; }
  [data-page="home"] .pillars-grid,
  [data-page="home"] .offerings,
  .home-news .editorial-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-slider { min-height: 0; }
  .slide-inner .slide-headline { font-size: clamp(32px, 7vw, 46px); }
  .slide-inner .hero-lead { font-size: 17px; }
  .slide-inner .hero-ctas { gap: 12px; }
  .slider-nav { gap: 16px; }
  .slider-dots { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
  .slider-dots .dot { width: 24px; }
  [data-page="home"] .pillar { padding: 24px; }
  [data-page="home"] .stats { padding: 28px; gap: 24px; }
  [data-page="home"] .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-page="home"] .logos > div { font-size: 15px; padding: 16px; overflow-wrap: anywhere; }
  [data-page="home"] .cta-strip { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .slide-bg { transition: none; transform: none; }
}
