/* pilatesstudio-hero 1.0.0 · block-port van ReactBitsPro Blocks/hero-33 (Tailwind-klassen vertaald naar gescopete CSS)
   met een vanilla port van ReactBits TextAnimations/DepthText op de h1 (originele DepthText.css hieronder gescoped).
   Kleuren alleen via --m-*-tokens. De balk van pilatesstudio-header-shell ligt over de bovenste 72 px. */
.msm-pilatesstudio-hero {
  --ph-head: 72px;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  padding: calc(var(--ph-head) + 24px) 16px 40px;
  background: var(--m-bg, #ece9e1);
  color: var(--m-ink, #28312e);
  font-family: var(--m-font-body, 'Albert Sans', ui-sans-serif, system-ui, sans-serif);
  cursor: grab;
  touch-action: pan-y;
  scroll-margin-top: 0;
}
.msm-pilatesstudio-hero:active { cursor: grabbing; }
.msm-pilatesstudio-hero *,
.msm-pilatesstudio-hero *::before,
.msm-pilatesstudio-hero *::after { box-sizing: border-box; }

/* Foto onder de stage: object-fit cover, rechts gekaderd; op mobiel de staande uitsnede bovenin achter de ring. */
.msm-pilatesstudio-hero .ph-photo {
  position: absolute;
  z-index: -30;
  inset: 0 0 auto 0;
  height: calc(var(--ph-head) + 24px + min(22rem, 84vw) + 72px);
  margin: 0;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 58%, rgba(0, 0, 0, 0));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 58%, rgba(0, 0, 0, 0));
}
.msm-pilatesstudio-hero .ph-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 58%;
}
.msm-pilatesstudio-hero .ph-veil {
  position: absolute;
  z-index: -20;
  inset: 0;
  pointer-events: none;
}

/* Stage van de ring: absolute inset-0, -z-10, aria-hidden. Het canvas van de bron is dicht; in inktstand op wit
   vermenigvuldigt de hele laag met de foto, zodat alleen het lint zichtbaar is. */
.msm-pilatesstudio-hero .ph-stage {
  position: absolute;
  z-index: -10;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.msm-pilatesstudio-hero.is-knot .ph-stage { opacity: 1; }

.msm-pilatesstudio-hero .ph-inner {
  margin: 0 auto;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  max-width: 1400px;
}
.msm-pilatesstudio-hero .ph-spacer { flex-shrink: 0; height: min(22rem, 84vw); }
.msm-pilatesstudio-hero .ph-copy {
  max-width: 31rem;
  cursor: auto;
  text-shadow: 0 0 24px color-mix(in srgb, var(--m-bg, #ece9e1) 90%, transparent);
}
.msm-pilatesstudio-hero .ph-kicker {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: color-mix(in srgb, var(--m-primary, #9e594b) 78%, var(--m-ink, #28312e));
}
.msm-pilatesstudio-hero .ph-title {
  margin: 0;
  font-family: var(--m-font-display, 'Marcellus', ui-serif, Georgia, serif);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.045em;
  text-wrap: balance;
  color: var(--m-ink, #28312e);
}
.msm-pilatesstudio-hero .ph-line { display: block; }
.msm-pilatesstudio-hero .ph-intro {
  margin: 20px 0 0;
  max-width: 42ch;
  font-size: 16px;
  line-height: 1.625;
  text-wrap: pretty;
  color: color-mix(in srgb, var(--m-muted, #69716d) 72%, var(--m-ink, #28312e));
}
.msm-pilatesstudio-hero .ph-act { margin-top: 32px; }

/* Pill-formulier: h-12, max 26 rem, rounded-full, vlak in --m-ink op 6 procent, outline bij focus-within. */
.msm-pilatesstudio-hero .ph-form {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: 26rem;
  min-height: 48px;
  padding: 4px;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--m-ink, #28312e) 6%, transparent);
  text-shadow: none;
}
.msm-pilatesstudio-hero .ph-form:focus-within {
  outline: 2px solid var(--m-ink, #28312e);
  outline-offset: 2px;
}
.msm-pilatesstudio-hero .ph-choice {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: 2px;
}
.msm-pilatesstudio-hero .ph-opt {
  position: relative;
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 12px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: color-mix(in srgb, var(--m-ink, #28312e) 72%, transparent);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.msm-pilatesstudio-hero .ph-opt input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.msm-pilatesstudio-hero .ph-opt:hover { color: var(--m-ink, #28312e); }
.msm-pilatesstudio-hero .ph-opt:has(input:checked) {
  background: var(--m-surface, #fbfaf6);
  color: var(--m-ink, #28312e);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), inset 0 0 0 1px var(--m-line, #d9d6cf);
}
.msm-pilatesstudio-hero .ph-opt:has(input:focus-visible) {
  box-shadow: inset 0 0 0 2px var(--m-primary, #9e594b);
}
.msm-pilatesstudio-hero .ph-go {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 9999px;
  background: var(--m-ink, #28312e);
  color: var(--m-surface, #fbfaf6);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.msm-pilatesstudio-hero .ph-go:hover { background: color-mix(in srgb, var(--m-ink, #28312e) 86%, var(--m-surface, #fbfaf6)); }
.msm-pilatesstudio-hero .ph-go:focus-visible { outline: 2px solid var(--m-primary, #9e594b); outline-offset: 2px; }
.msm-pilatesstudio-hero .ph-go svg,
.msm-pilatesstudio-hero .ph-again svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}
.msm-pilatesstudio-hero .ph-go:hover svg { transform: translateX(2px); }
.msm-pilatesstudio-hero .ph-status { display: none; margin: 0; }
.msm-pilatesstudio-hero .ph-form.is-sent .ph-choice,
.msm-pilatesstudio-hero .ph-form.is-sent .ph-go { display: none; }
.msm-pilatesstudio-hero .ph-form.is-sent .ph-status {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-height: 40px;
  padding: 0 4px 0 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}
.msm-pilatesstudio-hero .ph-again {
  flex-shrink: 0;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 9999px;
  background: var(--m-surface, #fbfaf6);
  color: var(--m-ink, #28312e);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--m-line, #d9d6cf);
}
.msm-pilatesstudio-hero .ph-again:focus-visible { outline: 2px solid var(--m-primary, #9e594b); outline-offset: 2px; }
.msm-pilatesstudio-hero .ph-note {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--m-muted, #69716d) 72%, var(--m-ink, #28312e));
}

/* ---------- DepthText (ReactBits, originele CSS gescoped) ---------- */
.msm-pilatesstudio-hero .depth-text {
  display: inline-block;
  perspective: var(--depth-text-perspective);
  perspective-origin: 50% 48%;
  isolation: isolate;
}
.msm-pilatesstudio-hero .depth-text__stage {
  position: relative;
  display: inline-grid;
  place-items: center;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  will-change: transform;
}
.msm-pilatesstudio-hero .depth-text__layer,
.msm-pilatesstudio-hero .depth-text__face {
  grid-area: 1 / 1;
  display: inline-block;
  font-size: var(--depth-text-font-size);
  font-weight: var(--depth-text-font-weight);
  /* De h1 houdt de maten van hero-33 (leading 1.03, tracking -0.045em) in plaats van 0.86 en -0.065em. */
  line-height: 1.03;
  letter-spacing: -0.045em;
  white-space: nowrap;
  user-select: none;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  font-kerning: normal;
  text-rendering: geometricPrecision;
}
.msm-pilatesstudio-hero .depth-text__layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  text-shadow: none;
}
.msm-pilatesstudio-hero .depth-text__layer--back { text-shadow: var(--depth-text-shadow); }
.msm-pilatesstudio-hero .depth-text__face {
  position: relative;
  z-index: 1;
  color: var(--depth-text-face-color);
  text-shadow: var(--depth-text-face-shadow);
  transform: translateZ(0.6px);
  user-select: text;
}
@media (hover: hover) and (pointer: fine) {
  .msm-pilatesstudio-hero .depth-text { cursor: default; }
}
/* Zonder regelspans (na een tekstwijziging) staat de hele kop in één stapel die gewoon mag afbreken. */
.msm-pilatesstudio-hero .ph-title > .depth-text { max-width: 100%; }
.msm-pilatesstudio-hero .ph-title > .depth-text .depth-text__layer,
.msm-pilatesstudio-hero .ph-title > .depth-text .depth-text__face { white-space: normal; }

@media (min-width: 440px) {
  .msm-pilatesstudio-hero .ph-opt { padding: 0 14px; }
}
@media (max-width: 439px) {
  .msm-pilatesstudio-hero .ph-form { flex-wrap: wrap; border-radius: 26px; }
  .msm-pilatesstudio-hero .ph-choice { flex-basis: 100%; }
  .msm-pilatesstudio-hero .ph-go { flex: 1 1 100%; justify-content: center; }
  .msm-pilatesstudio-hero .ph-form.is-sent { flex-wrap: nowrap; }
}
@media (min-width: 640px) {
  .msm-pilatesstudio-hero { padding-left: 24px; padding-right: 24px; }
  .msm-pilatesstudio-hero .ph-title { font-size: 3.25rem; }
}
@media (min-width: 1024px) {
  .msm-pilatesstudio-hero { padding: calc(var(--ph-head) + 24px) 32px 48px; }
  .msm-pilatesstudio-hero .ph-inner { justify-content: center; }
  .msm-pilatesstudio-hero .ph-spacer { display: none; }
  .msm-pilatesstudio-hero .ph-photo {
    inset: 0;
    height: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .msm-pilatesstudio-hero .ph-photo img { object-position: 100% 50%; }
  /* Verloop van --m-bg (links, 0,92) naar transparant (55 procent): de tekst staat op een rustig vlak. */
  .msm-pilatesstudio-hero .ph-veil {
    background: linear-gradient(90deg, color-mix(in srgb, var(--m-bg, #ece9e1) 92%, transparent) 0%, color-mix(in srgb, var(--m-bg, #ece9e1) 74%, transparent) 30%, transparent 55%);
  }
}
@media (min-width: 1280px) {
  .msm-pilatesstudio-hero .ph-copy { max-width: 38rem; }
  .msm-pilatesstudio-hero .ph-title { font-size: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .msm-pilatesstudio-hero .ph-stage { transition: none; }
  .msm-pilatesstudio-hero .depth-text__stage { will-change: auto; transform: none !important; }
  .msm-pilatesstudio-hero .ph-go svg { transition: none; }
}
