/* Track record (the dark timeline on the home page and why-move-happy) draws itself once, the first time it comes into
   view. It uses the site's own reveal: [data-reveal] on .sky-track gets .is-in from marketing-site.js.
   Wide screens (the timeline): the years play from 1996 to Today at one steady pace. Each stretch is laid brick by brick
   (the owner, 2026-11-11): the whole block drops into place with a small settle as its year is reached, one at a time,
   a heading arrives as its year is reached, the axis years light up as they pass, and the Today dot pulses at the end.
   Narrow screens (the stacked list): the headings, then the blocks, one after another.
   The page's real text and buttons are what move, so it fits any width and stays readable and clickable. Without
   JavaScript, or for visitors who ask for reduced motion (marketing-site.css stops all motion), it is simply there. */

.sky-track { --u: 0.075s; --t0: 0.45s; --today: calc(var(--t0) + 30 * var(--u)); }

/* --a: the year it starts, counted from 1996; --d: how many years it runs; --i: its place in the stacked list. */
.sky-seg--field  { --a: 0;  --d: 6;  --i: 0; }
.sky-seg--aloha  { --a: 6;  --d: 9;  --i: 1; }
.sky-seg--still  { --a: 6;  --d: 3;  --i: 1; }
.sky-seg--move   { --a: 15; --d: 5;  --i: 2; }
.sky-seg--speech { --a: 20; --d: 10; --i: 3; }
.sky-seg--ai     { --a: 26; --d: 4;  --i: 4; }
.sky-seg--under  { --a: 20; --d: 10; --i: 5; }
/* --n: its turn when the blocks are laid one at a time; --b: a short wait for a block that starts the same year as the one
   before it, so no two land together. */
.sky-seg--field { --n: 0; } .sky-seg--aloha { --n: 1; } .sky-seg--still { --n: 2; --b: 0.24s; } .sky-seg--move { --n: 3; }
.sky-seg--speech { --n: 4; } .sky-seg--under { --n: 5; --b: 0.24s; } .sky-seg--ai { --n: 6; }
.sky-track__heads p:nth-child(1), .sky-track__tick.is-start { --a: 0;  --i: 0; }
.sky-track__heads p:nth-child(2), .sky-track__tick.is-mid   { --a: 15; --i: 1; }
.sky-track__heads p:nth-child(3), .sky-track__tick.is-end   { --a: 30; --i: 2; }
.sky-track__axis span:nth-child(1) { --a: 0; }
.sky-track__axis span:nth-child(2) { --a: 5; }
.sky-track__axis span:nth-child(3) { --a: 10; }
.sky-track__axis span:nth-child(4) { --a: 15; }
.sky-track__axis span:nth-child(5) { --a: 20; }
.sky-track__axis span:nth-child(6) { --a: 25; }
.sky-track__axis span:nth-child(7) { --a: 30; }

/* Laid: each block arrives whole, dropping a little and settling, when the years reach it. */
.ms-js .sky-track[data-reveal] .sky-seg {
  transition: opacity 0.18s ease, transform 0.46s cubic-bezier(0.34, 1.5, 0.64, 1);
  transition-delay: calc(var(--t0) + var(--a) * var(--u) + var(--b, 0s));
}
.ms-js .sky-track[data-reveal] .sky-track__heads p {
  transition: opacity 0.5s ease, transform 0.6s var(--ms-ease);
  transition-delay: calc(var(--t0) + var(--a) * var(--u));
}
.ms-js .sky-track[data-reveal] .sky-track__tick {
  transform-origin: top;
  transition: transform 0.3s ease-out calc(var(--t0) + var(--a) * var(--u) - 0.1s);
}
.ms-js .sky-track[data-reveal] .sky-track__axis span {
  transition: opacity 0.3s ease calc(var(--t0) + var(--a) * var(--u));
}

/* Before it comes into view. */
.ms-js .sky-track[data-reveal]:not(.is-in) .sky-seg { opacity: 0; transform: translateY(-18px); transition: none; }
.ms-js .sky-track[data-reveal]:not(.is-in) .sky-track__heads p { opacity: 0; transform: translateY(6px); transition: none; }
.ms-js .sky-track[data-reveal]:not(.is-in) .sky-track__tick { transform: scaleY(0); transition: none; }
.ms-js .sky-track[data-reveal]:not(.is-in) .sky-track__axis span { opacity: 0.3; transition: none; }

/* Today: the dot's ring pulses three times once the years reach it. */
.sky-track__heads i { position: relative; }
.ms-js .sky-track[data-reveal].is-in .sky-track__heads i::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  animation: sky-track-today 1.8s ease-out var(--today) 3;
}
@keyframes sky-track-today {
  from { box-shadow: 0 0 0 0 rgba(95, 211, 154, 0.55); }
  to   { box-shadow: 0 0 0 12px rgba(95, 211, 154, 0); }
}

/* Wide: a thin line marks the year as it moves along. */
@media (min-width: 1001px) {
  .ms-js .sky-track[data-reveal] .sky-track__plot::after {
    content: ""; position: absolute; top: 32px; left: 0; width: 2px; height: 112px; margin-left: -1px; border-radius: 1px;
    background: rgba(255, 254, 252, 0.75); box-shadow: 0 0 10px rgba(255, 254, 252, 0.3); opacity: 0; pointer-events: none;
  }
  .ms-js .sky-track[data-reveal].is-in .sky-track__plot::after {
    animation: sky-track-year calc(30 * var(--u)) linear var(--t0) both;
  }
}
@keyframes sky-track-year {
  from { left: 0; opacity: 0; }
  4%   { opacity: 1; }
  92%  { opacity: 1; }
  to   { left: 100%; opacity: 0; }
}

/* Narrow: the stacked list's blocks are laid in order, quicker. */
@media (max-width: 1000px) {
  .sky-track { --today: 1.5s; }
  .ms-js .sky-track[data-reveal] .sky-seg { transition-delay: calc(0.4s + var(--n) * 0.15s); }
  .ms-js .sky-track[data-reveal] .sky-track__heads p { transition-delay: calc(0.2s + var(--i) * 0.1s); }
}
