/* Studio page layout. Type, surfaces, media and actions come from the shared system in styles.css. */
.studio-hero { position: relative; isolation: isolate; min-height: 620px; overflow: hidden; }
.studio-hero-media { position: absolute; inset: 0; z-index: -1; }
.studio-hero-media > img { object-position: left center; }
.studio-hero-copy { width: min(100%, calc(var(--gutter) + 620px)); padding: clamp(80px, 8vw, 114px) 55px 70px var(--gutter); }
.studio-hero-copy > p { max-width: 36ch; margin: 30px 0 28px; }
.studio-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 30px; }
.studio-approach-jump { gap: 10px; }
.studio-approach-jump .icon { width: 20px; height: 20px; transform: rotate(90deg); }

.studio-space-heading { max-width: 660px; margin-bottom: 44px; }
.studio-space-heading h2 { margin-bottom: 18px; }
.studio-space-heading p { margin: 0; }
.studio-room-gallery { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-rows: 310px 310px; gap: 28px; }
.studio-room-photo { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; margin: 0; min-width: 0; }
.studio-room-photo--main { grid-row: span 2; }
.studio-room-image { min-height: 0; }
.studio-room-photo--main img { object-position: 48% center; }
.studio-room-photo figcaption { font-size: 16px; line-height: 1.5; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .studio-room-image img { transition: transform 500ms ease; }
  .studio-room-photo:hover img { transform: scale(1.025); }
}

.studio-philosophy { display: grid; grid-template-columns: minmax(0, .46fr) minmax(0, .54fr); gap: clamp(54px, 5.6vw, 80px); align-items: center; }
.studio-philosophy-media { position: relative; height: 610px; min-width: 0; }
.studio-consultation-photo { position: absolute; top: 0; left: 28px; right: 0; bottom: 36px; }
.studio-consultation-photo > img { object-position: 51% center; }
.studio-hair-detail { position: absolute; left: 0; bottom: 0; width: 39%; aspect-ratio: 1; border-left: 0; border-bottom: 0; }
.studio-philosophy h2 { margin-bottom: 30px; }
.studio-philosophy-copy p { max-width: 44ch; margin: 0 0 24px; }
.studio-philosophy .text-action { margin-top: 8px; }

.studio-room-details { display: grid; grid-template-columns: minmax(0, .43fr) minmax(0, .57fr); align-items: center; gap: clamp(50px, 5.6vw, 80px); }
.studio-details-copy h2 { margin-bottom: 28px; }
.studio-details-copy p { max-width: 34ch; margin: 0 0 30px; }
.studio-details-photo { height: 520px; }
.studio-details-photo > img { object-position: 48% center; }

@media (max-width: 1100px) {
  .studio-room-gallery { grid-template-rows: 270px 270px; gap: 22px; }
  .studio-details-photo { height: 470px; }
  .studio-philosophy-media { height: 560px; }
}
@media (max-width: 900px) {
  .studio-room-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; gap: 30px 22px; }
  .studio-room-photo--main { grid-column: 1 / -1; grid-row: auto; }
  .studio-room-photo { grid-template-rows: auto auto; }
  .studio-room-image { aspect-ratio: 3 / 2; }
  .studio-room-details { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .studio-details-copy p { max-width: 44ch; }
  .studio-details-photo { height: auto; aspect-ratio: 3 / 2; }
  .studio-philosophy { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .studio-philosophy-media { order: 1; height: min(77vw, 600px); }
  .studio-consultation-photo { left: 26px; bottom: 34px; }
  .studio-hair-detail { width: 34%; }
  .studio-philosophy-copy p { max-width: 52ch; }
}
@media (max-width: 820px) {
  .studio-hero { display: flex; flex-direction: column; min-height: 0; }
  .studio-hero-copy { width: 100%; padding: 60px var(--gutter); }
  .studio-hero-copy > p { max-width: 40ch; margin: 26px 0 28px; }
  .studio-hero-media { position: relative; inset: auto; z-index: 0; height: 320px; }
  .studio-hero-media > img { object-position: right center; }
}
@media (max-width: 620px) {
  .studio-space-heading { margin-bottom: 30px; }
  .studio-room-gallery { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .studio-room-photo--main { grid-column: auto; }
  .studio-room-photo { gap: 10px; }
  .studio-room-photo figcaption { font-size: 15px; }
  .studio-room-details { gap: 32px; }
  .studio-details-copy h2 { margin-bottom: 24px; }
  .studio-details-copy p { margin-bottom: 26px; }
  .studio-hero-copy { padding: 46px var(--gutter) 48px; }
  .studio-hero-copy > p { margin: 24px 0 26px; }
  .studio-hero-actions { gap: 10px 24px; }
  .studio-hero-media { height: 260px; }
  .studio-philosophy { gap: 36px; }
  .studio-philosophy h2 { margin-bottom: 26px; }
  .studio-philosophy-copy p { margin-bottom: 22px; }
  .studio-philosophy-media { height: clamp(300px, 95vw, 400px); }
  .studio-consultation-photo { left: 18px; bottom: 24px; }
  .studio-hair-detail { width: 39%; }
}
