/* Tucket: one motif (the puck's circle), light ground, graphite ink, the puck's orange. */

:root {
  --bg: #eff0f1;
  --surface: #e3e5e7;
  --surface-2: #d5d8db;
  --ink: #18191b;
  --muted: #54575d;
  --accent: #ff4a1f;
  --accent-ink: #18191b;
  --accent-text: #b2300f;
  --tint-1: #ff7d5c;
  --tint-2: #ffab94;
  --tint-3: #ffd5c9;

  --display: "League Spartan", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --step-small: clamp(0.9375rem, 0.9rem + 0.12vw, 1rem);
  --step-body: clamp(1.125rem, 1.06rem + 0.25vw, 1.25rem);
  --step-lead: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem);
  --step-head: clamp(2.125rem, 1.3rem + 3.3vw, 4.25rem);
  --step-display: clamp(2.7rem, 0.9rem + 5vw, 5.6rem);

  --margin: clamp(16px, 2.4vw, 32px);
  --gap: clamp(88px, 11vw, 184px);
  --bar-h: 68px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-body);
  line-height: 1.5;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-ink :focus-visible { outline-color: var(--bg); }
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, .display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.92;
  text-wrap: balance;
}
h1 { font-size: var(--step-display); }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.lead { font-size: var(--step-lead); line-height: 1.3; }
.small { font-size: var(--step-small); }
.muted { color: var(--muted); }
strong, b { font-weight: 600; }

.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); }
section { margin-top: var(--gap); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border: 0; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: var(--step-body); text-decoration: none; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.btn:hover { background: #ff6238; }
.btn:active { transform: scale(0.96); }
.btn.ink { background: var(--ink); color: var(--bg); }
.btn.ink:hover { background: #2c2e32; }
.btn.quiet { background: var(--surface-2); color: var(--ink); }
.btn.quiet:hover { background: #c6cace; }
.btn.small-btn { min-height: 44px; padding: 0 20px; font-size: var(--step-small); }
.btn[disabled], .btn[disabled]:hover, .btn.ink[disabled]:hover { background: var(--surface-2); color: var(--muted); cursor: not-allowed; transform: none; }
.textlink { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.textlink:hover { text-decoration-color: var(--accent); }

/* a round picture: the puck's own shape */
.disc { border-radius: 50%; overflow: hidden; background: var(--surface-2); aspect-ratio: 1; }
.disc img { width: 100%; height: 100%; object-fit: cover; }
/* a cut-out shot on white: the white takes the colour of whatever is behind it */
.cut-img { mix-blend-mode: multiply; filter: brightness(1.035); }
.dot { display: inline-block; width: 0.62em; height: 0.62em; border-radius: 50%; background: var(--accent); }
.dash { display: inline-block; width: 1.7em; height: 0.62em; border-radius: 999px; background: var(--accent); }

/* ---------- bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 50;
  height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--margin);
  background: var(--bg);
}
.wordmark { font-family: var(--display); font-weight: 700; font-size: 2rem; letter-spacing: -0.05em; text-decoration: none; line-height: 1; display: inline-flex; align-items: center; gap: 8px; padding-top: 4px; }
.wordmark .dot { width: 0.5em; height: 0.5em; margin-top: -4px; }
.bar nav ul { display: flex; gap: clamp(16px, 2.2vw, 36px); }
.bar nav a { text-decoration: none; font-weight: 600; font-size: var(--step-small); padding: 12px 0; display: inline-block; }
.bar nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--accent); }
.bar .btn { min-height: 44px; padding: 0 22px; font-size: var(--step-small); }
@media (max-width: 900px) { .bar nav { display: none; } }

/* ---------- hero ---------- */
.hero { margin-top: 0; display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100svh - var(--bar-h)); }
.hero-card { padding: clamp(24px, 5vh, 64px) var(--margin) clamp(24px, 4vh, 48px); display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 3.2vh, 36px); }
.hero-card .lead { max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.code { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; max-width: 620px; margin-top: clamp(4px, 2vh, 24px); }
.code li { font-size: var(--step-small); line-height: 1.35; }
.code .glyph { display: flex; align-items: center; gap: 6px; height: 28px; font-size: 1.6rem; }
.code b { display: block; }
.hero-photo { position: relative; overflow: hidden; }
.hero-photo img.shot {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%;
  clip-path: circle(min(56svh, 35vw) at 70% 50%);
  animation: drift 24s var(--ease-in-out) infinite alternate;
}
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.07); } }
.size-disc {
  position: absolute; left: clamp(8px, 2vw, 28px); bottom: clamp(16px, 4vh, 40px);
  width: 56mm; height: 56mm; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; text-align: center;
  font-size: var(--step-small); font-weight: 600; line-height: 1.25; padding: 22px;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { order: -1; height: 46svh; min-height: 300px; }
  .hero-photo img.shot { clip-path: circle(34svh at 58% 46%); }
  .size-disc { display: none; }
  .hero-card { padding-top: 20px; }
  .code { grid-template-columns: 1fr; gap: 14px; }
  .code li { display: grid; grid-template-columns: 64px 1fr; align-items: start; column-gap: 8px; }
  .code .glyph { grid-row: span 2; }
}

/* ---------- the idea ---------- */
.idea h2 { grid-column: 1 / span 7; }
.idea .statement { grid-column: 1 / span 9; margin-top: clamp(28px, 4vw, 56px); font-size: var(--step-lead); line-height: 1.32; font-weight: 600; max-width: 34em; }
.statement .thumb { display: inline-block; width: 1.5em; height: 1.5em; border-radius: 50%; overflow: hidden; vertical-align: -0.42em; margin: 0 0.12em; background: var(--surface-2); }
.statement .thumb img { width: 100%; height: 100%; object-fit: cover; }
.swaps { grid-column: 1 / -1; margin-top: clamp(40px, 6vw, 88px); display: grid; gap: clamp(22px, 2.6vw, 36px); }
.swaps li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); align-items: baseline; }
.swaps .was { grid-column: 1 / span 3; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.swaps .why { grid-column: 4 / span 4; }
.swaps .now { grid-column: 8 / span 5; font-family: var(--display); font-weight: 700; font-size: var(--step-lead); letter-spacing: -0.03em; line-height: 1.05; display: flex; align-items: baseline; gap: 0.4em; }
.swaps .now .dot { flex: none; }
@media (max-width: 860px) {
  .idea h2, .idea .statement { grid-column: 1 / -1; }
  .swaps li { grid-template-columns: 1fr; row-gap: 4px; }
  .swaps .was, .swaps .why, .swaps .now { grid-column: 1; }
}

/* ---------- studio: object on a disc ---------- */
.studio { min-height: 96svh; align-items: end; row-gap: 28px; }
.studio-index { grid-column: 1 / span 3; align-self: end; }
.studio-index h2 { font-size: var(--step-lead); color: var(--muted); letter-spacing: -0.03em; line-height: 1.15; }
.toy-list button {
  display: block; width: 100%; min-height: 44px; text-align: left; background: none; border: 0; padding: 3px 0;
  font-family: var(--display); font-weight: 700; font-size: var(--step-lead); letter-spacing: -0.03em; line-height: 1.15;
  color: var(--muted);
  transition: color var(--t-hover) ease, transform var(--t-ui) var(--ease-out);
}
.toy-list button:hover { color: var(--ink); transform: translateX(6px); }
.toy-list button[aria-pressed="true"] { color: var(--ink); }
.toy-list button[aria-pressed="true"]::before { content: ""; display: inline-block; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--accent); margin-right: 0.3em; vertical-align: 0.08em; }
.own-toy { margin-top: 14px; }
.own-toy p { margin-top: 8px; max-width: 28ch; }

.studio-stage { grid-column: 4 / span 6; position: relative; background: var(--bg); width: min(100%, 78svh); aspect-ratio: 1; justify-self: center; align-self: center; touch-action: manipulation; }
.stage-disc { position: absolute; inset: 14% 7% 0 7%; border-radius: 50%; background: var(--surface-2); transition: background-color 300ms ease; }
.stage-toy {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  mix-blend-mode: multiply; filter: brightness(1.035); pointer-events: none; user-select: none;
  transition: opacity 300ms ease; transform-origin: 50% 90%;
}
.stage-toy.custom { inset: 14% 7% 0 7%; width: 86%; height: 86%; object-fit: cover; border-radius: 50%; mix-blend-mode: normal; }
.stage-toy.squeezed { animation: squeeze 420ms var(--ease-out); }
.stage-toy.swing { animation: swing 1100ms var(--ease-in-out); }
.stage-toy.lying { transform: rotate(-78deg) translate(-4%, 6%); transition: transform 600ms var(--ease-in-out), opacity 300ms ease; }
@keyframes squeeze { 0% { transform: scale(1); } 35% { transform: scale(1.05, 0.93); } 100% { transform: scale(1); } }
@keyframes swing { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-16deg) translateY(-5%); } 70% { transform: rotate(14deg) translateY(-5%); } }
.toy-press { position: absolute; inset: 4% 14% 8% 14%; border-radius: 50%; background: transparent; border: 0; touch-action: none; -webkit-tap-highlight-color: transparent; }
.tucked-ring {
  position: absolute; width: 17%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%) scale(0.3); opacity: 0;
  border: 4px dashed var(--accent); pointer-events: none;
  transition: transform 500ms var(--ease-expo), opacity 300ms ease;
}
.tucked .tucked-ring { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.speaking .tucked-ring { animation: pulse 900ms ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.16); } }
.puck-dock { position: absolute; right: 0; bottom: 0; width: 22%; text-align: center; z-index: 3; }
.puck-drag { width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 0; padding: 0; background: var(--accent); touch-action: none; cursor: grab; display: block; transition: transform var(--t-ui) var(--ease-out), opacity 200ms ease; }
.puck-drag img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.32); pointer-events: none; }
.puck-drag.dragging { cursor: grabbing; transition: none; }
.tucked .puck-dock { opacity: 0; pointer-events: none; transform: scale(0.4); transition: opacity 250ms ease, transform 400ms var(--ease-out); }
.bubble {
  position: absolute; left: 66%; top: 3%; transform: translateY(8px); z-index: 4;
  width: max-content; max-width: min(64%, 380px);
  background: var(--ink); color: var(--bg);
  padding: 16px 24px; border-radius: 28px; font-weight: 600; line-height: 1.3; text-align: left;
  opacity: 0; transition: opacity 200ms ease, transform 300ms var(--ease-out); pointer-events: none;
}
.bubble.show { opacity: 1; transform: none; }
.bubble .who { display: block; font-weight: 400; font-size: var(--step-small); color: #c9cbcf; }

.studio-side { grid-column: 10 / span 3; align-self: end; display: flex; flex-direction: column; gap: 18px; }
.studio-side .fact { font-size: var(--step-small); }
.squeezes { display: grid; gap: 8px; }
.squeezes button, .moves button {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 18px;
  background: var(--surface); border: 0; border-radius: 999px; font-weight: 600; font-size: var(--step-small); text-align: left;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.squeezes button:hover, .moves button:hover { background: var(--surface-2); }
.squeezes button:active, .moves button:active { transform: scale(0.97); }
.squeezes .glyph { display: inline-flex; align-items: center; gap: 4px; width: 34px; font-size: 1.05rem; }
.moves { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.moves button { justify-content: center; padding: 0 10px; }
.sensed { font-size: var(--step-small); min-height: 3em; }
.studio-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; }
.studio-foot p { max-width: 62ch; }
@media (max-width: 1000px) {
  .studio { min-height: 0; }
  .studio-stage { grid-column: 1 / -1; grid-row: 1; width: min(100%, 64svh); margin-top: 24px; }
  .bubble { left: 0; right: 0; top: auto; bottom: -4%; margin-inline: auto; max-width: 92%; text-align: center; }
  .studio-index { grid-column: 1 / -1; grid-row: 2; }
  .toy-list { display: flex; flex-wrap: wrap; gap: 0 22px; }
  .toy-list button { width: auto; min-height: 44px; }
  .toy-list button:hover { transform: none; }
  .studio-side { grid-column: 1 / -1; grid-row: 3; }
  .squeezes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .squeezes button { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 10px 14px; border-radius: 22px; min-height: 68px; }
}

/* ---------- ways to play: accordion of tinted panels ---------- */
.ways-head h2 { grid-column: 1 / span 5; }
.ways-head p { grid-column: 7 / span 5; align-self: end; }
.panels { display: flex; height: 540px; margin-top: clamp(32px, 4.5vw, 64px); }
.panel { position: relative; flex: 1 1 0; min-width: 76px; overflow: hidden; transition: flex-grow 450ms var(--ease-in-out); }
.panel.open { flex-grow: 9; }
.panel:nth-child(1) { background: var(--accent); }
.panel:nth-child(2) { background: var(--tint-1); }
.panel:nth-child(3) { background: var(--tint-2); }
.panel:nth-child(4) { background: var(--tint-3); }
.panel-tab { position: absolute; inset: 0; width: 100%; background: none; border: 0; text-align: left; padding: 0; }
.panel-tab span {
  position: absolute; left: 50%; bottom: 24px; transform-origin: 0 50%; transform: rotate(-90deg) translateY(2px);
  white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: var(--step-lead); letter-spacing: -0.03em;
}
.panel.open .panel-tab { display: none; }
.panel-body { position: absolute; inset: 0; width: min(100%, 880px); min-width: 560px; padding: clamp(20px, 2.4vw, 36px); display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; opacity: 0; visibility: hidden; transition: opacity 250ms ease 0ms, visibility 0s 250ms; }
.panel.open .panel-body { opacity: 1; visibility: visible; transition: opacity 400ms ease 200ms, visibility 0s; }
.panel-text { display: flex; flex-direction: column; }
.panel-text h3 { font-size: var(--step-head); letter-spacing: -0.04em; line-height: 0.92; }
.panel-text p { margin-top: auto; padding-top: 16px; max-width: 36ch; }
.panel-facts { margin-top: 18px; display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; font-size: var(--step-small); }
.panel-facts dt { font-weight: 600; }
.panel-pic { align-self: center; width: 100%; max-width: 300px; justify-self: end; }
@media (max-width: 860px) {
  .ways-head h2, .ways-head p { grid-column: 1 / -1; }
  .ways-head p { margin-top: 18px; }
  .panels { flex-direction: column; height: auto; }
  .panel { flex: none; min-width: 0; }
  .panel-tab { position: relative; min-height: 64px; padding: 0 20px; display: block; }
  .panel-tab span { position: static; transform: none; }
  .panel.open .panel-tab { display: block; }
  .panel-body { position: static; min-width: 0; width: 100%; grid-template-columns: 1fr; display: none; padding: 0 20px 24px; }
  .panel.open .panel-body { display: grid; }
  .panel-text h3 { display: none; }
  .panel-pic { max-width: 180px; justify-self: start; grid-row: 1; }
}

/* ---------- workbench: character maker and your voice ---------- */
.bench-head h2 { grid-column: 1 / span 8; }
.bench-head p { grid-column: 1 / span 6; margin-top: 20px; }
.tabs { display: flex; gap: 8px; margin-top: clamp(28px, 4vw, 48px); }
.tabs button { min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--surface); font-weight: 600; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.tabs button:active { transform: scale(0.96); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.bench { background: var(--surface); margin-top: 12px; padding: clamp(18px, 2.6vw, 40px); }
.bench[hidden] { display: none; }
.maker { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 56px); }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label, .field legend, .label { font-weight: 600; font-size: var(--step-small); padding: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; min-height: 50px; padding: 10px 16px; background: var(--bg); border: 2px solid var(--ink); border-radius: 12px; font-size: var(--step-body);
}
textarea { resize: vertical; line-height: 1.35; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--bg); font-weight: 600; font-size: var(--step-small); transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.chips input:checked + span { background: var(--ink); color: var(--bg); }
.chips input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.chips input:disabled + span { color: var(--muted); }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 44px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lines-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 14px; }
.lines-empty { background: var(--bg); padding: 28px; min-height: 260px; display: grid; align-content: center; gap: 12px; }
.line-group + .line-group { margin-top: 18px; }
.line-group h4 { margin: 0 0 6px; font-size: var(--step-small); font-weight: 600; color: var(--muted); }
.line { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; align-items: center; background: var(--bg); padding: 6px; margin-bottom: 6px; transition: opacity var(--t-ui) ease; }
.line.removed { opacity: 0.55; }
.line.removed textarea { text-decoration: line-through; }
.line textarea { border: 0; background: transparent; min-height: 44px; padding: 8px; font-size: var(--step-small); resize: none; overflow: hidden; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface-2); display: grid; place-items: center; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.round:hover { background: var(--tint-2); }
.round:active { transform: scale(0.9); }
.round svg { width: 18px; height: 18px; fill: var(--ink); }
.keep { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: var(--step-small); }
.line.removed .keep { background: var(--surface-2); color: var(--ink); }
.send-row { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.clip { background: var(--bg); padding: 22px; display: flex; flex-direction: column; gap: 14px; min-height: 250px; }
.clip h4 { margin: 0; font-family: var(--display); font-size: var(--step-lead); letter-spacing: -0.03em; line-height: 1; display: flex; align-items: center; gap: 10px; }
.clip .state { margin-top: auto; font-size: var(--step-small); min-height: 1.5em; }
.meter { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width 80ms linear; }
@media (max-width: 860px) {
  .bench-head h2, .bench-head p { grid-column: 1 / -1; }
  .maker { grid-template-columns: 1fr; }
  .clips { grid-template-columns: 1fr; }
  .clip { min-height: 0; }
  .three { grid-template-columns: 1fr; }
  .tabs button { padding: 0 18px; flex: 1; }
}

/* ---------- play rules: two-column menu, photo bullets ---------- */
.rules-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.rules-list { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4.5vw, 72px); row-gap: 40px; }
.rule { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 20px; align-items: start; }
.rule .say { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; border: 0; padding: 0; background: var(--surface-2); transition: transform var(--t-ui) var(--ease-out); }
.rule .say:hover { transform: scale(1.08); }
.rule .say:active { transform: scale(0.94); }
.rule .say img { width: 100%; height: 100%; object-fit: cover; }
.rule h3 { font-family: var(--text); font-size: var(--step-body); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.rule p { max-width: 40ch; margin-top: 4px; }
.rule .eg { color: var(--accent-text); font-weight: 600; font-size: var(--step-small); margin-top: 8px; }
@media (max-width: 860px) { .rules-list { grid-template-columns: 1fr; row-gap: 28px; } .rule { grid-template-columns: 60px 1fr; column-gap: 16px; } .rule .say { width: 60px; height: 60px; } }

/* ---------- hard questions: square plate, spare text ---------- */
.hard { background: var(--surface); padding-block: clamp(40px, 6vw, 88px); align-items: center; row-gap: 32px; }
.hard-plate { grid-column: 1 / span 5; position: relative; }
.hard-plate .disc { width: 100%; }
.hard-say { position: absolute; left: 6%; right: 6%; bottom: 6%; background: var(--ink); color: var(--bg); border-radius: 28px; padding: 18px 24px; font-weight: 600; line-height: 1.3; }
.hard-say .who { display: block; font-weight: 400; font-size: var(--step-small); color: #c9cbcf; }
.hard-text { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 20px; }
.ask-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; }
.examples button { min-height: 44px; padding: 6px 16px; border: 0; border-radius: 999px; background: var(--bg); font-size: var(--step-small); font-weight: 600; text-align: left; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.examples button:hover { background: var(--tint-3); }
.examples button:active { transform: scale(0.96); }
.verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.verdict > div { background: var(--bg); padding: 18px 20px; min-height: 132px; }
.verdict .label { display: block; margin-bottom: 6px; color: var(--muted); }
.verdict .parent.note { background: var(--tint-3); }
.verdict .parent.alert { background: var(--accent); }
.verdict .parent.alert .label { color: var(--accent-ink); }
@media (max-width: 860px) {
  .hard-plate { grid-column: 1 / -1; max-width: 420px; }
  .hard-text { grid-column: 1 / -1; }
  .verdict { grid-template-columns: 1fr; }
  .verdict > div { min-height: 0; }
}

/* ---------- safety: marks on tiles ---------- */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tile { background: var(--surface); padding: clamp(18px, 2vw, 28px); min-height: clamp(190px, 17vw, 260px); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.tile:nth-child(3n) { background: var(--surface-2); }
.tile.wide { grid-column: span 2; }
.tile.head { background: var(--accent); }
.tile.close { background: var(--ink); color: var(--bg); }
.tile h3 { font-size: var(--step-lead); max-width: 13ch; }
.tile.wide h3 { max-width: 20ch; }
.tile p { font-size: var(--step-small); max-width: 34ch; }
.path { margin-top: clamp(48px, 7vw, 104px); display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: clamp(8px, 2vw, 32px); }
.stop { display: grid; justify-items: center; text-align: center; gap: 16px; }
.stop .disc { width: clamp(120px, 15vw, 220px); }
.stop .disc.handset { background: var(--ink); display: grid; place-items: center; }
.stop .disc.handset span { width: 34%; aspect-ratio: 9 / 17; background: var(--bg); border-radius: 10px; }
.stop p { max-width: 30ch; font-size: var(--step-small); }
.stop h3 { font-size: var(--step-lead); }
.hops { display: flex; gap: clamp(5px, 0.8vw, 12px); align-self: start; margin-top: clamp(52px, 6.8vw, 100px); }
.hops i { width: clamp(8px, 1vw, 14px); aspect-ratio: 1; border-radius: 50%; background: var(--ink); }
.hops.wifi i { background: var(--accent); }
.tested { margin-top: clamp(40px, 5vw, 72px); max-width: 64ch; }
@media (max-width: 860px) {
  .board { grid-template-columns: 1fr 1fr; gap: 6px; }
  .tile { min-height: 150px; }
  .path { grid-template-columns: 1fr; justify-items: center; }
  .hops { flex-direction: column; margin-top: 0; align-self: center; }
}

/* ---------- parent app ---------- */
.parent-copy { grid-column: 1 / span 5; align-self: start; position: sticky; top: calc(var(--bar-h) + 40px); }
.parent-copy p { margin-top: 20px; max-width: 40ch; }
.parent-copy ul { margin-top: 24px; display: grid; gap: 10px; }
.parent-copy li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: baseline; }
.parent-copy li .dot { align-self: center; }
.phone-wrap { grid-column: 7 / span 6; background: var(--tint-3); padding: clamp(20px, 4vw, 56px); display: grid; place-items: center; }
.phone { width: min(100%, 400px); background: var(--bg); border: 10px solid var(--ink); border-radius: 44px; padding: 22px 18px 26px; font-size: 1rem; }
.phone h3 { font-family: var(--text); font-size: 1.25rem; letter-spacing: 0; font-weight: 600; margin-bottom: 14px; }
.phone .block { background: var(--surface); border-radius: 18px; padding: 14px 16px; margin-bottom: 10px; }
.phone .block > .label { display: block; margin-bottom: 8px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 999px; }
.seg button { min-height: 44px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; font-size: 0.9375rem; padding: 0 4px; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.gate { margin-top: 12px; font-size: 0.9375rem; }
.gate[hidden] { display: none; }
.gate ul { margin: 8px 0 12px; display: grid; gap: 4px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toggle { position: relative; width: 72px; height: 44px; flex: none; border-radius: 999px; border: 0; background: var(--surface-2); transition: background-color var(--t-ui) ease; }
.toggle::after { content: ""; position: absolute; top: 4px; left: 4px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); transition: transform var(--t-ui) var(--ease-out); }
.toggle[aria-checked="true"] { background: var(--accent); }
.toggle[aria-checked="true"]::after { transform: translateX(28px); }
.cap-row { display: flex; justify-content: space-between; font-size: 0.9375rem; color: var(--muted); }
.phone select { min-height: 44px; font-size: 1rem; padding: 6px 12px; }
.msg { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 8px 0; }
.msg + .msg { margin-top: 4px; }
.msg .btns { display: flex; gap: 6px; }
.mini { min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; font-weight: 600; font-size: 0.9375rem; background: var(--ink); color: var(--bg); }
.mini.alt { background: var(--surface-2); color: var(--ink); }
.activity li { padding: 10px 12px; border-radius: 12px; background: var(--bg); margin-top: 6px; font-size: 0.9375rem; }
.activity li.alert { background: var(--accent); font-weight: 600; }
.activity li.note { background: var(--tint-3); }
.erase { width: 100%; min-height: 48px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; }
.confirm { display: grid; gap: 8px; }
.confirm[hidden] { display: none; }
.confirm .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
@media (max-width: 860px) {
  .parent-copy, .phone-wrap { grid-column: 1 / -1; }
  .parent-copy { position: static; }
  .phone-wrap { margin-top: 32px; margin-inline: calc(var(--margin) * -1); }
}

/* ---------- fit and box: specimens on tiles ---------- */
.fit-copy { grid-column: 1 / span 3; }
.fit-copy p { margin-top: 20px; max-width: 30ch; }
.specimens { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; row-gap: 28px; }
.specimen .plate { aspect-ratio: 4 / 5; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.specimen.wide { grid-column: span 2; }
.specimen.wide .plate { aspect-ratio: auto; height: 100%; min-height: 0; }
.specimen.wide { display: grid; grid-template-rows: 1fr auto; }
.specimen:nth-child(2) .plate { background: var(--tint-3); }
.specimen:nth-child(4) .plate { background: var(--surface); }
.specimen:nth-child(5) .plate { background: var(--tint-3); }
.specimen .plate img { width: 82%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.specimen.wide .plate img { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.specimen.cut .plate img { border-radius: 0; mix-blend-mode: multiply; object-fit: contain; }
.specimen h3 { font-family: var(--text); letter-spacing: 0; font-weight: 600; font-size: var(--step-body); margin-top: 12px; line-height: 1.3; }
.specimen p { font-size: var(--step-small); color: var(--muted); max-width: 32ch; }
.fitter { margin-top: clamp(40px, 6vw, 80px); background: var(--surface); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.fitter-controls { padding: clamp(20px, 3vw, 44px); display: flex; flex-direction: column; gap: 18px; }
.fitter-controls output { font-family: var(--display); font-weight: 700; font-size: var(--step-head); letter-spacing: -0.04em; line-height: 0.92; display: block; }
.fit-answer { margin-top: auto; background: var(--bg); padding: 18px 20px; }
.fit-answer h4 { margin: 0 0 6px; font-size: var(--step-lead); font-family: var(--display); letter-spacing: -0.03em; line-height: 1.05; }
.fitter-draw { background: var(--surface-2); min-height: 400px; display: grid; place-items: end center; padding: 24px 24px 0; }
.fitter-draw svg { width: 100%; height: 380px; display: block; }
@media (max-width: 860px) {
  .fit-copy, .specimens { grid-column: 1 / -1; }
  .specimens { grid-template-columns: 1fr 1fr; gap: 8px; row-gap: 22px; margin-top: 28px; }
  .specimen.wide { grid-row: 1; }
  .specimen.wide .plate { aspect-ratio: 8 / 5; }
  .fitter { grid-template-columns: 1fr; }
  .fitter-draw { min-height: 300px; }
  .fitter-draw svg { height: 280px; }
}

/* ---------- figures: stepped tiles ---------- */
.figures { position: relative; align-items: start; }
.figure { padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.figure .num { font-family: var(--display); font-weight: 700; font-size: var(--step-display); letter-spacing: -0.05em; line-height: 0.85; }
.figure p { max-width: 30ch; }
.figure.a { grid-column: 1 / span 6; height: 70vh; min-height: 440px; background: var(--accent); border-bottom-right-radius: 50% 44%; }
.figure.b { grid-column: 7 / span 3; margin-top: 14vh; height: 46vh; min-height: 320px; background: var(--ink); color: var(--bg); border-top-right-radius: 120px; }
.figure.c { grid-column: 10 / span 3; margin-top: 26vh; height: 36vh; min-height: 280px; background: var(--surface-2); border-top-right-radius: 120px; }
.figures h2 { position: absolute; left: calc(50% + 6px); top: 0; font-size: var(--step-lead); letter-spacing: -0.03em; line-height: 1.05; max-width: 14ch; }
.figure.a .rings { position: relative; align-self: flex-start; width: min(56mm, 60%); aspect-ratio: 1; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.figure.a .rings i { display: block; width: 56.6%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); }
@media (max-width: 860px) {
  .figures h2 { position: static; grid-column: 1 / -1; margin-bottom: 20px; max-width: none; }
  .figure.a { grid-column: 1 / -1; height: auto; min-height: 380px; }
  .figure.b { grid-column: 1 / span 6; margin-top: 6px; height: auto; min-height: 240px; border-top-right-radius: 64px; padding: 20px; }
  .figure.c { grid-column: 7 / span 6; margin-top: 38px; height: auto; min-height: 240px; border-top-right-radius: 64px; padding: 20px; }
  .figure.b .num, .figure.c .num { font-size: 11vw; }
}

/* ---------- specs ---------- */
.specs h2 { grid-column: 1 / span 4; }
.specs .tablewrap { grid-column: 5 / -1; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; padding: 14px 0; border-bottom: 2px solid var(--surface-2); }
th { width: 34%; font-weight: 600; padding-right: 16px; }
.specs .small { margin-top: 20px; max-width: 60ch; }
@media (max-width: 860px) { .specs h2, .specs .tablewrap { grid-column: 1 / -1; } .specs .tablewrap { margin-top: 28px; } th { width: 42%; } }

/* ---------- price: two fields ---------- */
.price { display: grid; grid-template-columns: 5fr 7fr; margin-top: clamp(28px, 4vw, 56px); }
.plan { padding: clamp(24px, 3vw, 44px) var(--margin); min-height: 84svh; display: grid; grid-template-rows: auto auto 1fr auto; gap: 18px; }
.plan.sub { background: var(--surface-2); }
.plan.kit { background: var(--accent); }
.plan h3 { font-size: var(--step-head); letter-spacing: -0.04em; line-height: 0.92; }
.plan .for { font-size: var(--step-lead); line-height: 1.25; max-width: 24ch; }
.plan .has { align-self: end; max-width: 44ch; }
.plan .foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.plan .amount { font-family: var(--display); font-weight: 700; letter-spacing: -0.05em; line-height: 0.8; font-size: clamp(4.5rem, 9.5vw, 10rem); }
.plan .per { font-weight: 600; margin-top: 10px; }
@media (max-width: 860px) { .price { grid-template-columns: 1fr; } .plan { min-height: 66svh; } .plan.kit { order: -1; } .plan .amount { font-size: 22vw; } }

/* ---------- waitlist ---------- */
.wait h2 { grid-column: 1 / span 6; }
.wait-go { grid-column: 8 / span 5; align-self: end; display: grid; gap: 20px; justify-items: start; }
@media (max-width: 860px) { .wait h2, .wait-go { grid-column: 1 / -1; } .wait-go { margin-top: 24px; } }

/* ---------- questions ---------- */
.faq h2 { grid-column: 1 / span 4; position: sticky; top: 96px; align-self: start; }
.faq .answers { grid-column: 5 / -1; display: grid; gap: 8px; }
details { background: var(--surface); transition: background-color var(--t-ui) ease; }
details[open] { background: var(--accent); }
summary { list-style: none; cursor: pointer; min-height: 72px; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-weight: 600; font-size: var(--step-lead); line-height: 1.2; }
summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex: none; width: 18px; height: 18px; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 4px; background: var(--ink); transition: transform var(--t-ui) var(--ease-out); }
.plus::after { transform: rotate(90deg); }
details[open] .plus::after { transform: rotate(0deg); }
details p { padding: 0 24px 24px; max-width: 58ch; }
@media (max-width: 860px) { .faq h2 { grid-column: 1 / -1; position: static; margin-bottom: 24px; } .faq .answers { grid-column: 1 / -1; gap: 6px; } summary { min-height: 64px; padding: 14px 20px; } details p { padding: 0 20px 20px; } }

/* ---------- footer ---------- */
footer { margin-top: var(--gap); background: var(--ink); color: var(--bg); padding: clamp(32px, 5vw, 72px) var(--margin) 32px; }
.mark { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(4px, 0.8vw, 12px); }
.mark span { aspect-ratio: 1; border-radius: 50%; background: var(--bg); color: var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 11vw, 11.5rem); letter-spacing: -0.04em; line-height: 1; padding-top: 0.12em; }
.mark span:nth-child(3) { background: var(--accent); }
.foot-grid { margin-top: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 7fr 5fr; gap: 32px; }
.foot-grid p { max-width: 56ch; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; align-content: start; }
.foot-links a { text-decoration: none; font-weight: 600; padding: 8px 0; display: inline-block; }
.foot-links a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--accent); }
.foot-last { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: var(--step-small); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- ?embed=1: only the studio, playing by itself, to sit inside another page's frame ---------- */
.embed body { overflow: hidden; }
.embed main > section:not(#try), .embed footer, .embed .bar nav, .embed .bar .btn, .embed .own-toy, .embed .studio-foot { display: none !important; }
.embed .bar { position: static; }
.embed .studio { margin-top: 0; min-height: calc(100svh - var(--bar-h)); padding-bottom: 24px; }
.embed [data-r] { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ---------- entrances ---------- */
.js [data-r] { opacity: 0; transform: translateY(26px); transition: opacity var(--t-reveal) var(--ease-expo), transform var(--t-reveal) var(--ease-expo); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-r="pic"] { transform: scale(0.94); }
.js [data-r="row"] { transform: translateY(16px); }
.js .in [data-r], .js [data-r].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js [data-r] { opacity: 1; transform: none; }
}
