/* The Phoenix screen story (owner, 11 Nov 2026, Website 25). Built by hero-story-1111.js inside any [data-hero-story].
   Every timed part waits for class is-on; --from (negative) starts it part way, so it can continue exactly where a rendered clip ends.
   Reduced motion: only the last frame (Phoenix, and the three words in a row). */
[data-hero-story] { --from: 0s; --io: cubic-bezier(.65, 0, .35, 1); --out: cubic-bezier(.16, 1, .3, 1); position: relative; container-type: inline-size;
  background: #000; overflow: hidden; }   /* round 9 (owner): pitch black, as on Apple's screen (was a grey radial) */
.hs { position: absolute; inset: 0; width: 100%; height: 100%; display: block; color: #fff; }
.hs text { font-family: "Phoenix Numbers", "Instrument Sans", "Segoe UI", system-ui, sans-serif; }
.hs .hs-word { font-family: Michelangelus, Georgia, serif !important; font-style: italic; font-size: 132px; fill: #fff; }
.hs use, .hs .hs-fill, .hs [class^="hs-a-"] { transform-box: fill-box; transform-origin: center; }
.hs-track { fill: rgb(255 255 255 / 14%); }
.hs-fill { transform-origin: left center !important; transform: scaleX(0); }
.hs-status { font-size: 26px; fill: #9aa0ab; opacity: 0; }
.hs-write { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); }
.hs-pop { opacity: 0; }
.hs-parts, .hs-end > *, .hs-title, .hs-dots { opacity: 0; }
.hs-title { transform: translate(var(--x0), var(--y0)); }
.hs-ttext { font-size: 40px; font-weight: 500; fill: #fff; letter-spacing: .01em; }
.hs-dots { fill: rgb(255 255 255 / 40%); }
/* round 7, the dots set (owner picked it on /review/next/hero-story-ideas/) */
.hs-halo { opacity: 0; }
.hs-a-sdot { fill: #fff; fill-opacity: .88; opacity: 0; }
.hs-a-ring { fill: none; stroke: #fff; stroke-width: 5; stroke-opacity: .9; opacity: 0; filter: drop-shadow(0 0 10px rgb(142 165 255 / 45%)); }
.hs-a-odot { fill: #fff; fill-opacity: .82; opacity: 0; }
.hs-a-odot.is-blue { fill: #8ea5ff; fill-opacity: 1; }
.hs-a-step { fill: #fff; transform-origin: 50% 100% !important; opacity: 0; }
.hs-a-step.is-blue { fill: #8ea5ff; }
.hs-a-top { fill: #fff; opacity: 0; }

/* timeline. Round 6 (owner): "the animation themselves could be made a bit more smoother": longer, eased-in-and-out moves, softer fades */
.is-on .hs-boot use { animation: hs-pop 1s var(--out) calc(.2s + var(--from)) both; }
.is-on .hs-write { animation: hs-write 1.6s var(--io) calc(.6s + var(--from)) both; }
.is-on .hs-track { animation: hs-in .5s ease calc(2s + var(--from)) both; }
.is-on .hs-fill { animation: hs-fillx 1.8s var(--io) calc(2.1s + var(--from)) both; }
.is-on .hs-status { animation: hs-in .6s ease calc(2.2s + var(--from)) both; }
.is-on .hs-boot { animation: hs-out .6s var(--io) calc(4.2s + var(--from)) both; }
.is-on .hs-parts { animation: hs-in .7s var(--io) calc(4.55s + var(--from)) both, hs-out .8s var(--io) calc(8.9s + var(--from)) forwards; }
.is-on .hs-title { animation: hs-title-in .8s var(--out) calc(var(--t) + var(--from)) both, hs-move 1.4s var(--io) calc(8.95s + var(--from)) forwards; }
.is-on .hs-ttext { animation: hs-small 1.3s var(--io) calc(9.05s + var(--from)) both; }
.is-on .hs-halo { animation: hs-in 1.2s ease calc(4.55s + var(--from)) both; }
.is-on .hs-a-sdot { animation: hs-a-ring 1.9s linear calc(var(--t) + var(--from)) both; }
.is-on .hs-a-ring { animation: hs-a-ringline 1.9s ease calc(var(--t) + var(--from)) both; }
.is-on .hs-a-odot { animation: hs-a-sort 1.4s linear calc(var(--t) + var(--from)) both; }
.is-on .hs-a-step { animation: hs-a-step .8s var(--out) calc(var(--t) + var(--from)) both; }
.is-on .hs-a-top { animation: hs-a-drop .8s var(--out) calc(var(--t) + var(--from)) both; }
.is-on .hs-dots { animation: hs-in .7s ease calc(10s + var(--from)) both; }
.is-on .hs-end use { animation: hs-pop 1.1s var(--out) calc(var(--t) + var(--from)) both; }
.is-on .hs-end .hs-rise { animation: hs-rise 1s var(--out) calc(var(--t) + var(--from)) both; }

@keyframes hs-a-ring {
  0% { transform: translate(var(--sx), var(--sy)); opacity: 0; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  10% { opacity: 1; }
  62% { transform: none; opacity: 1; animation-timing-function: ease; }
  100% { transform: none; opacity: 0; } }
@keyframes hs-a-ringline { 0%, 52% { opacity: 0; stroke-dasharray: 0 1; transform: scale(.94); } 100% { opacity: 1; transform: none; stroke-dasharray: 1 0; } }
@keyframes hs-a-sort {
  0% { transform: translate(var(--sx), var(--sy)); opacity: 0; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  12% { opacity: 1; }
  100% { transform: none; opacity: 1; } }
@keyframes hs-a-step { from { transform: scaleY(.02); opacity: 0; } 30% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes hs-a-drop { from { transform: translateY(-70px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hs-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hs-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes hs-pop { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
@keyframes hs-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes hs-write { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hs-fillx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* each title rises in above its part as the part starts, waits, then glides down into the row at the bottom (the move starts at 8.95 s) */
@keyframes hs-title-in { from { opacity: 0; transform: translate(var(--x0), calc(var(--y0) + 14px)); } to { opacity: 1; transform: translate(var(--x0), var(--y0)); } }
@keyframes hs-move { from { transform: translate(var(--x0), var(--y0)); } to { transform: translate(var(--x1), var(--y1)); } }
@keyframes hs-small { from { font-size: 40px; fill: #fff; } to { font-size: 30px; fill: #c9ccd3; } }

@media (prefers-reduced-motion: reduce) {
  .hs * { animation: none !important; }
  .hs-boot, .hs-parts { display: none; }
  .hs-end > *, .hs-dots { opacity: 1; }
  .hs-title { opacity: 1; transform: translate(var(--x1), var(--y1)); }
  .hs-ttext { font-size: 30px; fill: #c9ccd3; }
}
