@font-face {
  font-family: "Overpass";
  src: url(fonts/overpass.woff2) format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Overpass Mono";
  src: url(fonts/overpass-mono.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --void: #0c0b0a;
  --floor: #191714;
  --plate: #262320;
  --plate-hi: #2f2b26;
  --ink: #ece6dc;
  --dim: #9a907f;
  --enamel: #ece9e0;
  --signal: #ebb32f;
  --lamp: #e0452c;
  --go: #8fc27f;
  --shadow: #060505;
  --sans: "Overpass", system-ui, sans-serif;
  --mono: "Overpass Mono", ui-monospace, Consolas, monospace;
  --pad: clamp(16px, 3.2vw, 44px);
}

* { box-sizing: border-box; }
html { background: var(--void); color: var(--ink); scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
img, video { display: block; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); }
::selection { background: var(--signal); color: var(--void); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* film grain over everything, footage included */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  background: url(grain.png);
  opacity: .07;
  mix-blend-mode: overlay;
}

.lamp {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lamp);
  animation: blink 1.4s steps(1) infinite;
}
@keyframes blink { 60% { opacity: .2; } }

.plate {
  display: inline-block;
  margin: 0;
  padding: .5em .75em .38em;
  font: 900 15px/1 var(--sans);
  letter-spacing: .03em;
  color: #121110;
  background: var(--enamel);
  border-radius: 2px;
}

.key {
  display: inline-flex;
  align-items: center;
  padding: 13px 18px 11px;
  font: 800 14px/1 var(--sans);
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #121110;
  background: var(--signal);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: transform .05s, background-color .1s;
}
.key:hover { background: #f6c64a; }
.key:active { transform: translateY(2px); }
.key.done { background: var(--enamel); text-transform: none; }

/* ---------- the reel ---------- */

.reel { background: var(--void); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--pad); }
.bar-top { height: 54px; font: 600 14px/1 var(--sans); }
.bar-top nav { display: flex; gap: 30px; }
.bar-top a { text-decoration: none; color: var(--dim); }
.bar-top a:hover { color: var(--ink); }
.host { font-family: var(--mono); font-weight: 400; color: var(--ink) !important; }
.status { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: .02em; color: var(--ink) !important; }
.status .lamp { background: var(--go); animation-duration: 2.4s; }

.frame { aspect-ratio: 2.39; overflow: hidden; background: #000; }
.frame video { width: 100%; height: 100%; object-fit: cover; }

.bar-bottom { align-items: flex-end; padding-top: clamp(20px, 2.6vw, 38px); padding-bottom: clamp(18px, 2.6vw, 34px); }
.name {
  margin: 0 0 0 -.05em;
  font: 900 clamp(64px, 14vw, 216px)/.74 var(--sans);
  letter-spacing: -.045em;
  color: var(--enamel);
}
.credit { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; text-align: right; }
.credit p { margin: 0; font: 600 16px/1.2 var(--sans); color: var(--dim); }

/* ---------- the board ---------- */

.board-wrap { background: var(--floor); padding: clamp(56px, 8vw, 128px) clamp(10px, 3vw, 40px); }
.board {
  --w: clamp(12px, 1.5vw, 20px);
  --gap: 2px;
  --group: calc(var(--w) * .5);
  --pcol: calc(5 * var(--w) + 4 * var(--gap));
  --vcol: calc(10 * var(--w) + 9 * var(--gap) + 3 * var(--group));
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 40px);
  background: var(--plate);
  border-radius: 3px;
  box-shadow: 12px 12px 0 var(--shadow);
}
.board-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(26px, 3.4vw, 44px); }
.live { display: inline-flex; align-items: center; gap: 9px; font: 700 13px/1 var(--mono); letter-spacing: .06em; }

.totals { display: flex; flex-wrap: wrap; gap: 28px clamp(32px, 6vw, 88px); margin-bottom: clamp(30px, 4vw, 52px); }
.cap { display: block; margin-bottom: 12px; font: 800 13px/1 var(--sans); letter-spacing: .03em; color: var(--dim); }

.table ol { list-style: none; margin: 0; padding: 0; }
.head, .row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) var(--pcol) var(--vcol);
  column-gap: clamp(14px, 2.6vw, 34px);
  align-items: center;
  padding: 0 12px;
}
.head { padding-bottom: 12px; font: 800 12px/1 var(--sans); letter-spacing: .03em; color: var(--dim); }
.head span:nth-child(n+3) { text-align: right; }
.row { padding-top: 12px; padding-bottom: 12px; border-top: 1px solid #141210; text-decoration: none; transition: background-color .08s; }
.row:hover { background: var(--plate-hi); }
.row img { width: 48px; height: 48px; border-radius: 2px; }
.stats { display: contents; }
.stat { justify-self: end; }
.stat em { display: none; }
.others { padding: 16px 12px 0 calc(12px + 48px + clamp(14px, 2.6vw, 34px)); border-top: 1px solid #141210; }

/* ---------- flaps ---------- */

.flaps { display: inline-flex; gap: var(--gap); vertical-align: top; white-space: nowrap; }
.flaps.big { --w: clamp(22px, 3.4vw, 46px); --gap: 3px; --group: calc(var(--w) * .45); }

.cell {
  --h: calc(var(--w) * 1.5);
  position: relative;
  flex: none;
  width: var(--w);
  height: var(--h);
  border-radius: 2px;
  box-shadow: 0 2px 0 var(--shadow);
  perspective: calc(var(--h) * 5);
  font: 700 calc(var(--w) * 1.02)/1 var(--mono);
  color: #f1ebdf;
}
.cell.g { margin-left: var(--group); }
.cell .half { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; }
.cell .top { top: 0; background: #1f1d1a; border-radius: 2px 2px 0 0; transform-origin: 50% 100%; }
.cell .bot { bottom: 0; background: #181614; border-radius: 0 0 2px 2px; transform-origin: 50% 0; }
.cell b {
  position: absolute;
  left: 0;
  right: 0;
  height: var(--h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: .1em;
  font-weight: 700;
}
.cell .top b { top: 0; }
.cell .bot b { bottom: 0; }
.cell .leaf { z-index: 2; visibility: hidden; backface-visibility: hidden; }
.cell.moving .leaf { visibility: visible; }
.cell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 3;
  height: 1px;
  margin-top: -1px;
  background: rgba(0, 0, 0, .9);
}

/* ---------- systems ---------- */

.systems { max-width: 1320px; margin: 0 auto; padding: clamp(72px, 9vw, 140px) var(--pad) 0; }
.sys {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(20px, 3.4vw, 56px);
  align-items: end;
}
.sys + .sys { margin-top: clamp(56px, 8vw, 120px); }
.sys.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
.sys.flip .shot { order: 2; }
.sys.flip h3 { text-align: right; }
.shot { overflow: hidden; background: #000; border-radius: 2px; box-shadow: 12px 12px 0 var(--shadow); }
.sys.flip .shot { box-shadow: -12px 12px 0 var(--shadow); }
.shot video { width: 100%; height: 100%; object-fit: cover; }
.sys h3 {
  margin: 0 0 -.06em;
  font: 900 clamp(40px, 5.6vw, 86px)/.82 var(--sans);
  letter-spacing: -.035em;
  color: var(--enamel);
}

/* ---------- contact ---------- */

.contact { max-width: 1180px; margin: 0 auto; padding: clamp(96px, 12vw, 180px) var(--pad) 0; }
.say { margin: 0; max-width: 32ch; font: 600 clamp(26px, 3.4vw, 46px)/1.12 var(--sans); letter-spacing: -.015em; color: var(--ink); }
.dm { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: clamp(30px, 3.6vw, 44px); }
.handle { font: 400 15px/1 var(--mono); color: var(--dim); }
.handle b { font-weight: 600; color: var(--ink); }
.clock { margin: 22px 0 0; font: 400 13px/1 var(--mono); color: var(--dim); }

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  max-width: 1180px;
  margin: clamp(96px, 11vw, 160px) auto 0;
  padding: 28px var(--pad) 40px;
  border-top: 1px solid #23201c;
  font: 600 14px/1 var(--sans);
  color: var(--dim);
}
footer .sig { font-weight: 400; font-size: 12px; }
footer nav { display: flex; gap: 26px; }
footer a, footer button { padding: 0; text-decoration: none; background: none; border: 0; cursor: pointer; font: inherit; color: inherit; }
footer a:hover, footer button:hover { color: var(--ink); }

/* ---------- the cursor tag ---------- */

.tag {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 95;
  pointer-events: none;
  transform-origin: 0 0;
  opacity: 0;
  transition: opacity .2s;
}
.tag.on { opacity: 1; }
.tag .flaps { --w: 15px; --gap: 2px; }
.tag .cell { box-shadow: 2px 2px 0 rgba(0, 0, 0, .55); }
.tag .cell.off { display: none; }

/* ---------- phones ---------- */

@media (max-width: 760px) {
  .bar-top nav { display: none; }
  .frame { aspect-ratio: 16 / 10; }
  .bar-bottom { flex-direction: column; align-items: flex-start; gap: 18px; }
  .credit { align-items: flex-start; text-align: left; }
  .board { --w: clamp(11px, 3.1vw, 15px); box-shadow: 6px 6px 0 var(--shadow); }
  .head { display: none; }
  .row {
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-areas: "icon name" "icon stats";
    row-gap: 10px;
    column-gap: 12px;
    padding: 12px 6px;
  }
  .row img { grid-area: icon; width: 40px; height: 40px; align-self: start; }
  .row .name { grid-area: name; }
  .stats { display: flex; gap: 18px; grid-area: stats; }
  .stat { justify-self: start; }
  .stat em { display: block; margin-bottom: 5px; font: 800 10px/1 var(--sans); font-style: normal; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); }
  .others { padding-left: 58px; }
  .sys, .sys.flip { grid-template-columns: 1fr; gap: 16px; }
  .sys.flip .shot { order: 0; }
  .sys.flip h3 { text-align: left; }
  .shot, .sys.flip .shot { box-shadow: 6px 6px 0 var(--shadow); }
  footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lamp { animation: none; }
}
