/* =========================================================
   01. Network Hero
========================================================= */
.network-hero {
  background: var(--white);
  color: var(--black);
  padding: calc(var(--nav-height) + 78px) 0 56px;
}

.network-hero__inner {
  display: grid;
  gap: 54px;
}

.network-hero__content {
  max-width: 680px;
}

.network-hero__title {
  margin: 0 0 18px;
  font-family: "Haas Grot Disp Trial";
  font-weight: 400;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.network-hero__text {
  margin: 0;
  max-width: 72ch;
  font-size: 18px;
  line-height: 1.35;
  color: rgba(17, 17, 17, 0.9);
}

/* =========================================================
   02. Tabs
========================================================= */
.network-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: clamp(38px, 5vw, 72px);
  max-width: 620px;
}

.network-tab {
  position: relative;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0 0 16px;
  cursor: pointer;
  text-align: left;
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1;
  color: var(--black);
}

.network-tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.18);
  transition:
    background 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}

.network-tab:hover::after {
  background: rgba(91, 42, 244, 0.45);
}

.network-tab.is-active::after {
  background: var(--purple);
}

.network-tab:focus-visible {
  outline: 2px solid rgba(91, 42, 244, 0.65);
  outline-offset: 6px;
  border-radius: 4px;
}

/* =========================================================
   03. Network Content
========================================================= */
.network-content {
  background: var(--white);
  color: var(--black);
  padding: 32px 0 120px;
}

.network-content__inner {
  min-height: 420px;
}

.network-panel {
  display: grid;
  gap: 42px;
}

.network-panel[hidden] {
  display: none;
}

.network-panel__header {
  max-width: 760px;
}

.network-panel__eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1;
  color: var(--purple);
}

.network-panel__title {
  margin: 0;
  max-width: 16ch;
  font-family: "Haas Grot Disp Trial";
  font-weight: 400;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.network-placeholder {
  min-height: 260px;
  border-radius: 20px;
  background: #f5f5f5;
  display: grid;
  place-items: center;
  color: rgba(17, 17, 17, 0.52);
  font-size: 14px;
}

/* =========================================================
   05. Responsive
========================================================= */
@media (max-width: 900px) {
  .network-hero {
    padding: calc(var(--nav-height) + 46px) 0 42px;
  }

  .network-tabs {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: none;
  }

  .network-tab {
    padding-bottom: 12px;
  }

  .network-content {
    padding-top: 18px;
  }

  .network-panel__title {
    max-width: 12ch;
  }
}

/* =========================================================
   Creator Network Groups
========================================================= */
.creator-network {
  display: grid;
  gap: 86px;
}

.creator-group {
  display: grid;
  gap: 34px;
}

.creator-network__title {
  margin: 0;
  font-family: "Haas Grot Disp Trial";
  font-weight: 500;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.creator-network__rail {
  display: grid;
  gap: 24px;
}

.creator-network__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  user-select: auto;
  scroll-behavior: auto;
}

.creator-network__grid {
  --creator-gap-x: 42px;
  --creator-gap-y: 56px;

  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  grid-auto-columns: calc((min(var(--max-width), calc(100vw - 48px)) - (var(--creator-gap-x) * 3)) / 4);
  gap: var(--creator-gap-y) var(--creator-gap-x);
  width: max-content;
  padding: 2px 2px 2px 0;
}

.network-creator-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  background: #111;
  color: #fff;
  isolation: isolate;
  text-decoration: none;
}

.network-creator-card:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 6px;
}

.network-creator-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 260ms ease,
    opacity 260ms ease;
}

.network-creator-card__base,
.network-creator-card__hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  color: #fff;
  pointer-events: none;
}

.network-creator-card__base {
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  transition: opacity 180ms ease;
}

.network-creator-card__base h3 {
  margin: 0;
  font-family: "Satoshi", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-align: center;
}

.network-creator-card__hover {
  z-index: 3;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  text-align: center;
  background: rgba(91, 42, 244, 0.82);
  opacity: 0;
  transition: opacity 220ms ease;
}

.network-creator-card__hover h3 {
  margin: 0;
  max-width: 13ch;
  font-family: "Satoshi", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.network-creator-card__hover p {
  margin: 0;
  max-width: 12ch;
  font-family: "Satoshi", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.network-creator-card:hover img {
  transform: scale(1.035);
}

.network-creator-card:hover .network-creator-card__base {
  opacity: 0;
}

.network-creator-card:hover .network-creator-card__hover {
  opacity: 1;
}

/* Scrollbar */
.creator-network__scrollbar {
  width: 190px;
  padding: 14px 0;
  cursor: pointer;
}

.creator-network__scrollbar-track {
  position: relative;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: #e8e8e8;
  overflow: visible;
}

.creator-network__scrollbar-thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  min-width: 44px;
  border-radius: 999px;
  background: var(--purple);
  transform: translate3d(0, 0, 0);
  cursor: grab;
  touch-action: none;
  will-change: transform, width;
}

.creator-network__scrollbar-thumb::before {
  content: "";
  position: absolute;
  inset: -14px 0;
}

.creator-network__scrollbar-thumb:active {
  cursor: grabbing;
}

/* Responsive */
@media (max-width: 1100px) {
  .creator-network__grid {
    --creator-gap-x: 28px;
    grid-auto-columns: calc((min(var(--max-width), calc(100vw - 48px)) - (var(--creator-gap-x) * 2)) / 3);
  }
}

@media (max-width: 760px) {
  .creator-network {
    gap: 62px;
  }

  .creator-network__grid {
    --creator-gap-x: 20px;
    --creator-gap-y: 24px;
    grid-auto-columns: 210px;
  }

  .creator-network__scrollbar {
    width: 150px;
  }

  .network-creator-card__hover h3 {
    font-size: 17px;
  }

  .network-creator-card__hover p {
    font-size: 15px;
  }
}

/* =========================================================
   Leadership Network
========================================================= */
.leadership-network {
  display: grid;
  gap: 86px;
}

.leadership-group {
  display: grid;
  gap: 34px;
}

.leadership-grid {
  display: grid;
  gap: 42px;
}

.leadership-grid--two {
  grid-template-columns: repeat(2, minmax(180px, 240px));
}

.leadership-grid--three {
  grid-template-columns: repeat(4, minmax(180px, 240px));
}

.leadership-card {
  width: 100%;
  max-width: 240px;
}

.leadership-card .network-creator-card__hover h3 {
  max-width: 13ch;
  font-size: clamp(16px, 1.25vw, 20px);
}

.leadership-card .network-creator-card__hover p {
  max-width: 14ch;
  font-size: clamp(14px, 1vw, 16px);
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 900px) {
  .leadership-network {
    gap: 62px;
  }

  .leadership-grid--two,
  .leadership-grid--three {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .leadership-card {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .leadership-grid--two,
  .leadership-grid--three {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 2200px) {
  .network-hero__content {
    max-width: 860px;
  }

  .network-hero__title {
    font-size: clamp(62px, 4vw, 78px);
  }

  .network-hero__text {
    font-size: 21px;
  }

  .network-tab {
    font-size: 15.5px;
  }

  .network-panel__title {
    font-size: clamp(62px, 4.3vw, 82px);
  }

  .creator-network__title {
    font-size: 2.45rem;
  }

  .creator-network__grid {
    --creator-gap-x: 50px;
    --creator-gap-y: 66px;
  }

  .network-creator-card__base h3 {
    font-size: clamp(19px, 1.25vw, 22px);
  }

  .network-creator-card__hover h3 {
    font-size: clamp(21px, 1.42vw, 25px);
  }

  .network-creator-card__hover p {
    font-size: clamp(18.5px, 1.25vw, 22px);
  }

  .leadership-grid--two {
    grid-template-columns: repeat(2, minmax(230px, 290px));
  }

  .leadership-grid--three {
    grid-template-columns: repeat(3, minmax(230px, 290px));
  }

  .leadership-card {
    max-width: 290px;
  }
}