:root {
  --header-height: 76px;
  --ink: #111318;
  --paper: #fbfaf7;
  --line: rgba(17, 19, 24, 0.14);
  --caf: #e94f37;
  --per: #177e89;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--paper);
  color: var(--ink);
}

body.is-profile-viewer-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  align-items: center;
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid var(--line);
  column-gap: clamp(12px, 1.4vw, 18px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: var(--header-height);
  left: 0;
  padding: 0 clamp(16px, 3vw, 42px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.primary-nav,
.social-nav {
  align-items: center;
  display: flex;
  gap: clamp(10px, 1.8vw, 22px);
}

.primary-nav a {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-logo {
  align-items: center;
  display: flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 700;
  gap: 0.22em;
  line-height: 1;
  white-space: nowrap;
}

.brand-logo span:first-child {
  color: var(--caf);
}

.brand-logo span:last-child {
  color: var(--per);
}

.social-nav {
  gap: clamp(12px, 1.4vw, 18px);
  justify-content: flex-end;
}

.social-group {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.social-owner {
  align-items: center;
  background: #ffffff;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 auto;
  height: 36px;
  justify-content: center;
  overflow: hidden;
  width: 36px;
}

.social-group-caffeina {
  color: var(--caf);
}

.social-group-peristeronica {
  color: var(--per);
}

.social-owner img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.social-link {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  transition: transform 180ms ease, border-color 180ms ease;
  width: 34px;
}

.social-link:hover,
.social-link:focus-visible {
  border-color: currentColor;
  transform: translateY(-2px);
}

.social-link img {
  display: block;
  max-height: 18px;
  max-width: 18px;
  object-fit: contain;
}

.social-link-youtube {
  background: #ffffff;
}

@media (max-width: 1120px) {
  .social-nav {
    gap: 12px;
  }

  .social-group {
    gap: 5px;
  }

  .social-owner,
  .social-link {
    height: 30px;
    width: 30px;
  }
}

.home-hero {
  --hero-view-height: calc(100svh - var(--header-height));
  min-height: var(--hero-view-height);
  overflow: hidden;
  position: relative;
}

@supports (height: 100dvh) {
  .home-hero {
    --hero-view-height: calc(100dvh - var(--header-height));
  }
}

.latest-backdrop {
  display: flex;
  flex-direction: column;
  height: var(--hero-view-height);
  inset: 0;
  min-height: min(620px, var(--hero-view-height));
  position: sticky;
  top: var(--header-height);
}

.latest-panel {
  flex: 1 1 50%;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
  transition: flex-basis 820ms cubic-bezier(0.22, 1, 0.36, 1);
}

.latest-panel::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.08) 56%, rgba(0, 0, 0, 0.28));
  content: "";
  inset: 0;
  position: absolute;
}

.latest-panel img {
  display: block;
  filter: saturate(0.95) contrast(1.06);
  height: 100%;
  object-fit: cover;
  transition: transform 820ms cubic-bezier(0.22, 1, 0.36, 1), filter 720ms ease;
  width: 100%;
}

.caf-panel img {
  object-position: center center;
  transform-origin: center center;
}

.per-panel img {
  object-position: center center;
  transform-origin: center center;
}

.caf-panel {
  background: #f1d5c6;
}

.per-panel {
  background: #c9e0df;
}

.artist-switcher {
  display: grid;
  gap: clamp(24px, 5vh, 52px);
  left: clamp(18px, 4vw, 64px);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

.artist-card {
  --artist-icon-size: clamp(92px, 12vw, 138px);
  align-items: center;
  display: grid;
  grid-template-columns: var(--artist-icon-size) minmax(170px, 1fr);
  gap: 0;
  min-width: clamp(310px, 34vw, 420px);
  min-height: 160px;
  padding: 18px 34px 18px 12px;
  position: relative;
}

.artist-card::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)) top left / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)) bottom left / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)) top left / 1px 100% no-repeat,
    linear-gradient(90deg, rgba(68, 72, 78, 0.62) 0%, rgba(68, 72, 78, 0.52) 54%, rgba(68, 72, 78, 0) 100%);
  border-radius: 999px 0 0 999px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.26);
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transform: scaleX(0.58);
  transform-origin: left center;
  transition: opacity 300ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.artist-card.is-open::before {
  opacity: 1;
  transform: scaleX(1);
}

.artist-name {
  background: rgba(17, 19, 24);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  left: calc(12px + var(--artist-icon-size) / 2);
  letter-spacing: 0.08em;
  line-height: 1;
  opacity: 0;
  padding: 8px 12px;
  pointer-events: none;
  position: absolute;
  top: calc(50% + var(--artist-icon-size) / 2);
  transform: translate(-50%, calc(-50% - 8px));
  transition: opacity 260ms ease, transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
  z-index: 2;
}

.artist-card.is-open .artist-name {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.artist-icon {
  background: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  display: block;
  flex: 0 0 auto;
  height: var(--artist-icon-size);
  overflow: hidden;
  position: relative;
  transition: transform 280ms ease, border-color 280ms ease;
  width: var(--artist-icon-size);
  z-index: 1;
}

.artist-icon img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.artist-card.is-open .artist-icon {
  border-color: #ffffff;
  transform: scale(1.04);
}

.artist-actions {
  justify-self: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  position: relative;
  transform: translateX(-18px);
  transition: opacity 340ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

.artist-card.is-open .artist-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.artist-actions a {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  min-width: 156px;
  padding: 10px 16px;
  transition: background 220ms ease, transform 240ms ease;
}

.artist-actions a:hover,
.artist-actions a:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  transform: translateX(4px);
}

.home-hero:has(.caf-card.is-open) .caf-panel {
  flex-basis: 100%;
}

.home-hero:has(.caf-card.is-open) .per-panel {
  flex-basis: 0%;
}

.home-hero:has(.caf-card.is-open) .caf-panel img,
.home-hero:has(.per-card.is-open) .per-panel img {
  filter: saturate(1.08) contrast(1.1);
  transform: scale(1.05);
}

.home-hero:has(.per-card.is-open) .per-panel {
  flex-basis: 100%;
}

.home-hero:has(.per-card.is-open) .caf-panel {
  flex-basis: 0%;
}

.home-hero:has(.per-card.is-open) .per-panel img {
  transform: scale(1.05);
}

.content-section,
.artist-profile-list {
  padding: clamp(54px, 8vw, 110px) clamp(18px, 7vw, 120px);
}

.content-section,
.artist-profile {
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.content-section {
  border-top: 1px solid var(--line);
  margin-left: auto;
  margin-right: auto;
  max-width: 980px;
}

.section-kicker {
  color: var(--per);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
}

.content-section h1,
.content-section h2,
.artist-profile h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.4rem;
  line-height: 1;
  margin: 0 0 18px;
}

.content-section p {
  font-size: 1.12rem;
  line-height: 1.9;
  margin: 0 0 1em;
}

.content-section p:last-child {
  margin-bottom: 0;
}

.artist-profile-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  margin-left: auto;
  margin-right: auto;
  max-width: 980px;
}

.artist-profile {
  background: #ffffff;
  border: 1px solid var(--line);
  min-height: 220px;
  padding: clamp(20px, 3vw, 34px);
}

.profile-head {
  align-items: center;
  display: flex;
  gap: clamp(18px, 3vw, 30px);
  margin-bottom: clamp(22px, 4vw, 38px);
}

.profile-icon {
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(17, 19, 24, 0.1);
  display: block;
  flex: 0 0 auto;
  height: clamp(92px, 12vw, 132px);
  object-fit: cover;
  width: clamp(92px, 12vw, 132px);
}

.profile-quote {
  border-left: 3px solid var(--caf);
  color: rgba(17, 19, 24, 0.78);
  margin: 14px 0 0;
  padding: 0 0 0 14px;
}

#per-profile .profile-quote {
  border-left-color: var(--per);
}

.profile-quote p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.98rem, 1.8vw, 1.18rem);
  font-weight: 700;
  line-height: 1.65;
  margin: 0;
}

.profile-copy {
  max-width: 820px;
}

.profile-copy p {
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  line-height: 1.95;
  margin: 0 0 1em;
}

.profile-copy p:last-child {
  margin-bottom: 0;
}

.profile-featured {
  margin-top: clamp(34px, 5vw, 54px);
}

.profile-featured h3 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 18px;
}

.profile-work-list {
  display: grid;
  gap: clamp(18px, 3vw, 30px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-work-card {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  font: inherit;
  grid-template-rows: auto 1fr;
  min-width: 0;
  padding: 0;
  text-align: left;
  transition: opacity 180ms ease, transform 180ms ease;
}

.profile-work-card:hover,
.profile-work-card:focus-visible {
  opacity: 0.84;
  outline: none;
  transform: translateY(-2px);
}

.profile-work-cover {
  aspect-ratio: 16 / 9;
  background: #ece7df;
  box-shadow: 0 1px 0 rgba(17, 19, 24, 0.08);
  margin: 0;
  overflow: hidden;
  position: relative;
}

.profile-work-card.aspect-square .profile-work-cover {
  aspect-ratio: 1;
  margin-left: auto;
  margin-right: auto;
  width: 75%;
}

.profile-work-list:has(.profile-work-card.aspect-square) .profile-work-card {
  grid-template-rows: auto 1fr;
}

.profile-work-list:has(.profile-work-card.aspect-square) .profile-work-card::before {
  content: "";
  grid-area: 1 / 1;
  padding-top: 75%;
}

.profile-work-list:has(.profile-work-card.aspect-square) .profile-work-cover {
  align-self: end;
  grid-area: 1 / 1;
}

.profile-work-list:has(.profile-work-card.aspect-square) .profile-work-body {
  grid-area: 2 / 1;
}

.profile-work-cover img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.profile-work-tag {
  background: var(--ink);
  bottom: 10px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 7px 9px;
  position: absolute;
  right: 10px;
}

.type-music .profile-work-tag {
  background: var(--per);
}

.profile-work-body {
  display: grid;
  gap: 6px;
  grid-template-rows: clamp(2.62rem, 4.36vw, 3.18rem) auto;
  padding: 14px 0 0;
}

.profile-work-body h4 {
  font-size: clamp(1.02rem, 1.7vw, 1.24rem);
  font-weight: 800;
  line-height: 1.28;
  margin: 0;
  max-height: clamp(2.62rem, 4.36vw, 3.18rem);
  overflow: hidden;
  overflow-wrap: anywhere;
}

.profile-work-body p {
  color: rgba(17, 19, 24, 0.68);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}

.profile-works-link {
  background: var(--ink);
  color: #ffffff;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-top: clamp(24px, 4vw, 38px);
  padding: 12px 16px;
  transition: background 180ms ease, transform 180ms ease;
}

.profile-works-link:hover,
.profile-works-link:focus-visible {
  background: var(--caf);
  transform: translateY(-2px);
}

#per-profile .profile-works-link:hover,
#per-profile .profile-works-link:focus-visible {
  background: var(--per);
}

.profile-viewer {
  --profile-viewer-gap: clamp(8px, 1.8vw, 24px);
  --profile-viewer-padding: clamp(16px, 3.4vw, 42px);
  --profile-viewer-arrow-width: clamp(42px, 5vw, 70px);
  --profile-viewer-arrow-height: 48px;
  --profile-viewer-close-gap: 10px;
  --profile-viewer-close-size: 42px;
  --profile-viewer-close-space: 0px;
  --profile-video-width: min(
    1360px,
    calc(100vw - (var(--profile-viewer-padding) * 2) - (var(--profile-viewer-arrow-width) * 2) - (var(--profile-viewer-gap) * 2)),
    calc((100svh - (var(--profile-viewer-padding) * 2)) * 16 / 9)
  );
  --profile-video-height: calc(var(--profile-video-width) * 9 / 16);
  align-items: center;
  align-content: center;
  background: rgba(17, 19, 24, 0.78);
  display: none;
  gap: var(--profile-viewer-gap);
  inset: 0;
  justify-content: center;
  padding: var(--profile-viewer-padding);
  position: fixed;
  z-index: 70;
}

.profile-viewer.is-open {
  display: flex;
}

.profile-viewer-panel {
  background: #0d0f14;
  color: #ffffff;
  display: grid;
  flex: 0 1 var(--profile-video-width);
  max-width: var(--profile-video-width);
  min-width: 0;
  position: relative;
}

.profile-viewer-frame {
  aspect-ratio: 16 / 9;
  background: #000000;
  display: grid;
  height: var(--profile-video-height);
  place-items: center;
  width: 100%;
}

.profile-viewer-frame iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.profile-viewer-frame a {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 12px 18px;
}

.profile-viewer-close {
  appearance: none;
  background: rgba(255, 255, 255, 0.94);
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.5rem;
  height: var(--profile-viewer-close-size);
  line-height: 1;
  position: absolute;
  right: 0;
  top: 0;
  transform: translate(50%, -50%);
  width: var(--profile-viewer-close-size);
  z-index: 1;
}

.profile-viewer-arrow {
  align-self: center;
  appearance: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  flex: 0 0 var(--profile-viewer-arrow-width);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 300;
  height: var(--profile-video-height);
  line-height: 1;
  transition: background 180ms ease, border-color 180ms ease;
}

.profile-viewer-arrow:hover,
.profile-viewer-arrow:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.24);
  outline: none;
}

@media (max-aspect-ratio: 4 / 3) {
  .profile-viewer {
    --profile-viewer-close-space: calc(var(--profile-viewer-close-size) + var(--profile-viewer-close-gap));
    --profile-video-width: min(
      1360px,
      calc(100vw - (var(--profile-viewer-padding) * 2)),
      calc((100svh - (var(--profile-viewer-padding) * 2) - var(--profile-viewer-arrow-height) - var(--profile-viewer-gap) - (var(--profile-viewer-close-space) * 2)) * 16 / 9)
    );
    flex-wrap: wrap;
  }

  .profile-viewer-panel {
    flex-basis: var(--profile-video-width);
    max-width: var(--profile-video-width);
    order: 1;
  }

  .profile-viewer-arrow {
    flex: 1 1 calc(50% - var(--profile-viewer-gap));
    height: var(--profile-viewer-arrow-height);
    order: 2;
  }

  .profile-viewer-close {
    right: 0;
    top: calc(-1 * var(--profile-viewer-close-space));
    transform: none;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 108px;
  }

  .site-header {
    align-content: center;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    height: var(--header-height);
    justify-items: center;
    padding: 6px 14px;
    row-gap: 5px;
  }

  .primary-nav,
  .social-nav {
    justify-content: center;
  }

  .primary-nav {
    flex-wrap: wrap;
    grid-row: 2;
    row-gap: 4px;
  }

  .social-nav {
    flex-wrap: wrap;
    grid-row: 3;
    row-gap: 4px;
  }

  .brand-logo {
    font-size: 1.24rem;
    grid-row: 1;
  }

  .latest-backdrop {
    min-height: min(560px, var(--hero-view-height));
  }

  .artist-switcher {
    left: 18px;
  }

  .artist-card {
    --artist-icon-size: clamp(78px, 15vw, 104px);
    grid-template-columns: var(--artist-icon-size) minmax(142px, 1fr);
    min-height: 116px;
    min-width: clamp(286px, 58vw, 380px);
    padding: 10px 26px 10px 10px;
  }

  .artist-actions a {
    min-width: 138px;
    padding: 8px 12px;
  }

  .content-section,
  .artist-profile {
    scroll-margin-top: calc(var(--header-height) + 8px);
  }

  .content-section,
  .artist-profile-list {
    padding-block: clamp(38px, 6vw, 54px);
  }

  .profile-work-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-viewer {
    --profile-viewer-arrow-width: 34px;
    --profile-viewer-gap: 8px;
    --profile-viewer-padding: 10px;
  }

  .profile-viewer-panel {
    flex-basis: var(--profile-video-width);
    max-width: var(--profile-video-width);
  }

  .profile-viewer-arrow {
    font-size: 2rem;
  }

  .profile-viewer-close {
    height: 36px;
    width: 36px;
  }

}

@media (max-width: 560px) {
  :root {
    --header-height: 102px;
  }

  .primary-nav a {
    font-size: 0.68rem;
  }

  .social-link {
    height: 26px;
    width: 26px;
  }

  .social-group {
    gap: 4px;
  }

  .social-owner {
    height: 26px;
    width: 26px;
  }

  .latest-backdrop {
    position: relative;
    top: auto;
  }

  .artist-switcher {
    gap: clamp(6px, 1.8dvh, 12px);
    justify-items: center;
    left: 50%;
    right: auto;
    top: calc(50% + 10px);
    transform: translate(-50%, -50%);
    width: min(74vw, 220px);
  }

  .artist-card {
    --artist-icon-size: clamp(68px, 20vw, 84px);
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    min-height: 116px;
    padding: 10px 8px 7px;
    width: 100%;
  }

  .artist-card::before {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)) top left / 100% 1px no-repeat,
      linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)) top left / 1px 100% no-repeat,
      linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)) top right / 1px 100% no-repeat,
      linear-gradient(180deg, rgba(68, 72, 78, 0.62) 0%, rgba(68, 72, 78, 0.52) 68%, rgba(68, 72, 78, 0) 100%);
    border-radius: 999px 999px 0 0;
    transform: scaleY(0.58);
    transform-origin: center top;
  }

  .artist-actions {
    justify-self: auto;
    transform: translateY(-10px);
  }

  .artist-card.is-open::before {
    transform: scaleY(1);
  }

  .artist-card.is-open .artist-name {
    transform: translate(-50%, -50%);
  }

  .artist-card.is-open .artist-actions {
    transform: translateY(0);
  }

  .artist-actions a {
    font-size: 0.66rem;
    min-width: 120px;
    padding: 7px 10px;
  }

  .artist-name {
    font-size: 0.68rem;
    padding: 6px 9px;
    left: 50%;
    margin: 0;
    max-width: calc(100% - 14px);
    position: absolute;
    top: 10px;
    transform: translate(-50%, -50%);
  }

  .brand-logo {
    font-size: 0.94rem;
  }

  .content-section,
  .artist-profile-list {
    padding-block: 30px;
  }

  .content-section h1,
  .content-section h2,
  .artist-profile h2 {
    font-size: 2.1rem;
  }

  .profile-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-work-list {
    grid-template-columns: 1fr;
  }

  .profile-work-body h4 {
    font-size: 1rem;
  }

  .profile-work-tag {
    bottom: 6px;
    font-size: 0.62rem;
    padding: 6px 7px;
    right: 6px;
  }

  .profile-viewer {
    --profile-viewer-arrow-width: 32px;
    --profile-viewer-gap: 6px;
    --profile-viewer-padding: 14px;
  }

  .profile-viewer-panel {
    flex-basis: var(--profile-video-width);
    max-width: var(--profile-video-width);
  }

  .profile-viewer-arrow {
    flex-basis: var(--profile-viewer-arrow-width);
  }

}

@media (max-width: 560px) and (max-aspect-ratio: 4 / 3) {
  .profile-viewer-arrow {
    flex: 1 1 calc(50% - var(--profile-viewer-gap));
  }
}

@media (max-width: 820px) and (orientation: landscape) {
  :root {
    --header-height: 58px;
  }

  .site-header {
    align-content: center;
    grid-template-columns: minmax(140px, 1fr) auto minmax(126px, 1fr);
    grid-template-rows: 1fr;
    height: var(--header-height);
    justify-items: stretch;
    padding: 0 12px;
  }

  .primary-nav {
    flex-wrap: nowrap;
    gap: clamp(8px, 1.6vw, 14px);
    grid-row: 1;
    justify-content: flex-start;
    min-width: 0;
    row-gap: 0;
  }

  .primary-nav a {
    font-size: 0.66rem;
  }

  .brand-logo {
    font-size: clamp(0.98rem, 3vw, 1.28rem);
    grid-row: 1;
    justify-self: center;
  }

  .social-nav {
    flex-wrap: nowrap;
    gap: 6px;
    grid-row: 1;
    justify-content: flex-end;
    min-width: 0;
    row-gap: 0;
  }

  .social-group {
    gap: 3px;
  }

  .social-owner,
  .social-link {
    height: 24px;
    width: 24px;
  }

  .social-link img {
    max-height: 14px;
    max-width: 14px;
  }

  .latest-backdrop {
    position: relative;
    top: auto;
  }

  .artist-switcher {
    gap: clamp(10px, 3dvh, 18px);
    justify-items: stretch;
    left: clamp(14px, 4vw, 34px);
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
  }

  .artist-card {
    --artist-icon-size: clamp(56px, 18dvh, 78px);
    align-items: center;
    display: grid;
    gap: 0;
    grid-template-columns: var(--artist-icon-size) minmax(118px, 1fr);
    min-height: clamp(76px, 26dvh, 92px);
    min-width: clamp(230px, 38vw, 300px);
    padding: 8px 18px 8px 8px;
    width: auto;
  }

  .artist-card::before {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)) top left / 100% 1px no-repeat,
      linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)) bottom left / 100% 1px no-repeat,
      linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)) top left / 1px 100% no-repeat,
      linear-gradient(90deg, rgba(68, 72, 78, 0.62) 0%, rgba(68, 72, 78, 0.52) 54%, rgba(68, 72, 78, 0) 100%);
    border-radius: 999px 0 0 999px;
    transform: scaleX(0.58);
    transform-origin: left center;
  }

  .artist-card.is-open::before {
    transform: scaleX(1);
  }

  .artist-name {
    font-size: 0.64rem;
    left: calc(8px + var(--artist-icon-size) / 2);
    max-width: calc(var(--artist-icon-size) + 44px);
    overflow: hidden;
    padding: 5px 8px;
    text-overflow: ellipsis;
    top: calc(50% + var(--artist-icon-size) / 2);
    transform: translate(-50%, calc(-50% - 8px));
  }

  .artist-card.is-open .artist-name {
    transform: translate(-50%, -50%);
  }

  .artist-actions {
    justify-self: center;
    transform: translateX(-14px);
  }

  .artist-card.is-open .artist-actions {
    transform: translateX(0);
  }

  .artist-actions a {
    font-size: 0.62rem;
    min-width: 116px;
    padding: 6px 9px;
  }
}

@media (hover: none) and (orientation: landscape) and (max-height: 560px) {
  :root {
    --header-height: 58px;
  }

  .site-header {
    align-content: center;
    column-gap: 10px;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: 1fr;
    height: var(--header-height);
    justify-items: stretch;
    padding: 0 12px;
    row-gap: 0;
  }

  .brand-logo {
    font-size: clamp(0.92rem, 2.4vw, 1.18rem);
    grid-column: 2;
    grid-row: 1;
  }

  .primary-nav {
    flex-wrap: nowrap;
    gap: clamp(8px, 1.8vw, 14px);
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
    row-gap: 0;
  }

  .primary-nav a {
    font-size: 0.64rem;
  }

  .social-nav {
    flex-wrap: nowrap;
    gap: 6px;
    grid-column: 3;
    grid-row: 1;
    justify-content: flex-end;
    row-gap: 0;
  }

  .social-group {
    gap: 3px;
  }

  .social-owner,
  .social-link {
    height: 24px;
    width: 24px;
  }

  .social-link img {
    max-height: 14px;
    max-width: 14px;
  }

  .latest-backdrop {
    position: relative;
    top: auto;
  }

  .artist-switcher {
    gap: 8px;
    justify-items: stretch;
    left: clamp(14px, 4vw, 34px);
    top: 50%;
    transform: translateY(-50%);
    width: auto;
  }

  .artist-card {
    --artist-icon-size: clamp(58px, 11vw, 76px);
    align-items: center;
    display: grid;
    gap: 0;
    grid-template-columns: var(--artist-icon-size) minmax(110px, 1fr);
    min-height: clamp(72px, 26dvh, 92px);
    min-width: clamp(220px, 36vw, 286px);
    padding: 8px 16px 8px 8px;
    width: auto;
  }

  .artist-card::before {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)) top left / 100% 1px no-repeat,
      linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)) bottom left / 100% 1px no-repeat,
      linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)) top left / 1px 100% no-repeat,
      linear-gradient(90deg, rgba(68, 72, 78, 0.62) 0%, rgba(68, 72, 78, 0.52) 54%, rgba(68, 72, 78, 0) 100%);
    border-radius: 999px 0 0 999px;
    transform: scaleX(0.58);
    transform-origin: left center;
  }

  .artist-card.is-open::before {
    transform: scaleX(1);
  }

  .artist-actions {
    justify-self: center;
    transform: translateX(-14px);
  }

  .artist-card.is-open .artist-actions {
    transform: translateX(0);
  }

  .artist-actions a {
    font-size: 0.6rem;
    min-width: 106px;
    padding: 6px 8px;
  }

  .artist-name {
    font-size: 0.62rem;
    left: calc(8px + var(--artist-icon-size) / 2);
    max-width: calc(var(--artist-icon-size) + 40px);
    overflow: hidden;
    padding: 5px 7px;
    text-overflow: ellipsis;
    top: calc(50% + var(--artist-icon-size) / 2);
    transform: translate(-50%, calc(-50% - 8px));
  }

  .artist-card.is-open .artist-name {
    transform: translate(-50%, -50%);
  }
}
