/* Individual portraits and the revised masthead. */
.company-brand {
  display: block;
  flex: 0 1 455px;
  min-width: 0;
  color: var(--blue);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.025em;
  text-decoration: none;
}
.company-brand .company-descriptor {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .01em;
}
.hero { padding-block: 48px; }
.hero-grid { display: block; }
.hero-copy { max-width: 940px; padding-block: 15px; }
.hero h1 { font-size: clamp(2.7rem, 4.5vw, 3.7rem); line-height: 1.1; }
.hero .accent { margin-top: 7px; }
.hero-intro { max-width: 680px; font-size: 18px; }
.hero .actions { margin-top: 30px; }
.portrait-carousel { position: relative; width: 100%; max-width: 390px; min-width: 0; justify-self: end; }
.portrait-heading { margin: 0 0 20px; color: var(--blue); font-size: 21px; font-weight: 600; line-height: 1.35; letter-spacing: -.02em; text-align: center; }
.portrait-slides { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; }
.portrait-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.portrait-slide[hidden], .portrait-controls[hidden] { display: none !important; }
.portrait-carousel.is-enhanced .portrait-slides { display: block; overflow: visible; touch-action: pan-y; }
.portrait-photo { display: flex; justify-content: center; height: 440px; }
.portrait-photo img { width: auto; max-width: 100%; height: 100%; object-fit: contain; }
.portrait-caption { min-height: 73px; padding-top: 16px; text-align: center; }
.portrait-caption strong, .portrait-caption span { display: block; }
.portrait-caption strong { color: var(--ink); font-size: 20px; font-weight: 600; line-height: 1.4; }
.portrait-caption span { margin-top: 2px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.portrait-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 15px; }
.portrait-controls button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--blue); background: var(--white); font-size: 14px; line-height: 1; cursor: pointer; }
.portrait-controls button:hover { border-color: var(--blue); background: var(--soft); }
.portrait-controls [data-portrait-toggle] { min-width: 87px; }
.portrait-controls [data-portrait-prev], .portrait-controls [data-portrait-next] { font-size: 23px; }
.portrait-count { min-width: 42px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; text-align: center; }
@media (max-width: 1050px) {
  .navigation { flex-wrap: wrap; row-gap: 20px; }
  .company-brand { flex-basis: 100%; }
  .main-nav { justify-content: flex-start; }
  .hero-grid { gap: 32px; }
  .hero h1 { font-size: clamp(2.5rem, 4.7vw, 3rem); }
  .portrait-photo { height: 395px; }
}
@media (max-width: 820px) {
  .hero { padding-block: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 650px; }
  .hero h1 { max-width: 610px; font-size: clamp(2.4rem, 6.6vw, 3.5rem); }
  .portrait-carousel { justify-self: center; }
  .portrait-photo { height: 420px; }
}
@media (max-width: 580px) {
  .company-brand { font-size: 20px; }
  .company-brand .company-descriptor { font-size: 14px; }
  .hero { padding-block: 28px 35px; }
  .hero h1 { font-size: clamp(2.1rem, 7.9vw, 2.7rem); }
  .hero-intro { font-size: 17px; }
  .portrait-heading { font-size: 20px; }
  .portrait-photo { height: auto; aspect-ratio: 4 / 5; }
  .portrait-caption strong { font-size: 19px; }
  .portrait-caption { min-height: 71px; }
}
@media print {
  .portrait-controls { display: none; }
  .portrait-photo { height: 280px; }
  .hero h1 { font-size: 26pt; }
}

/* The portraits take the place of the former name list. */
.team-grid { align-items: center; }
/* Keep keyboard access without displaying a permanent control bar. */
.portrait-controls-discreet {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.portrait-controls-discreet:focus-within {
  width: 100%;
  height: auto;
  padding: 10px;
  margin: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line);
}
