/*
  about.css
  About page. Same type, colour, and chrome as the home page.
  Each section fills at least one screen, the same way the home sections do.
*/

.about-hero,
.about-statement,
.about-block,
.about-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding-top: calc(var(--header-offset) + 1.5rem);
  padding-bottom: 3rem;
}

.about-hero .display {
  max-width: 12em;
}

.about-copy .lede,
.about-hero .lede {
  max-width: 38rem;
}

.about-intro {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 46rem;
}

.about-statement,
.about-cta,
#team .about-intro {
  align-items: center;
  text-align: center;
}

#team .about-intro {
  margin-inline: auto;
}

.about-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  width: 100%;
}

.about-split--copy-first .about-copy {
  order: -1;
}

.about-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  padding-top: calc(var(--header-offset) + 1.5rem);
  padding-bottom: 3rem;
}

.about-pair .about-media {
  min-height: 16rem;
}

.about-pair .lede {
  max-width: none;
}

.about-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.crumb {
  display: flex;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.crumb a:hover {
  color: var(--accent-ink);
}

.hero-photo {
  position: relative;
  margin: 0;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 1.25rem;
}

.hero-badge {
  position: absolute;
  left: -1.25rem;
  bottom: 1.5rem;
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.statement {
  width: 100%;
  max-width: none;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 600;
  line-height: 1.45;
}

.statement-end {
  display: block;
  color: var(--accent-ink);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat-row li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat-row strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-row span {
  color: var(--text-muted);
  line-height: 1.4;
}

.about-media {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.85rem;
  min-height: 24rem;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

.about-media img:first-child {
  grid-row: 1 / span 2;
}

.about-media img:last-child {
  grid-column: 2;
  grid-row: 2;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.check-list li::before {
  content: "✓";
  flex: none;
  color: var(--accent-ink);
  font-weight: 700;
  line-height: 1.4;
}

.about-cta .lede {
  max-width: 36rem;
}

.eyebrow {
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow--pill {
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.85rem;
  line-height: 1;
}

.section-title .accent {
  color: var(--accent-ink);
}

.team-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: min(100%, 52rem);
  min-height: 22rem;
  margin-top: 0.5rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background:
    radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 16%, transparent), transparent 68%),
    var(--bg-elevated);
  text-align: center;
}

.team-photo__mark {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
}

.team-photo__mark svg,
.principle-icon svg,
.member-portrait svg {
  width: 1.5rem;
  height: 1.5rem;
}

.team-photo figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.team-photo strong {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.team-photo span {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.principle-grid,
.award-grid,
.member-grid {
  display: grid;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.principle-grid {
  grid-template-columns: repeat(4, 1fr);
}

.principle-grid li,
.member-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0;
  text-align: center;
  background: transparent;
}

.principle-icon,
.member-portrait {
  display: grid;
  place-items: center;
  color: var(--accent-ink);
}

.principle-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.principle-grid h3,
.member-grid h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
}

.principle-grid p,
.member-grid p {
  color: var(--text-muted);
}

.award-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.award-grid li {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.award-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.award-grid p {
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.member-grid {
  grid-template-columns: repeat(3, 1fr);
}

.member-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 1rem;
  background: var(--bg-elevated);
  color: var(--text-muted);
}

.member-role {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.member-portrait svg {
  width: 2rem;
  height: 2rem;
}

.member-badge {
  align-self: flex-start;
  margin-top: auto;
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-accordion {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-accordion__item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  transition: flex-grow 0.3s cubic-bezier(0.5, 0.85, 0.25, 1.15), flex-basis 0.3s cubic-bezier(0.5, 0.85, 0.25, 1.15);
}

.team-accordion__item:focus {
  outline: none;
}

.team-accordion__item:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
}

.team-accordion:hover .team-accordion__item:not(:hover),
.team-accordion:focus-within .team-accordion__item:not(:focus-within) {
  flex: 1 1 0;
}

.team-accordion:hover .team-accordion__item:hover,
.team-accordion:focus-within .team-accordion__item:focus-within {
  flex: 3 1 0;
}

.team-accordion__item img {
  display: block;
  width: 100%;
  height: 26.25rem;
  object-fit: cover;
  object-position: center 22%;
}

.team-accordion__item:first-child img {
  object-position: center 8%;
}

.team-accordion__item::before,
.team-accordion__item::after {
  content: "";
  position: absolute;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.team-accordion__item::before {
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  height: 45%;
  background: linear-gradient(to top, rgb(0 0 0 / 0.72), transparent);
  opacity: 0;
}

.team-accordion__item::after {
  inset: 0;
  z-index: 1;
  background: color-mix(in srgb, var(--bg) 42%, transparent);
  backdrop-filter: blur(4px);
  opacity: 0;
}

.team-accordion:hover .team-accordion__item:not(:hover)::after,
.team-accordion:focus-within .team-accordion__item:not(:focus-within)::after {
  opacity: 1;
}

.team-accordion__item:hover::before,
.team-accordion__item:focus-within::before {
  opacity: 1;
}

.team-accordion__copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.2rem;
  padding: 1.15rem;
  color: #fff;
  pointer-events: none;
}

.team-accordion__name,
.team-accordion__role,
.team-accordion__body {
  margin: 0;
  opacity: 0;
  transform: translateY(0.45rem);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.5, 0.85, 0.25, 1.8);
}

.team-accordion__item:hover .team-accordion__name,
.team-accordion__item:focus-within .team-accordion__name {
  opacity: 1;
  transform: none;
  transition-delay: 0.12s;
}

.team-accordion__item:hover .team-accordion__role,
.team-accordion__item:focus-within .team-accordion__role {
  opacity: 1;
  transform: none;
  transition-delay: 0.22s;
}

.team-accordion__item:hover .team-accordion__body,
.team-accordion__item:focus-within .team-accordion__body {
  opacity: 1;
  transform: none;
  transition-delay: 0.32s;
}

.team-accordion__name {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.1;
}

.team-accordion__role {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-accordion__body {
  max-width: 28rem;
  color: rgb(255 255 255 / 0.86);
  font-size: 0.95rem;
  line-height: 1.35;
}

@media (max-width: 800px) {
  .team-accordion {
    flex-direction: column;
  }

  .team-accordion__item,
  .team-accordion:hover .team-accordion__item,
  .team-accordion:focus-within .team-accordion__item,
  .team-accordion:hover .team-accordion__item:hover,
  .team-accordion:focus-within .team-accordion__item:focus-within,
  .team-accordion:hover .team-accordion__item:not(:hover),
  .team-accordion:focus-within .team-accordion__item:not(:focus-within) {
    flex: none;
    width: 100%;
    cursor: default;
  }

  .team-accordion__item img {
    height: 18rem;
  }

  .team-accordion__item::before,
  .team-accordion__item:hover::before,
  .team-accordion__item:focus-within::before,
  .team-accordion__name,
  .team-accordion__role,
  .team-accordion__body,
  .team-accordion__item:hover .team-accordion__name,
  .team-accordion__item:focus-within .team-accordion__name,
  .team-accordion__item:hover .team-accordion__role,
  .team-accordion__item:focus-within .team-accordion__role,
  .team-accordion__item:hover .team-accordion__body,
  .team-accordion__item:focus-within .team-accordion__body {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .team-accordion__item::after,
  .team-accordion:hover .team-accordion__item:not(:hover)::after,
  .team-accordion:focus-within .team-accordion__item:not(:focus-within)::after,
  .team-accordion__item:hover::after,
  .team-accordion__item:focus-within::after {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-accordion__item,
  .team-accordion__name,
  .team-accordion__role,
  .team-accordion__body,
  .team-accordion__item::before,
  .team-accordion__item::after {
    transition: none;
  }

  .team-accordion:hover .team-accordion__item,
  .team-accordion:focus-within .team-accordion__item {
    flex: 1 1 0;
  }

  .team-accordion__item::before,
  .team-accordion__name,
  .team-accordion__role,
  .team-accordion__body {
    opacity: 1;
    transform: none;
  }

  .team-accordion__item::after {
    opacity: 0;
  }
}

/*
  History is a pinned horizontal timeline. Without motion it stays a normal
  section so the milestones remain readable.
*/
.about-history {
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: none;
  padding: calc(var(--header-offset) + 1.5rem) 0 3rem;
}

.history-pin {
  display: flex;
  align-items: center;
  justify-content: center;
}

.history-window {
  width: min(var(--page), calc(100% - (var(--space-page) * 2)));
}

.history-track {
  display: grid;
  grid-template-columns: minmax(14rem, 22rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  width: 100%;
}

.history-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  height: 22rem;
}

.history-photo img {
  width: min(100%, 16rem);
  height: auto;
  object-fit: contain;
}

.history-board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 1.25rem 1.5rem;
  align-items: start;
}

.history-line {
  display: none;
}

.history-intro {
  grid-column: 1;
  grid-row: 1;
}

.history-period {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.history-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 600;
  line-height: 0.95;
}

.history-list {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-item {
  position: relative;
  min-width: 0;
}

.history-stem {
  display: none;
}

.history-copy h3,
.history-copy p {
  margin: 0;
}

.history-date {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-weight: 600;
  line-height: 1;
}

.history-copy p {
  margin-top: 0.45rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.35;
}

.history-reveal {
  display: block;
}

.about-history.is-motion {
  /* 100vh of locked timeline plus the sideways scroll distance. */
  height: 280vh;
  min-height: 0;
  padding: 0;
}

.about-history.is-motion .history-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding-top: var(--header-offset);
}

.about-history.is-motion .history-window {
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.about-history.is-motion .history-track {
  display: flex;
  align-items: center;
  gap: 4vw;
  width: max-content;
  min-width: 210vw;
  height: clamp(22rem, 34vw, 30rem);
  margin: 0;
  padding-left: 0;
}

.about-history.is-motion .history-photo {
  flex: none;
  width: 26vw;
  height: 100%;
  border-radius: 1rem;
}

.about-history.is-motion .history-board {
  flex: none;
  display: grid;
  grid-template-columns: 16vw minmax(150vw, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 0;
  width: 170vw;
  height: 100%;
  align-items: stretch;
}

.about-history.is-motion .history-line {
  position: absolute;
  left: 0;
  right: 4vw;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  transform: translateY(-50%);
  pointer-events: none;
}

.about-history.is-motion .history-line__cap {
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent);
}

.about-history.is-motion .history-line__bar {
  width: 0;
  height: 1px;
  background: var(--accent);
}

.about-history.is-motion .history-intro,
.about-history.is-motion .history-period {
  align-self: start;
  padding-top: 1.5rem;
  padding-right: 1rem;
}

.about-history.is-motion .history-period {
  align-self: start;
  padding-top: 1.25rem;
}

.about-history.is-motion .history-title {
  max-width: 7ch;
  font-size: clamp(2rem, 2.8vw, 3.1rem);
}

.about-history.is-motion .history-period {
  font-size: clamp(1rem, 1.4vw, 1.45rem);
}

.about-history.is-motion .history-list {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(18vw, 1fr));
  grid-template-rows: 1fr 1fr;
  gap: 0 2vw;
  height: 100%;
  margin-left: 2vw;
}

.about-history.is-motion .history-item--top {
  grid-row: 1;
}

.about-history.is-motion .history-item--bottom {
  grid-row: 2;
}

.about-history.is-motion .history-item:nth-child(1) { grid-column: 1; }
.about-history.is-motion .history-item:nth-child(2) { grid-column: 2; }
.about-history.is-motion .history-item:nth-child(3) { grid-column: 3; }
.about-history.is-motion .history-item:nth-child(4) { grid-column: 4; }

.about-history.is-motion .history-stem {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-history.is-motion .history-item--bottom .history-stem {
  justify-content: flex-end;
}

.about-history.is-motion .history-stem__line {
  width: 1px;
  flex: 1 1 auto;
  background: var(--accent);
  transform-origin: bottom center;
}

.about-history.is-motion .history-item--bottom .history-stem__line {
  transform-origin: top center;
}

.about-history.is-motion .history-dot {
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  margin-left: -0.35rem;
  border-radius: 50%;
  background: var(--accent);
}

.about-history.is-motion .history-reveal > span {
  display: block;
}

.about-history.is-motion .history-copy {
  position: relative;
  z-index: 1;
  max-width: 16vw;
  padding-left: 1rem;
}

.about-history.is-motion .history-item--top .history-copy {
  padding-top: 0.15rem;
}

.about-history.is-motion .history-item--bottom .history-copy {
  position: absolute;
  left: 0;
  right: 1rem;
  bottom: 0;
  max-width: none;
  padding-left: 1rem;
}

.about-history.is-motion .history-date {
  font-size: clamp(1.5rem, 2.2vw, 2.35rem);
}

.about-history.is-motion .history-copy p {
  max-width: 18rem;
  font-size: clamp(0.95rem, 1.15vw, 1.15rem);
}

.about-history.is-motion .history-reveal {
  overflow: hidden;
}

@media (max-width: 700px) {
  .about-history,
  .about-history.is-motion {
    height: auto;
    min-height: 0;
    padding: calc(var(--header-offset) + 1.5rem) 0 3rem;
  }

  .history-pin,
  .about-history.is-motion .history-pin {
    position: static;
    height: auto;
    overflow: visible;
    padding-top: 0;
  }

  .history-window,
  .about-history.is-motion .history-window {
    display: block;
    height: auto;
    overflow: visible;
  }

  .history-track,
  .about-history.is-motion .history-track {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    width: 100%;
    min-width: 0;
    height: auto;
    transform: none !important;
  }

  .history-photo,
  .about-history.is-motion .history-photo {
    width: 100%;
    height: 16rem;
  }

  .history-board,
  .about-history.is-motion .history-board {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    height: auto;
  }

  .history-line,
  .about-history.is-motion .history-line {
    display: none;
  }

  .history-intro,
  .history-period,
  .about-history.is-motion .history-intro,
  .about-history.is-motion .history-period {
    padding: 0;
  }

  .history-title,
  .about-history.is-motion .history-title {
    max-width: none;
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .history-period,
  .about-history.is-motion .history-period {
    font-size: 1.05rem;
  }

  .history-list,
  .about-history.is-motion .history-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    height: auto;
    margin: 0.35rem 0 0;
  }

  .history-list::before {
    content: "";
    position: absolute;
    top: 0.55rem;
    bottom: 1.7rem;
    left: 0.35rem;
    width: 1px;
    background: var(--accent);
  }

  .history-item {
    display: grid;
    grid-template-columns: 0.7rem minmax(0, 1fr);
    column-gap: 0.9rem;
    padding-bottom: 1.35rem;
  }

  .history-stem,
  .about-history.is-motion .history-stem,
  .about-history.is-motion .history-item--bottom .history-stem {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: auto;
  }

  .history-stem__line,
  .about-history.is-motion .history-stem__line {
    display: none;
  }

  .history-dot,
  .about-history.is-motion .history-dot {
    position: relative;
    z-index: 1;
    width: 0.7rem;
    height: 0.7rem;
    margin: 0.15rem 0 0;
    transform: none !important;
  }

  .history-copy,
  .about-history.is-motion .history-copy,
  .about-history.is-motion .history-item--top .history-copy,
  .about-history.is-motion .history-item--bottom .history-copy {
    position: static;
    max-width: none;
    padding: 0;
  }

  .history-date,
  .about-history.is-motion .history-date {
    font-size: 1.35rem;
  }

  .history-copy p,
  .about-history.is-motion .history-copy p {
    max-width: none;
    font-size: 0.98rem;
  }

  .history-reveal,
  .about-history.is-motion .history-reveal {
    overflow: visible;
  }

  .about-history.is-motion .history-reveal > span {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-history.is-motion {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(var(--header-offset) + 1.5rem) 0 3rem;
  }

  .about-history.is-motion .history-pin {
    position: relative;
    height: auto;
    overflow: visible;
    padding-top: 0;
  }

  .about-history.is-motion .history-track,
  .about-history.is-motion .history-board,
  .about-history.is-motion .history-list,
  .about-history.is-motion .history-photo {
    width: auto;
    min-width: 0;
    height: auto;
    transform: none;
  }
}

@media (max-width: 980px) {
  .about-split,
  .stat-row,
  .principle-grid,
  .award-grid,
  .about-pair {
    grid-template-columns: 1fr;
  }

  .about-pair {
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    gap: 0;
  }

  .about-pair__item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: calc(var(--header-offset) + 1.5rem);
    padding-bottom: 3rem;
    scroll-snap-align: start;
  }

  .about-split--copy-first .about-copy {
    order: 0;
  }

  .hero-badge {
    left: 1rem;
  }

  .member-grid {
    grid-template-columns: 1fr;
    max-width: 22rem;
    margin-inline: auto;
  }
}

/*
  Parked team section. .about-block { display: flex } would beat the
  hidden attribute and leave a blank viewport. Remove this rule only
  after #team no longer has the hidden attribute. See about.html.
*/
#team[hidden] {
  display: none !important;
}

/*
  Event gallery that currently occupies the team slot.
  Six photographs, two rows. The lightbox is a native dialog.
*/
/*
  main > section sets min-height: 100dvh, which would ignore a shorter height.
  This section snaps below the fixed header, so it fills only the visible slice.
*/
main > section.about-gallery {
  min-height: 0;
  height: calc(100dvh - var(--header-offset));
  gap: 1.15rem;
  padding-top: 1.5rem;
  padding-bottom: 1.25rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
  flex: 1 1 0;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery-grid > li {
  min-width: 0;
  min-height: 0;
}

.gallery-card {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: #111;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.gallery-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.45s ease;
}

.gallery-card:hover img,
.gallery-card:focus-visible img {
  transform: scale(1.04);
}

.gallery-card--speaker img {
  object-position: center 16%;
}

.gallery-card--panel img {
  object-position: center 22%;
}

.gallery-card--room img {
  object-position: center 40%;
}

.gallery-card--group img {
  object-position: center 18%;
}

.gallery-card span {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  left: 0.55rem;
  padding: 0.4rem 0.6rem;
  border-radius: 0.4rem;
  background: rgba(0, 0, 0, 0.66);
  font-size: 0.84rem;
  line-height: 1.35;
}

.gallery-card:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
}

.gallery-lightbox {
  width: max-content;
  max-width: calc(100vw - 2rem);
  max-height: calc(100dvh - 2rem);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}

.gallery-lightbox[open] {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
}

.gallery-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.gallery-lightbox__frame {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gallery-lightbox__frame img {
  width: auto;
  max-width: min(64rem, calc(100vw - 2rem));
  height: auto;
  max-height: min(72dvh, 40rem);
  object-fit: contain;
  border-radius: 0.75rem;
  background: #111;
}

.gallery-lightbox__frame p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  text-align: center;
}

.gallery-lightbox__controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.gallery-lightbox__controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
}

.gallery-lightbox__controls button svg {
  width: 1.1rem;
  height: 1.1rem;
}

.gallery-lightbox__controls button:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
}

@media (max-width: 800px) {
  main > section.about-gallery {
    height: auto;
    min-height: 100dvh;
    padding-top: calc(var(--header-offset) + 1.5rem);
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    flex: none;
  }

  .gallery-card {
    aspect-ratio: 3 / 4;
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-card img {
    transition: none;
    transform: none;
  }
}

@media (max-width: 640px) {
  .principle-grid,
  .award-grid {
    grid-template-columns: 1fr;
  }

  .team-photo {
    min-height: 16rem;
  }
}
