/* Antropi Robotics — site styles.
   Blocks are in cascade order: later blocks deliberately override earlier ones. Do not reorder. */

/* ---- reset the page was built against ---- */
[hidden] {
  display: none !important;
}
img {
  max-width: 100%;
}

/* ==========================================================================
   Base
   ========================================================================== */
/* Antropi, told as one line: context, problem, answer. Amca's structure and serif statements, Atlas's grid and
   giant words, Antropi's ink, paper and violet. One continuous vector line draws every illustration. */
:root {
  --sc: 1;
  --ink: #131313;
  --ink2: #1b1a21;
  --paper: #efeef3;
  --paper2: #e2e0ea;
  --v: #8447ff;
  --v2: #b79bff;
  --on-ink: #efeef3;
  --on-ink2: rgba(239, 238, 243, 0.62);
  --on-ink3: rgba(239, 238, 243, 0.28);
  --mute: #5e5b66;
  --line: rgba(19, 19, 19, 0.14);
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", "Times New Roman", serif;
  --g: clamp(16px, 2.2vw, calc(36px * var(--sc)));
  --inset: clamp(8px, 1vw, calc(16px * var(--sc)));
  --cw: min(calc(1280px * var(--sc)), calc(100vw - 2 * var(--g)));
  --cl: calc((100vw - var(--cw)) / 2);
  --top: clamp(92px, 13vh, calc(132px * var(--sc)));
  --sky:
    radial-gradient(70% 60% at 50% 44%, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0) 70%),
    radial-gradient(100% 80% at 6% 0%, #9c90e6 0%, rgba(156, 144, 230, 0) 62%),
    radial-gradient(90% 80% at 96% 100%, #d8c6f0 0%, rgba(216, 198, 240, 0) 64%),
    linear-gradient(180deg, #b7aee6 0%, #e4e0f2 70%, #eae6f4 100%);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 .08  0 0 0 0 .07  0 0 0 0 .12  0 0 0 -1.1 .62'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
  --grainL: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 .94  0 0 0 0 .93  0 0 0 0 .96  0 0 0 -1.2 .66'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  --fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .18' numOctaves='3' seed='4'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 .3  0 0 0 0 .28  0 0 0 0 .4  0 0 0 .9 -.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='.14'/%3E%3C/svg%3E");
  color-scheme: light;
}
/* bigger than a laptop: the whole sheet scales up, not just the gutters */
@media (min-width: 1500px) {
  :root {
    --sc: 1.15;
  }
}
@media (min-width: 1800px) {
  :root {
    --sc: 1.35;
  }
}
@media (min-width: 2300px) {
  :root {
    --sc: 1.6;
  }
}
* {
  box-sizing: border-box;
}
html,
body {
  overflow-x: clip;
}
body {
  margin: 0;
  background: #c9c3ea;
  color: var(--ink);
  font-family: var(--sans);
  font-size: calc(16px * var(--sc));
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--sky);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  background-image: var(--grain);
}
h1,
h2,
h3,
p,
figure,
ul,
ol {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
::selection {
  background: var(--v);
  color: #fff;
}

/* type: a serif for what we say, a quiet sans for everything else */
.lab {
  font-weight: 500;
  font-size: calc(12.5px * var(--sc));
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.stmt {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: clamp(32px, 3.5vw, calc(62px * var(--sc)));
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.stmt em {
  font-style: italic;
  font-weight: 300;
}
.big {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.86;
}
.body {
  font-size: clamp(15px, 1.05vw, calc(17px * var(--sc)));
  line-height: 1.5;
  max-width: 40ch;
}
/* reveals: statements rise word by word out of a mask; paragraphs follow */
.rv .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.04em 0.02em 0.24em;
  margin: -0.04em -0.02em -0.24em;
}
.rv .w > span {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 1.15s cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: calc(var(--i) * 42ms);
}
.rv.in .w > span {
  transform: none;
}
.js .fu {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 1s ease 0.3s,
    transform 1.3s cubic-bezier(0.19, 1, 0.22, 1) 0.3s;
}
.js .fu.in {
  opacity: 1;
  transform: none;
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
#tip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2;
  pointer-events: none;
}

/* the drafting grid */
.vgrid {
  /* host-site rename: the bundle calls this .grid, which collides with the
     Tailwind grid utility used by the /careers pages (site.css is unlayered
     and would beat it). No markup renders this disabled overlay anyway. */
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 45;
}
.vgrid i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 7px;
  border-left: 1px solid rgba(90, 70, 160, 0.16);
  border-right: 1px solid rgba(90, 70, 160, 0.16);
}
.vgrid i:nth-child(1) {
  left: calc(var(--cl) - 4px);
}
.vgrid i:nth-child(2) {
  left: calc(var(--cl) + var(--cw) * 0.25 - 3px);
}
.vgrid i:nth-child(3) {
  left: calc(var(--cl) + var(--cw) * 0.75 - 3px);
}
.vgrid i:nth-child(4) {
  left: calc(var(--cl) + var(--cw) - 3px);
}

/* loader: Atlas's tags trade corners while the mark turns, then the sheet lifts */
#ld {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink2);
  color: var(--on-ink);
  display: grid;
  place-items: center;
  transition: clip-path 0.9s cubic-bezier(0.7, 0, 0.2, 1);
  clip-path: inset(0 0 0 0);
}
#ld::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grainL);
  pointer-events: none;
}
#ld.gone {
  clip-path: inset(0 0 100% 0);
}
#ld .box {
  position: relative;
  width: min(calc(440px * var(--sc)), 70vw);
  aspect-ratio: 1.5/1;
}
#ld .mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  transform: translate(-50%, -50%);
  animation: spin 2.4s cubic-bezier(0.6, 0, 0.3, 1) infinite;
}
#ld .mark .mi {
  fill: var(--on-ink);
}
#ld .mark .mv {
  fill: var(--v);
}
@keyframes spin {
  0%,
  20% {
    transform: translate(-50%, -50%) rotate(0);
  }
  50%,
  70% {
    transform: translate(-50%, -50%) rotate(90deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(180deg);
  }
}
#ld .tg {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: top 1s cubic-bezier(0.6, 0, 0.3, 1);
}
#ld .tg b {
  display: block;
  width: 40px;
  height: 14px;
  background: var(--on-ink);
}
#ld .tg.t1 {
  left: 0;
  top: 0;
}
#ld .tg.t2 {
  right: 0;
  top: calc(100% - 38px);
  align-items: flex-end;
}
#ld.p2 .tg.t1 {
  top: calc(100% - 38px);
}
#ld.p2 .tg.t2 {
  top: 0;
}

/* nav: a quiet line of text. Lockup, four chapters, one action. No boxes, no bar. */
.nav {
  position: fixed;
  z-index: 60;
  left: 0;
  right: 0;
  top: 0;
  padding: 22px var(--cl) 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--ink);
  transition:
    color 0.45s ease,
    transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}
body.navhide .nav {
  transform: translateY(-140%);
}
body.dark .nav {
  color: var(--on-ink);
}
.nav .brand {
  justify-self: start;
}
.nav .lock {
  width: clamp(132px, 10vw, calc(164px * var(--sc)));
  display: block;
}
.nav .lock .mi,
.nav .lock path {
  fill: currentColor;
}
.nav .lock .mv {
  fill: var(--v);
}
.nav .links {
  display: flex;
  gap: clamp(18px, 2.4vw, calc(38px * var(--sc)));
  font-size: calc(13.5px * var(--sc));
}
.nav .links a,
.nav .send {
  position: relative;
  padding: 4px 0;
  opacity: 0.62;
  transition: opacity 0.25s ease;
}
.nav .links a::after,
.nav .send::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.nav .links a:hover,
.nav .links a.on,
.nav .send:hover {
  opacity: 1;
}
.nav .links a:hover::after,
.nav .links a.on::after,
.nav .send:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav .send {
  justify-self: end;
  font-size: calc(13.5px * var(--sc));
  opacity: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav .send i {
  width: 7px;
  height: 7px;
  background: var(--v);
}
.prog {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  z-index: 61;
  pointer-events: none;
}
.prog i {
  position: absolute;
  inset: 0;
  background: var(--v);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

/* cursor: a violet square that leaves a line behind it */
#cur,
#trail {
  display: none;
}
@media (pointer: fine) {
  html.js body,
  html.js a,
  html.js button {
    cursor: none;
  }
  .mag {
    display: inline-block;
    will-change: transform;
    transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
  }
  #trail {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 94;
    pointer-events: none;
  }
}

/* chapters: inset sheets over the sky */
.ch {
  position: relative;
  margin: var(--inset);
}
.ch.ink {
  background: var(--ink2);
  color: var(--on-ink);
}
.ch.paper {
  background: var(--paper);
}
.ch::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
.ch.paper::after {
  background-image: var(--fibre), var(--grain);
  opacity: 0.9;
}
.ch.ink::after {
  background-image: var(--grainL);
}
.tall {
  height: calc(var(--len, 4) * 100svh);
}
.pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  z-index: 3;
}
.pin-in {
  position: absolute;
  inset: 0;
  left: var(--cl);
  right: var(--cl);
}
canvas.art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
#line,
#tip {
  display: none !important;
}
#cwm {
  display: none !important;
}
#line {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: difference;
}
.pin-in,
.words {
  z-index: 3;
}

/* giant sliding words */
.words {
  position: absolute;
  left: 0;
  bottom: -0.08em;
  white-space: nowrap;
  font-size: clamp(80px, 11vw, calc(200px * var(--sc)));
  will-change: transform;
  pointer-events: none;
}
.words span {
  display: inline-block;
  margin-right: 0.32em;
  opacity: 0.1;
  transition: opacity 0.4s ease;
}
.words span.on {
  opacity: 0.9;
}

/* 01 hero */
#hero {
  --fs: clamp(40px, min(5.6vw, 10.5svh), calc(108px * var(--sc)));
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: calc(14px + 84px * var(--sc)) var(--cl) clamp(18px, 3vh, calc(32px * var(--sc)));
  overflow: hidden;
}
.ah {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: var(--fs);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-align: center;
  margin: 0 auto;
}
#hero .g-stage {
  position: relative;
  flex: none;
  align-self: center;
  margin-top: clamp(10px, 2vh, calc(24px * var(--sc)));
  width: min(100%, calc((100svh - 84px - var(--fs) * 1.8 - 120px) * 1448 / 560));
  aspect-ratio: 1448/560;
  mix-blend-mode: multiply;
  pointer-events: none;
}
#hero .g-stage canvas {
  position: absolute;
  left: 0;
  right: 0;
  top: -19.6%;
  height: 145.5%;
  width: 100%;
  max-width: none;
}
.ameta {
  margin-top: auto;
  padding: 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.ameta .body {
  color: rgba(19, 19, 19, 0.78);
  max-width: 46ch;
}
.idx {
  font-size: calc(13px * var(--sc));
  color: rgba(19, 19, 19, 0.6);
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.idx b {
  font-weight: 600;
  color: var(--ink);
}
.hero-part {
  display: none;
}

/* 02 machines: look closely, it's parts all the way down */
#parts .side {
  position: absolute;
  left: 28px;
  top: calc(var(--top) + clamp(130px, 17vh, calc(170px * var(--sc))));
  width: min(calc(300px * var(--sc)), 24%);
  display: flex;
  flex-direction: column;
  gap: 26px;
}
#parts .words span {
  color: var(--on-ink);
}

/* 03 the gap: one chart, the problem and then the fix */

/* 03 machines: a Neutra-style stack — headline, two squares stepping down into one black box */
#parts {
  --S: min(14vh, 9.2vw);
}
#parts .pin {
  z-index: 1;
}
@keyframes sw {
  0% {
    opacity: 0.2;
    transform: translateX(-6px);
  }
  40% {
    opacity: 1;
    transform: translateX(4px);
  }
  100% {
    transform: none;
  }
}
.sq {
  position: absolute;
  width: var(--S);
  height: var(--S);
}
.sq.v {
  right: 0;
  bottom: 100%;
  background: var(--v);
  display: grid;
  place-items: center;
}
.sq.v .mark {
  width: 46%;
}
.sq.v .mark .mi {
  fill: #efeef3;
}
.sq.v .mark .mv {
  fill: #131313;
}
.sq.z {
  width: calc(var(--S) * 1.6);
  height: calc(var(--S) * 1.6);
  right: var(--S);
  bottom: calc(100% + var(--S));
  background: #d9d8de;
  overflow: hidden;
}
.sq.z img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.sq.z img.on {
  opacity: 1;
}
.sq.z canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;
}
.sq.z span {
  position: absolute;
  left: 8px;
  bottom: 6px;
  font-size: calc(11px * var(--sc));
  color: var(--ink);
  opacity: 0.7;
}

/* 04 the gap: a calendar. One afternoon of design, weeks of waiting, a few days of making — then the waiting is cut out */
.day {
  position: relative;
  aspect-ratio: 1;
  background: rgba(19, 19, 19, 0.06);
  box-shadow: inset 0 0 0 1px rgba(19, 19, 19, 0.1);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}
.day::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: var(--f, 0);
}
.day.d::after {
  background: linear-gradient(90deg, #131313 50%, transparent 50%);
}
.day.w::after {
  background:
    repeating-linear-gradient(135deg, rgba(132, 71, 255, 0.85) 0 2px, transparent 2px 8px), rgba(132, 71, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(132, 71, 255, 0.55);
}
.day.m::after {
  background: #3a3842;
}
.day.gone {
  opacity: 0;
  transform: scale(0.6);
}
.day.hit {
  transform: translate(var(--jx, 0), 0);
}

/* 06 what came off the machines: a strip of renders that rides the line sideways */
.strip {
  position: absolute;
  left: 0;
  top: 50%;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, calc(40px * var(--sc)));
  padding-left: var(--cl);
  will-change: transform;
}
.strip figure {
  position: relative;
  flex: none;
  margin: 0;
  height: var(--h);
  aspect-ratio: var(--ar);
  overflow: hidden;
  background: #d9d8de;
  transform: translateY(var(--py, 0px));
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.strip figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}
.strip figure:hover img {
  transform: scale(1.08);
}
.strip figure b {
  position: absolute;
  left: 10px;
  bottom: 8px;
  font-weight: 500;
  font-size: calc(11px * var(--sc));
  color: #efeef3;
  opacity: 0.7;
  text-shadow: 0 1px 6px rgba(19, 19, 19, 0.5);
}

/* 07 network: the line draws the country; marks appear until there's one near everyone */
#net .txt {
  position: absolute;
  left: 28px;
  top: var(--top);
  width: min(calc(620px * var(--sc)), calc(var(--cw) * 0.5));
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 2;
}
#net .txt .stmt {
  font-size: clamp(34px, 3.8vw, calc(72px * var(--sc)));
}
#net .txt .body {
  color: var(--on-ink2);
  max-width: 44ch;
}

/* 08 sketch to real: the engine in the middle, sketch on the left, the real thing on the right */
#next .side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(calc(340px * var(--sc)), 26%);
}
#next .side.l {
  left: 28px;
}
#next .side.r {
  right: 0;
  text-align: right;
  align-items: flex-end;
}
#next .side .stmt {
  font-size: clamp(34px, 3.6vw, calc(66px * var(--sc)));
}
#next .side .body {
  max-width: 30ch;
}
#next canvas.art {
  left: 0;
  width: 100%;
  top: 6%;
  height: 90%;
}

/* 03b the film: founders and the floor, opening up to full screen */
#film {
  background: #0d0c11;
}
.fv {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  background: #121118;
  will-change: left, top, right, bottom;
}
.fv video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.fv.has video {
  opacity: 1;
}
.fv::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 12, 17, 0.45) 0%,
    rgba(13, 12, 17, 0) 28%,
    rgba(13, 12, 17, 0) 52%,
    rgba(13, 12, 17, 0.82) 100%
  );
  opacity: var(--sh, 0);
  pointer-events: none;
}
.fph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--on-ink2);
  text-align: center;
  padding: 24px;
  transition: opacity 0.4s ease;
}
.fv.has .fph {
  opacity: 0;
  pointer-events: none;
}
.fv.over {
  outline: 1px solid var(--v);
  outline-offset: -1px;
}
.fph .pl {
  width: 64px;
  height: 64px;
  border: 1px solid var(--on-ink3);
  display: grid;
  place-items: center;
}
.fph .pl i {
  width: 0;
  height: 0;
  border-left: 14px solid var(--v);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
.fph b {
  font-weight: 500;
  color: var(--on-ink);
  font-size: calc(14px * var(--sc));
}
.fph span {
  font-size: calc(13px * var(--sc));
  max-width: 44ch;
}
#film .ftop {
  position: absolute;
  left: 28px;
  top: var(--top);
  z-index: 3;
}
#film .ftop .stmt {
  font-size: clamp(30px, 3vw, calc(52px * var(--sc)));
  color: var(--on-ink);
}
.fcap {
  position: absolute;
  left: 28px;
  bottom: clamp(28px, 6vh, calc(64px * var(--sc)));
  z-index: 3;
  max-width: min(calc(620px * var(--sc)), 60%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--on-ink);
}
.fcap .stmt {
  font-size: clamp(30px, 3.2vw, calc(56px * var(--sc)));
}
@keyframes eq {
  0%,
  100% {
    height: 3px;
  }
  50% {
    height: 12px;
  }
}

/* 04 lights off, machines on: the factory, end to end */
#night {
  --n: 0;
}
#night {
  background: var(--paper);
}
#night::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0e0d16 0%, #17152a 55%, #221b3b 100%);
  opacity: var(--n);
}
#night::after {
  background-image: var(--fibre), var(--grain);
  opacity: calc(1 - var(--n) * 0.7);
}
#night .pin-in {
  z-index: 3;
  color: var(--ink);
  transition: color 0.5s ease;
  pointer-events: none;
}
#night.dk .pin-in {
  color: var(--on-ink);
}
#night canvas.art {
  z-index: 1;
}
/* a drawing's title block, bottom right, the way every sheet has one */
.tblock {
  position: absolute;
  right: 0;
  bottom: clamp(20px, 4vh, calc(40px * var(--sc)));
  width: min(calc(460px * var(--sc)), 40%);
  display: grid;
  grid-template-columns: 1fr auto;
  background: #efeef3;
  border: 1px solid currentColor;
  pointer-events: auto;
}
.tblock > * {
  padding: 14px 16px;
  border-color: color-mix(in srgb, currentColor 35%, transparent);
}
.tblock .t {
  grid-column: 1/3;
  border-bottom: 1px solid;
}
.tblock .t .stmt {
  font-size: clamp(30px, 2.8vw, calc(48px * var(--sc)));
}
.tblock .b {
  border-right: 1px solid;
  font-size: calc(14px * var(--sc));
  line-height: 1.45;
  opacity: 0.85;
  min-height: 4.4em;
  transition: opacity 0.35s ease;
}
.tblock .c {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-width: 150px;
}
.tblock .c span {
  font-size: calc(12px * var(--sc));
  opacity: 0.6;
}
#night .clock {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 4vw, calc(64px * var(--sc)));
  letter-spacing: -0.04em;
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
}

/* 08 sketch to real: the engine in the middle, sketch on the left, the real thing on the right */
#next .side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(calc(340px * var(--sc)), 26%);
}
#next .side.l {
  left: 28px;
}
#next .side.r {
  right: 0;
  text-align: right;
  align-items: flex-end;
}
#next .side .stmt {
  font-size: clamp(34px, 3.6vw, calc(66px * var(--sc)));
}
#next .side .body {
  max-width: 30ch;
}
#next canvas.art {
  left: 0;
  width: 100%;
  top: 6%;
  height: 90%;
}

/* 03b the film: founders and the floor, opening up to full screen */
#film {
  background: #0d0c11;
}
.fv {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  background: #121118;
  will-change: left, top, right, bottom;
}
.fv video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.fv.has video {
  opacity: 1;
}
.fv::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 12, 17, 0.45) 0%,
    rgba(13, 12, 17, 0) 28%,
    rgba(13, 12, 17, 0) 52%,
    rgba(13, 12, 17, 0.82) 100%
  );
  opacity: var(--sh, 0);
  pointer-events: none;
}
.fph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--on-ink2);
  text-align: center;
  padding: 24px;
  transition: opacity 0.4s ease;
}
.fv.has .fph {
  opacity: 0;
  pointer-events: none;
}
.fv.over {
  outline: 1px solid var(--v);
  outline-offset: -1px;
}
.fph .pl {
  width: 64px;
  height: 64px;
  border: 1px solid var(--on-ink3);
  display: grid;
  place-items: center;
}
.fph .pl i {
  width: 0;
  height: 0;
  border-left: 14px solid var(--v);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
.fph b {
  font-weight: 500;
  color: var(--on-ink);
  font-size: calc(14px * var(--sc));
}
.fph span {
  font-size: calc(13px * var(--sc));
  max-width: 44ch;
}
#film .ftop {
  position: absolute;
  left: 28px;
  top: var(--top);
  z-index: 3;
}
#film .ftop .stmt {
  font-size: clamp(30px, 3vw, calc(52px * var(--sc)));
  color: var(--on-ink);
}
.fcap {
  position: absolute;
  left: 28px;
  bottom: clamp(28px, 6vh, calc(64px * var(--sc)));
  z-index: 3;
  max-width: min(calc(620px * var(--sc)), 60%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--on-ink);
}
.fcap .stmt {
  font-size: clamp(30px, 3.2vw, calc(56px * var(--sc)));
}
@keyframes eq {
  0%,
  100% {
    height: 3px;
  }
  50% {
    height: 12px;
  }
}

/* 04 lights off, machines on: the factory, end to end */
#night {
  --n: 0;
}
#night {
  background: var(--paper);
}
#night::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0e0d16 0%, #17152a 55%, #221b3b 100%);
  opacity: var(--n);
}
#night::after {
  background-image: var(--fibre), var(--grain);
  opacity: calc(1 - var(--n) * 0.7);
}
#night .pin-in {
  z-index: 3;
  color: var(--ink);
  transition: color 0.5s ease;
  pointer-events: none;
}
#night.dk .pin-in {
  color: var(--on-ink);
}
#night canvas.art {
  z-index: 1;
}
/* a drawing's title block, bottom right, the way every sheet has one */
.tblock {
  position: absolute;
  right: 0;
  bottom: clamp(20px, 4vh, calc(40px * var(--sc)));
  width: min(calc(460px * var(--sc)), 40%);
  display: grid;
  grid-template-columns: 1fr auto;
  background: #efeef3;
  border: 1px solid currentColor;
  pointer-events: auto;
}
.tblock > * {
  padding: 14px 16px;
  border-color: color-mix(in srgb, currentColor 35%, transparent);
}
.tblock .t {
  grid-column: 1/3;
  border-bottom: 1px solid;
}
.tblock .t .stmt {
  font-size: clamp(30px, 2.8vw, calc(48px * var(--sc)));
}
.tblock .b {
  border-right: 1px solid;
  font-size: calc(14px * var(--sc));
  line-height: 1.45;
  opacity: 0.85;
  min-height: 4.4em;
  transition: opacity 0.35s ease;
}
.tblock .c {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-width: 150px;
}
.tblock .c span {
  font-size: calc(12px * var(--sc));
  opacity: 0.6;
}
#night .clock {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 4vw, calc(64px * var(--sc)));
  letter-spacing: -0.04em;
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
}

/* 05 network */
#net .txt {
  position: absolute;
  left: 28px;
  top: var(--top);
  width: min(calc(620px * var(--sc)), calc(var(--cw) * 0.5));
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 2;
}
#net .txt .stmt {
  font-size: clamp(34px, 3.8vw, calc(72px * var(--sc)));
}
#net .txt .body {
  color: var(--on-ink2);
  max-width: 44ch;
}

/* 06 from a sketch to the real thing */

/* 07 build anything, and the name you can push around */
#close {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(120px, 20vh, calc(200px * var(--sc))) var(--cl) 0;
  overflow: hidden;
}
#cwm {
  margin: 0;
}
#close .stmt {
  font-size: clamp(64px, 11vw, calc(200px * var(--sc)));
  letter-spacing: -0.05em;
  line-height: 0.92;
  color: var(--on-ink);
}
.send-lg {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 2.4vw, calc(40px * var(--sc)));
  letter-spacing: -0.02em;
  color: var(--on-ink);
  padding-bottom: 8px;
  position: relative;
  white-space: nowrap;
}
.send-lg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}
.send-lg::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--v);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 1;
}
.send-lg:hover::before {
  transform: scaleX(1);
}
.send-lg i {
  width: 12px;
  height: 12px;
  background: var(--v);
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.send-lg:hover i {
  transform: rotate(90deg);
}
#cwm {
  position: relative;
  display: block;
  margin-top: auto;
  touch-action: pan-y;
}

/* 04b · 05b proof: real photographs, in frames the drawing leaves for them */
:root {
  --hatch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M-3 3L3-3M0 12L12 0M9 15L15 9' stroke='rgba(19,19,19,.14)' stroke-width='1'/%3E%3C/svg%3E");
  --hatchL: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M-3 3L3-3M0 12L12 0M9 15L15 9' stroke='rgba(239,238,243,.13)' stroke-width='1'/%3E%3C/svg%3E");
}
.flow {
  padding: clamp(80px, 12vh, calc(160px * var(--sc))) var(--cl);
  z-index: 3;
}
.phbox {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--hatch), #e7e5ed;
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  background-size: auto, cover;
  background-position: center;
  transition: border-color 0.3s ease;
}
.ch.ink .phbox {
  background: var(--hatchL), #232130;
  border-color: var(--on-ink3);
}
.phbox.has {
  background-image: none;
}
.phbox:hover,
.phbox.over {
  border-color: var(--v);
}
.phbox.has img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.people {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.4vw, calc(22px * var(--sc)));
}
.rows {
  margin-top: clamp(48px, 8vh, calc(96px * var(--sc)));
  display: flex;
  flex-direction: column;
}
.rows > div {
  display: grid;
  grid-template-columns: minmax(140px, 0.22fr) 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--on-ink3);
}
.rows .k {
  font-size: calc(13.5px * var(--sc));
  color: var(--on-ink2);
}
.logo {
  height: calc(46px * var(--sc));
  min-width: calc(150px * var(--sc));
  display: grid;
  place-items: center;
  border: 1px solid var(--on-ink3);
  font-size: calc(12.5px * var(--sc));
  color: var(--on-ink2);
  padding: 0 18px;
  background: var(--hatchL);
}
.logo b {
  font-weight: 500;
  color: var(--v2);
  margin-right: 0.35em;
}

@media (prefers-reduced-motion: reduce) {
  #ld {
    display: none;
  }
  .rv .w > span {
    transform: none;
  }
  .js .fu {
    opacity: 1;
    transform: none;
  }
}

/* tablet */
@media (max-width: 1000px) {
  :root {
    --cw: calc(100vw - 2 * var(--g));
  }
  .vgrid i:nth-child(2),
  .vgrid i:nth-child(3) {
    display: none;
  }
  .nav .links {
    display: none;
  }
  #net .txt {
    width: calc(var(--cw) * 0.4);
  }
  #net .txt {
    left: 0;
    right: 0;
    width: auto;
    top: var(--top);
    bottom: auto;
  }
  #net .txt .stmt {
    max-width: 14ch;
  }
  #next .side {
    width: auto;
    top: auto;
    transform: none;
  }
  #next .side.l {
    left: 0;
    top: var(--top);
  }
  #next .side.r {
    right: 0;
    bottom: 6vh;
  }
  #next canvas.art {
    top: 16%;
    height: 68%;
  }
  .people {
    grid-template-columns: repeat(2, 1fr);
  }
  .tblock {
    width: min(calc(460px * var(--sc)), 60%);
  }
}
/* phone: words on top, the drawing under them */
@media (max-width: 640px) {
  :root {
    --top: 76px;
  }
  .nav {
    padding-top: 16px;
  }
  #hero {
    padding-inline: var(--g);
    --fs: clamp(44px, 13vw, calc(60px * var(--sc)));
    --L: min(max(300px, calc(100svh - 58px - 330px)), 620px, calc((100vw - 40px) * 1448 / 815));
    padding-top: 72px;
    gap: 12px;
  }
  #hero .g-stage {
    width: auto;
    align-self: stretch;
    height: var(--L);
    aspect-ratio: auto;
    margin: 0;
    overflow: visible;
  }
  #hero .g-stage canvas {
    inset: auto;
    left: 50%;
    top: 50%;
    width: var(--L);
    height: calc(var(--L) * 815 / 1448);
    transform: translate(-50%, -50%) rotate(90deg);
  }
  .ameta {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
  }
  .idx {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 12px;
  }
  .hero-part {
    display: block;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  .hero-part b {
    color: var(--v);
  }
  .pin-in {
    left: var(--g);
    right: var(--g);
  }
  .words {
    font-size: 20vw;
  }
  #next .txt {
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
  }
  #parts .side {
    left: 0;
    right: 0;
    width: auto;
    top: auto;
    bottom: calc(20vw + 18px);
    flex-direction: row;
    justify-content: space-between;
    gap: 14px;
  }
  .tblock {
    left: 0;
    right: 0;
    width: auto;
    bottom: 16px;
    grid-template-columns: 1fr auto;
  }
  .tblock .b {
    display: none;
  }
  #net .txt {
    left: 0;
    right: 0;
    width: auto;
    top: var(--top);
  }
  .fcap {
    left: 0;
    right: 0;
    max-width: none;
    bottom: 72px;
  }
  #film .ftop {
    left: 0;
  }
  #next canvas.art {
    left: 0;
    width: 100%;
    top: 26%;
    height: 72%;
  }
  .flow {
    padding-inline: var(--g);
  }
  #parts {
    --S: min(70px, 10vh);
  }
  .strip {
    padding-left: var(--g);
  }
  #next .side .stmt {
    font-size: 30px;
  }
  #next .side .body {
    display: none;
  }
  #next canvas.art {
    top: 18%;
    height: 64%;
  }
  .people {
    gap: 14px;
  }
  .rows > div {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .logo {
    min-width: 0;
    flex: 1 1 40%;
  }
  #close {
    padding-inline: var(--g);
  }
}

/* the gap: three objects */
.gap {
  position: absolute;
  left: 28px;
  right: 0;
  top: calc(var(--top) + clamp(150px, 22vh, calc(230px * var(--sc))));
  bottom: calc(max(24px, 5vh) + clamp(100px, 15vh, calc(170px * var(--sc))));
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: minmax(0, 1fr);
  column-gap: calc(clamp(12px, 2vw, calc(36px * var(--sc))) * (0.5 + 0.5 * var(--wc, 1)));
  align-items: end;
}
@media (max-width: 640px) {
  .gap {
    left: 0;
    top: auto;
    height: 46%;
    bottom: calc(20px + 104px);
  }
}
@media (max-width: 1000px) and (min-width: 641px) {
  .gap {
    left: 0;
  }
}

/* close: one line, one action, then a plain footer on the grid */
#close {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(120px, 20vh, calc(200px * var(--sc))) var(--cl) 0;
  overflow: hidden;
}
#close .stmt {
  font-size: clamp(64px, 11vw, calc(200px * var(--sc)));
  letter-spacing: -0.05em;
  line-height: 0.92;
  color: var(--on-ink);
}
#close .cbody {
  grid-column: 1/5;
  margin: 0;
  color: var(--on-ink2);
  font-size: calc(16px * var(--sc));
  line-height: 1.5;
  max-width: 34ch;
}
#close .cact {
  grid-column: 7/13;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.drop {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: clamp(20px, 2vw, calc(32px * var(--sc)));
  border: 1px solid var(--on-ink3);
  cursor: pointer;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}
.drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.drop:hover {
  border-color: rgba(239, 238, 243, 0.6);
  background: rgba(239, 238, 243, 0.03);
}
.drop.over {
  border-color: var(--v);
  background: rgba(132, 71, 255, 0.14);
}
.drop.has {
  border-color: var(--v);
}
.drop .dl {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.drop .dl b {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  font-size: clamp(24px, 2.1vw, calc(40px * var(--sc)));
  color: var(--on-ink);
  overflow-wrap: anywhere;
}
.drop .dl small {
  font-size: calc(13px * var(--sc));
  color: var(--on-ink2);
}
.drop:focus-within {
  outline: 1px solid var(--v);
  outline-offset: 4px;
}
#close .fgrid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 32px;
  align-items: start;
  margin-top: auto;
  padding: clamp(28px, 4vh, calc(48px * var(--sc))) 0 clamp(28px, 5vh, calc(56px * var(--sc)));
  border-top: 1px solid var(--on-ink3);
  font-size: calc(15px * var(--sc));
}
#close .fl {
  grid-column: 1/4;
}
#close .fl .lock {
  width: clamp(132px, 10vw, calc(164px * var(--sc)));
  display: block;
  color: var(--on-ink);
}
#close .fl .lock .mi,
#close .fl .lock path {
  fill: currentColor;
}
#close .fl .lock .mv {
  fill: var(--v);
}
#close .fc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--on-ink);
}
#close .fc:nth-of-type(1) {
  grid-column: 7/9;
}
#close .fc:nth-of-type(2) {
  grid-column: 9/11;
}
#close .fc:nth-of-type(3) {
  grid-column: 11/13;
}
#close .fc h3 {
  margin: 0 0 6px;
  font: inherit;
  font-size: calc(12px * var(--sc));
  color: var(--on-ink2);
  font-weight: 400;
}
#close .fc span {
  color: var(--on-ink2);
}
#close .fc a {
  position: relative;
  align-self: flex-start;
  transition:
    color 0.25s ease,
    transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}
#close .fc a::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  background: var(--v);
  transform: scale(0);
  transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}
#close .fc a:hover {
  transform: translateX(14px);
}
#close .fc a:hover::before {
  transform: scale(1);
}
#close .totop {
  grid-column: 1/4;
  grid-row: 2;
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: calc(13px * var(--sc));
  color: var(--on-ink2);
  justify-self: start;
}
#close .totop i {
  width: 8px;
  height: 8px;
  background: var(--v);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
#close .totop:hover {
  color: var(--on-ink);
}
#close .totop:hover i {
  transform: translateY(-4px);
}
@media (max-width: 1000px) {
  #close .cbody {
    grid-column: 1/-1;
    margin-bottom: 28px;
  }
  #close .cact {
    grid-column: 1/-1;
  }
  #close .fl {
    grid-column: 1/-1;
  }
  #close .fc:nth-of-type(1) {
    grid-column: 1/5;
  }
  #close .fc:nth-of-type(2) {
    grid-column: 5/9;
  }
  #close .fc:nth-of-type(3) {
    grid-column: 9/13;
  }
  #close .totop {
    grid-row: auto;
    grid-column: 1/-1;
  }
}
@media (max-width: 640px) {
  #close {
    padding-inline: var(--g);
  }
  .drop {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  #close .fc:nth-of-type(1) {
    grid-column: 1/7;
  }
  #close .fc:nth-of-type(2) {
    grid-column: 7/13;
  }
  #close .fc:nth-of-type(3) {
    grid-column: 1/-1;
  }
}
/* ===== ATLAS 2: full-bleed renders, HUD type, cameras on scroll ===== */
.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: calc(11.5px * var(--sc));
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}
.fb .pin {
  background: #0e0d14;
  overflow: hidden;
}
.fb .bg {
  position: absolute;
  inset: 0;
}
.fb .bg img,
.fb .bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.fb .bg img {
  opacity: 0;
  transform: scale(var(--z, 1));
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}
.fb .bg img.on {
  opacity: 1;
}
.hud {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  color: var(--on-ink);
}
.hud .tr,
.hud .br {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--on-ink2);
}
.hud .tr {
  right: var(--cl);
  top: calc(var(--top) - 22px);
  align-items: flex-end;
  text-align: right;
}
.hud .br {
  right: var(--cl);
  bottom: clamp(34px, 5vh, 54px);
  align-items: flex-end;
  text-align: right;
}
.hud .mono b {
  color: var(--on-ink);
  font-weight: 500;
}
.hud .mono .v {
  color: var(--v2);
}
.hud .line {
  position: absolute;
  left: var(--cl);
  bottom: clamp(34px, 5vh, 54px);
  max-width: min(calc(520px * var(--sc)), 44%);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hud .line .stmt {
  color: var(--on-ink);
  font-size: clamp(30px, 3vw, calc(58px * var(--sc)));
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hud .line .cap {
  font-size: calc(13.5px * var(--sc));
  line-height: 1.5;
  color: var(--on-ink2);
  max-width: 36ch;
  min-height: 2.9em;
  transition: opacity 0.25s ease;
}
.hud .num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 4vw, calc(76px * var(--sc)));
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: var(--on-ink);
  font-variant-numeric: tabular-nums;
}
.hud .bar {
  display: block;
  width: min(calc(220px * var(--sc)), 30vw);
  height: 1px;
  background: rgba(239, 238, 243, 0.2);
  position: relative;
  margin: 4px 0;
}
.hud .bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  height: 3px;
  width: 100%;
  background: var(--v);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}
.fb .shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(14, 13, 20, 0.35) 0%,
    rgba(14, 13, 20, 0) 28%,
    rgba(14, 13, 20, 0) 55%,
    rgba(14, 13, 20, 0.62) 100%
  );
}
#net .bg canvas {
  object-fit: fill;
}
#cur {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 90;
  pointer-events: none;
  width: 0;
  height: 0;
  transform: translate(-100px, -100px);
  mix-blend-mode: difference;
}
#cur i {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid #fff;
  transition:
    transform 0.28s cubic-bezier(0.19, 1, 0.22, 1),
    opacity 0.2s ease;
}
#cur .c1 {
  left: -14px;
  top: -14px;
  border-right: 0;
  border-bottom: 0;
}
#cur .c2 {
  left: 7px;
  top: -14px;
  border-left: 0;
  border-bottom: 0;
}
#cur .c3 {
  left: -14px;
  top: 7px;
  border-right: 0;
  border-top: 0;
}
#cur .c4 {
  left: 7px;
  top: 7px;
  border-left: 0;
  border-top: 0;
}
#cur::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -2px;
  width: 4px;
  height: 4px;
  background: #fff;
}
#cur.hov i {
  transform: scale(2.2);
}
#cur.hov::before {
  background: #8447ff;
}
#cur span {
  position: absolute;
  left: 18px;
  top: 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}
#cur #curxy {
  top: -20px;
  opacity: 0.55;
}
#cur.lab #curl {
  opacity: 1;
}
@media (hover: none) {
  #cur {
    display: none;
  }
}
@media (max-width: 1000px) {
  .hud .line {
    max-width: 60%;
  }
}
@media (max-width: 640px) {
  .hud .br {
    display: none;
  }
  .hud .line {
    left: var(--g);
    right: var(--g);
    max-width: none;
    bottom: 30px;
  }
  .hud .line .stmt {
    font-size: 30px;
  }
  .hud .num {
    font-size: 40px;
  }
  .fb .shade {
    background: linear-gradient(
      180deg,
      rgba(14, 13, 20, 0.5) 0%,
      rgba(14, 13, 20, 0) 30%,
      rgba(14, 13, 20, 0) 45%,
      rgba(14, 13, 20, 0.78) 100%
    );
  }
}

/* seamless: the chapters share one ground. No section edge, no inset, the render runs to the viewport edge */
.fb {
  margin: 0;
}
.fb .pin {
  background: #0e0d14;
}
.fb .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #0e0d14 0%, rgba(14, 13, 20, 0) 14%, rgba(14, 13, 20, 0) 86%, #0e0d14 100%);
  opacity: var(--seam, 1);
}
.fb .shade {
  background: linear-gradient(
    180deg,
    rgba(14, 13, 20, 0.3) 0%,
    rgba(14, 13, 20, 0) 24%,
    rgba(14, 13, 20, 0) 58%,
    rgba(14, 13, 20, 0.58) 100%
  );
}
#close {
  margin: 0;
  padding-top: clamp(100px, 16vh, calc(180px * var(--sc)));
}
#close .cx {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vh, calc(48px * var(--sc)));
  align-items: flex-start;
  margin-bottom: clamp(96px, 16vh, calc(200px * var(--sc)));
}
#close .cx .stmt {
  font-size: clamp(64px, 11vw, calc(200px * var(--sc)));
  letter-spacing: -0.05em;
  line-height: 0.92;
  color: var(--on-ink);
}
#close .cbody {
  margin: 0;
  color: var(--on-ink2);
  font-size: calc(17px * var(--sc));
  line-height: 1.5;
  max-width: 38ch;
}
#close {
  position: relative;
  overflow: hidden;
}
#close .cx,
#close .fgrid {
  position: relative;
  z-index: 1;
}
#close .cx {
  min-height: calc(100svh - clamp(100px, 16vh, calc(180px * var(--sc))) - 260px);
  justify-content: center;
}

/* night: the original block */
#night {
  --n: 0;
}
#night {
  background: var(--paper);
}
#night::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0e0d16 0%, #17152a 55%, #221b3b 100%);
  opacity: var(--n);
}
#night::after {
  background-image: var(--fibre), var(--grain);
  opacity: calc(1 - var(--n) * 0.7);
}
#night .pin-in {
  z-index: 3;
  color: var(--ink);
  transition: color 0.5s ease;
  pointer-events: none;
}
#night.dk .pin-in {
  color: var(--on-ink);
}
#night canvas.art {
  z-index: 1;
}
.tblock {
  position: absolute;
  right: 0;
  bottom: clamp(20px, 4vh, calc(40px * var(--sc)));
  width: min(calc(460px * var(--sc)), 40%);
  display: grid;
  grid-template-columns: 1fr auto;
  background: #efeef3;
  border: 1px solid currentColor;
  pointer-events: auto;
}
.tblock > * {
  padding: 14px 16px;
  border-color: color-mix(in srgb, currentColor 35%, transparent);
}
.tblock .t {
  grid-column: 1/3;
  border-bottom: 1px solid;
}
.tblock .t .stmt {
  font-size: clamp(30px, 2.8vw, calc(48px * var(--sc)));
}
.tblock .b {
  border-right: 1px solid;
  font-size: calc(14px * var(--sc));
  line-height: 1.45;
  opacity: 0.85;
  min-height: 4.4em;
  transition: opacity 0.35s ease;
}
.tblock .c {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-width: 150px;
}
.tblock .c span {
  font-size: calc(12px * var(--sc));
  opacity: 0.6;
}
#night .clock {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 4vw, calc(64px * var(--sc)));
  letter-spacing: -0.04em;
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 1000px) {
  .tblock {
    width: min(calc(460px * var(--sc)), 60%);
  }
}
@media (max-width: 640px) {
  .tblock {
    left: 0;
    right: 0;
    width: auto;
    bottom: 16px;
    grid-template-columns: 1fr auto;
  }
}
#night {
  margin: 0;
}

/* ===================== v4: type, light, mobile, touch ===================== */
/* type: one serif with an edge, one sans, mono only for the smallest labels */
:root {
  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
}
body {
  font-family: var(--sans);
  letter-spacing: -0.005em;
}
.stmt {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.96;
}
.stmt em {
  font-style: italic;
  font-weight: 400;
}
.lab {
  font-weight: 500;
  letter-spacing: 0.02em;
}
.lab2 {
  font-size: calc(11.5px * var(--sc));
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
}
.mono {
  font-family: var(--sans);
  font-size: calc(11.5px * var(--sc));
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.7;
}
.hud .mono b {
  font-weight: 600;
}
.hud .num {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
}
.hud .line .stmt {
  font-size: clamp(34px, 3.4vw, calc(64px * var(--sc)));
}
.hud .line .cap {
  font-size: calc(14px * var(--sc));
  max-width: 34ch;
}
.big {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.03em;
}
.tblock .t .stmt {
  font-size: clamp(28px, 2.6vw, calc(46px * var(--sc)));
}
.send-lg {
  font-family: var(--serif);
  font-weight: 400;
}
.drop .dl b {
  font-weight: 400;
}
#close .cx .stmt {
  font-weight: 400;
  letter-spacing: -0.04em;
}
/* the page should not sink into black: the floor is morning, the map is on paper */
section.fb.lt,
section.fb.lt .pin {
  background: #d9d8de !important;
}
.fb.lt .bg::after {
  background: linear-gradient(180deg, #efeef3 0%, rgba(239, 238, 243, 0) 12%, rgba(239, 238, 243, 0) 88%, #efeef3 100%);
}
.fb.lt .shade {
  background: linear-gradient(
    180deg,
    rgba(19, 19, 19, 0.18) 0%,
    rgba(19, 19, 19, 0) 26%,
    rgba(19, 19, 19, 0) 60%,
    rgba(19, 19, 19, 0.5) 100%
  );
}
section.fb.paper,
section.fb.paper .pin {
  background: var(--paper) !important;
}
.fb.paper .bg canvas {
  background: transparent;
}
.fb.paper .bg::after {
  background: none;
}
.fb.paper .hud {
  color: var(--ink);
}
.fb.paper .hud .line .stmt {
  color: var(--ink);
  text-shadow: none;
}
.fb.paper .hud .line .cap {
  color: var(--mute);
}
.fb.paper .hud .num {
  color: var(--ink);
}
.fb.paper .lab2 {
  color: var(--ink);
}
.fb.paper::after {
  background-image: var(--fibre), var(--grain);
}
#next,
#next .pin {
  background: #131313;
}
#next .bg::after {
  background: linear-gradient(180deg, #efeef3 0%, rgba(239, 238, 243, 0) 10%, rgba(19, 19, 19, 0) 90%, #131313 100%);
}
/* readouts: one per section, in the top right, and nothing else */
.hud .br {
  display: none;
}
.hud .tr {
  color: var(--on-ink);
}
.fb.lt .hud .tr {
  color: var(--ink);
}
/* nav: a hairline that draws in */
.nav .links a {
  position: relative;
  padding-bottom: 3px;
}
.nav .links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--v);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}
.nav .links a:hover::after,
.nav .links a.on::after {
  transform: scaleX(1);
}
.nav .send i {
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.nav .send:hover i {
  transform: rotate(90deg);
}
/* the night clock: digits roll when they change */
#night .clock {
  display: inline-flex;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
}
.tblock .c .clock span {
  display: inline-block;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  opacity: 1;
  transition:
    transform 0.35s cubic-bezier(0.19, 1, 0.22, 1),
    opacity 0.35s ease;
}
#night .clock span.up {
  animation: rollup 0.38s cubic-bezier(0.19, 1, 0.22, 1) 1;
}
@keyframes rollup {
  0% {
    transform: translateY(0.55em);
    opacity: 0;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
/* the number readouts roll too */
.hud .num {
  display: inline-block;
}
.hud .num.up {
  animation: rollup 0.38s cubic-bezier(0.19, 1, 0.22, 1) 1;
}
/* send a file: the words slide, the square turns */
.send-lg span {
  display: inline-block;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.send-lg:hover span {
  transform: translateX(6px);
}
/* footer: the tick slides in */
#close .fc a {
  padding-left: 0;
  transition:
    padding-left 0.35s cubic-bezier(0.19, 1, 0.22, 1),
    color 0.25s ease;
  transform: none !important;
}
#close .fc a:hover {
  padding-left: 16px;
}
#close .fc a::before {
  left: 0;
  transform: scale(0);
}
#close .fc a:hover::before {
  transform: scale(1);
}
/* cursor: no coordinates */
#cur #curxy {
  display: none;
}
/* phone: the frame is the phone. Everything centred, type at the bottom, nothing cut off */
@media (max-width: 640px) {
  .hud .tr {
    right: var(--g);
    top: calc(var(--top) - 30px);
    display: flex;
  }
  .hud .num {
    font-size: 34px;
  }
  .hud .line {
    bottom: 28px;
  }
  .hud .line .stmt {
    font-size: 31px;
  }
  .hud .line .cap {
    font-size: 13.5px;
    min-height: 0;
    max-width: none;
  }
  .fb .shade {
    background: linear-gradient(
      180deg,
      rgba(14, 13, 20, 0.38) 0%,
      rgba(14, 13, 20, 0) 26%,
      rgba(14, 13, 20, 0) 44%,
      rgba(14, 13, 20, 0.86) 100%
    );
  }
  .fb.lt .shade {
    background: linear-gradient(
      180deg,
      rgba(19, 19, 19, 0.12) 0%,
      rgba(19, 19, 19, 0) 26%,
      rgba(19, 19, 19, 0) 48%,
      rgba(19, 19, 19, 0.78) 100%
    );
  }
  .fb.lt .hud .line .stmt,
  .fb.lt .hud .line .cap {
    color: var(--on-ink);
  }
  /* night: the block becomes a bottom sheet, no clipping */
  .tblock {
    left: var(--g);
    right: var(--g);
    width: auto;
    bottom: 20px;
    grid-template-columns: 1fr auto;
    background: rgba(19, 19, 19, 0.78);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--on-ink);
    border-color: rgba(239, 238, 243, 0.25);
  }
  #night .pin-in {
    color: var(--on-ink);
  }
  .tblock .t .stmt {
    font-size: 26px;
  }
  .tblock .b {
    font-size: 13px;
    min-height: 0;
  }
  .tblock .c {
    min-width: 110px;
  }
  #night .clock {
    font-size: 34px;
  }
  /* machines block: the box takes more of the screen, the name is set smaller in serif */
  .sq.z {
    width: calc(var(--S) * 1.4);
    height: calc(var(--S) * 1.4);
  }
  /* hero copy sits on the sheet */
  /* close */
  #close {
    padding-top: clamp(80px, 14vh, 120px);
  }
  #close .cx {
    min-height: 0;
    gap: 18px;
    margin-bottom: 56px;
  }
  #close .cx .stmt {
    font-size: 56px;
  }
  #close .cbody {
    font-size: 15px;
  }
}

/* ===================== v5 ===================== */
/* nav: brand left, chapters centre with an index, send right. On phone: brand + burger, and a full-screen menu */
.nav {
  padding-top: 18px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav .links {
  gap: clamp(22px, 2.8vw, calc(44px * var(--sc)));
  font-size: calc(14px * var(--sc));
  font-weight: 500;
}
.nav .links a {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  opacity: 0.55;
  padding: 6px 0;
  transition: opacity 0.25s ease;
}
.nav .links a small {
  font-size: calc(10px * var(--sc));
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}
.nav .links a::after {
  bottom: 2px;
  height: 1px;
  background: var(--v);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}
.nav .links a:hover,
.nav .links a.on {
  opacity: 1;
}
.nav .links a:hover::after,
.nav .links a.on::after {
  transform: scaleX(1);
}
.nav .send {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: calc(13.5px * var(--sc));
  font-weight: 500;
  opacity: 1;
  overflow: hidden;
  position: relative;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}
.nav .send::after {
  display: none;
}
.nav .send::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: -1;
}
body.dark .nav .send::before {
  background: var(--paper);
}
.nav .send:hover {
  color: var(--paper);
  border-color: var(--ink);
}
body.dark .nav .send:hover {
  color: var(--ink);
  border-color: var(--paper);
}
.nav .send:hover::before {
  transform: scaleX(1);
}
.nav .send span {
  position: relative;
  z-index: 1;
}
.nav .send i {
  position: relative;
  z-index: 1;
  width: 7px;
  height: 7px;
  background: var(--v);
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.nav .send:hover i {
  transform: rotate(135deg);
}
.nav .burger {
  display: none;
  justify-self: end;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  position: relative;
}
.nav .burger b {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: currentColor;
  transition:
    transform 0.4s cubic-bezier(0.19, 1, 0.22, 1),
    top 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.nav .burger b:first-child {
  top: 16px;
}
.nav .burger b:last-child {
  top: 23px;
}
body.menu-open .nav .burger b:first-child {
  top: 19.5px;
  transform: rotate(45deg);
}
body.menu-open .nav .burger b:last-child {
  top: 19.5px;
  transform: rotate(-45deg);
}
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--ink);
  color: var(--on-ink);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--top)) var(--g) max(28px, env(safe-area-inset-bottom, 0px));
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
}
body.menu-open .menu {
  clip-path: inset(0 0 0 0);
  pointer-events: auto;
}
.menu nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: auto;
}
.menu nav a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--serif);
  font-size: clamp(40px, 11vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  transform: translateY(20px);
  opacity: 0;
  transition:
    transform 0.5s cubic-bezier(0.19, 1, 0.22, 1),
    opacity 0.4s ease;
}
.menu nav a small {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  opacity: 0.5;
}
body.menu-open .menu nav a {
  transform: none;
  opacity: 1;
}
body.menu-open .menu nav a:nth-child(1) {
  transition-delay: 0.12s;
}
body.menu-open .menu nav a:nth-child(2) {
  transition-delay: 0.18s;
}
body.menu-open .menu nav a:nth-child(3) {
  transition-delay: 0.24s;
}
body.menu-open .menu nav a:nth-child(4) {
  transition-delay: 0.3s;
}
.menu .msend {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  margin-top: 32px;
  padding: 14px 20px;
  border: 1px solid rgba(239, 238, 243, 0.4);
  border-radius: 999px;
  font-weight: 500;
}
.menu .msend i {
  width: 7px;
  height: 7px;
  background: var(--v);
}
.menu p {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--on-ink2);
}
body.menu-open {
  overflow: hidden;
}
body.menu-open .nav {
  color: var(--on-ink);
}
/* the hero: one view on every screen; no rotated sheet */
#hero {
  min-height: 100svh;
  max-height: 100svh;
  overflow: hidden;
  justify-content: flex-start;
}
/* film: always 16:9, letterboxed in ink */

/* machines block: the object fills the screen, the name is the headline */
#parts .pin {
  background: #0e0d14;
}
#parts canvas#cparts {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#parts .pin-in {
  z-index: 3;
  color: var(--on-ink);
  pointer-events: none;
}
#parts .phead {
  position: absolute;
  left: var(--cl);
  top: var(--top);
  max-width: min(calc(620px * var(--sc)), 52%);
}
#parts .phead .stmt {
  font-size: clamp(28px, 2.8vw, calc(52px * var(--sc)));
}
#parts .pname {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#parts .pname b {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.9;
  font-size: clamp(56px, 8vw, calc(150px * var(--sc)));
}
#parts .pname b.sw {
  animation: sw 0.5s steps(5) 1;
}
#parts .pbar {
  position: absolute;
  left: var(--cl);
  right: var(--cl);
  bottom: clamp(12px, 2vh, 22px);
  height: 1px;
  background: rgba(239, 238, 243, 0.18);
}
#parts .pbar::after {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  height: 3px;
  width: 100%;
  background: var(--v);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}
#parts::after {
  background-image: var(--grainL);
}
/* no crossfade seams between chapters */
.fb .bg::after {
  display: none;
}
.fb .shade {
  background: linear-gradient(
    180deg,
    rgba(14, 13, 20, 0.22) 0%,
    rgba(14, 13, 20, 0) 22%,
    rgba(14, 13, 20, 0) 60%,
    rgba(14, 13, 20, 0.6) 100%
  );
}
.fb.lt .shade {
  background: linear-gradient(
    180deg,
    rgba(19, 19, 19, 0.1) 0%,
    rgba(19, 19, 19, 0) 22%,
    rgba(19, 19, 19, 0) 60%,
    rgba(19, 19, 19, 0.5) 100%
  );
}
#next .bg::after {
  display: none;
}
/* the map: fills the screen, names readable */
#net .hud .line {
  max-width: min(calc(560px * var(--sc)), 46%);
}
@media (max-width: 900px) {
  .nav {
    grid-template-columns: 1fr auto;
  }
  .nav .links,
  .nav .send {
    display: none;
  }
  .nav .burger {
    display: block;
  }
}
@media (max-width: 640px) {
  #hero {
    padding-top: 66px;
    padding-bottom: 16px;
    gap: 8px;
    --fs: clamp(38px, 11.5vw, 52px);
  }
  #hero .g-stage {
    width: 100%;
    align-self: stretch;
    height: auto;
    aspect-ratio: 1448/700;
    margin: 6px 0 0;
    overflow: visible;
  }
  #hero .g-stage canvas {
    inset: auto;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 150%;
    height: auto;
    aspect-ratio: 1448/815;
    transform: translate(-50%, -50%);
  }
  .ameta {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: auto;
  }
  .ameta .body {
    font-size: 14px;
    max-width: none;
  }
  #parts .phead {
    left: var(--g);
    right: var(--g);
    max-width: none;
    top: calc(var(--top) - 22px);
  }
  #parts .phead .stmt {
    font-size: 26px;
  }
  #parts .pname b {
    font-size: 48px;
  }
  #parts .pbar {
    left: var(--g);
    right: var(--g);
    bottom: 14px;
  }
}

/* v5b: hero fits on phone; film stays 16:9; machines copy sized */
@media (max-width: 640px) {
  #hero .g-stage {
    aspect-ratio: 1448/640;
  }
  #hero .g-stage canvas {
    width: 124%;
  }
}
#film .fcap .stmt {
  font-size: clamp(26px, 2.6vw, calc(44px * var(--sc)));
}

/* film frame: a visible 16:9 plate with a hairline, since the line no longer draws it */
#film .fv {
  background: #16151d;
  box-shadow:
    inset 0 0 0 1px rgba(239, 238, 243, 0.22),
    0 30px 80px rgba(0, 0, 0, 0.45);
}
#film .fv .fph {
  background: transparent;
}
#film .fv .fph b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, calc(30px * var(--sc)));
  letter-spacing: -0.02em;
}

/* v5c: hero on phone. The sheet is cropped to its drawn band and the drawing is zoomed inside it, so the object fills the middle of the screen */
@media (max-width: 640px) {
  #hero {
    padding-top: 72px;
    padding-bottom: 18px;
    gap: 0;
    justify-content: space-between;
    --fs: clamp(40px, 12vw, 54px);
  }
  #hero .ah {
    margin: 0 auto;
  }
  #hero .g-stage {
    flex: 1;
    width: 100%;
    align-self: stretch;
    height: auto;
    aspect-ratio: auto;
    margin: 6px 0;
    overflow: hidden;
    min-height: 0;
  }
  #hero .g-stage canvas {
    inset: 0;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    transform: none;
    max-width: none;
  }
  .ameta {
    margin-top: 0;
    gap: 8px;
  }
  .ameta .idx {
    font-size: 12px;
  }
}

/* v5d: phone QA fixes */
@media (max-width: 640px) {
  /* night block: never an empty white plate. Dark sheet from the start */
  .tblock {
    background: rgba(19, 19, 19, 0.82);
    color: var(--on-ink);
  }
  #night .pin-in {
    color: var(--on-ink);
  }
  /* machines: the blurb gets room */
  /* film: the plate sits mid-screen, captions don't collide */
  #film .fcap {
    bottom: 24px;
    max-width: none;
    right: var(--g);
  }
  #film .ftop {
    top: calc(var(--top) - 22px);
  }
  /* map: the headline sits closer to the map */
  #net .hud .line {
    bottom: 40px;
  }
  /* footer: no stray rule under the CTA */
  #close .send-lg::after {
    display: none;
  }
  #close .send-lg {
    padding-bottom: 0;
    border-bottom: 1px solid rgba(239, 238, 243, 0.35);
  }
}

/* ===== final overrides: must stay last ===== */
@media (max-width: 640px) {
  .tblock {
    background: rgba(19, 19, 19, 0.84) !important;
    color: var(--on-ink) !important;
    border-color: rgba(239, 238, 243, 0.28) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  #film .fcap {
    right: var(--g);
  }
}

/* ===================== v7: one grid, cards, a nav that holds ===================== */
/* every chapter is a card: inset from the viewport, with a top gap so the nav never sits on content */
:root {
  --inset: clamp(10px, 1.1vw, 16px);
  --navh: 64px;
}
.ch {
  margin: var(--inset);
}
.fb,
#night,
#film,
#parts,
#next,
#net,
#work {
  margin: var(--inset);
}
.ch .pin {
  top: var(--inset);
  height: calc(100svh - 2 * var(--inset));
  border-radius: 0;
}
#close {
  margin: var(--inset);
}
/* the pinned card sits under the nav: push the card's top down by the nav height so nothing hides behind it */
.pin {
  top: calc(var(--inset) + var(--navh)) !important;
  height: calc(100svh - 2 * var(--inset) - var(--navh)) !important;
}
.tall {
  height: calc(var(--len, 4) * 100svh);
}
/* one left edge for everything: --cl is from the viewport; inside a card that's --cl minus the inset */
.pin-in {
  left: calc(var(--cl) - var(--inset));
  right: calc(var(--cl) - var(--inset));
}
.hud .line {
  left: calc(var(--cl) - var(--inset));
}
.hud .tr,
.hud .br {
  right: calc(var(--cl) - var(--inset));
}
.hud .tr {
  top: clamp(22px, 3vh, 36px);
}
.hud .line,
.hud .br {
  bottom: clamp(24px, 3.6vh, 44px);
}
#film .ftop {
  left: 0;
  top: clamp(22px, 3vh, 36px);
}
#film .fcap {
  left: 0;
  bottom: clamp(24px, 3.6vh, 44px);
}
#parts .phead {
  left: calc(var(--cl) - var(--inset));
  top: clamp(22px, 3vh, 36px);
}
#parts .pbar {
  left: calc(var(--cl) - var(--inset));
  right: calc(var(--cl) - var(--inset));
  bottom: 12px;
}
.tblock {
  right: 0;
  bottom: 0;
}
#close {
  padding-left: calc(var(--cl) - var(--inset));
  padding-right: calc(var(--cl) - var(--inset));
}
/* the nav: its own strip above the cards, never over them. Always ink on paper, so it reads on every section */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navh);
  padding: 0 var(--cl);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid rgba(19, 19, 19, 0.08);
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}
body.dark .nav {
  background: var(--paper);
  color: var(--ink);
}
.nav .send::before {
  background: var(--ink);
}
body.dark .nav .send::before {
  background: var(--ink);
}
.nav .send:hover {
  color: var(--paper) !important;
  border-color: var(--ink) !important;
}
body.navhide .nav {
  transform: translateY(-100%);
}
body {
  padding-top: var(--navh);
}
#hero {
  min-height: calc(100svh - var(--navh));
  max-height: calc(100svh - var(--navh));
  padding-top: clamp(28px, 5vh, 56px);
}
.menu {
  padding-top: calc(var(--navh) + 24px);
}
body.menu-open .nav {
  color: var(--ink);
}
/* film: a card inside the card. The frame grows to fill the card, not the screen */
#film .fv {
  box-shadow: inset 0 0 0 1px rgba(239, 238, 243, 0.18);
}
/* engine: smaller */
#next .bg canvas {
  transform: scale(0.82);
  transform-origin: 50% 54%;
}
/* hero on phone: the sheet is never cropped. The text never crops */
@media (max-width: 640px) {
  :root {
    --navh: 56px;
  }
  #hero {
    padding-top: 14px;
    padding-bottom: 14px;
    --fs: clamp(34px, 10.5vw, 44px);
  }
  #hero .ah {
    line-height: 0.95;
  }
  #hero .g-stage {
    margin: 0;
  }
  .pin-in {
    left: var(--g);
    right: var(--g);
  }
  .hud .line,
  #parts .phead,
  #parts .pbar {
    left: var(--g);
  }
  .hud .tr,
  .hud .br,
  #parts .pbar {
    right: var(--g);
  }
  #next .bg canvas {
    transform: scale(0.9);
  }
  #close {
    padding-left: var(--g);
    padding-right: var(--g);
  }
}

/* ===== grid fix: anything inside .pin-in is already on the grid; it goes to 0 ===== */
.pin-in #parts .phead,
#parts .pin-in .phead {
  left: 0;
}
#parts .pin-in .pbar {
  left: 0;
  right: 0;
}
.pin-in .tblock {
  right: 0;
  bottom: 0;
}
#film .pin-in .ftop,
#film .pin-in .fcap {
  left: 0;
}
/* the hero sits under the nav strip with air above the headline */
#hero {
  padding-top: clamp(36px, 6vh, 64px);
}

/* ===================== v8: a type system, a glass nav, a hero that fits ===================== */
/* type scale. One system, used everywhere. No more scaling by --sc on text */
:root {
  --t12: 12px;
  --t13: 13px;
  --t14: 14px;
  --t16: 16px;
  --t18: 18px;
  --t22: 22px;
  --t28: 28px;
  --t36: 36px;
  --t44: 44px;
  --t56: 56px;
  --t72: 72px;
  --sc: 1 !important;
}
@media (min-width: 1800px) {
  :root {
    --t12: 13px;
    --t13: 14px;
    --t14: 15px;
    --t16: 17px;
    --t18: 20px;
    --t22: 24px;
    --t28: 31px;
    --t36: 40px;
    --t44: 48px;
    --t56: 62px;
    --t72: 80px;
  }
}
body {
  font-size: var(--t14);
  line-height: 1.5;
}
.body {
  font-size: var(--t14);
  line-height: 1.55;
  max-width: 44ch;
}
.lab,
.lab2,
.mono {
  font-size: var(--t12);
}
.stmt {
  font-size: var(--t44);
  line-height: 1;
  letter-spacing: -0.025em;
}
.hud .line .stmt {
  font-size: var(--t44);
}
.hud .line .cap {
  font-size: var(--t14);
}
.hud .num {
  font-size: var(--t56);
}
#film .ftop .stmt,
#film .fcap .stmt {
  font-size: var(--t36);
}
#parts .phead .stmt {
  font-size: var(--t36);
}
#parts .pname b {
  font-size: var(--t72);
}
.tblock .t .stmt {
  font-size: var(--t28);
}
.tblock .b {
  font-size: var(--t14);
}
#night .clock {
  font-size: var(--t44);
}
#close .cx .stmt {
  font-size: clamp(64px, 8vw, 120px);
}
#close .cbody {
  font-size: var(--t16);
}
.send-lg {
  font-size: var(--t28);
}
#close .fgrid {
  font-size: var(--t14);
}
.nav .links {
  font-size: var(--t13);
}
.nav .send {
  font-size: var(--t13);
}
.ameta .body {
  font-size: var(--t14);
}
.ameta .idx {
  font-size: var(--t13);
}
/* the hero: headline at a human size; the sheet at its true aspect so nothing crops; the copy sits above the fold */
:root {
  --navh: 0px;
}
body {
  padding-top: 0;
}
#hero {
  --fs: var(--t56);
  min-height: 100svh;
  max-height: 100svh;
  padding: calc(14px + 72px) var(--cl) clamp(22px, 3.4vh, 34px);
  justify-content: space-between;
  gap: 0;
}
#hero .ah {
  font-size: var(--fs);
  line-height: 0.96;
  letter-spacing: -0.03em;
}
#hero .g-stage {
  flex: 1;
  min-height: 0;
  width: 100%;
  align-self: stretch;
  aspect-ratio: auto;
  margin: clamp(6px, 1.2vh, 14px) 0;
  overflow: hidden;
}
#hero .g-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  top: 0;
}
.ameta {
  margin: 0;
  padding: 0;
}
/* the nav: a floating glass pill. Shows through to whatever is under it; flips to dark glass over ink */
.nav {
  top: 14px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(calc(var(--cw)), calc(100vw - 2 * var(--inset)));
  height: 52px;
  padding: 0 8px 0 18px;
  border-radius: 999px;
  background: rgba(239, 238, 243, 0.62);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 10px 30px rgba(19, 19, 19, 0.08),
    0 1px 2px rgba(19, 19, 19, 0.06);
  color: var(--ink);
  transition:
    background 0.5s ease,
    color 0.5s ease,
    border-color 0.5s ease,
    transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}
body.navhide .nav {
  transform: translate(-50%, -140%);
}
body.dark .nav {
  background: rgba(19, 19, 19, 0.5);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 10px 30px rgba(0, 0, 0, 0.25);
  color: var(--on-ink);
}
.nav .lock {
  width: 118px;
}
.nav .links {
  gap: 4px;
}
.nav .links a {
  padding: 8px 12px;
  border-radius: 999px;
  opacity: 0.75;
  transition:
    background 0.3s ease,
    opacity 0.3s ease;
}
.nav .links a::after {
  display: none;
}
.nav .links a:hover {
  opacity: 1;
  background: rgba(19, 19, 19, 0.06);
}
body.dark .nav .links a:hover {
  background: rgba(255, 255, 255, 0.08);
}
.nav .links a.on {
  opacity: 1;
  background: rgba(19, 19, 19, 0.08);
}
body.dark .nav .links a.on {
  background: rgba(255, 255, 255, 0.12);
}
.nav .links a small {
  font-size: 10px;
  opacity: 0.55;
}
.nav .send {
  padding: 9px 14px 9px 16px;
  border: 0;
  background: var(--ink);
  color: var(--paper) !important;
  border-radius: 999px;
}
.nav .send::before {
  display: none;
}
.nav .send:hover {
  background: var(--v);
}
body.dark .nav .send {
  background: var(--paper);
  color: var(--ink) !important;
}
body.dark .nav .send:hover {
  background: var(--v);
  color: #fff !important;
}
.nav .send i {
  background: var(--v);
}
body.dark .nav .send i {
  background: var(--v);
}
.nav .send:hover i {
  background: #fff;
}
/* cards: pinned under the floating nav, with real padding so the nav never touches content */
.pin {
  top: var(--inset) !important;
  height: calc(100svh - 2 * var(--inset)) !important;
}
.hud .tr,
#film .ftop,
#parts .phead {
  top: clamp(84px, 12vh, 110px);
}
@media (max-width: 900px) {
  .nav {
    padding: 0 6px 0 14px;
    height: 48px;
  }
  .nav .lock {
    width: 104px;
  }
  .nav .burger {
    width: 36px;
    height: 36px;
  }
}
@media (max-width: 640px) {
  :root {
    --t44: 30px;
    --t56: 36px;
    --t72: 46px;
    --t36: 26px;
    --t28: 22px;
  }
  #hero {
    padding: calc(14px + 60px) var(--g) 16px;
  }
  .hud .tr,
  #film .ftop,
  #parts .phead {
    top: 76px;
  }
  #close .cx .stmt {
    font-size: 52px;
  }
}
/* the sheet keeps its aspect and sits centred in the stage */
#hero .g-stage canvas {
  inset: auto;
  left: 50%;
  top: 50%;
  width: min(100%, calc((100svh - 300px) * 1448 / 815));
  height: auto;
  aspect-ratio: 1448/815;
  transform: translate(-50%, -50%);
}
@media (max-width: 640px) {
  #hero .g-stage canvas {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    left: 0;
    top: 0;
    transform: none;
  }
}

@media (max-width: 640px) {
  :root {
    --t56: 42px;
  }
  #hero {
    padding-bottom: 22px;
  }
  #hero .ah {
    line-height: 0.94;
  }
  .ameta {
    gap: 10px;
  }
  .ameta .body {
    font-size: 15px;
    line-height: 1.5;
  }
}

/* ===================== v9: the card, done the Amca way ===================== */
/* a card is inset on all four sides, equally, with a radius. The page shows through the gap. The nav floats above the gap */
:root {
  --inset: clamp(14px, 1.6vw, 24px);
  --rad: 10px;
}
.ch {
  margin: 0 var(--inset);
}
.ch.tall {
  margin: 0 var(--inset);
}
.pin {
  top: var(--inset) !important;
  height: calc(100svh - 2 * var(--inset)) !important;
  border-radius: var(--rad);
  overflow: hidden;
}
.ch.ink .pin,
.fb .pin,
#parts .pin,
#night .pin,
#next .pin,
#net .pin,
#work .pin,
#film .pin {
  border-radius: var(--rad);
}
/* the page under the cards: not flat. The hero's sky continues down the page, faintly, so the gap between cards has something in it */
body {
  background: #d9d3f0;
}
body::before {
  background: var(--sky);
  opacity: 1;
}
/* the first card starts right after the hero with one inset of air; cards after that get the same */
#film {
  margin-top: 0;
}
.ch.tall + .ch.tall {
  margin-top: 0;
}
/* close: a card too, with the same inset, and air after it */
#close {
  margin: 0 var(--inset) var(--inset);
  border-radius: var(--rad);
}
/* inside the film card: the frame is a plate inside the card, never touching its edges */
#film .pin-in {
  top: 0;
  bottom: 0;
}
@media (max-width: 640px) {
  :root {
    --inset: 10px;
    --rad: 8px;
  }
}

/* v9b: the slowest-part block was collapsing to min-content (a % max-width inside an auto grid track). Give it a real column */

/* ===================== v11: from the Figma pass. Cards sit under the nav, not behind it. Mobile is a stack of content-sized cards ===================== */
:root {
  --cardtop: 91px;
  --cardbot: 28px;
}
.pin {
  top: var(--cardtop) !important;
  height: calc(100svh - var(--cardtop) - var(--cardbot)) !important;
}
/* hero: headline sits 78px under the nav; the meta sits 59px off the floor */
#hero {
  padding: 144px var(--cl) 59px !important;
  min-height: 100svh !important;
  max-height: 100svh !important;
}
#hero .g-stage canvas {
  width: min(100%, calc((100svh - 400px) * 1448 / 815));
}
.ameta .body {
  max-width: 460px;
}
/* film: no words on the card. The plate grows to the whole card */
#film .ftop,
#film .fcap {
  display: none;
}
#close {
  margin: 0 var(--inset) var(--inset);
}

@media (max-width: 640px) {
  :root {
    --inset: 10px;
    --g: 16px;
    --cg: 18px;
  }
  .tall,
  .ch.tall {
    height: auto !important;
  }
  .ch,
  .ch.tall,
  .fb,
  #night,
  #film,
  #parts,
  #next,
  #net,
  #work {
    margin: 0 var(--inset) var(--cg) !important;
  }
  .pin {
    position: relative !important;
    top: auto !important;
    height: auto !important;
  }
  .pin-in {
    left: var(--g) !important;
    right: var(--g) !important;
  }
  /* hero: as tall as its content. Big headline, the whole plane, one paragraph */
  #hero {
    min-height: 0 !important;
    max-height: none !important;
    height: auto;
    padding: 150px var(--g) 44px !important;
    gap: 30px !important;
    justify-content: flex-start;
  }
  #hero .ah {
    font-size: 70px !important;
    line-height: 0.95 !important;
    letter-spacing: -0.03em;
    text-align: center;
  }
  #hero .g-stage {
    flex: none !important;
    width: 100%;
    aspect-ratio: 1448/815 !important;
    height: auto;
    min-height: 0;
    margin: 0 !important;
    overflow: visible;
  }
  #hero .g-stage canvas {
    position: absolute;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    transform: none !important;
  }
  .ameta {
    gap: 0;
  }
  .ameta .idx {
    display: none !important;
  }
  .ameta .body {
    font-size: 15px;
    line-height: 1.5;
    max-width: none;
    opacity: 0.8;
  }
  /* film: a short card. Title, then the plate */
  #film .pin {
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    padding: 16px;
    background: #0d0c11;
  }
  #film .pin-in {
    position: static !important;
    inset: auto !important;
    pointer-events: auto;
  }
  #film .ftop {
    display: block !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  #film .ftop .stmt {
    font-size: 26px;
    line-height: 1.1;
  }
  #film .fcap {
    display: none !important;
  }
  #film .fv {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100%;
    aspect-ratio: 16/9;
    background: #16151d;
  }
  #film .fph {
    opacity: 1;
    pointer-events: auto;
  }
  #film .fv.has .fph {
    opacity: 0;
    pointer-events: none;
  }
  /* machines: headline centred at the top, the object in the middle, the name and its slowest part at the foot */
  #parts .pin {
    height: 733px !important;
  }
  #parts .phead {
    left: var(--g) !important;
    right: var(--g) !important;
    top: 55px !important;
    text-align: center;
  }
  #parts .phead .stmt {
    font-size: 44px !important;
    line-height: 0.96;
    color: #fff;
  }
  #parts .pname {
    gap: 8px;
  }
  #parts .pname b {
    font-size: 46px !important;
  }
  #parts .pbar {
    bottom: 13px !important;
  }
  /* lights off: the photo is one card, the caption is a second card under it */
  #night {
    padding-bottom: 198px;
  }
  #night .pin {
    height: 553px !important;
    overflow: visible !important;
    background: transparent !important;
    border-radius: 0 !important;
  }
  #night canvas.art {
    top: 0 !important;
    height: 100% !important;
    border-radius: 8px;
  }
  #night .pin-in {
    left: 0 !important;
    right: 0 !important;
  }
  #night .tblock {
    top: calc(100% + 8px);
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    border-radius: 8px;
    grid-template-columns: 1fr !important;
    background: rgba(19, 19, 19, 0.96) !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  #night .tblock > * {
    padding: 14px 16px;
  }
  #night .tblock .t .stmt {
    font-size: 26px !important;
  }
  #night .tblock .b {
    display: none !important;
  }
  #night .tblock .c {
    min-width: 0;
    gap: 6px;
    justify-content: flex-start;
  }
  #night .tblock .c > span {
    font-size: 14px;
  }
  #night .clock span {
    font-size: inherit !important;
  }
  #night .clock {
    font-size: 35px !important;
  }
  /* the floor: one card, words at the foot. No counters on mobile */
  #work .pin {
    height: 660px !important;
  }
  #work .hud .tr,
  #net .hud .tr,
  #next .hud .tr {
    display: none !important;
  }
  #work .hud .line {
    left: var(--g) !important;
    right: var(--g) !important;
    bottom: 28px !important;
  }
  #work .hud .line .stmt {
    font-size: 30px !important;
  }
  #work .hud .line .cap {
    color: var(--on-ink);
    opacity: 1;
    max-width: none;
  }
  /* america + sketch: headline centred at the top, caption centred at the foot, the picture between */
  #net .pin {
    height: 643px !important;
  }
  #next .pin {
    height: 629px !important;
  }
  #net .hud .line,
  #next .hud .line {
    position: absolute;
    inset: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    max-width: none !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 58px 20px 40px;
  }
  #next .hud .line {
    padding-top: 42px;
    padding-bottom: 36px;
  }
  #net .hud .line .stmt,
  #next .hud .line .stmt {
    font-size: 44px !important;
    line-height: 0.96;
    text-wrap: balance;
  }
  #next .hud .line .stmt {
    color: #fff;
  }
  #net .hud .line .cap {
    font-size: 18px !important;
    line-height: 1.5;
    color: var(--mute);
    max-width: 26ch;
    min-height: 0;
  }
  #next .hud .line .cap {
    font-size: 14px !important;
    max-width: 34ch;
    min-height: 0;
    text-align: center;
  }
  /* close: the card itself, under the nav */
  #close {
    margin: 0 var(--inset) var(--inset) !important;
  }
}
/* v11b: the section is a transparent spacer; only the card carries colour (so the page shows in the gap under the nav) */
.ch.tall,
.ch.ink.tall,
.fb.tall,
#night,
#film,
#parts,
#next,
#net,
#work {
  background: transparent !important;
}
#film .pin {
  background: #0d0c11;
}
#parts .pin {
  background: #0e0d14;
}
#night .pin {
  background: #efeef3;
}
#work .pin {
  background: #d9d8de;
}
#net .pin {
  background: #efeef3;
}
#next .pin {
  background: #131313;
}
@media (min-width: 641px) {
  body.navhide .nav {
    transform: translateX(-50%);
  }
}
@media (max-width: 640px) {
  #night .pin {
    background: transparent;
  }
}
/* v11c: the night gradient and grain belong to the card, not the section spacer */
#night::before,
#night::after {
  display: none;
}
#night .pin::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, #0e0d16 0%, #17152a 55%, #221b3b 100%);
  opacity: var(--n);
  pointer-events: none;
}
@media (max-width: 640px) {
  #night .pin::before {
    border-radius: 8px;
  }
}

/* ===================== v12: from the Figma pass 2. One full card per section, nav floating over it, less text, everything centred ===================== */
.pin {
  top: var(--inset) !important;
  height: calc(100svh - 2 * var(--inset)) !important;
}
.nav {
  top: 48px;
}
#hero {
  padding: 182px var(--cl) 59px !important;
}
/* machines: the headline and one line under it, centred at the top. No name, no part block. The bar stays */
#parts .phead {
  left: 0 !important;
  right: 0 !important;
  top: 188px !important;
  text-align: center;
}
#parts .phead .stmt {
  font-size: var(--t36);
}
#parts .pin-in .pbar {
  left: calc(66px - (var(--cl) - var(--inset)));
  right: calc(66px - (var(--cl) - var(--inset)));
  bottom: 73px !important;
}
/* lights off: the caption block sits in the corner of the card, 27 / 30 in */
#night .pin-in .tblock {
  right: calc(27px - (var(--cl) - var(--inset))) !important;
  bottom: 30px !important;
}
/* the floor and america: words 52 off the floor; the counter only on the floor */
#work .hud .line,
#net .hud .line {
  bottom: 52px !important;
}
#work .hud .tr {
  top: 118px;
}
#net .hud .tr {
  display: none !important;
}
/* send a sketch: the two halves of the line flank the engine, on its centre line */
#next .hud .tr,
#next .hud .line .cap {
  display: none !important;
}
#next .hud .line {
  position: absolute;
  inset: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  height: 100%;
  max-width: none !important;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 85px;
}
#next .hud .line .stmt {
  display: contents;
}
#next .hud .line .stmt span {
  font-size: var(--t44);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--on-ink);
}

@media (max-width: 640px) {
  .nav {
    top: 14px;
  }
  .pin {
    position: relative !important;
    top: auto !important;
    height: auto !important;
  }
  /* film: just the plate */
  #film .ftop {
    display: none !important;
  }
  /* machines: headline + line, the object, the bar */
  #parts .pin {
    height: 640px !important;
  }
  #parts .phead {
    top: 47px !important;
    left: var(--g) !important;
    right: var(--g) !important;
  }
  #parts .phead .stmt {
    font-size: 44px !important;
  }
  #parts .pin-in .pbar {
    left: 0;
    right: 0;
    bottom: 13px !important;
  }
  /* the floor keeps its counter, like the desktop */
  #work .hud .tr {
    display: flex !important;
    top: 24px !important;
    right: var(--g) !important;
  }
  #work .hud .tr .num {
    font-size: 42px;
  }
  /* send a sketch: one half above the engine, one below */
  #next .hud .line {
    flex-direction: column;
    padding: 42px 20px 40px;
    text-align: center;
  }
  #next .hud .line .stmt span {
    font-size: 44px !important;
    color: #fff;
  }
}
/* v12b: the machines heading was centring inside a 14ch / 52% box. Kill both; centre the block itself */
#parts .phead {
  max-width: none !important;
  width: auto !important;
}
#parts .phead .stmt {
  max-width: none !important;
  margin: 0 auto !important;
  text-align: center;
}
#next .hud .line .stmt span {
  max-width: none;
}

/* ===================== v13: hero back to larger than life; one margin; nav hides on the way down; the floor and the night are one card ===================== */
#hero {
  padding: 120px var(--cl) 59px !important;
}
#hero .g-stage {
  overflow: visible;
}
#hero .g-stage canvas {
  width: min(100%, calc((100svh - 240px) * 1448 / 815));
}
body.navhide .nav {
  transform: translate(-50%, -140%) !important;
}
/* one margin: everything sits on --cl from the viewport, 57 inside the card; tops at 170 inside the card */
#parts .phead {
  top: 170px !important;
}
#parts .pin-in .pbar {
  left: 0 !important;
  right: 0 !important;
  bottom: 57px !important;
}
#night .pin-in .tblock {
  right: 0 !important;
  bottom: 57px !important;
  border: 0 !important;
}
#night .tblock .t,
#night .tblock .b {
  border: 0 !important;
}
#night .tblock > * {
  padding: 16px 18px;
}
#night .tblock .t {
  padding-bottom: 0;
}
#net .hud .line {
  bottom: 57px !important;
}
#next .hud .line {
  align-items: flex-start;
  justify-content: center;
  padding: 170px 0 0;
  text-align: center;
}
#next .hud .line .stmt {
  display: block;
  max-width: none;
  text-align: center;
}
@media (max-width: 640px) {
  #next .hud .line {
    padding: 42px 20px 40px;
  }
  #night .tblock {
    border: 0 !important;
  }
}
@media (max-width: 640px) {
  #night .pin-in .tblock {
    top: calc(100% + 8px) !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(19, 19, 19, 0.96) !important;
  }
}
/* v13b: the nav leaves the screen completely on the way down; the engine sits under the line and runs off the floor of the card, as drawn */
body.navhide .nav {
  transform: translate(-50%, calc(-100% - 60px)) !important;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.45s cubic-bezier(0.19, 1, 0.22, 1),
    opacity 0.3s ease;
}
.nav {
  transition:
    background 0.5s ease,
    color 0.5s ease,
    border-color 0.5s ease,
    transform 0.45s cubic-bezier(0.19, 1, 0.22, 1),
    opacity 0.3s ease;
}
#next .bg canvas,
#cnext {
  transform: none !important;
}
@media (max-width: 640px) {
  #next .bg canvas,
  #cnext {
    transform: none !important;
  }
}
#next .hud .line {
  padding-top: 79px;
}
@media (max-width: 640px) {
  #next .hud .line {
    padding-top: 42px;
  }
}

/* ===================== v14: a futuristic face; no magnets; two boxes; the name you can push around; hovers everywhere ===================== */
:root {
  --serif: "Space Grotesk", "Inter", "Helvetica Neue", Arial, sans-serif;
}
.stmt,
#hero .ah,
.hud .num,
#night .clock,
.send-lg,
.fph b,
#parts .pname b {
  font-family: var(--serif) !important;
  font-weight: 500 !important;
  letter-spacing: -0.03em !important;
}
#hero .ah {
  line-height: 0.98 !important;
}
.stmt {
  line-height: 1.02;
}
.mag {
  transition: none !important;
  transform: none !important;
}
/* the caption: one box for the words, one for the clock. Both take the same tint as the night falls */
.tblock {
  --tbg: #efeef3;
  background: transparent !important;
  border: 0 !important;
  display: flex !important;
  align-items: stretch;
  gap: 8px;
  width: min(520px, 44%) !important;
  grid-template-columns: none !important;
}
.tblock .tb1 {
  flex: 1;
  background: var(--tbg);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}
.tblock .tb1 .t {
  padding: 16px 18px 0;
}
.tblock .tb1 .b {
  padding: 10px 18px 16px;
  border: 0 !important;
  min-height: 0;
}
.tblock .c {
  background: var(--tbg);
  min-width: 130px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  border: 0 !important;
  transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}
.tblock .tb1:hover,
.tblock .c:hover {
  transform: translateY(-3px);
}
@media (max-width: 640px) {
  .tblock {
    width: auto !important;
    flex-direction: row;
  }
  .tblock .tb1 {
    min-width: 0;
  }
  .tblock .c {
    min-width: 110px;
  }
}
/* the name at the foot of the page, made of lines that bend around the cursor */
#cwm {
  display: block !important;
  margin: 48px 0 0;
  cursor: crosshair;
}
#close {
  padding-bottom: 0 !important;
}
#close .fgrid {
  margin-top: clamp(64px, 10vh, 120px);
  border-top: 0 !important;
  padding-bottom: 0;
}
/* hovers */
.send:hover i,
.send-lg:hover i {
  transform: translateX(6px) rotate(90deg);
}
.send-lg {
  transition: color 0.25s ease;
}
.send-lg:hover {
  color: var(--v);
}
.totop:hover i {
  transform: translateY(-5px);
}
#film .fv {
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
#film .fv:hover {
  transform: scale(1.012);
}
#film .pl {
  transition:
    border-color 0.3s ease,
    transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
#film .fv:hover .pl {
  border-color: var(--v);
  transform: scale(1.08);
}
.nav .links a {
  transition:
    background 0.3s ease,
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}
.nav .links a:hover {
  transform: translateY(-1px);
}
.fc a:hover {
  color: var(--v);
}
/* the glitch on the big lines */
@keyframes glt {
  0% {
    clip-path: inset(0 0 72% 0);
    transform: translate(-4px, 0);
  }
  20% {
    clip-path: inset(30% 0 40% 0);
    transform: translate(5px, 0);
  }
  40% {
    clip-path: inset(60% 0 10% 0);
    transform: translate(-3px, 0);
  }
  60% {
    clip-path: inset(10% 0 60% 0);
    transform: translate(4px, 0);
  }
  80% {
    clip-path: inset(45% 0 30% 0);
    transform: translate(-2px, 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
    transform: none;
  }
}
.gl {
  position: relative;
}
.gl::before,
.gl::after {
  content: attr(data-t);
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.stmt.gl,
.ah.gl {
  animation: glt 0.62s steps(1) 1;
}
.stmt.gl {
  text-shadow:
    2px 0 var(--v),
    -2px 0 #b79bff;
}
/* v14b: the close card ends on the name */
#close {
  min-height: 0 !important;
  padding-top: clamp(72px, 10vh, 110px) !important;
}
#close .cx {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
#close .fgrid {
  margin-top: clamp(56px, 8vh, 88px) !important;
}
#cwm {
  margin: 36px 0 0 !important;
}

/* ===================== v15: Chakra Petch for the big lines; a small footer, done properly ===================== */
:root {
  --serif: "Chakra Petch", "Inter", "Helvetica Neue", Arial, sans-serif;
}
.stmt,
#hero .ah,
.hud .num,
#night .clock,
.send-lg,
.fph b,
#parts .pname b {
  font-family: var(--serif) !important;
  font-weight: 500 !important;
  letter-spacing: -0.02em !important;
}
#hero .ah {
  letter-spacing: -0.025em !important;
}
/* the close card: headline left, the ask right; everything content-sized */
#close {
  min-height: 0 !important;
  padding-top: clamp(56px, 7vh, 76px) !important;
  padding-bottom: clamp(28px, 3.5vh, 36px) !important;
}
#close .cx {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 0;
  align-items: end;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
#close .cx .stmt {
  grid-column: 1/7;
  font-size: clamp(44px, 4.6vw, 68px) !important;
  line-height: 1 !important;
  margin: 0;
}
#close .cbody {
  grid-column: 7/11;
  margin: 0 0 2px !important;
  font-size: var(--t14) !important;
  line-height: 1.5;
  max-width: 34ch;
}
#close .send-lg {
  grid-column: 11/13;
  justify-self: end;
  font-size: var(--t22) !important;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(239, 238, 243, 0.3);
  margin-bottom: 0;
}
#close .send-lg::after,
#close .send-lg::before {
  display: none;
}
#close .fgrid {
  display: block !important;
  margin-top: clamp(44px, 6vh, 64px) !important;
  padding: 0 !important;
  border-top: 0 !important;
  font-size: var(--t13) !important;
}
#close .fr1 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: start;
  padding: 26px 0 30px;
  border-top: 1px solid rgba(239, 238, 243, 0.18);
}
#close .fl {
  grid-column: 1/6;
  display: block;
  line-height: 0;
  margin: 0;
}
#cwm {
  display: block !important;
  margin: 0 !important;
  cursor: crosshair;
}
#close .fc {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--on-ink);
}
#close .fr1 .fc:nth-of-type(1) {
  grid-column: 7/9;
}
#close .fr1 .fc:nth-of-type(2) {
  grid-column: 9/11;
}
#close .fr1 .fc:nth-of-type(3) {
  grid-column: 11/13;
}
#close .fc h3 {
  margin: 0 0 4px;
  font: inherit;
  font-size: var(--t12);
  color: var(--on-ink2);
  font-weight: 400;
}
#close .fc span {
  color: var(--on-ink2);
}
#close .fr2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(239, 238, 243, 0.18);
  color: var(--on-ink2);
  font-size: var(--t12);
}
#close .totop {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--t12);
  color: var(--on-ink2);
  margin: 0;
}
#close .totop:hover {
  color: var(--on-ink);
}
@media (max-width: 1000px) {
  #close .cx .stmt {
    grid-column: 1/-1;
    margin-bottom: 22px !important;
  }
  #close .cbody {
    grid-column: 1/8;
  }
  #close .send-lg {
    grid-column: 8/13;
  }
}
@media (max-width: 640px) {
  #close {
    padding-top: 48px !important;
    padding-bottom: 22px !important;
  }
  #close .cx {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  #close .cx .stmt {
    font-size: 40px !important;
    margin-bottom: 0 !important;
  }
  #close .cbody {
    max-width: none;
    margin: 0 !important;
  }
  #close .send-lg {
    align-self: flex-start;
    font-size: 20px !important;
  }
  #close .fgrid {
    margin-top: 36px !important;
  }
  #close .fr1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 26px;
    column-gap: 16px;
    padding: 22px 0 26px;
  }
  #close .fl {
    grid-column: 1/-1;
  }
  #close .fr1 .fc:nth-of-type(1) {
    grid-column: 1;
  }
  #close .fr1 .fc:nth-of-type(2) {
    grid-column: 2;
  }
  #close .fr1 .fc:nth-of-type(3) {
    grid-column: 1/-1;
  }
  #close .fr2 {
    padding-top: 14px;
  }
}
@media (max-width: 640px) {
  #hero .ah {
    font-size: 60px !important;
    line-height: 0.96 !important;
  }
}

/* ===================== v16: a plain grotesk; no glitch; the night box holds still; one line per section; a cursor you can see ===================== */
:root {
  --serif: "Helvetica Neue", Helvetica, "Inter", Arial, sans-serif;
}
.stmt,
#hero .ah,
.hud .num,
#night .clock,
.send-lg,
.fph b,
#parts .pname b {
  font-family: var(--serif) !important;
  font-weight: 500 !important;
  letter-spacing: -0.03em !important;
}
#hero .ah {
  letter-spacing: -0.035em !important;
}
.stmt.gl,
.ah.gl {
  animation: none !important;
  text-shadow: none !important;
}
.gl::before,
.gl::after {
  display: none !important;
}
/* the night box: the clock column is a fixed width and the digits are tabular, so nothing moves but the numbers */
.tblock .c {
  width: 150px !important;
  min-width: 0 !important;
  flex: none !important;
}
#night .clock,
#night .clock span {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
#night .clock span {
  display: inline-block;
  min-width: 0.62em;
  text-align: center;
}
#nbody {
  opacity: 0.85 !important;
  transition: none !important;
}
@media (max-width: 640px) {
  .tblock .c {
    width: 118px !important;
  }
}
/* the cursor: a violet square on the hand, a thin square ring a beat behind; it opens on anything you can use */
@media (pointer: fine) {
  #cur {
    display: block !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    background: none !important;
    box-shadow: none !important;
    mix-blend-mode: normal !important;
    z-index: 95;
  }
  #cur::before {
    content: "";
    position: absolute;
    left: -4px;
    top: -4px;
    width: 8px;
    height: 8px;
    background: var(--v);
    transition:
      transform 0.25s cubic-bezier(0.19, 1, 0.22, 1),
      opacity 0.2s ease;
  }
  #cur i {
    display: none !important;
  }
  #cur .c1 {
    display: block !important;
    position: absolute;
    left: -16px;
    top: -16px;
    width: 32px;
    height: 32px;
    border: 1px solid var(--v);
    border-radius: 0;
    opacity: 0.55;
    transform: none;
    transition:
      width 0.3s cubic-bezier(0.19, 1, 0.22, 1),
      height 0.3s cubic-bezier(0.19, 1, 0.22, 1),
      left 0.3s cubic-bezier(0.19, 1, 0.22, 1),
      top 0.3s cubic-bezier(0.19, 1, 0.22, 1),
      background 0.3s ease,
      opacity 0.3s ease;
  }
  #cur.hov::before {
    transform: scale(0.5);
  }
  #cur.hov .c1 {
    width: 48px;
    height: 48px;
    left: -24px;
    top: -24px;
    opacity: 1;
    background: rgba(132, 71, 255, 0.14);
  }
  #cur.lab::before {
    opacity: 0;
  }
  #cur.lab .c1 {
    width: 64px;
    height: 64px;
    left: -32px;
    top: -32px;
    opacity: 1;
    background: var(--v);
  }
  #cur span {
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    display: grid;
    place-items: center;
    overflow: visible;
    font-family: var(--sans) !important;
    font-size: 11px !important;
    font-weight: 500;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    color: #efeef3 !important;
    transform: none;
  }
  #cur #curl {
    white-space: nowrap;
  }
  #cur.lab #curl {
    opacity: 1;
  }
  #trail {
    display: block;
    opacity: 0.9;
  }
}
/* hovers that are hard to miss */
.nav .send {
  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}
.nav .send:hover {
  background: var(--v);
  color: #fff;
}
.nav .send:hover i {
  background: #fff;
}
.nav .links a {
  transition:
    opacity 0.25s ease,
    transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}
.nav .links a:hover {
  transform: translateY(-2px);
}
#close .send-lg {
  position: relative;
}
#close .send-lg::after {
  display: block !important;
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--v);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
#close .send-lg:hover::after {
  transform: scaleX(1);
}
#close .fc a {
  transition:
    color 0.25s ease,
    padding-left 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}
#close .fr2 .totop {
  transition: color 0.25s ease;
}
#close .fr2 .totop i {
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
#close .fr2 .totop:hover i {
  transform: translateY(-5px);
}
#film .pl {
  transition:
    transform 0.4s cubic-bezier(0.19, 1, 0.22, 1),
    background 0.3s ease,
    border-color 0.3s ease;
}
#film .fv:hover .pl {
  background: var(--v);
  border-color: var(--v);
}
.tblock .tb1:hover,
.tblock .c:hover {
  transform: translateY(-4px);
}
.tblock .c {
  width: 176px !important;
}
#night .clock span {
  min-width: 0.6em;
}
#night .clock span:nth-child(3) {
  min-width: 0.3em;
}
@media (max-width: 640px) {
  .tblock .c {
    width: 124px !important;
  }
}

/* ===================== v17: lighter face; nav is a rectangle; the guide lines go; one text position for every card; more grain; a warmer sky ===================== */
.stmt,
#hero .ah,
.hud .num,
#night .clock,
.send-lg,
.fph b,
#parts .pname b {
  font-weight: 300 !important;
  letter-spacing: -0.025em !important;
}
#hero .ah {
  letter-spacing: -0.03em !important;
}
.vgrid {
  display: none !important;
}
.nav {
  border-radius: var(--rad) !important;
}
@media (min-width: 641px) {
  #hero {
    padding-top: 140px !important;
  }
}
/* grain: two layers */
body::after {
  background-image: var(--grain), var(--grainL);
  background-size:
    220px 220px,
    170px 170px;
  opacity: 1;
}
/* the sky: deeper at the top, warm at the horizon, with faint bands */
:root {
  --sky:
    radial-gradient(60% 50% at 50% 58%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%),
    radial-gradient(90% 70% at 8% 0%, #8f80e4 0%, rgba(143, 128, 228, 0) 60%),
    radial-gradient(80% 60% at 92% 100%, #f1d9df 0%, rgba(241, 217, 223, 0) 60%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0) 0 22px, rgba(255, 255, 255, 0.035) 22px 23px),
    linear-gradient(180deg, #a596e6 0%, #d2c8f0 48%, #ebe2f0 82%, #f0e4e6 100%);
}
/* every card: the words bottom-left, 57px in, the same size */
@media (min-width: 641px) {
  #parts .phead {
    top: auto !important;
    bottom: 57px !important;
    left: 0 !important;
    right: auto !important;
    width: auto !important;
    max-width: min(560px, 46%) !important;
    text-align: left !important;
  }
  #parts .phead .stmt {
    text-align: left !important;
    margin: 0 !important;
    font-size: var(--t36) !important;
    max-width: 14ch !important;
  }
  #parts .pin-in .pbar {
    top: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px;
  }
  #night .pin-in .tblock {
    right: auto !important;
    left: 0 !important;
    bottom: 57px !important;
  }
  #night .tblock .t .stmt {
    font-size: var(--t28) !important;
  }
  .hud .line {
    left: 0 !important;
    bottom: 57px !important;
    max-width: min(560px, 46%) !important;
  }
  .hud .line .stmt {
    font-size: var(--t36) !important;
    max-width: 14ch;
  }
  .hud .line .cap {
    font-size: var(--t14) !important;
  }
}
@media (min-width: 641px) {
  #parts .phead .stmt,
  .hud .line .stmt {
    max-width: 18ch !important;
  }
}

/* v18: the map's words sit where the night box sits; the nav button is a rectangle like the nav; the film is a film */
@media (min-width: 641px) {
  #net .hud .line {
    left: calc(var(--cl) - var(--inset)) !important;
    bottom: 57px !important;
  }
}
.nav .send {
  border-radius: 6px !important;
}
#film .fv.on .fph {
  opacity: 0;
  pointer-events: none;
}
#film .fph {
  transition: opacity 0.4s ease;
}

/* ===================== 25 October: the first thread, back; the serif, back; the slowest-part chapter, back; the film fills its frame ===================== */
:root {
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
}
.stmt,
#hero .ah,
.hud .num,
#night .clock,
.send-lg,
.fph b,
#parts .pname b {
  font-family: var(--serif) !important;
  font-weight: 400 !important;
  letter-spacing: -0.02em !important;
}
#hero .ah {
  letter-spacing: -0.025em !important;
}
/* the line */
#line,
#tip {
  display: block !important;
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
}
#line {
  z-index: 52;
  mix-blend-mode: difference;
}
#tip {
  z-index: 53;
}
@media (max-width: 640px) {
  #line,
  #tip {
    display: none !important;
  }
}
/* the film: edge to edge inside its card */
#film .fv {
  left: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  border-radius: var(--rad);
}
#film .fph {
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* the problem chapter, in the same frame as every other card: drawing on the right, words bottom-left */
#prob .pin {
  background: #0e0d14;
}
#prob .pin-in {
  z-index: 3;
  color: var(--on-ink);
  pointer-events: none;
}
#prob .stage {
  position: absolute;
  left: 34%;
  right: 0;
  top: 8%;
  bottom: 14%;
}
#prob .stage .art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#prob .ex {
  position: relative;
  min-height: 5.6em;
}
#prob .ex p {
  position: absolute;
  inset: 0 0 auto;
  margin: 0;
  font-family: var(--serif);
  font-size: var(--t22);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--on-ink);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s ease,
    transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
#prob .ex p.on {
  opacity: 1;
  transform: none;
}
#prob .ex p span {
  display: block;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: var(--t14);
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--on-ink2);
}
@media (max-width: 640px) {
  #prob .pin {
    height: 620px !important;
  }
  #prob .stage {
    left: 0;
    right: 0;
    top: 16px;
    height: 300px;
    bottom: auto;
  }
  #prob .ex p {
    font-size: 19px;
  }
}

/* the chapter is one card now: the machines get harder, each waits on one part */
#parts .phead .stmt {
  max-width: 16ch !important;
}

/* 26 Oct: every card speaks like the hero: the line big and centred at the top, the object filling the middle, the small words bottom-left, the count bottom-right */
@media (min-width: 641px) {
  #parts .phead {
    top: 79px !important;
    bottom: 57px !important;
    left: 0 !important;
    right: 0 !important;
    max-width: none !important;
    width: auto !important;
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    text-align: center !important;
  }
  #parts .phead .stmt {
    font-size: var(--t56) !important;
    line-height: 0.96 !important;
    max-width: 20ch !important;
    margin: 0 auto !important;
    text-align: center !important;
    text-wrap: balance;
  }
  #net .hud .line {
    top: 79px !important;
    bottom: 57px !important;
    left: calc(var(--cl) - var(--inset)) !important;
    right: calc(var(--cl) - var(--inset)) !important;
    max-width: none !important;
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    gap: 0;
  }
  #net .hud .line .stmt {
    font-size: var(--t56) !important;
    line-height: 0.96;
    max-width: none !important;
    text-align: center;
    margin: 0 auto;
  }
  #net .hud .line .cap {
    align-self: flex-start;
    min-height: 0;
    max-width: 46ch;
    font-size: var(--t14) !important;
    margin: 0;
  }
  #next .hud .line .stmt span {
    font-size: var(--t56) !important;
    line-height: 0.96;
  }
}

/* the gap card: the whole card is the comparison; words where the hero keeps them */
#time .pin {
  background: var(--paper) !important;
}
#time .bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#time .hud .line {
  top: 79px !important;
  bottom: 57px !important;
  left: calc(var(--cl) - var(--inset)) !important;
  right: calc(var(--cl) - var(--inset)) !important;
  max-width: none !important;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
}
#time .hud .line .stmt {
  font-size: var(--t56) !important;
  line-height: 0.96;
  max-width: 22ch !important;
  text-align: center;
  margin: 0 auto;
  text-wrap: balance;
  color: var(--ink);
}
#time .ameta {
  margin: 0;
  padding: 0;
}
#time .ameta .body {
  margin: 0;
  font-size: var(--t14);
  line-height: 1.5;
  color: rgba(19, 19, 19, 0.78);
  max-width: 46ch;
}
@media (max-width: 640px) {
  #time .pin {
    height: 620px !important;
  }
  #time .hud .line {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 42px var(--g) 28px;
  }
  #time .hud .line .stmt {
    font-size: 34px !important;
  }
}

/* ===================== Route to final: larger than life ===================== */
/* hero: a bigger line, and the name across the bottom */
@media (min-width: 641px) {
  #hero {
    --wmh: calc((100vw - 2 * var(--cl)) * 0.1511);
    min-height: 0 !important;
    max-height: none !important;
    padding: 118px var(--cl) 0 !important;
    overflow: hidden;
  }
  #hero .ah {
    font-size: clamp(64px, 6.6vw, 118px) !important;
    line-height: 0.92 !important;
  }
  #hero .g-stage {
    flex: 1 1 auto !important;
    min-height: 0;
  }
  #hero .g-stage canvas {
    width: min(100%, calc((100svh - 350px) * 1448 / 815)) !important;
  }
  #hero .ameta {
    flex: none;
    padding-top: 8px;
  }
  #hero .awm {
    flex: none;
    margin: 34px 0 calc(var(--wmh) * -0.06);
    line-height: 0;
  }
}
#hero .awm svg {
  width: 100%;
  height: auto;
  fill: var(--ink);
  display: block;
}
@media (max-width: 640px) {
  #hero .awm {
    margin-top: 18px;
    line-height: 0;
  }
}
/* thesis: type on the sky, nothing else */
#thesis {
  margin: 0 var(--inset);
  background: transparent !important;
}
#thesis .pin {
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}
#thesis .tw {
  opacity: 0.13;
  transition: opacity 0.35s ease;
}
#thesis .tw.on {
  opacity: 1;
}
@media (max-width: 640px) {
  #thesis .pin {
    height: auto !important;
    padding: 96px var(--g);
  }
}
/* the comparison keys */
/* close: the big line, and the name again to end on */
#close .cx .stmt {
  font-size: clamp(64px, 6.6vw, 118px) !important;
  line-height: 0.92 !important;
}
#close {
  padding-bottom: 0 !important;
}
@media (max-width: 640px) {
  #close .cx .stmt {
    font-size: 48px !important;
  }
}

/* ===== route r2: the hero object is the hero; one sans, one serif; errors; a cleaner footer mark ===== */
@media (min-width: 641px) {
  #hero {
    height: auto !important;
    padding-top: 138px !important;
  }
  #hero .g-stage {
    flex: none !important;
    overflow: visible !important;
  }
  #hero .g-stage canvas {
    width: min(100%, calc(var(--sh, 520px) * 1.777 * 1.5)) !important;
  }
  #hero .ameta {
    margin-top: 0 !important;
  }
}
#hero .awm svg {
  fill: #0d0c11 !important;
}
.mono,
#cur span {
  font-family: var(--sans) !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
}
#close .fl svg.lock {
  width: 168px;
  height: auto;
  display: block;
  color: var(--on-ink);
}
#close .fl svg.lock .mi,
#close .fl svg.lock path {
  fill: var(--on-ink);
}
#close .fl svg.lock .mv {
  fill: var(--v);
}
#cwm {
  display: none !important;
}

/* ===== route r3: the comparison on a dark card, Amca-style; cursor glitch on buttons ===== */
#time .pin {
  background: #1b1a21 !important;
}
#time .hud {
  color: var(--on-ink);
}
@media (min-width: 641px) {
  #time .hud .line {
    flex-direction: column !important;
  }
  #time .hud .line .stmt {
    order: 2;
    align-self: flex-end;
    text-align: left !important;
    margin: 0 !important;
    width: min(560px, 40%);
    max-width: none !important;
    color: var(--on-ink) !important;
    font-size: var(--t56) !important;
  }
  #time .ameta {
    order: 1;
  }
}
#time .ameta .body {
  color: rgba(239, 238, 243, 0.72) !important;
  max-width: 44ch;
}
@media (max-width: 640px) {
  #time .hud .line {
    flex-direction: column !important;
  }
  #time .hud .line .stmt {
    order: 2;
    text-align: left !important;
    margin: 0 !important;
    color: var(--on-ink) !important;
  }
  #time .ameta {
    order: 1;
  }
  #time .ameta .body {
    font-size: 13px;
  }
}
.gxh {
  position: relative;
}
.gxh .gxc,
.nav .send .gxc,
.send-lg .gxc,
.nav .links a .gxc,
#close .fc a .gxc {
  position: absolute !important;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 3 !important;
  display: flex !important;
  align-items: center;
  justify-content: inherit;
  gap: inherit;
  padding: inherit;
  font: inherit;
  letter-spacing: inherit;
  border-radius: 0;
  pointer-events: none;
  white-space: nowrap;
  clip-path: inset(50% 50% 50% 50%);
  opacity: 0;
}
.gxh:hover .gxc {
  opacity: 1;
  animation: gxj 0.14s steps(1) infinite;
}
.gxh:hover .gxc.g1 {
  background: #131313;
  color: #b79bff;
  clip-path: inset(
    calc(var(--gy, 50%) - 12px) calc(100% - var(--gx, 50%) - 46px) calc(100% - var(--gy, 50%) + 3px)
      calc(var(--gx, 50%) - 22px)
  );
}
.gxh:hover .gxc.g2 {
  background: #8447ff;
  color: #fff;
  animation-delay: -0.07s !important;
  clip-path: inset(
    calc(var(--gy, 50%) - 2px) calc(100% - var(--gx, 50%) - 18px) calc(100% - var(--gy, 50%) - 6px)
      calc(var(--gx, 50%) - 50px)
  );
}
.gxh:hover .gxc.g3 {
  background: #7fe3ff;
  color: #131313;
  animation-delay: -0.035s !important;
  clip-path: inset(
    calc(var(--gy, 50%) + 8px) calc(100% - var(--gx, 50%) - 34px) calc(100% - var(--gy, 50%) - 12px)
      calc(var(--gx, 50%) - 12px)
  );
}
.gxt:hover .gxc {
  background: transparent !important;
}
.gxt:hover .gxc.g1 {
  color: #8447ff;
}
.gxt:hover .gxc.g2 {
  color: #7fe3ff !important;
}
.gxt:hover .gxc.g3 {
  color: #b79bff;
}
.nav .links a.gxh .gxc small {
  opacity: 0.5;
}
@keyframes gxj {
  0% {
    transform: translate(7px, 0);
  }
  25% {
    transform: translate(-8px, 1px);
  }
  50% {
    transform: translate(4px, -1px);
  }
  75% {
    transform: translate(-5px, 0);
  }
}
@media (hover: none) {
  .gxc {
    display: none !important;
  }
}
/* the clock: back to the sans */
#night .clock,
#night .clock span {
  font-family: var(--sans) !important;
  font-weight: 300 !important;
  letter-spacing: -0.03em !important;
}
#hero .awm {
  cursor: crosshair;
}

#errl {
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 54;
}
@media (max-width: 640px) {
  #errl {
    display: none;
  }
}
/* the footer game */
#game {
  display: block;
  width: 100%;
  height: 190px;
  cursor: pointer;
  outline: none;
}
@media (max-width: 640px) {
  #game {
    height: 150px;
  }
}

/* ===== the game card ===== */
#gsec {
  margin: 0 var(--inset) var(--inset);
}
#gsec .pin {
  position: relative !important;
  top: auto !important;
  height: calc(100svh - 2 * var(--inset)) !important;
  min-height: 600px;
  background: #1b1a21 !important;
  border-radius: var(--rad);
  overflow: hidden;
}
#gsec .bg {
  position: absolute;
  inset: 0;
}
#gsec .bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: manipulation;
  cursor: pointer;
}
#gsec .hud {
  pointer-events: none;
}
#gsec .hud .line {
  top: 79px !important;
  bottom: 57px !important;
  left: calc(var(--cl) - var(--inset)) !important;
  right: calc(var(--cl) - var(--inset)) !important;
  max-width: none !important;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
}
#gsec .hud .line .stmt {
  font-size: var(--t56) !important;
  line-height: 0.96;
  text-align: center;
  margin: 0 auto;
  color: var(--on-ink) !important;
  max-width: none !important;
}
#gsec .ameta {
  margin: 0;
  padding: 0;
}
#gsec .ameta .body {
  color: rgba(239, 238, 243, 0.7) !important;
  margin: 0;
  font-size: var(--t14);
}
#gsec .ameta .idx {
  color: rgba(239, 238, 243, 0.7);
}
@media (max-width: 640px) {
  #gsec .pin {
    height: 560px !important;
    min-height: 0;
  }
  #gsec .hud .line {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 40px var(--g) 22px;
  }
  #gsec .hud .line .stmt {
    font-size: 34px !important;
  }
  #gsec .ameta .idx {
    display: block !important;
    margin-top: 6px;
  }
}
/* ===== the race card ===== */
@media (min-width: 641px) {
  #time .hud .line {
    flex-direction: column !important;
  }
  #time .hud .line .stmt {
    order: 1 !important;
    align-self: center !important;
    text-align: center !important;
    margin: 0 auto !important;
    width: auto !important;
    max-width: none !important;
    font-size: var(--t56) !important;
    line-height: 1 !important;
  }
  #time .ameta {
    order: 2 !important;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }
}
#time .hud .line .stmt em {
  font-style: italic;
  color: #b79bff;
}
#time .spin {
  width: 12px;
  height: 12px;
  border: 1.5px solid rgba(239, 238, 243, 0.25);
  border-top-color: #efeef3;
  border-radius: 50%;
  animation: tspin 0.9s linear infinite;
  display: inline-block;
}
@keyframes tspin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes tpul {
  50% {
    opacity: 0.35;
  }
}
@media (max-width: 640px) {
  #time .hud .line .stmt {
    order: 1 !important;
    text-align: center !important;
    margin: 0 auto !important;
    font-size: 30px !important;
  }
  #time .ameta {
    order: 2 !important;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
  }
}
@media (max-width: 640px) {
  #time .ameta {
    flex-direction: row !important;
    align-items: flex-end !important;
  }
}
/* race card r11: one colour, the statuses under the headline */
#time .hud .line .stmt em {
  color: inherit !important;
  font-style: normal !important;
}
@media (min-width: 641px) {
  #time .hud .line {
    justify-content: flex-start !important;
    gap: 34px !important;
  }
  #time .ameta {
    width: min(640px, 100%);
    margin: 0 auto !important;
    justify-content: space-between !important;
  }
}
@media (max-width: 640px) {
  #time .hud .line {
    justify-content: flex-start !important;
    gap: 22px !important;
  }
}

/* ===================== 26 Oct: Himanshu's Figma pass ===================== */
/* hero: headline sits lower, the caption sits closer to the object, the film card tucks over the foot of the wordmark */
@media (min-width: 641px) {
  #hero .ah {
    position: relative;
    top: 6.5vh;
  }
  #hero .ameta {
    position: relative;
    top: -12.2vh;
  }
  #hero {
    margin-bottom: calc(min(1280px, 100vw - 64px) * -0.0695) !important;
    overflow: visible !important;
  }
  #film {
    position: relative;
    z-index: 2;
  }
  #hero .awm {
    position: relative;
    top: -40px;
  }
}
/* machines: big two-line headline, the product in the middle, its name and the next one in big type along the bottom */
#parts .pin-in .phead {
  left: 0 !important;
  right: 0 !important;
  max-width: none !important;
  top: clamp(78px, 11%, 120px) !important;
  text-align: center;
}
#parts .phead .stmt {
  font-size: var(--t56) !important;
  line-height: 0.96 !important;
  text-align: center;
  margin: 0 auto;
  color: var(--on-ink);
}
#parts .ptabs {
  position: absolute;
  left: calc(var(--cl) - var(--inset));
  right: calc(var(--cl) - var(--inset));
  bottom: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  z-index: 3;
  pointer-events: none;
}
#parts .pt {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}
#parts .pt span {
  font:
    400 12px/16px Inter,
    sans-serif;
  letter-spacing: -0.1px;
  color: rgba(239, 238, 243, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.4s ease;
}
#parts .pt span small {
  font-size: 10px;
  margin-right: 8px;
  opacity: 0.7;
}
#parts .pt.on span {
  color: var(--on-ink);
}
#parts .pt i {
  position: relative;
  display: block;
  height: 2px;
  background: rgba(239, 238, 243, 0.16);
  overflow: hidden;
  border-radius: 2px;
}
#parts .pt i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--on-ink);
  transform-origin: 0 50%;
  transform: scaleX(var(--f, 0));
}
#parts canvas {
  cursor: none;
}
@media (max-width: 640px) {
  #parts .pin-in .phead {
    top: 6% !important;
    left: 0 !important;
    right: 0 !important;
  }
  #parts .phead .stmt {
    font-size: 26px !important;
  }
  #parts .ptabs {
    left: var(--g);
    right: var(--g);
    bottom: 16px;
    gap: 6px;
  }
  #parts .pt span {
    font-size: 10px;
  }
  #parts .pt span small {
    display: none;
  }
}
/* race: a paper card, a line that fills in as you read, the robot crossing underneath */
#time .pin {
  background: var(--paper, #efeef3) !important;
}
#time .hud {
  color: var(--ink);
}
#time .rq {
  position: absolute;
  left: 0;
  right: 0;
  top: 22%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.2vh;
  pointer-events: none;
}
#time .rqh {
  margin: 0;
  font-size: clamp(64px, 6.6vw, 118px) !important;
  line-height: 0.92 !important;
  text-align: center;
  color: #878787;
  transition:
    opacity 0.45s ease,
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
#time .rqh .rqw {
  display: inline-block;
  white-space: nowrap;
}
#time .rqh .rqc {
  transition: color 0.25s ease;
}
#time .rqh .rqc.in {
  color: #131313;
}
#time .rqh:not(.on) {
  position: absolute;
  top: 0;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.1s linear,
    transform 0.1s linear;
}
#time .rqh.on {
  opacity: 1;
  transform: none;
}
@media (max-width: 640px) {
  #time .rq {
    top: 12%;
    padding: 0 var(--g);
  }
  #time .rqh {
    font-size: 40px !important;
  }
}
/* footer: the game lives in the bottom of the footer card */
#close .fgame {
  position: relative;
  height: clamp(440px, 60svh, 580px);
  margin: 88px calc(-1 * (var(--cl) - var(--inset))) 0;
  border-top: 0;
}
#close .fgame canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: manipulation;
  cursor: pointer;
  display: block;
}
#close .ghud {
  position: absolute;
  left: calc(var(--cl) - var(--inset));
  right: calc(var(--cl) - var(--inset));
  top: 18px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  font:
    400 12px/18px Inter,
    sans-serif;
  color: rgba(239, 238, 243, 0.62);
}
#close .ghud p {
  margin: 0;
}
#close .ghud .mo {
  display: none;
}
@media (max-width: 640px) {
  #close .fgame {
    height: 400px;
    margin: 52px calc(-1 * var(--g)) 0;
  }
  #close .ghud {
    left: var(--g);
    right: var(--g);
  }
  #close .ghud .d {
    display: none;
  }
  #close .ghud .mo {
    display: inline;
  }
}

#parts .phead .stmt {
  max-width: none !important;
}
@media (max-width: 640px) {
  #parts .phead .stmt {
    font-size: 24px !important;
  }
}
/* precision */
#prec .pin {
  background: var(--paper, #efeef3) !important;
}
#prec canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#prec .phd {
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(78px, 11%, 120px);
  text-align: center;
  pointer-events: none;
  z-index: 2;
}
#prec .phd .stmt {
  font-size: var(--t56) !important;
  line-height: 0.96;
  margin: 0 auto 14px;
  color: var(--ink);
  max-width: none !important;
}
#prec .phd .body {
  margin: 0 auto;
  font-size: var(--t14);
  line-height: 1.5;
  color: rgba(19, 19, 19, 0.62);
  max-width: 44ch;
}
@media (max-width: 640px) {
  #prec .phd {
    top: 26px;
    padding: 0 var(--g);
  }
  #prec .phd .stmt {
    font-size: 30px !important;
    margin-bottom: 10px;
  }
}
#close .ghud {
  align-items: baseline;
}
#close .ghud .gsc {
  display: flex;
  gap: 16px;
  align-items: baseline;
}
#close .ghud .gsc .gs {
  font:
    300 22px/1 Inter,
    sans-serif;
  color: var(--on-ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
#close .ghud .gsc .gm {
  font:
    600 12px/1 Inter,
    sans-serif;
  color: #b79bff;
  padding: 4px 7px;
  border: 1px solid rgba(183, 155, 255, 0.5);
}
#close .ghud .gsc .gm.on {
  background: #8447ff;
  color: #fff;
  border-color: #8447ff;
  box-shadow: 0 0 14px rgba(132, 71, 255, 0.8);
}
@media (max-width: 640px) {
  #close .ghud {
    flex-direction: column;
    gap: 8px;
  }
  #close .ghud .gsc {
    gap: 10px;
  }
  #close .ghud .gsc .gs {
    font-size: 18px;
  }
}
@media (max-width: 640px) {
  #prec {
    height: auto !important;
  }
  #prec .pin {
    height: 660px !important;
    position: relative !important;
    top: auto !important;
  }
}

/* the game, on a CRT: low-res pixels, RGB split, scanlines, a rolling bar, curved glass, a little flicker */
#close .fgame .crt {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0b0a10;
  border-radius: 22px/18px;
  box-shadow: inset 0 0 0 1px rgba(239, 238, 243, 0.08);
  isolation: isolate;
}
#close .fgame .crt canvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: url(#crtrgb) contrast(1.12) saturate(1.25) brightness(1.08);
  animation: crtflick 3.2s steps(1) infinite;
}
#close .fgame .crt i {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: block;
}
#close .fgame .crt-scan {
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0,
      rgba(0, 0, 0, 0) 2px,
      rgba(0, 0, 0, 0.32) 3px,
      rgba(0, 0, 0, 0) 4px
    ),
    repeating-linear-gradient(
      to right,
      rgba(255, 0, 60, 0.035) 0 1px,
      rgba(0, 255, 120, 0.03) 1px 2px,
      rgba(60, 90, 255, 0.04) 2px 3px
    );
  mix-blend-mode: multiply;
  z-index: 2;
}
#close .fgame .crt-roll {
  background: linear-gradient(to bottom, rgba(183, 155, 255, 0), rgba(183, 155, 255, 0.07) 50%, rgba(183, 155, 255, 0));
  height: 22% !important;
  bottom: auto !important;
  animation: crtroll 6s linear infinite;
  z-index: 3;
  mix-blend-mode: screen;
}
#close .fgame .crt-glass {
  background:
    radial-gradient(ellipse 120% 95% at 50% 50%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 34%);
  box-shadow:
    inset 0 0 70px rgba(0, 0, 0, 0.65),
    inset 0 0 14px rgba(132, 71, 255, 0.25);
  border-radius: inherit;
  z-index: 4;
}
#close .ghud {
  z-index: 5;
  text-shadow: 0 0 6px rgba(183, 155, 255, 0.55);
}
@keyframes crtroll {
  from {
    transform: translateY(-120%);
  }
  to {
    transform: translateY(560%);
  }
}
@keyframes crtflick {
  0% {
    opacity: 1;
  }
  31% {
    opacity: 0.965;
  }
  32% {
    opacity: 1;
  }
  67% {
    opacity: 0.98;
  }
  68% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  #close .fgame .crt canvas,
  #close .fgame .crt-roll {
    animation: none;
  }
}

/* ===================== the arcade: the game on a TV ===================== */
/* start and crash screens: real type, sharp, centred on the glass */
#arcade .gov p:not(.gl):not(.gsr):not(.gag) {
  font-size: 13px;
  color: rgba(239, 238, 243, 0.66);
}
@keyframes gpulse {
  50% {
    opacity: 0.6;
  }
}
/* the set itself: knobs, a speaker, a power light */

/* ===================== the game, back at the foot of the footer, edge to edge ===================== */
#close {
  padding-bottom: 0 !important;
}
#close .fgame {
  position: relative !important;
  height: clamp(500px, 66svh, 660px) !important;
  margin: 56px calc(-1 * (var(--cl) - var(--inset))) 0 !important;
  border: 0 !important;
  background: #0b0a10;
  overflow: hidden;
}
#close .fgame .crt {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0b0a10;
  border-radius: 0;
  box-shadow: none;
  isolation: isolate;
}
#close .fgame .crt canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  touch-action: manipulation;
  cursor: pointer;
  image-rendering: pixelated;
  filter: url(#crtrgb) contrast(1.06) saturate(1.12) brightness(1.04);
  animation: crtflick2 4s steps(1) infinite;
}
#close .fgame .crt i {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: block;
}
#close .fgame .crt-scan {
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.16) 3px,
    rgba(0, 0, 0, 0) 4px
  );
  mix-blend-mode: multiply;
  z-index: 2;
}
#close .fgame .crt-roll {
  background: linear-gradient(
    to bottom,
    rgba(183, 155, 255, 0),
    rgba(183, 155, 255, 0.035) 50%,
    rgba(183, 155, 255, 0)
  );
  height: 22% !important;
  bottom: auto !important;
  animation: crtroll 7s linear infinite;
  z-index: 3;
  mix-blend-mode: screen;
}
#close .fgame .crt-glass {
  background: radial-gradient(ellipse 130% 110% at 50% 60%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, 0.28) 100%);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.3);
  border-radius: 0;
  z-index: 4;
}
/* the footer runs straight into the game: its colour fades down over the top of the screen */
#close .fgame .fgfade {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(120px, 22%, 170px);
  background: linear-gradient(to bottom, #1b1a21 0%, rgba(27, 26, 33, 0.85) 35%, rgba(27, 26, 33, 0) 100%);
  z-index: 5;
  pointer-events: none;
  display: block;
}
#close .fgame .ghud {
  position: absolute;
  left: calc(var(--cl) - var(--inset));
  right: calc(var(--cl) - var(--inset));
  top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  pointer-events: none;
  z-index: 6;
  font:
    400 12px/18px Inter,
    sans-serif;
  color: rgba(239, 238, 243, 0.62);
  text-shadow: none;
}
#close .fgame .ghud p {
  margin: 0;
}
#close .fgame .ghud .mo {
  display: none;
}
#close .fgame .ghud .gsc {
  display: flex;
  gap: 16px;
  align-items: baseline;
}
#close .fgame .ghud .gsc .gs {
  font:
    300 22px/1 Inter,
    sans-serif;
  color: var(--on-ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
#close .fgame .ghud .gsc .gm {
  font:
    600 12px/1 Inter,
    sans-serif;
  color: #b79bff;
  padding: 4px 7px;
  border: 1px solid rgba(183, 155, 255, 0.5);
}
#close .fgame .ghud .gsc .gm.on {
  background: #8447ff;
  color: #fff;
  border-color: #8447ff;
  box-shadow: 0 0 14px rgba(132, 71, 255, 0.8);
}
#close .fgame .gov {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  pointer-events: none;
  padding: 60px 24px 0;
  color: #efeef3;
}
#close .fgame .gov.on {
  display: flex;
}
#close .fgame .gov h3 {
  margin: 0 0 4px;
  font:
    400 clamp(34px, 4vw, 56px)/1 "Instrument Serif",
    Georgia,
    serif;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 0 18px rgba(132, 71, 255, 0.5);
}
#close .fgame .gov p {
  margin: 0;
  font:
    400 15px/1.45 Inter,
    sans-serif;
  color: rgba(239, 238, 243, 0.86);
}
#close .fgame .gov .gsr {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(239, 238, 243, 0.7);
}
#close .fgame .gov .gsr b {
  font-weight: 500;
  font-size: 22px;
  color: #fff;
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
}
#close .fgame .gov .gsr em {
  font-style: normal;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: #8447ff;
  padding: 4px 8px;
  margin-left: 10px;
  vertical-align: 3px;
}
#close .fgame .gov .gag {
  margin-top: 8px;
  font-weight: 500;
  font-size: 13px;
  color: #b79bff;
  animation: gpulse 1.4s ease-in-out infinite;
}
#close .fgame .gov .gbtn {
  font:
    500 16px/1 Inter,
    sans-serif;
  color: #fff;
  background: rgba(132, 71, 255, 0.22);
  border: 1px solid #b79bff;
  border-radius: 999px;
  padding: 15px 34px;
  margin-bottom: 8px;
  box-shadow: 0 0 22px rgba(132, 71, 255, 0.6);
  animation: gpulse 1.6s ease-in-out infinite;
}
#close .fgame .gov p:not(.gl):not(.gsr):not(.gag) {
  font-size: 13px;
  color: rgba(239, 238, 243, 0.66);
}
@keyframes crtflick2 {
  0% {
    opacity: 1;
  }
  31% {
    opacity: 0.985;
  }
  32% {
    opacity: 1;
  }
}
@media (max-width: 640px) {
  #close .fgame {
    height: 440px !important;
    margin: 36px calc(-1 * var(--g)) 0 !important;
  }
  #close .fgame .ghud {
    left: var(--g);
    right: var(--g);
    top: 14px;
    flex-direction: column;
    gap: 6px;
  }
  #close .fgame .ghud .d {
    display: none;
  }
  #close .fgame .ghud .mo {
    display: inline;
  }
  #close .fgame .ghud .gsc .gs {
    font-size: 18px;
  }
  #close .fgame .gov {
    padding: 40px 18px 130px;
  }
  #close .fgame .gov h3 {
    font-size: 30px;
  }
  #close .fgame .gov p {
    font-size: 13px;
  }
}

/* ===== 27 Oct · batch 2: one line that becomes the other; no purple type anywhere ===== */
#parts .phead {
  position: absolute;
}
#parts .phead .pq {
  transition:
    opacity 0.45s ease,
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  color: rgba(239, 238, 243, 0.3);
}
#parts .phead .pq .rqw {
  display: inline-block;
  white-space: nowrap;
}
#parts .phead .pq .rqc {
  transition: color 0.25s ease;
}
#parts .phead .pq .rqc.in {
  color: #efeef3;
}
#parts .phead .pq:not(.on) {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0;
  transform: translateY(18px);
}
#parts .phead .pq.on {
  opacity: 1;
  transform: none;
}
.hero-part b {
  color: inherit !important;
}
.send-lg:hover,
.fc a:hover {
  color: inherit !important;
  opacity: 0.7;
}
#close .fgame .ghud .gsc .gm {
  color: #efeef3 !important;
  border-color: rgba(239, 238, 243, 0.45) !important;
}
#close .fgame .ghud .gsc .gm.on {
  background: #efeef3 !important;
  color: #131219 !important;
  border-color: #efeef3 !important;
  box-shadow: none !important;
}
#close .fgame .gov .gag {
  color: rgba(239, 238, 243, 0.78) !important;
}
#close .fgame .gov .gsr em {
  background: #efeef3 !important;
  color: #131219 !important;
}
#close .fgame .gov h3 {
  text-shadow: none !important;
}

/* ===== batch 3 · the game in the site's greys; touch-safe ===== */
#close .fgame {
  background: #1b1a21 !important;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
#close .fgame .crt {
  background: #1b1a21 !important;
}
#close .fgame .crt canvas {
  touch-action: pan-y;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
#close .fgame.playing .crt canvas {
  touch-action: none;
}
#close .fgame .crt-roll {
  background: linear-gradient(
    to bottom,
    rgba(239, 238, 243, 0),
    rgba(239, 238, 243, 0.03) 50%,
    rgba(239, 238, 243, 0)
  ) !important;
}
#close .fgame .gov .gbtn {
  background: rgba(239, 238, 243, 0.08) !important;
  border-color: rgba(239, 238, 243, 0.7) !important;
  box-shadow: 0 0 18px rgba(239, 238, 243, 0.14) !important;
}

/* ===================== batch 4 · phones pin and scrub like desktop ===================== */
@media (max-width: 767px) {
  main > section.ch.tall:not(#film) {
    height: calc(var(--len) * 100svh) !important;
  }
  main > section.ch.tall:not(#film) .pin {
    position: sticky !important;
    top: var(--inset) !important;
    height: calc(100svh - 2 * var(--inset)) !important;
    min-height: 0 !important;
  }
  #night .pin-in .tblock {
    top: auto !important;
    bottom: 12px !important;
    left: 12px !important;
    right: 12px !important;
    background: transparent !important;
  }
}
@media (max-width: 767px) {
  #night:not(.dk) .pin-in {
    color: var(--ink) !important;
  }
  #night .tblock .clock {
    font-size: 24px !important;
    white-space: nowrap;
  }
  #parts .phead .stmt {
    font-size: 30px !important;
    line-height: 1 !important;
    padding: 0 18px;
  }
}
@media (max-width: 767px) {
  #night:not(.dk) .tblock .tb1,
  #night:not(.dk) .tblock .c,
  #night:not(.dk) .tblock .stmt,
  #night:not(.dk) .tblock .b,
  #night:not(.dk) .tblock .clock,
  #night:not(.dk) .tblock span {
    color: var(--ink) !important;
  }
}

/* ===================== batch 5 · tablets (768–1199) ===================== */
@media (min-width: 768px) and (max-width: 1199px) {
  #parts .phead .stmt {
    font-size: clamp(34px, 4.8vw, 52px) !important;
    padding: 0 40px;
    max-width: none !important;
  }
  #parts .phead .pq:not(.on) {
    left: 40px;
    right: 40px;
  }
  #night .pin-in .tblock {
    left: 0 !important;
    right: auto !important;
    width: auto !important;
  }
  #night .tblock .tb1 {
    width: 340px !important;
    min-width: 340px !important;
    flex: none !important;
  }
  #night .tblock .t .stmt {
    font-size: 30px !important;
    white-space: normal;
  }
  #close .fgrid .fr1 {
    grid-template-columns: 1fr 1fr 1fr !important;
    row-gap: 28px;
  }
  #close .fgrid .fr1 .fl {
    grid-column: 1/-1;
  }
  #close .cx {
    flex-wrap: wrap;
    row-gap: 22px;
  }
}
@media (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {
  #hero .g-stage canvas {
    width: 100% !important;
  }
}

/* precision: before / after switch, floating over the stage */

/* after: one line with the watch, the other with the measuring; the caption comes with the second */
#prec.after .phd .stmt {
  display: grid;
  justify-items: center;
}
#prec.after .phd .stmt br {
  display: none;
}
#prec.after .phd .stmt > span {
  grid-area: 1/1;
  transition:
    opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1),
    transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}
#prec.after .phd .pb {
  opacity: 0;
  transform: translateY(0.35em);
}
#prec.after.lineB .phd .pa {
  opacity: 0;
  transform: translateY(-0.35em);
}
#prec.after.lineB .phd .pb {
  opacity: 1;
  transform: none;
}
#prec.after .phd .body {
  opacity: 0;
  transition: opacity 0.6s ease;
}
#prec.after.lineB .phd .body {
  opacity: 1;
}

/* ===================== 4 Nov: client pass ===================== */
/* the game's buttons take taps; the screen itself always lets a swipe scroll the page */
#close .fgame .gov .gbtn {
  pointer-events: auto;
  cursor: pointer;
}
#close .fgame.playing .crt canvas,
#close .fgame .crt canvas {
  touch-action: pan-y !important;
}
#close .fgame .gov .gag:empty {
  display: none;
}
/* the film card tucks further over the foot of the wordmark */
@media (min-width: 641px) {
  main > #hero {
    margin-bottom: calc(min(1280px, 100vw - 64px) * -0.0545) !important;
  }
  main > #film {
    position: relative;
    z-index: 2;
  }
}
@media (max-width: 640px) {
  main > section#film.ch {
    margin-top: -11vw !important;
    position: relative !important;
    z-index: 2 !important;
  }
}
/* the navigation never hides */
body.navhide .nav {
  transform: translateX(-50%) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
/* phones: two boxes on screen, always. The navigation on top, and whatever is happening under it */
@media (max-width: 767px) {
  :root {
    --navh: 64px;
  }
  .nav {
    top: 8px !important;
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    height: 48px !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 10px !important;
    overflow: visible !important;
    color: var(--ink) !important;
  }
  body.navhide .nav {
    transform: none !important;
  }
  .nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 6px 0 14px !important;
  }
  .nav .links,
  .nav .send {
    display: none !important;
  }
  .nav .burger {
    margin-left: auto;
  }
  /* behind it, a strip of sky the content slides under; on top of that the box itself */
  .nav::before {
    content: "";
    position: absolute;
    left: -8px;
    right: -8px;
    top: -8px;
    height: var(--navh);
    z-index: -2;
    background: var(--sky);
    background-size: 100vw 100svh;
    background-position: 0 0;
    pointer-events: none;
  }
  .nav::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 10px;
    background: var(--paper);
    border: 1px solid rgba(19, 19, 19, 0.08);
    pointer-events: none;
  }
  body.dark .nav {
    color: var(--on-ink) !important;
  }
  body.dark .nav::after {
    background: #1b1a21;
    border-color: rgba(239, 238, 243, 0.12);
  }
  /* every pinned chapter sits under the navigation, never behind it */
  main > section.ch.tall:not(#film) .pin,
  #parts .pin,
  #time .pin,
  #prec .pin,
  #night .pin,
  #net .pin {
    position: sticky !important;
    top: var(--navh) !important;
    height: calc(100svh - var(--navh) - var(--inset)) !important;
  }
  /* headings get breathing room from the top of their box */
  #parts .pin-in .phead,
  #parts .phead {
    top: 22px !important;
  }
  #prec .phd {
    top: 22px !important;
  }
}
/* desktop: the navigation now stays, so chapter headings sit a little lower to clear it */
@media (min-width: 768px) {
  #parts .pin-in .phead {
    top: clamp(104px, 14%, 138px) !important;
  }
  #prec .phd {
    top: clamp(104px, 14%, 138px) !important;
  }
  #net .hud .line {
    top: clamp(104px, 14%, 138px) !important;
  }
}
/* America: the line under the map sits centred with the heading, not off to the left */
#net .hud .line .cap,
#net .hud .line #ucap {
  align-self: center !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
/* the engine: heading at the top of its box, the engine under it */
#next .hud .line {
  justify-content: flex-start !important;
  align-items: center !important;
  flex-direction: column !important;
}
@media (min-width: 768px) {
  #next .hud .line {
    padding-top: clamp(104px, 14%, 138px) !important;
  }
}
@media (max-width: 767px) {
  #next .hud .line {
    padding-top: 22px !important;
  }
}

/* ===================== 5 Nov ===================== */
/* one button, used wherever a chapter ends on a reason to get in touch */
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px 11px 18px;
  border-radius: 6px !important;
  background: var(--ink, #131313);
  color: #efeef3;
  font:
    500 14px/1.4 Inter,
    "Helvetica Neue",
    Arial,
    sans-serif;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  pointer-events: auto;
  transition:
    transform 0.35s cubic-bezier(0.19, 1, 0.22, 1),
    background 0.25s ease;
  z-index: 6;
}
.cta i {
  width: 7px;
  height: 7px;
  background: #8447ff;
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}
.cta:hover {
  transform: translateY(-2px);
}
.cta:hover i {
  transform: rotate(90deg);
}
.cta:focus-visible {
  outline: 2px solid #8447ff;
  outline-offset: 3px;
}
#next .cta {
  background: #efeef3;
  color: #131313;
}
/* the hud row the buttons sit in */
#time .hud > .cta,
#next .hud > .cta {
  position: absolute;
  left: 50%;
  bottom: clamp(22px, 4.5vh, 40px);
  transform: translateX(-50%);
}
#time .hud > .cta:hover,
#next .hud > .cta:hover {
  transform: translate(-50%, -2px);
}
#net .hud .line .cta {
  align-self: center;
  margin-top: 16px;
}
/* engine: two lines, one at a time — the sketch, then the real thing */
#next .xhd {
  display: grid !important;
  justify-items: center;
  font-size: var(--t56) !important;
  line-height: 1 !important;
}
#next .xhd > span {
  grid-area: 1/1;
  opacity: 0;
  transform: translateY(0.3em);
  transition:
    opacity 0.5s ease,
    transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
  white-space: nowrap;
}
#next .xhd > span.on {
  opacity: 1;
  transform: none;
}
@media (max-width: 767px) {
  #next .xhd {
    font-size: 32px !important;
    padding: 0 var(--g);
  }
  #next .xhd > span {
    white-space: normal !important;
    text-align: center;
  }
}
/* factory, phones: the film on top, the title and the clock as a grid under it, nothing on top of the film */
@media (max-width: 767px) {
  #night canvas.art {
    top: 0 !important;
    bottom: auto !important;
    height: calc(100% - 144px) !important;
  }
  #night .pin-in {
    left: 0 !important;
    right: 0 !important;
  }
  #night .pin-in .tblock {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: auto !important;
    height: 144px;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 1px !important;
    background: rgba(19, 19, 19, 0.12) !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }
  #night .tblock .tb1,
  #night .tblock .c {
    width: auto !important;
    min-width: 0 !important;
    height: 144px;
    margin: 0 !important;
    border-radius: 0 !important;
    transform: none !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 18px !important;
    background: var(--paper) !important;
    border: 0 !important;
  }
  #night .tblock .c {
    min-width: 118px !important;
  }
  #night.dk .tblock .tb1,
  #night.dk .tblock .c {
    background: #1b1a21 !important;
  }
  #night .pin-in .tblock .b {
    display: block !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    opacity: 0.72 !important;
    margin-top: 8px !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
  #night .tblock .t,
  #night .tblock .tb1 > * {
    border: 0 !important;
    padding: 0 !important;
  }
  #night .tblock .t .stmt {
    font-size: 26px !important;
    line-height: 1 !important;
  }
  #night .tblock .clock {
    font-size: 26px !important;
  }
}
/* map: heading on top, the line and the button together at the bottom */
#net .hud .line {
  justify-content: flex-start !important;
}
#net .hud .line .cap {
  margin-top: auto !important;
}

/* ===================== 5 Nov · phones: a stack of cards. Each one sticks under the nav, the next is thrown up over it ===================== */
.shade {
  display: none;
}
@media (max-width: 767px) {
  :root {
    --hc: calc(100svh - var(--navh) - var(--inset));
    --crad: 18px;
  }
  main > section#hero {
    position: sticky !important;
    top: 0;
    z-index: 1;
    transform-origin: 50% 0;
    margin-bottom: 0 !important;
  }
  main > section#hero.covered {
    visibility: hidden;
  }
  main > section.ch {
    position: relative !important;
    margin-left: var(--inset) !important;
    margin-right: var(--inset) !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  main > section.ch.tall {
    background: transparent !important;
  }
  main > section#film.ch {
    z-index: 2 !important;
  }
  main > section#parts.ch {
    z-index: 3 !important;
  }
  main > section#time.ch {
    z-index: 4 !important;
  }
  main > section#prec.ch {
    z-index: 5 !important;
  }
  main > section#night.ch {
    z-index: 6 !important;
  }
  main > section#net.ch {
    z-index: 7 !important;
  }
  main > section#next.ch {
    z-index: 8 !important;
  }
  main > section#close.ch {
    z-index: 9 !important;
  }
  main > section#film.ch.tall {
    --len: 1.15 !important;
    margin-top: 0 !important;
  }
  main > section#film.ch.tall,
  main > section#parts.ch.tall,
  main > section#time.ch.tall,
  main > section#prec.ch.tall,
  main > section#night.ch.tall,
  main > section#net.ch.tall,
  main > section#next.ch.tall {
    height: calc(var(--len) * 100svh + var(--hc)) !important;
  }
  main > section#parts.ch,
  main > section#time.ch,
  main > section#prec.ch,
  main > section#night.ch,
  main > section#net.ch,
  main > section#next.ch,
  main > section#close.ch {
    margin-top: calc(-1 * var(--hc)) !important;
  }
  main > section#film.ch.tall .pin,
  main > section#parts.ch.tall .pin,
  main > section#time.ch.tall .pin,
  main > section#prec.ch.tall .pin,
  main > section#night.ch.tall .pin,
  main > section#net.ch.tall .pin,
  main > section#next.ch.tall .pin {
    position: sticky !important;
    top: var(--navh) !important;
    height: var(--hc) !important;
    min-height: 0 !important;
    border-radius: var(--crad) !important;
    overflow: hidden !important;
    transform-origin: 50% 0;
    box-shadow: 0 -12px 32px rgba(19, 19, 19, 0.18);
  }
  .shade {
    display: block;
    position: absolute;
    inset: 0;
    background: #0b0a10;
    opacity: 0;
    pointer-events: none;
    z-index: 60;
    border-radius: inherit;
  }
  main > section#close.ch {
    border-radius: var(--crad) !important;
    overflow: hidden !important;
    box-shadow: 0 -12px 32px rgba(19, 19, 19, 0.22);
  }
  /* the film card: title, film, line, all in one card */
  main > section#film.ch.tall .pin {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center;
    gap: 22px;
    padding: 24px 18px !important;
    background: #0d0c11 !important;
  }
  main > section#film.ch.tall .pin-in {
    display: contents !important;
  }
  main > section#film.ch.tall .pin .ftop {
    display: block !important;
    order: 0;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    text-align: center;
  }
  main > section#film.ch.tall .pin .fv {
    order: 1;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    aspect-ratio: 16/9;
    border-radius: 12px !important;
    overflow: hidden;
  }
  main > section#film.ch.tall .pin .fcap {
    display: block !important;
    order: 2;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    text-align: center;
  }
  main > section#film.ch.tall .pin .ftop .stmt,
  main > section#film.ch.tall .pin .fcap .stmt {
    font-size: 32px !important;
    line-height: 1.05 !important;
    color: #efeef3 !important;
    margin: 0 !important;
  }
  main > section#film.ch.tall .pin .fcap .stmt {
    font-size: 20px !important;
    opacity: 0.7;
  }
  /* the factory card: the film on top, the title and the clock under it, inside the same card */
  main > section#night.ch.tall .pin {
    background: var(--paper, #efeef3) !important;
  }
  main > section#night.ch.tall.dk .pin {
    background: #1b1a21 !important;
  }
}

/* the two machine lines never sit on top of each other: the old one goes first, the new one follows */
#parts .phead .pq:not(.on) {
  transition:
    opacity 0.18s ease,
    transform 0.3s ease !important;
  transition-delay: 0s !important;
}
#parts .phead .pq.on {
  transition:
    opacity 0.4s ease 0.2s,
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s !important;
}
/* the nav reads as a solid bar: what scrolls under it doesn't show through as a second logo */
@media (min-width: 768px) {
  .nav {
    background: rgba(239, 238, 243, 0.9) !important;
  }
  body.dark .nav {
    background: rgba(27, 26, 33, 0.9) !important;
  }
}
/* tablets: the logo on the left, the button and the menu on the right — nothing stranded in the middle */
@media (min-width: 768px) and (max-width: 1000px) {
  .nav {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
  }
  .nav .brand {
    margin-right: auto;
  }
  .nav .links {
    display: none !important;
  }
  .nav .send {
    display: inline-flex !important;
  }
  .nav .burger {
    display: block !important;
    margin-left: 0;
  }
}
/* ===================== 7 Nov · slower, calmer: things arrive and leave in their own time ===================== */
:root {
  --lux: cubic-bezier(0.22, 0.61, 0.36, 1);
}
#time .rqh,
#parts .phead .pq,
#prec .phd .stmt > span,
#next .xhd span,
#net #ucap,
#time .rqh .rqc,
#parts .pq .rqc {
  transition:
    opacity 1.1s var(--lux),
    transform 1.4s var(--lux),
    color 0.9s var(--lux) !important;
  transition-delay: 0s !important;
}
#parts .phead .pq:not(.on) {
  transform: translateY(10px);
}
#parts .phead .pq.on {
  transition-delay: 0.35s !important;
}
.shade {
  transition: opacity 0.2s linear;
}
/* the race and the watch are two cards, not one long sheet: no paper behind the section, the same gap as every other card */
@media (min-width: 768px) {
  main > section#time.ch,
  main > section#prec.ch {
    background: transparent !important;
    margin-bottom: calc(var(--inset) * 1) !important;
  }
  main > section#time.ch .pin,
  main > section#prec.ch .pin {
    border-radius: var(--rad, 18px) !important;
    overflow: hidden !important;
  }
}

/* ==========================================================================
   Machines and watch headlines, phone headline positions, lights-off panel
   ========================================================================== */
/* 1 · machines: the question and the answer together, the answer glowing violet */
html body #parts .pin-in .phead {
  bottom: auto !important;
  justify-content: flex-start !important;
  gap: 0.12em !important;
}
html body #parts .phead .pq {
  opacity: 1 !important;
  transform: none !important;
  position: static !important;
  visibility: visible !important;
}
html body #parts .phead #pqB .rqc {
  color: rgba(183, 155, 255, 0.22);
}
html body #parts .phead #pqB .rqc.in {
  color: #b596ff !important;
  text-shadow:
    0 0 12px rgba(132, 71, 255, 0.9),
    0 0 34px rgba(132, 71, 255, 0.55);
}

/* 2 · the watch: one line at a time, white with difference blending so it reads as the negative of whatever is under it (ink on paper, light on metal). No glow, no violet */
html body #prec .phd {
  z-index: auto !important;
}
html body #prec .phd .stmt > span.pa,
html body #prec .phd .stmt > span.pb {
  color: var(--ink) !important;
  mix-blend-mode: normal;
  text-shadow: none !important;
}

/* 3 · phones: every headline in the race card's spot — centred, 12% down the card, 40px */
@media (max-width: 767px) {
  html body #parts .pin-in .phead {
    top: 12% !important;
    left: 0 !important;
    right: 0 !important;
    padding: 0 var(--g) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  html body #parts .phead .pq {
    font-size: 40px !important;
    line-height: 0.92 !important;
    letter-spacing: -0.02em !important;
    max-width: 15ch !important;
    margin: 0 auto !important;
  }
  html body #prec .phd {
    top: 12% !important;
    padding: 0 var(--g) !important;
  }
  html body #prec .phd .stmt {
    font-size: 40px !important;
    line-height: 0.92 !important;
    letter-spacing: -0.02em !important;
    margin: 0 auto !important;
  }
  html body #next .hud .line {
    padding-top: calc(var(--hc, 80svh) * 0.12) !important;
  }
  html body #next .xhd {
    font-size: 40px !important;
    line-height: 0.92 !important;
    letter-spacing: -0.02em !important;
  }
  html body main > section#film.ch.tall .pin .ftop {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 12% !important;
    padding: 0 var(--g);
  }
  html body #film .ftop .stmt {
    font-size: 40px !important;
    line-height: 0.92 !important;
    letter-spacing: -0.02em !important;
  }
}

/* 4 · lights off: the panel follows the film from day to night instead of flipping; on phones the photo keeps rounded corners where it meets the panel */
html body #night .tblock :is(.tb1, .c, .stmt, .b, .clock, span, p, h2, #_z) {
  color: var(--tfg, #efeef3) !important;
  transition: none !important;
}
html body #night .tblock .tb1,
html body #night .tblock .c {
  background: var(--tbg) !important;
  transition: none !important;
}
@media (max-width: 767px) {
  html body #night .tblock {
    overflow: visible !important;
    background: var(--tbg) !important;
  }
  html body #night .tblock::before,
  html body #night .tblock::after {
    content: "";
    position: absolute;
    top: -18px;
    width: 18px;
    height: 18px;
    pointer-events: none;
  }
  html body #night .tblock::before {
    left: 0;
    background: radial-gradient(circle at 100% 0, transparent 17.5px, var(--tbg) 18px);
  }
  html body #night .tblock::after {
    right: 0;
    background: radial-gradient(circle at 0 0, transparent 17.5px, var(--tbg) 18px);
  }
}

@media (max-width: 767px) {
  html body #parts .phead .pq {
    max-width: none !important;
    width: auto !important;
    text-wrap: balance;
  }
  html body main > section#film.ch.tall .pin .ftop .stmt,
  html body main > section#film .ftop h2.stmt {
    font-size: 40px !important;
    line-height: 0.92 !important;
    letter-spacing: -0.02em !important;
  }
}

/* ==========================================================================
   Layout overrides, round 3
   ========================================================================== */
/* ===================== 8 Nov · every headline in one spot: centred at the top of the card, one line at a time ===================== */
/* the race: the two lines share one place above the render */
html body #time .hud .rq {
  position: absolute !important;
  inset: auto 0 auto 0 !important;
  top: clamp(104px, 14%, 138px) !important;
  display: grid !important;
  justify-items: center;
  align-items: start;
  gap: 0 !important;
  padding: 0 var(--g) !important;
  pointer-events: none;
}
html body #time .hud .rq > * {
  grid-area: 1/1;
}
html body #time .hud .rq .rqh {
  position: relative !important;
  inset: auto !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  font-size: var(--t56) !important;
  line-height: 0.96 !important;
  letter-spacing: -0.02em !important;
  text-align: center !important;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(16px);
}
/* the watch: the two lines share one place, all widths */
html body #prec .phd {
  position: absolute !important;
  inset: auto 0 auto 0 !important;
  top: clamp(104px, 14%, 138px) !important;
  padding: 0 var(--g) !important;
  pointer-events: none;
}
html body #prec .phd .stmt {
  display: grid !important;
  justify-items: center;
  margin: 0 auto !important;
  font-size: var(--t56) !important;
  line-height: 0.96 !important;
  letter-spacing: -0.02em !important;
  text-align: center;
  max-width: none !important;
}
html body #prec .phd .stmt br {
  display: none !important;
}
html body #prec .phd .stmt > span {
  grid-area: 1/1 !important;
  display: block !important;
  position: static !important;
  width: auto !important;
  text-wrap: balance;
  opacity: 0 !important;
  transform: translateY(16px) !important;
}
/* the engine: the heading at the top of the card, the engine under it */
html body #next .hud .line {
  padding: 0 !important;
}
html body #next .hud .line .xhd {
  position: absolute !important;
  inset: auto 0 auto 0 !important;
  top: clamp(104px, 14%, 138px) !important;
  margin: 0 !important;
  padding: 0 var(--g) !important;
  display: grid !important;
  justify-items: center;
  width: auto !important;
  max-width: none !important;
  font-size: var(--t56) !important;
  line-height: 0.96 !important;
  letter-spacing: -0.02em !important;
  text-align: center !important;
  pointer-events: none;
}
html body #next .hud .line .xhd > span {
  grid-area: 1/1 !important;
  position: static !important;
  width: auto !important;
  max-width: none !important;
  font-size: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  white-space: normal !important;
  text-align: center !important;
  text-wrap: balance;
  opacity: 0 !important;
  transform: translateY(16px) !important;
}
/* the swap: the line that leaves rises away, the one that arrives rises into place */
html body #time .hud .rq .rqh.was {
  opacity: 0;
  transform: translateY(-16px);
}
html body #time .hud .rq .rqh.on {
  opacity: 1;
  transform: none;
}
html body #prec .phd .stmt > span.was,
html body #next .hud .line .xhd > span.was {
  opacity: 0 !important;
  transform: translateY(-16px) !important;
}
html body #prec .phd .stmt > span.on,
html body #next .hud .line .xhd > span.on {
  opacity: 1 !important;
  transform: none !important;
}
html body #time .hud .rq .rqh,
html body #prec .phd .stmt > span,
html body #next .hud .line .xhd > span {
  transition:
    opacity 1.1s var(--lux),
    transform 1.4s var(--lux),
    color 0.9s var(--lux) !important;
  transition-delay: 0s !important;
}
html body #next canvas#cnext {
  transition: none;
}
@media (max-width: 767px) {
  html body #time .hud .rq,
  html body #prec .phd,
  html body #next .hud .line .xhd {
    top: 12% !important;
    padding: 0 var(--g) !important;
  }
  html body #time .hud .rq .rqh,
  html body #prec .phd .stmt,
  html body #next .hud .line .xhd {
    font-size: 40px !important;
    line-height: 0.92 !important;
    letter-spacing: -0.02em !important;
  }
}
/* arriving and leaving: each headline (and its button) rises in as the card arrives and rises away as it goes */
html body .rv3 {
  transition:
    opacity 1.1s var(--lux),
    translate 1.4s var(--lux) !important;
}
html body #net #ucap.rv3 {
  transition:
    opacity 1.1s var(--lux),
    translate 1.4s var(--lux) !important;
}
html body .rv3.pre {
  opacity: 0 !important;
  translate: 0 18px;
}
html body .rv3.post {
  opacity: 0 !important;
  translate: 0 -18px;
}
html body .cta.rv3 {
  transition:
    opacity 1.1s var(--lux) 0.3s,
    translate 1.4s var(--lux) 0.3s,
    transform 0.35s cubic-bezier(0.19, 1, 0.22, 1),
    background 0.25s ease !important;
}
html body .cta.rv3.pre,
html body .cta.rv3.post {
  transition-delay: 0s, 0s, 0s, 0s !important;
}
@media (prefers-reduced-motion: reduce) {
  html body .rv3.pre,
  html body .rv3.post {
    translate: none;
  }
}

/* swaps: the outgoing line clears first, then the new one rises in, so the two never sit on top of each other */
html body #time .hud .rq .rqh.was,
html body #prec .phd .stmt > span.was,
html body #next .hud .line .xhd > span.was {
  transition:
    opacity 0.55s var(--lux),
    transform 0.8s var(--lux) !important;
  transition-delay: 0s !important;
}
html body #time .hud .rq .rqh.on,
html body #prec .phd .stmt > span.on,
html body #next .hud .line .xhd > span.on {
  transition:
    opacity 1.1s var(--lux),
    transform 1.4s var(--lux) !important;
  transition-delay: 0.45s !important;
}

/* QA 10 Nov: the footer headline clears the nav when the card arrives; America matches every other headline on phones */
html body main > section#close {
  padding-top: clamp(112px, 15vh, 150px) !important;
}
@media (max-width: 767px) {
  html body main > section#close {
    padding-top: 104px !important;
  }
  html body #net .hud .line .stmt {
    font-size: 40px !important;
    line-height: 0.92 !important;
    letter-spacing: -0.02em !important;
  }
}

/* ==========================================================================
   Section overrides
   ========================================================================== */
/* Fable cut */
#hero .ah {
  text-wrap: balance;
  max-width: none;
}
@media (min-width: 641px) {
  #hero .ah {
    font-size: clamp(52px, 5.4vw, 100px) !important;
  }
}
@media (max-width: 640px) {
  #hero .ah {
    font-size: clamp(36px, 10.4vw, 46px) !important;
    line-height: 0.94 !important;
  }
  #hero .ah br {
    display: none;
  }
}
/* the last card is the ask: your drawing sits in a drop zone, the scan turns it into the part, the button is right there */
#dz {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  border: 1px dashed rgba(239, 238, 243, 0.34);
  transform: scale(calc(1.04 - 0.04 * var(--k, 1)));
}
#dz i {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 0 solid #efeef3;
}
#dz i:nth-child(1) {
  left: -1px;
  top: -1px;
  border-left-width: 2px;
  border-top-width: 2px;
}
#dz i:nth-child(2) {
  right: -1px;
  top: -1px;
  border-right-width: 2px;
  border-top-width: 2px;
}
#dz i:nth-child(3) {
  left: -1px;
  bottom: -1px;
  border-left-width: 2px;
  border-bottom-width: 2px;
}
#dz i:nth-child(4) {
  right: -1px;
  bottom: -1px;
  border-right-width: 2px;
  border-bottom-width: 2px;
}
#dz b {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font:
    400 12px/1 Inter,
    sans-serif;
  color: rgba(239, 238, 243, 0.62);
  letter-spacing: 0.01em;
}
#dz b u {
  width: 8px;
  height: 8px;
  background: #8447ff;
  text-decoration: none;
}
@media (max-width: 767px) {
  #dz b {
    font-size: 11px;
  }
  #dz i {
    width: 14px;
    height: 14px;
  }
}

/* ==========================================================================
   Round 2 brief (includes the phone hero)
   ========================================================================== */
/* ===================== round 2 · 10 Nov ===================== */
/* The video element owns the poster; exposed player space stays black. */
html body #film .fv,
html body main > section#film.ch.tall .pin .fv {
  background: #000 !important;
}
html body #film .fv .fph {
  background: rgba(19, 19, 19, 0.45) !important;
}
html body #film .fv.has .fph {
  background: transparent !important;
}

/* 5 · headings on large screens: one size for all five cards, top unchanged */
@media (min-width: 768px) {
  html body {
    --h56: clamp(56px, 4.4vw, 72px);
  }
  html body #parts .pin-in .phead .pq,
  html body #parts .pin-in .phead .stmt,
  html body #time .hud .rq .rqh,
  html body #prec .phd .stmt,
  html body #net .hud .line .stmt,
  html body #next .hud .line .xhd {
    font-size: var(--h56) !important;
  }
  html body #next .hud .line .xhd > span {
    font-size: inherit !important;
  }
}

/* 6 · phone hero: the whole object fits inside the screen; the stage keeps its size so nothing else moves */
@media (max-width: 640px) {
  html body #hero .g-stage {
    overflow: visible !important;
  }
  html body #hero .g-stage canvas {
    inset: auto !important;
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    width: 104% !important;
    height: 104% !important;
    max-width: none !important;
    aspect-ratio: auto !important;
    transform: translate(-50%, -50%) !important;
  }
}

/* 7 · the clock: digits swap in place, tabular, no roll */
html body #night .clock span,
html body #night .clock span.up {
  animation: none !important;
  transition: none !important;
  transform: none !important;
  opacity: 1 !important;
}
html body #night .clock,
html body #night .clock span {
  font-variant-numeric: tabular-nums !important;
  font-feature-settings: "tnum" !important;
}

/* ==========================================================================
   Logo shine
   ========================================================================== */
/* the mark: a slow, faint light passes over it now and then */
.nav .brand {
  position: relative;
}
.nav .brand .lshine {
  position: absolute;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .nav .brand .lshine {
    display: none;
  }
}

/* ==========================================================================
   Machines: glass label on the missing part; film scroll length on phones
   ========================================================================== */
/* hero headline keeps its two lines on phones too */
@media (max-width: 767px) {
  html body #hero .ah br {
    display: inline !important;
  }
}
/* phones: the film scrolls straight on, the next card rises as soon as it docks */
@media (max-width: 767px) {
  html body main > section#film.ch.tall {
    --len: 0.9 !important;
  }
}
/* the missing part's label: a small glass plate sitting on the drawing's lines, blurring what's behind it */
#mtag {
  position: fixed;
  z-index: 60;
  left: 0;
  top: 0;
  pointer-events: none;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 16px 11px;
  border-radius: 12px;
  background: rgba(22, 21, 30, 0.58);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(239, 238, 243, 0.18);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-family: Inter, sans-serif;
  color: #efeef3;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  will-change: opacity, left, top;
}
#mtag small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(239, 238, 243, 0.6);
  transition: color 0.4s ease;
}
#mtag b {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}
#mtag.made {
  background: rgba(239, 238, 243, 0.78);
  border-color: rgba(255, 255, 255, 0.6);
  color: #131313;
}
#mtag.made small {
  color: rgba(19, 19, 19, 0.6);
}
@media (max-width: 767px) {
  #mtag {
    padding: 7px 11px 8px;
  }
  #mtag small {
    font-size: 9px;
  }
  #mtag b {
    font-size: 12px;
  }
}

/* ==========================================================================
   Round 14: header buttons, contact page, film player, America caption
   ========================================================================== */
/* ---- header: three links, a quiet Contact us, Send a file stays the primary ---- */
.nav .contact,
.menu .mcontact {
  display: none;
}
@media (min-width: 768px) {
  /* the bar: mark left, three links centred, the two actions right */
  .nav .navact {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  html body .nav .contact {
    display: inline-flex;
    align-items: center;
    height: 37.5px;
    padding: 0 14px;
    border-radius: 6px;
    font-size: var(--t13, 13px);
    line-height: 1;
    white-space: nowrap;
    color: inherit;
    opacity: 0.75;
    transition:
      opacity 0.4s ease,
      background 0.4s ease;
  }
  html body .nav .contact:hover {
    opacity: 1;
    background: rgba(127, 120, 150, 0.16);
  }
  html body .nav .contact::after {
    display: none;
  }
}
@media (max-width: 767px) {
  .nav .navact {
    display: contents;
  }
}
/* phone menu: no numbers, two actions */
.menu .mbtns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 32px;
}
.menu .mbtns .msend {
  margin-top: 0;
}
.menu .mcontact {
  display: inline-block;
  font-size: 15px;
  color: var(--on-ink);
  opacity: 0.72;
  padding: 10px 0;
  border-bottom: 1px solid rgba(239, 238, 243, 0.3);
}

/* ---- closing: Send a file leads, Contact us sits beside it, quieter ---- */
#close .cbtns {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px clamp(24px, 3vw, 44px);
}
#close .contact-lg {
  font-family: var(--sans);
  font-size: var(--t14, 15px);
  color: var(--on-ink2);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(239, 238, 243, 0.22);
  white-space: nowrap;
  transition:
    color 0.4s ease,
    border-color 0.4s ease;
}
#close .contact-lg:hover {
  color: var(--on-ink);
  border-color: rgba(239, 238, 243, 0.6);
}
#close .cbody {
  max-width: 30ch;
}
/* footer: the third column is only the backing line */
#close .fc.fyc {
  justify-content: flex-start;
  padding-top: calc(12px * var(--sc, 1) + 16px);
}
@media (max-width: 640px) {
  #close .fc.fyc {
    padding-top: 0;
  }
}

/* ---- America: the second line carries the point, so it is set as a statement, not a caption ---- */
html body #net .hud .line #ucap {
  font-family: var(--serif) !important;
  font-size: clamp(26px, 2.5vw, 40px) !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
  color: var(--ink) !important;
  opacity: 1;
  max-width: none !important;
  display: inline-flex !important;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 0.8em 0.56em;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 34px rgba(19, 19, 19, 0.08);
  transition: opacity 0.18s ease;
}
html body #net .hud .line #ucap::before {
  content: "";
  width: 0.34em;
  height: 0.34em;
  background: var(--v);
  flex: none;
}
@media (max-width: 767px) {
  html body #net .hud .line #ucap {
    font-size: 24px !important;
  }
}

/* ---- film: our own player around the video ---- */
#film .fv {
  cursor: default;
}
#film .pin-in {
  pointer-events: none;
}
#film .fv video {
  filter: contrast(1.05) saturate(0.92);
}
#film .fv .fph {
  display: none !important;
}
/* a light film grain over the picture, so it sits in the same world as the rest of the page */
#film .fv::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
.fpl {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: clamp(10px, 1.6vw, 18px);
  color: #efeef3;
  font-family: var(--sans);
  -webkit-user-select: none;
  user-select: none;
}
.fpl button {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: inherit;
}
.fpl button:focus-visible {
  outline: 2px solid var(--v);
  outline-offset: 2px;
}
.fpl .hit {
  position: absolute;
  inset: 0;
  cursor: pointer;
}
/* the big button: shown while the film is paused or has not been started */
.fpl .big {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 18px;
  background: rgba(22, 21, 30, 0.46);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(239, 238, 243, 0.2);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition:
    opacity 0.5s ease,
    transform 0.6s cubic-bezier(0.19, 1, 0.22, 1),
    background 0.4s ease;
}
.fpl .big:hover {
  background: rgba(132, 71, 255, 0.5);
}
.fpl .big i {
  width: 0;
  height: 0;
  border-left: 17px solid #efeef3;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 5px;
}
.fpl.playing .big {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
}
/* the bar */
.fpl .bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  width: min(100%, 760px);
  height: 46px;
  padding: 0 6px;
  border-radius: 14px;
  background: rgba(22, 21, 30, 0.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(239, 238, 243, 0.16);
  box-shadow:
    0 10px 34px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.fpl.playing.idle .bar {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}
.fpl.playing.idle {
  cursor: none;
}
.fpl .bar button {
  width: 36px;
  height: 34px;
  border-radius: 9px;
  flex: none;
  transition: background 0.3s ease;
}
.fpl .bar button:hover {
  background: rgba(255, 255, 255, 0.12);
}
.fpl svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
}
.fpl .i-pause,
.fpl.playing .i-play {
  display: none;
}
.fpl.playing .i-pause {
  display: block;
}
.fpl .time {
  flex: none;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: rgba(239, 238, 243, 0.78);
  padding: 0 8px 0 4px;
  white-space: nowrap;
}
.fpl .time b {
  font-weight: 500;
  color: #efeef3;
}
.fpl .track {
  position: relative;
  flex: 1;
  min-width: 40px;
  height: 34px;
  cursor: pointer;
  touch-action: none;
}
.fpl .track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
  background: rgba(239, 238, 243, 0.2);
}
.fpl .track u {
  position: absolute;
  left: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
  background: rgba(239, 238, 243, 0.34);
  width: calc(var(--buf, 0) * 100%);
}
.fpl .track s {
  position: absolute;
  left: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
  background: var(--v);
  width: calc(var(--p, 0) * 100%);
}
.fpl .track s::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: #efeef3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}
.fpl .track:hover s::after,
.fpl .track.drag s::after {
  transform: scale(1);
}
.fpl.nofilm .bar {
  opacity: 0.55;
}
.fpl.nofilm .track,
.fpl.nofilm .bar button {
  pointer-events: none;
}
.fpl .soon {
  position: absolute;
  left: 50%;
  top: calc(50% + 56px);
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(239, 238, 243, 0.6);
  white-space: nowrap;
  display: none;
}
.fpl.nofilm .soon {
  display: block;
}
#film .fv:fullscreen {
  inset: 0 !important;
  width: 100vw;
  height: 100vh;
  border-radius: 0 !important;
  background: #000;
}
#film .fv:fullscreen video {
  object-fit: contain;
}
/* tablets: the closing card had almost no side padding */
@media (min-width: 641px) {
  html body main > section#close {
    padding-inline: max(var(--cl), clamp(24px, 3.4vw, 44px)) !important;
  }
}
@media (max-width: 767px) {
  .fpl.nofilm .soon {
    display: none;
  }
  .fpl .big {
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border-radius: 15px;
  }
  .fpl .bar {
    height: 42px;
  }
  .fpl .time .tot {
    display: none;
  }
}

@media (min-width: 768px) {
  #hero .ameta {
    align-items: baseline;
  }
  #hero .ameta .body,
  #hero .ameta .idx {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(19, 19, 19, 0.78);
  }
}

/* ---- contact: its own page, laid over the site ---- */
.cpage {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, #b9a6f2 0%, #d9d0f3 38%, #efeef3 100%);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.6s var(--lux, ease),
    visibility 0s linear 0.6s;
}
.cpage.open {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.6s var(--lux, ease),
    visibility 0s;
}
.cpage .cin {
  min-height: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  padding: clamp(120px, 18vh, 180px) clamp(20px, 6vw, 96px) 64px;
  max-width: 1500px;
  margin: 0 auto;
  transform: translateY(18px);
  transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}
.cpage.open .cin {
  transform: none;
}
.cpage .ctop {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(var(--inset, 16px) + 14px);
  pointer-events: none;
}
.cpage .ctop > * {
  pointer-events: auto;
}
.cpage .cbrand,
.cpage .cback {
  height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  background: rgba(239, 238, 243, 0.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 8px 30px rgba(19, 19, 19, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: var(--ink);
}
.cpage .cbrand {
  padding: 0 14px;
}
.cpage .cbrand svg {
  width: 104px;
  height: auto;
  flex-shrink: 0;
  overflow: visible;
  display: block;
}
.cpage .cback {
  all: unset;
  pointer-events: auto;
  box-sizing: border-box;
  cursor: pointer;
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 13px;
  font-family: var(--sans);
  background: rgba(239, 238, 243, 0.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 8px 30px rgba(19, 19, 19, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: var(--ink);
}
.cpage .cback:focus-visible {
  outline: 2px solid var(--v);
  outline-offset: 2px;
}
.cpage .cback i {
  position: relative;
  width: 11px;
  height: 11px;
}
.cpage .cback i::before,
.cpage .cback i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 1.5px;
  margin: -0.75px 0 0 -6.5px;
  background: currentColor;
  transform: rotate(45deg);
}
.cpage .cback i::after {
  transform: rotate(-45deg);
}
.cpage h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6.2vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.cpage .clede {
  margin: 22px 0 0;
  max-width: 30ch;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.5;
  color: rgba(19, 19, 19, 0.66);
}
.cpage .calt {
  margin: 34px 0 0;
  font-size: 14px;
  color: rgba(19, 19, 19, 0.6);
}
.cpage .calt a {
  color: var(--ink);
  border-bottom: 1px solid rgba(19, 19, 19, 0.3);
  padding-bottom: 2px;
}
.cform {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  padding: clamp(20px, 2.4vw, 36px);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.52);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 24px 70px rgba(60, 30, 140, 0.12);
}
.cform .f {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 14px 0 0;
  border-bottom: 1px solid rgba(19, 19, 19, 0.18);
  transition: border-color 0.4s ease;
}
.cform .f.w {
  grid-column: 1/-1;
}
.cform .f:focus-within {
  border-color: var(--v);
}
.cform label {
  font-size: 12px;
  color: rgba(19, 19, 19, 0.56);
  letter-spacing: 0.01em;
}
.cform label em {
  font-style: normal;
  color: rgba(19, 19, 19, 0.4);
}
.cform input,
.cform textarea {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  padding: 8px 0 14px;
  caret-color: var(--v);
}
.cform textarea {
  min-height: 120px;
  resize: vertical;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.cform input::placeholder,
.cform textarea::placeholder {
  color: rgba(19, 19, 19, 0.3);
}
.cform .f.bad {
  border-color: #c2334d;
}
.cform .err {
  display: none;
  font-size: 12px;
  color: #b02a44;
  padding: 0 0 10px;
}
.cform .f.bad .err {
  display: block;
}
.cform .cact {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 26px;
}
.cform .cnote {
  font-size: 12px;
  color: rgba(19, 19, 19, 0.5);
  max-width: 34ch;
  margin: 0;
}
.cpage .csend {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--ink);
  color: #efeef3;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.4s ease;
}
.cpage .csend:hover {
  background: #2a2440;
}
.cpage .csend:focus-visible {
  outline: 2px solid var(--v);
  outline-offset: 3px;
}
.cpage .csend i {
  width: 7px;
  height: 7px;
  background: var(--v);
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.cpage .csend:hover i {
  transform: rotate(90deg);
}
.cdone {
  display: none;
  padding: clamp(28px, 3vw, 48px);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.52);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 24px 70px rgba(60, 30, 140, 0.12);
}
.cdone h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 3.4vw, 56px);
  line-height: 0.96;
  letter-spacing: -0.02em;
}
.cdone p {
  margin: 0 0 26px;
  max-width: 36ch;
  color: rgba(19, 19, 19, 0.66);
  font-size: 16px;
  line-height: 1.5;
}
.cpage.sent .cform {
  display: none;
}
.cpage.sent .cdone {
  display: block;
}
@media (max-width: 900px) {
  .cpage .cin {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 110px;
  }
  .cform {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .cpage .ctop {
    padding: 10px;
  }
  .cpage .cin {
    padding: 96px 16px 40px;
  }
  .cpage h2 {
    font-size: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cpage,
  .cpage .cin {
    transition: none;
  }
}

/* Keep the wordmark's cropped baseline against the inset film frame. */
html body main > section#hero {
  padding-bottom: 0 !important;
  margin-bottom: -7.5svh !important;
}
html body #hero .awm {
  top: 0;
  /* 20% of the SVG's height, expressed against its containing width. */
  margin-bottom: -3.0223%;
  clip-path: inset(0 0 20%);
}
@media (min-width: 641px) {
  html body #hero .awm {
    margin-top: -6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html body main > section#hero {
    margin-bottom: 0 !important;
  }
}
@media (max-width: 767px) {
  html body main > section#hero {
    position: relative !important;
    min-height: 100svh !important;
    padding-bottom: max(16px, env(safe-area-inset-bottom)) !important;
    margin-bottom: 0 !important;
  }
  html body #hero .awm {
    margin-top: auto;
    margin-bottom: 0;
    clip-path: none;
  }
}

/* The film has its own full-viewport scroll stage on desktop and phones. */
html body main > section#film.ch.tall {
  height: 240svh !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}
html body main > section#film.ch.tall > .pin {
  position: sticky !important;
  top: 0 !important;
  height: 100svh !important;
  width: 100%;
  padding: 0 !important;
  display: block !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none;
}
html body main > section#film.ch.tall .pin .fv {
  position: absolute !important;
  inset: var(--film-inset, 7.5%) !important;
  transform: none !important;
  width: auto !important;
  height: auto !important;
  aspect-ratio: auto;
  border-radius: var(--film-radius, 24px) !important;
}
html body main > section#film.ch.tall .pin-in {
  display: none !important;
}
html body main > section#film.ch.tall .pin .fv:fullscreen {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  background: #000 !important;
}
html body #film .fv:fullscreen::after {
  display: none;
}
html body #film .fv:fullscreen video {
  background: #000;
}
html body main > section#film + section#parts.ch {
  margin-top: 0 !important;
}
@media (max-width: 900px), (pointer: coarse) {
  #film .fv video {
    object-fit: contain;
    background: #000;
  }
}
