/* The full report for one run. The replay keeps the proof section's layout: the words in a column on the left over
   clean black, the picture on the right (phones: words above, picture below). Everything after it is a quiet document:
   hairlines, tabular numbers, one idea at a time. Red only where Malphas acted; amber only for misses. DEMO DATA. */
html, body { margin: 0; background: #000; color: var(--fg); font-family: var(--text); -webkit-font-smoothing: antialiased; }
html.lenis, html.lenis body { height: auto; }
body { overflow-x: hidden; }
/* a document page: the bar needs a fuller fade so text scrolling under it never shows through the links */
nav.nav.solid::before { background: linear-gradient(#000 0, #000 60%, rgba(0,0,0,0) 100%); height: 108px; }
code { font-family: var(--mono); }
.wrap { width: min(1120px, calc(100vw - 48px)); margin: 0 auto; }

/* shared bits */
.eye { display: flex; align-items: center; gap: 14px; font-size: 11px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; color: var(--fg3); }
.eye b { font-weight: 400; color: var(--red); letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: rgba(232,40,63,.85); border: 1px solid rgba(232,40,63,.35);
  border-radius: 4px; padding: 4px 8px 4px 9px; line-height: 1; }
.chip { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  padding: 6px 11px 6px 10px; border-radius: 999px; border: 1px solid var(--hair); color: var(--fg2); line-height: 1; }
.chip::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.chip.t-red { color: var(--red); border-color: rgba(232,40,63,.34); }
.chip.t-red::before { box-shadow: 0 0 6px rgba(232,40,63,.9); }
.chip.t-amber { color: var(--amber); border-color: rgba(230,179,74,.34); }
.chip.t-white { color: var(--fg); border-color: rgba(236,235,230,.26); }
.chip.t-mute { color: var(--fg3); }
.chip.t-mute::before { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.chip.lg { font-size: 11.5px; padding: 8px 14px 8px 12px; gap: 10px; }
.chip.lg::before { width: 6px; height: 6px; }
.cp { font: inherit; font-family: var(--text); font-size: 11.5px; letter-spacing: .04em; color: var(--fg3); background: none; border: 1px solid var(--hair);
  border-radius: 999px; padding: 5px 12px; cursor: pointer; transition: color .25s ease, border-color .25s ease; flex: none; }
.cp:hover { color: var(--fg); border-color: rgba(236,235,230,.45); }
.cp.done { color: var(--fg); border-color: rgba(236,235,230,.45); }

/* reveals */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease) var(--dl, 0ms), transform 1.1s var(--ease) var(--dl, 0ms); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ---------------------------------------------------------------- 1. header */
.rh { padding: clamp(150px, 19vh, 210px) 0 clamp(90px, 12vh, 140px); }
.rh-eye { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.rh-eye .eye b { color: var(--fg); letter-spacing: .24em; }
.rh-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; margin-top: 44px; }
.rh h1 { margin: 0; font-family: var(--display); font-weight: 300; font-size: clamp(54px, 7.4vw, 112px); line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.rh-sub { display: flex; align-items: center; gap: 20px; margin-top: 26px; font-size: 17px; color: var(--fg2); }
.rh-sum { margin: 42px 0 0; max-width: 31ch; font-family: var(--display); font-weight: 300; font-size: clamp(21px, 1.75vw, 27px); line-height: 1.4; color: var(--fg); text-wrap: pretty; }
.rh-big { text-align: left; min-width: 260px; max-width: 360px; }
.rh-big .n { display: flex; align-items: baseline; font-family: var(--display); font-weight: 200; font-size: clamp(110px, 12.5vw, 196px); line-height: .8; letter-spacing: -.055em;
  font-variant-numeric: tabular-nums; }
.rh-big .n em { font-style: normal; font-size: .3em; letter-spacing: 0; color: var(--fg3); margin-left: .22em; }
.rh-big.amber .n { color: var(--amber); }
.rh-big .l { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--hair); }
.rh-big .l b { display: block; font-weight: 400; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--fg2); }
.rh-big .l span { display: block; margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--fg3); }

.meta { margin: clamp(80px, 10vh, 120px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; }
.meta > div { padding: 20px 0 24px; border-top: 1px solid var(--hair); min-width: 0; }
.meta .w2 { grid-column: span 2; }
.meta dt { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--fg3); }
.meta dd { margin: 11px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--fg); font-variant-numeric: tabular-nums; }
.meta dd.amber { color: var(--amber); }
.meta dd.hash { display: flex; align-items: flex-start; gap: 16px; }
.meta dd.hash code { font-size: 13px; line-height: 1.6; color: var(--fg2); word-break: break-all; letter-spacing: .01em; }

/* ---------------------------------------------------------------- 2. the replay */
.rp { position: relative; height: calc(var(--beats, 11) * 72vh + 100vh); background: #000; }
.rp-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
#rcanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rp.no3d #rcanvas { display: none; }
.rp-labels { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.rtg { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; will-change: transform, opacity; text-align: center; font-family: var(--text); }
.rtg .n { display: block; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--fg2); padding-left: .26em; }
.rtg .x { display: block; margin-top: 6px; font-size: 11.5px; letter-spacing: .02em; color: var(--fg3); opacity: 0; transition: opacity .6s var(--ease); }
.rtg.on .n { color: var(--fg); }
.rtg.on .x { opacity: 1; }
.rtg.hit .n { color: var(--amber); }
.rtg::before { content: ''; position: absolute; left: var(--tx, 50%); width: 1px; height: 8px; background: rgba(236,235,230,.3); top: -12px; }
.rtg.up::before { top: auto; bottom: -12px; }
body.k2 .rtg::before { height: 30px; top: -40px; background: linear-gradient(rgba(230,179,74,0), rgba(230,179,74,.45)); }
body.k2 .rtg.up::before { top: auto; bottom: -40px; background: linear-gradient(rgba(230,179,74,.45), rgba(230,179,74,0)); }

.rp-copy { position: absolute; z-index: 6; top: 0; bottom: 0; left: max(24px, calc((100vw - 1120px) / 2)); width: min(430px, 34vw); pointer-events: none; }
.rp-copy .step { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(calc(-50% + 18px)); opacity: 0; visibility: hidden;
  transition: opacity .6s var(--ease), transform .9s var(--ease), visibility 0s linear .6s; }
.rp-copy .step.on { opacity: 1; visibility: visible; transform: translateY(-50%); transition: opacity .8s var(--ease) .1s, transform 1s var(--ease) .1s, visibility 0s; }
.rp-copy .eye b { font-size: 12px; letter-spacing: .06em; text-transform: none; }
.rp-copy .eye b.wt { color: var(--fg); }
.rp-copy .eye b.am { color: var(--amber); }
.rp-copy h2 { margin: 22px 0 0; font-family: var(--display); font-weight: 300; font-size: clamp(28px, 2.5vw, 40px); line-height: 1.16; letter-spacing: -.012em; color: var(--fg); text-wrap: balance; }
.rp-copy p { margin: 18px 0 0; font-size: 16.5px; line-height: 1.6; color: var(--fg2); max-width: 38ch; text-wrap: pretty; }
.rp-copy .stat { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--hair); }
.rp-copy .stat .n { display: block; font-family: var(--display); font-weight: 200; font-size: clamp(56px, 5vw, 80px); line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.rp-copy .stat.amber .n { color: var(--amber); }
.rp-copy .stat .u { display: block; margin-top: 12px; font-size: 13.5px; color: var(--fg3); }
.rclock { position: absolute; left: 0; bottom: 8vh; }
.rclock .cn { display: flex; align-items: baseline; font-family: var(--display); font-weight: 200; font-size: 40px; line-height: 1; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.rclock .cn em { font-style: normal; color: rgba(236,235,230,.26); }
.rclock .cn span { font-family: var(--text); font-size: 11px; letter-spacing: .3em; margin-left: 12px; color: var(--fg3); }
.rail { position: relative; width: 200px; height: 1px; margin-top: 18px; background: rgba(236,235,230,.14); }
.rail b { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--red); box-shadow: 0 0 8px rgba(232,40,63,.7); }
body.k2 .rail b { background: var(--amber); box-shadow: 0 0 8px rgba(230,179,74,.6); }
.rail i { position: absolute; top: -2px; width: 1px; height: 5px; background: rgba(236,235,230,.28); }

/* ---------------------------------------------------------------- the document sections */
.sec { padding: clamp(120px, 15vh, 170px) 0 0; }
.sec-hd { max-width: 720px; }
.sec-hd .eye .tag { margin-left: 6px; letter-spacing: .2em; }
.sec h2 { margin: 22px 0 0; font-family: var(--display); font-weight: 300; font-size: clamp(34px, 3.3vw, 50px); line-height: 1.1; letter-spacing: -.02em; }
.lede { margin: 20px 0 0; font-size: 17px; line-height: 1.65; color: var(--fg2); max-width: 60ch; text-wrap: pretty; }

/* timeline */
.tl { margin-top: 64px; }
.tl-h, .tl-r { display: grid; grid-template-columns: 150px minmax(0, 1fr) 150px; column-gap: 36px; align-items: start; }
.tl-h { padding-bottom: 14px; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--fg3); }
.tl-h span:last-child { text-align: right; }
.tl-r { padding: 20px 0 21px; border-top: 1px solid var(--hair); }
.tl-r:last-child { border-bottom: 1px solid var(--hair); }
.tt { font-size: 16px; font-variant-numeric: tabular-nums; color: var(--fg); letter-spacing: .01em; }
.tt small { display: block; margin-top: 6px; font-size: 11.5px; color: var(--fg3); letter-spacing: .02em; }
.te b { display: block; font-weight: 400; font-size: 16px; line-height: 1.45; color: var(--fg); }
.te code { display: block; margin-top: 6px; font-size: 12px; line-height: 1.55; color: var(--fg3); overflow-wrap: anywhere; }
.to { text-align: right; padding-top: 1px; }

/* process tree */
.pt { position: relative; margin-top: 64px; padding: 8px 0 4px; }
.pt-wires { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.pt-wires path { fill: none; stroke: rgba(236,235,230,.3); stroke-width: 1; }
.pt-wires .w-rd { stroke: rgba(232,40,63,.7); }
.pt-wires .w-am { stroke: rgba(230,179,74,.7); }
.pt-wires .w-cut { stroke: rgba(232,40,63,.8); stroke-dasharray: 3 5; }
.pt-wires .w-x { stroke: var(--red); stroke-width: 1.5; stroke-dasharray: none; }
.pt-n { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; column-gap: 18px; row-gap: 6px; align-items: baseline;
  margin-left: calc(var(--d) * 56px); padding: 18px 0; }
.pt-n .dot { grid-row: 1; width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(236,235,230,.55); background: #000; align-self: center; justify-self: center; }
.pt-t { grid-column: 2; display: flex; align-items: baseline; gap: 16px; min-width: 0; }
.pt-t b { font-family: var(--display); font-weight: 300; font-size: 22px; letter-spacing: -.005em; color: var(--fg); }
.pt-t .pid { font-family: var(--mono); font-size: 11.5px; color: var(--fg3); white-space: nowrap; }
.pt-n code { grid-column: 2; font-size: 12px; color: var(--fg3); overflow-wrap: anywhere; line-height: 1.55; }
.pt-s { grid-column: 3; grid-row: 1; font-size: 13px; color: var(--fg3); text-align: right; white-space: nowrap; }
.pt-n.s-red .dot { border-color: var(--red); background: var(--red); box-shadow: 0 0 10px rgba(232,40,63,.7); }
.pt-n.s-red .pt-s { color: var(--red); }
.pt-n.s-amber .dot { border-color: var(--amber); background: var(--amber); }
.pt-n.s-amber .pt-s { color: var(--amber); }
.pt-n.s-cut .dot { border-color: var(--red); border-style: dashed; }
.pt-n.s-cut .pt-t b { color: var(--fg2); }
.pt-n.s-cut .pt-s { color: var(--red); }

/* what it tried */
.wt { margin-top: 64px; }
.wt-g { display: grid; grid-template-columns: 180px minmax(0, 1fr); column-gap: 36px; border-top: 1px solid var(--hair); }
.wt-g:last-child { border-bottom: 1px solid var(--hair); }
.wt-l { padding: 24px 0; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--fg2); }
.wt-r { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 32px; padding: 22px 0 23px; }
.wt-r + .wt-r { border-top: 1px solid rgba(236,235,230,.08); }
.wt-w { font-size: 16px; line-height: 1.5; color: var(--fg); }
.wt-m { font-size: 13px; line-height: 1.5; color: var(--fg3); }
.wt-m code { display: block; font-size: 12.5px; color: var(--fg2); margin-bottom: 4px; letter-spacing: .02em; }
.wt-o { display: flex; gap: 12px; font-size: 14px; line-height: 1.55; color: var(--fg2); }
.wt-o i { flex: none; width: 5px; height: 5px; border-radius: 50%; margin-top: .6em; background: var(--fg3); }
.wt-o.t-red i { background: var(--red); box-shadow: 0 0 6px rgba(232,40,63,.9); }
.wt-o.t-amber i { background: var(--amber); }
.wt-o.t-amber span { color: var(--fg); }
.wt-o.t-mute i { background: transparent; box-shadow: inset 0 0 0 1px var(--fg3); }

/* indicators */
.ioc { margin-top: 64px; }
.ioc-g { display: grid; grid-template-columns: 180px minmax(0, 1fr); column-gap: 36px; border-top: 1px solid var(--hair); }
.ioc-g:last-child { border-bottom: 1px solid var(--hair); }
.ioc-l { padding: 22px 0; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--fg2); }
.ioc-r { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto auto; column-gap: 24px; align-items: center; padding: 16px 0; }
.ioc-r + .ioc-r { border-top: 1px solid rgba(236,235,230,.08); }
.ioc-r .k { font-size: 13px; color: var(--fg3); }
.ioc-r .v { font-size: 13px; line-height: 1.55; color: var(--fg); overflow-wrap: anywhere; }
.ioc-r .nt { font-size: 12.5px; color: var(--fg3); text-align: right; white-space: nowrap; }

/* how we tested */
.how { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 36px; }
.how li { border-top: 1px solid var(--hair); padding-top: 22px; }
.how .i { font-family: var(--display); font-weight: 200; font-size: 15px; color: var(--red); font-variant-numeric: tabular-nums; }
.how h3 { margin: 30px 0 0; font-family: var(--display); font-weight: 300; font-size: 22px; letter-spacing: -.005em; }
.how p { margin: 14px 0 0; font-size: 15px; line-height: 1.65; color: var(--fg2); }
.note { margin: 56px 0 0; font-size: 14px; line-height: 1.6; color: var(--fg3); max-width: 64ch; }

/* downloads */
.dl { margin-top: 64px; }
.dl-r { display: grid; grid-template-columns: minmax(0, 1fr) 140px auto; column-gap: 32px; align-items: center; padding: 24px 0; border-top: 1px solid var(--hair); }
.dl-r:last-child { border-bottom: 1px solid var(--hair); }
.dl-r b { display: block; font-family: var(--display); font-weight: 300; font-size: 22px; }
.dl-r span { display: block; margin-top: 6px; font-size: 14.5px; color: var(--fg2); }
.dl-r em { font-style: normal; font-size: 12.5px; letter-spacing: .08em; color: var(--fg3); font-variant-numeric: tabular-nums; }
.dl-r button { font: inherit; font-family: var(--text); font-size: 12.5px; letter-spacing: .04em; padding: 10px 18px; border-radius: 999px;
  border: 1px dashed rgba(236,235,230,.2); background: none; color: var(--fg3); cursor: not-allowed; white-space: nowrap; }

/* related */
.rels { margin-top: 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 36px; }
.rel { display: block; border-top: 1px solid var(--hair); padding: 22px 0 8px; transition: border-color .4s var(--ease); }
.rel:hover { border-color: rgba(236,235,230,.5); }
.rel-h { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--fg3); }
.rel-n { margin-top: 30px; font-family: var(--display); font-weight: 200; font-size: 44px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rel-n.amber { color: var(--amber); }
.rel p { margin: 14px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--fg2); min-height: 3.1em; }
.rel-f { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; font-size: 12.5px; color: var(--fg3); }
.rel .go { color: var(--fg2); white-space: nowrap; transition: color .3s ease; }
.rel .go i { font-style: normal; margin-left: 8px; display: inline-block; transition: transform .4s var(--ease); }
.rel:hover .go { color: var(--fg); }
.rel:hover .go i { transform: translateX(4px); }
.teardown { display: flex; align-items: center; gap: 16px; margin: 64px 0 140px; padding: 26px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  font-family: var(--display); font-weight: 300; font-size: 22px; color: var(--fg2); cursor: default; }
.teardown .soon { font-family: var(--text); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg3); border: 1px solid var(--hair); border-radius: 999px; padding: 4px 9px; }

/* ---------------------------------------------------------------- mid widths */
@media (max-width: 1100px) {
  .tl-h, .tl-r { grid-template-columns: 124px minmax(0, 1fr) 130px; column-gap: 24px; }
  .wt-g, .ioc-g { grid-template-columns: 140px minmax(0, 1fr); column-gap: 24px; }
  .wt-r { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 10px; }
  .wt-o { grid-column: 1 / -1; }
  .how { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
}

/* ---------------------------------------------------------------- phones: one column; the replay's words above its picture */
@media (max-width: 760px) {
  .wrap { width: calc(100vw - 44px); }
  .rh { padding: 120px 0 72px; }
  .rh-main { grid-template-columns: 1fr; gap: 56px; margin-top: 32px; }
  .rh h1 { font-size: 52px; }
  .rh-sub { gap: 14px; margin-top: 20px; font-size: 15px; }
  .rh-sum { margin-top: 30px; font-size: 20px; }
  .rh-big { min-width: 0; max-width: none; }
  .rh-big .n { font-size: 104px; }
  .meta { grid-template-columns: 1fr 1fr; column-gap: 20px; margin-top: 64px; }
  .meta .w2 { grid-column: 1 / -1; }
  .meta dd { font-size: 14.5px; }
  .meta dd.hash { flex-direction: column; gap: 12px; }

  .rp { height: calc(var(--beats, 11) * 64vh + 100vh); }
  .rp-copy { left: 22px; right: 22px; width: auto; }
  .rp-copy .step { top: 96px; transform: translateY(16px); }
  .rp-copy .step.on { transform: none; }
  .rp-copy h2 { font-size: 24px; margin-top: 14px; }
  .rp-copy p { font-size: 14.5px; line-height: 1.55; margin-top: 12px; }
  .rp-copy .stat { display: none; }
  .rclock { bottom: auto; top: calc(47vh - 22px); display: flex; align-items: center; gap: 16px; }
  .rclock .cn { display: none; }
  .rail { margin-top: 0; width: 120px; }
  .rtg .x { display: none; }

  .sec { padding-top: 104px; }
  .sec h2 { font-size: 32px; }
  .lede { font-size: 15.5px; }
  .tl { margin-top: 44px; }
  .tl-h { display: none; }
  .tl-r { grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; column-gap: 16px; }
  .tt { grid-column: 1; grid-row: 1; display: flex; align-items: baseline; gap: 12px; }
  .tt small { margin-top: 0; }
  .to { grid-column: 2; grid-row: 1; }
  .te { grid-column: 1 / -1; }
  .pt { margin-top: 44px; }
  .pt-n { margin-left: calc(var(--d) * 22px); grid-template-columns: 14px minmax(0, 1fr); column-gap: 14px; padding: 14px 0; }
  .pt-t { flex-wrap: wrap; gap: 4px 12px; }
  .pt-t b { font-size: 19px; }
  .pt-s { grid-column: 2; grid-row: auto; text-align: left; white-space: normal; }
  .wt, .ioc { margin-top: 44px; }
  .wt-g, .ioc-g { grid-template-columns: 1fr; }
  .wt-l, .ioc-l { padding: 22px 0 4px; }
  .wt-r { grid-template-columns: 1fr; row-gap: 8px; padding: 16px 0 18px; }
  .ioc-r { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; padding: 14px 0; }
  .ioc-r .k { grid-column: 1; }
  .ioc-r .v { grid-column: 1 / -1; grid-row: 2; }
  .ioc-r .nt { grid-column: 1 / -1; grid-row: 3; text-align: left; white-space: normal; }
  .ioc-r .cp { grid-column: 2; grid-row: 1; }
  .how { grid-template-columns: 1fr; margin-top: 44px; row-gap: 40px; }
  .how h3 { margin-top: 18px; }
  .dl { margin-top: 44px; }
  .dl-r { grid-template-columns: 1fr auto; row-gap: 14px; }
  .dl-r > div { grid-column: 1 / -1; }
  .rels { grid-template-columns: 1fr; row-gap: 36px; margin-top: 44px; }
  .teardown { font-size: 19px; margin-bottom: 96px; }
}
