/* One set of margins and column lines for the three home sections.
   Twenty tracks accommodate four covers and the narrow case-study introduction. */
:root {
  --home-gutter: max(7vw, calc((100vw - 1920px) / 2));
  --home-gap: clamp(16px, 1.1vw, 24px);
  --home-columns: repeat(20, minmax(0, 1fr));
}

.hero .id-row {
  display: grid;
  grid-template-columns: var(--home-columns);
  column-gap: var(--home-gap);
  padding-inline: var(--home-gutter);
}
.hero .bio-row {
  display: flex;
  padding-inline: var(--gutter);
}
.hero .id-line { justify-self: start; }
.hero .id-line:nth-child(1) { grid-column: 1 / span 8; }
.hero .id-line:nth-child(2) { grid-column: 9 / span 6; }
/* Balance the loader's outer edges; the reveal still expands to --gutter. */
.hero .id-line:nth-child(3) { grid-column: 15 / -1; justify-self: end; }

.bio-break {
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--home-gutter);
}
.bio-break .bb-top {
  grid-template-columns: var(--home-columns);
  column-gap: var(--home-gap);
}
.bio-break .bb-kicker { grid-column: 1 / -1; }
.bio-break h3 { grid-column: 1 / span 13; min-width: 0; }
.bio-break .bb-side { grid-column: 15 / -1; min-width: 0; }

/* Align the Skills rule with the statement's first line. The side column's
   existing cap-height adjustment supplies the optical inset on its own. */
@media (min-width: 721px) {
  .bio-break .bb-facts { margin-top: 0; }
}

/* Preserve Selected Work's spacing and give About the same overall height. */
.bio-break {
  min-height:var(--home-section-height,100svh);
  padding-top:var(--home-section-padding-top,88px);
  padding-bottom:var(--home-section-padding-bottom,88px);
  justify-content:space-between;
  gap:clamp(28px,6vh,64px);
}

@media (min-width: 721px) and (max-width: 1100px) {
  .bio-break .bb-fact { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 720px) {
  :root { --home-gutter: 5vw; --home-gap: 14px; }
  .hero .id-row,
  .bio-break .bb-top { grid-template-columns: 1fr; }
  .hero .id-line:nth-child(n),
  .bio-break h3,
  .bio-break .bb-side { grid-column: 1; }
  .hero .id-row { text-align: left; }
  .hero .id-line:nth-child(3) { justify-self: start; }
  .hero .bio-right { max-width: 34ch; }
}
