/* Group pages: a company page for each operating company, selected work, and
   the pages for partners and legal details. Loaded after site.css, nav.css,
   and frame.css. The Forest head carries the bar and the page title; the
   scene painted into each head is in paint.css and the page's own file. */
.page-head {
  position: relative;
  color: var(--ivory);
  padding: clamp(24px, 3cqw, 44px) var(--gutter) clamp(64px, 8cqw, 112px);
}
.page-head-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6cqw, 88px);
}
/* Room on the right for the sector, which runs down that edge. */
.page-head-inner:has(.page-sector) .page-intro { padding-right: 36px; }
.page-intro {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(22px, 2.4cqw, 32px);
}
.page-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 4.6cqw, 58px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.page-lede {
  margin: 0;
  max-width: 34em;
  font-size: clamp(17px, 1.5cqw, 19px);
  line-height: 1.5;
  text-wrap: pretty;
}
/* The sector runs down the right edge, as on the company panels on the home page. */
.page-sector {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0;
  writing-mode: vertical-rl;
  line-height: 1;
  color: var(--stone);
}

/* Two columns that stack: a ledger of facts, then the body it explains. */
.split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 56px clamp(48px, 8cqw, 120px);
}
.split > * { flex: 1 1 360px; min-width: 0; }
.split-title { color: var(--forest); margin-bottom: clamp(24px, 3cqw, 36px); }

/* A ledger: short labels in spaced capitals, the facts in the headline face. */
.ledger { margin: 0; border-top: 1px solid var(--stone); }
.ledger-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.6fr) minmax(0, 1.4fr);
  gap: 6px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--stone);
}
.ledger dt { padding-top: 6px; line-height: 1.3; color: var(--forest); }
.ledger dd { min-width: 0; margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.35; text-wrap: pretty; overflow-wrap: anywhere; }
.ledger dd a { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ledger-note { display: block; margin-top: 4px; font-family: var(--sans); font-size: 15px; line-height: 1.5; }

/* A register: one item to a line, ruled like a page in a ledger book. */
.register {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  column-gap: 32px;
  border-top: 1px solid var(--stone);
}
.register li { padding: 13px 0; border-bottom: 1px solid var(--stone); font-size: 17px; line-height: 1.4; }
.register-group { margin-top: 18px; }
.register-group:first-child { margin-top: 0; }
.register-label { display: block; margin: 0 0 10px; line-height: 1.3; color: var(--forest); }
.register-desc { margin: 0 0 12px; max-width: 34em; font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.split-note { margin: 22px 0 0; max-width: 34em; font-size: 16px; text-wrap: pretty; }

.steps-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px clamp(48px, 8cqw, 120px);
}
.steps-inner > .section-title { flex: 1 1 300px; min-width: 0; }

/* People named on a company's own site, each linked to their contact card. */
.names { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--stone); }
.names a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--stone);
  text-decoration: none;
}
.names-name { font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.names-who { display: flex; flex-direction: column; gap: 4px; }
.names-role { font-size: 15px; color: var(--forest); }


/* Selected work: one row per piece, the whole row a link to the full record. */
.work-group + .work-group { margin-top: clamp(56px, 7cqw, 96px); }
.work-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
  margin-bottom: 24px;
}
.work-group-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.2; color: var(--forest); }
.work-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--stone); }
.work-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
  align-items: baseline;
  gap: 8px 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--stone);
  text-decoration: none;
}
.work-title { font-family: var(--serif); font-size: 24px; line-height: 1.25; }
.work-kind { font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.work-source { font-size: 14px; font-weight: 500; color: var(--forest); white-space: nowrap; }
.work-row { align-items: center; }
.work-row .button-scroll { justify-self: end; }
/* A whole row or entry is the link, so its button opens as the pointer enters any part of it. */
.work-row:hover .button-scroll::before,
.work-row:focus-visible .button-scroll::before,
.names a:hover .button-scroll::before,
.names a:focus-visible .button-scroll::before { translate: -6px 0; }
.work-row:hover .button-scroll::after,
.work-row:focus-visible .button-scroll::after,
.names a:hover .button-scroll::after,
.names a:focus-visible .button-scroll::after { translate: 6px 0; }
.ledger dd .button-scroll { margin: 4px 0 2px; }
@container (max-width: 719px) {
  .work-row { grid-template-columns: 1fr; }
  .work-row .button-scroll { justify-self: start; margin-top: 10px; }
  .ledger-row { grid-template-columns: 1fr; gap: 2px; }
  .ledger dt { padding-top: 0; }
}

.partner-ask .split-note:first-of-type { margin-top: 12px; }
