/* Component-scoped plain CSS. Brand values can be overridden at the section. */
.ss-story {
  --ss-story-gap: clamp(2rem, 6vw, 7rem);
  --ss-story-top: 7rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ss-story-gap);
  position: relative;
}
.ss-story__chapters { min-width: 0; }
.ss-story__chapter {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(2rem, 5vw, 5rem);
  scroll-margin-top: var(--ss-story-top);
}
.ss-story__eyebrow {
  margin: 0 0 1rem;
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.ss-story__title {
  margin: 0 0 1.25rem;
  max-width: 17ch;
  font: inherit;
  font-family: var(--ss-display-font, inherit);
  font-size: clamp(2.25rem, 4.5vw, 4.75rem);
  font-weight: 400;
  line-height: 1.02;
}
.ss-story__body { max-width: 43ch; line-height: 1.65; }
.ss-story__body > :first-child { margin-top: 0; }
.ss-story__body > :last-child { margin-bottom: 0; }
.ss-story__inline-media { margin-top: 2rem; }
.ss-story__figure { margin: 0; }
.ss-story__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--ss-story-image-ratio, 4 / 5);
  object-fit: cover;
  background: var(--ss-media-fallback, #dcd6ca);
}
.ss-story__figure figcaption {
  padding-top: .75rem;
  font-size: .75rem;
  line-height: 1.5;
}
.ss-story__visual-column { display: none; min-width: 0; }

@media (min-width: 64rem) and (prefers-reduced-motion: no-preference) {
  .ss-story { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .ss-story__chapter { min-height: 75svh; box-sizing: border-box; }
  .ss-story__visual-column { display: block; }
  .ss-story__sticky {
    position: sticky;
    top: var(--ss-story-top);
    display: grid;
    align-items: start;
  }
  .ss-story__visual { grid-area: 1 / 1; pointer-events: none; }
  .ss-story__visual img { max-height: calc(100svh - var(--ss-story-top) - 4rem); }
  /* Preserve each original image/alt in the accessibility tree on desktop.
     The visible sticky copies above are supplementary and aria-hidden. */
  .ss-story__inline-media {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
}

.ss-tilt { perspective: 1000px; min-width: 0; }
.ss-tilt__surface { transform-style: preserve-3d; transform-origin: center; }
.ss-tilt__surface > a { display: block; }
.ss-tilt__surface img { display: block; max-width: 100%; height: auto; }

.ss-selection { display: flex; flex-wrap: wrap; gap: .25rem; }
.ss-selection__item { position: relative; isolation: isolate; }
.ss-selection__marker {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: var(--ss-selection-fill, rgb(40 56 236 / .12));
  pointer-events: none;
}
.ss-selection__label { position: relative; z-index: 1; }

.ss-scroll-progress {
  position: fixed;
  inset-inline: 0;
  top: var(--ss-progress-top, 0);
  height: 2px;
  z-index: var(--ss-progress-z, 40);
  background: var(--ss-progress-color, #2838ec);
  transform-origin: left center;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .ss-tilt__surface { transform: none !important; }
  .ss-scroll-progress { display: none !important; }
}
@media (hover: none), (pointer: coarse) {
  .ss-tilt__surface { transform: none !important; }
}
