/* ==========================================================================
   ROK-FB01 SCROLL STORY — webndo

   Desktop pins one chapter. Page scroll drives the sequence.
   Below 1200px, and when motion is reduced, the section stays in flow.
   ========================================================================== */

.fb01-story {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  margin-bottom: 84px;
  background: linear-gradient(90deg, #f2f5f9 0%, #eef2f6 100%);
  box-shadow: 0 84px 0 #f2f5f9;
}

.fb01-story__sticky,
.fb01-story__scene {
  position: relative;
}

.fb01-story .featured__media {
  position: relative;
  inset: auto;
  width: 100%;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}

.fb01-story__film {
  position: relative;
  aspect-ratio: 1 / 0.9;
  overflow: hidden;
}

.fb01-story .fb01-story__poster,
.fb01-story .featured__media video {
  transform: scale(1.08);
}

.fb01-story__film .fb01-story__poster,
.fb01-story__film video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb01-story__wash,
.fb01-story__media-fade {
  display: none;
}

.fb01-story .featured__media > .fb01-story__close {
  position: relative;
  inset: auto;
  display: block;
  width: min(var(--container-wide), 100% - 2 * min(var(--gutter), 40px));
  height: auto;
  margin-top: 20px;
  margin-inline: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 50% 42%;
  border-radius: 2px 2px 0 0;
}

.fb01-story__intro {
  padding-block: clamp(48px, 6vw, 72px) clamp(28px, 4vw, 40px);
}

.fb01-story .featured__content {
  max-width: 34rem;
}

.fb01-story__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 7px 10px 7px 12px;
  border: 1px solid rgba(12, 26, 41, 0.28);
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--navy-900);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    color 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.fb01-story__cta .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.fb01-story__cta:hover,
.fb01-story__cta:focus-visible {
  border-color: var(--nashorn-blue);
  background: rgba(1, 73, 142, 0.04);
  color: var(--nashorn-blue);
}

.fb01-story__cta:hover .icon,
.fb01-story__cta:focus-visible .icon {
  transform: translate(3px, -3px);
}

.fb01-story__cta:focus-visible {
  outline: 2px solid var(--nashorn-blue);
  outline-offset: 3px;
}

.fb01-story {
  --fb01-feature-size: clamp(1.7rem, 2.15vw, 2.5rem);
}

.fb01-story__panel {
  display: block;
  width: min(var(--container-wide), 100% - 2 * min(var(--gutter), 40px));
  height: auto;
  margin: 16px auto 0;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.fb01-story__panel--snoez {
  object-position: 86% 58%;
}

.fb01-story__panel--salon {
  object-position: 82% 40%;
}

.fb01-story__veil {
  display: none;
}

.fb01-story__features {
  display: grid;
  width: min(var(--container-wide), 100% - 2 * min(var(--gutter), 40px));
  margin: 40px auto 0;
  padding-bottom: clamp(48px, 6vw, 72px);
  gap: 40px;
  text-align: left;
}

.fb01-story__feat {
  max-width: 28rem;
}

.fb01-story__icon {
  display: block;
  width: 44px;
  height: 44px;
  stroke-width: 1.5;
  color: var(--nashorn-blue);
}

.fb01-story__primary {
  margin: 14px 0 0;
  color: var(--navy-900);
  font-size: var(--fb01-feature-size);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.fb01-story__feat--rock .fb01-story__primary,
.fb01-story__feat--care .fb01-story__primary {
  font-size: calc(var(--fb01-feature-size) * 0.875);
}

.fb01-story__feat--dim .fb01-story__primary,
.fb01-story__feat--wgt .fb01-story__primary {
  display: flex;
  align-items: flex-start;
  gap: 0.28em;
  line-height: 0.92;
  white-space: nowrap;
}

.fb01-story__unit {
  margin-top: 0.18em;
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
}

.fb01-story__desc {
  margin: 10px 0 0;
  max-width: 28rem;
  color: var(--muted-text);
  font-size: 1.0625rem;
  line-height: 1.45;
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .fb01-story__film {
    aspect-ratio: 16 / 10;
  }

  .fb01-story__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
    row-gap: 40px;
  }
}

@media (min-width: 1200px) and (prefers-reduced-motion: no-preference),
       (min-width: 768px) and (max-width: 1199.98px) and (orientation: landscape) and (min-height: 601px) and (prefers-reduced-motion: no-preference),
       (min-width: 1024px) and (max-width: 1199.98px) and (orientation: portrait) and (prefers-reduced-motion: no-preference) {
  .fb01-story.is-cinematic {
    height: 312vh;
    min-height: 0;
    overflow: visible;
    margin-bottom: 140px;
    background: #f2f5f9;
    box-shadow: 0 140px 0 #f2f5f9;
  }

  .fb01-story.is-cinematic .fb01-story__sticky {
    position: sticky;
    top: 0;
    height: 100dvh;
    overflow: clip;
    background: #f2f5f9;
  }

  .fb01-story.is-cinematic .fb01-story__scene {
    height: 100%;
    overflow: hidden;
    background: #f2f5f9;
    transform: translate3d(var(--zoom-x, 0px), 0, 0) scale(var(--zoom-scale, 1));
    transform-origin: center bottom;
    will-change: transform;
  }

  .fb01-story.is-cinematic .featured__media {
    position: absolute;
    z-index: 1;
    top: 0;
    left: calc((1 - var(--move, 0)) * 40%);
    width: calc((1 - var(--move, 0)) * 60% + var(--move, 0) * (50% + 1px));
    height: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
  }

  .fb01-story.is-cinematic .fb01-story__film,
  .fb01-story.is-cinematic .featured__media > .fb01-story__close {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    aspect-ratio: auto;
    border-radius: 0;
  }

  .fb01-story.is-cinematic .fb01-story__media-fade {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg, #f2f5f9 0%, rgba(242, 245, 249, 0) 28%);
    opacity: calc(1 - var(--move, 0));
  }

  .fb01-story.is-cinematic .featured__media > .fb01-story__close {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 42% 48%;
    opacity: var(--close-op, 0);
    transform: none;
  }

  .fb01-story.is-cinematic .fb01-story__poster,
  .fb01-story.is-cinematic .featured__media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .fb01-story.is-cinematic .fb01-story__poster {
    opacity: var(--video-op, 1);
  }

  .fb01-story.is-cinematic .featured__media video.is-playing {
    opacity: var(--video-op, 1);
  }

  .fb01-story.is-cinematic .fb01-story__intro {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    height: 100%;
    padding-block: var(--header-h) 0;
    opacity: var(--intro, 1);
    transform: translate3d(0, calc(var(--intro-shift, 0) * 1px), 0);
    pointer-events: none;
  }

  .fb01-story.is-cinematic .featured__content {
    max-width: 27.5rem;
    pointer-events: auto;
  }

  .fb01-story.is-cinematic .fb01-story__panel {
    position: absolute;
    z-index: 2;
    margin: 0;
    aspect-ratio: auto;
    border-radius: 0;
    object-fit: cover;
    pointer-events: none;
  }

  .fb01-story.is-cinematic .fb01-story__panel--snoez {
    top: 0;
    left: 50%;
    width: calc(50% + 1px);
    height: calc(50% + 1px);
    object-position: 62% 46%;
    opacity: var(--snoez, 0);
    transform: translate3d(calc((1 - var(--snoez, 0)) * 64px), 0, 0);
  }

  .fb01-story.is-cinematic .fb01-story__panel--salon {
    z-index: 3;
    top: 50%;
    left: 50%;
    width: calc(50% + 1px);
    height: calc(50% + 1px);
    object-position: 50% 38%;
    opacity: var(--salon, 0);
    transform: translate3d(calc((1 - var(--salon, 0)) * 84px), 0, 0);
  }

  .fb01-story.is-cinematic .fb01-story__veil {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(242, 245, 249, 0.08) 10%,
      rgba(242, 245, 249, 0.55) 18%,
      rgba(242, 245, 249, 0.9) 26%,
      #f2f5f9 40%,
      #f2f5f9 60%,
      rgba(242, 245, 249, 0.9) 74%,
      rgba(242, 245, 249, 0.55) 82%,
      rgba(242, 245, 249, 0.08) 90%,
      transparent 100%
    );
    transform: scaleX(var(--veil, 0));
    transform-origin: center center;
  }

  .fb01-story.is-cinematic .fb01-story__features {
    position: absolute;
    z-index: 5;
    left: 50%;
    top: calc(50% + var(--header-h) / 2);
    width: min(860px, 52vw);
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 72px;
    row-gap: 56px;
    transform: translate3d(-50%, -50%, 0);
    pointer-events: none;
  }

  .fb01-story.is-cinematic .fb01-story__feat {
    max-width: none;
    opacity: var(--in, 0);
    transform: translate3d(0, calc((1 - var(--in, 0)) * 18px), 0);
  }

  .fb01-story.is-cinematic .fb01-story__feat--dim {
    --in: var(--dim, 0);
  }

  .fb01-story.is-cinematic .fb01-story__feat--wgt {
    --in: var(--wgt, 0);
  }

  .fb01-story.is-cinematic .fb01-story__feat--rock {
    --in: var(--rock, 0);
  }

  .fb01-story.is-cinematic .fb01-story__feat--care {
    --in: var(--care, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fb01-story,
  .fb01-story.is-cinematic {
    height: auto;
    min-height: 0;
  }

  .fb01-story__sticky,
  .fb01-story.is-cinematic .fb01-story__sticky {
    position: relative;
    top: auto;
    height: auto;
    overflow: visible;
  }

  .fb01-story__scene,
  .fb01-story.is-cinematic .fb01-story__scene {
    height: auto;
    transform: none;
  }
}
