.studio-story-section {
  --ss-text: 255, 255, 255;
  --ss-button-bg: 53, 81, 61;
  --ss-button-text: 255, 255, 255;
  --ss-overlay: 25;
  --mask-opacity: 0;

  position: relative;
  overflow: hidden;
  background: #1a1a1a !important;
  background-color: #1a1a1a !important;
}

.studio-story-section.page-section::before {
  background: transparent !important;
  background-color: transparent !important;
}

.studio-story {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(100vh, 820px);
  min-height: min(100dvh, 820px);
  width: 100%;
}

.studio-story__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.studio-story__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.studio-story__background.video-media,
.studio-story__background.media {
  aspect-ratio: unset;
  height: 100%;
}

.studio-story__background :is(img, video) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.studio-story__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgb(0 0 0 / calc(var(--ss-overlay) * 1%));
}

.studio-story__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-block: clamp(64px, 10vh, 120px);
  padding-inline: 20px;
}

.studio-story__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
  color: rgb(var(--ss-text));
  text-wrap: balance;
}

.studio-story__eyebrow {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
  color: rgb(var(--ss-text));
}

.studio-story__heading {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: rgb(var(--ss-text));
  text-shadow: 0 1px 18px rgb(0 0 0 / 0.25);
}

.studio-story__subtitle {
  margin: 0;
  max-width: 36rem;
  font-size: clamp(0.875rem, 1.4vw, 1rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgb(var(--ss-text));
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.2);
}

.studio-story__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-block-start: 8px;
  min-height: 48px;
  padding: 14px 32px;
  border: none;
  border-radius: 4px;
  background: rgb(var(--ss-button-bg));
  color: rgb(var(--ss-button-text));
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.studio-story__button:hover {
  opacity: 0.9;
  color: rgb(var(--ss-button-text));
}

.studio-story__toggle {
  position: absolute;
  z-index: 3;
  inset-block-end: clamp(20px, 3vw, 32px);
  inset-inline-end: clamp(20px, 3vw, 32px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgb(var(--ss-button-bg));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.25);
  transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.studio-story__toggle:hover {
  opacity: 0.92;
  transform: scale(1.04);
}

.studio-story__toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.studio-story__toggle .icon {
  width: 20px;
  height: 20px;
}

.studio-story__toggle-icon--play {
  display: none;
}

.studio-story__toggle[data-state="paused"] .studio-story__toggle-icon--pause {
  display: none;
}

.studio-story__toggle[data-state="paused"] .studio-story__toggle-icon--play {
  display: block;
}

/* Design frame: 375 × 625 */
@media (max-width: 959px) {
  .studio-story {
    min-height: 625px;
    aspect-ratio: 375 / 625;
    max-height: 100svh;
  }

  .studio-story__inner {
    padding-block: 48px;
    padding-inline: 24px;
  }

  .studio-story__content {
    gap: 12px;
    max-width: 20.5rem; /* ~80% of 375 */
    width: 100%;
  }

  .studio-story__eyebrow {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
  }

  .studio-story__heading {
    font-size: 1.75rem; /* 28px */
    line-height: 1.2;
  }

  .studio-story__subtitle {
    max-width: none;
    font-size: 0.875rem; /* 14px */
    line-height: 1.55;
  }

  .studio-story__button {
    margin-block-start: 12px;
    min-height: 44px;
    padding: 12px 28px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }

  .studio-story__toggle {
    inset-block-end: 20px;
    inset-inline-end: 16px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 549px) {
  .studio-story__heading {
    font-size: 1.625rem;
  }
}
