/* PICVIN - Artist page */

.artist-page {
  position: relative;
  color: var(--color-paper);
  background: var(--color-ink);
}

.artist-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -- Opening -- */
.artist-open {
  padding-top: calc(var(--header-h, 4.5rem) + clamp(1.5rem, 4vw, 2.5rem));
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  overflow: visible;
}

.artist-open__drawing {
  position: absolute;
  right: -8%;
  top: 12%;
  width: min(42vw, 420px);
  color: rgba(245, 245, 242, 0.5);
  pointer-events: none;
  z-index: 0;
}

.artist-open__title-wrap {
  position: relative;
  z-index: 2;
  overflow: visible;
  max-width: 100%;
}

.artist-open__title {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  line-height: 0.88;
  letter-spacing: -0.04em;
  font-size: clamp(3.25rem, 14vw, 11rem);
  font-weight: 400;
  color: var(--color-paper);
  overflow: visible;
  word-break: break-word;
}

.artist-open__name {
  display: block;
  max-width: 100%;
}

.artist-open__name--outline {
  color: rgba(242, 240, 235, 0.28);
  -webkit-text-stroke: 1px rgba(242, 240, 235, 0.88);
  paint-order: stroke fill;
}

.artist-open__name--solid {
  color: var(--color-paper);
  margin-top: -0.06em;
}

.artist-open__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin: clamp(1.25rem, 3vw, 2rem) 0 0;
  padding: 0;
  list-style: none;
}

.artist-open__meta li {
  margin: 0;
}

.artist-open__media {
  position: relative;
  z-index: 1;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 768px) {
  .artist-open__media {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 0.45fr);
    gap: 1.5rem 2rem;
    align-items: end;
  }
}

.artist-open__portrait {
  position: relative;
  width: 100%;
  max-width: 36rem;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-graphite);
  z-index: 3;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4);
}

.artist-open__portrait img,
.artist-open__portrait-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
}

.artist-open__portrait-fallback {
  position: relative;
  background: linear-gradient(160deg, #1f1f1f, #0a0a0a 60%, #2a2a2a);
  min-height: 100%;
}

.artist-open__secondary {
  margin: 0;
  width: min(100%, 18rem);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--color-graphite);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  justify-self: start;
}

@media (min-width: 768px) {
  .artist-open__secondary {
    width: 100%;
    max-width: 20rem;
    margin-bottom: 12%;
    justify-self: end;
    transform: translateX(-8%);
  }
}

.artist-open__secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.2);
}

.artist-open__tagline {
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  max-width: 18ch;
  margin: 0;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .artist-open__tagline {
    grid-column: 2;
    align-self: start;
    padding-top: 0.5rem;
  }
}

/* -- Story -- */
.artist-story {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.artist-story__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .artist-story__grid {
    grid-template-columns: minmax(7rem, 0.18fr) minmax(0, 0.82fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }

  .artist-story__grid--with-media {
    grid-template-columns: minmax(7rem, 0.18fr) minmax(0, 0.52fr) minmax(0, 0.3fr);
  }

  .artist-story__sticky {
    position: sticky;
    top: calc(var(--header-h, 4.5rem) + 2rem);
  }

  .artist-story__side-img {
    position: sticky;
    top: calc(var(--header-h, 4.5rem) + 2.5rem);
  }
}

.artist-story__side-img {
  margin: 0;
  border: 1px solid var(--color-line);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--color-graphite);
}

.artist-story__side-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  display: block;
}

.artist-story__p {
  margin-bottom: 1.5rem;
  max-width: 38rem;
  line-height: 1.75;
}

.artist-story__p > p {
  margin: 0 0 1.5rem;
}

.artist-story__p > p:last-child {
  margin-bottom: 0;
}

.artist-story__p--drop::first-letter,
.artist-story__p--drop > p:first-child::first-letter {
  float: left;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 4.5rem;
  line-height: 0.8;
  padding-right: 0.5rem;
  padding-top: 0.3rem;
  color: var(--color-paper);
  font-style: italic;
}

.artist-story__pull {
  margin: 2rem 0 2.25rem;
  max-width: 22ch;
  line-height: 1.2;
  border-left: 1px solid var(--color-line);
  padding-left: 1.35rem;
}

/* -- Statement (paper inverted) -- */
.artist-statement {
  background: var(--color-paper);
  color: var(--color-ink);
  padding-block: clamp(5rem, 10vw, 8rem);
}

.artist-statement__inner {
  color: var(--color-ink);
}

.artist-statement__label {
  color: rgba(10, 10, 10, 0.45);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.artist-statement__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .artist-statement__layout {
    grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr);
    gap: clamp(2.5rem, 5vw, 4rem);
  }

  .artist-statement__layout:not(:has(.artist-statement__frame)) {
    grid-template-columns: 1fr;
    max-width: 48rem;
    margin-inline: auto;
  }
}

.artist-statement__frame {
  margin: 0 auto;
  border: 1px solid rgba(10, 10, 10, 0.14);
  padding: 0.55rem;
  background: #fff;
  box-shadow: 0 18px 40px rgba(10, 10, 10, 0.08);
  max-width: 16rem;
}

@media (min-width: 900px) {
  .artist-statement__frame {
    max-width: none;
    margin-inline: 0;
  }
}

.artist-statement__frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.artist-statement__main {
  text-align: center;
}

@media (min-width: 900px) {
  .artist-statement__main {
    text-align: left;
  }

  .artist-statement__layout:not(:has(.artist-statement__frame)) .artist-statement__main {
    text-align: center;
  }
}

.artist-statement__quote {
  color: var(--color-ink);
  font-size: clamp(1.75rem, 4.2vw, 3.25rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: none;
  font-weight: 400;
}

.artist-statement__divider {
  width: min(8rem, 40%);
  height: 1px;
  margin: clamp(1.75rem, 3vw, 2.5rem) auto;
  background: rgba(10, 10, 10, 0.22);
}

@media (min-width: 900px) {
  .artist-statement__layout:has(.artist-statement__frame) .artist-statement__divider {
    margin-left: 0;
  }
}

.artist-statement__sig {
  margin-top: 0.5rem;
  width: auto;
  opacity: 0.85;
  filter: none;
}

.artist-statement__sig img {
  max-width: 11rem;
  margin-inline: auto;
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 900px) {
  .artist-statement__layout:has(.artist-statement__frame) .artist-statement__sig img {
    margin-inline: 0;
  }
}

/* -- Process / studio scroller -- */
.artist-process {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}

.artist-process__drawing {
  position: absolute;
  left: -6%;
  bottom: 8%;
  width: min(36vw, 340px);
  color: rgba(245, 245, 242, 0.45);
  pointer-events: none;
}

.artist-process__scroller {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 245, 242, 0.25) transparent;
  padding-bottom: 1rem;
}

.artist-process__track {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding-inline: max(1.25rem, calc((100vw - 72rem) / 2 + 1.25rem));
  width: max-content;
}

.artist-process__shot {
  flex: 0 0 auto;
  width: min(72vw, 520px);
  scroll-snap-align: start;
}

.artist-process__shot:nth-child(even) {
  margin-top: 2.5rem;
}

.artist-process__shot--video {
  width: min(78vw, 640px);
}

.artist-process__frame,
.artist-process__video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-graphite);
  border: 1px solid var(--color-line);
  padding: 0;
  cursor: none;
}

.artist-process__shot--video .artist-process__video {
  aspect-ratio: 16 / 9;
  width: 100%;
  color: inherit;
}

.artist-process__frame img,
.artist-process__video img,
.artist-process__video-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.15);
  transition: transform 1.2s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

.artist-process__video-fallback {
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
}

.artist-process__shot:hover .artist-process__frame img,
.artist-process__video:hover img {
  transform: scale(1.04);
}

.artist-process__cap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
}

.artist-process__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.artist-process__play-ring {
  width: 5rem;
  height: 5rem;
  border: 1px solid rgba(245, 245, 242, 0.65);
  border-radius: 999px;
  position: absolute;
  transition: transform 0.6s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

.artist-process__play-tri {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent var(--color-paper);
  margin-left: 3px;
  position: relative;
  z-index: 1;
}

.artist-process__video:hover .artist-process__play-ring {
  transform: scale(1.08);
}

html.is-touch .artist-process__frame,
html.is-touch .artist-process__video {
  cursor: pointer;
}

/* -- Lightbox -- */
.artist-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.artist-lightbox[hidden] {
  display: none;
}

.artist-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.88);
  cursor: pointer;
}

.artist-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  background: #000;
  border: 1px solid var(--color-line);
}

.artist-lightbox__close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  color: var(--color-paper);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem 0;
}

.artist-lightbox__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.artist-lightbox__frame iframe,
.artist-lightbox__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.artist-lightbox__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ash);
  padding: 2rem;
  text-align: center;
}

/* -- Timeline -- */
.artist-timeline {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.artist-timeline__list {
  position: relative;
  padding-left: 0;
}

.artist-timeline__rail {
  display: none;
}

@media (min-width: 768px) {
  .artist-timeline__rail {
    display: block;
    position: absolute;
    left: calc(8.5rem + 1.15rem);
    top: 0.6rem;
    bottom: 0.6rem;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
  }

  .artist-timeline__rail-fill {
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 0%;
    background: var(--color-paper);
    transform-origin: top;
  }
}

.artist-timeline__entry {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--color-line);
  opacity: 0.55;
  transition: opacity 0.55s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

.artist-timeline__entry.is-active,
html.reduced-motion .artist-timeline__entry,
html:not(.js) .artist-timeline__entry,
html:not(.fx-ready) .artist-timeline__entry {
  opacity: 1;
}

@media (min-width: 768px) {
  .artist-timeline__entry {
    grid-template-columns: 8.5rem 2.5rem minmax(0, 1fr);
    gap: 0;
    align-items: start;
    border-top: 0;
    padding: 2.25rem 0;
  }
}

.artist-timeline__year {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-paper);
  margin: 0;
}

.artist-timeline__dot {
  display: none;
}

@media (min-width: 768px) {
  .artist-timeline__dot {
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 1px solid rgba(245, 245, 242, 0.55);
    background: transparent;
    margin-top: 1.15rem;
    margin-left: 0.85rem;
    transition: background 0.4s ease, border-color 0.4s ease;
  }

  .artist-timeline__entry.is-active .artist-timeline__dot {
    background: var(--color-paper);
    border-color: var(--color-paper);
  }
}

.artist-timeline__content {
  max-width: 36rem;
  padding-top: 0.35rem;
}

/* -- Press -- */
.artist-press {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.artist-press__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-line);
}

.artist-press__item {
  border-bottom: 1px solid var(--color-line);
}

.artist-press__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  color: inherit;
  text-decoration: none;
  transition: padding 0.45s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

@media (min-width: 768px) {
  .artist-press__row {
    grid-template-columns: minmax(10rem, 0.28fr) minmax(0, 1fr) auto;
    padding: 1.85rem 0;
  }
}

.artist-press__title {
  font-size: clamp(1.35rem, 2.8vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  transition: transform 0.5s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

.artist-press__arrow {
  color: var(--color-ash);
  transition: transform 0.5s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)), color 0.35s ease;
  justify-self: end;
}

.artist-press__item:hover .artist-press__title,
.artist-press__item:focus-within .artist-press__title {
  transform: translateX(0.4rem);
}

.artist-press__item:hover .artist-press__arrow,
.artist-press__item:focus-within .artist-press__arrow {
  transform: translateX(0.5rem);
  color: var(--color-paper);
}

.artist-press__float {
  position: fixed;
  top: 0;
  left: 0;
  width: min(280px, 42vw);
  aspect-ratio: 3 / 2;
  pointer-events: none;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--color-graphite);
  transform: translate(-40%, -50%) rotate(-4deg);
  transition: opacity 0.35s ease, visibility 0.35s ease;
  will-change: transform, left, top;
}

.artist-press__float.is-visible {
  opacity: 1;
  visibility: visible;
}

.artist-press__float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

html.is-touch .artist-press__float,
html.reduced-motion .artist-press__float {
  display: none;
}

/* -- Closing CTA -- */
.artist-close {
  padding-block: clamp(4rem, 10vw, 7rem);
  overflow: hidden;
}

.artist-close__drawing {
  position: absolute;
  right: 8%;
  top: 18%;
  width: min(28vw, 280px);
  color: rgba(245, 245, 242, 0.4);
  pointer-events: none;
}

.artist-close__headline {
  margin: 0;
  line-height: 0.95;
}

.artist-close__link {
  display: inline-block;
  font-size: clamp(2.5rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--color-paper);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 0.8s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

.artist-close__link:hover,
.artist-close__link:focus-visible {
  background-size: 100% 1px;
}

.artist-close__lede {
  max-width: 28rem;
  margin-inline: auto;
}

.artist-close__orb {
  width: 7rem;
  height: 7rem;
  font-size: 0.62rem;
}

/* -- Reduced motion / no-JS -- */
html.reduced-motion .artist-open__portrait img,
html.reduced-motion .artist-process__frame img,
html.reduced-motion .artist-process__video img {
  transform: none !important;
  transition: none !important;
}

html:not(.js) .artist-timeline__entry {
  opacity: 1;
}

@media (max-width: 767px) {
  .artist-open__title {
    font-size: clamp(3rem, 15vw, 4.75rem);
  }

  .artist-process__shot:nth-child(even) {
    margin-top: 0;
  }

  .artist-press__meta {
    grid-column: 1 / -1;
  }

  .artist-open__secondary {
    max-width: 14rem;
  }
}
