:root {
  --bg: #f7f7f7;
  --ink: #1d1d20;
  --muted: #8b8b93;
  /* the drawing's four strokes: silhouette, detail, dim, and the one highlight */
  --sil: #9a9aa3;
  --mid: #b9b9c1;
  --lo: #d6d6dc;
  --hi: #232327;
  --sw: 0.9px;
  --ease: cubic-bezier(0.5, 0, 0.1, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* the room: as wide as the column allows, never taller than the screen */
  --hero: min(100vw - 32px, 1040px, (100svh - 170px) * 1.25);
  --glide: cubic-bezier(0.65, 0, 0.2, 1);
}
body[data-stage="site"] { --hero: min(52vw, 760px, (100svh - 64px) * 1.25); }

.layout { min-height: 100svh; display: flex; align-items: center; justify-content: center; }
.hero { flex: none; width: var(--hero); display: grid; gap: 10px; padding: 24px 0; transition: width 1.2s var(--glide); }
.fig { position: relative; }
#stage {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
}
#stage svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }

/* ---------- under the room: the story, then what the camera sees ---------- */

.below { min-height: 132px; display: grid; justify-items: center; align-content: start; }
.intro, .watch { display: grid; justify-items: center; gap: 12px; text-align: center; animation: rise 0.6s var(--glide) both; }
body[data-stage="intro"] .watch, body[data-stage="boot"] .intro, body[data-stage="site"] .below { display: none; }

.hint { margin: 0; max-width: 46ch; color: var(--muted); font-size: 13.5px; text-wrap: balance; }
.fine { margin: 0; color: #a6a6ad; font-size: 11.5px; }
.actions { display: flex; align-items: center; gap: 6px; }
.btn {
  font: 500 13px/1 "Geist", sans-serif; color: #fff; background: var(--ink);
  border: 0; border-radius: 999px; padding: 11px 18px; cursor: pointer;
  transition: background 200ms var(--ease), transform 200ms var(--ease);
}
.btn:hover { background: #000; }
.btn:active { transform: scale(0.97); }
.link {
  font: 13px/1 "Geist", sans-serif; color: var(--muted); background: none; border: 0; padding: 10px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #d0d0d6;
}
.link:hover { color: var(--ink); }
.btn:focus-visible, .link:focus-visible, .links a:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }

/* the camera's eye: a small round mirror, ringed in ink while it sees a face */
.cam {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #ebebee;
  box-shadow: 0 0 0 1px #dcdce1; opacity: 0; transform: scale(0.8);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease), box-shadow 300ms var(--ease);
}
.cam-on .cam { opacity: 1; transform: none; }
.face .cam { box-shadow: 0 0 0 1.5px var(--ink); }
.cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); filter: grayscale(1) contrast(1.05); }
#status { margin: 0; min-height: 1.5em; color: var(--muted); font-size: 13.5px; }

/* ---------- the site, which opens beside the room ---------- */

.site { width: 0; opacity: 0; overflow: hidden; pointer-events: none; transition: width 1.2s var(--glide), opacity 500ms var(--ease); }
body[data-stage="site"] .site { width: min(40vw, 520px); opacity: 1; pointer-events: auto; transition-delay: 0s, 450ms; }
/* the room holds still while the page scrolls beside it */
body[data-stage="site"] .layout { align-items: flex-start; }
body[data-stage="site"] .hero { position: sticky; top: 0; min-height: 100svh; align-content: center; }
.site-inner { width: min(40vw, 520px); padding: 48px 8px 48px 24px; }
body[data-stage="site"] .site-inner > * { animation: rise 0.8s var(--glide) both; }
body[data-stage="site"] .site-inner > :nth-child(2) { animation-delay: 80ms; }
body[data-stage="site"] .site-inner > :nth-child(3) { animation-delay: 160ms; }
body[data-stage="site"] .site-inner > :nth-child(n + 4) { animation-delay: 240ms; }

.eyebrow, .label { margin: 0 0 14px; font: 500 11px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lede { margin: 0 0 14px; font: 500 clamp(22px, 2.1vw, 30px)/1.22 "Geist", sans-serif; letter-spacing: -0.02em; text-wrap: balance; }
.bio { margin: 0 0 44px; max-width: 46ch; color: #5a5a61; font-size: 15px; }
.timeline { list-style: none; margin: 0 0 44px; padding: 0; border-top: 1px solid #e4e4e8; }
.timeline li { display: grid; grid-template-columns: 112px 1fr auto; gap: 16px; padding: 13px 0; border-bottom: 1px solid #e4e4e8; }
.timeline time { padding-top: 2px; font: 12px/1.5 "Geist Mono", ui-monospace, monospace; color: var(--muted); }
.timeline .org, .recognition time { color: var(--muted); text-align: right; }
.timeline a.org { text-decoration: none; transition: color 200ms var(--ease); }
.timeline a.org::after { content: " ↗"; font-size: 0.85em; }
.timeline a.org:hover { color: var(--ink); }
.recognition { list-style: none; margin: 0 0 44px; padding: 0; border-top: 1px solid #e4e4e8; }
.recognition li { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 13px 0; border-bottom: 1px solid #e4e4e8; }
.recognition time { font: 12px/1.5 "Geist Mono", ui-monospace, monospace; padding-top: 2px; }
.bio a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #c9c9cf; }
.bio a:hover { color: var(--ink); }
.timeline li:last-child, .recognition li:last-child { border-bottom: 0; }
.recognition a { color: var(--ink); text-decoration: none; }
.recognition a::after { content: " ↗"; font-size: 0.85em; color: var(--muted); }
.recognition a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #c9c9cf; }
.cta { margin: 0 0 20px; font: 500 18px/1.3 "Geist", sans-serif; letter-spacing: -0.01em; }
.cta a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #c9c9cf; }
.links { list-style: none; display: flex; gap: 20px; margin: 0 0 44px; padding: 0; }
.links a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #d0d0d6; }
.reboot { padding-left: 0; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .hero, .site { transition: none; }
  .intro, .watch, body[data-stage="site"] .site-inner > * { animation: none; }
}

/* ---------- the drawing ---------- */

#fig :where(path, rect, circle, ellipse, line, polygon) {
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  stroke-linecap: round;
}
#fig .under { stroke: var(--sil); stroke-width: calc(var(--sw) * 2 + 0.6px); transition: stroke 260ms var(--ease); }
#fig .under.hi { stroke: var(--hi); }
#fig .under.soft { stroke: var(--lo); stroke-width: calc(var(--sw) * 2); }
/* each face is stroked in its own tone, so neighbouring faces close over the seam between them */
#fig .face { stroke-width: 0.6px; }
#fig .edge { fill: none; stroke: var(--mid); stroke-width: var(--sw); }
#fig .edge.lo { stroke: var(--lo); }
#fig .sil-line { fill: none; stroke: var(--sil); stroke-width: var(--sw); transition: stroke 260ms var(--ease); }
#fig .hi .sil-line, #fig .sil-line.hi { stroke: var(--hi); }
#fig .ln { stroke-width: var(--sw); }
#fig .ln.sil { stroke: var(--sil); }
#fig .ln.mid { stroke: var(--mid); }
#fig .ln.lo { stroke: var(--lo); }
#fig .ln:not([fill]) { fill: none; }
#fig .raw { vector-effect: none; stroke-width: 1.5; }

/* cords: a dark line with a light one inside it reads as a round cable */
#fig .cord-o { fill: none; stroke: var(--sil); stroke-width: 3.4px; }
#fig .cord-i { fill: none; stroke: #f9f9fa; stroke-width: 1.7px; }
#fig .cord-o.thin { stroke-width: 2.8px; }
#fig .cord-i.thin { stroke-width: 1.2px; }
#fig .cord-o.bead { stroke-width: 7px; }
#fig .cord-i.bead { stroke-width: 5.2px; stroke: #ededf0; }

/* the shag's pile, the pad's coloured symbols, the console's port numbers, the VCR that never got set */
#fig .rug { stroke: none; }
#fig .tuft { fill: none; stroke: #ddd3c3; stroke-width: 0.9px; }
#fig .tuft.hi-pile { stroke: #fffdf9; stroke-width: 1px; }
#fig .shadow { fill: #4a3c2b; stroke: #4a3c2b; stroke-width: 7px; }
#fig .stick-ring { fill: none; stroke: #7e7e87; }
#fig .mark { fill: none; stroke-width: 1.3px; }
#fig .sym { fill: none; stroke-width: 0.9px; }
/* the covers' type */
#fig .cv-tag { font: 500 0.72px "Geist Mono", monospace; letter-spacing: 0.12px; fill: #8f9aa6; }
#fig .cv-title { font: 800 1.9px "Archivo", sans-serif; font-stretch: 100%; letter-spacing: 0.15px; fill: #eef0f3; }
#fig .cv-sub { font: 500 0.62px "Geist Mono", monospace; letter-spacing: 0.08px; fill: #8b95a0; }
#fig .ps-num { font: 500 1.5px "Geist", sans-serif; fill: #8d8d96; }
#fig .vcr-clock { font: 500 1.8px "Geist Mono", monospace; fill: #5fd38d; animation: blink 1s steps(1, end) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #fig .vcr-clock { animation: none; } }

#fig .led { stroke: none; transition: fill 400ms var(--ease); }
#fig .led.off { fill: #d2d2d8; }
#fig .led.standby { fill: #e5484d; }
#fig .led.on { fill: #30a46c; }
#fig .led.red { fill: #e5484d; }

/* the picture's type */
#fig .crt-word { font: 800 25px "Archivo", sans-serif; font-stretch: 125%; letter-spacing: 1px; fill: #1f2f8f; }
#fig .crt-sub { font: 700 15px "Archivo", sans-serif; letter-spacing: 0.5px; fill: #1f2f8f; }
#fig .crt-sub2 { font: 700 10.5px "Archivo", sans-serif; letter-spacing: 0.5px; fill: #1f2f8f; }
#fig .crt-name { font: 400 19px "Geist", sans-serif; letter-spacing: -0.2px; fill: #d4d4d4; }
#fig .crt-small { font: 400 8.5px "Geist", sans-serif; fill: #bdbdbd; }

/* ---------- narrow screens: the room is bigger, the site follows below it ---------- */
@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  body, body[data-stage="site"] { --hero: min(100vw - 32px, 560px); }
  .layout { flex-direction: column; }
  body[data-stage="site"] .layout { justify-content: flex-start; }
  body[data-stage="site"] .layout { align-items: center; }
  body[data-stage="site"] .hero { position: static; min-height: 0; }
  .fig { width: 100vw; margin-left: calc(50% - 50vw); overflow: hidden; }
  #stage { width: 136%; margin-left: -18%; }
  .site { width: 100%; max-height: 0; transition: opacity 500ms var(--ease); }
  body[data-stage="site"] .site { width: 100%; max-height: none; }
  .site-inner { width: min(100%, 560px); margin: 0 auto; padding: 8px 20px 64px; }
  .timeline li { grid-template-columns: 1fr auto; row-gap: 2px; }
  .timeline time { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .hero { gap: 6px; padding: 16px 0; }
  #fig .cord-o { stroke-width: 2.6px; }
  #fig .cord-i { stroke-width: 1.2px; }
}
