@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-opsz-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Registered so the wash's colour can fade from one app's hue to the next. */
@property --beam-h {
  syntax: '<number>';
  inherits: true;
  initial-value: 197;
}

:root {
  color-scheme: light;
  --page: #f6f5f1;
  --paper: #ffffff;
  --dark: #10181d;
  --text: #10181d;
  --muted: #55656f;
  --line: rgba(16, 24, 29, 0.1);
  --gutter: clamp(8px, 1vw, 16px);
  --gap: clamp(6px, 0.6vw, 9px);
  --width: 1560px;
  --nav-height: 56px;
  --glide: cubic-bezier(0.16, 1, 0.3, 1);
  --h: 197;
  --row: clamp(92px, 13vh, 128px);
}

/* Each app's hue. */
[data-app='zsplit'] { --h: 158; }
[data-app='zpolls'] { --h: 262; }
[data-app='zarcade'] { --h: 330; }
[data-app='zutils'] { --h: 96; }
[data-app='zshoots'] { --h: 12; }
[data-app='zplans'] { --h: 24; }
[data-app='zwrite'] { --h: 36; }
[data-app='zcanvas'] { --h: 300; }
[data-app='zgames'] { --h: 280; }

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--page);
  scroll-padding-top: calc(var(--nav-height) + var(--gap));
  /* On reload Chrome restores the scroll by a cell's position, and cells are mid-entrance then, so the page landed about 30px off. */
  overflow-anchor: none;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; }
:focus-visible { outline: 2px solid var(--dark); outline-offset: 2px; border-radius: 4px; }

/* The wash behind the page. Only transforms change as the page scrolls, so it never has to repaint. */
.beam {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  transition: --beam-h 800ms ease;
}
.beam i { position: absolute; display: block; }
.beam-shaft {
  top: -45vmax;
  left: 0;
  width: 52vmax;
  height: 190vmax;
  background: linear-gradient(90deg, transparent, hsl(var(--beam-h) 85% 72% / 0.22) 50%, transparent);
  transform: translateX(8vw) rotate(24deg);
}
.beam-pool {
  top: 0;
  left: 0;
  width: 80vmax;
  height: 80vmax;
  background: radial-gradient(closest-side, hsl(var(--beam-h) 85% 72% / 0.3), transparent);
  transform: translate(10vw, 10vh);
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-height);
  padding-inline: calc(var(--gutter) + 8px);
  background: var(--page);
}
.wordmark {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-links { display: flex; gap: 22px; font-size: 0.92rem; }
.nav-links a { color: var(--muted); text-decoration: none; transition: color 200ms; }
.nav-links a:hover, .nav-links a.is-current { color: var(--text); }
.nav-end { display: flex; align-items: center; gap: 8px; }
@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* Stops the looping animations. light.js shows it only when something is looping. */
.still {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--dark);
  cursor: pointer;
}
.still[hidden] { display: none; }
.still svg { display: block; width: 12px; height: 12px; fill: currentColor; }
.still .icon-play { display: none; }
.still[aria-pressed='true'] .icon-play { display: block; }
.still[aria-pressed='true'] .icon-pause { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms;
}
.button:hover { background: hsl(var(--h) 60% 30%); }
.button-small { min-height: 36px; padding: 0 15px; font-size: 0.9rem; white-space: nowrap; }
.button-lead { gap: 8px; min-height: 48px; padding: 0 24px; font-size: 1.05rem; }

/* The grid. Every block on the page is a .cell, sized by .c-* (columns) and .r-* (rows), and
   filled with .paper, .tint or .ink. Below 900px there are 2 columns, and .half takes one of them. */
.bento {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  width: 100%;
  max-width: var(--width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.group, .strip-row { margin-top: var(--gap); }
.cell {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: 1 / -1;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  padding: clamp(12px, 1.2vw, 18px);
  border-radius: var(--radius, 20px);
  text-decoration: none;
}
.paper { background: var(--paper); }
.tint, .tint-2 { --muted: rgba(16, 24, 29, 0.72); }
.tint { background: hsl(var(--h) 78% 83%); }
.tint-2 { background: hsl(calc(var(--h) + 42) 80% 85%); }
.ink { background: var(--dark); color: #fff; --muted: #a9b8c1; }
@media (max-width: 899px) {
  .half { grid-column: span 1; }
}
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .group { grid-auto-rows: minmax(var(--row), auto); }
  .c-2 { grid-column: span 2; }
  .c-3 { grid-column: span 3; }
  .c-4 { grid-column: span 4; }
  .c-5 { grid-column: span 5; }
  .c-7 { grid-column: span 7; }
  .c-8 { grid-column: span 8; }
  .c-9 { grid-column: span 9; }
  .r-2 { grid-row: span 2; }
  .r-3 { grid-row: span 3; }
  .r-4 { grid-row: span 4; }
}

/* Only a cell that's a link reacts to the pointer and wears the corner arrow, so a static cell never looks clickable.
   The lift uses translate, not transform, because GSAP animates transform as cells arrive. */
a.cell { transition: translate 250ms var(--glide), box-shadow 200ms; }
a.cell:hover, a.cell:focus-visible { box-shadow: 0 0 0 1.5px hsl(var(--h) 75% 36%), 0 14px 30px hsl(var(--h) 50% 25% / 0.18); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  a.cell:hover { translate: 0 -3px; }
}
.go {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  color: var(--dark);
  transition: background-color 150ms, color 150ms;
}
.paper .go { background: var(--page); }
.go::before {
  content: '';
  width: 12px;
  height: 12px;
  background: currentColor;
  -webkit-mask: url(/arrow.svg) center / contain no-repeat;
  mask: url(/arrow.svg) center / contain no-repeat;
}
a.cell:hover .go, a.cell:focus-visible .go { background: var(--dark); color: #fff; }

/* The spotlight. light.js gives every link cell near the pointer the same point of light, so it crosses cell edges. */
a.cell::before, a.cell::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
a.cell::before {
  padding: 1.5px;
  background: radial-gradient(220px circle at var(--mx, -400px) var(--my, -400px), hsl(var(--h) 80% 45%), transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
a.cell::after {
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), hsl(var(--h) 90% 60% / 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 250ms;
}
a.cell:hover::after, a.cell:focus-visible::after { opacity: 1; }

/* Small shared pieces that cells are made from. */
.label { color: var(--muted); font-size: 0.86rem; line-height: 1.25; }
.label-end { align-self: flex-end; }
.stat {
  margin-top: auto;
  font-size: clamp(2.4rem, 7vh, 4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-mid { font-size: clamp(1.7rem, 5vh, 2.6rem); }
.lead { font-size: clamp(1.05rem, 2.5vh, 1.3rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }
.lead-big { font-size: clamp(1.15rem, 3.2vh, 1.75rem); }
.faces { display: flex; }
.faces i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: -7px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: hsl(calc(var(--h) + var(--turn, 0)) 70% 62%);
  color: #fff;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
}
.faces i:nth-child(2) { --turn: 40; }
.faces i:nth-child(3) { --turn: 80; }
.faces i:nth-child(4) { --turn: 120; }
.faces i:nth-child(5) { --turn: 160; }
.faces-big i { width: clamp(42px, 4vw, 58px); height: clamp(42px, 4vw, 58px); margin-right: -11px; font-size: 1rem; }


/* A mock is a tilted piece of app UI that runs off the edge of its cell. */
.mock {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--paper);
  color: var(--dark);
  box-shadow: 0 10px 26px hsl(var(--h) 50% 25% / 0.2);
  --muted: #55656f;
}
.mock-bill {
  margin: auto -34px -26px 6px;
  padding-bottom: 34px;
  transform: rotate(-4deg);
}
.bill-lines { display: grid; gap: clamp(8px, 2vh, 18px); margin-block: 6px clamp(10px, 4vh, 40px); }
.bill-lines i { display: block; height: clamp(8px, 1.6vh, 14px); border-radius: 7px; background: hsl(var(--h) 60% 80%); }
.bill-lines i:nth-child(2) { width: 74%; }
.bill-lines i:nth-child(3) { width: 52%; background: hsl(var(--h) 70% 42%); }
.mock-join {
  position: absolute;
  top: 14px;
  right: -22px;
  width: 86%;
  transform: rotate(6deg);
}
.field { padding: 3px 9px; border-radius: 7px; background: var(--page); font-size: 0.9rem; font-weight: 650; letter-spacing: 0.06em; }
.join-note { color: var(--muted); font-size: 0.78rem; line-height: 1.2; }
.mock-lines { margin: -26px -30px 10px 26px; padding-top: 28px; transform: rotate(3deg); }
.split-chips { display: flex; gap: 4px; margin-top: 4px; }
.split-chips b { padding: 1px 8px; border-radius: 999px; background: hsl(var(--h) 80% 86%); font-size: 0.74rem; font-weight: 650; }
.mock-pin { margin: -26px -14px 10px -14px; padding-top: 30px; align-items: center; gap: 9px; transform: rotate(-4deg); }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; width: 100%; }
.keys i { padding: 2px 0; border-radius: 6px; background: var(--page); font-size: 0.8rem; font-style: normal; font-weight: 600; text-align: center; }
.mock-balance { align-self: flex-end; width: 78%; margin: -26px -26px 10px 0; padding-top: 28px; transform: rotate(-3deg); }
.mock-balance b { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; }
.scene-tilt { justify-content: flex-start; padding-inline: 18px 0; padding-bottom: 0; }
.mock-scene { justify-content: space-evenly; gap: 12px; margin: 6px -26px -30px 2px; padding: 16px 40px 40px 16px; transform: rotate(2.5deg); flex: 1; }

/* The opening board fills one screen, on a fixed plan like a poster, with the headline as its lead.
   The space under the nav leaves room for a top-row cell's hover lift and border. */
.board-one { padding-top: calc(var(--nav-height) + 6px); }
.board-one .lead { padding-right: 26px; }
@media (max-width: 899px) {
  .a-split, .a-ring, .a-utils, .a-shoots { grid-column: span 1; min-height: 210px; }
  .a-free { min-height: 170px; }
  .a-stage { min-height: 300px; }
}
@media (min-width: 900px) {
  .board-one {
    height: calc(100vh - var(--gap));
    min-height: 620px;
    grid-template-rows: repeat(6, minmax(0, 1fr));
  }
  .a-words { grid-area: 1 / 1 / 4 / 6; }
  .a-split { grid-area: 1 / 6 / 4 / 9; }
  .a-ring { grid-area: 1 / 9 / 4 / 13; }
  .a-stage { grid-area: 4 / 1 / 7 / 5; }
  .a-utils { grid-area: 4 / 5 / 6 / 8; }
  .a-shoots { grid-area: 4 / 8 / 6 / 11; }
  .a-free { grid-area: 4 / 11 / 7 / 13; }
  .a-suite { grid-area: 6 / 5 / 7 / 11; }
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  /* Stays hidden until light.js is ready to gather the cells, or shows anyway if it never runs. */
  .board-one { animation: board-in 1ms 1500ms both; }
  .board-one.is-ready { animation: none; }
}
@keyframes board-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* POLLS, in brief: a ring filling up off the cell's corner. */
.ring { position: absolute; right: -16%; bottom: -14%; width: min(82%, 300px, 40vh); aspect-ratio: 1; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 13; }
.ring-back { stroke: rgba(255, 255, 255, 0.8); }
.ring-fill {
  --s: 0.05;
  --d: 0.7;
  stroke: hsl(var(--h) 80% 40%);
  stroke-linecap: round;
  stroke-dasharray: 314.2;
  stroke-dashoffset: calc(314.2 - 163.4 * var(--a));
}

/* The suite overview: what's here, with the shared and personal apps as two groups of icons. */
.a-suite { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px 20px; padding-right: 44px; }
.suite-words { display: grid; gap: 4px; min-width: 0; }
.suite-count { display: flex; align-items: baseline; gap: 5px; }
.suite-count .stat { margin: 0; font-size: clamp(1.3rem, 3.4vh, 1.9rem); }
.suite-icons { display: flex; flex: none; gap: 12px; }
.icon-group { display: flex; padding-left: 7px; }
.icon-group img { width: clamp(28px, 5.2vh, 40px); height: auto; margin-left: -7px; border: 2px solid var(--paper); border-radius: 28%; }
@media (max-width: 899px) {
  .a-suite { flex-wrap: wrap; }
  .mock-join { width: 44%; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .a-suite .lead { display: none; }
}

.a-free { --h: 48; }

/* SPLIT, in brief. */
.a-split .faces { margin-block: 6px 8px; }
.app-tag { display: flex; align-items: center; gap: 7px; font-size: 0.9rem; font-weight: 650; }
.app-tag img { border-radius: 6px; }

/* ARCADE, in brief: a die, and one row of a Bingo card lighting up as it runs off both edges. */
.stage-die { flex: 1; display: grid; place-items: center; --size: clamp(46px, 9vh, 76px); }
.stage-die .die { --size: inherit; }
.bingo.bingo-row { flex: none; grid-template-columns: repeat(5, minmax(0, 1fr)); width: calc(100% + 56px); max-width: none; margin: 0 -28px clamp(4px, 2vh, 16px); transform: rotate(-4deg); font-size: clamp(0.85rem, 2.2vh, 1.15rem); }
.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 8px 24px hsl(var(--h) 60% 30% / 0.16);
  font-size: 0.86rem;
}
.float-bars { bottom: 12%; left: 8%; align-items: flex-end; gap: 4px; height: 66px; }
.float-bars i { display: block; width: 9px; height: 100%; border-radius: 3px; background: hsl(var(--h) 80% 45%); transform-origin: 50% 100%; transform: scaleY(var(--to)); }
.float-bars i:nth-child(1) { --from: 0.3; --to: 0.7; opacity: 0.5; }
.float-bars i:nth-child(2) { --from: 0.8; --to: 0.4; opacity: 0.65; }
.float-bars i:nth-child(3) { --from: 0.45; --to: 0.9; opacity: 0.8; }
.float-bars i:nth-child(4) { --from: 0.95; --to: 0.55; }
.float-bars i:nth-child(5) { --from: 0.35; --to: 0.75; opacity: 0.8; }

/* A die, built from six faces. */
.die {
  --size: 44px;
  position: relative;
  display: block;
  width: var(--size);
  height: var(--size);
  transform: rotateX(-24deg) rotateY(36deg);
  transform-style: preserve-3d;
}
.die i {
  --pip: radial-gradient(circle, #fff 0 62%, transparent 66%);
  position: absolute;
  inset: 0;
  border-radius: 7%;
  background-color: hsl(var(--h) 72% 42%);
  background-image: var(--pip), var(--pip), var(--pip), var(--pip), var(--pip), var(--pip);
  background-repeat: no-repeat;
  background-size: 20% 20%;
  /* Six dots on every face. A face hides the ones it doesn't need by parking them off its edge. */
  background-position: -100% 0, -100% 0, -100% 0, -100% 0, -100% 0, -100% 0;
}
.die i:nth-child(1) { background-position: 50% 50%, -100% 0, -100% 0, -100% 0, -100% 0, -100% 0; transform: translateZ(calc(var(--size) / 2)); }
.die i:nth-child(2) { background-position: 18% 18%, 82% 18%, 18% 50%, 82% 50%, 18% 82%, 82% 82%; background-color: hsl(var(--h) 72% 30%); transform: rotateY(180deg) translateZ(calc(var(--size) / 2)); }
.die i:nth-child(3) { background-position: 18% 18%, 82% 82%, -100% 0, -100% 0, -100% 0, -100% 0; background-color: hsl(var(--h) 72% 34%); transform: rotateY(90deg) translateZ(calc(var(--size) / 2)); }
.die i:nth-child(4) { background-position: 18% 18%, 82% 18%, 18% 82%, 82% 82%, 50% 50%, -100% 0; background-color: hsl(var(--h) 72% 38%); transform: rotateY(-90deg) translateZ(calc(var(--size) / 2)); }
.die i:nth-child(5) { background-position: 18% 18%, 50% 50%, 82% 82%, -100% 0, -100% 0, -100% 0; background-color: hsl(var(--h) 72% 50%); transform: rotateX(90deg) translateZ(calc(var(--size) / 2)); }
.die i:nth-child(6) { background-position: 18% 18%, 82% 18%, 18% 82%, 82% 82%, -100% 0, -100% 0; background-color: hsl(var(--h) 72% 26%); transform: rotateX(-90deg) translateZ(calc(var(--size) / 2)); }
.die-big { --size: clamp(64px, 11vh, 92px); }

/* The statement: each line is a dark pill. */
.a-words { align-items: flex-start; justify-content: space-between; gap: 10px; }
.pills { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: clamp(1.9rem, min(7.4vh, 5vw), 4.6rem); font-weight: 550; line-height: 1.12; letter-spacing: -0.025em; }
.pills .line { padding: 0.04em 0.26em 0.1em; border-radius: 0.24em; background: var(--dark); color: #fff; white-space: nowrap; }

/* PHOTOS, in brief: two shots standing in arches, cut off by the cell's foot. */
.arches { display: flex; flex: 1; gap: 6px; min-height: 56px; margin: 6px 0 calc(clamp(12px, 1.2vw, 18px) * -1) 34%; }
.arches i { display: block; flex: 1; border-radius: 999px 999px 14px 14px; }
.arches i:nth-child(1) { background: linear-gradient(170deg, #f7b267 0 38%, #e2573a 62%, #3b1f2b); }
.arches i:nth-child(2) { margin-top: 18px; background: linear-gradient(200deg, #29335c, #d1495b 70%, #edae49); }

/* UTILS, in brief: a wheel turning off the cell's corner. */
.mini-wheel {
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: clamp(80px, 13vh, 120px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    hsl(var(--h) 60% 34%) 0 60deg, hsl(var(--h) 65% 50%) 0 120deg,
    hsl(var(--h) 60% 34%) 0 180deg, hsl(var(--h) 65% 50%) 0 240deg,
    hsl(var(--h) 75% 64%) 0 300deg, hsl(var(--h) 65% 50%) 0 360deg);
}
.a-utils .mini-wheel { width: clamp(96px, 20vh, 190px); }

/* A strip of what the apps do. It runs by itself, and the scroll pushes it further along. */
.strip { padding-block: 9px; padding-inline: 0; background: var(--dark); color: #fff; font-size: 0.98rem; font-weight: 500; }
.strip-track ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px clamp(24px, 3vw, 44px);
  padding-inline: var(--gutter);
}
.strip-track ul[aria-hidden] { display: none; }
.strip-track li { white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .strip-scrub, .strip-track { width: max-content; }
  .strip-track { display: flex; animation: strip-run 70s linear infinite; }
  .strip-track ul {
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-inline: 0 clamp(24px, 3vw, 44px);
  }
  .strip-track ul[aria-hidden] { display: flex; }
}
@keyframes strip-run { to { transform: translateX(-33.333%); } }

/* An app's words. The app's name sits at the top of the cell, and the rest sits at the bottom. */
.copy { align-items: flex-start; gap: 10px; }
.show-app {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: auto;
  padding-bottom: 12px;
  font-size: 1rem;
  font-weight: 650;
}
.show-app img { border-radius: 8px; }
.copy-note { color: var(--muted); }
#personal h2 { margin-top: auto; }
h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.3rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.feat { justify-content: flex-end; font-size: 0.95rem; font-weight: 500; line-height: 1.25; }
.feat > :first-child { margin-bottom: auto; }
.feat strong { display: block; color: hsl(var(--h) 75% 26%); font-size: 1.02rem; font-weight: 700; }
.feat-tight { justify-content: center; }
.feat-votes { padding-right: 150px; }
.float.vote-bars { left: auto; right: 22px; bottom: 0; height: 84px; padding: 0; background: none; box-shadow: none; animation: none; }
.vote-bars i { width: 16px; border-radius: 4px 4px 0 0; background: hsl(var(--h) 85% 76%); }
.feat-tight > :first-child { margin-bottom: 0; }
.glyph { width: 26px; height: 26px; fill: hsl(var(--h) 75% 48%); }
.lines { display: grid; gap: 5px; }
.lines i { display: block; height: 7px; border-radius: 4px; background: hsl(var(--h) 70% 72%); }
.lines i:nth-child(2) { width: 72%; }
.lines i:nth-child(3) { width: 48%; background: hsl(var(--h) 70% 40%); }
.pin-dots { display: flex; gap: 6px; }
.pin-dots i { display: block; width: 13px; height: 13px; border-radius: 50%; background: hsl(var(--h) 70% 30%); }

/* POLLS: a word cloud, a 2×2 matrix with a dot wandering it, and a podium. */
.cloud { flex-direction: row; flex-wrap: wrap; align-content: center; justify-content: center; gap: 2px 10px; font-size: 0.95rem; color: var(--muted); min-height: 170px; }
.cloud span { display: block; }
.cloud .mid { color: hsl(var(--h) 90% 82%); font-size: 1.4rem; font-weight: 600; }
.cloud .big { color: #fff; font-size: clamp(1.9rem, 2.8vw, 2.6rem); font-weight: 650; line-height: 1.1; letter-spacing: -0.02em; }
.matrix { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 12px; min-height: 104px; }
.matrix i { display: block; border-radius: 6px; background: rgba(255, 255, 255, 0.72); }
.matrix i:nth-child(2) { background: hsl(var(--h) 80% 72%); }
.matrix b { position: absolute; top: 34%; left: 60%; width: 13px; height: 13px; border-radius: 50%; background: var(--dark); }
.podium-cell { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 16px; padding-block-end: 0; min-height: 96px; }
.podium-cell p { align-self: center; font-size: 0.98rem; font-weight: 500; text-align: right; }
.podium { display: flex; flex: none; align-items: flex-end; gap: 4px; height: 76px; }
.podium i { display: flex; justify-content: center; width: 42px; padding-top: 3px; border-radius: 7px 7px 0 0; background: hsl(var(--h) 75% 62%); color: #fff; font-style: normal; font-weight: 700; }
.podium i:nth-child(1) { height: 66%; }
.podium i:nth-child(2) { height: 100%; background: hsl(var(--h) 75% 46%); }
.podium i:nth-child(3) { height: 44%; background: hsl(var(--h) 75% 74%); }

/* ARCADE: the games, as a stack of pills. */
.games ul { display: flex; flex: 1; flex-direction: column; gap: 5px; margin-top: 4px; }
.games li { display: flex; flex: 1; align-items: center; padding: 7px 13px; border-radius: 11px; background: hsl(var(--h) 80% 90%); font-size: clamp(0.98rem, 1.5vw, 1.35rem); font-weight: 600; letter-spacing: -0.01em; }
.games li:last-child { flex: none; background: none; color: var(--muted); font-size: 0.92rem; font-weight: 500; }

/* UTILS: a tumbling die and three sealed names. */
.dice-cell { flex-direction: row; align-items: center; gap: clamp(26px, 3.4vw, 52px); padding-inline: clamp(30px, 3.4vw, 52px); min-height: 150px; }
.dice-cell p { font-size: 0.96rem; line-height: 1.28; }
.dice-cell strong { display: block; color: hsl(var(--h) 80% 72%); font-size: 1.2rem; font-weight: 700; }
.draws { display: flex; flex-direction: row; align-items: center; justify-content: flex-end; gap: 7px; margin: -22px -10px 10px 0; }
.draws i {
  display: grid;
  place-items: center;
  width: clamp(54px, 5vw, 76px);
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  background: hsl(var(--h) 75% 40%);
  color: #fff;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 700;
}
.draws i:nth-child(1) { transform: rotate(-8deg); background: hsl(var(--h) 75% 62%); }
.draws i:nth-child(3) { transform: rotate(8deg); background: hsl(var(--h) 75% 28%); }
.feat-wheel { padding-right: 45%; min-height: 150px; }
.feat-wheel .mini-wheel { right: -34px; bottom: -34px; width: clamp(150px, 16vw, 230px); }
.feat-wheel { justify-content: flex-end; --h: 96; }
.feat-wheel > :first-child { margin-bottom: 0; }
.feat-draws { min-height: 150px; }
.draws i { --h: 138; }

/* A demo. --a is one element's own progress: it starts at --s of the scene and takes --d to finish. */
.scene { justify-content: center; gap: 14px; font-size: 0.95rem; }
[data-scene] * { --a: clamp(0, calc((var(--p, 1) - var(--s, 0)) / var(--d, 0.2)), 1); }
.scene-title { font-size: 1.1rem; font-weight: 650; letter-spacing: -0.01em; }
.scene-chip {
  --s: 0.84;
  --d: 0.1;
  align-self: flex-start;
  padding: 3px 13px;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: var(--a);
  transform: translateY(calc((1 - var(--a)) * 8px)) scale(calc(0.9 + var(--a) * 0.1));
}

/* SPLIT: each line of the receipt lights up in turn, and everyone's share fills. */
.receipt ul { display: grid; gap: 3px; margin-top: 8px; }
.receipt li, .receipt-total { display: flex; justify-content: space-between; gap: 12px; }
.receipt li {
  padding: 6px 9px;
  border-radius: 7px;
  background: hsl(var(--h) 80% 50% / calc(var(--a) * 0.16));
  opacity: calc(0.4 + var(--a) * 0.6);
}
.receipt li:nth-child(1) { --s: 0.08; }
.receipt li:nth-child(2) { --s: 0.28; }
.receipt li:nth-child(3) { --s: 0.48; }
.receipt-total { margin-top: 8px; padding: 8px 9px 0; border-top: 1px solid var(--line); font-weight: 650; }
.shares { display: grid; gap: 8px; }
.shares li, .bars li {
  display: grid;
  grid-template-columns: 3.1em minmax(0, 1fr) 3.1em;
  align-items: center;
  gap: 8px;
}
.shares li > :last-child, .bars li > :last-child { text-align: right; }
.meter, .bar {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: hsl(var(--h) 40% 92%);
}
.meter i, .bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: hsl(var(--h) 72% 42%);
  transform-origin: 0 50%;
  transform: scaleX(calc(var(--a) * var(--w, 1)));
}
.shares i { --s: 0.2; --d: 0.56; }
.shares li:nth-child(-n + 2) i { --w: 0.864; }

/* POLLS: the votes come in and the bars grow. */
.bars { flex: 1; display: grid; align-content: space-evenly; gap: 10px; }
.bar { height: clamp(20px, 4vh, 34px); border-radius: 9px; }
.bars i { --s: 0.06; --d: 0.74; }
.bars li:nth-child(1) i { --w: 1; }
.bars li:nth-child(2) i { --w: 0.52; opacity: 0.76; }
.bars li:nth-child(3) i { --w: 0.27; opacity: 0.58; }
.bars li:nth-child(4) i { --w: 0.13; opacity: 0.42; }

/* ARCADE: numbers get marked around the card until the middle row completes. */
.bingo {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  width: min(100%, 390px);
  margin-inline: auto;
}
.bingo span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 9px;
  background: var(--page);
  color: var(--muted);
  font-weight: 600;
}
.scene-arcade .bingo span { background: var(--paper); }
.bingo .m, .bingo .w {
  --d: 0.06;
  color: color-mix(in srgb, var(--dark) calc(var(--a) * 100%), var(--muted));
  transform: scale(calc(1 + (1 - var(--a)) * var(--a) * 0.4));
}
.bingo .m, .scene-arcade .bingo .m { background: color-mix(in srgb, hsl(var(--h) 80% 72%) calc(var(--a) * 100%), var(--paper)); }
.bingo .w, .scene-arcade .bingo .w {
  background: color-mix(in srgb, hsl(var(--h) 75% 42%) calc(var(--a) * 100%), var(--paper));
  color: color-mix(in srgb, #fff calc(var(--a) * 100%), var(--muted));
}
.m1 { --s: 0.04; } .m2 { --s: 0.13; } .m3 { --s: 0.22; } .m4 { --s: 0.31; } .m5 { --s: 0.4; } .m6 { --s: 0.49; } .m7 { --s: 0.58; }
.w1 { --s: 0.1; } .w2 { --s: 0.27; } .w3 { --s: 0.46; } .w4 { --s: 0.65; } .w5 { --s: 0.76; }
.scene-arcade .scene-chip { align-self: center; }

/* UTILS: the wheel spins, slowing to rest on Eli (light.js eases --e). Every spin starts and ends at the same angle. */
.scene-utils { align-items: center; }
.wheel-wrap { position: relative; width: min(100%, 340px); container-type: inline-size; }
.wheel {
  position: relative;
  aspect-ratio: 1;
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: conic-gradient(
    hsl(var(--h) 55% 26%) 0 60deg,
    hsl(var(--h) 60% 36%) 0 120deg,
    hsl(var(--h) 55% 26%) 0 180deg,
    hsl(var(--h) 60% 36%) 0 240deg,
    hsl(var(--h) 72% 42%) 0 300deg,
    hsl(var(--h) 60% 36%) 0 360deg);
  color: #fff;
  transform: rotate(calc(90deg + var(--e, 1) * 1440deg));
}
.wheel span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  display: grid;
  place-items: center;
  font-weight: 650;
  transform: rotate(var(--r)) translateY(-32cqw);
  transform-origin: 0 0;
}
.wheel span:nth-child(1) { --r: 30deg; }
.wheel span:nth-child(2) { --r: 90deg; }
.wheel span:nth-child(3) { --r: 150deg; }
.wheel span:nth-child(4) { --r: 210deg; }
.wheel span:nth-child(5) { --r: 270deg; }
.wheel span:nth-child(6) { --r: 330deg; }
.wheel-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  z-index: 1;
  width: 0;
  height: 0;
  margin-left: -11px;
  border: 11px solid transparent;
  border-top: 20px solid var(--dark);
  border-bottom: 0;
}
.scene-utils .scene-chip { align-self: center; }

/* PHOTOS: a messy stack of shots deals itself out into a tidy album. */
.album {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(78px, 1fr);
  gap: 5px;
}
.album i {
  --d: 0.5;
  display: block;
  border-radius: 9px;
  transform:
    translate(calc((1 - var(--a)) * var(--x, 0%)), calc((1 - var(--a)) * var(--y, 0%)))
    rotate(calc((1 - var(--a)) * var(--t, 0deg)));
}
.album i:nth-child(1) { --s: 0.02; --x: 70%; --y: 70%; --t: -9deg; grid-column: span 6; background: linear-gradient(170deg, #f7b267 0 38%, #e2573a 62%, #3b1f2b); }
.album i:nth-child(2) { --s: 0.08; --x: -30%; --y: 75%; --t: 7deg; grid-column: span 6; background: linear-gradient(200deg, #29335c, #d1495b 70%, #edae49); }
.album i:nth-child(3) { --s: 0.14; --x: 95%; --y: 10%; --t: 12deg; grid-column: span 4; background: linear-gradient(160deg, #a1c6d8, #3e6d7c 60%, #152a33); }
.album i:nth-child(4) { --s: 0.2; --x: 0%; --y: 5%; --t: -5deg; grid-column: span 4; background: linear-gradient(185deg, #f4d58d, #bf0603 85%); }
.album i:nth-child(5) { --s: 0.26; --x: -95%; --y: 8%; --t: 8deg; grid-column: span 4; background: linear-gradient(150deg, #5f0f40, #9a031e 55%, #fb8b24); }
.album i:nth-child(6) { --s: 0.32; --x: 0%; --y: -70%; --t: -14deg; grid-column: span 12; background: linear-gradient(90deg, #0f4c5c, #e36414 55%, #fb8b24); }
@media (min-width: 900px) {
  .album i:nth-child(1) { grid-column: span 4; grid-row: span 2; }
  .album i:nth-child(2), .album i:nth-child(3), .album i:nth-child(5), .album i:nth-child(6) { grid-column: span 3; }
  .album i:nth-child(4) { grid-column: span 2; grid-row: span 2; }
}

/* An app tile, in the personal board. */
.tile { align-items: flex-start; gap: 2px; min-height: 130px; padding-right: 30%; }
.tile img { position: absolute; right: -14px; bottom: -14px; width: clamp(72px, 7vw, 104px); height: auto; border-radius: 26%; transform: rotate(-10deg); transition: transform 500ms var(--glide); }
.tile.r-2 img { width: clamp(110px, 11vw, 170px); }
.tile:hover img { transform: rotate(-4deg) scale(1.08); }
.tile-name { display: block; font-size: 1.08rem; font-weight: 650; letter-spacing: -0.01em; }
.tile-desc { display: block; color: var(--muted); font-size: 0.88rem; line-height: 1.25; }
.lock { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 6px; padding: 2px 9px 2px 7px; border-radius: 999px; background: var(--dark); color: #fff; font-size: 0.74rem; font-weight: 600; }
.lock svg { width: 11px; height: 11px; fill: currentColor; }

.closer { justify-content: flex-end; min-height: 130px; }
.footer-row { padding-bottom: var(--gutter); }
.footer { justify-content: space-between; min-height: 130px; color: var(--muted); font-size: 0.92rem; }
.footer .wordmark { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* A headline rises out of a mask. Its letters' tails need room inside that mask. */
.rise-mask { padding-bottom: 0.16em; margin-bottom: -0.16em; }

/* Everything that loops carries .loop. These stop off screen (.is-away, set by light.js) and when the visitor presses pause. */
@media (prefers-reduced-motion: no-preference) {
  .beam > i { animation: lights-on 1500ms ease-out both; }
  .float-bars { animation: bob 8s ease-in-out -4s infinite alternate; }
  .float-bars i { animation: vote 3.2s ease-in-out infinite alternate; }
  .float-bars i:nth-child(2) { animation-delay: -0.8s; }
  .float-bars i:nth-child(3) { animation-delay: -1.6s; }
  .float-bars i:nth-child(4) { animation-delay: -2.4s; }
  .float-bars i:nth-child(5) { animation-delay: -3s; }
  .die { animation: tumble 14s linear infinite; }
  .mini-wheel { animation: turn 16s linear infinite; }
  .cloud span { animation: bob 5s ease-in-out infinite alternate; }
  .cloud span:nth-child(even) { animation-delay: -2.5s; animation-duration: 6.5s; }
  .matrix b { animation: wander 9s ease-in-out infinite alternate; }
  .draws i { animation: shuffle 4.2s ease-in-out infinite alternate; }
  .draws i:nth-child(2) { animation-delay: -1.4s; }
  .draws i:nth-child(3) { animation-delay: -2.8s; }
  .is-away .loop, .is-away .float-bars i, .is-away .die,
  .is-still .loop, .is-still .float-bars i, .is-still .die { animation-play-state: paused; }
}
@keyframes lights-on {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes bob {
  from { transform: translateY(-5px); }
  to { transform: translateY(5px); }
}
@keyframes vote {
  from { transform: scaleY(var(--from)); }
  to { transform: scaleY(var(--to)); }
}
@keyframes tumble {
  from { transform: rotateX(-24deg) rotateY(36deg); }
  to { transform: rotateX(336deg) rotateY(396deg); }
}
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes wander {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-340%, 300%); }
  100% { transform: translate(120%, 180%); }
}
@keyframes shuffle {
  from { translate: 0 -5px; }
  to { translate: 0 5px; }
}

/* What follows the scroll directly. These run on the browser's compositor, in step with its own smooth
   scrolling, and only ever move things a little. Browsers without scroll timelines just skip them. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .beam-shaft {
      animation: lights-on 1500ms ease-out both, beam-swing linear both;
      animation-timeline: auto, scroll(root);
    }
    .beam-pool {
      animation: lights-on 1500ms ease-out both, beam-drift linear both;
      animation-timeline: auto, scroll(root);
    }
    .strip-scrub {
      animation: strip-push linear both;
      animation-timeline: scroll(root);
    }
    .receipt, .shares, .bars, .album, .wheel-wrap, .scene-arcade .bingo {
      animation: drift linear both;
      animation-timeline: view();
    }
    .copy h2 {
      animation: drift linear both;
      animation-timeline: view();
    }
  }
}
@keyframes beam-swing {
  from { transform: translateX(8vw) rotate(24deg); }
  to { transform: translateX(64vw) rotate(-28deg); }
}
@keyframes beam-drift {
  from { transform: translate(10vw, 10vh); }
  to { transform: translate(44vw, 35vh); }
}
@keyframes strip-push {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}
@keyframes drift {
  from { transform: translateY(7px); }
  to { transform: translateY(-7px); }
}

/* 404 page */
.lost {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 100svh;
  padding: var(--gutter);
  text-align: center;
}
.lost h1 { font-size: clamp(2.25rem, 6vw, 4rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.024em; }
.lost p { color: var(--muted); }

/* The privacy page. */
.doc { position: relative; z-index: 1; max-width: 680px; margin-inline: auto; padding: 32px var(--gutter) 72px; line-height: 1.65; }
.doc h1 { margin: 20px 0 8px; font-size: clamp(2.25rem, 6vw, 3.25rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.024em; }
.doc h2 { margin: 32px 0 8px; font-size: 1.2rem; font-weight: 600; }
.doc p, .doc ul { margin-block: 10px; }
.doc ul { padding-left: 20px; list-style: disc; }
.doc li { margin-block: 4px; }
.doc a { text-decoration: underline; }
