/*
 * The Board's site. The look is the film's: warm stone, white cards, slate ink, one blue,
 * and a low sun over a layered horizon. Values are the product's own tokens.
 */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("assets/figtree-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --canvas: #ede7e0;
  --surface: #ffffff;
  --surface-muted: #f4f1ed;
  --text: #14202b;
  --text-muted: #4b5866;
  --accent: #0a4b8e;
  --mark: #0669b8;
  --border: #dcd5ce;
  --control-border: #76828e;
  --radius-card: 1.375rem;
  --radius-control: 0.625rem;
  --shadow-card: 0 0.3125rem 0.75rem -0.3125rem rgb(48 38 28 / 12%), 0 0.0625rem 0.125rem rgb(48 38 28 / 6%);
  /* The film's three curves: arriving, crossing the frame, leaving. Nothing bounces. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
  --page-w: calc(100vw - 2rem);
  --page-left: calc((100vw - var(--page-w)) / 2);
  /* Where each section dot sits, measured from the window's left edge to the dot's centre. The dots
     have a lane of their own, one full press target wide, so nothing on the page lies under them. */
  --dot-x: 1.375rem;
  /* How far the page's own column is pushed right to leave the dots their lane. Nothing, once the
     page's margin is wider than the lane. */
  --lane-pad: max(0rem, var(--dot-x) * 2 - var(--page-left));
  /* The film's frame is as wide as the page allows; everything inside it is a share of this width. */
  --film: min(64rem, var(--page-w) - var(--lane-pad));
  --font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-code: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
}
@media (min-width: 44rem) { :root { --page-w: min(72rem, 100vw - 3rem); } }
@media (min-width: 80rem) { :root { --dot-x: 2.375rem; } }

*, *::before, *::after { box-sizing: border-box; }
/* "hidden" always wins: the Play button is hidden until the script has run, and while the film plays. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
/* A link to a section glides there, but only once the page has opened where it was asked to. */
@media (prefers-reduced-motion: no-preference) { html.settled { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 400 1.125rem/1.6 var(--font);
  overflow-x: hidden;
}

:focus-visible { outline: 0.125rem solid var(--accent); outline-offset: 0.125rem; border-radius: 0.25rem; }

.skip {
  position: absolute; inset-block-start: 0.75rem; inset-inline-start: 0.75rem; z-index: 40;
  padding: 0.625rem 1rem; border-radius: var(--radius-control);
  background: var(--surface); color: var(--accent); font-weight: 600;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ------------------------------------------------------------------ the dot -- */

/*
 * One element, drawn above the page but below the two horizons (which sit at z-index 31),
 * so at rest it is a sun half behind the first band, and it rises out from behind it to fly.
 */
.dot {
  position: fixed; inset-block-start: 0; inset-inline-start: 0; z-index: 30;
  inline-size: 0; block-size: 0;
  border-radius: 50%;
  background: var(--mark);
  pointer-events: none;
}
/* Without script the dot cannot fly, so each sun is simply drawn in place. */
.no-js .dot { display: none; }
.no-js .card-sun, .no-js .scene-sun, .no-js .end-sun { background: var(--mark); }

/* --------------------------------------------------------------------- hero -- */

.hero {
  inline-size: var(--page-w);
  margin-inline: auto;
  min-block-size: 92svh;
  padding-block: 3rem;
  padding-inline-start: var(--lane-pad);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.5rem;
}

/*
 * The film's frame. It must not become a stacking context (no transform, filter, opacity,
 * containment or z-index here or above it): the dot is layered between this frame's ground
 * and its horizon.
 */
.film {
  position: relative;
  margin: 0;
  inline-size: var(--film);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 0.0625rem solid color-mix(in srgb, var(--border) 60%, transparent);
}

/* The film's last frame, drawn live at the film's own proportions (a 1920 by 1080 frame). */
.card {
  position: absolute; inset: 0;
  /* The film's morning light: a wash around the sun over a lightening from the top. */
  background:
    radial-gradient(circle calc(var(--film) * 0.3958) at 50% calc(var(--film) * 0.401), rgb(255 255 255 / 85%), rgb(255 255 255 / 0%)),
    linear-gradient(180deg, rgb(255 255 255 / 62%) 0%, rgb(255 255 255 / 20%) 46%, rgb(255 255 255 / 0%) 100%),
    var(--canvas);
}
.card-name {
  position: absolute; inset: calc(var(--film) * 0.0875) 0 auto 0;
  margin: 0; text-align: center;
  font-size: calc(var(--film) * 0.09896); line-height: 1; font-weight: 720; letter-spacing: -0.045em;
  white-space: nowrap;
}
.card-line {
  position: absolute; inset: calc(var(--film) * 0.2021) 0 auto 0;
  margin: 0; text-align: center;
  /* The film's own size for this line, but never under 14px: on a phone the frame is small. */
  font-size: max(calc(var(--film) * 0.0375), 0.875rem); line-height: 1.1667; font-weight: 600; letter-spacing: -0.022em;
  color: var(--text-muted); white-space: nowrap;
}
.card-line em { font-style: normal; color: var(--accent); }
.card-sun {
  position: absolute;
  inset-block-start: calc(var(--film) * 0.29896); inset-inline-start: 50%;
  inline-size: calc(var(--film) * 0.20417); aspect-ratio: 1;
  border-radius: 50%;
  transform: translateX(-50%);
}
.card-horizon {
  position: absolute; z-index: 31; inset: auto 0 0 0;
  display: block; inline-size: 100%; block-size: calc(var(--film) * 0.1875);
}

/* The film itself covers the drawn frame, and the dot, only while it has been started. */
.film video {
  position: absolute; z-index: 32; inset: 0;
  display: block; inline-size: 100%; block-size: 100%; object-fit: cover;
  background: var(--canvas);
}
.js .film video:not([data-on]) { display: none; }

.film-play {
  position: absolute; z-index: 33; inset-inline-start: 1.25rem; inset-block-end: 1.25rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-block-size: 3rem;
  padding: 0.5rem 1rem;
  border: 0.0625rem solid var(--control-border);
  border-radius: 62.5rem;
  background: var(--surface);
  color: var(--accent);
  font: 600 1.0625rem/1.4 var(--font);
  cursor: pointer;
}
.film-play svg { flex: none; }
.film-play-detail { color: var(--text-muted); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .film-play:hover { background: #dceaf6; } }
@media (max-width: 43.99rem) {
  .film-play { inset-inline-start: 0.75rem; inset-block-end: 0.75rem; min-block-size: 2.75rem; }
  /* In a phone's small frame the button says only "Play", so it stands clear of the sun.
     The rest is still read out. */
  .film-play-more, .film-play-detail {
    position: absolute; inline-size: 0.0625rem; block-size: 0.0625rem;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
}

.words { inline-size: var(--film); color: var(--text-muted); font-size: 1rem; }
.words summary {
  display: inline-flex; align-items: center; min-block-size: 2.75rem;
  cursor: pointer; font-weight: 600; color: var(--text-muted);
  text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 0.1875rem;
  list-style: none;
}
.words summary::-webkit-details-marker { display: none; }
.words p { margin: 0.25rem 0 0; max-inline-size: 44rem; }

/* ---------------------------------- the page-size top (hero-idea.html only) -- */

/*
 * The film's last frame at the size of the page instead of inside a frame: the name is the page's
 * title, the horizon runs from edge to edge, and the dot is its sun. Like the foot, it must not
 * become a stacking context: the dot is layered between its ground and its horizon.
 */
.scene {
  --sun: clamp(8rem, 20.4vw, 24.5rem);
  --sun-lift: clamp(2rem, 5.4vw, 6.5rem);
  position: relative; overflow: hidden;
  min-block-size: 100svh;
  /* Room below the words for the sun to stand clear of them. */
  padding: 3rem 1rem calc(var(--sun) + var(--sun-lift) + 2rem);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle max(20rem, 40vw) at 50% calc(100% - var(--sun-lift) - var(--sun) / 2), rgb(255 255 255 / 85%), rgb(255 255 255 / 0%)),
    linear-gradient(rgb(255 255 255 / 62%) 0%, rgb(255 255 255 / 20%) 46%, rgb(255 255 255 / 0%) 100%),
    var(--canvas);
}
.scene-words { display: grid; justify-items: center; gap: 1.5rem; }
/* The name and its line stand together; the button and the link to the words stand together. */
.scene-title { display: grid; justify-items: center; gap: 0.5rem; }
.scene-actions { display: grid; justify-items: center; gap: 0.25rem; }
@media (min-width: 44rem) { .scene-words { gap: 2rem; } .scene-title { gap: 1rem; } }
@media (min-width: 80rem) { .scene-words { gap: 3rem; } .scene-title { gap: 1.5rem; } }
.scene-name {
  margin: 0;
  font-size: clamp(3.25rem, 13vw, 9.5rem); line-height: 1; font-weight: 720; letter-spacing: -0.045em;
  white-space: nowrap;
}
.scene-line {
  margin: 0;
  font-size: clamp(1.25rem, 4.9vw, 3.5rem); line-height: 1.1667; font-weight: 600; letter-spacing: -0.022em;
  color: var(--text-muted);
}
.scene-line em { font-style: normal; color: var(--accent); }
/* Here the button stands in the page, under the line, and always says what it plays. */
.scene .film-play { position: static; }
.scene .film-play-more, .scene .film-play-detail {
  position: static; inline-size: auto; block-size: auto; overflow: visible; clip-path: none;
}
@media (max-width: 25.99rem) {
  .scene .film-play-detail {
    position: absolute; inline-size: 0.0625rem; block-size: 0.0625rem;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
}
.scene .words { inline-size: auto; max-inline-size: min(44rem, 100%); }
.scene-sun {
  position: absolute;
  inset-inline-start: 50%; inset-block-end: var(--sun-lift);
  inline-size: var(--sun); aspect-ratio: 1;
  border-radius: 50%;
  transform: translateX(-50%);
}
.scene-horizon {
  position: absolute; z-index: 31; inset: auto 0 0 0;
  display: block; inline-size: 100%; block-size: clamp(6rem, 18.75vw, 22.5rem);
}

/* The film opens over the middle of this scene, and gives way to it again when it ends or is closed. */
.screen {
  display: none;
  position: absolute; z-index: 32; inset-block-start: 50%; inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  inline-size: min(64rem, 100vw - 2rem, (100svh - 8rem) * 16 / 9);
  margin: 0;
  justify-items: center; gap: 0.75rem;
}
body[data-film] .screen { display: grid; }
body[data-film] .scene-words { visibility: hidden; }
.screen video {
  display: block; inline-size: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  border: 0.0625rem solid color-mix(in srgb, var(--border) 60%, transparent);
  box-shadow: var(--shadow-card);
  background: var(--canvas);
}
.film-close {
  min-block-size: 2.75rem; padding: 0.5rem 1rem;
  border: 0.0625rem solid var(--control-border); border-radius: 62.5rem;
  background: var(--surface); color: var(--accent);
  font: 600 1.0625rem/1.4 var(--font);
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) { .film-close:hover { background: #dceaf6; } }
/* Without script the film simply stands under the words, with its own controls. */
.no-js .screen { display: grid; position: static; transform: none; margin-block-start: 2rem; }
.no-js .film-close { display: none; }

/* -------------------------------------------------------------- section dots -- */

/*
 * A column of dots down the left of the window, one per section: small and dark, with the blue dot
 * on the current one. A section's name is its title on the page, not a tag here, so nothing lies
 * over the text unasked. Each dot is a link; its name shows when it is pointed at or reached by keyboard.
 */
.rail {
  position: fixed; z-index: 20;
  inset-block-start: 50%; inset-inline-start: 0;
  transform: translateY(-50%);
  transition: opacity 0.3s var(--ease-out);
}
/* At the top of the page the dot is still the film's sun, and the column waits out of sight
   (a keyboard still reaches it, and it shows itself then). */
.js body[data-dot="home"] .rail:not(:focus-within) { opacity: 0; pointer-events: none; }
.rail ol { position: relative; margin: 0; padding: 0; list-style: none; }
/* A hairline joins the dots into one track, so beside a paragraph they do not read as its bullets. */
.rail ol::before {
  content: ""; position: absolute;
  inset-block: 1.375rem; inset-inline-start: calc(var(--dot-x) - 0.03125rem);
  inline-size: 0.0625rem;
  background: color-mix(in srgb, var(--text) 24%, transparent);
}
.rail a {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  /* The dot sits in the middle of its link, so the link is twice as wide as the dot is far from the edge. */
  inline-size: calc(var(--dot-x) * 2);
  block-size: 2.75rem;
  color: var(--text);
  text-decoration: none;
}
.rail-slot { flex: none; display: grid; place-items: center; inline-size: 0.75rem; block-size: 0.75rem; border-radius: 50%; }
.rail-slot::before { content: ""; inline-size: 0.375rem; block-size: 0.375rem; border-radius: 50%; background: var(--text); }

/* A dot's name: always there for a screen reader, and seen while the dot is reached by keyboard
   (so a keyboard user knows where it leads). It never takes a press meant for the page. */
.rail-label {
  position: absolute; inset-inline-start: calc(50% + 0.875rem); inset-block-start: 50%;
  transform: translateY(-50%);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-control);
  border: 0.0625rem solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem; line-height: 1.5; font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s var(--ease-out);
}
.rail a:focus-visible .rail-label { opacity: 1; }
/* A pointer makes the dot answer by growing. Its name comes up only where the page's margin is wide
   enough to hold it, so pointing at a dot never puts a tag over the text. */
.rail-slot::before { transition: transform 0.15s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .rail a:hover .rail-slot::before { transform: scale(1.67); }
}
@media (hover: hover) and (pointer: fine) and (min-width: 96rem) {
  .rail a:hover .rail-label { opacity: 1; transition-delay: 0.3s; }
}
/* Nothing fades while the page is still opening, or for anyone who asks for no motion. */
html.js:not(.settled) .rail, html.js:not(.settled) .rail-label { transition: none; }
@media (prefers-reduced-motion: reduce) { .rail, .rail-label, .rail-slot::before { transition: none; } }

/* Without script every name is shown, since nothing marks the current one. */
.no-js .rail { position: static; transform: none; }
.no-js .rail ol::before { display: none; }
.no-js .rail a { inline-size: auto; justify-content: flex-start; gap: 0.5rem; padding-inline: 0.75rem; }
.no-js .rail-label { position: static; transform: none; opacity: 1; padding: 0; border: 0; background: none; }

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

.part {
  inline-size: var(--page-w);
  margin-inline: auto;
  padding-block: 4rem;
  padding-inline-start: var(--lane-pad);
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 1.5rem;
}
@media (min-width: 64rem) { .part { padding-block: 6rem; } }
/* A hair of space between sections. A pressed dot brings a section to the top of the window, and without
   this a sliver of the section before it (a fraction of a pixel) can still be in view. The browser then
   takes that section as the thing to hold steady, and when the exchange in "Feedback" opens inside it,
   everything below slides down by the height of what opened. */
.part + .part { margin-block-start: 0.125rem; }

/* A section opens with its name, the same name its dot answers to, then its line. */
.part-head { display: grid; gap: 0.75rem; }
.part-title { margin: 0; font-size: 1.25rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
@media (min-width: 64rem) { .part-title { font-size: 1.5rem; } }

/* A section's line is set like a line of the film: large, tight, one or two words in the blue. */
.say {
  margin: 0;
  max-inline-size: 22ch;
  font-size: clamp(2rem, 4.6vw, 3.75rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.say em { font-style: normal; color: var(--accent); }
.say .phrase { white-space: nowrap; }

/* As the dot reaches a section, its name comes out from the dots' side, then its line arrives as the
   film's words do: each rises a little and sharpens. Only where the script has run (it marks each
   section "waits") and motion is allowed; otherwise everything simply stands there. */
@media (prefers-reduced-motion: no-preference) {
  /* The timing sits on the arrived state only: waiting is taken up at once, arriving is what moves. */
  .part.waits .part-title { opacity: 0; transform: translateX(-0.75rem); clip-path: inset(-0.25em 100% -0.25em 0); }
  .part.waits.said .part-title {
    opacity: 1; transform: none; clip-path: inset(-0.25em -0.25em -0.25em 0);
    transition: opacity 0.4s var(--ease-out) 0.2s, transform 0.5s var(--ease-out) 0.2s, clip-path 0.5s var(--ease-out) 0.2s;
  }
  .part.waits .say .w { display: inline-block; opacity: 0; transform: translateY(0.22em); filter: blur(0.375rem); }
  .part.waits.said .say .w {
    opacity: 1; transform: none; filter: none;
    transition: opacity 0.34s var(--ease-out), transform 0.34s var(--ease-out), filter 0.34s var(--ease-out);
    transition-delay: calc(0.4s + var(--i) * 70ms);
  }
}

.lead { margin: 0; max-inline-size: 38rem; font-size: 1.25rem; line-height: 1.6; color: var(--text-muted); }
.note { margin: 0; max-inline-size: 38rem; font-size: 1.0625rem; color: var(--text-muted); }
.note code, .lead code { white-space: nowrap; font: 500 0.9375rem/1.4 var(--font-code); padding: 0.0625rem 0.3125rem; border-radius: 0.375rem; background: var(--surface-muted); color: var(--text); }

.shot { margin: 0.5rem 0 0; inline-size: 100%; }
.shot img {
  display: block; inline-size: 100%; block-size: auto;
  border-radius: var(--radius-card);
  border: 0.0625rem solid color-mix(in srgb, var(--border) 60%, transparent);
  box-shadow: var(--shadow-card);
}
.shot figcaption { margin-block-start: 0.75rem; font-size: 1rem; color: var(--text-muted); }

.commands { display: grid; gap: 1rem; inline-size: 100%; }
.command {
  min-inline-size: 0;
  padding: 1rem 1.375rem;
  border-radius: var(--radius-card);
  border: 0.0625rem solid color-mix(in srgb, var(--border) 60%, transparent);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.command h3 { margin: 0 0 0.25rem; font-size: 1.125rem; line-height: 1.5; font-weight: 600; }
.command pre { margin: 0; overflow-x: auto; }
.command code { font: 400 0.9375rem/1.6 var(--font-code); color: var(--text); white-space: pre; }

.kinds { margin: 0; inline-size: 100%; display: grid; gap: 0; }
.kinds > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.25rem; padding-block: 0.75rem; border-block-start: 0.0625rem solid var(--border); }
.kinds > div:last-child { border-block-end: 0.0625rem solid var(--border); }
.kinds dt { font-weight: 600; }
.kinds dd { margin: 0; color: var(--text-muted); }
@media (min-width: 40rem) { .kinds > div { grid-template-columns: 16rem minmax(0, 1fr); gap: 1.5rem; } }

/* -------------------------------------------------------------- the problem -- */

/* Two pictures, each under the words it shows: side by side, or one under the other on a narrow window. */
.pair { display: grid; gap: 2rem; inline-size: 100%; }
@media (min-width: 56rem) { .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lost { margin: 0; display: grid; gap: 0.75rem; align-content: start; min-inline-size: 0; }
.lost figcaption { font-size: 1.25rem; line-height: 1.35; font-weight: 600; color: var(--text); }

/* One long stream of three agents' logs behind a short window, fading out at both ends.
   It moves only as the page scrolls (main.js), never on its own. */
.stream {
  position: relative;
  block-size: 21rem; overflow: hidden;
  padding-inline: 1rem;
  border-radius: var(--radius-card);
  border: 0.0625rem solid var(--border);
  background: var(--surface);
}
.stream::before, .stream::after {
  content: ""; position: absolute; z-index: 1; inset-inline: 0; block-size: 3rem; pointer-events: none;
}
.stream::before { inset-block-start: 0; background: linear-gradient(var(--surface), rgb(255 255 255 / 0%)); }
.stream::after { inset-block-end: 0; background: linear-gradient(rgb(255 255 255 / 0%), var(--surface)); }
.stream-run { margin: 0; padding: 0.5rem 0; list-style: none; will-change: transform; }
.stream-row {
  display: grid; grid-template-columns: 0.5rem 6.5rem minmax(0, 1fr); align-items: center; gap: 0.5rem;
  block-size: 1.75rem;
  font: 400 0.8125rem/1.2 var(--font-code); color: var(--text-muted);
  white-space: nowrap;
}
.stream-dot { inline-size: 0.5rem; block-size: 0.5rem; border-radius: 50%; background: var(--who); }
.stream-who { font-family: var(--font); overflow: hidden; text-overflow: ellipsis; }
.stream-text { overflow: hidden; text-overflow: ellipsis; }
/* The line that matters, marked as the film marks it: here in the stream, and again on its card. */
.stream-row.key .stream-text, .mini-key {
  justify-self: start; max-inline-size: 100%;
  padding: 0.1875rem 0.5rem;
  border: 0.0625rem solid #a9763a; border-radius: 0.375rem;
  background: #f7efe4; color: #8c5d28; font-weight: 700;
}

/* Markdown files that point at one another. */
.web-box {
  display: grid; place-items: center;
  padding: 1rem;
  border-radius: var(--radius-card);
  border: 0.0625rem solid var(--border);
  background: var(--surface);
}
.web { display: block; inline-size: 100%; max-inline-size: 30rem; block-size: auto; }
/* Side by side, the two pictures stand as tall as each other. */
@media (min-width: 56rem) {
  .web-box { block-size: 21rem; }
  .web { block-size: 100%; max-inline-size: none; }
}
.web-links line { stroke: var(--control-border); stroke-width: 1.25; opacity: 0.55; }
.web-file rect { fill: var(--surface-muted); stroke: var(--border); stroke-width: 1; }
.web-file text { font: 500 12px var(--font-code); fill: var(--text); text-anchor: middle; }

/* -------------------------------------------------------------- how it works -- */

/* The three lines that mattered, each now a card. They arrive one after another as the row is reached
   (only where the script has run and motion is allowed, like the titles). */
.landing { margin: 0; inline-size: 100%; display: grid; gap: 0.75rem; }
.landing figcaption { font-size: 1rem; color: var(--text-muted); }
.landed { margin: 0; padding: 0; list-style: none; display: grid; gap: 1rem; }
@media (min-width: 56rem) { .landed { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mini-card {
  display: grid; gap: 0.5rem; align-content: start; min-inline-size: 0;
  padding: 1rem;
  border-radius: var(--radius-card);
  border: 0.0625rem solid var(--border);
  background: var(--surface);
}
.mini-from { margin: 0; font: 400 0.8125rem/1.2 var(--font-code); }
.mini-key { display: inline-block; }
.mini-card h3 { margin: 0; font-size: 1.125rem; line-height: 1.35; font-weight: 600; }
.mini-art { display: block; inline-size: 100%; max-inline-size: 15rem; block-size: auto; color: var(--mark); }
.mini-where { margin: 0; font-size: 0.9375rem; color: var(--text-muted); }
@media (prefers-reduced-motion: no-preference) {
  .arrives.waits .mini-card { opacity: 0; transform: translate(-1.25rem, 0.75rem) rotate(-1.5deg); }
  .arrives.waits.said .mini-card {
    opacity: 1; transform: none;
    transition: opacity 0.4s var(--ease-out), transform 0.6s var(--ease-out);
    transition-delay: calc(var(--n) * 160ms);
  }
}

/* ------------------------------------------------------------ self-organized -- */

/* A row of example cards, wider than the column. Anyone can swipe or scroll it; where motion is
   allowed it also runs along as the page scrolls (main.js) until the visitor moves it. */
.samples { margin: 0; inline-size: 100%; display: grid; gap: 0.75rem; min-inline-size: 0; }
.samples figcaption { font-size: 1rem; color: var(--text-muted); }
.samples-run {
  display: flex; gap: 0.75rem;
  margin: 0; padding: 0.25rem; list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: var(--radius-card);
}
.samples-run::-webkit-scrollbar { display: none; }
/* The row fades out where more cards wait: at the right from the start, at the left once it has moved. */
.samples-run {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2rem), rgb(0 0 0 / 0%));
  mask-image: linear-gradient(90deg, #000 calc(100% - 2rem), rgb(0 0 0 / 0%));
}
.samples-run[data-moved] {
  -webkit-mask-image: linear-gradient(90deg, rgb(0 0 0 / 0%), #000 2rem, #000 calc(100% - 2rem), rgb(0 0 0 / 0%));
  mask-image: linear-gradient(90deg, rgb(0 0 0 / 0%), #000 2rem, #000 calc(100% - 2rem), rgb(0 0 0 / 0%));
}
.sample {
  flex: none; inline-size: 13.5rem;
  display: grid; gap: 0.5rem; align-content: start;
  padding: 1rem;
  border-radius: var(--radius-card);
  border: 0.0625rem solid var(--border);
  background: var(--surface);
}
.sample-kind { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--text-muted); }
.sample h3 { margin: 0; font-size: 1.125rem; line-height: 1.35; font-weight: 600; }
.sample-big { margin: 0; font-size: 1.75rem; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sample-big span { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--text-muted); }
.sample-art { display: block; inline-size: 100%; block-size: auto; color: var(--mark); }

/* ------------------------------------------------------------------ feedback -- */

/* The project page zooms into its graph; a pointer clicks one point; one box opens under the graph with
   the note and then its answer. */
.talk { margin: 0; inline-size: 100%; max-inline-size: 40rem; display: grid; gap: 0.75rem; }
/*
 * A window onto the project picture. The view inside is the whole picture, moved and enlarged so that
 * the graph (131 to 689 across and 346 to 651 down, of 1440 by 960) fills the window: that is its state
 * at rest, with no script or with motion off. Where motion is allowed, main.js starts it as the whole
 * page and brings it to this state as the window comes up the screen. --by is how much larger the
 * picture is at rest; what rides on the picture (pin, ring, pointer) is sized by it.
 */
.zoom {
  --by: 2.5806;
  position: relative; overflow: hidden; aspect-ratio: 558 / 305;
  border-radius: var(--radius-card);
  border: 0.0625rem solid var(--border);
  background: var(--canvas);
}
.zoom-view {
  position: absolute; inset: 0 auto auto 0; inline-size: 100%;
  container-type: inline-size;
  transform-origin: 0 0;
  transform: translate(-23.476%, -93.009%) scale(2.5806);
  will-change: transform;
}
.zoom-view img { display: block; inline-size: 100%; block-size: auto; }
/* What rides on the picture sits on the graph's flagged point: 517.3 of 1440 across, 427 of 960 down. */
.talk-pin, .talk-ring, .talk-pointer { position: absolute; inset-inline-start: 35.92%; inset-block-start: 44.48%; }
.talk-pin, .talk-ring {
  inline-size: calc(1.5rem / var(--by)); block-size: calc(1.5rem / var(--by));
  margin: calc(-0.75rem / var(--by)) 0 0 calc(-0.75rem / var(--by));
  border-radius: 50%;
  border: calc(0.125rem / var(--by)) solid #a9763a;
}
.talk-pin { background: rgb(247 239 228 / 55%); }
/* The ring and the pointer belong to the click alone: they are not part of the picture at rest. */
.talk-ring, .talk-pointer { opacity: 0; }
.talk-pointer { inline-size: calc(1.375rem / var(--by)); block-size: calc(1.375rem / var(--by)); margin: calc(-0.125rem / var(--by)) 0 0 calc(-0.1875rem / var(--by)); overflow: visible; }

/* One box under the graph. It opens to hold the note, and opens further for the answer. (Rows from
   nothing to their own height: the one way to grow a box without laying the page out on every frame.) */
.talk-opens, .talk-reply-opens { display: grid; grid-template-rows: 1fr; }
.talk-box {
  min-block-size: 0; overflow: hidden;
  border-radius: var(--radius-card);
  border: 0.0625rem solid var(--border);
  background: var(--surface);
}
.talk-step { margin: 0; display: grid; gap: 0.25rem; padding: 1rem; font-size: 1rem; line-height: 1.5; min-block-size: 0; }
.talk-reply { min-block-size: 0; overflow: hidden; }
.talk-agent { border-block-start: 0.0625rem solid var(--border); background: var(--surface-muted); }
.talk-who { font-size: 0.875rem; font-weight: 600; color: var(--text-muted); }
.talk-you .talk-who { color: #8c5d28; }
.talk-done {
  justify-self: start; margin-block-start: 0.25rem; padding: 0.25rem 0.5rem;
  border-radius: 62.5rem; background: #e3eee9; color: #2f594b;
  font-size: 0.875rem; font-weight: 600;
}
/* Played once, when the graph is reached: the pointer comes to run #42 and clicks, the pin stays, the box
   opens with the note, and after a pause the answer. Only where the script has run and motion is allowed;
   otherwise the pin and the whole box simply stand there. The timing sits on the arrived state only. */
@media (prefers-reduced-motion: no-preference) {
  .talk.waits .talk-pin { opacity: 0; }
  .talk.waits .talk-opens, .talk.waits .talk-reply-opens { grid-template-rows: 0fr; }
  .talk.waits .talk-box { opacity: 0; }
  .talk.waits .talk-you > *, .talk.waits .talk-agent > * { opacity: 0; }

  .talk.waits.said .talk-pointer { animation: pointer-clicks 2s var(--ease-in-out) 0.15s both; }
  .talk.waits.said .talk-ring { animation: click-ring 0.6s var(--ease-out) 1.05s both; }
  .talk.waits.said .talk-pin { opacity: 1; transition: opacity 0.2s var(--ease-out) 1.1s; }
  .talk.waits.said .talk-opens { grid-template-rows: 1fr; transition: grid-template-rows 0.45s var(--ease-out) 1.45s; }
  .talk.waits.said .talk-box { opacity: 1; transition: opacity 0.2s var(--ease-out) 1.45s; }
  .talk.waits.said .talk-you > * { opacity: 1; transition: opacity 0.4s var(--ease-out) 1.7s; }
  .talk.waits.said .talk-reply-opens { grid-template-rows: 1fr; transition: grid-template-rows 0.45s var(--ease-out) 3.5s; }
  .talk.waits.said .talk-agent > * { opacity: 1; transition: opacity 0.4s var(--ease-out) 3.8s; }
  .talk.waits.said .talk-agent > .talk-done { transition-delay: 4.3s; }
}
/* The pointer starts down and to the right of the point (in shares of the picture's width), comes to it,
   presses once and goes. */
@keyframes pointer-clicks {
  0% { opacity: 0; transform: translate(7cqw, 9cqw); }
  10% { opacity: 1; transform: translate(7cqw, 9cqw); }
  42% { opacity: 1; transform: none; }
  47% { opacity: 1; transform: scale(0.82); }
  54% { opacity: 1; transform: none; }
  85% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}
@keyframes click-ring {
  0% { opacity: 0.9; transform: scale(0.5); }
  100% { opacity: 0; transform: scale(2.6); }
}

/* -------------------------------------------------------------- context sync -- */

/*
 * The graph card and its back. With no script, or with motion off, the two faces stand one under the
 * other (side by side on a wide window). With script and motion (".live") they are the two sides of one
 * card, and the page's scroll turns it over while it is held in the window with its heading: the script
 * writes the turn, so there is no timing here.
 */
.flip { inline-size: 100%; max-inline-size: 34rem; }
/* The heading and the card, kept as one block so the two can be held in the window together. It is laid
   out as the section lays out its own parts. With script and motion (the section's "pins") the block
   stays where it is while the page goes on by the room added under it, and the card turns in that time;
   the script sets where it holds and how much room there is, to fit the window. */
.flip-pin { inline-size: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.part.pins .flip-pin { position: sticky; inset-block-start: var(--pin-top, 4rem); }
.part.pins::after { content: ""; flex: none; block-size: var(--pin-room, 18rem); margin-block-start: -1.5rem; }
.flip-card { inline-size: 100%; display: grid; gap: 0.75rem; }
@media (min-width: 56rem) {
  .flip:not(.live) { max-inline-size: none; }
  .flip:not(.live) .flip-card { grid-template-columns: repeat(2, minmax(0, 34rem)); gap: 1rem; }
}
.flip-face {
  position: relative; overflow: hidden; aspect-ratio: 1750 / 1984;
  border-radius: var(--radius-card);
  border: 0.0625rem solid var(--border);
  background: var(--surface);
}
/* The front: a picture of the card alone (assets/board-card.png), which gives both faces their shape. */
.flip-front img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
/* The back: a drawing in the same shape, so its two words and its grey blocks scale with the card as the
   picture on the front does. */
.flip-art { display: block; inline-size: 100%; block-size: 100%; }
.flip-art text { font: 700 1.375rem/1 var(--font); letter-spacing: -0.02em; fill: var(--text); }
.flip-keys { fill: #cbc3ba; }
.flip-values { fill: var(--border); }

.flip.live { perspective: 120rem; }
.flip.live .flip-card { position: relative; display: block; aspect-ratio: 1750 / 1984; transform-style: preserve-3d; }
.flip.live .flip-face { position: absolute; inset: 0; aspect-ratio: auto; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip.live .flip-back { transform: rotateY(180deg); }
/* At rest on either face (the script's "data-side") nothing is in three dimensions, so its words and its
   picture are drawn sharp; the turn itself is the only time the card is a solid. */
.flip.live[data-side] { perspective: none; }
.flip.live[data-side] .flip-card { transform-style: flat; }
.flip.live[data-side] .flip-face { backface-visibility: visible; -webkit-backface-visibility: visible; transform: none; }
.flip.live[data-side="front"] .flip-back, .flip.live[data-side="back"] .flip-front { visibility: hidden; }

/* -------------------------------------------------------------- get started -- */

.ways { display: grid; gap: 1rem; inline-size: 100%; }
@media (min-width: 56rem) { .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.way {
  display: grid; gap: 0.75rem; align-content: start; justify-items: start; min-inline-size: 0;
  margin: 0; padding: 1.5rem;
  border-radius: var(--radius-card);
  border: 0.0625rem solid var(--border);
  background: var(--surface);
}
.way h3 { margin: 0; font-size: 1.25rem; line-height: 1.3; font-weight: 700; }
.hosted { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.25rem; font-size: 1.0625rem; }
.hosted li { display: grid; grid-template-columns: 0.375rem minmax(0, 1fr); align-items: baseline; gap: 0.75rem; }
.hosted li::before { content: ""; inline-size: 0.375rem; block-size: 0.375rem; border-radius: 50%; background: var(--mark); transform: translateY(-0.1875rem); }
.price { margin: 0; font-size: 1.0625rem; color: var(--text-muted); }
.price strong { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.way p { margin: 0; font-size: 1.0625rem; color: var(--text-muted); }
.action {
  min-block-size: 3rem; padding: 0.5rem 1.5rem;
  border: 0.0625rem solid var(--accent); border-radius: 62.5rem;
  background: var(--accent); color: #fff;
  font: 600 1.0625rem/1.4 var(--font);
  cursor: pointer;
}
.action:disabled { border-color: var(--border); background: var(--surface-muted); color: var(--text-muted); cursor: not-allowed; }
/* The one main action. It is drawn in full colour while sign-up is not open yet; it cannot be pressed. */
.action-main { min-block-size: 3.5rem; min-inline-size: 12rem; padding-inline: 2.25rem; font-size: 1.1875rem; font-weight: 700; }
.action-main:disabled { border-color: var(--accent); background: var(--accent); color: #fff; }
@media (max-width: 30rem) { .action-main { inline-size: 100%; } }

/* ------------------------------------------------------------- the open step -- */

.next {
  inline-size: var(--page-w); margin-inline: auto;
  padding-block: 4rem 6rem;
  padding-inline-start: var(--lane-pad);
  display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center;
}
.next-title { margin: 0; font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }

/* --------------------------------------------------- the foot: the sun sets -- */

/* Like the film's frame, this must not become a stacking context: the dot sits behind its horizon. */
.end {
  position: relative; overflow: hidden;
  block-size: clamp(15rem, 30vw, 30rem);
}
.end-sun {
  position: absolute;
  inset-inline-start: 50%; inset-block-end: clamp(2.5rem, 5.4vw, 6.5rem);
  inline-size: clamp(11rem, 20.4vw, 24.5rem); aspect-ratio: 1;
  border-radius: 50%;
  transform: translateX(-50%);
}
.end-horizon { position: absolute; z-index: 31; inset: auto 0 0 0; display: block; inline-size: 100%; block-size: clamp(8rem, 18.75vw, 22.5rem); }


