.studio-community {
  margin-block: clamp(32px, 6vw, 64px);
  scroll-margin-top: 94px;
}

.studio-network-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  border-radius: 17px;
  background: #49392f;
}

.studio-network-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 94px;
  padding: 15px clamp(14px, 2vw, 22px);
  background: #211c19;
}

.studio-network-card:first-child { border-radius: 16px 0 0 16px; }
.studio-network-card:last-child { border-radius: 0 16px 16px 0; }

.studio-network-profile {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.studio-network-profile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.studio-network-card:has(.studio-network-profile:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.studio-network-profile:is(:hover, :focus-visible) strong { color: #ffb986; }

.studio-network-portrait { position: relative; flex: none; }
.studio-network-portrait img { display: block; border-radius: 50%; object-fit: cover; }
.studio-network-portrait svg {
  position: absolute;
  inset: auto -2px -1px auto;
  width: 20px;
  height: 20px;
  padding: 3px;
  border: 2px solid #211c19;
  border-radius: 50%;
  background: #111;
  fill: #fff;
}

.studio-network-portrait svg[data-network="youtube"] { background: #c82121; }
.studio-network-copy strong { display: block; color: var(--white); font-size: clamp(16px, 2vw, 20px); line-height: 1.2; }
.studio-network-copy small { display: flex; flex-wrap: wrap; gap: 3px 8px; margin-top: 5px; font-size: 12px; color: #c4b9af; }
.studio-network-copy small span { white-space: nowrap; }
.studio-network-copy small span::before { content: "·"; margin-right: 8px; }
.studio-network-copy b { color: var(--white); font-variant-numeric: tabular-nums; }

.studio-network-shortcut {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  min-height: 44px;
  color: #f2ba97;
  font-size: 13px;
  font-weight: 650;
}

.studio-network-shortcut:hover,
.studio-audience-detail:hover small { text-decoration: underline; text-underline-offset: 3px; }

.studio-audience-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 3vw, 30px);
  margin-top: clamp(20px, 3vw, 30px);
}

.studio-audience-summary::before,
.studio-audience-summary::after {
  content: "";
  flex: 1;
  max-width: 160px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #625047);
}

.studio-audience-summary::after { transform: scaleX(-1); }

.studio-audience-detail {
  display: inline-flex;
  align-items: end;
  gap: clamp(10px, 2vw, 20px);
  color: var(--white);
}

.studio-audience-detail strong {
  min-width: 5.5ch;
  color: #ffac74;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.05em;
  text-align: end;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.studio-audience-detail > span { padding-bottom: 3px; font-size: clamp(13px, 1.8vw, 19px); font-weight: 650; line-height: 1.2; }
.studio-audience-detail small { display: block; margin-top: 3px; color: #c4b9af; font-size: 12px; font-weight: 400; }

.studio-projects {
  padding-block: 22px 54px;
  scroll-margin-top: 94px;
}

.studio-project-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; }
.studio-project-heading h2 { font-size: clamp(27px, 4vw, 45px); letter-spacing: -.045em; }
.studio-project-heading button {
  display: none;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #584437;
  border-radius: 50%;
  background: #211c19;
  color: var(--white);
  cursor: pointer;
}

.studio-project-heading button:hover { border-color: var(--accent); }

.studio-project-window {
  container-type: inline-size;
  padding-block: 8px;
  border-block: 1px solid #3a3029;
}

.studio-project-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.studio-project-list[aria-hidden] { display: none; }
.studio-project-list a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 56px;
  color: var(--white);
  white-space: nowrap;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 650;
  letter-spacing: -.035em;
}

.studio-project-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.studio-project-list img { width: 30px; height: 30px; object-fit: contain; }
.studio-project-list small { color: #d4c7bd; font-size: .64em; font-weight: 400; letter-spacing: 0; }

@media (prefers-reduced-motion: no-preference) {
  .studio-projects-ready .studio-project-heading button { display: grid; }
  .studio-projects-ready .studio-project-window:not(:has(a:focus-visible)) {
    overflow: clip;
    mask-image: linear-gradient(90deg, transparent, #000 min(7%, 56px), #000 calc(100% - min(7%, 56px)), transparent);
  }
  .studio-projects-ready .studio-project-window:not(:has(a:focus-visible)) .studio-project-track {
    display: flex;
    width: max-content;
    animation: studio-project-loop 50s linear infinite;
  }
  .studio-projects-ready .studio-project-window:not(:has(a:focus-visible)) .studio-project-list {
    --project-gap: clamp(38px, 5vw, 68px);
    display: flex;
    flex: none;
    flex-wrap: nowrap;
    justify-content: space-around;
    min-width: 100cqi;
    gap: var(--project-gap);
    padding-inline: calc(var(--project-gap) / 2);
  }
  .studio-project-track[data-paused="true"] { animation-play-state: paused !important; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .studio-project-window:hover .studio-project-track { animation-play-state: paused; }
}

@keyframes studio-project-loop { to { transform: translateX(-50%); } }

@media (max-width: 740px) {
  .studio-network-cards { grid-template-columns: 1fr; }
  .studio-network-card { min-height: 83px; }
  .studio-network-card:first-child { border-radius: 16px 16px 0 0; }
  .studio-network-card:last-child { border-radius: 0 0 16px 16px; }
}

@media (max-width: 360px) {
  .studio-network-card { gap: 6px; padding-inline: 12px; }
  .studio-network-profile { gap: 8px; }
  .studio-network-portrait img { width: 40px; height: 40px; }
  .studio-network-shortcut { font-size: 12px; }
}
