/* Cryptic Inkling waitlist page. Tokens and components mirror web/src/styles.css. */

/* ============ font fallbacks ============ */
@font-face {
  font-family: "Fraunces fallback";
  src: local("Georgia");
  size-adjust: 105.2%;
  ascent-override: 92.96%;
  descent-override: 24.24%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Fraunces large fallback";
  src: local("Georgia");
  size-adjust: 99.88%;
  ascent-override: 97.91%;
  descent-override: 25.53%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Instrument Sans fallback";
  src: local("Arial"), local("Helvetica");
  size-adjust: 101.72%;
  ascent-override: 95.37%;
  descent-override: 24.57%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Kalam fallback";
  src: local("Arial"), local("Helvetica");
  size-adjust: 101.22%;
  ascent-override: 105.02%;
  descent-override: 52.46%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Special Elite fallback";
  src: local("Courier New"), local("Courier");
  size-adjust: 97.35%;
  ascent-override: 72.23%;
  descent-override: 30.5%;
  line-gap-override: 0%;
}

/* ============ tokens ============ */
:root {
  color-scheme: light;
  --paper: #fffbf3;
  --paper-card: #fffdf8;
  --paper-tint: #fbf3e4;
  --sheet: #fff;
  --ink: #1c1f3b;
  --ink-fixed: #1c1f3b;
  --biro: #2a3a8c;
  --muted: #4e4a5e;
  --line: rgba(28, 31, 59, 0.14);
  --line-strong: rgba(28, 31, 59, 0.28);
  --control-line: color-mix(in srgb, var(--ink) 55%, transparent);
  --teal: #12b5a8;
  --teal-deep: #0b6f68;
  --coral: #ff6a55;
  --coral-deep: #c23b28;
  --sun: #ffc93c;
  --sun-deep: #8a6200;
  --violet: #7c5cff;
  --violet-deep: #5337d6;
  --red-pen: #d7322a;

  --teal-tint: rgba(18, 181, 168, 0.14);
  --coral-tint: rgba(255, 106, 85, 0.14);
  --sun-tint: rgba(255, 201, 60, 0.3);
  --violet-tint: rgba(124, 92, 255, 0.12);
  --highlighter: rgba(255, 201, 60, 0.85);

  --bloom-strength: 1;
  --wash-opacity: 0.75;
  --hl-opacity: 0.85;
  --otto-halo: none;
  --bloom-blend: normal;

  --display: "Fraunces", "Fraunces fallback", Georgia, serif;
  --display-large: "Fraunces", "Fraunces large fallback", Georgia, serif;
  --body: "Instrument Sans", "Instrument Sans fallback", system-ui, sans-serif;
  --hand: "Kalam", "Kalam fallback", "Comic Sans MS", cursive;
  --stamp-font: "Special Elite", "Special Elite fallback", ui-monospace, monospace;

  --radius: 18px;
  --radius-sm: 12px;
  --ease-pop: cubic-bezier(0.3, 0.7, 0.2, 1.3);
  --ease-out: cubic-bezier(0.3, 0.7, 0.2, 1);
  --wrap: 1180px;
  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #14162a;
    --paper-card: #1c1f38;
    --paper-tint: #20233f;
    --sheet: #232644;
    --ink: #f4efe4;
    --biro: #aab6ff;
    --muted: #bdb7cc;
    --line: rgba(244, 239, 228, 0.16);
    --line-strong: rgba(244, 239, 228, 0.3);
    --teal-deep: #5fd8cd;
    --coral-deep: #ff9a8a;
    --sun-deep: #ffd56b;
    --violet-deep: #b9a8ff;
    --red-pen: #ff7366;
    --sun-tint: rgba(255, 201, 60, 0.18);
    --bloom-strength: 0.5;
    --wash-opacity: 1;
    --hl-opacity: 1;
    --otto-halo: drop-shadow(0 0 1px rgba(244, 239, 228, 0.9)) drop-shadow(0 0 6px rgba(244, 239, 228, 0.18));
    --bloom-blend: screen;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #14162a;
  --paper-card: #1c1f38;
  --paper-tint: #20233f;
  --sheet: #232644;
  --ink: #f4efe4;
  --biro: #aab6ff;
  --muted: #bdb7cc;
  --line: rgba(244, 239, 228, 0.16);
  --line-strong: rgba(244, 239, 228, 0.3);
  --teal-deep: #5fd8cd;
  --coral-deep: #ff9a8a;
  --sun-deep: #ffd56b;
  --violet-deep: #b9a8ff;
  --red-pen: #ff7366;
  --sun-tint: rgba(255, 201, 60, 0.18);
  --bloom-strength: 0.5;
  --wash-opacity: 1;
  --hl-opacity: 1;
  --otto-halo: drop-shadow(0 0 1px rgba(244, 239, 228, 0.9)) drop-shadow(0 0 6px rgba(244, 239, 228, 0.18));
  --bloom-blend: screen;
}

/* ============ base ============ */
* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  overflow-x: hidden;
}

a {
  color: var(--biro);
  text-underline-offset: 3px;
}

button,
input {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--violet-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

main:focus {
  outline: none;
}

.skip {
  position: absolute;
  z-index: 50;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.ink-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.page {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter) 24px;
}

/* ============ ink background ============ */
.ink-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
  mix-blend-mode: var(--bloom-blend);
}

.bloom {
  position: absolute;
  overflow: visible;
  will-change: transform;
  animation: drift 40s ease-in-out infinite alternate;
}

.bloom-teal { color: var(--teal); }
.bloom-sun { color: var(--sun); }
.bloom-coral { color: var(--coral); }
.bloom-violet { color: var(--violet); }

.b1 { width: 620px; height: 620px; top: -260px; left: -250px; opacity: calc(0.26 * var(--bloom-strength)); }
.b2 { width: 520px; height: 520px; top: -60px; right: -240px; opacity: calc(0.34 * var(--bloom-strength)); animation-duration: 46s; animation-delay: -12s; }
.b3 { width: 460px; height: 460px; top: 52vh; right: -260px; opacity: calc(0.18 * var(--bloom-strength)); animation-duration: 52s; }
.b4 { width: 560px; height: 560px; bottom: -300px; left: -260px; opacity: calc(0.16 * var(--bloom-strength)); animation-duration: 47s; animation-delay: -20s; }
.b5 { width: 380px; height: 380px; bottom: -200px; right: 12%; opacity: calc(0.16 * var(--bloom-strength)); animation-duration: 38s; animation-delay: -6s; }

@keyframes drift {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(24px, -18px) rotate(6deg) scale(1.05); }
  100% { transform: translate(-16px, 20px) rotate(-4deg) scale(0.98); }
}

.logo-mark,
.hero-otto,
.video-otto,
.waitlist-otto,
.foot-mascot,
.form-done img {
  filter: var(--otto-halo);
}

/* ============ header + wordmark ============ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 24px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.logo-mark {
  display: block;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.logo-word {
  position: relative;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font: 700 28px/1 var(--display);
  letter-spacing: -0.02em;
}

.logo-cell {
  position: relative;
  z-index: 0;
  display: inline-grid;
  place-items: center;
  width: 0.9em;
  height: 1em;
  margin: 0 -0.05em 0 0;
  border: 1.5px solid rgba(28, 27, 46, 0.38);
  color: var(--ink-fixed);
  line-height: 1;
}

.logo-cell > span {
  font-size: 0.86em;
  transform: translateY(0.03em);
}

.logo-c {
  background: var(--sun);
}

.logo-i {
  margin-left: 0.03em;
  margin-right: -0.07em;
  background: var(--teal);
}

.logo-link {
  position: absolute;
  left: 0.4em;
  top: 0.92em;
  width: calc(100% - 0.4em);
  height: 0.4em;
  overflow: visible;
  fill: none;
  stroke: var(--red-pen);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.logo-link path {
  vector-effect: non-scaling-stroke;
}

/* ============ buttons, stamps, asides ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 999px;
  font: 700 16px/1.2 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.btn-primary {
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 4px 0 var(--teal);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--teal);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--teal);
}

.btn-primary:disabled {
  opacity: 0.75;
  cursor: progress;
}

.btn-ghost {
  border: 2px solid var(--ink);
  background: var(--paper-card);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--sheet);
  transform: translateY(-2px);
}

.btn-small {
  white-space: nowrap;
  min-height: 44px;
  padding: 8px 18px;
  font-size: 15px;
}

.stamp {
  display: inline-block;
  padding: 2px 10px;
  border: 3px double var(--coral-deep);
  border-radius: 5px;
  background: color-mix(in srgb, var(--paper-card) 75%, transparent);
  color: var(--coral-deep);
  font: 400 13px/1.4 var(--stamp-font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-8deg);
}

.aside {
  display: inline-block;
  margin-bottom: 6px;
  font: 700 18px/1.2 var(--hand);
  color: var(--biro);
  transform: rotate(-2deg);
  transform-origin: left;
}

.accent-sun.accent-sun { --accent: var(--sun); --accent-deep: var(--sun-deep); --tint: var(--sun-tint); }
.accent-teal.accent-teal { --accent: var(--teal); --accent-deep: var(--teal-deep); --tint: var(--teal-tint); }
.accent-coral.accent-coral { --accent: var(--coral); --accent-deep: var(--coral-deep); --tint: var(--coral-tint); }
.accent-violet.accent-violet { --accent: var(--violet); --accent-deep: var(--violet-deep); --tint: var(--violet-tint); }

.panel-num {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  font: 700 21px/1 var(--hand);
  color: var(--ink-fixed);
}

.panel-num .wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--accent, var(--sun));
  opacity: var(--wash-opacity);
}

.panel-num span {
  position: relative;
}

.card-kicker {
  display: block;
  font: 700 16px/1.2 var(--hand);
  color: var(--accent-deep, var(--biro));
}

/* ============ sections ============ */
section {
  position: relative;
  scroll-margin-top: 12px;
}

h2 {
  font: 800 clamp(32px, 6.4vw, 52px)/1.04 var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 96;
  letter-spacing: -0.02em;
}

.section-head {
  margin-bottom: 26px;
}

.section-intro {
  max-width: 48ch;
  margin: 12px 0 0;
  font-size: 18px;
  color: var(--muted);
}

.section-intro em {
  font-family: var(--display);
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
}

/* ============ hero ============ */
.hero {
  display: grid;
  gap: 40px;
  align-items: center;
  padding: 24px 0 48px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font: 700 18px/1.2 var(--hand);
  color: var(--teal-deep);
  transform: rotate(-1.5deg);
  transform-origin: left;
}

.hero h1 {
  margin: 0 0 24px;
  font: 800 clamp(42px, 10.5vw, 80px)/0.98 var(--display-large);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  letter-spacing: -0.025em;
}

.hl {
  position: relative;
  z-index: 0;
  color: var(--ink-fixed);
  white-space: nowrap;
}

.hl::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0.44em -0.1em 0.02em -0.08em;
  border-radius: 0.12em 0.3em 0.18em 0.35em;
  background: var(--sun);
  opacity: var(--hl-opacity);
  transform: rotate(-1.2deg);
  transform-origin: left;
  animation: sweep 0.7s 0.4s var(--ease-out) both;
}

@keyframes sweep {
  from { transform: rotate(-1.2deg) scaleX(0); }
  to { transform: rotate(-1.2deg) scaleX(1); }
}

.pen {
  position: relative;
  font-style: italic;
  font-weight: 500;
  color: var(--violet-deep);
  white-space: nowrap;
}

.pen svg {
  position: absolute;
  left: -4%;
  bottom: -0.16em;
  width: 100%;
  height: 0.34em;
  overflow: visible;
}

.pen path {
  fill: none;
  stroke: var(--red-pen);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 0.8s 1s ease-out forwards;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.lede {
  max-width: 38ch;
  margin: 0 0 28px;
  font-size: 19px;
  color: var(--muted);
}

.lede strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ext-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0;
  padding: 6px 14px 6px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-card);
  box-shadow: 3px 3px 0 var(--teal);
  font: 600 15px/1.2 var(--body);
}

.ext-badge svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.start-note {
  margin: 10px 0 0;
  font: 700 19px/1.2 var(--hand);
  color: var(--coral-deep);
}

/* shared clue pieces: definition highlight, labels, answer cells */
.w-def {
  position: relative;
  z-index: 0;
  color: var(--ink-fixed);
  white-space: nowrap;
}

.w-def::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0.34em -0.1em 0 -0.1em;
  border-radius: 0.12em 0.3em 0.18em 0.35em;
  background: var(--sun);
  opacity: var(--hl-opacity);
  transform: rotate(-1deg);
}

.lbl {
  position: absolute;
  left: 50%;
  top: calc(100% + 3px);
  font: 700 15px/1 var(--hand);
  white-space: nowrap;
  color: var(--biro);
  transform: translate(-50%, 0) rotate(-3deg);
}

.enum {
  color: var(--muted);
  font-weight: 400;
}

.cells {
  display: flex;
}

.cells > span {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  aspect-ratio: 1;
  margin-left: -2px;
  border: 2px solid var(--ink);
  background: var(--sheet);
  font: 700 21px/1 var(--hand);
}

.cells > span:first-child {
  margin-left: 0;
}

.cells > .numbered::before {
  content: "3";
  position: absolute;
  top: 1px;
  left: 3px;
  font: 600 8px/1 var(--body);
  color: var(--muted);
}

/* hero illustration: newspapers, a crossword page, and the side panel beside it */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.hero-art {
  --np-paper: #f3eee1;
  --np-ink: #1d1d1f;
  --np-grey: rgba(29, 29, 31, 0.2);
  --np-shadow: rgba(28, 31, 59, 0.16);
  --site-paper: #fdfcf8;
  --site-cell: #fff;
  --site-hl: rgba(255, 201, 60, 0.42);
  --site-cur: rgba(255, 201, 60, 0.95);
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 16px auto 0;
  container-type: inline-size;
}

.scene {
  --cycle: 22s;
  --start: 2s;
  position: relative;
  padding: 21.6em 0 4.4em;
  font-size: clamp(5.6px, calc(100cqw / 64), 10.8px);
  line-height: 1.3;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-art {
    --np-paper: #d9d2c1;
    --np-shadow: rgba(0, 0, 0, 0.35);
    --site-paper: #e2ddd0;
    --site-cell: #eeeae0;
    --site-hl: rgba(255, 201, 60, 0.5);
  }
}

:root[data-theme="dark"] .hero-art {
  --np-paper: #d9d2c1;
  --np-shadow: rgba(0, 0, 0, 0.35);
  --site-paper: #e2ddd0;
  --site-cell: #eeeae0;
  --site-hl: rgba(255, 201, 60, 0.5);
}

/* newspapers */
.np {
  --r: 0deg;
  position: absolute;
  width: 31em;
  height: 44em;
  padding: 1.1em 1.5em;
  border: 1px solid rgba(29, 29, 31, 0.3);
  background:
    radial-gradient(ellipse at 18% 8%, rgba(255, 255, 255, 0.55), transparent 55%),
    radial-gradient(ellipse at 90% 80%, rgba(120, 100, 60, 0.08), transparent 60%),
    repeating-linear-gradient(0deg, rgba(29, 29, 31, 0.018) 0 1px, transparent 1px 3px),
    var(--np-paper);
  box-shadow: 0.3em 0.4em 0 var(--np-shadow);
  color: var(--np-ink);
  transform: rotate(var(--r));
  animation: settle 0.7s var(--ease-out) both;
}

.np p {
  margin: 0;
}

.np-a { --r: -5deg; left: 0; top: 0.8em; animation-delay: 0.05s; }
.np-b { --r: 4deg; left: 33em; top: 0; animation-delay: 0.12s; }
.np-c { --r: -1.5deg; left: -0.5em; top: 8em; animation-delay: 0.19s; }
.np-d { --r: 3deg; left: 32em; top: 8.6em; animation-delay: 0.26s; }

@keyframes settle {
  from { opacity: 0; transform: translateY(-1.5em) rotate(calc(var(--r) * 2)); }
  to { opacity: 1; transform: rotate(var(--r)); }
}

.np-date {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  padding: 0.25em 0;
  border-bottom: 1px solid var(--np-ink);
  font: 600 0.95em/1.2 var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.np-mast {
  padding: 0.12em 0 0.18em;
  border-bottom: 0.14em double var(--np-ink);
  border-bottom-width: 0.16em;
  font: 900 3.2em/1.05 var(--display-large);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144;
  letter-spacing: -0.035em;
  text-align: center;
  white-space: nowrap;
}

.np-the {
  margin-right: 0.08em;
  font-size: 0.5em;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: 0.5em;
}

.np-lead {
  padding: 0.35em 0 0.25em;
  font: 800 1.9em/1.02 var(--display);
  font-variation-settings: "SOFT" 0, "opsz" 72;
  letter-spacing: -0.02em;
}

.np-cols {
  display: block;
  height: 26em;
  margin-top: 0.5em;
  background:
    repeating-linear-gradient(90deg, transparent 0 8.6em, var(--np-paper) 8.6em 9.6em),
    repeating-linear-gradient(180deg, var(--np-grey) 0 0.36em, transparent 0.36em 0.9em);
}

/* the browser window */
.browser {
  position: relative;
  z-index: 1;
  margin: 0 1.8em 0 0;
  border: 2px solid var(--ink);
  border-radius: 1.2em;
  background: var(--paper-card);
  box-shadow: 0.9em 1em 0 -0.2em rgba(18, 181, 168, 0.22);
}

.br-tabs {
  display: flex;
  align-items: flex-end;
  gap: 1em;
  padding: 0.8em 1.1em 0;
  border-radius: 1.1em 1.1em 0 0;
  background: var(--paper-tint);
  border-bottom: 1.5px solid var(--line-strong);
}

.br-dots {
  display: flex;
  gap: 0.45em;
  align-self: center;
  padding-bottom: 0.7em;
}

.br-dots i {
  width: 0.95em;
  height: 0.95em;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--coral);
}

.br-dots i:nth-child(2) { background: var(--sun); }
.br-dots i:nth-child(3) { background: var(--teal); }

.br-tab {
  display: flex;
  align-items: center;
  gap: 0.6em;
  min-width: 0;
  max-width: 32em;
  margin-bottom: -1.5px;
  padding: 0.6em 1em 0.65em;
  border: 1.5px solid var(--line-strong);
  border-bottom-color: var(--paper-card);
  border-radius: 0.7em 0.7em 0 0;
  background: var(--paper-card);
  font: 600 1.15em/1.2 var(--body);
}

.br-fav {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.35em;
  height: 1.35em;
  border-radius: 0.2em;
  background: var(--np-ink);
  color: var(--np-paper);
  font: 900 0.85em/1 var(--display);
}

.br-tab-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.br-plus {
  align-self: center;
  padding-bottom: 0.5em;
  font: 400 1.6em/1 var(--body);
  color: var(--muted);
}

.br-bar {
  display: flex;
  align-items: center;
  gap: 0.9em;
  padding: 0.65em 1.1em;
}

.br-nav {
  font: 400 1.8em/1 var(--body);
  letter-spacing: 0.2em;
  color: var(--muted);
}

.br-url {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.5em;
  min-width: 0;
  padding: 0.4em 1em;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-tint);
  font: 400 1.15em/1.2 var(--body);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}

.br-url svg {
  flex: none;
  width: 0.8em;
  height: 0.95em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.br-host {
  font-weight: 600;
  color: var(--ink);
}

.br-tools {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.6em;
}

.br-puzzle {
  width: 1.8em;
  height: 1.8em;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.br-ext {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.7em;
  height: 2.7em;
  border-radius: 50%;
  background: var(--sun-tint);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  animation: press 0.35s 1s ease-in-out both;
}

.br-ext img {
  position: relative;
  width: 1.75em;
  height: 1.75em;
  border-radius: 0.3em;
}

.br-ripple {
  position: absolute;
  inset: -0.55em;
  border: 0.2em solid var(--sun);
  border-radius: 50%;
  opacity: 0.8;
  animation: ripple 0.9s 1.05s var(--ease-out) both;
}

.br-cursor {
  position: absolute;
  z-index: 2;
  top: 1.5em;
  left: 4.1em;
  width: 1.5em;
  height: 2.1em;
  fill: #fff;
  stroke: var(--ink-fixed);
  stroke-width: 1.3;
  stroke-linejoin: round;
  filter: drop-shadow(0.1em 0.15em 0 rgba(28, 31, 59, 0.25));
  animation: cursor-in 0.6s 0.35s var(--ease-out) both;
}

.br-more {
  font: 700 1.5em/1 var(--body);
  color: var(--muted);
}

@keyframes cursor-in {
  from { opacity: 0; transform: translate(3em, 2.5em); }
  to { opacity: 1; transform: none; }
}

@keyframes press {
  50% { transform: scale(0.84); }
}

@keyframes ripple {
  from { opacity: 1; transform: scale(0.4); }
  to { opacity: 0.8; transform: scale(1); }
}

.br-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 25em;
  align-items: start;
  border-top: 1.5px solid var(--ink);
  border-radius: 0 0 1.1em 1.1em;
  background: var(--site-paper);
}

/* the newspaper's crossword page */
.site {
  position: relative;
  padding: 1.1em 1.4em 1.5em;
  color: var(--np-ink);
}

.site-mast {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1em;
  padding-bottom: 0.4em;
  border-bottom: 0.2em solid var(--np-ink);
}

.site-name {
  font: 900 2.3em/1 var(--display-large);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 0.9em;
  font: 600 0.95em/1 var(--body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav .is-on {
  text-decoration: underline 0.18em;
  text-underline-offset: 0.35em;
}

.site-title {
  margin: 0.7em 0 0;
  font: 800 1.9em/1.1 var(--display);
  font-variation-settings: "SOFT" 0, "opsz" 48;
  letter-spacing: -0.02em;
}

.site-title span {
  font-weight: 400;
}

.site-by {
  margin: 0 0 0.9em;
  font: 400 1.05em/1.3 var(--body);
  color: rgba(29, 29, 31, 0.65);
}

.site-play {
  display: grid;
  grid-template-columns: 16.8em minmax(0, 1fr);
  gap: 1.2em;
  align-items: start;
}

.xw {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.xw-bg { fill: var(--site-cell); }
.xw-hl { fill: var(--site-hl); }
.xw-cur { fill: var(--site-cur); }
.xw-blk { fill: var(--np-ink); }
.xw-lines { fill: none; stroke: var(--np-ink); stroke-width: 0.6; }
.xw-frame { fill: none; stroke: var(--np-ink); stroke-width: 1.6; }
.xw-num { font: 600 5.6px var(--body); fill: var(--np-ink); }
.xw-let { font: 600 12px var(--body); fill: #2b3a7a; text-anchor: middle; }

.site-clues p {
  display: grid;
  grid-template-columns: 1.7em minmax(0, 1fr);
  margin: 0 -0.4em 0.3em;
  padding: 0.12em 0.4em;
  border-radius: 0.3em;
  font: 400 1.1em/1.3 var(--body);
}

.site-clues .site-dir {
  display: block;
  margin-bottom: 0.4em;
  padding-bottom: 0.2em;
  border-bottom: 1px solid var(--np-ink);
  border-radius: 0;
  font: 800 1.3em/1.1 var(--display);
}

.site-clues .is-done {
  color: rgba(29, 29, 31, 0.42);
}

.site-clues .is-cur {
  background: var(--site-hl);
  font-weight: 600;
}

.site-bar {
  position: relative;
  z-index: 0;
  margin: 1em 0 0;
  padding: 0.55em 0.9em;
  border-left: 0.35em solid var(--np-ink);
  font: 600 1.45em/1.25 var(--display);
  font-variation-settings: "SOFT" 0, "opsz" 32;
}

.site-bar::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--site-hl);
  transform-origin: left;
  animation: bar-sweep 0.6s 0.9s var(--ease-out) both;
}

@keyframes bar-sweep {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.site-bar b {
  margin-right: 0.4em;
  font: 700 0.7em/1 var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 0.12em;
}

/* the Cryptic Inkling side panel, docked inside the window */
.pnl {
  position: relative;
  align-self: stretch;
  border-left: 1.5px solid var(--ink);
  border-radius: 0 0 1.1em 0;
  background: var(--paper-card);
  color: var(--ink);
  animation: panel-open 0.55s 1.3s var(--ease-out) both;
}

@keyframes panel-open {
  from { opacity: 0; clip-path: inset(0 0 0 100%); }
  to { opacity: 1; clip-path: inset(0); }
}

.pnl-head {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.75em 1.1em;
  border-bottom: 1.5px solid var(--line-strong);
  background: var(--paper-tint);
}

.pnl-head img {
  width: 1.7em;
  height: 1.7em;
  border-radius: 0.3em;
}

.pnl-name {
  font: 600 1.2em/1 var(--body);
  white-space: nowrap;
}

.pnl-chev {
  width: 0.9em;
  height: 0.6em;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pnl-close {
  margin-left: auto;
  font: 400 1.7em/1 var(--body);
  color: var(--muted);
}

.pnl-main {
  position: relative;
  padding: 1.1em 1.4em 1.5em;
}

.hero-otto {
  position: absolute;
  z-index: 3;
  top: -7.3em;
  right: 2.6em;
  width: 9.2em;
  height: auto;
}

.pnl-meta {
  margin: 0;
  font: 400 1em/1.4 var(--stamp-font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--coral-deep);
}

.pnl-clue {
  margin: 0.3em 0 1.6em;
  font: 600 1.75em/1.3 var(--display);
  font-variation-settings: "SOFT" 100, "opsz" 32;
}

.pnl-clue .w-def::before {
  inset: 0.14em -0.1em 0 -0.1em;
  transform-origin: left;
  animation: def-sweep var(--cycle) var(--start) infinite both;
}

.pnl-clue .lbl {
  font-size: 0.68em;
  animation: label-in var(--cycle) var(--start) infinite both;
}

.pw {
  position: relative;
  white-space: nowrap;
}

.pw-motor::after,
.pw-fav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.08em;
  height: 0.14em;
  border-radius: 0.1em;
  background: var(--teal);
  opacity: 0;
  transform-origin: left;
  animation: underline-in var(--cycle) var(--start) infinite both;
}

.pw-fav::after {
  background: var(--coral);
  animation-delay: calc(var(--start) + 0.15s);
}

.pw-with svg {
  position: absolute;
  inset: -0.22em -0.36em -0.1em -0.3em;
  width: calc(100% + 0.66em);
  height: calc(100% + 0.32em);
  overflow: visible;
}

.pw-with path {
  fill: none;
  stroke: var(--red-pen);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: ring-draw var(--cycle) var(--start) infinite both;
}

.pnl-stamp {
  position: absolute;
  top: 0.9em;
  right: 1.2em;
  padding: 0.1em 0.6em;
  border-width: 0.22em;
  font-size: 1em;
  opacity: 0;
  animation: stamp-land var(--cycle) var(--start) infinite both;
}

/* each step's pieces share one grid cell, so the panel never changes height */
.pnl-swap {
  display: grid;
}

.pnl-swap > * {
  grid-area: 1 / 1;
  opacity: 0;
}

.pnl-swap > .s1,
.pnl-swap > .s12 {
  opacity: 1;
}

.pnl-swap > .s1 { animation: show-1 var(--cycle) var(--d0) infinite both; }
.pnl-swap > .s12 { animation: show-12 var(--cycle) var(--d0) infinite both; }
.pnl-swap > .s2 { animation: show-2 var(--cycle) var(--d0) infinite both; }
.pnl-swap > .s3 { animation: show-3 var(--cycle) var(--d0) infinite both; }
.pnl-swap > .s4 { animation: show-4 var(--cycle) var(--d0) infinite both; }
.pnl-swap > .s5 { animation: show-5 var(--cycle) var(--d0) infinite both; }

.pnl-heads { --d0: var(--start); }
.pnl-vis { --d0: calc(var(--start) + 0.15s); }
.pnl-bodies { --d0: calc(var(--start) + 0.3s); }

.pnl-hint {
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.pnl .panel-num {
  width: 2em;
  height: 2em;
  font-size: 1.7em;
}

.pnl-kicker {
  font: 700 1.45em/1.2 var(--hand);
  color: var(--accent-deep, var(--sun-deep));
}

.pnl-vis {
  height: 5.6em;
  align-items: center;
}

.pnl-v {
  display: flex;
  align-items: center;
  gap: 1em;
}

.pnl-body {
  margin: 0.3em 0 0;
  font: 400 1.3em/1.42 var(--body);
  color: var(--muted);
}

.pnl-body strong {
  color: var(--ink);
}

.pnl-cells > span {
  width: 2.7em;
  border-width: 1.5px;
  margin-left: -1.5px;
  font-size: 1em;
}

.pnl-cells > .numbered::before {
  font-size: 0.6em;
}

.pnl-answer i {
  font: 700 1.7em/1 var(--hand);
  font-style: normal;
  opacity: 0;
  animation: letter-drop var(--cycle) var(--start) infinite both;
}

.pnl-answer > span:nth-child(-n + 3) i { color: var(--teal-deep); }
.pnl-answer > span:nth-child(n + 4) i { color: var(--coral-deep); }

.pnl-answer > span:nth-child(2) i,
.xw-ans text:nth-child(2) { animation-delay: calc(var(--start) + 0.12s); }
.pnl-answer > span:nth-child(3) i,
.xw-ans text:nth-child(3) { animation-delay: calc(var(--start) + 0.24s); }
.pnl-answer > span:nth-child(4) i,
.xw-ans text:nth-child(4) { animation-delay: calc(var(--start) + 0.36s); }
.pnl-answer > span:nth-child(5) i,
.xw-ans text:nth-child(5) { animation-delay: calc(var(--start) + 0.48s); }
.pnl-answer > span:nth-child(6) i,
.xw-ans text:nth-child(6) { animation-delay: calc(var(--start) + 0.6s); }

.pnl-pic {
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.pnl-pic .art {
  position: relative;
  width: 4.6em;
  aspect-ratio: 1;
  color: var(--ink);
}

.pnl-pic .art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.pnl-pic.pic-car .art { animation: drive-in var(--cycle) calc(var(--start) + 0.15s) infinite both; }
.pnl-pic.pic-heart .art { animation: pop-in var(--cycle) calc(var(--start) + 0.3s) infinite both; }

.pnl-pic .wash { opacity: 0.5; }
.pnl-pic.pic-car .wash { color: var(--teal); }
.pnl-pic.pic-heart .wash { color: var(--coral); }

.pnl-pic .pic-cap {
  font: 700 1.8em/1 var(--hand);
  letter-spacing: 0.06em;
}

.pnl-pic.pic-car .pic-cap { color: var(--teal-deep); }
.pnl-pic.pic-heart .pic-cap { color: var(--coral-deep); }

.pnl-v.s4 {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2em;
}

.pnl-sum {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font: 700 2.4em/1 var(--hand);
  letter-spacing: 0.06em;
}

.pnl-sum b {
  font-weight: 700;
}

.pnl-sum .t-car { animation: slide-left var(--cycle) calc(var(--start) + 0.15s) infinite both; }
.pnl-sum .t-pet { animation: slide-right var(--cycle) calc(var(--start) + 0.15s) infinite both; }

.pnl-sum i {
  font-style: normal;
  color: var(--red-pen);
  animation: plus-in var(--cycle) var(--start) infinite both;
}

.t-car { color: var(--teal-deep); }
.t-pet { color: var(--coral-deep); }

.pnl-glue {
  font: 700 1.35em/1.2 var(--hand);
  color: var(--red-pen);
  transform: rotate(-2deg);
}

/* the step pills, clicked in turn */
.pnl-steps {
  display: flex;
  gap: 0.3em;
  margin-top: 1em;
}

.pill {
  position: relative;
  isolation: isolate;
  padding: 0.3em 0.5em;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  font: 600 0.95em/1.2 var(--body);
  color: var(--muted);
  white-space: nowrap;
}

.pill.is-lock {
  border-style: dashed;
}

.pill::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1.5px;
  border: 1.5px solid var(--teal-deep);
  border-radius: inherit;
  background: var(--teal-tint);
  opacity: 0;
}

.pill::before {
  content: attr(data-l);
  position: absolute;
  z-index: 1;
  inset: -1.5px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: inherit;
  background: var(--sun);
  color: var(--ink-fixed);
  opacity: 0;
}

.p1::before { opacity: 1; animation: on-1 var(--cycle) var(--start) infinite both; }
.p2::before { animation: on-2 var(--cycle) var(--start) infinite both; }
.p3::before { animation: on-3 var(--cycle) var(--start) infinite both; }
.p4::before { animation: on-4 var(--cycle) var(--start) infinite both; }
.p5::before { animation: on-5 var(--cycle) var(--start) infinite both; }
.p1::after { animation: seen-1 var(--cycle) var(--start) infinite both; }
.p2::after { animation: seen-2 var(--cycle) var(--start) infinite both; }
.p3::after { animation: seen-3 var(--cycle) var(--start) infinite both; }
.p4::after { animation: seen-4 var(--cycle) var(--start) infinite both; }

.pill-cur {
  position: absolute;
  z-index: 2;
  right: -0.2em;
  bottom: -1.1em;
  width: 1.3em;
  height: 1.85em;
  fill: #fff;
  stroke: var(--ink-fixed);
  stroke-width: 1.3;
  stroke-linejoin: round;
  opacity: 0;
}

.p2 .pill-cur { animation: click-2 var(--cycle) var(--start) infinite both; }
.p3 .pill-cur { animation: click-3 var(--cycle) var(--start) infinite both; }
.p4 .pill-cur { animation: click-4 var(--cycle) var(--start) infinite both; }
.p5 .pill-cur { animation: click-5 var(--cycle) var(--start) infinite both; }

.xw-ans {
  font: 700 12px var(--hand);
  text-anchor: middle;
}

.xw-ans text {
  fill: #2b3a7a;
  opacity: 0;
  animation: letter-drop var(--cycle) var(--start) infinite both;
}

/* one 22s cycle: hints 1 to 4 for 4s each, the answer for 5s, then back to hint 1 */
@keyframes show-1 {
  0%, 17% { opacity: 1; transform: none; }
  18.5%, 96% { opacity: 0; transform: translateY(0.6em); }
  98.5%, 100% { opacity: 1; transform: none; }
}

@keyframes show-2 {
  0%, 18.5% { opacity: 0; transform: translateY(0.6em); }
  21%, 35.5% { opacity: 1; transform: none; }
  37%, 100% { opacity: 0; transform: none; }
}

@keyframes show-3 {
  0%, 37% { opacity: 0; transform: translateY(0.6em); }
  39.5%, 53.5% { opacity: 1; transform: none; }
  55%, 100% { opacity: 0; transform: none; }
}

@keyframes show-4 {
  0%, 55% { opacity: 0; transform: translateY(0.6em); }
  57.5%, 71.5% { opacity: 1; transform: none; }
  73%, 100% { opacity: 0; transform: none; }
}

@keyframes show-5 {
  0%, 73% { opacity: 0; transform: translateY(0.6em); }
  75.5%, 94.5% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}

@keyframes show-12 {
  0%, 35.5% { opacity: 1; transform: none; }
  37%, 96% { opacity: 0; transform: translateY(0.6em); }
  98.5%, 100% { opacity: 1; transform: none; }
}

@keyframes seen-1 {
  0%, 18% { opacity: 0; }
  19%, 94.5% { opacity: 1; }
  96%, 100% { opacity: 0; }
}

@keyframes seen-2 {
  0%, 36.5% { opacity: 0; }
  37.5%, 94.5% { opacity: 1; }
  96%, 100% { opacity: 0; }
}

@keyframes seen-3 {
  0%, 54.5% { opacity: 0; }
  55.5%, 94.5% { opacity: 1; }
  96%, 100% { opacity: 0; }
}

@keyframes seen-4 {
  0%, 72.5% { opacity: 0; }
  73.5%, 94.5% { opacity: 1; }
  96%, 100% { opacity: 0; }
}

@keyframes on-1 {
  0%, 18% { opacity: 1; }
  19%, 96% { opacity: 0; }
  97.5%, 100% { opacity: 1; }
}

@keyframes on-2 {
  0%, 18% { opacity: 0; }
  19%, 36.5% { opacity: 1; }
  37.5%, 100% { opacity: 0; }
}

@keyframes on-3 {
  0%, 36.5% { opacity: 0; }
  37.5%, 54.5% { opacity: 1; }
  55.5%, 100% { opacity: 0; }
}

@keyframes on-4 {
  0%, 54.5% { opacity: 0; }
  55.5%, 72.5% { opacity: 1; }
  73.5%, 100% { opacity: 0; }
}

@keyframes on-5 {
  0%, 72.5% { opacity: 0; }
  73.5%, 95.5% { opacity: 1; }
  96.5%, 100% { opacity: 0; }
}

@keyframes click-2 {
  0%, 14% { opacity: 0; transform: translate(1.2em, 1em); }
  16.5% { opacity: 1; transform: none; }
  17.5% { opacity: 1; transform: scale(0.8); }
  18.5% { opacity: 1; transform: none; }
  20.5%, 100% { opacity: 0; transform: none; }
}

@keyframes click-3 {
  0%, 32.5% { opacity: 0; transform: translate(1.2em, 1em); }
  35% { opacity: 1; transform: none; }
  36% { opacity: 1; transform: scale(0.8); }
  37% { opacity: 1; transform: none; }
  39%, 100% { opacity: 0; transform: none; }
}

@keyframes click-4 {
  0%, 50.5% { opacity: 0; transform: translate(1.2em, 1em); }
  53% { opacity: 1; transform: none; }
  54% { opacity: 1; transform: scale(0.8); }
  55% { opacity: 1; transform: none; }
  57%, 100% { opacity: 0; transform: none; }
}

@keyframes click-5 {
  0%, 68.5% { opacity: 0; transform: translate(1.2em, 1em); }
  71% { opacity: 1; transform: none; }
  72% { opacity: 1; transform: scale(0.8); }
  73% { opacity: 1; transform: none; }
  75%, 100% { opacity: 0; transform: none; }
}

@keyframes def-sweep {
  0%, 95% { opacity: var(--hl-opacity); transform: rotate(-1deg) scaleX(1); }
  96.5% { opacity: 0; transform: rotate(-1deg) scaleX(1); }
  97% { opacity: var(--hl-opacity); transform: rotate(-1deg) scaleX(0); }
  99.5%, 100% { opacity: var(--hl-opacity); transform: rotate(-1deg) scaleX(1); }
}

@keyframes label-in {
  0%, 95% { opacity: 1; }
  96.5%, 98.5% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes ring-draw {
  0%, 18.5% { stroke-dashoffset: 1; opacity: 1; }
  22%, 94.5% { stroke-dashoffset: 0; opacity: 1; }
  96% { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 1; opacity: 0; }
}

@keyframes stamp-land {
  0%, 22.5% { opacity: 0; transform: rotate(-24deg) scale(2); }
  24% { opacity: 1; transform: rotate(-5deg) scale(0.88); }
  24.8% { opacity: 1; transform: rotate(-9deg) scale(1.05); }
  25.5%, 94.5% { opacity: 1; transform: rotate(-8deg) scale(1); }
  96%, 100% { opacity: 0; transform: rotate(-8deg) scale(1); }
}

@keyframes underline-in {
  0%, 37.5% { opacity: 0; transform: scaleX(0); }
  40.5%, 94.5% { opacity: 1; transform: scaleX(1); }
  96%, 100% { opacity: 0; transform: scaleX(1); }
}

@keyframes drive-in {
  0%, 37.5% { opacity: 0; transform: translateX(-2.4em) rotate(-4deg); }
  40.5% { opacity: 1; transform: translateX(0.2em) rotate(1deg); }
  41.5%, 100% { opacity: 1; transform: none; }
}

@keyframes pop-in {
  0%, 38.5% { opacity: 0; transform: scale(0.4); }
  40.5% { opacity: 1; transform: scale(1.15); }
  41.5%, 100% { opacity: 1; transform: scale(1); }
}

@keyframes slide-left {
  0%, 55.5% { transform: translateX(-1.6em); }
  58.5%, 100% { transform: none; }
}

@keyframes slide-right {
  0%, 55.5% { transform: translateX(1.6em); }
  58.5%, 100% { transform: none; }
}

@keyframes plus-in {
  0%, 57.5% { opacity: 0; transform: scale(0.3); }
  59.5%, 100% { opacity: 1; transform: none; }
}

@keyframes letter-drop {
  0%, 73.5% { opacity: 0; transform: translateY(-0.9em); }
  75.5% { opacity: 1; transform: translateY(0.08em); }
  76.5%, 94.5% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}

.scene.is-paused *,
.scene.is-paused *::before,
.scene.is-paused *::after,
.scene.is-offscreen *,
.scene.is-offscreen *::before,
.scene.is-offscreen *::after {
  animation-play-state: paused;
}

.hero-pause {
  position: absolute;
  right: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-card);
  color: var(--ink);
  font: 600 13px/1 var(--body);
  cursor: pointer;
}

.hero-pause:hover {
  border-color: var(--ink);
}

.hero-pause svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.hero-pause .i-play,
.hero-pause[aria-pressed="true"] .i-pause {
  display: none;
}

.hero-pause[aria-pressed="true"] .i-play {
  display: inline;
}

/* the handwritten notes */
.click-note {
  position: absolute;
  z-index: 3;
  top: calc(16.4em / 1.9);
  right: calc(12.4em / 1.9);
  margin: 0;
  padding: 0.2em 0.65em 0.3em;
  border-radius: 0.2em;
  background: var(--sun);
  box-shadow: 0.15em 0.2em 0 rgba(28, 31, 59, 0.25);
  font: 700 1.9em/1.1 var(--hand);
  color: var(--ink-fixed);
  white-space: nowrap;
  --r: 3deg;
  transform: rotate(var(--r));
  animation: settle 0.5s 0.6s var(--ease-out) both;
}

.click-note svg {
  position: absolute;
  top: 70%;
  right: -2.2em;
  width: 2.4em;
  height: 3.6em;
  overflow: visible;
}

.click-note path {
  fill: none;
  stroke: var(--red-pen);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stuck-note {
  position: absolute;
  z-index: 3;
  left: 5.5em;
  top: calc(100% + 0.3em);
  display: flex;
  align-items: flex-end;
  gap: 0.3em;
  margin: 0;
  font: 700 2.1em/1 var(--hand);
  color: var(--red-pen);
  white-space: nowrap;
  transform: rotate(-3deg);
}

.stuck-note svg {
  width: 1.4em;
  height: 1.75em;
  margin-bottom: 0.2em;
  overflow: visible;
}

.stuck-note path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 599px) {
  .scene {
    padding: 17.4em 0 6em;
    font-size: calc(100cqw / 40);
    overflow-x: clip;
  }

  .np {
    width: 37em;
    left: 1.5em;
  }

  .np-a,
  .np-b {
    display: none;
  }

  .np-d { --r: 2.5deg; top: 0; }
  .np-c { --r: -2deg; z-index: 1; top: 6.6em; left: 0.5em; }

  .np-mast {
    font-size: 3em;
  }

  .np-c .np-lead {
    visibility: hidden;
  }

  .browser {
    margin: 0;
  }

  .br-tab,
  .br-url {
    font-size: 1.25em;
  }

  .br-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-nav span:not(.is-on) {
    display: none;
  }

  .site-nav {
    font-size: 1.1em;
  }

  .site-by {
    display: none;
  }

  .site-play {
    grid-template-columns: 19em minmax(0, 1fr);
    align-items: center;
    margin-top: 0.9em;
  }

  .site-clues {
    display: none;
  }

  .stuck-note {
    position: static;
    flex-direction: column;
    align-items: center;
    font-size: 1.9em;
    line-height: 1.05;
    text-align: center;
    white-space: normal;
  }

  .stuck-note svg {
    order: 2;
    width: 1.5em;
    height: 1.9em;
    margin: 0.2em 2.5em 0 0;
    transform: scale(1, -1);
  }

  .site-bar {
    font-size: 1.6em;
  }

  .pnl {
    border-top: 1.5px solid var(--ink);
    border-left: 0;
    border-radius: 0 0 1.1em 1.1em;
  }

  .pnl-head {
    padding: 0.7em 1.2em;
  }

  .hero-otto {
    top: -6.9em;
    right: auto;
    left: 1.4em;
    width: 8.6em;
  }

  .click-note {
    top: calc(13.5em / 1.8);
    right: calc(10.6em / 1.8);
    font-size: 1.8em;
  }

  .pnl-name { font-size: 1.35em; }
  .pnl-meta { font-size: 1.2em; }
  .pnl-clue { font-size: 1.9em; }
  .pnl-kicker { font-size: 1.7em; }
  .pnl-body { font-size: 1.5em; }
  .pnl-steps span { font-size: 1.3em; }
}

/* ============ demo video ============ */
.demo {
  padding: 48px 0 40px;
}

.video-frame {
  position: relative;
  margin: 0;
}

.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-tint);
  box-shadow: 10px 12px 0 -2px rgba(18, 181, 168, 0.3);
}

.video-otto {
  position: absolute;
  z-index: 2;
  top: -92px;
  right: 28px;
  width: 112px;
  height: auto;
}

.video-frame figcaption {
  max-width: 60ch;
  margin: 18px 0 0;
  font: 400 19px/1.35 var(--hand);
  color: var(--biro);
}

/* ============ cards ============ */
.how,
.hints,
.promises {
  padding: 40px 0;
}

.cards {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 20px 22px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-card);
  box-shadow: 6px 7px 0 -1px var(--accent);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -4px 0 2px -4px;
}

.card h3 {
  font: 800 23px/1.12 var(--display);
  font-variation-settings: "SOFT" 100, "opsz" 48;
  letter-spacing: -0.01em;
}

.card p {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

/* ============ hints: worked example ============ */
.hints-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

.stage {
  container-type: inline-size;
  padding: 22px 18px 20px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--sheet);
}

.st-clue {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.36em;
  row-gap: 0.4em;
  margin: 18px 0 34px;
  font: 600 clamp(20px, 6.4cqi, 28px)/1.3 var(--display);
  font-variation-settings: "SOFT" 100, "opsz" 32;
  color: var(--ink);
}

.w {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}

.w-group {
  white-space: nowrap;
}

.w-motor::after,
.w-fav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 4px;
  border-radius: 4px;
}

.w-motor::after { background: var(--teal); }
.w-fav::after { background: var(--coral); }

.w-with .lbl {
  top: auto;
  bottom: calc(100% + 4px);
  color: var(--red-pen);
}

.w-with svg {
  position: absolute;
  inset: -6px -10px -3px -8px;
  width: calc(100% + 18px);
  height: calc(100% + 9px);
  overflow: visible;
}

.w-with path {
  fill: none;
  stroke: var(--red-pen);
  stroke-width: 2.6;
  stroke-linecap: round;
}

.st-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.pic {
  display: grid;
  justify-items: center;
}

.pic .art {
  position: relative;
  width: min(92px, 26cqi);
  aspect-ratio: 1;
  color: var(--ink);
}

.pic .art svg,
.pic-rug svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.pic .wash { opacity: 0.5; }
.pic-car .wash { color: var(--teal); }
.pic-heart .wash { color: var(--coral); }

.pic-cap {
  font: 700 22px/1 var(--hand);
  letter-spacing: 0.08em;
}

.pic-car .pic-cap { color: var(--teal-deep); }
.pic-heart .pic-cap { color: var(--coral-deep); }

.op {
  font: 700 30px/1 var(--hand);
  color: var(--red-pen);
}

.st-type {
  display: flex;
  justify-content: center;
  margin: 2px 0 16px;
}

.st-type .stamp {
  font-size: 15px;
}

.st-n {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 1.4em;
  height: 1.4em;
  margin-right: 0.25em;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font: 700 0.85em/1 var(--hand);
  vertical-align: 0.05em;
}

.st-tag {
  font-size: 15px;
  color: var(--biro);
}

.st-glue {
  margin: -8px 0 16px;
  font: 700 17px/1.2 var(--hand);
  color: var(--red-pen);
  text-align: center;
}

.st-answer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
}

.st-cells > span {
  width: min(44px, 12cqi);
  font-size: min(25px, 7cqi);
  background: var(--sun-tint);
}

.st-cells i {
  font-style: normal;
}

.st-cells > span:nth-child(-n + 3) i { color: var(--teal-deep); }
.st-cells > span:nth-child(n + 4) i { color: var(--coral-deep); }

.pic-rug {
  position: relative;
  width: min(54px, 15cqi);
  aspect-ratio: 1;
  color: var(--ink);
}

.pic-rug .wash {
  color: var(--sun);
  opacity: 0.8;
}

.ladder {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rung {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px 14px 12px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-card);
  box-shadow: 5px 6px 0 -1px var(--accent);
}

.rung p {
  margin: 2px 0 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--muted);
}

.rung p strong {
  color: var(--ink);
}

.rung .panel-num {
  margin-top: -2px;
}

/* ============ waitlist ============ */
.waitlist {
  display: grid;
  gap: 28px;
  align-items: start;
  padding: 56px 0 40px;
}

.waitlist-copy p {
  max-width: 42ch;
  margin: 14px 0 0;
  font-size: 18px;
  color: var(--muted);
}

.waitlist-copy h2 {
  margin-bottom: 4px;
}

.waitlist-aside {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.waitlist-otto {
  flex: none;
  width: 88px;
  height: auto;
}

.waitlist-copy .waitlist-note {
  max-width: 22ch;
  margin: 0;
  font: 700 19px/1.3 var(--hand);
  color: var(--coral-deep);
  transform: rotate(-2deg);
}

.form-card {
  padding: 24px 20px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-card);
  box-shadow: 10px 12px 0 -2px rgba(124, 92, 255, 0.28);
}

.field {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field label[for],
.field legend {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.35;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

input[type="email"] {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid var(--control-line);
  border-radius: var(--radius-sm);
  background: var(--sheet);
  color: var(--ink);
  font-size: 17px;
  transition: border-color 0.15s;
}

input[type="email"]::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

input[type="email"]:hover {
  border-color: var(--ink);
}

input[type="email"]:focus-visible {
  border-color: var(--ink);
  outline-offset: 2px;
}

input[type="email"][aria-invalid="true"] {
  border-color: var(--coral-deep);
}

.field-error,
.form-error {
  margin: 8px 0 0;
  font-weight: 600;
  font-size: 15px;
  color: var(--coral-deep);
}

.form-error:empty {
  display: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
  cursor: pointer;
}

.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 2px solid var(--control-line);
  border-radius: 999px;
  background: var(--sheet);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  transition: border-color 0.15s, background-color 0.15s, transform 0.15s var(--ease-pop);
}

.chip:hover span {
  border-color: var(--ink);
}

.chip input:checked + span {
  border-color: var(--ink);
  background: var(--sun);
  color: var(--ink-fixed);
  transform: rotate(-1.5deg);
}

.chip input:focus-visible + span {
  outline: 3px solid var(--violet-deep);
  outline-offset: 3px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-submit {
  width: 100%;
}

.consent {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.form-done {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px 4px;
  text-align: center;
}

.form-done h3:focus {
  outline: none;
}

.form-done img {
  width: 132px;
  height: auto;
}

.form-done h3 {
  font: 800 30px/1.1 var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72;
  letter-spacing: -0.01em;
}

.form-done p {
  max-width: 34ch;
  margin: 4px 0 0;
  color: var(--muted);
}

.form-done .done-note {
  font: 700 19px/1.3 var(--hand);
  color: var(--teal-deep);
}

/* ============ faq ============ */
.faq {
  padding: 40px 0 16px;
}

.faq-list {
  max-width: 820px;
  border-top: 2px solid var(--ink);
}

details {
  border-bottom: 1.5px dashed var(--line-strong);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 12px 0;
  font: 700 19px/1.3 var(--display);
  font-variation-settings: "SOFT" 100, "opsz" 32;
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font: 700 20px/1 var(--body);
  transition: transform 0.2s var(--ease-pop), background-color 0.15s;
}

summary:hover::after {
  background: var(--sun);
  color: var(--ink-fixed);
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  max-width: 62ch;
  margin: 0 0 18px;
  color: var(--muted);
}

/* ============ footer ============ */
.site-footer {
  margin-top: 56px;
  padding: 28px 0 12px;
  border-top: 2px solid var(--ink);
}

.foot-grid {
  display: grid;
  gap: 24px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.foot-mascot {
  width: 64px;
  height: 64px;
  flex: none;
}

.foot-name {
  font: 800 22px/1.1 var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.foot-name:hover {
  text-decoration: underline var(--red-pen) 2px;
}

.foot-tagline {
  max-width: 30ch;
  margin: 4px 0 0;
  font: 700 19px/1.25 var(--hand);
  color: var(--biro);
}

.foot-head {
  margin: 0 0 4px;
  font: 400 13px/1.4 var(--stamp-font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-deep);
}

.foot-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
}

.foot-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline var(--sun) 3px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.15s;
}

.foot-list a:hover {
  text-decoration-color: var(--teal);
}

.foot-small {
  display: grid;
  gap: 4px;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1.5px dashed var(--line-strong);
}

.foot-legal {
  max-width: 72ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* ============ responsive ============ */
@media (min-width: 720px) {
  .cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .form-card {
    padding: 30px 28px;
  }

  .btn-submit {
    width: auto;
  }

  .foot-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }

  .foot-small {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
  }
}

@media (min-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
    padding: 40px 0 40px;
  }

  .hero h1 {
    font-size: clamp(56px, 5.6vw, 72px);
  }

  .hero-art {
    max-width: none;
    margin: 0;
  }
}

@media (min-width: 960px) {
  .hints-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 36px;
  }

  .stage {
    position: sticky;
    top: 24px;
    padding: 36px 28px 32px;
  }

  .waitlist {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 56px;
  }

  .waitlist-otto {
    width: 128px;
  }
}

@media (max-width: 719px) {
  .b1 { width: 420px; height: 420px; top: -200px; left: -220px; }
  .b2 { width: 340px; height: 340px; top: 40px; right: -230px; }
  .b3 { width: 320px; height: 320px; right: -220px; }
  .b4 { width: 380px; height: 380px; left: -240px; bottom: -220px; }
  .b5 { display: none; }

  .nav {
    padding-top: 16px;
  }
}

@media (max-width: 480px) {
  :root {
    --gutter: 16px;
  }

  .logo-word {
    font-size: 22px;
  }

  .logo-mark {
    width: 24px;
    height: 24px;
  }

  .brand {
    gap: 9px;
  }

  .nav .btn-small {
    padding: 8px 12px;
    font-size: 14px;
  }

  .video-otto {
    display: none;
  }

  .eyebrow {
    font-size: 17px;
  }
}

@media (max-width: 380px) {
  .nav .btn-small {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .pen path {
    stroke-dashoffset: 0;
  }

  .hero-pause {
    display: none;
  }
}

.eyebrow span {
  white-space: nowrap;
}

.form-card[hidden] {
  display: none;
}

.answers-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.form-done-thanks {
  margin-top: 4px;
}

/* ============ confirmed page (/waitlist/confirmed) ============ */
.confirmed {
  display: grid;
  gap: 40px;
  max-width: 640px;
  margin: 24px auto 64px;
}

.confirmed-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 36px 28px 32px;
  text-align: center;
}

.confirmed-otto {
  width: 140px;
  height: auto;
}

.confirmed-card h1 {
  margin: 0;
  font: 800 clamp(48px, 10vw, 76px)/1 var(--display-large);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  letter-spacing: -0.02em;
}

.confirmed-lede {
  max-width: 34em;
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 18px;
}

.confirmed-share {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding-top: 20px;
  border-top: 1.5px dashed var(--line-strong);
  width: 100%;
}

.confirmed-share p {
  margin: 0;
  font-weight: 600;
}

.confirmed-share .share-status {
  min-height: 1.4em;
  color: var(--muted);
  font-weight: 400;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.confirmed-next {
  text-align: center;
}

.confirmed-next h2 {
  margin: 0 0 16px;
}

.confirmed-next .ctas {
  justify-content: center;
}
