/* Albert Pixel Timeline v0.12: pinned stage, canvas sprites, HTML text */
.apt{
  --apt-bg:transparent; --apt-line:#ffffff; --apt-line-dim:rgba(255,255,255,.3);
  --apt-ped-top:#1d1d1d; --apt-ped-left:#141414; --apt-ped-right:#0d0d0d; --apt-ped-edge:rgba(255,255,255,.35);
  --apt-ink:#ffffff; --apt-accent:#ffffff; --apt-n:10; --apt-step:.8; --apt-panel-bg:#000;
  position:relative; width:100%; color:var(--apt-ink); background:var(--apt-bg);
}
.apt *{ box-sizing:border-box; }
.apt__header{ position:relative; padding:clamp(24px,6vh,64px) 16px 0; text-align:center; }
.apt__heading{ margin:0; font:700 clamp(20px,3.4vw,36px)/1.1 ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace; letter-spacing:.02em; text-transform:uppercase; color:inherit; }
.apt__intro{ margin:.4em 0 0; font:400 clamp(12px,1.4vw,15px)/1.4 ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace; opacity:.75; }
.apt__notice{ margin:8px 16px; padding:8px 12px; border:1px solid #f0b429; background:#fff8e1; color:#5c4400; font:14px/1.4 sans-serif; }

/* the track gives the scroll length; the stage stays pinned while it scrolls past.
   Height = 100svh × (1.95 + milestones × step); the engine uses the same timing. */
.apt__track{ position:relative; height:calc(100vh * (1.95 + var(--apt-n) * var(--apt-step))); height:calc(100svh * (1.95 + var(--apt-n) * var(--apt-step))); }
.apt__stage{ position:sticky; top:0; height:100vh; height:100svh; overflow:hidden; }
.apt--pinjs .apt__stage{ position:absolute; left:0; right:0; }
.apt__cv{ position:absolute; left:0; top:0; width:100%; height:100%; display:block; }

/* text blocks: placed in world space by the engine (desktop) */
.apt__texts{ position:absolute; left:0; top:0; width:0; height:0; will-change:transform; pointer-events:none; }
.apt__text{ position:absolute; left:0; top:0; width:340px; opacity:.72; transition:opacity .35s; }
.apt__text.is-on{ opacity:1; }
.apt__title{ margin:0; font:700 clamp(20px,2vw,27px)/1.15 ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace; letter-spacing:.01em; color:inherit; text-transform:none; }
.apt__year{ display:block; margin-top:.45em; font:600 clamp(13px,1.15vw,15px)/1.2 ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace; letter-spacing:.08em; color:var(--apt-accent); opacity:.85; }
.apt__desc{ margin:.7em 0 0; font-size:15px; line-height:1.55; max-width:36em; color:inherit; }
.apt__end-link{ display:inline-block; margin-top:12px; pointer-events:auto; transition:opacity .2s; }
.apt__end-link:hover{ opacity:.75; }
.apt__end-logo{ display:block; width:min(200px,44vw); height:auto; }

/* phones and small tablets: text in a panel pinned to the bottom of the stage */
.apt--panel .apt__texts{ top:auto; bottom:0; width:100%; height:var(--apt-panel-h,40%); transform:none !important; will-change:auto;
  background:linear-gradient(to bottom, transparent, var(--apt-panel-bg) 28px); }
.apt--panel .apt__text{ left:16px !important; right:16px; top:auto !important; bottom:16px; width:auto !important; opacity:0; visibility:hidden; transition:opacity .3s, visibility 0s .3s; }
.apt--panel .apt__text.is-on{ opacity:1; visibility:visible; transition:opacity .3s; }
.apt--panel .apt__desc{ font-size:14.5px; line-height:1.5; }

/* screen-reader version of the whole story (also shown when scripts are off) */
.apt__sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; margin:-1px; padding:0; }
.apt__sr li{ white-space:normal; }
.apt--fail .apt__track{ display:none; }
.apt--fail .apt__sr{ position:static; width:auto; height:auto; clip:auto; margin:0 auto; max-width:640px; padding:0 16px 40px; white-space:normal; }
