/* Shared heading and reading scales for M WORKS Studio. */
:root {
  --banner-type: clamp(2.4rem, 8.6vw, 9rem);
  --section-type: clamp(2rem, 4.9vw, 4.75rem);
  --reading-type: clamp(1.02rem, 1.67vw, 1.55rem);
  --reading-width: 54ch;
  --heading-space: clamp(1.2rem, 2.6vw, 2.6rem);
  --reading-space: .88em;
}
.page-banner {
  isolation: isolate;
  position: relative;
  display: block;
  min-height: clamp(25rem, 46vw, 47rem);
  padding: calc(var(--mw-header) + clamp(3.4rem, 10.3vw, 9rem)) 0 clamp(2.75rem, 4.4vw, 5rem);
  overflow: hidden;
  color: white;
  background: #17191d var(--banner-photo, none) center / cover no-repeat;
}
.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(11 12 17 / 77%), rgb(12 13 19 / 43%) 65%, rgb(13 14 21 / 40%)), linear-gradient(0deg, rgb(10 12 17 / 35%), transparent 65%);
}
.page-banner .banner-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.banner-inner {
  width: min(78%, 90rem);
  margin-inline: auto;
  min-width: 0;
}
.page-banner .banner-title {
  margin: 0;
  padding: 0 .12em 0 0;
  max-width: 100%;
  font: italic 800 var(--banner-type)/1.02 "Kanit", Arial, sans-serif !important;
  text-transform: uppercase;
  letter-spacing: -.045em !important;
  text-align: left;
  text-wrap: balance;
  overflow-wrap: anywhere !important;
  color: #fff;
  -webkit-text-fill-color: #fff;
  -webkit-text-stroke: 0;
}
.banner-title :is(.banner-line, .mw-title-line) {
  display: block !important;
  white-space: normal;
  color: inherit;
}
.banner-description {
  max-width: var(--reading-width);
  margin: 1rem 0 0;
  color: #fff;
  font: 400 var(--reading-type)/1.55 "Kanit", Arial, sans-serif;
}
.banner-actions {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: .15rem;
  margin-top: clamp(1.35rem, 2.65vw, 3rem);
}
.banner-action {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  min-height: 44px;
  padding-block: .35em;
  color: #fff;
  font: italic 800 clamp(1.05rem, 1.95vw, 2rem)/1.12 "Kanit", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: -.035em;
}
.banner-action > svg { flex: none; width: 1em; height: 1em; }
.banner-scroll { position: absolute; right: 1.8%; bottom: 9%; writing-mode: vertical-rl; color: white; text-transform: uppercase; font: 600 .75rem/1.2 "Kanit",sans-serif; letter-spacing: .16em; padding: 8px; }
.banner-action:is(:hover,:focus-visible) { text-decoration: underline; text-underline-offset: .22em; }
.site-main .demo-page h2 {
  margin: 0 0 var(--heading-space);
  max-width: 100%;
  font: italic 800 var(--section-type)/1.09 "Kanit", Arial, sans-serif !important;
  letter-spacing: -.045em !important;
  text-transform: uppercase;
  text-align: left;
  text-wrap: balance;
  white-space: normal;
  overflow-wrap: anywhere !important;
}
.site-main .demo-page h2 > span { white-space: normal; }
.demo-page :is(.section-heading, .studio-showcase__intro, .mw-intro__grid, .booking-section-heading) {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0;
}
.demo-page .social-gallery__head { text-align: left; justify-items: start; }
.demo-page .mw-intro__content,
.demo-page .studio-showcase__copy { width: 100%; max-width: var(--reading-width); }
.site-main .demo-page :is(.mw-lead, .mw-muted, .product-description, .offer-card > p, .mission-card > p, .studio-showcase__slide figcaption p, .legal-notice > p, .merch-note, .section-heading > p, .booking-section-heading > p, .legal-article p, .workshop-programme__section p, .workshop-programme__practice > p, .workshop-programme__info > p, .media-feature__copy > p, .mw-cta__inner > div > p):not(.mw-eyebrow) {
  max-width: var(--reading-width);
  margin: 0 0 var(--reading-space);
  font: 400 var(--reading-type)/1.56 "Kanit", Arial, sans-serif;
  text-align: left;
  color: var(--reading-color, inherit);
}
.site-main .demo-page .mw-muted,
.site-main .demo-page .workshop-programme__practice .workshop-programme__review,
.site-main .demo-page .legal-article p + p { --reading-color: #6f7176; }
.site-main .demo-page :is(.content-section--dark, .media-feature:not(.media-feature--light), .studio-grid-section) .mw-muted { --reading-color: #c7c8cb; }
.site-main .studio-showcase__intro, .site-main .section-heading { max-width: 66rem; }
.demo-page .atelier-card__content h3 {
  font: italic 800 clamp(1.65rem,3.4vw,3.7rem)/1.06 "Kanit", Arial, sans-serif;
  margin: 0 0 1rem;
  overflow-wrap: anywhere;
}
.demo-page .atelier-card__content .atelier-card__title--long { font-size: clamp(1.3rem,2.35vw,2.65rem); }
.page-banner + .product-detail, .page-banner + .contact-stage { padding-top: clamp(2.5rem, 5.5vw, 6rem); }
.page-banner + .booking-configurator { padding-top: 1.5rem; }
.contact-stage .contact-form-panel { margin-top: 0; }
:is(.product-detail, #booking-module, #intro, #studios) { scroll-margin-top: calc(var(--mw-header) + var(--mw-utility-height)); }
.page-banner + .product-detail .product-detail__copy h2 { margin-bottom: var(--heading-space); }
.demo-page .mw-intro__mobile-visual { margin: 1.2rem 0 0; }
@media (max-width: 680px) {
  :root { --banner-type: clamp(2.3rem, 11vw, 4rem); --section-type: clamp(2rem, 8.7vw, 3.35rem); }
  .banner-inner { width: calc(100% - 40px); }
  .banner-scroll { display: none; }
  .page-banner { min-height: 23rem; padding: calc(var(--mw-header) + 2.75rem) 0 2rem; }
  .banner-actions { margin-top: 1.25rem; }
  .page-banner + .booking-configurator { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .banner-film { display: none; } }
