.artist-page {
  min-height: 100%;
  background: var(--color-background);
}

.artist-site {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  color: var(--theme-page-text);
}

.artist-header,
.artist-main,
.artist-footer {
  position: relative;
  z-index: 1;
  width: min(calc(100% - clamp(2rem, 8vw, 7rem)), 88rem);
  margin-inline: auto;
}

.artist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(5.5rem, 11vw, 8rem);
  padding-right: clamp(9rem, 19vw, 13rem);
  gap: 2rem;
}

.artist-home-page .artist-header {
  z-index: 2;
}

.artist-mark {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: clamp(3.25rem, 5vw, 4.75rem);
  aspect-ratio: 1;
  color: inherit;
  text-decoration: none;
  transition: opacity 180ms ease, transform 220ms ease;
}

.artist-mark img,
.artist-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

html[data-theme="light"] .artist-mark img,
html[data-theme="light"] .artist-mark svg {
  filter: brightness(0);
}

.artist-mark:hover {
  opacity: 0.72;
  transform: rotate(-2deg) scale(1.025);
}

.artist-mark:focus-visible,
.artist-navigation a:focus-visible,
.artist-footer a:focus-visible {
  border-radius: 0.2rem;
  outline: 2px solid var(--theme-focus);
  outline-offset: 0.3rem;
  opacity: 1;
}

.artist-mark svg {
  position: absolute;
  top: 0;
  left: 0;
  overflow: visible;
  width: 200%;
  height: auto;
  aspect-ratio: 1;
  transform: scale(0.5);
  transform-origin: top left;
}

.js .artist-home-page.artist-intro-active .artist-header::before,
.js .artist-home-page.artist-intro-settling .artist-header::before {
  flex: 0 0 var(--artist-logo-final-width, clamp(3.25rem, 5vw, 4.75rem));
  width: var(--artist-logo-final-width, clamp(3.25rem, 5vw, 4.75rem));
  aspect-ratio: 1;
  content: "";
}

.js .artist-home-page.artist-intro-active .artist-mark {
  position: fixed;
  z-index: 3;
  top: var(--artist-intro-top, 0px);
  left: var(--artist-intro-left, 0px);
  width: var(--artist-intro-size, clamp(3.25rem, 5vw, 4.75rem));
  height: var(--artist-intro-size, clamp(3.25rem, 5vw, 4.75rem));
  transform: none;
  transition: none;
}

.js .artist-home-page.artist-intro-active .artist-navigation,
.js .artist-home-page.artist-intro-active .artist-landing-main,
.js .artist-home-page.artist-intro-active .artist-footer {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.js .artist-home-page.artist-intro-settling .artist-mark {
  top: var(--artist-logo-final-top, 0px);
  left: var(--artist-logo-final-left, 0px);
  width: var(--artist-logo-final-width, clamp(3.25rem, 5vw, 4.75rem));
  height: var(--artist-logo-final-height, clamp(3.25rem, 5vw, 4.75rem));
  transform: none;
  transition:
    top var(--artist-logo-move-duration, 1100ms)
      var(--artist-logo-move-easing, cubic-bezier(0.4, 0, 0.2, 1)),
    left var(--artist-logo-move-duration, 1100ms)
      var(--artist-logo-move-easing, cubic-bezier(0.4, 0, 0.2, 1)),
    width var(--artist-logo-move-duration, 1100ms)
      var(--artist-logo-move-easing, cubic-bezier(0.4, 0, 0.2, 1)),
    height var(--artist-logo-move-duration, 1100ms)
      var(--artist-logo-move-easing, cubic-bezier(0.4, 0, 0.2, 1));
}

.js .artist-home-page.artist-intro-settling .artist-navigation,
.js .artist-home-page.artist-intro-settling .artist-landing-main,
.js .artist-home-page.artist-intro-settling .artist-footer {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition:
    visibility 0s linear var(--artist-content-delay, 240ms),
    opacity var(--artist-content-fade-duration, 650ms) ease
      var(--artist-content-delay, 240ms);
}

.artist-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem, 2.5vw, 2.5rem);
}

.artist-navigation a {
  color: inherit;
  font-size: clamp(0.68rem, 1vw, 0.82rem);
  font-weight: 680;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 180ms ease, transform 180ms ease;
}

.artist-navigation a:hover,
.artist-navigation a[aria-current="page"] {
  opacity: 0.58;
}

.artist-main {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.artist-landing-main {
  justify-content: center;
  padding-block: clamp(1rem, 4vh, 3.5rem);
}

.artist-landing-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 0.9fr) minmax(17rem, 0.72fr);
  align-items: center;
  gap: clamp(3rem, 9vw, 9rem);
}

.artist-record-copy {
  max-width: 46rem;
}

.artist-eyebrow {
  margin: 0 0 clamp(1rem, 2.5vw, 1.8rem);
  color: var(--theme-page-text-muted);
  font-size: clamp(0.68rem, 1vw, 0.82rem);
  font-weight: 720;
  letter-spacing: 0.19em;
  line-height: 1.3;
  text-transform: uppercase;
}

.artist-statement {
  max-width: none;
  margin: 0;
  color: inherit;
  font-size: clamp(1.68rem, 3.6vw, 4rem);
  font-weight: 620;
  line-height: 1.02;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.artist-artwork {
  position: relative;
  width: min(100%, 34rem);
  justify-self: center;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--theme-page-text) 18%, transparent);
  border-radius: 0.35rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 28%, rgba(148, 212, 207, 0.42), transparent 28%),
    radial-gradient(circle at 27% 73%, rgba(111, 80, 151, 0.6), transparent 33%),
    linear-gradient(145deg, #11132c 0%, #202b4d 48%, #141124 100%);
  box-shadow: 0 1.8rem 5rem rgba(0, 0, 0, 0.28);
  isolation: isolate;
}

html[data-theme="light"] .artist-artwork {
  background:
    radial-gradient(circle at 68% 28%, rgba(130, 179, 176, 0.52), transparent 28%),
    radial-gradient(circle at 27% 73%, rgba(148, 115, 158, 0.48), transparent 33%),
    linear-gradient(145deg, #d7d1cf 0%, #b9bac1 48%, #978e96 100%);
  box-shadow: 0 1.8rem 5rem rgba(56, 42, 42, 0.18);
}

.artist-artwork::before {
  position: absolute;
  z-index: -1;
  inset: -12%;
  background: url("../images/textures/analog-grain.png") repeat;
  background-size: 15rem 15rem;
  content: "";
  opacity: 0.36;
  transform: rotate(4deg);
}

.artist-artwork-fragment {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(1.1rem);
}

.artist-artwork-fragment:nth-child(1) {
  top: 13%;
  left: 10%;
  width: 49%;
  height: 31%;
  clip-path: polygon(0 0, 92% 0, 100% 24%, 88% 100%, 0 89%);
  transform: rotate(-3deg);
}

.artist-artwork-fragment:nth-child(2) {
  top: 30%;
  right: 7%;
  width: 52%;
  height: 44%;
  clip-path: polygon(9% 4%, 100% 0, 94% 87%, 57% 100%, 0 84%);
  background: rgba(241, 185, 154, 0.13);
  transform: rotate(2deg);
}

.artist-artwork-fragment:nth-child(3) {
  bottom: 9%;
  left: 12%;
  width: 43%;
  height: 38%;
  clip-path: polygon(5% 0, 100% 13%, 88% 100%, 0 91%);
  background: rgba(149, 110, 183, 0.17);
  transform: rotate(1deg);
}

.artist-artwork-mark {
  position: absolute;
  right: 9%;
  bottom: 7%;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(0.58rem, 1vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.artist-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: calc(100% - clamp(2rem, 8vw, 7rem));
  max-width: none;
  min-height: clamp(4.5rem, 8vw, 6rem);
  gap: 0.65rem;
  color: var(--theme-page-text-muted);
  font-size: 0.66rem;
  font-weight: 680;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.artist-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.artist-footer a:hover {
  color: var(--theme-page-text);
}

.artist-footer-portfolio {
  opacity: 0.28;
}

.artist-footer-portfolio:hover {
  opacity: 0.72;
}

.artist-content-main {
  padding-block: clamp(3rem, 8vw, 8rem) clamp(6rem, 11vw, 10rem);
}

.artist-intro {
  display: grid;
  grid-template-columns: minmax(12rem, 0.62fr) minmax(18rem, 1fr);
  align-items: start;
  gap: clamp(2.5rem, 8vw, 9rem);
}

.artist-page-title {
  max-width: none;
  margin: 0;
  color: inherit;
  font-size: clamp(3.2rem, 8.8vw, 8rem);
  font-weight: 720;
  line-height: 0.82;
  letter-spacing: -0.08em;
}

.artist-intro-copy {
  max-width: 48rem;
  padding-top: clamp(0.25rem, 2vw, 1.5rem);
}

.artist-intro-copy,
.artist-portrait-statement {
  color: var(--theme-page-text);
  font-size: clamp(1.2rem, 2.25vw, 2rem);
  line-height: 1.42;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

.artist-rich-text > :first-child {
  margin-top: 0;
}

.artist-rich-text > :last-child {
  margin-bottom: 0;
}

.artist-rich-text p,
.artist-rich-text ul,
.artist-rich-text ol {
  margin-block: 0 0.85em;
}

.artist-rich-text ul,
.artist-rich-text ol {
  padding-left: 1.25em;
}

.artist-rich-text h2,
.artist-rich-text h3,
.artist-rich-text h4,
.artist-rich-text h5,
.artist-rich-text h6 {
  margin-block: 1.1em 0.45em;
  color: inherit;
  line-height: 1.15;
}

.artist-rich-text a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

.artist-fragment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(5rem, 12vw, 11rem);
  gap: clamp(1rem, 2.5vw, 2rem);
}

.artist-fragment-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 58rem;
  margin-inline: auto;
}

.artist-fragment-card {
  min-height: clamp(12rem, 22vw, 20rem);
  border: 1px solid color-mix(in srgb, var(--theme-page-text) 17%, transparent);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: color-mix(in srgb, var(--theme-page-text) 4%, transparent);
  clip-path: polygon(0 0, 92% 0, 100% 12%, 96% 100%, 7% 96%, 0 84%);
}

.artist-fragment-card:nth-child(even) {
  clip-path: polygon(7% 3%, 100% 0, 96% 86%, 88% 100%, 0 95%, 3% 11%);
  transform: translateY(clamp(1.5rem, 4vw, 3.5rem));
}

.artist-fragment-card-muted {
  opacity: 0.5;
}

.artist-fragment-card > p {
  margin: 0 0 0.65rem;
  color: var(--theme-page-text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.artist-fragment-card > h2 {
  max-width: none;
  margin: 0;
  color: inherit;
  font-size: clamp(1.4rem, 2.8vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.artist-fragment-card-detail {
  display: block;
  margin-top: 0.75rem;
  color: var(--theme-page-text-muted);
}

.artist-portrait-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 0.75fr) minmax(18rem, 1fr);
  align-items: center;
  gap: clamp(3rem, 10vw, 10rem);
}

.artist-portrait-identity {
  position: relative;
  min-height: clamp(20rem, 46vw, 37rem);
  padding: clamp(2rem, 5vw, 4rem);
}

.artist-portrait-identity::before {
  position: absolute;
  inset: 5% 0 0 4%;
  border: 1px solid color-mix(in srgb, var(--theme-page-text) 16%, transparent);
  background: color-mix(in srgb, var(--theme-page-text) 4%, transparent);
  clip-path: polygon(0 4%, 93% 0, 100% 88%, 78% 100%, 4% 94%);
  content: "";
}

.artist-portrait-identity > * {
  position: relative;
  z-index: 1;
}

.artist-portrait-identity h1 {
  max-width: none;
  margin: 0;
  color: inherit;
  font-size: clamp(4.5rem, 10vw, 9rem);
  line-height: 0.83;
  letter-spacing: -0.085em;
}

.artist-location {
  margin: clamp(1.5rem, 4vw, 3rem) 0 0;
  color: var(--theme-page-text-muted);
  font-size: 0.8rem;
  font-weight: 680;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.artist-contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 58rem;
  margin-inline: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .artist-artwork-fragment {
    animation: artist-fragment-breathe 9s ease-in-out infinite alternate;
  }

  .artist-artwork-fragment:nth-child(2) {
    animation-delay: -3s;
  }

  .artist-artwork-fragment:nth-child(3) {
    animation-delay: -6s;
  }

  @keyframes artist-fragment-breathe {
    from { translate: 0 0; }
    to { translate: 0 -0.45rem; }
  }
}

@media (max-width: 900px) {
  .artist-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 1.25rem;
    padding-right: 9rem;
  }

  .artist-navigation {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .artist-landing-layout,
  .artist-intro,
  .artist-portrait-layout {
    grid-template-columns: 1fr;
  }

  .artist-landing-layout {
    gap: clamp(2.5rem, 8vw, 5rem);
  }

  .artist-artwork {
    width: min(74vw, 30rem);
  }

  .artist-fragment-grid {
    grid-template-columns: 1fr;
  }

  .artist-fragment-card:nth-child(even) {
    transform: none;
  }

  .artist-contact-grid {
    margin-left: 0;
  }

  .artist-portrait-identity {
    min-height: 22rem;
  }
}

@media (max-width: 620px) {
  .artist-header,
  .artist-main,
  .artist-footer {
    width: min(calc(100% - 2rem), 88rem);
  }

  .artist-header {
    padding-right: 0;
    padding-top: 5rem;
  }

  .artist-navigation {
    gap: 0.75rem;
  }

  .artist-statement {
    font-size: clamp(1.6rem, 8vw, 2.6rem);
  }

  .artist-page-title {
    font-size: clamp(3rem, 16vw, 5.2rem);
  }

  .artist-artwork {
    width: min(88vw, 28rem);
  }

  .artist-footer {
    flex-wrap: wrap;
    justify-content: flex-end;
    padding-block: 1.5rem 4rem;
  }

  .artist-contact-grid {
    grid-template-columns: 1fr;
  }
}
