/* Runner cinematic scroll — organic orbit + editorial copy */

.runner-mosaic {
  --mosaic-ink: #faf9f5;
  --mosaic-muted: rgba(250, 249, 245, 0.5);
  --mosaic-soft: rgba(250, 249, 245, 0.68);
  --mosaic-bg: rgb(20, 20, 19);
  --frame-radius: 6px;
  position: relative;
  z-index: 2;
  margin: 0;
  background: var(--mosaic-bg);
  color: var(--mosaic-ink);
  overflow-x: clip;
  isolation: isolate;
}

.runner-mosaic__track {
  position: relative;
  height: auto;
  min-height: 100vh;
}

.runner-mosaic__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--mosaic-bg);
}

.runner-mosaic__field {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.runner-mosaic__ring {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
  background: none;
}

.runner-mosaic__frame {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  pointer-events: none;
  transform-origin: center center;
  border-radius: var(--frame-radius);
  will-change: transform, opacity;
  backface-visibility: hidden;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.2);
}

.runner-mosaic__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: inherit;
}

.runner-mosaic__atmos {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.1;
  background: radial-gradient(ellipse 100% 85% at 50% 50%, transparent 58%, rgba(0, 0, 0, 0.35) 100%);
}

.runner-mosaic__veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.45;
  background: radial-gradient(
    ellipse 40% 36% at 50% 50%,
    rgba(20, 20, 19, 0.65) 0%,
    rgba(20, 20, 19, 0.22) 55%,
    transparent 76%
  );
}

.runner-mosaic__copy {
  position: absolute;
  z-index: 40;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.runner-mosaic__copy-rail {
  position: absolute;
  inset: 0;
  left: 50%;
  width: min(28rem, 88vw);
  padding: 0;
  transform: translate3d(-50%, 0, 0);
  pointer-events: none;
}

.runner-mosaic__beat,
.runner-mosaic__finale {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-align: center;
  opacity: 0;
}

.runner-mosaic__beat-body {
  width: 100%;
}

.runner-mosaic h2.runner-mosaic__headline {
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  box-shadow: none;
  background: none;
  font-family: var(--_typography---type-font-headings, "Libre Caslon Condensed", "Times New Roman", serif);
  font-weight: 400;
  font-synthesis: none;
  font-size: clamp(32px, 3.5vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--mosaic-ink);
  -webkit-text-fill-color: var(--mosaic-ink);
  transition: none;
}

.runner-mosaic p {
  font-family: "BDO Grotesk", Arial, sans-serif;
}

.runner-mosaic__lede {
  margin: 16px auto 0;
  max-width: 28rem;
  transition: none;
  font-size: 16px;
  line-height: 1.52;
  color: var(--mosaic-soft);
}

.runner-mosaic__finale .runner-mosaic__lede {
  font-size: 14px;
  line-height: 1.48;
  max-width: min(28rem, 88vw);
}


@media (max-width: 767px) {
  .runner-mosaic {
    --frame-radius: 5px;
    --mosaic-mobile-gutter: max(20px, env(safe-area-inset-left, 0px));
    --mosaic-mobile-story-h: clamp(220px, 36dvh, 320px);
  }

  .runner-mosaic--compact .runner-mosaic__track {
    touch-action: pan-y;
  }

  /* One full-viewport cinematic frame: imagery + copy share the same scene */
  .runner-mosaic--compact .runner-mosaic__sticky {
    position: sticky;
    top: 0;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .runner-mosaic--compact .runner-mosaic__field {
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  .runner-mosaic--compact .runner-mosaic__ring {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    will-change: transform;
    background: none;
  }

  .runner-mosaic--compact .runner-mosaic__atmos,
  .runner-mosaic--compact .runner-mosaic__veil {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .runner-mosaic--compact .runner-mosaic__copy {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: max(12px, env(safe-area-inset-top, 0px)) var(--mosaic-mobile-gutter)
      max(16px, env(safe-area-inset-bottom, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
    pointer-events: none;
    background: none;
  }

  .runner-mosaic--compact .runner-mosaic__copy-rail {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 20.5rem;
    height: var(--mosaic-mobile-story-h);
    min-height: var(--mosaic-mobile-story-h);
    margin: 0 auto;
    padding: 0 4px;
    transform: none !important;
    box-sizing: border-box;
  }

  .runner-mosaic--compact .runner-mosaic__beat,
  .runner-mosaic--compact .runner-mosaic__finale {
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-align: center;
  }

  .runner-mosaic--compact .runner-mosaic__beat-body {
    width: 100%;
    max-width: 100%;
  }

  .runner-mosaic--compact .runner-mosaic__headline {
    font-size: clamp(25px, 7vw, 32px);
    line-height: 1.1;
    letter-spacing: -0.028em;
    text-align: center;
    text-wrap: balance;
  }

  .runner-mosaic--compact .runner-mosaic__lede {
    margin-top: 10px;
    max-width: 22rem;
    font-size: 15px;
    line-height: 1.48;
    text-align: center;
    text-wrap: pretty;
  }

  .runner-mosaic--compact .runner-mosaic__finale .runner-mosaic__lede {
    font-size: 14px;
    max-width: 34em;
  }

  .runner-mosaic--compact .runner-mosaic__frame {
    box-shadow: none;
    will-change: auto;
  }

  .runner-mosaic--compact .runner-mosaic__ring {
    will-change: auto;
  }

  .runner-mosaic--compact[data-mosaic-ring-spin="1"] .runner-mosaic__ring {
    will-change: transform;
  }

  @media (max-height: 520px) {
    .runner-mosaic--compact {
      --mosaic-mobile-story-h: clamp(180px, min(36dvh, 240px), 260px);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .runner-mosaic__track {
    height: auto !important;
  }

  .runner-mosaic__sticky {
    position: relative;
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    padding: 88px 24px 64px;
    filter: none !important;
  }

  .runner-mosaic__atmos,
  .runner-mosaic__veil {
    display: none;
  }

  .runner-mosaic__copy {
    position: relative;
    order: 1;
    inset: auto;
    overflow: visible;
    padding-bottom: 48px;
  }

  .runner-mosaic__copy-rail {
    position: relative;
    left: auto;
    top: auto;
    transform: none !important;
    padding: 0;
  }

  .runner-mosaic__beat,
  .runner-mosaic__finale {
    opacity: 1 !important;
    transform: none !important;
    padding-bottom: 48px !important;
  }

  .runner-mosaic__field {
    position: relative;
    order: 2;
    width: min(100%, 640px);
    height: min(88vw, 640px);
    margin: 0 auto;
  }
}
