@font-face {
  font-family: Mont;
  src: url("../fonts/Mont/Mont-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  background: #000;
  color: #fff;
  font-family: Mont, "Century Gothic", Arial, sans-serif;
}

body { margin: 0; }

.demo-screen {
  display: grid;
  place-items: center;
  min-height: 100svh;
  box-sizing: border-box;
  padding-inline: 24px;
  background: #000;
  color: #fff;
}

.demo-screen h2 {
  margin: 0;
  font-size: clamp(32px, 4.1vw, 76px);
  font-weight: 400;
  letter-spacing: .01em;
  text-align: center;
}

.committee {
  position: relative;
  isolation: isolate;
  color-scheme: light;
  color: #000;
  background: #f8f8f8;
  font-family: Mont, "Century Gothic", Arial, sans-serif;
}

.committee__content {
  width: min(100% - 40px, 1300px);
  margin-inline: auto;
  padding-block: clamp(80px, 12vh, 160px);
}

.committee::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, #dedede 1px, transparent 1.6px);
  background-size: 43px 43px;
  pointer-events: none;
}

.committee h1 {
  font-size: clamp(31px, 6.3vw, 100px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 clamp(48px, 9vw, 128px);
}

.committee__people {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 34px 24px;
  padding: 0;
  margin: 0;
}

.committee__nameplate {
  border: 0;
  border-radius: 15px;
  box-sizing: border-box;
  background: #ececec;
  padding: 12px 20px;
  min-height: 68px;
  margin-bottom: 10px;
}

.committee__nameplate h2 { font-size: 20px; font-weight: 400; margin: 0 0 4px; }
.committee__nameplate p { font-size: 13px; color: #aaa; line-height: 1.35; margin: 0; }

.committee__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 445 / 425;
  object-fit: cover;
  box-sizing: border-box;
  border: 0.7px solid #dedede;
  border-radius: 15px;
  background: linear-gradient(#f8f8f800, #dedede);
}

.committee__companies {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.committee__companies li {
  padding: 5px 15px;
  border-radius: 20px;
  color: #f8f8f8;
  background: #000;
  font-size: 13px;
  line-height: 20px;
}

.committee__stage { display: none; }
.committee__notice { margin: 0 auto; width: min(100% - 40px, 1300px); }

.committee.is-enhanced { z-index: 1; }
.committee__previous {
  /* Keep the positioning pair together when embedded after the host's hero
     styles. A negative top on position: relative would crop its first screen. */
  position: sticky !important;
  top: var(--committee-pin-top, 0px) !important;
  z-index: 0;
}
.committee.is-enhanced::before { display: none; }
.committee.is-enhanced .committee__content {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.committee.is-enhanced .committee__stage {
  position: sticky;
  top: 0;
  display: block;
  height: 100svh;
  overflow: hidden;
}
.committee__stage canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.committee__title-layer {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: auto;
  color: #000;
  fill: currentColor;
  font: 120px Mont, Arial, sans-serif;
  pointer-events: none;
}
.committee__card-labels {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  font: 16px Mont, Arial, sans-serif;
}
.committee__card-labels text { text-anchor: middle; }
.committee__card-labels .card-name { font-size: 26px; letter-spacing: .26px; }
.committee__card-labels .card-role { fill: #aaa; }
.committee__card-labels .card-company { fill: #f8f8f8; }

/* Bring the next screen forward while the committee stage is still sticky. */
.committee.is-enhanced + .committee__following {
  position: relative;
  z-index: 2;
  margin-block-start: calc(-1 * var(--committee-viewport, 100svh));
}

@media (max-width: 620px) {
  .committee__content { width: min(100% - 36px, 445px); }
  .committee__people { grid-template-columns: 1fr; gap: 38px; }
}
