:root {
  --team-surface: rgba(10, 13, 18, 0.91);
  --team-border: rgba(130, 135, 150, 0.24);
  --team-muted: #858b9a;
}

html {
  scroll-behavior: smooth;
}

body.team-site {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--black);
}

.team-directory {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.team-directory::before,
.team-directory::after {
  position: fixed;
  z-index: -2;
  inset: 0;
  content: "";
  pointer-events: none;
}

.team-directory::before {
  background: var(--black) var(--site-background-image) center bottom / cover no-repeat;
  transform: scale(1.03);
  transform-origin: center bottom;
}

.team-directory::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.12) 57%, rgba(0, 0, 0, 0.26) 100%),
    radial-gradient(circle at 50% 43%, transparent 0%, rgba(0, 0, 0, 0.24) 100%);
}

.directory-content {
  width: min(100% - 96px, calc(var(--site-max-width) - 96px));
  margin: 92px auto 72px;
}

.page-view {
  display: none;
}

.team-view {
  padding-top: 0;
}

.route-team .team-view,
.route-science #science,
.route-story #story {
  display: block;
  animation: directory-enter 440ms ease-out both;
}

.team-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 14px;
}

.team-heading h1 {
  margin: 0;
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(36px, 3.35vw, 50px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.team-heading__caption {
  flex: 0 1 520px;
  min-height: 11px;
  margin: 0 0 4px;
  color: #aeb4c2;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.22em;
  text-align: right;
  text-transform: uppercase;
}

.directory-heading {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 38px;
}

.directory-heading h1 {
  margin: 0;
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(40px, 3.35vw, 52px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}

.directory-heading p {
  margin: 0;
  color: #6f7791;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.team-roster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, 106px);
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 20px;
}

.team-card {
  position: relative;
  min-width: 0;
  height: 106px;
  overflow: hidden;
  border: 1px solid var(--team-border);
  border-radius: 10px;
  background: var(--team-surface);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.team-card:hover,
.team-card:focus-visible,
.team-card.is-active {
  border-color: rgba(115, 251, 121, 0.65);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(115, 251, 121, 0.08),
    0 0 26px rgba(115, 251, 121, 0.08);
  transform: translateY(-2px);
}

.team-card:focus-visible {
  outline: 1px solid var(--atg-green);
  outline-offset: 4px;
}

.team-card__portrait {
  position: absolute;
  inset: 0 auto 0 0;
  width: 135px;
  overflow: hidden;
  border-right: 1px solid var(--team-border);
  background: #11151d;
}

.team-card__portrait::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 72%, rgba(8, 11, 16, 0.22) 100%);
  content: "";
}

.team-card__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: saturate(0.82) contrast(1.04);
  transition:
    filter 260ms ease,
    transform 420ms cubic-bezier(0.23, 1, 0.32, 1);
}

.team-card__portrait img[src*="team-calem"] {
  object-position: center 58%;
}

.team-card:hover .team-card__portrait img,
.team-card:focus-visible .team-card__portrait img,
.team-card.is-active .team-card__portrait img {
  filter: saturate(1) contrast(1.05);
  transform: scale(1.055);
}

.team-card__identity,
.team-card__details {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 135px;
}

.team-card__identity {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 13px 22px;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 170ms ease,
    transform 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

.team-card__identity h2 {
  margin: 0;
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(18px, 1.35vw, 22px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.team-card__identity p {
  margin: 14px 0 0;
  color: #cbd0dc;
  font-family: "Andale Mono", Consolas, "Lucida Console", monospace;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.04em;
}

.team-card__details {
  display: flex;
  align-items: center;
  padding: 9px 18px 9px 26px;
  background: linear-gradient(90deg, rgba(8, 11, 16, 0.98), rgba(8, 11, 16, 0.92));
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 320ms cubic-bezier(0.23, 1, 0.32, 1);
}

.team-card__details ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  color: #e2e5ec;
  font-family: "Andale Mono", Consolas, "Lucida Console", monospace;
  font-size: clamp(10px, 0.75vw, 12px);
  line-height: 1.15;
  list-style: none;
}

.team-card__details li {
  position: relative;
  padding-left: 14px;
}

.team-card__details li::before {
  position: absolute;
  top: 0.36em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--atg-green);
  content: "";
}

.team-card:hover .team-card__identity,
.team-card:focus-visible .team-card__identity,
.team-card.is-active .team-card__identity {
  opacity: 0;
  transform: translateY(-10px);
}

.team-card:hover .team-card__details,
.team-card:focus-visible .team-card__details,
.team-card.is-active .team-card__details {
  opacity: 1;
  transform: translateY(0);
}

.editorial-view {
  max-width: 1120px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.editorial-card,
.story-panel {
  overflow: hidden;
  border: 1px solid var(--team-border);
  border-radius: 10px;
  background: var(--team-surface);
}

.editorial-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
}

.editorial-card > div {
  padding: 20px;
}

.editorial-card h2 {
  margin: 0;
  color: var(--atg-green);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 19px;
  line-height: 1.15;
}

.editorial-card p,
.story-panel p {
  margin: 13px 0 0;
  color: #d4d7df;
  font-size: 13px;
  line-height: 1.55;
}

.story-panel {
  display: grid;
  grid-template-columns: minmax(280px, 48%) minmax(0, 1fr);
  max-width: 980px;
}

.story-panel img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.story-panel p {
  align-self: center;
  margin: 0;
  padding: 34px;
  font-size: 15px;
}

@keyframes directory-enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1280px) {
  .team-roster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, 106px);
  }
}

@media (max-width: 1000px) {
  .directory-content {
    width: min(100% - 48px, 720px);
  }

  .team-roster {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }

  .editorial-grid {
    grid-template-columns: 1fr;
  }

  .editorial-card {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .editorial-card img {
    height: 100%;
    aspect-ratio: auto;
  }
}

@media (max-width: 820px) {
  .directory-content {
    margin-top: 68px;
  }
}

@media (max-width: 700px) {
  .team-directory {
    overflow: visible;
  }

  .directory-content {
    width: min(100% - 40px, 620px);
    margin-top: 0;
  }

  .team-heading {
    display: block;
    padding-top: 36px;
  }

  .team-heading h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .team-heading__caption {
    max-width: 360px;
    margin-top: 12px;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .directory-heading {
    display: block;
    margin-bottom: 27px;
  }

  .directory-heading h1 {
    font-size: 40px;
  }

  .directory-heading p {
    margin-top: 11px;
    font-size: 11px;
  }

  .team-card {
    height: 118px;
  }

  .team-card__portrait {
    width: 118px;
  }

  .team-card__identity,
  .team-card__details {
    left: 118px;
  }

  .team-card__identity {
    padding-right: 14px;
    padding-left: 18px;
  }

  .team-card__identity h2 {
    font-size: 19px;
  }

  .team-card__details {
    padding-right: 12px;
    padding-left: 18px;
  }

  .team-card__details ul {
    gap: 4px;
    font-size: 10px;
  }

  .editorial-card,
  .story-panel {
    grid-template-columns: 1fr;
  }

  .editorial-card img,
  .story-panel img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 460px) {
  .team-card__details {
    left: 0;
    padding: 11px 14px 11px 22px;
    background: rgba(5, 8, 12, 0.95);
  }

  .team-card__details ul {
    font-size: 10px;
    line-height: 1.1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .route-team .team-view,
  .route-science #science,
  .route-story #story {
    animation: none;
  }

  .team-card,
  .team-card__portrait img,
  .team-card__identity,
  .team-card__details {
    transition: none;
  }
}
