@font-face{font-family:"OFT";src:url("/fonts/of-inter-tight-800.woff2") format("woff2");font-weight:800;font-display:block}
@font-face{font-family:"OFI";src:url("/fonts/of-inter-400.woff2") format("woff2");font-weight:400;font-display:block}
@font-face{font-family:"OFM";src:url("/fonts/JetBrainsMono-var.woff2") format("woff2");font-display:block}

:root{
  --t-ink:#0b0a08;
  --t-block:#141412;
  --t-edge:#2b2922;
  --t-yel:#faff69;
  --t-cream:#f4f4ef;
  --t-mut:#8a8a82;
  --t-dim:#6d6d63;
  --s:1;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:#000;overflow:hidden}
body{font-family:"OFI",system-ui,sans-serif;-webkit-font-smoothing:antialiased;color:var(--t-cream)}

/* ---- the stage ------------------------------------------------------- */
/* A fixed 1080x1350 box scaled by transform still occupies its layout width,
   so it is placed at the centre by offset and only then scaled. */
.stage{
  position:absolute;left:50%;top:50%;width:1080px;height:1350px;
  margin:-675px 0 0 -540px;
  transform:scale(var(--s));transform-origin:50% 50%;
  background:radial-gradient(118% 74% at 50% 6%,#16140f 0%,#0b0a08 44%,#070706 100%);
  display:flex;flex-direction:column;justify-content:flex-end;
  padding:44px 46px 56px;perspective:2400px;perspective-origin:50% 50%;
}

/* ---- the rows -------------------------------------------------------- */
.row{position:relative;opacity:0;transform-origin:50% 100%;transform:rotateX(-90deg)}
/* lower rows paint above higher ones: a rising row emerges from behind its neighbour */
#rowWorld{z-index:4}#rowPapers{z-index:3}#rowPerf{z-index:2}#rowCap{z-index:1}
/* Every row: folded back into the page on the seam, then swung up into place.
   The rotation is ONE segment with one easing — a keyframe list that re-states
   the angle at 16/56/74/88% restarts the ease-out at each stop, which is what a
   reader sees as three little arrivals instead of one swing. The fade rides a
   second animation on its own property so it cannot split the angle's curve. */
.row{will-change:transform}
.row.on{
  animation:
    flipUp 780ms cubic-bezier(.17,.89,.24,1.02) both,
    flipIn 200ms linear both;
}
@keyframes flipUp{
  from{transform:rotateX(90deg)}
  to  {transform:rotateX(0)}
}
@keyframes flipIn{
  from{opacity:0}
  to  {opacity:1}
}
body.frozen .row{animation-play-state:paused !important}

.three{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.kick{
  font-family:"OFM",monospace;font-size:11px;letter-spacing:.20em;
  text-transform:uppercase;color:var(--t-dim);margin:0 0 13px;
}

/* ---- the capstone ---------------------------------------------------- */
/* The address is the only line on the frame that is not a document, a system or
   a measured number, so it is pressed on rather than hinged. The rows flip;
   this is set. */
.cap{
  padding-bottom:72px;text-align:center;
  opacity:1;transform:none;
}
.cap.on{animation:none}
.cap .dom,.cap .beta{opacity:0}
.cap.on .dom{
  animation:stamp 420ms cubic-bezier(.16,.84,.2,1) both;
}
/* a stamp does not travel and does not bounce: it arrives 5% large and out of
   focus, presses down 6px, and stops dead. No overshoot — the press is the
   whole gesture. */
@keyframes stamp{
  0%  {opacity:0;transform:scale(1.055) translateY(-6px);filter:blur(7px)}
  40% {opacity:1}
  100%{opacity:1;transform:scale(1) translateY(0);filter:blur(0)}
}
.cap.on .beta{
  animation:fade 420ms ease-out both;
}
@keyframes fade{from{opacity:0}to{opacity:1}}
/* a frozen capture holds the press exactly where the address says it is */
body.frozen .cap .dom,
body.frozen .cap .beta{animation-play-state:paused}
.dom{
  display:flex;align-items:baseline;justify-content:center;gap:16px;line-height:1;
  font-family:"OFT",system-ui,sans-serif;font-weight:800;
  font-size:62px;letter-spacing:-.035em;color:var(--t-cream);
}
.dom i{font-style:normal;font-weight:400;font-family:"OFI",sans-serif;color:var(--t-yel)}
.dom a{color:inherit;text-decoration:none}
.dom a:hover{color:var(--t-yel)}
/* the date sits on the frame's own axis — under the centred address, not under
   one half of it */
.beta{
  margin:15px 0 0;font-family:"OFM",monospace;font-size:13px;
  letter-spacing:.22em;text-transform:uppercase;color:var(--t-yel);
}

/* ---- the systems ----------------------------------------------------- */
/* the products and their numbers are one block: one flip carries both, so
   nothing separates a product from the result it earned */
.perf .three{margin-bottom:26px}
.cell{
  position:relative;background:var(--t-block);border:1px solid var(--t-edge);
  border-radius:2px;padding:17px 17px 15px;
}
.name{display:flex;align-items:center;gap:9px;line-height:1}
.name svg{display:block;flex:none}
.name b{
  font-family:"OFT",system-ui,sans-serif;font-weight:800;font-size:23px;
  letter-spacing:-.028em;color:var(--t-cream);
}
.name b .sl{color:var(--t-mut);font-weight:400}
.name a{text-decoration:none;color:inherit}
.name a:hover b{color:var(--t-yel)}
/* the cell states what the system is, in one line, under its name */
.tag{
  margin:9px 0 0;font-family:"OFM",monospace;font-size:10px;letter-spacing:.12em;
  text-transform:uppercase;color:#8a8a82;
}
/* one arrow per column, rising out of the row beneath into this one */
.up{
  position:relative;width:1px;height:26px;display:block;
  background:linear-gradient(to top,rgba(250,255,105,.12),rgba(250,255,105,.85));
}
.up::before{
  content:"";position:absolute;left:-4.5px;top:-8px;
  border-left:5px solid transparent;border-right:5px solid transparent;
  border-bottom:9px solid rgba(250,255,105,.85);
}

/* ---- the measured row ------------------------------------------------ */
.bars{position:relative;padding-bottom:56px}
.ups{
  position:absolute;left:0;right:0;bottom:15px;pointer-events:none;
  display:grid;grid-template-columns:repeat(3,1fr);gap:22px;
}
/* centred on the column, so the arrow stands over the middle of the paper below it */
.ups .up{justify-self:center}
.groups{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.grp{position:relative;padding:0 2px}
.gh{margin:0 0 10px}
.gm{font-family:"OFM",monospace;font-size:10px;letter-spacing:.15em;color:#a0a096;text-transform:uppercase}
.m{display:grid;grid-template-columns:58px 1fr;gap:9px;align-items:center}
.m+.m{margin-top:9px}
.who{font-family:"OFM",monospace;font-size:9px;letter-spacing:.06em;color:#7c7c72;text-transform:uppercase}
.track{position:relative;display:block;border-bottom:1px solid rgba(240,240,235,.10)}
.track::after{
  content:"";position:absolute;right:0;bottom:-1px;width:1px;height:5px;
  background:rgba(240,240,235,.20);
}
.bar{position:relative;display:block;height:34px;width:calc(var(--w) * 100%)}
/* a bar's length is its measured value; each is one class because the site's
   CSP refuses an inline style attribute */
.bar.w1{--w:1}.bar.w3462{--w:.3462}.bar.w3512{--w:.3512}.bar.w7396{--w:.7396}
.bar i{
  position:absolute;inset:0;border:1px solid #3c392d;border-radius:2px;
  background:linear-gradient(178deg,#2a2a21 0%,#1e1e18 56%,#151511 100%);
  transform:scaleX(0);transform-origin:left center;will-change:transform;
  animation:barGrow 620ms cubic-bezier(.2,.8,.24,1) both;
}
.bar i::before{
  content:"";position:absolute;inset:0 0 auto 0;height:1px;
  background:linear-gradient(to right,rgba(240,240,235,.05),rgba(240,240,235,.34),rgba(240,240,235,.05));
}
.bar b{
  position:absolute;right:8px;top:0;bottom:0;display:flex;align-items:center;
  font-family:"OFT",sans-serif;font-weight:800;font-size:15px;letter-spacing:-.02em;
  color:#7d7d73;
}
.bar.win b{color:var(--t-yel)}
.bar.win i{
  border-color:#514c35;
  background:linear-gradient(178deg,#33322a 0%,#23231c 56%,#171713 100%);
}
.bar.win i::before{
  background:linear-gradient(to right,rgba(250,255,105,.05),rgba(250,255,105,.62),rgba(250,255,105,.05));
}
@keyframes barGrow{0%{transform:scaleX(0)}100%{transform:scaleX(1)}}
/* frozen capture: a paused animation would hold the fills at scaleX(0) */
body.frozen .bar i{animation:none !important;transform:scaleX(1)}
body.frozen .bar b{animation:none !important;opacity:1}

/* ---- the papers ------------------------------------------------------ */
.papers{padding-bottom:44px}
.papers .three{align-items:end}
.page{display:flex;justify-content:center}
.page a.hit{display:inline-block;line-height:0}
.covers a.hit{display:block;line-height:0}
.page a.hit:hover img,.covers a.hit:hover img{outline:1px solid rgba(250,255,105,.55);outline-offset:3px}
.page img{
  display:block;height:339px;width:auto;
  border:1px solid var(--t-edge);box-shadow:0 20px 48px rgba(0,0,0,.6);
}
/* a slot with no page yet still holds its column */
.page .ph{
  width:240px;height:339px;border:1px dashed #3b3a30;border-radius:2px;
  display:flex;align-items:center;justify-content:center;text-align:center;
  font-family:"OFM",monospace;font-size:10px;letter-spacing:.16em;
  text-transform:uppercase;color:#4e4e47;padding:18px;
}

.world{margin:0}
.covers{align-items:end;grid-template-columns:repeat(3,1fr)}
/* four across: the world row carries one volume more than the research row */
.four{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.covers img{
  display:block;width:100%;height:auto;
  border:1px solid var(--t-edge);box-shadow:0 14px 34px rgba(0,0,0,.5);
}
