/* Owl story: scroll scene where a photographed owl turns into the SuperCPQ owl.
   Used on about.html after the founders (the Met's bronze Athena flying her owl, public domain). Another image only
   needs a new image and new data-story settings on .story-frame. */

.owl-scene { position: relative; height: 300vh; background: #0B0F1F; color: #fff; }
.story-stage { position: sticky; top: 72px; height: calc(100vh - 72px); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 6vw; padding: 0 6vw; overflow: hidden; }

.story-copy { position: relative; height: 16em; }
.story-line { position: absolute; inset: 0 auto auto 0; max-width: 30rem; opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.story-line.is-on { opacity: 1; transform: none; }
.story-line .kicker { display: block; color: var(--cyan); font-weight: 600; margin-bottom: 14px; }
.owl-scene .story-line h2 { color: #fff; font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.08; letter-spacing: -.03em; margin: 0; font-weight: 700; }
.story-line h2 span { color: #A9C2FF; }
.story-line p { color: #B9C1E0; font-size: 1.1rem; margin-top: 18px; }

.story-frame { position: relative; width: min(100%, 540px); aspect-ratio: 1 / 1; margin-left: auto; border-radius: 18px; overflow: hidden; background: #DDE1E8; box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06); }
/* .story-art is the image at its natural size; the camera moves it, and everything inside moves with it */
.story-art { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.owl-scene .story-art img { display: block; max-width: none; }
.story-photo { position: absolute; inset: 0; width: 100%; height: 100%; will-change: filter, opacity; }
.story-tint { position: absolute; inset: 0; background: var(--indigo); mix-blend-mode: color; opacity: 0; pointer-events: none; }
.story-clean { position: absolute; border-radius: 50%; background: radial-gradient(circle, #FFFFFF 0%, var(--cloud) 70%); transform: scale(0); will-change: transform; }
.story-logo { position: absolute; opacity: 0; will-change: opacity, transform; }
.story-credit { position: absolute; left: 14px; bottom: 12px; right: 90px; font-size: .7rem; line-height: 1.35; color: rgba(255,255,255,.9); background: rgba(5,7,15,.55); padding: 5px 10px; border-radius: 10px; width: fit-content; transition: opacity .4s; }
.story-progress { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 6px; }
.story-progress i { width: 18px; height: 3px; border-radius: 3px; background: rgba(23,32,51,.25); }
.story-progress i.on { background: var(--indigo); }

@media (max-width: 800px) {
  .story-stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: 28px 20px 24px; gap: 18px; align-content: start; }
  .story-copy { height: 11em; }
  .owl-scene .story-line h2 { font-size: 1.6rem; }
  .story-line p { font-size: .98rem; margin-top: 10px; }
  .story-frame { width: min(100%, 380px); margin: 0 auto; }
}

/* Without JS: no scroll scene, just the coin and the copy */
html:not(.js) .owl-scene { height: auto; }
html:not(.js) .story-stage { position: static; height: auto; padding: 48px 6vw; }
html:not(.js) .story-line { position: static; opacity: 1; transform: none; margin-bottom: 28px; }
html:not(.js) .story-copy { height: auto; }
