/* © 2026 ContentCrepe, LLC. All rights reserved.
 *
 * site.css: the Next Big Thing page (public/next-big-thing/ and public/ja/next-big-thing/).
 *
 * WHAT   The page drawn as the toy shop's own 1999 flyer: paper, a red shop-sign plate, the
 *        game's title lettering, a CRT television, a cork board, Roba Wholesale's order form on
 *        a clipboard, price tags on a shelf, snapshots, the week's chart and a till receipt.
 * WHY    The founder asked (25 Nov 2026) for a page as much its own as the Walk It Off page.
 *        The colours and fonts are the game's own (hand-over README, section 5).
 * GOTCHAS
 *  - Motion is opt-in: everything that moves sits under html.motion, which tools/partials/
 *    boot.html adds only without reduced motion and without a saved "Pause motion".
 *  - Reveals change only opacity and `translate`, so each element keeps its own `rotate`.
 *  - Rotated cards must never widen the page on a phone: body clips sideways overflow.
 *  - The fonts are subsets made by tools/make_nbt_fonts.mjs from the words. A new character
 *    in the words needs that tool run again, or it shows in a fallback font.
 *  - The title is HTML text, not a picture, so a rename is one line in tools/words/nbt.mjs.
 * DEPENDED ON BY  tools/pages/nbt.html (both languages' pages), js/site.js (class names).
 */

@font-face { font-family: 'Dela Gothic One'; src: url('/next-big-thing/assets/fonts/DelaGothicOne-subset.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Yusei Magic'; src: url('/next-big-thing/assets/fonts/YuseiMagic-subset.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Noto Sans JP NBT'; src: url('/next-big-thing/assets/fonts/NotoSansJP-subset.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }

:root {
  --paper: #FBF7EE;
  --cream: #F2E8D5;
  --rule: #E0D2B6;
  --ink: #2B2622;
  --teal: #2E6B64;
  --teal-deep: #24544E;
  --tag: #F4D27A;
  --stamp: #B8432F;
  --sign: #E5432F;
  --sign-text: #FFF4DE;
  --title: #FFC83D;
  --title-ink: #241F1B;
  --cork: #C9A06B;
  --wood: #A8774C;

  --display: 'Dela Gothic One', 'Noto Sans JP NBT', system-ui, sans-serif;
  --hand: 'Yusei Magic', 'Noto Sans JP NBT', system-ui, sans-serif;
  --body: 'Noto Sans JP NBT', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --shadow: 0 5px 0 var(--ink);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html:not(.motion) { scroll-behavior: auto; }
body {
  margin: 0;
  font: 400 17px/1.65 var(--body);
  color: var(--ink);
  background-color: var(--cream);
  /* newsprint: a faint dot screen over the cream */
  background-image: radial-gradient(rgba(43, 38, 34, .07) 1px, transparent 1.4px);
  background-size: 7px 7px;
  overflow-x: clip;
}
html[lang="ja"] body { line-height: 1.85; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.hand { font-family: var(--hand); }

/* ------------------------------------------------------------------ the main button */
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 12px 28px;
  background: var(--teal); color: var(--paper);
  border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: var(--shadow);
  font: 400 clamp(17px, 2.1vw, 21px)/1.2 var(--display); letter-spacing: .02em;
  text-decoration: none; text-align: center;
  transition: background-color .15s, transform .12s, box-shadow .12s;
}
.cta:hover { background: var(--teal-deep); }
.cta:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.cta--big { min-height: 64px; padding: 14px 36px; font-size: clamp(19px, 2.6vw, 25px); }
.cta--bar { min-height: 42px; padding: 6px 16px; font-size: 15px; border-width: 2px; box-shadow: 0 3px 0 var(--ink); }

/* ------------------------------------------------------------------ sticky bar */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px var(--gutter);
  background: var(--paper); border-bottom: 3px solid var(--ink);
  transform: translateY(-110%); transition: transform .25s ease;
}
.bar.is-on { transform: none; }
.bar__name { font: 400 clamp(15px, 2.4vw, 19px)/1.1 var(--display); text-decoration: none; text-transform: uppercase; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html:not(.js) .bar { display: none; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; }
.tools {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 14px var(--gutter);
}
.studio-home { display: block; margin-right: auto; padding: 8px 12px; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 0 3px 0 var(--ink); }
.studio-home img { width: 112px; height: auto; }
.langswitch { display: flex; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; box-shadow: 0 3px 0 var(--ink); }
.langswitch a { padding: 8px 12px; font-weight: 700; font-size: 14px; line-height: 1.2; text-decoration: none; }
.langswitch a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.tool {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; min-height: 40px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 0 3px 0 var(--ink);
  font-size: 14px; font-weight: 700; line-height: 1.2; cursor: pointer;
}
.tool svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tool__play { fill: currentColor; display: none; }
.tool[aria-pressed="true"] .tool__pause { display: none; }
.tool[aria-pressed="true"] .tool__play { display: block; }
#music[aria-pressed="true"] { background: var(--tag); }
html:not(.js) #motion { display: none; }

.hero__art { display: block; position: relative; }
.hero__art img { width: 100%; height: min(68vh, 56.25vw); min-height: 420px; object-fit: cover; object-position: 50% 72%; }
.hero__art::after { content: ''; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, rgba(43, 38, 34, .25)); pointer-events: none; }

.flyer {
  background: var(--paper);
  border: 3px solid var(--ink); border-radius: 6px;
  box-shadow: 8px 10px 0 rgba(43, 38, 34, .9);
}
.hero__sheet {
  position: relative; z-index: 2;
  width: min(640px, calc(100% - 2 * var(--gutter)));
  margin: max(-14vh, -150px) 0 0 var(--gutter);
  padding: clamp(26px, 4vw, 44px) clamp(20px, 4vw, 44px) clamp(24px, 3vw, 34px);
  rotate: -1.2deg;
}
/* tape at the top corners */
.hero__sheet::before, .hero__sheet::after {
  content: ''; position: absolute; top: -16px; width: 96px; height: 30px;
  background: rgba(244, 210, 122, .78); border: 1px solid rgba(43, 38, 34, .15);
}
.hero__sheet::before { left: 18px; rotate: -8deg; }
.hero__sheet::after { right: 18px; rotate: 6deg; }

.plate {
  display: inline-block; margin-bottom: 18px;
  padding: 6px 16px;
  background: var(--sign); color: var(--sign-text);
  border: 3px solid var(--title-ink); border-radius: 8px; box-shadow: 0 4px 0 var(--title-ink);
  font: 400 clamp(14px, 1.8vw, 17px)/1.3 var(--display); letter-spacing: .06em;
}

/* The game's title lettering: yellow fill, a thick ink outline (~8.5% of the size, drawn
   behind the fill with paint-order) and a hard ink shadow straight down (~10%). */
.title {
  font: 400 clamp(46px, 8.4vw, 96px)/1.02 var(--display);
  text-transform: uppercase; letter-spacing: .01em;
  color: var(--title);
  -webkit-text-stroke: .17em var(--title-ink);
  paint-order: stroke fill;
  text-shadow: 0 .1em 0 var(--title-ink);
  margin: 0 0 .4em;
  overflow-wrap: anywhere;
}
html[lang="ja"] .title { font-size: clamp(40px, 7.6vw, 86px); line-height: 1.2; }
.title rt {
  font: 700 .26em/1 var(--body); letter-spacing: .14em;
  color: var(--ink); -webkit-text-stroke: 0; text-shadow: none;
  padding-bottom: .25em;
}
/* beside the flyer on wide screens: a pinned snapshot */
.hero__side { display: none; }
@media (min-width: 1240px) {
  .hero__side { display: block; position: absolute; right: var(--gutter); bottom: 40px; width: min(430px, 32vw); z-index: 2; }
  .pinned { padding: 12px 12px 6px; background: #fff; border: 2px solid rgba(43, 38, 34, .4); box-shadow: 6px 9px 0 rgba(43, 38, 34, .4); rotate: 2.4deg; position: relative; }
  .pinned::before { content: ''; position: absolute; top: -12px; left: 50%; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f07a66, var(--stamp) 60%); border: 2px solid var(--ink); }
  .pinned img { width: 100%; }
  .pinned figcaption { padding: 6px 2px 2px; font: 400 18px/1.3 var(--hand); text-align: center; }
}
.hero__desc { margin-bottom: 22px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-bottom: 18px; }
.hand-link { font: 400 18px/1.3 var(--hand); color: var(--teal-deep); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hero__meta { font-size: 14px; color: rgba(43, 38, 34, .8); }

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(64px, 10vw, 128px) var(--gutter); }
.sec-head { text-align: center; max-width: 820px; margin: 0 auto clamp(30px, 5vw, 56px); }
.sec-head--left { text-align: left; margin: 0; }
.sec-title { font: 400 clamp(30px, 5.4vw, 58px)/1.12 var(--display); letter-spacing: .005em; text-wrap: balance; }
html[lang="ja"] .sec-title { font-size: clamp(26px, 4.6vw, 50px); line-height: 1.3; }

/* ------------------------------------------------------------------ the shop TV */
.tvsec { padding-top: clamp(56px, 8vw, 96px); }
.tv {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: clamp(12px, 2vw, 24px);
  max-width: 1080px; margin: 0 auto;
  padding: clamp(12px, 2.4vw, 30px);
  background: linear-gradient(#5E534A, #3E3630);
  border: 4px solid var(--ink); border-radius: clamp(16px, 3vw, 34px);
  box-shadow: 0 10px 0 var(--ink), inset 0 2px 0 rgba(255, 255, 255, .18);
}
.tv__screen { border-radius: clamp(10px, 2vw, 26px); overflow: hidden; background: #111; border: 3px solid #1b1714; }
.tv__screen video { width: 100%; aspect-ratio: 16 / 9; background: #111; }
.tv__panel { display: flex; flex-direction: column; align-items: center; gap: 18px; width: clamp(54px, 7vw, 86px); padding-top: 10px; }
.tv__panel i { width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #9a8c7e, #4a4038); border: 3px solid var(--ink); }
.tv__panel b { width: 80%; flex: 1; max-height: 200px; border-radius: 8px; background: repeating-linear-gradient(#2a241f 0 4px, #4f453c 4px 8px); border: 3px solid var(--ink); }

/* ------------------------------------------------------------------ the playground board */
.board {
  background-color: var(--cork);
  background-image:
    radial-gradient(rgba(90, 58, 28, .35) 1.2px, transparent 1.6px),
    radial-gradient(rgba(255, 240, 210, .22) 1px, transparent 1.4px);
  background-size: 9px 11px, 13px 7px;
  background-position: 0 0, 4px 3px;
  border-block: 4px solid var(--ink);
}
.board .sec-title { color: var(--paper); text-shadow: 0 4px 0 var(--ink); }
.notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); max-width: 1120px; margin: 0 auto; }
.note {
  position: relative; padding: 16px 16px 22px;
  background: var(--paper); border: 2px solid rgba(43, 38, 34, .5);
  box-shadow: 4px 8px 0 rgba(43, 38, 34, .45);
}
.note--1 { rotate: -1.6deg; }
.note--2 { rotate: 1.3deg; background: #FFF6D6; }
.note--3 { rotate: 1deg; background: #F4FAF3; }
.note--4 { rotate: -1.1deg; }
.note::before {   /* the drawing pin */
  content: ''; position: absolute; top: -12px; left: 50%; width: 24px; height: 24px; margin-left: -12px;
  border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f07a66, var(--stamp) 60%);
  border: 2px solid var(--ink); box-shadow: 0 3px 0 rgba(43, 38, 34, .6);
}
.note__clip { border: 2px solid var(--ink); background: #222; margin-bottom: 14px; }
.note__clip video { width: 100%; aspect-ratio: 1200 / 680; object-fit: cover; }
.note__t { font: 400 clamp(21px, 2.4vw, 27px)/1.3 var(--hand); color: var(--stamp); margin-bottom: 6px; }

/* ------------------------------------------------------------------ the order form */
.order__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; max-width: 1180px; margin: 0 auto; }
.order__try { margin-top: 18px; font-size: 20px; color: var(--teal-deep); }
.clipboard {
  position: relative; padding: clamp(36px, 5vw, 52px) clamp(12px, 2.4vw, 26px) clamp(14px, 2.4vw, 26px);
  background: linear-gradient(135deg, #B88758, var(--wood)); border: 4px solid var(--ink); border-radius: 22px;
  box-shadow: 0 10px 0 var(--ink); rotate: 1deg;
}
.clipboard__clip {
  position: absolute; top: -18px; left: 50%; width: 46%; height: 50px; translate: -50% 0;
  background: linear-gradient(#d8d2c8, #9b958c); border: 3px solid var(--ink); border-radius: 12px 12px 18px 18px;
}
.clipboard__clip::after { content: ''; position: absolute; top: 9px; left: 50%; width: 30px; height: 14px; translate: -50% 0; border-radius: 8px; background: var(--wood); border: 3px solid var(--ink); }
.form {
  position: relative; overflow: hidden;
  padding: clamp(16px, 2.6vw, 28px);
  background: var(--paper);
  background-image: linear-gradient(var(--rule) 1px, transparent 1px);
  background-size: 100% 34px;
  border: 2px solid rgba(43, 38, 34, .35);
}
.form__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 3px solid var(--stamp); margin-bottom: 8px; }
.form__name b { font: 400 clamp(24px, 3vw, 30px)/1.2 var(--display); color: var(--stamp); }
.form__name span { font-size: 13px; font-weight: 700; color: var(--stamp); margin-left: 6px; }
.form__from { font: 400 18px/1.2 var(--display); color: var(--stamp); }
.form__table { width: 100%; border-collapse: collapse; background: var(--paper); }
.form__table th, .form__table td { padding: 7px 6px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.form__table thead th { font-size: 12px; font-weight: 700; color: rgba(43, 38, 34, .7); }
.form__table tbody th { font-weight: 800; font-size: clamp(15px, 1.8vw, 17px); line-height: 1.3; }
.form__table small { font-weight: 400; }
.step { display: inline-flex; align-items: center; gap: 4px; }
.step__b {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--cream); border: 2px solid var(--ink); border-radius: 8px; box-shadow: 0 2px 0 var(--ink);
  font-size: 20px; font-weight: 800; line-height: 1; cursor: pointer;
}
.step__b:disabled { opacity: .35; cursor: default; }
.step__b:not(:disabled):active { translate: 0 2px; box-shadow: none; }
.step__n { min-width: 2ch; text-align: center; font: 400 24px/1 var(--hand); color: var(--teal-deep); }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.form__total { font-weight: 700; }
.form__total output { font: 400 28px/1 var(--hand); color: var(--stamp); margin-left: 6px; }
.form__send {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 18px 6px 8px; min-height: 60px;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 0 4px 0 var(--ink);
  font-weight: 800; cursor: pointer;
}
.form__send span {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid var(--stamp); color: var(--stamp); font: 400 15px/1 var(--display); rotate: -12deg;
}
.form__send:disabled { opacity: .45; cursor: default; }
.form__send:not(:disabled):active { translate: 0 3px; box-shadow: 0 1px 0 var(--ink); }
.form__status { min-height: 1.6em; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--teal-deep); }
.form__stamp {
  position: absolute; right: 4%; top: 50%; translate: 0 -50%; rotate: -9deg;
  padding: 10px 16px; border: 5px solid var(--stamp); border-radius: 10px;
  color: var(--stamp);
  font: 400 clamp(19px, 2.2vw, 26px)/1.2 var(--display); text-align: center; max-width: 32%; text-wrap: balance;
  opacity: 0; pointer-events: none;
}
@media (min-width: 621px) { .form__table { width: 60%; } }
@media (max-width: 620px) {
  .form__stamp { position: static; display: none; translate: none; rotate: -3deg; max-width: none; width: max-content; margin: 16px auto 0; font-size: 18px; padding: 8px 14px; border-width: 4px; }
  .form.is-sent .form__stamp, html:not(.js) .form .form__stamp { display: block; }
}
.form.is-sent .form__stamp { opacity: .92; }
html.motion .form.is-sent .form__stamp { animation: slap .32s cubic-bezier(.2, 1.6, .4, 1) both; }
/* Without the script the form is a picture of the form, stamped. */
html:not(.js) .form .form__stamp { opacity: .92; }
html:not(.js) .form__foot, html:not(.js) .form__status { display: none; }

/* ------------------------------------------------------------------ the shelf of price tags */
.shelf { background: var(--paper); border-block: 4px solid var(--ink); }
.tags {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 46px 26px;
  max-width: 1180px; margin: 0 auto; padding-bottom: 6px;
}
.tag {
  position: relative; padding: 26px 18px 18px;
  background: var(--tag); border: 2px solid var(--ink); border-radius: 6px 6px 6px 6px;
  box-shadow: 0 6px 0 rgba(43, 38, 34, .85);
  font: 400 clamp(17px, 1.9vw, 19px)/1.45 var(--hand);
}
.tag:empty { display: none; }
.tag::before {   /* the punched hole */
  content: ''; position: absolute; top: 9px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--ink);
}
.tag::after {    /* the shelf edge each row hangs from */
  content: ''; position: absolute; left: -14px; right: -14px; bottom: -24px; height: 12px;
  background: var(--wood); border: 2px solid var(--ink); border-radius: 3px; z-index: -1;
}
.tag:nth-child(3n + 1) { rotate: -1.4deg; }
.tag:nth-child(3n + 2) { rotate: .9deg; background: #F8E4A6; }
.tag:nth-child(3n) { rotate: -.4deg; }

/* ------------------------------------------------------------------ snapshots */
.snaps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 40px); max-width: 1240px; margin: 0 auto; }
.snap a { display: block; padding: 12px 12px 4px; background: #fff; border: 2px solid rgba(43, 38, 34, .4); box-shadow: 4px 7px 0 rgba(43, 38, 34, .35); text-decoration: none; transition: rotate .2s; }
.snap:nth-child(odd) a { rotate: -1.3deg; }
.snap:nth-child(even) a { rotate: 1.1deg; }
.snap a:hover { rotate: 0deg; }
.snap img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid rgba(43, 38, 34, .25); }
.snap__c { display: block; padding: 8px 4px; font: 400 18px/1.35 var(--hand); text-align: center; }

/* ------------------------------------------------------------------ the free demo: the week's chart */
.demo { background: var(--paper); border-top: 4px solid var(--ink); }
.demo__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: center; max-width: 1180px; margin: 0 auto; }
.demo__copy .sec-title { margin-bottom: 18px; }
.demo__copy p + p { margin-top: 14px; }
.demo__facts { padding: 12px 16px; background: var(--cream); border-left: 5px solid var(--stamp); font-weight: 700; }
.btn-paper {
  display: inline-flex; align-items: center; min-height: 50px; margin-top: 22px; padding: 10px 20px;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink);
  font-weight: 800; text-decoration: none;
}
.btn-paper:hover { background: var(--tag); }
.chart {
  position: relative; padding: clamp(18px, 3vw, 30px);
  background: #fff; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 8px 10px 0 var(--ink);
  rotate: -1deg;
}
.chart__title { font: 400 clamp(24px, 3vw, 32px)/1.2 var(--display); margin-bottom: 12px; }
.chart__days { display: grid; grid-template-columns: repeat(6, 1fr); font-size: 13px; font-weight: 700; color: rgba(43, 38, 34, .7); text-align: center; margin-bottom: 6px; }
.chart__days span { padding: 2px 0; }
.chart__rows { display: grid; gap: 10px; }
.chart__row { position: relative; height: 26px; background: var(--cream); border: 2px solid var(--rule); border-radius: 6px; overflow: hidden; }
.chart__row i { position: absolute; top: 0; bottom: 0; left: var(--a); width: calc(var(--b) - var(--a)); }
.chart__row .q { background: #E8E1D3; }
.chart__row .s { background: #F4D27A; }
.chart__row .c { background: #F0A75A; }
.chart__row .p { background: #E5432F; }
.chart__stamp {
  position: absolute; right: clamp(10px, 4vw, 30px); bottom: clamp(-26px, -2vw, -14px); rotate: -9deg;
  padding: 6px 18px; border: 5px solid var(--stamp); border-radius: 10px; background: rgba(255, 255, 255, .8);
  color: var(--stamp); font: 400 clamp(26px, 3.6vw, 40px)/1.15 var(--display);
}
html.motion .chart.is-in .chart__stamp { animation: slap .34s .35s cubic-bezier(.2, 1.6, .4, 1) both; }

/* ------------------------------------------------------------------ the receipt */
.final { padding: clamp(64px, 10vw, 120px) var(--gutter) clamp(48px, 7vw, 80px); text-align: center; }
.final__stage { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; max-width: 760px; margin: clamp(26px, 4vw, 44px) auto 0; }
.receipt {
  position: relative; width: min(330px, 100%); padding: 26px 24px 34px;
  background: #fff; color: var(--ink);
  font: 500 15px/1.5 var(--body); font-variant-numeric: tabular-nums;
  text-align: left; rotate: 1.4deg;
  box-shadow: 0 10px 22px rgba(43, 38, 34, .25);
  /* a torn, zig-zag bottom edge */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 10px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 10px repeat-x;
}
.receipt__shop { text-align: center; }
.receipt__shop b { display: block; font: 400 24px/1.3 var(--display); }
.receipt__shop span { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.receipt__date { text-align: center; font-size: 13px; margin: 8px 0 12px; padding-bottom: 10px; border-bottom: 2px dashed rgba(43, 38, 34, .45); }
.receipt__lines div { display: flex; justify-content: space-between; gap: 12px; }
.receipt__lines dd { white-space: nowrap; }
.receipt__lines .rule { border-top: 1px dashed rgba(43, 38, 34, .45); margin-top: 8px; padding-top: 8px; }
.receipt__lines .big { margin-top: 10px; padding-top: 8px; border-top: 2px solid var(--ink); font-weight: 800; font-size: 20px; }
.receipt__thanks { margin-top: 16px; text-align: center; font: 400 18px/1.3 var(--hand); }
.final__kids { width: clamp(180px, 30vw, 300px); margin-left: 18px; position: relative; z-index: 1; }
/* the shop counter the receipt and the kids stand on */
.final__stage::after { content: ''; position: absolute; left: -4%; right: -4%; bottom: -14px; height: 22px; background: var(--wood); border: 3px solid var(--ink); border-radius: 4px; box-shadow: 0 6px 0 rgba(43, 38, 34, .5); z-index: 2; }
.receipt { z-index: 3; }   /* in front of the counter; the kids stand behind it */
.final__text { margin: 28px auto 18px; max-width: 560px; text-wrap: balance; }
.follow { margin-top: clamp(44px, 6vw, 70px); }
.follow__t { font: 400 20px/1.3 var(--hand); margin-bottom: 12px; }
.follow__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.follow__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink); font-weight: 700; text-decoration: none; }
.follow__links a:hover { background: var(--tag); }

/* ------------------------------------------------------------------ footer */
.footer { padding: 36px var(--gutter) 90px; text-align: center; font-size: 14px; border-top: 3px solid var(--ink); background: var(--paper); }
.footer__by { margin-bottom: 8px; }
.footer__studio img { width: 160px; margin: 0 auto 16px; }
.footer__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 10px; }

/* ------------------------------------------------------------------ motion (only when welcome) */
@keyframes slap { 0% { opacity: 0; scale: 2.2; } 70% { opacity: 1; scale: .94; } 100% { opacity: .92; scale: 1; } }
html.motion [data-reveal] { opacity: 0; translate: 0 22px; transition: opacity .5s ease var(--d, 0ms), translate .6s cubic-bezier(.2, 1.3, .4, 1) var(--d, 0ms); }
html.motion [data-reveal].is-in { opacity: 1; translate: none; }

/* ------------------------------------------------------------------ narrower screens */
@media (max-width: 960px) {
  .order__grid, .demo__grid { grid-template-columns: minmax(0, 1fr); }
  .sec-head--left { text-align: center; }
  .snaps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero__art img { height: auto; min-height: 0; aspect-ratio: 900 / 1078; max-height: 82vh; object-position: 50% 30%; }
  .hero__sheet { margin: -12vh auto 0; rotate: -.8deg; }
  .tools { gap: 6px; padding-top: 10px; }
  .studio-home img { width: 92px; }
  .tool__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tool { padding: 8px 10px; }
  .notes { grid-template-columns: minmax(0, 1fr); }
  .tv { grid-template-columns: minmax(0, 1fr); padding: 10px; border-width: 3px; }
  .tv__panel { display: none; }
  .snaps { grid-template-columns: minmax(0, 1fr); }
  .hero__cta .cta { width: 100%; }
  .form__table th, .form__table td { padding: 6px 3px; }
  .final__kids { width: 140px; margin-left: 8px; }
}
@media (max-width: 420px) {
  .step__b { width: 34px; height: 34px; }
  .final__kids { display: none; }
  .langswitch a { padding: 8px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* the smallest phones: the four top tools on one row */
@media (max-width: 400px) {
  .tools { gap: 5px; padding-inline: 12px; }
  .studio-home { padding: 7px 8px; }
  .studio-home img { width: 72px; }
  .langswitch a { padding: 8px 7px; font-size: 13px; }
  .tool { padding: 8px 9px; }
}
@media (max-width: 480px) {
  .bar { padding-inline: 12px; }
  .bar__name { font-size: 13px; line-height: 1.15; white-space: normal; text-overflow: clip; }
  .cta--bar { flex: none; padding-inline: 12px; font-size: 13px; white-space: nowrap; }
}
