/* Font and letter motion adapted from the owner's springbompilates.com hero.
   Font source: cdn.prod.website-files.com/67e8f54e49800e847a80bfdb/
   69a19202cf9fdcec28065634_Inter-Black.woff2. License: fonts/Springbom-Inter-OFL.txt. */
@font-face {
  font-family: 'Springbom Hero';
  src: url('../fonts/Springbom-Inter-Black.woff2') format('woff2');
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

[data-pilates-letter-hero] {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: clamp(360px, 38vw, 520px);
  min-height: 360px;
  aspect-ratio: auto;
  padding: clamp(24px, 3.2vw, 44px);
  overflow: hidden;
  border-radius: var(--nd-radius-preview-canvas);
  color: #111;
  background: #ffb1b4;
  transition: opacity 260ms ease;
}

[data-pilates-letter-hero]::before {
  content: '';
  position: absolute;
  inset: -16px;
  z-index: -1;
  background: url('../images/springbom-pilates/letter-hero-orange-pink.png') center / cover no-repeat;
  filter: blur(8px);
  pointer-events: none;
}

[data-pilates-letter-hero] .pilates-letter-title {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .035em;
  width: 100%;
  margin: 0;
  padding: 0;
  color: #111;
  font-family: 'Springbom Hero', Inter, Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 11.7vw, 152px);
  font-size: clamp(28px, 13.2cqi, 152px);
  line-height: 1;
  letter-spacing: -.008em;
  text-align: center;
  text-transform: uppercase;
}

[data-pilates-font-pending] {
  opacity: 0;
}

[data-pilates-letter-hero] .pilates-letter-word {
  appearance: none;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  position: relative;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-transform: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
[data-pilates-letter-hero] .pilates-letter-word:focus-visible {
  outline: 2px solid #160c24;
  outline-offset: 10px;
}
[data-pilates-letter-hero] [data-pilates-letter] {
  display: inline-block;
  position: relative;
  flex: 0 0 auto;
  font: inherit;
  letter-spacing: inherit;
  pointer-events: auto;
  transition: color 300ms ease;
}

@media (max-width: 767px) {
  [data-pilates-letter-hero] {
    height: auto;
    min-height: 320px;
    aspect-ratio: 1.1;
    padding: 24px 20px;
    border-radius: var(--nd-radius-preview-canvas);
  }
  [data-pilates-letter-hero] .pilates-letter-title {
    margin: 0;
    font-size: clamp(36px, 13vw, 164px);
    font-size: clamp(28px, 14.8cqi, 164px);
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-pilates-letter-hero] .pilates-letter-word { cursor: default; }
}

[data-pilates-letter-hero] [data-pilates-letter].is-lit,
[data-pilates-letter-hero] .pilates-letter-word:focus-visible [data-pilates-letter] { color: #fff; }
@media (hover: hover) and (pointer: fine) {
  [data-pilates-letter-hero] [data-pilates-letter]:hover { color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  [data-pilates-letter-hero],
  [data-pilates-letter-hero] [data-pilates-letter] { transition: none; }
}

@media (max-width: 767px), (hover: none) {
  [data-pilates-letter-hero] .pilates-letter-word,
  [data-pilates-letter-hero] [data-pilates-letter] {
    pointer-events: none;
    cursor: default;
  }
  [data-pilates-letter-hero] .pilates-letter-word:disabled { opacity: 1; }
}

/* The complete homepage hero uses the same browser as the case walkthroughs. */
.case-editorial-cover--pilates-browser .case-editorial-figure{margin:0}
.case-editorial-cover--pilates-browser figcaption{display:none}
.case-editorial-cover--pilates-browser .case-browser-demo{height:clamp(540px,56vw,780px)}
@media(max-width:767px){.case-editorial-cover--pilates-browser .case-browser-demo{height:auto;aspect-ratio:1.2}}
