body.template-about { background: var(--color-home-white); }
.template-about header.site-header .button .inner { background: var(--color-home-coral); color: var(--color-home-white); }
.template-about header.site-header .button::before { display: none; }

.about-page { color: var(--color-home-green); overflow: clip; }
.about-page p { color: inherit; line-height: 1.3; }
.about-page :where(h2) { color: var(--color-home-heading); font-size: 50px; line-height: 1.04; }
.about-page h3 { color: inherit; }
.about-page .long-text { font-size: 16px; line-height: 1.3; }
.about-page .long-text p { margin-bottom: 20.8px; }
.about-page .long-text > :last-child { margin-bottom: 0; }
.about-page figure { min-width: 0; margin: 0; overflow: hidden; }
.about-page figure img { display: block; width: 100%; height: auto; }

/* Spacing between blocks, measured from the Figma frame. */
.about-page > .block + .block { margin-top: 112px; }
.about-page > .block + .block-statement { margin-top: 160px; }
.about-page > .block-statement + .block { margin-top: 60px; }
.about-page > .block + .block-feature_grid { margin-top: 136px; }
.about-page > .block-feature_grid + .block,
.about-page > .block-profile_cards + .block { margin-top: 176px; }
.about-page > .block + .block-profile_cards { margin-top: 128px; }
.about-page > .block + .block-story--bleed { margin-top: 160px; }
.about-page > .block + .block-story--bleed:has(.block-story__copy) { margin-top: 87px; }

/* The page's closing artwork tucks under the footer. */
.about-page > .block-story--bleed:last-child { margin-bottom: -74px; }

.about-page .block-text_intro {
  padding: 163px 6vw 0;
  text-align: center;
  & .text-container { max-width: 666px; padding: 0; }
  & h1 { font-family: var(--font-numeral); font-size: 70px; line-height: 1; text-transform: uppercase; color: var(--color-home-heading); }
  & .block-text_intro__lead { max-width: 487px; margin: 35px auto 0; font-size: 16px; line-height: 1.3; }
  & .block-text_intro__eyebrow { margin-bottom: 24px; font-size: 16px; letter-spacing: .2em; text-transform: uppercase; }
  & .block-text_intro__text:empty { display: none; }
}

/* Shared image layouts for Image Story and Story. */
.block-image_story__images,
.block-story__images { display: grid; gap: 12px; width: min(1232px, 88%); margin-inline: auto; }
.block-image_story--pair .block-image_story__images,
.block-story--pair .block-story__images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.block-image_story--pair figure,
.block-story--pair figure { aspect-ratio: 610 / 653; }
.block-image_story--pair figure img,
.block-story--pair figure img { height: 100%; object-fit: cover; object-position: center 25%; }

.block-image_story {
  & .block-image_story__heading,
  & .block-image_story__copy { width: min(699px, 88%); margin-inline: auto; }
  & .block-image_story__heading > p { margin-top: 14px; font-size: 18px; font-weight: 500; }
  & .block-image_story__heading + .block-image_story__copy { margin-top: 32px; }
  & .block-image_story__heading + .block-image_story__images { margin-top: 61px; }
  & * + .block-image_story__images,
  & .block-image_story__images + .block-image_story__copy { margin-top: 78px; }
  &.block-image_story--pair .block-image_story__images + .block-image_story__copy { margin-top: 69px; }

  &.block-image_story--center .block-image_story__heading { width: min(875px, 88%); text-align: center; }
  &.block-image_story--center h2 { font-size: 40px; line-height: 1; }

  &.block-image_story--row .block-image_story__images { grid-template-columns: repeat(var(--count), minmax(0, 1fr)); gap: 16px; width: min(1288px, 90%); }
  &.block-image_story--row figure { aspect-ratio: 310 / 362; }
  &.block-image_story--row figure img { height: 100%; object-fit: cover; }
}

.block-story {
  & .block-story__copy { width: min(699px, 88%); margin-inline: auto; }
  & h2 + .long-text { margin-top: 37px; }
  & .block-story__copy + .block-story__images { margin-top: 80px; }
  &.block-story--bleed .block-story__images { width: 100%; }
  /* Line art has its own empty sky: the drawing starts right under the copy. */
  &.block-story--bleed .block-story__copy + .block-story__images { margin-top: 0; }
}

.block-feature_grid {
  & > h2 { text-align: center; line-height: 1; }
  & .block-feature_grid__items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 51px; max-width: 1101px; margin: 65px auto 0; }
  & article { min-width: 0; }
  & article > img { display: block; margin-bottom: 18px; }
  & h3 { font-size: 21px; line-height: 1.3; margin-bottom: 25px; }
}

.block-profile_cards {
  & .block-profile_cards__intro { max-width: 505px; margin-inline: auto; text-align: center; }
  & h2 { margin-bottom: 20px; }
  & .block-profile_cards__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 12px; max-width: 1232px; margin: 90px auto 0; }
  & article { min-width: 0; }
  & .block-profile_cards__portrait { position: relative; aspect-ratio: 402 / 471; overflow: hidden; background: var(--color-home-paper); }
  & .block-profile_cards__portrait::after { content: ''; position: absolute; inset: 48% 0 0; background: linear-gradient(transparent, rgb(0 0 0 / .95)); pointer-events: none; }
  & .block-profile_cards__portrait > img { display: block; width: 100%; height: 100%; object-fit: cover; }
  & .block-profile_cards__identity { position: absolute; bottom: 28px; inset-inline: 28px; z-index: 1; color: var(--color-home-white); }
  & h3 { font-size: 26px; line-height: 1.2; margin-bottom: 18px; }
  & .block-profile_cards__identity p { font-size: 18px; font-weight: 500; line-height: 1.3; }
  & .block-profile_cards__copy { margin-top: 37px; padding-right: 21px; font-size: 18px; font-weight: 500; }
}

/*
  Justified gallery: rows always fill the full width and keep every image's
  proportions. Without JS the rows still justify (flex-grow by aspect ratio);
  about.js then picks balanced row breaks and sets --row-ratio / --row-items.
*/
.block-bento {
  & > h2 { width: min(699px, 88%); margin: 0 auto 48px; }
  & .block-bento__grid { --gap: 6px; --row-height: 260px; display: flex; flex-wrap: wrap; gap: var(--gap); }
  & .block-bento__grid::after { content: ''; flex: 999 1 0; }
  & .block-bento__item { flex: var(--ratio) 1 calc(var(--ratio) * var(--row-height)); aspect-ratio: var(--ratio); }
  & .block-bento__grid.is-justified::after { display: none; }
  & .is-justified .block-bento__item { flex: var(--ratio) 0 calc(var(--ratio) * ((100% - (var(--row-items) - 1) * var(--gap)) / var(--row-ratio) - .25px)); }
  & .block-bento__item img { height: 100%; object-fit: cover; }
}

@media screen and (max-width:800px) {
  .about-page :where(h2) { font-size: 36px; line-height: 1.12; }
  .about-page > .block + .block,
  .about-page > .block + .block-feature_grid,
  .about-page > .block + .block-profile_cards,
  .about-page > .block-feature_grid + .block,
  .about-page > .block-profile_cards + .block { margin-top: 72px; }
  .about-page > .block + .block-statement,
  .about-page > .block + .block-story--bleed { margin-top: 88px; }
  .about-page > .block + .block-story--bleed:has(.block-story__copy) { margin-top: 64px; }
  .about-page > .block-statement + .block { margin-top: 36px; }
  .about-page > .block-story--bleed:last-child { margin-bottom: -24px; }

  .about-page .block-text_intro {
    padding-top: 140px;
    & h1 { font-size: clamp(44px, 9vw, 66px); }
    & .block-text_intro__lead { margin-top: 28px; }
  }

  .block-image_story--pair .block-image_story__images,
  .block-story--pair .block-story__images { grid-template-columns: 1fr; gap: 16px; }

  .block-image_story {
    &.block-image_story--center h2 { font-size: 32px; line-height: 1.15; }
    & .block-image_story__heading + .block-image_story__images,
    & * + .block-image_story__images,
    & .block-image_story__images + .block-image_story__copy,
    &.block-image_story--pair .block-image_story__images + .block-image_story__copy { margin-top: 36px; }
    &.block-image_story--row .block-image_story__images { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 88%; }
  }

  .block-story {
    & h2 + .long-text { margin-top: 24px; }
    & .block-story__copy + .block-story__images { margin-top: 36px; }
  }

  .block-feature_grid .block-feature_grid__items { grid-template-columns: 1fr; gap: 36px; margin-top: 40px; }

  .block-profile_cards {
    & .block-profile_cards__grid { grid-template-columns: 1fr; gap: 40px; margin-top: 36px; }
    & .block-profile_cards__copy { margin-top: 24px; padding: 0; font-size: 16px; }
  }

  .block-bento .block-bento__grid { --gap: 4px; --row-height: 120px; }
}
