/* The waitlist: its landing page (`/` for visitors while the waitlist is on), the pages an
   email's link opens, and the frame around them (templates/waitlist*.html).

   Set like a printed almanac rather than an app: warm paper, one ink and one spot colour
   (vermilion), a serif for reading, a typewriter face for the small print, hairlines and
   double rules where an app would use cards, borders and shadows. No gradients, no glows,
   no pills. Light by default (the server writes `data-theme`); the dark theme is the same
   page printed on dark stock.

   Motion comes from CSS where it can (the title, the ticker, the bars) and from
   js/pages/waitlist.js for the board, the crowd and the reading line. Everything is
   readable without the script: what it reveals is only hidden once it runs (`.wl-js`). */

.is-waitlist {
  --wl-paper: #f4f0e6;
  --wl-paper-2: #ebe5d7;
  --wl-ink: #1c1a16;
  --wl-ink-2: #4b473f;
  --wl-muted: #7b7568;
  --wl-hair: #d3cbb9;
  --wl-spot: #c63d1c;
  --wl-serif: 'Newsreader Variable', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --wl-mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.3, 0.64, 1);
  background: var(--wl-paper);
  color: var(--wl-ink);
}
:root[data-theme='dark'] .is-waitlist {
  --wl-paper: #161410;
  --wl-paper-2: #201d17;
  --wl-ink: #ece5d3;
  --wl-ink-2: #bdb5a2;
  --wl-muted: #8e8777;
  --wl-hair: #39342b;
  --wl-spot: #ec6a43;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .is-waitlist {
    --wl-paper: #161410;
    --wl-paper-2: #201d17;
    --wl-ink: #ece5d3;
    --wl-ink-2: #bdb5a2;
    --wl-muted: #8e8777;
    --wl-hair: #39342b;
    --wl-spot: #ec6a43;
  }
}

/* The frame: a hairline under the logo, paper all the way down. */
.is-waitlist .main { padding-bottom: 0; }
.is-waitlist .topbar {
  position: relative;
  background: var(--wl-paper);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: var(--wl-hair);
}
.is-waitlist .topbar-inner { max-width: 72rem; }
.is-waitlist .site-footer-inner { max-width: 70rem; }
.is-waitlist .topbar .btn-ghost {
  padding: 0 0.25rem;
  font-family: var(--wl-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--wl-ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  background: none;
}
.is-waitlist .topbar .btn-ghost:hover { color: var(--wl-spot); background: none; }
.is-waitlist .site-footer { margin-top: 0; padding-bottom: 2.5rem; border-top: 1px solid var(--wl-hair); }
.waitlist-footer .site-footer-inner { font-family: var(--wl-mono); font-size: 0.75rem; color: var(--wl-muted); }
.waitlist-footer .site-footer-inner a { text-decoration: underline; text-underline-offset: 0.2em; }
.waitlist-footer .site-footer-inner a:hover { color: var(--wl-spot); }
.waitlist-footer .site-footer-promise { margin-top: 0.5rem; }

/* The other pages a visitor reaches (signing in, a forgotten password, the notice, errors),
   printed the same way: no cards, lines to write on, ink buttons. */
.is-waitlist .page-title { font-family: var(--wl-serif); font-weight: 600; letter-spacing: -0.025em; color: var(--wl-ink); }
.is-waitlist .lede { font-family: var(--wl-serif); font-size: 1.1875rem; color: var(--wl-ink-2); }
.is-waitlist .prose { font-family: var(--wl-serif); font-size: 1.125rem; color: var(--wl-ink); }
.is-waitlist .prose a { color: var(--wl-ink); text-decoration: underline; text-underline-offset: 0.18em; }
.is-waitlist .prose h2 { padding-top: 1rem; border-top: 1px solid var(--wl-hair); }
.is-waitlist .auth { max-width: 30rem; padding-top: 3rem; }
.is-waitlist .auth-card {
  padding: 1.75rem 0 2rem;
  border: 0;
  border-top: 3px double var(--wl-ink);
  border-bottom: 1px solid var(--wl-ink);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--wl-serif);
}
.is-waitlist .auth-head .bell-glyph { display: none; }
.is-waitlist .auth-head .page-title { font-size: 2.5rem; line-height: 1.05; }
.is-waitlist .auth-subtitle, .is-waitlist .auth-note { font-family: var(--wl-serif); font-size: 1.125rem; color: var(--wl-ink-2); }
.is-waitlist .field-head label { font-family: var(--wl-mono); font-size: 0.75rem; font-weight: 400; color: var(--wl-muted); }
.is-waitlist .control {
  height: 3rem;
  padding: 0 0.125rem;
  border: 0;
  border-bottom: 2px solid var(--wl-ink);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--wl-serif);
  font-size: 1.25rem;
  color: var(--wl-ink);
}
.is-waitlist .control:focus, .is-waitlist .control:focus-visible { box-shadow: none; border-bottom-color: var(--wl-spot); }
.is-waitlist .control[aria-invalid='true'] { box-shadow: none; border-bottom-color: var(--wl-spot); }
.is-waitlist .field-error, .is-waitlist .form-error { color: var(--wl-spot); font-family: var(--wl-serif); }
.is-waitlist .main .btn-primary, .is-waitlist .main .btn-secondary {
  height: 3rem;
  border-radius: 2px;
  font-family: var(--wl-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  box-shadow: none;
}
.is-waitlist .main .btn-primary { background: var(--wl-ink); color: var(--wl-paper); }
.is-waitlist .main .btn-primary:hover { background: var(--wl-spot); }
.is-waitlist .main .btn-secondary { background: transparent; color: var(--wl-ink); box-shadow: inset 0 0 0 1px var(--wl-ink); }
.is-waitlist .auth-footer { font-family: var(--wl-serif); font-size: 1rem; color: var(--wl-ink-2); text-align: left; }
.is-waitlist .auth-footer a { color: var(--wl-ink); text-decoration: underline; text-underline-offset: 0.18em; }
.is-waitlist .auth-footer a:hover { color: var(--wl-spot); }
.is-waitlist .flash { font-family: var(--wl-serif); }

.wl {
  margin: 0 auto;
  max-width: 72rem;
  padding: 0 1rem;
  overflow-x: clip;
  font-family: var(--wl-serif);
  font-optical-sizing: auto;
}

/* ─── Type ─────────────────────────────────────────────────────────────── */

.wl-h2 {
  font-size: clamp(2.125rem, 5.4vw, 3.75rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.wl-h3 { font-size: 1.5rem; line-height: 1.15; font-weight: 600; letter-spacing: -0.012em; }
.wl-p { font-size: 1.1875rem; line-height: 1.55; color: var(--wl-ink-2); text-wrap: pretty; }
.wl-num { margin-bottom: 0.75rem; font-size: 1.25rem; font-weight: 500; color: var(--wl-spot); }
.wl-cap { margin-top: 0.875rem; font-size: 0.9375rem; line-height: 1.45; color: var(--wl-muted); text-wrap: pretty; }
.wl-cap b { font-weight: 700; color: var(--wl-ink); }
.wl-key { display: inline-block; width: 0.7em; height: 0.7em; margin: 0 0.35em 0 0.15em; vertical-align: -0.02em; }
.wl-key.is-yes { background: var(--wl-ink); }
.wl-key.is-no { background: var(--wl-spot); }
.wl-link {
  font: inherit;
  color: var(--wl-ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  cursor: pointer;
  background: none;
}
.wl-link:hover { color: var(--wl-spot); }

/* ─── Hero ─────────────────────────────────────────────────────────────── */

.wl-hero {
  display: grid;
  gap: 3rem;
  align-items: start;
  padding: 2.5rem 0 3.5rem;
}
@media (min-width: 960px) {
  .wl-hero { grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); gap: 4.5rem; padding: 3.5rem 0 4.5rem; }
}

.wl-title {
  font-size: clamp(3.25rem, 12vw, 6.25rem);
  line-height: 0.92;
  font-weight: 600;
  letter-spacing: -0.045em;
}
.wl-line { display: block; overflow: hidden; padding: 0 0.06em 0.22em 0; margin-bottom: -0.22em; }
.wl-line > span { display: inline-block; animation: wl-rise 1.05s var(--ease-out) both; }
.wl-line:nth-child(2) > span { animation-delay: 0.12s; }
.wl-curve-word { position: relative; display: inline-block; }
.wl-swash {
  position: absolute;
  left: -0.04em;
  bottom: -0.17em;
  width: calc(100% - 0.12em);
  height: 0.36em;
  overflow: visible;
  fill: none;
  stroke: var(--wl-spot);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.wl-swash path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: wl-draw 1.25s cubic-bezier(0.45, 0, 0.2, 1) 0.8s forwards; }

.wl-lede {
  margin-top: 1.75rem;
  max-width: 33rem;
  font-size: clamp(1.25rem, 2.3vw, 1.5rem);
  line-height: 1.45;
  color: var(--wl-ink-2);
  text-wrap: pretty;
  animation: wl-fade 0.9s var(--ease-out) 0.35s both;
}

/* ─── The form: a line to write on, and an ink block of a button ───────── */

.wl-form { position: relative; margin-top: 2.25rem; max-width: 34rem; animation: wl-fade 0.9s var(--ease-out) 0.5s both; }
.wl-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.wl-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: 'label label' 'input button';
  align-items: end;
  column-gap: 1rem;
}
.wl-label { grid-area: label; margin-bottom: 0.25rem; font-family: var(--wl-mono); font-size: 0.75rem; color: var(--wl-muted); }
.wl-input {
  grid-area: input;
  min-width: 0;
  height: 3.25rem;
  padding: 0 0.125rem;
  border-bottom: 2px solid var(--wl-ink);
  border-radius: 0;
  background: transparent;
  font-family: var(--wl-serif);
  font-size: 1.375rem;
  color: var(--wl-ink);
  outline: none;
  transition: border-color 0.2s;
}
.wl-input::placeholder { color: var(--wl-muted); opacity: 0.75; }
.wl-input:focus { border-bottom-color: var(--wl-spot); }
.wl-field.is-invalid .wl-input { border-bottom-color: var(--wl-spot); }
.wl-field.is-shake .wl-input { animation: wl-shake 0.45s var(--ease-out); }
.wl-submit {
  grid-area: button;
  position: relative;
  display: inline-grid;
  place-items: center;
  height: 3.25rem;
  padding: 0 1.5rem;
  border-radius: 2px;
  background: var(--wl-ink);
  color: var(--wl-paper);
  font-family: var(--wl-serif);
  font-size: 1.125rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s, transform 0.18s var(--ease-out);
}
.wl-submit > * { grid-area: 1 / 1; }
.wl-submit:hover { background: var(--wl-spot); }
.wl-submit:active { transform: translateY(1px); }
.wl-submit:focus-visible { outline: 2px solid var(--wl-spot); outline-offset: 3px; }
.wl-submit.is-wide { width: 100%; }
.wl-submit-label { transition: opacity 0.2s; }
.wl-submit-dots { display: inline-flex; gap: 0.3rem; opacity: 0; transition: opacity 0.2s; }
.wl-submit-dots i { width: 0.35rem; height: 0.35rem; border-radius: 50%; background: currentColor; animation: wl-bounce 0.9s ease-in-out infinite; }
.wl-submit-dots i:nth-child(2) { animation-delay: 0.12s; }
.wl-submit-dots i:nth-child(3) { animation-delay: 0.24s; }
.wl-form.is-busy .wl-submit { pointer-events: none; }
.wl-form.is-busy .wl-submit-label { opacity: 0; }
.wl-form.is-busy .wl-submit-dots { opacity: 1; }

.wl-msg { margin-top: 0.625rem; font-size: 1rem; font-weight: 500; color: var(--wl-spot); }
.wl-msg:empty { display: none; }
.wl-fine { margin-top: 0.875rem; font-size: 0.9375rem; line-height: 1.45; color: var(--wl-muted); }
.wl-fine a { color: var(--wl-ink-2); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.wl-fine a:hover { color: var(--wl-spot); }

.wl-done { display: flex; align-items: center; gap: 0.875rem; padding: 0.5rem 0 0.75rem; border-bottom: 2px solid var(--wl-ink); }
.wl-done[hidden] { display: none; }
.wl-tick { flex-shrink: 0; width: 2.5rem; height: 2.5rem; fill: none; stroke: var(--wl-spot); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.wl-tick path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: wl-draw 0.6s cubic-bezier(0.45, 0, 0.2, 1) 0.1s forwards; }
.wl-done-title { font-size: 1.5rem; font-weight: 600; line-height: 1.15; }
.wl-done-text { margin-top: 0.125rem; font-size: 1rem; color: var(--wl-ink-2); }
.wl-done > div { animation: wl-fade 0.6s var(--ease-out) 0.15s both; }
.wl-form.is-done .wl-field,
.wl-form.is-done .wl-msg,
.wl-form.is-done .wl-fine { display: none; }

.wl-done-mark { display: block; flex-shrink: 0; }
.wl-done-mark[hidden] { display: none; }

/* The code kind (an A/B test): the email's four digits, a box each, beside the button.
   Without the script, a plain field; with it, the real input lies unseen over the boxes
   (it keeps the phone's code suggestion, pasting and the keyboard), and the boxes show
   its digits, the next one marked with a caret. */
.wl-code { margin-top: 1.25rem; }
.wl-code[hidden] { display: none; }
.wl-code-row {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas: 'label label' 'input button';
  justify-content: start;
  align-items: end;
  column-gap: 1rem;
}
.wl-otp { grid-area: input; position: relative; width: 10.5rem; }
.wl-code-input { width: 100%; font-family: var(--wl-mono); font-size: 1.75rem; letter-spacing: 0.35em; }
.wl-code-row.is-invalid .wl-code-input { border-bottom-color: var(--wl-spot); }
.wl-code-row.is-shake .wl-code-input { animation: wl-shake 0.45s var(--ease-out); }
.wl-otp-cells { display: none; }
.wl-js .wl-otp { width: auto; }
.wl-js .wl-otp-cells { display: flex; gap: 0.5rem; }
.wl-otp-cell {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 3.25rem;
  border: 1.5px solid var(--wl-ink);
  border-radius: 2px;
  font-family: var(--wl-mono);
  font-size: 1.625rem;
  line-height: 1;
  color: var(--wl-ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.wl-otp-cell.is-active { border-color: var(--wl-spot); box-shadow: inset 0 0 0 1px var(--wl-spot); }
.wl-otp-cell.is-active:empty::after { content: ''; width: 1.5px; height: 1.5rem; background: var(--wl-spot); animation: wl-caret 1.1s steps(1) infinite; }
.wl-code-row.is-invalid .wl-otp-cell { border-color: var(--wl-spot); }
.wl-code-row.is-shake .wl-otp-cells { animation: wl-shake 0.45s var(--ease-out); }
.wl-js .wl-otp-input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  -webkit-text-fill-color: transparent;
  caret-color: transparent;
  font-size: 16px;
  letter-spacing: normal;
  outline: none;
  animation: none;
}
.wl-js .wl-otp-input::selection { background: transparent; }
.wl-js .wl-otp-input:autofill { transition: background-color 600000s 0s; }
.wl-code-msg { margin-top: 0.625rem; font-size: 1rem; font-weight: 500; color: var(--wl-spot); }
.wl-code-msg:empty { display: none; }
.wl-form.is-done .wl-code .wl-fine { display: block; }
@keyframes wl-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .wl-otp-cell.is-active:empty::after { animation: none; }
}

@media (max-width: 480px) {
  .wl-field, .wl-code-row { grid-template-columns: 1fr; grid-template-areas: 'label' 'input' 'button'; row-gap: 0.875rem; }
  .wl-submit { width: 100%; }
}

/* ─── Fig. 1, the board: dots fall into the curve, coloured by how they answered ── */

.wl-fig { margin: 0; }
.wl-board { animation: wl-fade 1s var(--ease-out) 0.25s both; }
.wl-stage {
  position: relative;
  aspect-ratio: 6 / 5;
  min-height: 19rem;
  border-top: 1px solid var(--wl-ink);
  border-bottom: 1px solid var(--wl-ink);
}
.wl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.wl-take { position: absolute; z-index: 1; top: 0.875rem; left: 0; right: 0; pointer-events: none; }
.wl-take-text {
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  transition: opacity 0.45s, transform 0.6s var(--ease-out);
}
.wl-take-text.is-out { opacity: 0; transform: translateY(-0.375rem); }
.wl-tally { margin-top: 0.3rem; font-family: var(--wl-mono); font-size: 0.8125rem; color: var(--wl-ink-2); }
.wl-tally b { display: inline-block; min-width: 3.4ch; margin-right: 0.75rem; font-weight: 700; color: var(--wl-ink); font-variant-numeric: tabular-nums; }
.wl-axis {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--wl-mono);
  font-size: 0.6875rem;
  color: var(--wl-muted);
  pointer-events: none;
}

/* ─── The ticker: questions waiting for their split, running like a wire ── */

.wl-ticker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border-top: 1px solid var(--wl-ink);
  border-bottom: 1px solid var(--wl-ink);
}
.wl-ticker-head {
  position: relative;
  z-index: 1;
  padding: 0.75rem 1rem 0.75rem 0;
  border-right: 1px solid var(--wl-ink);
  background: var(--wl-paper);
  font-family: var(--wl-mono);
  font-size: 0.75rem;
  color: var(--wl-spot);
  white-space: nowrap;
}
.wl-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 94%, transparent);
}
.wl-track { display: flex; width: max-content; animation: wl-scroll 110s linear infinite; }
.wl-row:hover .wl-track { animation-play-state: paused; }
.wl-item {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 0 0.75rem 1.25rem;
  font-size: 1.0625rem;
  color: var(--wl-ink);
  white-space: nowrap;
}
.wl-item::after { content: '·'; margin-left: 0.625rem; color: var(--wl-muted); }
.wl-item-bar { width: 2.5rem; height: 0.3125rem; background: linear-gradient(90deg, var(--wl-ink) var(--yes), var(--wl-spot) var(--yes)); }
@media (max-width: 640px) {
  .wl-ticker { grid-template-columns: 1fr; }
  .wl-ticker-head { border-right: 0; border-bottom: 1px solid var(--wl-hair); padding: 0.5rem 0; }
}

/* ─── The manifesto: the words print themselves as you read down ───────── */

.wl-manifesto { padding: 6rem 0 5rem; }
.wl-words {
  max-width: 52rem;
  font-size: clamp(1.875rem, 4.6vw, 3.25rem);
  line-height: 1.14;
  font-weight: 500;
  letter-spacing: -0.022em;
  text-wrap: pretty;
}
.wl-words::first-letter {
  float: left;
  margin: 0.06em 0.08em 0 0;
  font-size: 2.65em;
  line-height: 0.8;
  font-weight: 700;
  color: var(--wl-spot);
}
.wl-js .wl-words .w { opacity: 0.18; transition: opacity 0.35s; }
.wl-js .wl-words .w.is-lit { opacity: 1; }
.wl-js .wl-words .w.is-key.is-lit { color: var(--wl-spot); }

/* ─── Parts I and II, the columns, the last call: sections between rules ── */

.wl-part { border-top: 1px solid var(--wl-ink); }
.wl-social,
.wl-loud { display: grid; gap: 2.5rem; align-items: start; padding: 3rem 0 4rem; }
@media (min-width: 900px) {
  .wl-social, .wl-loud { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4.5rem; padding: 4rem 0 5.5rem; }
}
.wl-copy .wl-p { margin-top: 1.25rem; max-width: 30rem; }

/* Fig. 3: one shout, stamped in red, gives way to the many dots of a curve (js: `crowd`). */
.wl-crowd-stage { position: relative; }
.wl-crowd-svg { width: 100%; height: auto; overflow: visible; }
.wl-crowd-axis { stroke: var(--wl-ink); stroke-width: 1; }
.wl-crowd-dot { transform: translate(var(--x), var(--y)); transition: transform 1.1s var(--ease-out) var(--d); }
.wl-crowd-dot.is-ink { fill: var(--wl-ink); }
.wl-crowd-dot.is-spot { fill: var(--wl-spot); }
.wl-crowd-dot.is-faint { fill: var(--wl-muted); }
/* With the script, the dots wait inside the shout until the figure comes into view. */
.wl-js .wl-crowd:not(.is-in) .wl-crowd-dot { transform: translate(320px, 126px) scale(0); }
.wl-stamp {
  display: none;
  position: absolute;
  left: 50%;
  top: 40%;
  padding: 0.25rem 0.75rem 0.3rem;
  border: 3px solid var(--wl-spot);
  border-radius: 3px;
  color: var(--wl-spot);
  font-family: var(--wl-mono);
  font-weight: 800;
  font-size: clamp(1rem, 3.2vw, 1.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-7deg);
  transition: transform 0.5s var(--ease-out), opacity 0.35s;
  animation: wl-thump 1.6s ease-in-out infinite;
}
.wl-js .wl-stamp { display: block; }
.wl-crowd.is-in .wl-stamp { animation: none; transform: translate(-50%, -50%) rotate(-7deg) scale(0.2); opacity: 0; }

/* The last call: the line, and the form beside it. */
.wl-cta { display: grid; gap: 2rem; padding: 4rem 0 5rem; border-top: 3px double var(--wl-ink); }
@media (min-width: 900px) { .wl-cta { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 4.5rem; align-items: end; padding: 5rem 0 6rem; } }
.wl-cta-title { font-size: clamp(2.5rem, 7vw, 5rem); line-height: 0.95; letter-spacing: -0.04em; }
.wl-cta .wl-form { margin-top: 1.5rem; animation: none; }

/* ─── The hero's dictionary entry: what bIQ is, before anything else ───── */

.wl-def {
  margin-top: 1.25rem;
  max-width: 33rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--wl-hair);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--wl-ink-2);
  animation: wl-fade 0.9s var(--ease-out) 0.45s both;
}
.wl-def-word { font-size: 1.25em; font-weight: 700; color: var(--wl-ink); }
.wl-def-kind { margin: 0 0.35rem 0 0.15rem; font-family: var(--wl-mono); font-size: 0.75rem; color: var(--wl-muted); }
.wl-def a, .wl-more a { color: var(--wl-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.wl-def a:hover, .wl-more a:hover { color: var(--wl-spot); }

/* ─── I. Social media, with receipts: the feed, and its splits ─────────── */

.wl-hook { margin-top: 1.5rem; max-width: 30rem; font-size: 1.375rem; line-height: 1.4; font-weight: 500; color: var(--wl-ink); text-wrap: pretty; }
/* Fig. 2: a phone drawn in ink, showing Belltake as it is: the site's own post cards and
   split cards (the same markup and styles as the real pages), played as a short loop
   (js: `startFeed`): a take's split opens in a sheet and changes tabs, the feed scrolls to
   a poll and opens its split, then a swipe up to a video take, whose split opens too. */
.wl-feedfig { display: grid; justify-items: center; gap: 1rem; }
.wl-phone {
  position: relative;
  width: min(100%, 23rem);
  padding: 0.5rem;
  border: 1.5px solid var(--wl-ink);
  border-radius: 2.75rem;
  background: var(--wl-paper);
}
.wl-phone::before {
  content: '';
  position: absolute;
  top: 1.05rem;
  left: 50%;
  z-index: 10;
  width: 5.25rem;
  height: 1.375rem;
  margin-left: -2.625rem;
  border-radius: 1rem;
  background: #0b0b0a;
}
.wl-screen {
  position: relative;
  height: 41rem;
  overflow: hidden;
  border-radius: 2.25rem;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  isolation: isolate;
  -webkit-user-select: none;
  user-select: none;
}
.wl-scene { position: absolute; inset: 0; transition: transform 0.85s cubic-bezier(0.65, 0, 0.35, 1); }
.wl-scene-feed { background: var(--page); }
.wl-screen-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 4.25rem;
  padding: 1.75rem 1rem 0;
  border-bottom: 1px solid var(--line);
  background: var(--page);
}
.wl-screen-feed { position: relative; transition: transform 0.95s cubic-bezier(0.65, 0, 0.35, 1); }
.wl-screen-post .post { margin: 0; }
.wl-scene-take { overflow: hidden; background: #0e0d0b; color: #fff; transform: translateY(100%); }
.wl-screen.is-take .wl-scene-feed { transform: translateY(-100%); }
.wl-screen.is-take .wl-scene-take { transform: none; }

/* The video: warm lights out of focus behind someone talking. */
.wl-take-video { position: absolute; inset: 0; overflow: hidden; background: #2b2119; }
.wl-take-light { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; filter: blur(38px); opacity: 0.6; animation: wl-drift 9s ease-in-out infinite alternate paused; }
.wl-take-light.is-a { left: -12%; top: 6%; background: #c63d1c; }
.wl-take-light.is-b { right: -18%; top: 28%; background: #e2a54a; animation-duration: 11s; }
.wl-take-light.is-c { left: 18%; bottom: -12%; background: #35587a; animation-duration: 13s; }
.wl-take-person { position: absolute; left: 50%; bottom: 0; width: 68%; fill: #120e0b; stroke: rgb(255 196 140 / 0.22); stroke-width: 1.5; transform: translateX(-50%); transform-origin: 50% 100%; animation: wl-talk 2.6s ease-in-out infinite paused; }
.wl-screen.is-take .wl-take-light, .wl-screen.is-take .wl-take-person { animation-play-state: running; }
.wl-take-words {
  position: absolute;
  inset: 31% 4.25rem auto 1rem;
  z-index: 2;
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: center;
  text-shadow: 0 2px 10px rgb(0 0 0 / 0.55);
}
.wl-take-words span { display: inline-block; opacity: 0; transform: translateY(0.35em) scale(0.8); transition: opacity 0.2s, transform 0.4s var(--ease-spring), color 0.2s; }
.wl-take-words span.is-said { opacity: 1; transform: none; }
.wl-take-words span.is-now { color: #ffcf5a; }
/* The rail as the phone app has it, whatever the page's width. */
.wl-scene-take .take-rail { position: absolute; right: 0.375rem; bottom: 6rem; padding: 0; }
.wl-scene-take .take-btn { color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / 0.55); }
.wl-scene-take .take-btn .icon, .wl-scene-take .take-split .helix { padding: 0; background: none; filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.45)); }
.wl-take-foot { position: absolute; left: 0.875rem; right: 4.75rem; bottom: 1.375rem; z-index: 2; text-shadow: 0 1px 3px rgb(0 0 0 / 0.6); }
.wl-take-who { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; }
.wl-take-who > span:last-child { opacity: 0.8; }
.wl-take-caption { margin-top: 0.375rem; font-size: 0.9375rem; line-height: 1.35; }

/* The split, in a sheet over the screen. */
.wl-scrim { position: absolute; inset: 0; z-index: 4; background: rgb(0 0 0 / 0.32); opacity: 0; transition: opacity 0.5s; pointer-events: none; }
.wl-screen.is-sheet .wl-scrim { opacity: 1; }
.wl-sheet {
  position: absolute;
  inset: auto 0 0;
  z-index: 5;
  height: 71%;
  overflow: hidden;
  padding: 0.5rem 0.875rem 0;
  border-radius: 1.25rem 1.25rem 0 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 -12px 32px -12px rgb(0 0 0 / 0.3);
  transform: translateY(104%);
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wl-sheet.is-up { transform: none; }
/* In the sheet, as in the site's dialog, the card is the sheet's body. */
.wl-sheet .split-card { padding: 0; border-radius: 0; background: none; box-shadow: none; }
.wl-sheet-grip { display: block; width: 2.25rem; height: 4px; margin: 0 auto 0.625rem; border-radius: 2px; background: var(--line-strong); }

/* A finger: a tap, or a swipe. */
.wl-tap {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 9;
  width: 2.5rem;
  height: 2.5rem;
  margin: -1.25rem 0 0 -1.25rem;
  border-radius: 50%;
  background: rgb(17 17 16 / 0.2);
  box-shadow: 0 0 0 2px rgb(17 17 16 / 0.35);
  opacity: 0;
  pointer-events: none;
}
.wl-tap.is-light { background: rgb(255 255 255 / 0.3); box-shadow: 0 0 0 2px rgb(255 255 255 / 0.65); }
.wl-feed-pause { margin-left: 0.25rem; font-family: var(--wl-mono); font-size: 0.75rem; }
@keyframes wl-drift { to { transform: translate(14%, -10%) scale(1.15); } }
@keyframes wl-talk {
  0%, 100% { transform: translateX(-50%) rotate(0deg); }
  30% { transform: translateX(-50%) translateY(3px) rotate(-1.2deg); }
  62% { transform: translateX(-50%) rotate(1deg); }
}

/* ─── II. bIQ in a minute: three steps and three real puzzles ───────────── */

.wl-biq { padding: 3rem 0 4rem; }
.wl-biq-intro { display: grid; gap: 2rem; }
@media (min-width: 900px) {
  .wl-biq { padding: 4rem 0 5rem; }
  .wl-biq-intro { gap: 2.5rem; }
}
.wl-steps { display: grid; gap: 1.5rem; counter-reset: wl-step; }
@media (min-width: 720px) { .wl-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }
.wl-steps li { counter-increment: wl-step; }
.wl-steps li::before { content: counter(wl-step); display: block; margin-bottom: 0.5rem; font-size: 2.5rem; line-height: 1; font-weight: 300; color: var(--wl-spot); }
.wl-steps .wl-p { margin-top: 0.5rem; font-size: 1.0625rem; }

.wl-plates { display: grid; gap: 2rem; margin-top: 3rem; }
@media (min-width: 760px) { .wl-plates { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; } }
@media (min-width: 760px) { .wl-plates.is-four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .wl-plates.is-four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.wl-plates > .wl-cap { grid-column: 1 / -1; margin-top: 0; }
.wl-plate { padding-top: 1rem; border-top: 1px solid var(--wl-ink); }
.wl-plate-stem { display: grid; place-items: center; height: 11.5rem; }
.wl-plate-stem .wl-plate-svg { max-width: 100%; max-height: 100%; width: auto; height: 100%; }
.wl-plate-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; margin-top: 0.75rem; }
.wl-plate-option { display: grid; gap: 0.25rem; justify-items: center; }
.wl-plate-option .wl-plate-svg { width: 100%; height: auto; }
.wl-plate-letter { font-family: var(--wl-mono); font-size: 0.75rem; font-weight: 700; color: var(--wl-muted); }
.wl-plate-cap { margin-top: 0.875rem; font-size: 1rem; line-height: 1.45; color: var(--wl-ink-2); }
.wl-plate-cap b { color: var(--wl-ink); }
.wl-more { margin-top: 2.25rem; font-size: 1.1875rem; }

/* Fig. 3 on the landing page: puzzles mounted with photo corners, fanning out from a
   stack as they come into view (js: `[data-shots]`). */
.wl-shots { margin-top: 3rem; }
.wl-shots-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem; align-items: start; }
.wl-shot { --tilt: 0deg; transform: rotate(var(--tilt)); transition: transform 1.2s var(--ease-out) calc(var(--i) * 90ms), opacity 0.8s calc(var(--i) * 90ms); }
.wl-shot:nth-child(1) { --tilt: -1.4deg; }
.wl-shot:nth-child(2) { --tilt: 0.8deg; margin-top: 1.5rem; }
.wl-shot:nth-child(3) { --tilt: -0.6deg; }
/* Photo corners: four small ink triangles holding each picture to the page. */
.wl-shot-frame { position: relative; }
.wl-shot-frame::after {
  content: '';
  position: absolute;
  inset: -4px;
  pointer-events: none;
  background:
    linear-gradient(135deg, var(--wl-ink) 0 50%, transparent 50%) top left / 22px 22px no-repeat,
    linear-gradient(225deg, var(--wl-ink) 0 50%, transparent 50%) top right / 22px 22px no-repeat,
    linear-gradient(45deg, var(--wl-ink) 0 50%, transparent 50%) bottom left / 22px 22px no-repeat,
    linear-gradient(315deg, var(--wl-ink) 0 50%, transparent 50%) bottom right / 22px 22px no-repeat;
}
.wl-shot-cap { margin-top: 1rem; font-size: 1rem; line-height: 1.45; color: var(--wl-ink-2); }
.wl-shot-cap b { color: var(--wl-ink); }
.wl-shots > .wl-cap { margin-top: 1.75rem; }
@media (min-width: 761px) {
  .wl-js .wl-shots:not(.is-in) .wl-shot { transform: translateX(calc((1 - var(--i)) * 104%)) rotate(calc((var(--i) - 1) * 5deg)); }
  .wl-js .wl-shots:not(.is-in) .wl-shot:nth-child(2) { transform: translateY(-1.5rem) rotate(0.8deg); }
}
@media (max-width: 760px) {
  .wl-shots-row {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 74%;
    gap: 1.25rem;
    overflow-x: auto;
    padding: 0.5rem 0.25rem 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .wl-shot { scroll-snap-align: center; }
  .wl-shot:nth-child(2) { margin-top: 0; }
  .wl-js .wl-shots:not(.is-in) .wl-shot { opacity: 0; transform: translateY(1.5rem); }
}

/* The sketches on the landing page: generated puzzles printed in the page's two inks
   (site/showcase.rs `inkify`), mounted like prints, drawn in as they come into view: the
   lines first, then the shading. */
.wl-sketch { padding: 0.875rem 0.875rem 0.75rem; background: #f9f6ee; border-radius: 3px; }
.wl-sketch-stem { display: grid; place-items: center; height: 11rem; }
.wl-sketch-stem .wl-plate-svg { max-width: 100%; max-height: 100%; width: auto; height: 100%; }
.wl-sketch-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.375rem; margin-top: 0.625rem; }
.wl-sketch-option { display: grid; gap: 0.125rem; justify-items: center; font-family: var(--wl-mono); font-size: 0.625rem; color: #7b7568; }
.wl-sketch-option .wl-plate-svg { width: 100%; height: auto; }
.wl-sketch .wl-plate-svg path[stroke]:not([stroke-dasharray]) {
  stroke-dasharray: 1600;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 2s cubic-bezier(0.45, 0, 0.2, 1) calc(var(--i) * 160ms + 150ms);
}
.wl-sketch .wl-plate-svg path:not([fill='none']) { transition: fill-opacity 1s ease calc(var(--i) * 160ms + 1100ms); }
.wl-js .wl-shots:not(.is-in) .wl-sketch .wl-plate-svg path[stroke]:not([stroke-dasharray]),
.wl-js .wl-feature:not(.is-in) .wl-sketch .wl-plate-svg path[stroke]:not([stroke-dasharray]) { stroke-dashoffset: 1600; }
.wl-js .wl-shots:not(.is-in) .wl-sketch .wl-plate-svg path:not([fill='none']),
.wl-js .wl-feature:not(.is-in) .wl-sketch .wl-plate-svg path:not([fill='none']) { fill-opacity: 0; }
.wl-shot-cap a, .wl-shots .wl-cap a { color: var(--wl-ink); text-decoration: underline; text-underline-offset: 0.18em; }

/* Fig. 2 on the bIQ page: the tests the puzzles descend from, as a line of descent. Each
   test is a small cut-out stamp pasted along the line; the line runs down and each stamp is
   inked in as it reaches it (js: `[data-lineage]`). */
.wl-lineage-list { position: relative; display: grid; gap: 1.125rem; margin: 0; padding: 0; list-style: none; }
.wl-lineage-list::before {
  content: '';
  position: absolute;
  top: 1.75rem;
  bottom: 1.75rem;
  left: calc(3.5rem + 1rem + 1.75rem - 0.5px);
  border-left: 1px solid var(--wl-ink);
  transform-origin: top;
  transition: transform 1.8s cubic-bezier(0.45, 0, 0.2, 1);
}
.wl-lineage-list li {
  display: grid;
  grid-template-columns: 3.5rem 3.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  transition: opacity 0.6s ease calc(var(--i) * 240ms), transform 0.8s var(--ease-out) calc(var(--i) * 240ms);
}
.wl-lineage-year { font-family: var(--wl-mono); font-size: 0.8125rem; color: var(--wl-spot); text-align: right; }
.wl-emblem {
  --r: -2.5deg;
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0.4rem;
  background: var(--wl-paper-2);
  outline: 1px solid var(--wl-ink);
  outline-offset: -1px;
  box-shadow: 2px 2px 0 var(--wl-ink);
  transform: rotate(var(--r));
  overflow: visible;
}
.wl-lineage-list li:nth-child(even) .wl-emblem { --r: 2deg; }
.wl-emblem path { fill: none; stroke: var(--wl-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s cubic-bezier(0.45, 0, 0.2, 1) calc(var(--i) * 240ms + 200ms); }
.wl-emblem .is-spot { stroke: var(--wl-spot); }
.wl-emblem circle.is-spot { fill: var(--wl-spot); stroke: none; transition: opacity 0.5s ease calc(var(--i) * 240ms + 900ms); }
.wl-lineage-text { display: grid; gap: 0.125rem; }
.wl-lineage-name { font-size: 1.125rem; font-weight: 700; line-height: 1.25; }
a.wl-lineage-name { text-decoration: underline; text-decoration-color: var(--wl-hair); text-underline-offset: 0.2em; transition: color 0.18s, text-decoration-color 0.18s; }
a.wl-lineage-name:hover { color: var(--wl-spot); text-decoration-color: currentColor; }
.wl-lineage-who { font-family: var(--wl-mono); font-size: 0.75rem; line-height: 1.5; color: var(--wl-muted); }
.wl-lineage-list .is-now .wl-emblem { outline-color: var(--wl-spot); box-shadow: 2px 2px 0 var(--wl-spot); }
.wl-lineage-list .is-now .wl-lineage-name { color: var(--wl-spot); }
.wl-lineage > .wl-cap { margin-top: 1.5rem; }
.wl-js .wl-lineage:not(.is-in) .wl-lineage-list::before { transform: scaleY(0); }
.wl-js .wl-lineage:not(.is-in) li { opacity: 0; transform: translateX(-0.5rem); }
.wl-js .wl-lineage:not(.is-in) .wl-emblem path { stroke-dashoffset: 1; }
.wl-js .wl-lineage:not(.is-in) .wl-emblem circle { opacity: 0; }

/* Fig. 3 on the bIQ page: the four kinds drawn in full, each beside what it asks and why. */
.wl-featured { grid-column: 1 / -1; display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .wl-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 3.5rem; } }
.wl-feature { display: grid; gap: 1.25rem; align-content: start; padding-top: 1.25rem; border-top: 1px solid var(--wl-ink); }
@media (min-width: 560px) and (max-width: 899px), (min-width: 1180px) {
  .wl-feature { grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); gap: 1.5rem; }
}
.wl-feature .wl-sketch { margin: 4px; }
.wl-feature .wl-sketch-stem { height: 10rem; }
.wl-feature-text .wl-p { margin-top: 0.5rem; font-size: 1.0625rem; }
.wl-feature-text .wl-kind-closest { margin-top: 0.75rem; }
.wl-featured > .wl-cap { grid-column: 1 / -1; margin-top: 0; }
.wl-kind-closest a { color: var(--wl-ink-2); text-decoration: underline; text-decoration-color: var(--wl-hair); text-underline-offset: 0.2em; transition: color 0.18s, text-decoration-color 0.18s; }
.wl-kind-closest a:hover { color: var(--wl-spot); text-decoration-color: currentColor; }

/* The bIQ page's catalogue: every kind of puzzle, folded away until asked for. */
.wl-catalog { grid-column: 1 / -1; border-top: 1px solid var(--wl-ink); border-bottom: 1px solid var(--wl-ink); }
.wl-catalog-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.wl-catalog-summary::-webkit-details-marker { display: none; }
.wl-catalog-summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--wl-mono);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--wl-spot);
  transition: transform 0.35s var(--ease-out);
}
.wl-catalog[open] > .wl-catalog-summary::after { transform: rotate(45deg); }
.wl-catalog-summary:hover { color: var(--wl-spot); }
.wl-catalog-summary:focus-visible { outline: 2px solid var(--wl-spot); outline-offset: 4px; }
/* Opens smoothly where the browser can animate to the content's height. */
.wl-catalog::details-content { height: 0; overflow: clip; transition: height 0.6s var(--ease-out), content-visibility 0.6s allow-discrete; }
.wl-catalog[open]::details-content { height: auto; }
@supports (interpolate-size: allow-keywords) { .wl-catalog { interpolate-size: allow-keywords; } }
.wl-catalog-body { padding: 0.5rem 0 2rem; }
.wl-catalog-group { margin: 1.75rem 0 0.75rem; font-family: var(--wl-mono); font-size: 0.8125rem; font-weight: 400; color: var(--wl-spot); }
.wl-catalog-list { display: grid; gap: 0; }
@media (min-width: 760px) { .wl-catalog-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; } }
.wl-kind { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; align-items: start; padding: 0.875rem 0; border-top: 1px solid var(--wl-hair); }
.wl-kind-pic { display: grid; place-items: center; height: 5.5rem; padding: 0.25rem; background: #f9f6ee; border-radius: 3px; }
.wl-kind-pic .wl-plate-svg { max-width: 100%; max-height: 100%; width: auto; height: 100%; }
.wl-kind-level path { fill: none; stroke: #1c1a16; stroke-width: 1.2; }
.wl-kind-level .is-box { fill: #c9b99a; stroke: #1c1a16; stroke-width: 1.2; }
.wl-kind-level .is-star { fill: #c63d1c; stroke: none; }
.wl-kind-name { font-size: 1.125rem; font-weight: 700; line-height: 1.25; }
.wl-kind-asks { margin-top: 0.25rem; font-size: 1rem; line-height: 1.45; color: var(--wl-ink-2); }
.wl-kind-closest { margin-top: 0.375rem; font-family: var(--wl-mono); font-size: 0.75rem; line-height: 1.5; color: var(--wl-muted); }

/* Can the curve be rigged? The figure: flagged answers leave the curve for the tray. */
.wl-rig-cols { grid-column: 1 / -1; display: grid; gap: 2rem; }
@media (min-width: 900px) { .wl-rig-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }
.wl-rig-cols article { padding-top: 1rem; border-top: 1px solid var(--wl-hair); }
.wl-rig-cols .wl-p { margin-top: 0.625rem; font-size: 1.0625rem; }
.wl-aside-svg { width: 100%; height: auto; overflow: visible; }
.wl-tray { fill: none; stroke: var(--wl-muted); stroke-width: 1; stroke-dasharray: 4 4; }
.wl-aside-dot { fill: var(--wl-ink); transform: translate(var(--x), var(--y)); }
.wl-aside-dot.is-flag {
  fill: var(--wl-paper);
  stroke: var(--wl-spot);
  stroke-width: 2;
  transform: translate(var(--tx), var(--ty));
  transition: transform 1.1s var(--ease-out) var(--d);
}
.wl-js .wl-aside:not(.is-in) .wl-aside-dot.is-flag { transform: translate(var(--x), var(--y)); }

/* ─── The visitors' bIQ page ───────────────────────────────────────────── */

.wl-doc-head { padding: 3rem 0 3.5rem; }
.wl-doc-kicker { font-family: var(--wl-mono); font-size: 0.75rem; color: var(--wl-muted); }
.wl-doc-kicker a { text-decoration: underline; text-underline-offset: 0.2em; }
.wl-doc-title { margin-top: 1rem; font-size: clamp(3rem, 9vw, 5.5rem); }
.wl-doc-head .wl-lede { max-width: 42rem; animation: none; }
.wl-doc-part { display: grid; gap: 2.5rem; align-items: start; padding: 3rem 0 4rem; }
@media (min-width: 900px) { .wl-doc-part { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4.5rem; padding: 4rem 0 5rem; } }
.wl-doc-part .wl-copy .wl-p + .wl-p { margin-top: 1rem; }
.wl-doc-part > .wl-plates { grid-column: 1 / -1; margin-top: 0; }
.wl-doc-cols { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .wl-doc-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; } }

.wl-estimate-svg, .wl-ages-svg { width: 100%; height: auto; overflow: visible; }
.wl-axis-line { stroke: var(--wl-ink); stroke-width: 1; }
.wl-mid-line { stroke: var(--wl-muted); stroke-width: 1; stroke-dasharray: 3 4; }
.wl-axis-text { font-family: var(--wl-mono); font-size: 12px; fill: var(--wl-muted); text-anchor: middle; }
.wl-band { fill: var(--wl-spot); opacity: 0.16; }
.wl-est { fill: var(--wl-spot); }
.wl-est-text { font-family: var(--wl-serif); font-size: 24px; font-weight: 700; fill: var(--wl-ink); text-anchor: middle; }
.wl-answer { fill: none; stroke: var(--wl-ink); stroke-width: 1.5; transition: opacity 0.3s; }
.wl-answer.is-right { fill: var(--wl-ink); }
.wl-estimate.is-playing .wl-answer:not(.is-shown) { opacity: 0; }

.wl-age { transform: translateX(var(--dx)); transition: transform 1.6s cubic-bezier(0.65, 0, 0.35, 1); }
.wl-ages.is-aligned .wl-age { transform: none; }
.wl-age-curve { fill: none; stroke-width: 2.25; }
.wl-age.is-a .wl-age-curve { stroke: var(--wl-ink); }
.wl-age.is-b .wl-age-curve { stroke: var(--wl-spot); }
.wl-age.is-c .wl-age-curve { stroke: var(--wl-muted); stroke-dasharray: 6 5; }
.wl-legend { display: inline-block; width: 1.4em; margin: 0 0.3em 0 0.1em; vertical-align: 0.3em; border-top: 2.25px solid var(--wl-ink); }
.wl-legend.is-b { border-top-color: var(--wl-spot); }
.wl-legend.is-c { border-top: 2.25px dashed var(--wl-muted); }

.wl-faq { grid-template-columns: 1fr; }
.wl-faq-list { display: grid; gap: 2rem 3rem; }
@media (min-width: 900px) { .wl-faq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wl-faq-item { padding-top: 1rem; border-top: 1px solid var(--wl-hair); }
.wl-faq-item dd { margin-top: 0.5rem; font-size: 1.0625rem; }

.wl-sources { grid-template-columns: 1fr; }
.wl-refs { list-style: decimal; padding-left: 1.5rem; font-size: 1rem; line-height: 1.5; color: var(--wl-ink-2); }
@media (min-width: 900px) { .wl-refs { columns: 2; column-gap: 3rem; } }
.wl-refs li { margin-bottom: 0.625rem; padding-left: 0.25rem; break-inside: avoid; }
.wl-refs li::marker { font-family: var(--wl-mono); font-size: 0.75rem; color: var(--wl-muted); }
.wl-refs-note { margin-top: 1.5rem; max-width: 40rem; }

/* ─── Reveal on scroll (only once the script runs) ─────────────────────── */

.wl-js [data-reveal] {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.9s var(--ease-out) var(--d, 0ms), transform 1s var(--ease-out) var(--d, 0ms);
}
.wl-js [data-reveal].is-in { opacity: 1; transform: none; }

/* ─── The pages an email's link opens ──────────────────────────────────── */

.wl-status { display: grid; place-items: center; min-height: calc(100svh - 12rem); padding: 3rem 1rem; font-family: var(--wl-serif); }
.wl-status-card {
  display: grid;
  justify-items: start;
  gap: 1rem;
  width: 100%;
  max-width: 32rem;
  padding: 1.75rem 0 2rem;
  border-top: 3px double var(--wl-ink);
  border-bottom: 1px solid var(--wl-ink);
  animation: wl-fade 0.7s var(--ease-out) both;
}
.wl-status-mark { display: block; color: var(--wl-spot); }
.wl-status-mark svg { width: 3rem; height: 3rem; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.wl-status-mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: wl-draw 0.9s cubic-bezier(0.45, 0, 0.2, 1) 0.2s forwards; }
.wl-status-title { font-size: clamp(2rem, 7vw, 2.75rem); line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.wl-status-card .wl-p { font-size: 1.1875rem; }
.wl-status-card .wl-fine { margin: 0; }
.wl-status-form { width: 100%; margin-top: 0.5rem; }
.wl-status-form.is-quiet { margin-top: 0.25rem; font-size: 1rem; color: var(--wl-muted); }
.wl-status-form.is-quiet .wl-link { color: var(--wl-muted); }
.wl-link-btn {
  display: inline-flex;
  align-items: center;
  height: 3rem;
  margin-top: 0.5rem;
  padding: 0 1.5rem;
  border-radius: 2px;
  background: var(--wl-ink);
  color: var(--wl-paper);
  font-size: 1.0625rem;
  font-weight: 600;
  transition: background-color 0.18s;
}
.wl-link-btn:hover { background: var(--wl-spot); }

/* ─── Motion ───────────────────────────────────────────────────────────── */

@keyframes wl-rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes wl-fade { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: none; } }
@keyframes wl-draw { to { stroke-dashoffset: 0; } }
@keyframes wl-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-0.3rem); opacity: 1; } }
@keyframes wl-shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes wl-scroll { to { transform: translateX(-50%); } }
@keyframes wl-progress { to { transform: scaleX(1); } }
@keyframes wl-thump {
  0%, 70%, 100% { transform: translate(-50%, -50%) rotate(-7deg) scale(1); }
  78% { transform: translate(-50%, -50%) rotate(-7deg) scale(1.08); }
  86% { transform: translate(-50%, -50%) rotate(-7deg) scale(0.98); }
}

/* ─── The founders' Penny Black ───────────────────────────────────────────
   Under the hero's form, the stamp everyone on the list gets (a tap brings it forward,
   components/badge-viewer.js); on the confirmation, theirs, arriving on the page; and the
   dialog's words printed on the paper. */

.wl-founder-note {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  max-width: 30rem;
  margin-top: 1.25rem;
  padding: 0.625rem 0.75rem 0.625rem 0.5rem;
  border-top: 1px solid var(--wl-hair);
  font-family: var(--wl-serif);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--wl-ink-2);
  text-decoration: none;
}
.wl-founder-stamp {
  flex: none;
  width: 4.25rem;
  line-height: 0;
  transform: rotate(-4deg);
  filter: drop-shadow(0 2px 3px rgb(28 26 22 / 0.22));
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.wl-founder-stamp svg { display: block; width: 100%; height: auto; }
.wl-founder-note:hover .wl-founder-stamp, .wl-founder-note:focus-visible .wl-founder-stamp { transform: rotate(2deg) translateY(-3px) scale(1.04); }
.wl-founder-note.is-lifted .wl-founder-stamp { visibility: hidden; }
.wl-founder-text b { font-weight: 600; color: var(--wl-ink); }
.wl-founder-more { color: var(--wl-spot); text-decoration: underline; text-underline-offset: 0.18em; white-space: nowrap; }
.wl-founder-note:focus-visible { outline: 2px solid var(--wl-ink); outline-offset: 3px; }

.wl-founder { display: grid; justify-items: center; gap: 1.25rem; width: 100%; margin: 0.75rem 0 0.25rem; }
.wl-founder .badge-stage { width: min(62vw, 15rem); animation: wl-founder-in 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s both; }
.wl-founder-words { display: grid; gap: 0.375rem; text-align: center; animation: wl-fade 0.6s ease 0.85s both; }
.wl-founder-kicker { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wl-muted); }
.wl-founder-name { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--wl-ink); }
.wl-founder-words .wl-p { font-size: 1.0625rem; }
@keyframes wl-founder-in {
  from { opacity: 0; transform: translateY(1.5rem) rotate(-9deg) scale(0.86); }
  60% { opacity: 1; transform: translateY(-0.25rem) rotate(2deg) scale(1.02); }
  to { opacity: 1; transform: none; }
}

.is-waitlist .badge-dialog .badge-words {
  border-radius: 2px;
  border-top: 3px double var(--wl-ink);
  background: var(--wl-paper);
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.35);
  font-family: var(--wl-serif);
}
.is-waitlist .badge-dialog .badge-kicker { color: var(--wl-muted); }
.is-waitlist .badge-dialog .badge-name { font-family: var(--wl-serif); color: var(--wl-ink); }
.is-waitlist .badge-dialog .badge-why { color: var(--wl-ink); }
.is-waitlist .badge-dialog .badge-about { color: var(--wl-ink-2); }

/* Gentler, not gone: shorter moves and fades instead of travel. */
@media (prefers-reduced-motion: reduce) {
  .wl-line > span, .wl-lede, .wl-form, .wl-board, .wl-status-card { animation-duration: 0.01s; animation-delay: 0s; }
  .wl-track { animation-duration: 300s; }
  .wl-js [data-reveal] { transform: none; transition-duration: 0.4s; }
  .wl-crowd-dot { transition-duration: 0.4s; }
  .wl-stamp { animation: none; }
  .wl-scene, .wl-screen-feed, .wl-sheet { transition-duration: 0.01s; }
  .wl-take-light, .wl-take-person { animation: none; }
  .wl-lineage-list::before, .wl-lineage-list li, .wl-emblem path { transition-duration: 0.3s; transition-delay: 0s; }
  .wl-founder .badge-stage, .wl-founder-words { animation: wl-fade 0.3s ease both; }
  .wl-founder-stamp { transition: none; }
}
