/* Scroll story uses the same PC/phone split as site.css. */
.journey-story {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  overflow: clip;
  background: var(--sand);
  color: #403930;
  view-timeline-name: --souvi-story;
  view-timeline-axis: block;
  /* Anchor links use header scroll-padding; the reveal must start at the actual
     viewport edge, exactly like the WebGL model's getBoundingClientRect(). */
  view-timeline-inset: 0;
}
.story-content {
  position: relative;
}
.story-intro {
  position: relative;
  z-index: 2;
  padding: 3.2cqw var(--gutter) 0;
}
.story-intro h2 {
  margin-bottom: 1.6cqw;
  max-width: 1000px;
  font-size: 56px;
  font-weight: 440;
}
.story-intro p {
  max-width: 480px;
  font-size: 18px;
  line-height: 1.2;
}
.story-chapter {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: max(39cqw, 72svh);
  padding: 3.6cqw var(--gutter);
}
.story-chapter article {
  width: 29cqw;
  max-width: 410px;
}
.story-chapter h3 {
  margin: 1.25cqw 0 0.3cqw;
  font-size: 30px;
  font-weight: 420;
}
.story-chapter p {
  font-size: 30px;
  line-height: 1.22;
  letter-spacing: -0.035em;
  color: var(--muted);
}
.story-chapter-icon {
  width: 5.55cqw;
  height: 5.55cqw;
  max-width: 78px;
  max-height: 78px;
}
.story-chapter--wear {
  min-height: max(37cqw, 66svh);
  align-items: flex-start;
  padding-top: 5.1cqw;
}
.story-chapter--capture {
  justify-content: flex-end;
  padding-top: 0;
}
.story-chapter--relive {
  min-height: max(78cqw, 118svh);
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  padding-top: 4cqw;
  padding-bottom: 49cqw;
}
.story-chapter--relive article {
  width: 35cqw;
  max-width: 510px;
}
.story-model,
.story-photo-layer {
  /* Native pinning stays in sync with the compositor during touch scrolling. */
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  margin-bottom: -100svh;
  pointer-events: none;
}
.story-model {
  z-index: 1;
}
.story-model canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.story-model-fallback {
  position: absolute;
  top: 40%;
  left: 35%;
  width: 30%;
}
.journey-story[data-model-ready="true"] .story-model-fallback {
  display: none;
}
.story-model-status {
  position: absolute;
  top: 30%;
  left: 35%;
  width: 30%;
  text-align: center;
  font-size: 14px;
}
.story-reveal-runway {
  height: var(--story-runway-height, 0px);
}
.story-photo-layer {
  z-index: 4;
  overflow: hidden;
  visibility: hidden;
  clip-path: inset(100% 0 0 0);
}
.story-reveal-photo {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  transform-origin: 0 0;
}
.journey-story[data-in-view="true"] .story-reveal-photo {
  will-change: transform;
}
.journey-story[data-in-view="true"] .story-photo-layer {
  will-change: clip-path;
}
.journey-story[data-native-reveal="true"] .story-reveal-photo,
.journey-story[data-native-reveal="true"] .story-photo-layer {
  animation-duration: auto;
  animation-timing-function: linear;
  animation-fill-mode: both;
  animation-timeline: --souvi-story;
  animation-range: entry 100% entry calc(100% + var(--story-animation-end));
}
.journey-story[data-native-reveal="true"] .story-reveal-photo {
  animation-name: story-photo-zoom;
}
.journey-story[data-native-reveal="true"] .story-photo-layer {
  animation-name: story-photo-wipe;
  visibility: visible !important;
}
@media (max-width: 809.98px) {
  .story-intro {
    padding: 9cqw 6cqw 0;
  }
  .story-intro h2 {
    font-size: 36px;
    line-height: 1.06;
    margin-bottom: 5cqw;
  }
  .story-intro p {
    max-width: 420px;
    font-size: 18px;
    line-height: 1.25;
  }
  .story-chapter {
    min-height: max(100cqw, 60svh);
    padding: 10cqw 6cqw 24cqw;
    align-items: flex-start;
  }
  .story-chapter article {
    width: 100%;
    max-width: none;
  }
  .story-chapter h3,
  .story-chapter p {
    text-shadow:
      0 0 5px var(--sand),
      0 1px 2px var(--sand);
  }
  .story-chapter h3 {
    font-size: 30px;
    margin: 3cqw 0 1.3cqw;
  }
  .story-chapter p {
    font-size: clamp(20px, 5.8vw, 28px);
    line-height: 1.25;
    letter-spacing: -0.025em;
    color: #62564a;
  }
  .story-chapter-icon {
    width: 47px;
    height: 47px;
  }
  .story-chapter--wear {
    padding-top: 64cqw;
    min-height: max(140cqw, 70svh);
  }
  .story-chapter--capture {
    justify-content: flex-start;
  }
  .story-chapter--relive {
    min-height: 158cqw;
    padding-top: 12cqw;
    padding-bottom: calc(80cqw + 80px);
    justify-content: flex-start;
    text-align: left;
  }
  .story-chapter--relive article {
    width: 100%;
    max-width: none;
  }
}
