/* Committee component. Insert portraits in the commented HTML img slots. */
@property --committee-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.committee-section {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 90px 0 100px;
  background: radial-gradient(ellipse at 90% 25%, #e6f4f6, transparent 55%), #f7fafb;
  color: var(--content-ink);
  color-scheme: light;
  border-top: 1px solid #dce8ed;
  scroll-margin-top: 22px;
  outline: none;
}
.committee-heading {
  margin-bottom: 48px;
  padding-bottom: 27px;
  border-bottom: 1px solid var(--content-line);
}
.committee-heading h2 {
  margin: 0;
  font:
    clamp(46px, 4.6vw, 72px)/1.1 Bebas,
    sans-serif;
  letter-spacing: 0.5px;
}
.committee-grid {
  --committee-gap: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--committee-gap);
}
.committee-card {
  min-width: 0;
}
.committee-surface {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 15px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(from var(--committee-angle), #c4e3e9, #167d8a, #eef8f9, var(--red), #c4e3e9)
      border-box;
  box-shadow: 0 14px 40px #163b5012;
  animation: committee-border 7s linear infinite;
  animation-delay: calc(var(--committee-index) * -0.4s);
  transition:
    transform 0.45s,
    box-shadow 0.45s;
}
.committee-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 40%, #ffffff80 50%, transparent 60%);
  transform: translateX(-140%);
  animation: committee-sheen 6s ease-in-out infinite;
  animation-delay: calc(var(--committee-index) * -0.5s);
}
.committee-surface:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 50px #167d8a25;
}
.committee-photo {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 1/1.03;
  background: radial-gradient(ellipse at 45% 40%, #d1ebef, #f1f8fa 75%);
}
.committee-photo::before {
  content: "";
  position: absolute;
  inset: 15%;
  border: 1px dashed #167d8a55;
  border-radius: 50%;
  animation: committee-orbit 18s linear infinite;
}
.committee-photo::after {
  content: "";
  position: absolute;
  inset: 22%;
  border: 1px solid #7ecfd74d;
  border-radius: 50%;
  animation: committee-ring 4s ease-in-out infinite;
  animation-delay: calc(var(--committee-index) * -0.3s);
}
.committee-initials {
  z-index: 1;
  color: #167d8a;
  font:
    clamp(50px, 4vw, 76px)/1 Bebas,
    sans-serif;
  letter-spacing: 3px;
  text-shadow: 0 8px 30px #167d8a1c;
  animation: committee-initials 5s ease-in-out infinite;
  animation-delay: calc(var(--committee-index) * -0.3s);
}
.committee-photo img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.7s;
}
.committee-photo:has(img) .committee-initials {
  visibility: hidden;
}
.committee-surface:hover .committee-photo img {
  transform: scale(1.035);
}
.committee-copy {
  padding: 21px 20px 24px;
}
.committee-copy h3 {
  margin: 0 0 12px;
  color: var(--content-ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}
.committee-copy p {
  margin: 0;
  color: var(--content-muted);
  font-size: 14px;
  line-height: 1.8;
}
.committee-copy p:empty {
  display: none;
}
.committee-card:last-child:nth-child(4n + 1) {
  grid-column: 2 / span 2;
  width: calc((100% - var(--committee-gap)) / 2);
  justify-self: center;
}
@keyframes committee-border {
  to {
    --committee-angle: 360deg;
  }
}
@keyframes committee-sheen {
  0%,
  10% {
    transform: translateX(-140%);
    opacity: 0;
  }
  25%,
  55% {
    opacity: 0.8;
  }
  85%,
  100% {
    transform: translateX(140%);
    opacity: 0;
  }
}
@keyframes committee-orbit {
  to {
    transform: rotate(360deg);
  }
}
@keyframes committee-ring {
  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}
@keyframes committee-initials {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@media (max-width: 1099px) {
  .committee-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .committee-card:last-child:nth-child(4n + 1) {
    grid-column: auto;
    width: auto;
  }
  .committee-card:last-child:nth-child(3n + 1) {
    grid-column: 2;
  }
  .committee-section {
    padding: 72px 0 80px;
  }
}
@media (max-width: 767px) {
  .committee-section {
    padding: 56px 0 70px;
  }
  .committee-grid {
    --committee-gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .committee-heading {
    margin-bottom: 32px;
  }
  .committee-heading h2 {
    font-size: 43px;
  }
  .committee-copy {
    padding: 17px 13px 19px;
  }
  .committee-copy h3 {
    font-size: 16px;
    margin-bottom: 9px;
  }
  .committee-copy p {
    font-size: 14px;
    line-height: 1.7;
  }
  .committee-card:last-child:nth-child(3n + 1) {
    grid-column: auto;
  }
  .committee-card:last-child:nth-child(2n + 1) {
    grid-column: 1/-1;
    width: calc((100% - var(--committee-gap)) / 2);
    justify-self: center;
  }
}
@media (max-width: 360px) {
  .committee-container {
    padding-left: 18px;
    padding-right: 18px;
  }
  .committee-grid {
    --committee-gap: 12px;
  }
  .committee-heading h2 {
    font-size: 38px;
  }
  .committee-copy {
    padding-left: 11px;
    padding-right: 11px;
  }
  .committee-copy h3 {
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .committee-surface,
  .committee-surface::after,
  .committee-photo::before,
  .committee-photo::after,
  .committee-initials {
    animation: none !important;
  }
  .committee-surface::after {
    opacity: 0;
  }
  .committee-surface:hover,
  .committee-surface:hover .committee-photo img {
    transform: none;
  }
}
