/* ARTIO Ascent — restrained light, driven only by the reader's scroll. */
.hero-track {
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.hero-track .hero-stage {
  position: relative;
  min-height: min(760px, calc(100vh - var(--header)));
  min-height: min(760px, calc(100svh - var(--header)));
  padding: clamp(62px, 9vh, 108px) 0 98px;
  overflow: visible;
}

.hero-track .hero-copy { width: min(730px, 61%); }
.hero-track .hero h1 .lime { color: #e9e8ec; }
.hero-track .hero-copy > .eyebrow { color: #a09ca8; }
.hero-track .hero-description { color: #9b98a5; }

.hero-track .hero-art {
  position: absolute;
  inset: 16px -34px 65px 44%;
  width: auto;
  max-width: none;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  contain: paint;
}

.hero-track .hero-art::after { content: none; }
.ascent-artwork { display: block; width: 100%; height: 100%; overflow: visible; }
.ascent-enabled .ascent-artwork [data-ascent-body] { opacity: .8; }
.ascent-enabled .ascent-artwork [data-ascent-outline] { opacity: .52; }
.ascent-enabled .ascent-artwork [data-ascent-step] { opacity: .2; }
.ascent-enabled .ascent-artwork [data-ascent-step="0"] { opacity: .58; }
.ascent-enabled .ascent-artwork [data-ascent-step-halo] { opacity: .018; }
.ascent-enabled .ascent-artwork [data-ascent-glint] { opacity: 0; }
.ascent-enabled .ascent-artwork [data-ascent-apex] { opacity: .24; }

.ascent-pinned { height: calc(var(--ascent-stage-size) + var(--ascent-distance)); }
.ascent-pinned .hero-stage { position: sticky; top: var(--ascent-pin-top, var(--header)); }

.hero-track .hero-footnote { bottom: 28px; gap: 24px; }
.hero-track .hero-footnote > span:first-child { color: #686470; font-size: 8px; letter-spacing: 1.2px; }
.ascent-scroll-cue {
  display: none;
  align-items: center;
  gap: 13px;
  margin-left: auto;
  color: #8c8798;
  font: 10px/1.5 'Segoe UI', sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
}
.ascent-hint-short { display: none; }
.ascent-scroll-meter { display: block; width: 42px; height: 1px; overflow: hidden; background: #38333f; }
.ascent-scroll-meter i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #b7d995, #b9a0dc);
  transform: scaleX(0);
  transform-origin: left center;
}
.ascent-scroll-arrow { font: 16px/1 sans-serif; color: #aaa0bc; }
.ascent-ready .ascent-scroll-cue { display: flex; }
.ascent-reduced .ascent-scroll-cue { display: none; }

@media (min-width: 951px) and (max-height: 740px) {
  .hero-track .hero-stage { padding-top: 46px; padding-bottom: 78px; }
  .hero-track .hero-copy > .eyebrow { margin-bottom: 24px; }
  .hero-track .hero h1 { font-size: clamp(48px, 4.8vw, 66px); margin-bottom: 23px; }
  .hero-track .hero-description { font-size: 14px; line-height: 1.7; margin-bottom: 25px; }
  .hero-track .creator-line { display: none; }
  .hero-track .hero-art { inset: 0 -24px 43px 44%; }
  .hero-track .hero-footnote { bottom: 23px; }
}

@media (max-width: 1200px) {
  .hero-track .hero-art { right: -24px; left: 43%; }
  .hero-track .hero-footnote > span:nth-child(2) { display: none; }
}

@media (max-width: 950px), (max-height: 550px) {
  .hero-track .hero-stage { min-height: 0; padding: 55px 0 66px; }
  .hero-track .hero-copy { width: 100%; max-width: 700px; }
  .hero-track .hero-art {
    position: relative;
    inset: auto;
    width: min(600px, 100%);
    height: clamp(305px, 66vw, 490px);
    margin: 8px auto 0;
    padding: 0;
  }
  .hero-track .hero-footnote { bottom: 21px; }
  .hero-track .hero-footnote > span:first-child { display: none; }
  .hero-track .hero-footnote > span:nth-child(2) { display: block; font-size: 10px; }
  .hero-track .ascent-hint-full { display: none; }
  .hero-track .ascent-hint-short { display: inline; }
}

@media (max-width: 540px) {
  .hero-track .hero-stage { padding-top: 48px; padding-bottom: 62px; }
  .hero-track .hero-art { width: calc(100% + 20px); margin: 9px -10px 0; height: clamp(290px, 86vw, 370px); }
  .hero-track .hero-copy > .eyebrow { margin-bottom: 25px; }
  .hero-track .hero-description { line-height: 1.75; }
  .hero-track .creator-line { margin-top: 27px; }
  .hero-track .ascent-scroll-cue { gap: 9px; }
  .hero-track .ascent-scroll-meter { width: 32px; }
  .hero-track .hero-footnote > span:nth-child(2) { font-size: 9px; }
}

@media (max-height: 550px) {
  .hero-track .hero-art {
    height: min(490px, calc(100vh - var(--header) - 28px));
    height: min(490px, calc(100svh - var(--header) - 28px));
  }
}

/* Both CSS and the controller honor the preference, including changes mid-page. */
@media (prefers-reduced-motion: reduce) {
  .ascent-pinned { height: auto; }
  .ascent-pinned .hero-stage { position: relative; top: auto; }
  .ascent-artwork [data-ascent-body] { opacity: .97 !important; }
  .ascent-artwork [data-ascent-outline] { opacity: .82 !important; }
  .ascent-artwork [data-ascent-step] { opacity: .88 !important; }
  .ascent-artwork [data-ascent-step-halo] { opacity: .063 !important; }
  .ascent-artwork [data-ascent-glint] { opacity: 0 !important; }
  .ascent-artwork [data-ascent-apex] { opacity: .64 !important; }
  .hero-track .ascent-scroll-cue { display: none; }
}
