/* Voxel Mode — landing page.
 *
 * One committed dark theme, and that is deliberate rather than lazy: every image
 * on this page is a voxel render carrying a one-pixel dark silhouette rim from
 * core/thumb.py, which reads as a clean edge on a dark ground and as dirt on a
 * light one.  A light theme would mean regenerating all the artwork.
 *
 * The type is pixel type throughout, headings and body copy alike.  That costs
 * legibility, so it is paid for elsewhere: larger text, a shorter measure, more
 * leading, and no negative letter-spacing anywhere.  See the type section.
 */

:root {
  --ground:     #0D1014;
  --surface:    #151A21;
  --surface-2:  #1C222B;
  --surface-3:  #242C37;
  --rule:       #2A323E;
  --rule-soft:  #1F2630;

  --ink:        #E9ECF2;
  --ink-2:      #A6AFBD;
  --ink-3:      #6F7A8A;

  --accent:     #FF9E3D;   /* Blender's active-object amber */
  --accent-dim: #C97722;
  --accent-ink: #1A1206;
  --steel:      #6FB6E8;

  /* Pixel faces run wide and have no true lowercase x-height advantage, so the
   * comfortable measure is shorter than it would be for a text sans. */
  --measure: 54ch;
  --radius: 10px;
  --shadow: 0 1px 0 rgba(255,255,255,.03), 0 18px 40px -24px rgba(0,0,0,.9);

  --pixel: "Pixelify Sans", ui-monospace, "Segoe UI", system-ui, sans-serif;
  --pixel-display: "Silkscreen", "Pixelify Sans", ui-monospace, monospace;

  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--pixel);
  /* 19px, not 17: a pixel face is drawn on a coarse grid and gets muddy small. */
  font-size: 19px;
  line-height: 1.72;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* Every picture on this page is a voxel render or a frame of one.  Browsers
 * smooth an upscale by default, which is the one thing that ruins them. */
img, video { image-rendering: pixelated; }

a { color: var(--steel); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, video:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 0 0 var(--radius) 0; font-weight: 700;
}
.skip:focus { left: 0; top: 0; z-index: 100; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 48px); }
.center { text-align: center; }

/* ---------- type ----------
 *
 * No negative letter-spacing on anything.  Tightening a pixel face collides the
 * stems of adjacent glyphs, because the stems are a whole pixel wide and there is
 * no optical sidebearing to eat into.
 */

h1, h2, h3 {
  font-family: var(--pixel-display);
  margin: 0;
  text-wrap: balance;
  letter-spacing: 0;
}
/* Silkscreen has no lowercase descender depth to speak of and sets very wide, so
 * display sizes stay a notch smaller than a text face would want, with tight
 * leading to stop the lines drifting apart. */
h1 { font-size: clamp(29px, 3.9vw, 46px); font-weight: 700; line-height: 1.22; }
h2 { font-size: clamp(24px, 3vw, 37px); font-weight: 700; line-height: 1.3; }
h3 { font-family: var(--pixel); font-size: 20px; font-weight: 700; }

h1 em, h2 em { font-style: normal; color: var(--accent); }

p { margin: 0 0 16px; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

/* The name of the section, not a caption. Big enough to be read as a label in
 * its own right, since these sections are what a skim-reader navigates by. */
.eyebrow {
  font-family: var(--pixel-display);
  font-size: clamp(13px, 1.1vw, 16px); font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.section-title { margin-bottom: 16px; }
.section-lede { color: var(--ink-2); margin-bottom: 36px; max-width: 68ch; }

code {
  font-family: var(--pixel);
  font-size: .92em;
  background: var(--surface-3);
  padding: .1em .36em; border-radius: 4px;
  color: var(--ink);
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 12px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--pixel-display);
  font-weight: 700; font-size: 15px;
  color: var(--ink); text-decoration: none;
}
.topnav { display: flex; align-items: center; gap: 20px; }
.topnav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.topnav a:hover { color: var(--ink); }
.topnav .btn { color: var(--accent-ink); }
@media (max-width: 900px) {
  .topnav a:not(.btn) { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--pixel-display);
  font-weight: 400; font-size: 13px; letter-spacing: .03em;
  padding: 15px 24px; border-radius: var(--radius);
  text-decoration: none; border: 1px solid transparent;
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #FFB264; }
.btn-ghost { border-color: var(--rule); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink-3); background: var(--surface-2); }
.btn-small { padding: 9px 14px; font-size: 11px; background: var(--accent); }
.btn-block { width: 100%; margin-top: 20px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.center-row { justify-content: center; }

/* ---------- sections ---------- */

.band { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--rule-soft); }
.band-alt { background: var(--surface); }

.hero { padding: clamp(44px, 6vw, 84px) 0 clamp(40px, 6vw, 76px); }
.hero-grid {
  display: grid; gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}
.lede { color: var(--ink-2); font-size: 19px; }

.hero-facts {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  font-family: var(--pixel-display); font-size: 11px; letter-spacing: .04em;
  color: var(--ink-3); text-transform: uppercase;
}
.hero-facts b { color: var(--accent); font-weight: 400; }

/* ---------- clips ----------
 *
 * A clip is a muted, looping, poster-backed <video>.  The poster is frame 1 of the
 * same move, so nothing shifts when playback starts, and it is what a visitor who
 * asked for reduced motion sees instead of the video (app.js does not autoplay
 * then, and the poster is already the first thing painted).
 */

.clip {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
.clip video {
  width: 100%; height: auto; display: block;
  background: var(--surface-2);
}
.clip figcaption {
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline;
  padding: 12px 16px;
  border-top: 1px solid var(--rule-soft);
  background: var(--surface);
  font-size: 15px; color: var(--ink-2);
}
.clip figcaption b { color: var(--ink); font-weight: 700; }
.clip figcaption .move {
  font-family: var(--pixel-display); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3);
}

.hero-clip { margin: 0; }
/* The hero is a reel of three clips (app.js). Each fades to the card's dark
 * surface over its last second and the next fades up once it is playing, so the
 * source change happens out of sight. Under reduced motion the global rule at
 * the top of this file collapses the transition, and nothing plays anyway. */
.hero-clip video { transition: opacity .9s ease; }
.hero-clip.is-fading video { opacity: 0; }

.clip-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
/* Every tile in this row is one square, whatever its source aspect.
 *
 * The clips are not all the same shape - two 900x900 turntables and a 1280x720
 * one - so left alone the row stepped by 180 px. Cropping to a common square is
 * the fix rather than re-rendering, because the lens fits to the larger
 * dimension: a square render of the 16:9 scene keeps its horizontal angle and
 * adds empty sky, while cropping its centre tightens it. The two that are
 * already square are not touched by this at all. */
.clip-grid .clip video {
  aspect-ratio: 1;
  object-fit: cover;
}
/* The caption sits on the floor of the card, so captions of different lengths
 * cannot push the images out of line with each other. */
.clip-grid .clip { display: flex; flex-direction: column; }
.clip-grid .clip figcaption { margin-top: auto; }

/* ---------- the scene gallery ----------
 *
 * The demo renders are every aspect ratio going - 16:9, square, 4:5, 6:5 - because
 * each scene was framed for itself and not for a grid.  So the columns are fixed
 * and the rows are not: a masonry-ish flow where each figure keeps its own shape.
 */

/* One tile shape for the whole gallery.
 *
 * The demo renders arrive in six different aspect ratios - 16:9, 6:5, 1:1, 8:7,
 * 5:4 and a portrait - because each scene was framed for itself and not for a
 * grid. Left to their natural shapes the rows were ragged and nothing lined up
 * with anything. Every tile is now the same 4:3 window onto its render, filled
 * by `cover`, so the grid is regular in both directions. */
.scenes {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: stretch;
}
.scenes figure {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  display: flex; flex-direction: column;
}
.scenes img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.scenes figcaption { margin-top: auto; }
.scenes figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--rule-soft);
  background: var(--surface);
  font-size: 15px; color: var(--ink-2);
}
.scenes figcaption b { display: block; color: var(--ink); font-weight: 700; }
.scene-wide { grid-column: 1 / -1; }
/* A full-width tile gets a cinematic window instead of the 4:3 one, or a 16:9
 * render would be cropped to a third of its width. */
.scene-wide img { aspect-ratio: 16 / 9; }

/* ---------- the lightbox ----------
 *
 * The tiles crop every render to one shape, so a click opens the whole image,
 * uncropped and as large as the screen allows. */

.scenes .is-zoomable img {
  cursor: zoom-in;
  transition: filter .2s ease;
}
.scenes .is-zoomable img:hover { filter: brightness(1.08); }
.scenes .is-zoomable img:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

html.lightbox-open { overflow: hidden; }

.lightbox {
  width: 100vw; height: 100vh; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; border: 0;
  padding: 56px 16px 16px;
  background: transparent;
  color: var(--ink);
  flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.lightbox[open] { display: flex; animation: lightbox-in .18s ease-out; }
.lightbox::backdrop { background: rgba(8, 10, 13, .94); }
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }

.lightbox img {
  max-width: 100%;
  max-height: calc(100dvh - 120px);
  width: auto; height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  cursor: zoom-out;
}
.lightbox-cap {
  margin: 0;
  font-size: 15px; color: var(--ink-2); text-align: center;
}
.lightbox-close {
  position: absolute; top: 8px; right: 16px;
  width: 44px; height: 44px;
  font: 700 26px/1 var(--pixel);
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  cursor: pointer;
}
.lightbox-close:hover { background: var(--surface-3); }
.lightbox-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- feature cards ---------- */

.cards {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.card {
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { margin-bottom: 10px; color: var(--ink); }
.card p { color: var(--ink-2); font-size: 17px; max-width: none; }
.card-accent {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--rule));
  background: color-mix(in srgb, var(--accent) 6%, var(--surface-2));
}
.ticks { list-style: none; margin: 16px 0 0; padding: 0; font-size: 16px; }
.ticks li {
  position: relative; padding-left: 22px; color: var(--ink-2);
  margin-bottom: 6px;
}
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 9px; height: 9px; background: var(--accent);
  /* A square, because this is a page about cubes. */
}

/* ---------- generators ----------
 *
 * An accordion rather than a grid of cells. Eleven one-line descriptions read as
 * a wall of text, and there was nowhere to put the picture that answers "what
 * does this actually do" - which is the only question the section is for.
 */

.gens {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}
/* Thirty-two rows is a catalogue, not a list, so they are grouped. The heading
 * is a row of the same table rather than a floating title: it has to read as
 * belonging to the rows under it. */
.gen-group {
  margin: 0;
  padding: 14px 20px 12px;
  background: var(--surface-3);
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--pixel-display); font-size: 11px; font-weight: 400;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3);
}
.gen-group:first-child { border-top: 0; }

.gen { border-bottom: 1px solid var(--rule-soft); }
.gen:last-child { border-bottom: 0; }

.gen > summary {
  cursor: pointer; list-style: none;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  padding: 16px 44px 16px 20px;
  position: relative;
  transition: background-color .12s ease;
}
.gen > summary::-webkit-details-marker { display: none; }
.gen > summary:hover { background: var(--surface-3); }
.gen > summary b {
  font-family: var(--pixel-display); font-size: 12px; font-weight: 400;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent);
  min-width: 15ch;
}
.gen > summary span { color: var(--ink-2); font-size: 16px; }
.gen > summary::after {
  content: "+"; position: absolute; right: 18px; top: 16px;
  font-family: var(--pixel-display); color: var(--ink-3);
}
.gen[open] > summary { background: var(--surface-3); }
.gen[open] > summary::after { content: "–"; color: var(--accent); }

/* The media gets the whole width of the row.
 *
 * It started as a 240px thumbnail in a three-column row, which was far too
 * small to show what a generator does - the only question this section answers.
 * The description is not repeated down here either: it is already on the
 * summary line directly above, and printing it twice was just noise.
 */
.gen-body {
  padding: 4px 20px 24px;
}

.gen-media {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  background: var(--ground);
}
.gen-media video {
  width: 100%; height: auto; aspect-ratio: 16 / 9;
  display: block;
  background: var(--ground);
}
.gen-media img { display: none; }
.gen-media.empty video { display: none; }
.gen-media.empty img {
  display: block;
  width: 100%; aspect-ratio: 4 / 3; object-fit: contain;
}

.gen-text p { color: var(--ink-2); font-size: 16px; max-width: none; }
.gen-controls { color: var(--ink-3) !important; font-size: 15px !important; }
.gen-controls b { color: var(--ink-2); }

/* ---------- pipeline ---------- */

.pipeline {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: step;
}
.pipeline li {
  background: var(--surface-2); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 22px;
}
.step-n {
  display: block; font-family: var(--pixel-display); font-size: 11px;
  letter-spacing: .1em; color: var(--accent-dim); margin-bottom: 10px;
}
.pipeline b { display: block; margin-bottom: 8px; }
.pipeline span { color: var(--ink-2); font-size: 16px; }
.pipeline-note { color: var(--ink-3); margin-top: 24px; font-size: 16px; }

/* ---------- shape gallery ---------- */

.gallery {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.gallery figure {
  margin: 0; background: var(--surface-2);
  border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden;
}
.gallery img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.gallery figcaption {
  padding: 8px 10px 10px;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--pixel-display); font-size: 9px; letter-spacing: .04em;
  color: var(--ink-3); line-height: 1.7;
}
.gallery figcaption b {
  display: block; font-size: 10px; color: var(--ink); font-weight: 400;
  text-transform: uppercase;
}

/* ---------- numbers ---------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); }
.numbers { width: 100%; border-collapse: collapse; min-width: 560px; }
.numbers th, .numbers td {
  text-align: left; padding: 13px 18px;
  border-bottom: 1px solid var(--rule-soft);
}
.numbers thead th {
  font-family: var(--pixel-display); font-size: 10px; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); background: var(--surface-2);
}
.numbers tbody tr:last-child th, .numbers tbody tr:last-child td { border-bottom: 0; }
.numbers tbody th { font-weight: 400; color: var(--ink); }
.num {
  font-family: var(--pixel-display); font-size: 13px;
  color: var(--accent); white-space: nowrap;
}
.numbers td:last-child { color: var(--ink-3); font-size: 16px; }

/* ---------- pricing ---------- */

.tiers {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 780px;
}
.tier {
  background: var(--surface-2); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 28px 26px;
}
.tier-studio { border-color: color-mix(in srgb, var(--accent) 40%, var(--rule)); }
.price {
  font-family: var(--pixel-display); font-size: 30px; color: var(--ink);
  display: block; margin: 6px 0 4px;
}
.price span { font-size: 11px; color: var(--ink-3); letter-spacing: .06em; }
.tier h3 { font-family: var(--pixel-display); font-size: 13px; letter-spacing: .08em;
           text-transform: uppercase; color: var(--accent); font-weight: 400; }
.tier > p { color: var(--ink-2); font-size: 16px; max-width: none; }

/* ---------- faq ---------- */

.faq { max-width: 820px; }
.faq details {
  border-bottom: 1px solid var(--rule-soft);
  padding: 6px 0;
}
.faq summary {
  cursor: pointer; padding: 14px 34px 14px 0; position: relative;
  font-weight: 700; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 14px;
  font-family: var(--pixel-display); color: var(--accent);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); font-size: 17px; padding-bottom: 14px; }

/* ---------- closing / footer ---------- */

.closing {
  padding: clamp(60px, 9vw, 112px) 0;
  border-top: 1px solid var(--rule-soft);
  background: color-mix(in srgb, var(--accent) 5%, var(--ground));
  text-align: center;
}
.closing p { margin-inline: auto; }

.footer {
  border-top: 1px solid var(--rule-soft);
  padding: 30px 0 44px;
  color: var(--ink-3); font-size: 15px;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 12px 26px;
  align-items: center; justify-content: space-between;
}
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- screenshot slots that are still empty ---------- */

.shot { margin: 0; }
.shot img { border-radius: var(--radius); border: 1px solid var(--rule); }
.shot.empty img { display: none; }
.shot.empty::after {
  content: attr(data-slot);
  display: grid; place-items: center; text-align: center;
  aspect-ratio: 16 / 9; padding: 20px;
  border: 1px dashed var(--rule); border-radius: var(--radius);
  background: repeating-linear-gradient(
    -45deg, var(--surface) 0 10px, var(--surface-2) 10px 20px);
  font-family: var(--pixel-display); font-size: 10px; letter-spacing: .06em;
  color: var(--ink-3);
}

/* ---------- the free-build note under the hero CTAs ---------- */

.cta-note {
  margin-top: 16px;
  font-size: 16px;
  color: var(--ink-3);
  max-width: var(--measure);
}

/* ---------- a clip given the whole width ----------
 * For a scene that carries a section on its own. */

.clip-feature { width: 100%; }
.clip-feature video { width: 100%; }

/* ---------- the shape viewer ---------- */

.viewer {
  display: grid; gap: clamp(24px, 3vw, 44px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  margin: 38px 0 34px;
  padding-top: 34px;
  border-top: 1px solid var(--rule-soft);
}
@media (max-width: 900px) {
  .viewer { grid-template-columns: minmax(0, 1fr); }
}
.viewer-art { margin: 0; position: relative; }
.viewer-art img {
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: var(--surface-2);
}
#shape-canvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: auto; aspect-ratio: 1;
  opacity: 0; transition: opacity .3s ease;
  cursor: grab;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: var(--surface-2);
  touch-action: none;
}
#shape-canvas.ready { opacity: 1; }
#shape-canvas:active { cursor: grabbing; }
.viewer-art.live img { visibility: hidden; }

.viewer-side h3 { margin-bottom: 12px; }
.viewer-side p { color: var(--ink-2); font-size: 17px; }

/* Sixty names is a long list, so it scrolls in place rather than pushing the
 * rest of the section down the page. */
.shape-picker {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin-top: 18px;
  max-height: 310px; overflow-y: auto;
  padding: 4px 4px 4px 0;
  scrollbar-width: thin;
}
.shape-picker button {
  font-family: var(--pixel-display); font-size: 9px; letter-spacing: .03em;
  background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--rule); border-radius: 6px;
  padding: 7px 9px; cursor: pointer;
  transition: color .1s ease, border-color .1s ease;
}
.shape-picker button:hover { color: var(--ink); border-color: var(--ink-3); }
.shape-picker button[aria-pressed="true"] {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
}

/* ---------- three pricing tiers ---------- */

.tiers-three { max-width: none; }
.tiers-four { max-width: none; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tier-free { border-style: dashed; }

/* A call to action whose destination does not exist yet. Better to show it as
 * waiting than to hand someone a button that goes nowhere. */
.is-pending {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}
.is-pending::after { content: " — soon"; }

/* ---------- characters: rig walkthrough and sprite sheets ---------- */

.card-more { margin: 14px 0 0; font-size: 16px; }

/* The walkthrough keeps native controls: it is 33 seconds of steps, and
 * people want to scrub back to the part they missed. app.js leaves its
 * click-to-pause off for that reason. */
.clip-walkthrough video { image-rendering: auto; }   /* a UI recording, downscaled */

.char-steps { margin-top: 20px; }

.anim-show {
  display: grid; gap: clamp(24px, 3vw, 44px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  margin-top: clamp(40px, 5vw, 64px);
}
@media (max-width: 900px) {
  .anim-show { grid-template-columns: minmax(0, 1fr); }
  /* Stacked, the animals' video comes first like the characters' above. */
  .anim-show-flip .clip { order: -1; }
}
.anim-side h3 { margin: 0 0 12px; }
.anim-side p { color: var(--ink-2); font-size: 17px; }

.steps-show { margin-top: clamp(40px, 5vw, 64px); }
.steps-head h3 { margin: 0 0 12px; }
.steps-head p { color: var(--ink-2); font-size: 17px; max-width: 68ch; margin-bottom: 24px; }
.clip-pair { display: grid; gap: clamp(16px, 2vw, 28px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 700px) { .clip-pair { grid-template-columns: minmax(0, 1fr); } }

.sprites {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--rule-soft);
  scroll-margin-top: 80px;
}
.sprites-head h3 { margin: 0 0 12px; }
.sprites-head p { color: var(--ink-2); font-size: 17px; max-width: 68ch; }

.sprite-player {
  display: grid; gap: 20px;
  grid-template-columns: min(512px, 100%) minmax(0, 1fr);
  align-items: start;
  margin-top: 26px;
}
@media (max-width: 760px) {
  .sprite-player { grid-template-columns: minmax(0, 1fr); }
}

.sprite-stage {
  position: relative; margin: 0;
  border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden;
  /* A checker so the transparency of the exported frames is visible. */
  background:
    repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface-3) 0 50%)
    0 0 / 24px 24px;
}
.sprite-canvas {
  display: block; width: 100%; height: auto; aspect-ratio: 1;
  image-rendering: pixelated;
}
/* Without JavaScript the sheet itself is shown in the stage instead. */
.sprite-still { display: none; }
.no-sprite-js .sprite-canvas { display: none; }
.no-sprite-js .sprite-still { display: block; width: 100%; }
.sprite-readout {
  margin: 0; padding: 9px 14px;
  border-top: 1px solid var(--rule-soft);
  background: var(--surface);
  font-family: var(--pixel-display); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3);
  max-width: none;
}

.sprite-label {
  font-family: var(--pixel-display); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3);
  margin: 0 0 10px;
}
.sprite-label + * { margin-bottom: 24px; }
.sprite-chars, .sprite-clips, .sprite-angles { display: flex; flex-wrap: wrap; gap: 8px; }
.sprite-compass {
  display: grid; gap: 6px;
  grid-template-columns: repeat(3, 58px);
  grid-template-rows: repeat(3, 44px);
}
.sprite-compass-mid {
  border-radius: 6px;
  background: radial-gradient(circle, var(--accent-dim) 0 5px, transparent 6px);
}
.sprite-chars button, .sprite-clips button, .sprite-angles button, .sprite-compass button {
  font-family: var(--pixel-display); font-size: 11px; letter-spacing: .04em;
  background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--rule); border-radius: 6px;
  padding: 9px 14px; cursor: pointer;
  transition: color .1s ease, border-color .1s ease;
}
.sprite-compass button { padding: 0; }
.sprite-chars button:hover, .sprite-clips button:hover, .sprite-angles button:hover, .sprite-compass button:hover { color: var(--ink); border-color: var(--ink-3); }
.sprite-chars button[aria-pressed="true"], .sprite-clips button[aria-pressed="true"], .sprite-angles button[aria-pressed="true"], .sprite-compass button[aria-pressed="true"] {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
}

.sprite-sheet { margin: 26px 0 0; }
.sprite-sheet img {
  width: 100%;
  border: 1px solid var(--rule); border-radius: var(--radius);
  background:
    repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface-3) 0 50%)
    0 0 / 24px 24px;
}
.sprite-sheet figcaption {
  margin-top: 10px; font-size: 15px; color: var(--ink-3);
}
.sprite-sheet figcaption span { color: var(--ink-2); }
.sprite-hint { margin: -12px 0 0; font-size: 15px; color: var(--ink-3); }
