h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

.button:active,
.mobile-sticky-cta:active {
  transform: scale(0.96);
}

.studio-location {
  --philosophy: #9189aa;
  --philosophy-dark: #625a80;
  --philosophy-soft: #f2f0f7;
  background: #f8f6fa;
  color: var(--text);
}

.studio-heading {
  align-items: end;
}

.studio-heading em {
  color: var(--philosophy-dark);
}

.studio-location-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(32px, 5vw, 72px);
  margin-top: 42px;
  padding: clamp(22px, 3vw, 38px);
  overflow: hidden;
  background: var(--philosophy);
  border: 1px solid #625a8038;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px #4d45671c;
}

.studio-poster {
  overflow: hidden;
  border: 1px solid #ffffff63;
  border-radius: 20px;
  box-shadow: 0 18px 36px #3f385f33;
}

.studio-poster img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 620px;
  object-fit: cover;
}

.studio-details {
  align-self: center;
  min-width: 0;
  color: #fff;
}

.studio-kicker {
  margin-bottom: 12px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.studio-name {
  display: block;
  font-family: Georgia, serif;
  font-size: clamp(3rem, 7vw, 6.2rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.studio-details address {
  display: flex;
  flex-direction: column;
  margin: 30px 0 28px;
  padding: 2px 0 2px 20px;
  border-left: 3px solid #fff;
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  font-style: normal;
  font-weight: 720;
  line-height: 1.55;
}

.studio-route-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.studio-route-notes li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 110px;
  padding: 18px;
  background: #ffffff1f;
  border: 1px solid #ffffff3d;
  border-radius: 16px;
}

.studio-route-notes strong {
  font-size: 0.88rem;
}

.studio-route-notes span {
  color: #f4f1f7;
  font-size: 0.76rem;
  line-height: 1.45;
}

.studio-contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.studio-contact-actions .button-primary {
  color: var(--philosophy-dark);
  background: #fff;
  box-shadow: none;
}

.studio-contact-actions .button-primary:hover {
  background: var(--philosophy-soft);
}

.studio-contact-actions .button-secondary {
  color: #fff;
  background: #ffffff14;
  border-color: #ffffff80;
}

.studio-contact-actions .button-secondary:hover {
  background: #ffffff26;
  border-color: #fff;
}

.studio-map-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 4px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #ffffff80;
  text-underline-offset: 4px;
}

.studio-gallery {
  display: grid;
  grid-template-columns: 1.08fr 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.studio-gallery figure {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #ddd7e7;
  border: 1px solid #625a802b;
  border-radius: 18px;
}

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

.studio-gallery-main img {
  object-position: center 24%;
}

.studio-map {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #625a8030;
  border-radius: 22px;
  box-shadow: 0 16px 40px #4d456714;
}

.studio-map-anchor {
  position: relative;
  display: block;
  width: 100%;
  min-height: 420px;
  background: #eef3e9;
}

.studio-map-anchor > img {
  display: block;
  width: 100%;
  height: clamp(420px, 43vw, 520px);
  object-fit: cover;
}

.studio-map-callout {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: min(340px, calc(100% - 48px));
  padding: 18px 20px;
  color: var(--text);
  background: #fffffff2;
  border: 1px solid #625a8030;
  border-radius: 16px;
  box-shadow: 0 12px 32px #4d456729;
}

.studio-map-callout strong {
  font-size: 1.18rem;
}

.studio-map-callout > span:not(.studio-map-button) {
  color: var(--muted);
  font-size: 0.86rem;
}

.studio-map-button {
  margin-top: 10px;
  color: var(--philosophy-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.cta-grid-single {
  grid-template-columns: 1fr;
}

.cta-grid-single article {
  min-height: 0;
  padding: clamp(30px, 5vw, 56px);
  background: #f2f0f7;
}

.cta-grid-single h3 {
  margin: 24px 0 12px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.cta-grid-single p {
  max-width: 760px;
  margin-bottom: 26px;
}

.cta-contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.footer-phone {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
}

.studio-map-link:focus-visible,
.studio-map-anchor:focus-visible,
.footer-phone:focus-visible {
  border-radius: 6px;
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

@media (width <= 880px) {
  .studio-location-grid {
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    gap: 28px;
  }

  .studio-route-notes {
    grid-template-columns: 1fr;
  }

  .studio-route-notes li {
    min-height: 0;
  }

  .studio-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .studio-gallery-main {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9 !important;
  }
}

@media (width <= 620px) {
  .studio-location-grid {
    grid-template-columns: 1fr;
    margin-top: 30px;
    padding: 16px;
  }

  .studio-poster {
    max-width: 420px;
    margin: auto;
  }

  .studio-poster img {
    max-height: none;
  }

  .studio-details {
    padding: 12px 4px 8px;
  }

  .studio-name {
    font-size: clamp(3.2rem, 17vw, 5rem);
  }

  .studio-details address {
    margin: 24px 0 22px;
  }

  .studio-contact-actions,
  .cta-contact-row {
    flex-direction: column;
    align-items: stretch;
  }

  .studio-contact-actions .button,
  .studio-map-link,
  .cta-contact-row .button {
    justify-content: center;
    width: 100%;
  }

  .studio-gallery {
    gap: 10px;
  }

  .studio-gallery figure {
    border-radius: 14px;
  }

  .studio-map {
    border-radius: 16px;
  }

  .studio-map-anchor {
    min-height: 430px;
  }

  .studio-map-anchor > img {
    height: 430px;
  }

  .studio-map-callout {
    top: 14px;
    left: 14px;
    max-width: calc(100% - 28px);
  }
}
