/* Bio and Contact share one warm surface; photographs dissolve into it. */
.studio-subpage {
  --muted: #705746;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 90% 14%, #ffd08070 0%, #ffd08000 45%),
    radial-gradient(ellipse at 4% 64%, #f3b47e47 0%, #f3b47e00 43%),
    radial-gradient(ellipse at 74% 94%, #e6a4842e 0%, #e6a48400 40%),
    var(--cream);
  overflow-x: clip;
}

.studio-subpage .site-header,
.studio-subpage .site-footer,
.studio-subpage .sub-main {
  background: transparent;
  border: 0;
}

.studio-subpage .header-inner { border: 0; }
.studio-subpage .sub-main { position: relative; }
.studio-subpage .sub-hero {
  position: relative;
  isolation: isolate;
  border: 0;
  background: transparent;
}

.studio-subpage .sub-hero {
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(20px, 3vw, 56px);
  min-height: min(850px, calc(100svh - 70px));
  padding-block: clamp(28px, 5vw, 76px) clamp(58px, 7vw, 112px);
}

.studio-subpage .sub-copy {
  position: relative;
  z-index: 1;
  max-width: 51ch;
}

.studio-subpage .sub-copy .kicker {
  margin-bottom: 20px;
  color: var(--accent);
  font-size: .8125rem;
  letter-spacing: .13em;
}

.studio-subpage .sub-copy h1 {
  max-width: 10ch;
  margin-bottom: clamp(24px, 3vw, 42px);
  color: var(--ink);
  font-size: clamp(4.4rem, 7.8vw, 8.7rem);
  line-height: .94;
  letter-spacing: -.055em;
}

.studio-subpage .sub-copy h1 em { color: var(--accent); }
.studio-subpage .sub-copy > p:not(.kicker),
.studio-subpage .sub-copy div > p {
  max-width: 45ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.13vw, 1.125rem);
  line-height: 1.8;
  margin-top: 18px;
}

.studio-subpage .sub-copy .sub-link {
  margin-top: 27px;
  color: var(--accent);
  font-size: .9375rem;
  text-decoration-color: #b8714e;
  text-underline-offset: 7px;
}

.studio-subpage .sub-copy .button {
  color: var(--cream);
  background: var(--accent);
  border-color: var(--accent);
}

.studio-subpage .sub-copy .button:hover {
  background: #803a23;
  border-color: #803a23;
}

.studio-subpage .sub-photo {
  --photo-enter-y: 24px;
  --photo-exit-y: -28px;
  position: relative;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  overflow: visible;
  mix-blend-mode: multiply;
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 15%, #000 84%, transparent),
    linear-gradient(to bottom, transparent, #000 13%, #000 77%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 15%, #000 84%, transparent),
    linear-gradient(to bottom, transparent, #000 13%, #000 77%, transparent);
  mask-composite: intersect;
  mask-repeat: no-repeat;
}

.studio-subpage .sub-hero .sub-photo {
  width: 116%;
  max-height: none;
  margin-inline: -5% -11%;
  aspect-ratio: .95;
}

.studio-subpage .sub-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(.16) saturate(.88) contrast(.96);
}

.studio-subpage .sub-hero .sub-photo img { object-position: 50% 32%; }
.bio-page .sub-hero .sub-photo {
  --photo-enter-y: 32px;
  --photo-exit-y: -68px;
}
.contact-page .sub-hero .sub-photo {
  --photo-enter-y: 16px;
  --photo-exit-y: -20px;
}
.contact-page .sub-hero .sub-photo img { object-position: 50% 42%; }
.bio-recordings, .bio-experience { scroll-margin-top: 1.75rem; }
.bio-recordings { padding-block: clamp(1.5rem, 5vw, 5rem) clamp(2.75rem, 7vw, 7rem); }
.bio-recordings h2, .bio-experience h2 {
  font-size: clamp(3.25rem, 5.4vw, 6rem);
  letter-spacing: -.052em;
  line-height: .98;
}
.bio-recordings h2 em, .bio-experience h2 em { color: var(--copper); }
.bio-films {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1.75rem, 4vw, 4.5rem);
  margin-top: clamp(1.5rem, 3.6vw, 3.5rem);
}
.bio-film { display: block; }
.film-still {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 5px 5px clamp(28px, 3.5vw, 55px) 5px;
  background: var(--ink);
}
.film-still img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.bio-film:hover .film-still img { transform: scale(1.025); }
.film-play {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  position: absolute;
  right: clamp(20px, 2.4vw, 35px);
  bottom: clamp(10px, 1.4vw, 20px);
  padding: 7px 12px;
  border-radius: 2rem;
  color: #fff8ea;
  background: #271a13e8;
  font-size: .875rem;
  font-weight: 600;
}
.film-play::before { color: var(--honey); }
.film-composer { margin: 1.15rem 0 .4rem; color: var(--copper); font-weight: 650; font-size: .875rem; }
.bio-film h3, .bio-history h3 {
  font-size: clamp(1.9rem, 2.6vw, 3rem);
  letter-spacing: -.03em;
  line-height: 1.06;
}
.bio-film:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.film-credit { margin-top: .7rem; color: var(--muted); }
.bio-experience {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 7rem);
  padding-block: clamp(2rem, 5vw, 5rem) clamp(3rem, 8vw, 8rem);
}
.bio-history { max-width: 65ch; }
.bio-history section + section { margin-top: clamp(2rem, 3.6vw, 3.75rem); }
.bio-history p { margin-top: .85rem; color: var(--muted); line-height: 1.75; }
.bio-history .button { margin-top: 2rem; }
.studio-subpage .site-footer { padding-top: 18px; }
.studio-subpage .footer-inner { border: 0; }
.contact-page #delivery-note { color: var(--accent); }
.contact-page #direct-email { margin: 0 0 12px; }
.contact-page .sub-copy h1 { max-width: 12ch; }
.contact-page .sub-copy h1 em { white-space: nowrap; }

/* A small arrival motion is the fallback when view timelines are unsupported. */
@media (prefers-reduced-motion: no-preference) {
  .studio-subpage .sub-hero .sub-copy {
    animation: studio-copy-arrive .85s cubic-bezier(.2, .6, .3, 1) both;
  }

  @keyframes studio-copy-arrive {
    from { opacity: .78; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @supports (animation-timeline: view()) and (animation-range: cover 0% cover 100%) {
    .studio-subpage .sub-photo {
      animation: studio-photo-flow 1s linear both;
      animation-timeline: view(block);
      animation-range: cover 0% cover 100%;
    }

    .bio-films article, .bio-history section {
      animation: studio-copy-flow 1s linear both;
      animation-timeline: view(block);
      animation-range: entry 0% entry 90%;
    }

    @keyframes studio-photo-flow {
      /* Only the photographs move. The shared canvas never fades in bands. */
      from { transform: translate3d(0, var(--photo-enter-y), 0); }
      to { transform: translate3d(0, var(--photo-exit-y), 0); }
    }

    @keyframes studio-copy-flow {
      from { opacity: .78; transform: translateY(14px); }
      to { opacity: 1; transform: translateY(0); }
    }
  }
}

@media (max-width: 1000px) and (min-width: 741px) {
  .studio-subpage .sub-hero { min-height: 650px; }
  .studio-subpage .sub-copy h1 { font-size: 7.7vw; }
  .studio-subpage .sub-hero .sub-photo { aspect-ratio: .78; }
}

@media (max-width: 740px) {
  .studio-subpage {
    background:
      radial-gradient(ellipse at 95% 28%, #ffd0806b 0%, #ffd08000 43%),
      radial-gradient(ellipse at 4% 77%, #f3b47e3d 0%, #f3b47e00 44%),
      var(--cream);
  }

  .studio-subpage .sub-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 0;
    padding-block: 44px 18px;
  }

  .studio-subpage .sub-copy { max-width: 55ch; }
  .studio-subpage .sub-copy h1 {
    font-size: clamp(3.9rem, 12.5vw, 6rem);
    max-width: 12ch;
    margin-bottom: 26px;
  }

  .studio-subpage .sub-copy .kicker { margin-bottom: 17px; }
  .studio-subpage .sub-copy > p:not(.kicker),
  .studio-subpage .sub-copy div > p { font-size: 1rem; line-height: 1.75; }
  .studio-subpage .sub-copy .sub-link { margin-top: 22px; }
  .studio-subpage .sub-hero .sub-photo {
    --photo-enter-y: 16px;
    --photo-exit-y: -22px;
    width: calc(100% + 2 * var(--gutter));
    margin: 15px calc(-1 * var(--gutter)) 0;
    max-height: 620px;
    aspect-ratio: 1.02;
  }

  .bio-films, .bio-experience { grid-template-columns: minmax(0, 1fr); }
  .bio-films { gap: 2.5rem; }
  .bio-experience { gap: 1.8rem; }
  .bio-experience h2 br { display: none; }
  .studio-subpage .site-footer { padding-top: 0; }
  .contact-page .sub-hero .sub-photo { aspect-ratio: .98; }
}

@media (prefers-reduced-motion: reduce) {
  .studio-subpage .sub-photo,
  .studio-subpage .sub-copy {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
