/* Homepage only: a single editorial sequence and consistent section spacing. */
body:not(.inner-page) { --home-section-space: clamp(48px, 5.5vw, 88px); }
body:not(.inner-page) .home-activities,
body:not(.inner-page) .portfolio-overview,
body:not(.inner-page) .home-about,
body:not(.inner-page) .home-certificates,
body:not(.inner-page) .brochure-section { padding-block: var(--home-section-space); }
body:not(.inner-page) .home-activities { border-top: 0; }
body:not(.inner-page) .home-activities-heading { margin-bottom: 40px; }
body:not(.inner-page) .home-about {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.home-about-heading .eyebrow,
.home-certificates-heading .eyebrow { margin: 0 0 16px; }
.home-about-heading h2,
.home-certificates-heading h2 {
  margin: 0;
  font-size: var(--type-section);
  line-height: 1.16;
  letter-spacing: -.035em;
  font-weight: 400;
  text-align: left;
}
.home-about-copy { min-width: 0; }
.home-about-copy p { margin: 0 0 20px; }
.home-about-copy .text-link { margin-top: 8px; }
.home-certificates {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  border-top: 1px solid var(--line);
}
.home-certificates-heading .text-link { margin-top: 26px; }
.home-document-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  margin: 0;
  padding: 0;
}
.home-document-list li { min-width: 0; border-top: 1px solid var(--line); }
.home-document-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-block: 20px;
  text-decoration: none;
}
.home-document-list a > span:first-child { min-width: 0; }
.home-document-format { white-space: nowrap; font-size: var(--type-label); }
.home-document-list a:is(:hover, :focus-visible) > span:first-child { text-decoration: underline; text-underline-offset: .25em; }
.home-document-list a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
body:not(.inner-page) .brochure-section { border-top: 1px solid var(--line); }
@media (max-width: 849px) {
  body:not(.inner-page) .home-about,
  .home-certificates { grid-template-columns: 1fr; gap: 28px; }
  body:not(.inner-page) .home-activities-heading { margin-bottom: 30px; }
}
@media (max-width: 599px) {
  .home-document-list { grid-template-columns: 1fr; }
  .home-document-list a { padding-block: 16px; }
  .home-certificates-heading .text-link { margin-top: 20px; }
}

/* Stable editorial hierarchy throughout the homepage. */
body:not(.inner-page) main h2 { font-weight: 400; }
body:not(.inner-page) .certifications { padding-block: var(--home-section-space); }
body:not(.inner-page) .certificate-preview img { height: 240px; }
@media (max-width:600px) {
  body:not(.inner-page) .certificate-preview img { height: 220px; }
}
