/* Homepage-only additions; retain the shared site's type, colors and layout. */
body[data-page='home'] .home-credibility {
  padding: 2rem 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

body[data-page='home'] .home-credibility-inner {
  display: grid;
  width: min(1480px, calc(100% - 2rem));
  grid-template-columns: minmax(0, 1fr);
}

body[data-page='home'] .home-credibility-group {
  min-width: 0;
}

body[data-page='home'] .home-partner-heading {
  width: min(1160px, 100%);
  margin-inline: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.25rem;
}

body[data-page='home'] .home-credibility .home-partner-heading h2 {
  margin: 0;
}

body[data-page='home'] .home-partner-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

body[data-page='home'] .home-partner-controls a {
  color: var(--copy);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

body[data-page='home'] .home-partner-viewport {
  overflow-x: auto;
  padding: 4px 0;
}

body[data-page='home'] .home-partner-track {
  display: flex;
  width: max-content;
}

body[data-page='home'] .home-partner-list {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2rem;
  margin: 0;
  padding: 0 2rem 0 0;
  list-style: none;
}

body[data-page='home'] .home-partner-list a {
  display: block;
}

body[data-page='home'] .home-partner-list img {
  display: block;
  width: 160px;
  height: 48px;
  object-fit: contain;
}

body[data-page='home'] .home-partner-copy {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  body[data-page='home'] .home-partners.has-motion .home-partner-viewport {
    overflow-x: hidden;
  }

  body[data-page='home'] .home-partners.has-motion .home-partner-copy {
    display: flex;
  }

  body[data-page='home'] .home-partners.has-motion .home-partner-track {
    animation: home-partner-scroll 70s linear infinite;
    animation-play-state: paused;
  }

  body[data-page='home'] .home-partners.is-running .home-partner-track {
    animation-play-state: running;
  }

  body[data-page='home'] .home-partner-viewport:hover .home-partner-track {
    animation-play-state: paused;
  }

  /* Keyboard users get the original, natively scrollable list. */
  body[data-page='home'] .home-partners.has-motion .home-partner-viewport:focus-within {
    overflow-x: auto;
  }

  body[data-page='home'] .home-partner-viewport:focus-within .home-partner-track {
    animation: none;
  }

  body[data-page='home'] .home-partner-viewport:focus-within .home-partner-copy {
    display: none;
  }
}

@keyframes home-partner-scroll {
  to {
    transform: translateX(-50%);
  }
}

body[data-page='home'] .home-credibility h2 {
  margin: 0 0 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--copy);
}

body[data-page='home'] .home-team {
  background: var(--white);
}

body[data-page='home'] .home-team-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  margin: 2rem 0;
}

body[data-page='home'] .home-team-person {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
}

body[data-page='home'] .home-team-person img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0;
}

body[data-page='home'] .home-team-person h3 {
  margin: 0;
  font-size: 1.6rem;
}

body[data-page='home'] .home-team-person p {
  margin: 0.75rem 0 0;
  color: var(--copy);
  line-height: 1.6;
}

body[data-page='home'] .home-team-person .home-team-role {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

body[data-page='home'] .home-team > .section-inner > .inline-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 1100px) {
  body[data-page='home'] .home-team-list {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Homepage outcomes: visible copy and a responsive workflow illustration. */
body[data-page='home'] .home-hero .home-hero-description {
  max-width: 30rem;
  color: #e0eaf2;
  font-size: 1.25rem;
  line-height: 1.5;
}

body[data-page='home'] .home-outcomes {
  scroll-margin-top: 6rem;
}

body[data-page='home'] .home-outcomes .section-intro {
  max-width: 48rem;
  margin-bottom: 2.5rem;
}

body[data-page='home'] .home-outcomes-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 3rem;
}

body[data-page='home'] .home-outcome {
  padding: 1.5rem 0;
  border-bottom: 1px solid #39516b;
}

body[data-page='home'] .home-outcome:first-child {
  padding-top: 0;
}

body[data-page='home'] .home-outcome h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  line-height: 1.2;
}

body[data-page='home'] .home-outcome p {
  margin: 0;
  color: #d7e2ed;
  line-height: 1.65;
}

body[data-page='home'] .home-outcomes-copy > a {
  margin-top: 1.75rem;
  color: var(--white);
  border-color: #9baec0;
}

body[data-page='home'] .home-outcomes-copy > a:hover {
  background: #203d58;
}

body[data-page='home'] .home-outcomes-figure {
  min-width: 0;
  margin: 0;
}

body[data-page='home'] .clearer-view-illustration {
  display: block;
  width: 100%;
  max-width: 660px;
  height: auto;
}

@media (max-width: 599px) {
  body[data-page='home'] .clearer-view-illustration {
    max-width: 480px;
  }
}

body[data-page='home'] .home-outcomes-figure figcaption {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #d7e2ed;
}

/* Match each desktop text row to its panel in the 660px-wide illustration. */
@media (min-width: 901px) {
  body[data-page='home'] .home-outcomes-grid {
    container-type: inline-size;
  }

  body[data-page='home'] .home-outcomes-copy {
    --illustration-width: min(660px, calc((100cqw - 3rem) * 0.6));
    display: grid;
    grid-template-rows:
      minmax(min-content, calc(var(--illustration-width) * 170 / 660))
      minmax(min-content, calc(var(--illustration-width) * 196 / 660))
      minmax(min-content, calc(var(--illustration-width) * 164 / 660))
      auto;
    row-gap: calc(var(--illustration-width) * 16 / 660);
  }

  body[data-page='home'] .home-outcome {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
  }

  body[data-page='home'] .home-outcomes-copy > a {
    justify-self: start;
    margin-top: 0.75rem;
  }
}

@media (max-width: 900px) {
  body[data-page='home'] .home-outcomes-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  body[data-page='home'] .home-outcomes-copy {
    max-width: 42rem;
  }
}

@media (max-width: 500px) {
  body[data-page='home'] .home-hero .home-hero-description {
    font-size: 1.125rem;
  }
}

/* Share heading/body tracks so every tile in a row starts its copy together. */
body[data-page='home'] .what-is-statements {
  row-gap: 1rem;
}

body[data-page='home'] .what-is-statements li {
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: 0.75rem;
}

body[data-page='home'] .what-is-statements strong {
  line-height: 1.15;
}

body[data-page='home'] .what-is-statements span {
  padding-top: 0.75rem;
  line-height: 1.5;
}

@media (max-width: 720px) {
  body[data-page='home'] .what-is-statements li {
    grid-row: auto;
    grid-template-rows: auto auto;
  }
}

/* Keep supporting copy lighter and comfortably spaced on the homepage. */
body[data-page='home'] .what-is-section .section-intro p {
  font-weight: 400;
}

body[data-page='home'] .home-demo-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2.5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 8px;
  background: #06102f;
  color: var(--white);
}

body[data-page='home'] .home-demo-cta h2 {
  margin: 0;
  color: var(--white);
}

body[data-page='home'] .home-demo-cta p {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: #d7e2ed;
  line-height: 1.6;
}

@media (max-width: 700px) {
  body[data-page='home'] .home-demo-cta {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Research-led maintenance example, scoped to the homepage. */
body[data-page='home'] .home-maintenance {
  scroll-margin-top: 5rem;
  background: var(--white);
}

body[data-page='home'] .home-maintenance-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.5rem;
  border-block: 1px solid var(--tile-hue-border);
}

body[data-page='home'] .home-maintenance-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2.5rem 2rem;
  min-width: 0;
}

body[data-page='home'] .home-maintenance-stat:first-child {
  padding-left: 0;
}
body[data-page='home'] .home-maintenance-stat:last-child {
  padding-right: 0;
}
body[data-page='home'] .home-maintenance-stat + .home-maintenance-stat {
  border-left: 1px solid var(--tile-hue-border);
}

body[data-page='home'] .home-maintenance-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.75rem, 4.5vw, 4.25rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  white-space: nowrap;
  color: var(--teal-light);
  text-shadow:
    0 1px 1px rgba(15, 37, 61, 0.7),
    0 3px 4px rgba(15, 37, 61, 0.32);
  margin: 0 0 1.5rem;
}

body[data-page='home'] .home-maintenance-stat h3 {
  font-size: 1.375rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

body[data-page='home'] .home-maintenance-stat > p:not(.home-maintenance-number) {
  margin: 0 0 1.5rem;
  color: var(--copy);
  line-height: 1.6;
}

body[data-page='home'] .home-maintenance-stat > a {
  margin-top: auto;
  font-size: 0.875rem;
  color: var(--copy);
}

body[data-page='home'] .home-maintenance a {
  color: var(--copy);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

body[data-page='home'] .home-maintenance-accessible {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 700px) {
  body[data-page='home'] .home-maintenance-stats {
    grid-template-columns: 1fr;
    margin-top: 1.5rem;
  }
  body[data-page='home'] .home-maintenance-stat {
    padding: 2rem 0;
  }
  body[data-page='home'] .home-maintenance-stat + .home-maintenance-stat {
    border-left: 0;
    border-top: 1px solid var(--tile-hue-border);
  }
  body[data-page='home'] .home-maintenance-number {
    font-size: 3.25rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 700px) {
  body[data-page='home'] .home-maintenance .section-inner {
    width: calc(100% - 2.5rem);
  }
}
