/* The Missing Word Files: one stylesheet. Design tokens first, then components in page order.
   Motion rules live under html.motion (set by motion.js), so the page is complete without them. */

/* ---------- Fonts (self-hosted, see assets/fonts/README.txt) ---------- */
@font-face { font-family: 'Bebas Neue'; src: url('assets/fonts/bebas-neue.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Briarbridge Sans'; src: url('assets/fonts/sans-regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Briarbridge Sans'; src: url('assets/fonts/sans-bold.woff') format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Briarbridge Sans'; src: url('assets/fonts/sans-black.woff') format('woff'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Kalam'; src: url('assets/fonts/kalam.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Special Elite'; src: url('assets/fonts/special-elite.woff') format('woff'); font-weight: 400; font-display: swap; }

/* ---------- Design tokens ---------- */
:root {
  --cream: #f5f0e3;
  --paper: #fffdf6;
  --ink: #14181c;
  --teal: #0e6b68;
  --teal-deep: #0a4f4d;
  --teal-mid: #9cc5bd;
  --tint: #d3e2d9;
  --pop: #e2512f;
  --pop-text: #a93518;
  --graphite: #3b4046;
  --muted: #47505a;
  --focus: #14181c;

  --display: 'Bebas Neue', 'Arial Narrow', Impact, sans-serif;
  --sans: 'Briarbridge Sans', Lato, 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --hand: 'Kalam', 'Segoe Print', 'Bradley Hand', 'Comic Sans MS', cursive;
  --type: 'Special Elite', 'Courier New', Courier, monospace;

  --t: 56px;                 /* letter-tile size; components override it */
  --line: 1px;               /* hairline weight */
  --rule: rgba(20, 24, 28, .14);   /* hairline on light surfaces */
  --rule-d: rgba(245, 240, 227, .16); /* hairline on dark surfaces */
  --radius: 14px;
  --hard: 0 1px 2px rgba(11, 17, 20, .05), 0 14px 34px -14px rgba(11, 17, 20, .22);
  --soft: 0 18px 40px rgba(20, 24, 28, .18);
  --shell: 1200px;
  --bar: 0px;                /* height of the sticky buy bar (phones only) */
  --panel: auto;             /* height of one full-screen panel (phones only) */
  --gutter: clamp(16px, 4vw, 40px);
  --header: 62px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --thump: cubic-bezier(.2, 1.5, .4, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); overflow-x: hidden; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: .95; margin: 0; letter-spacing: .01em; text-transform: uppercase; }
h2 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); }
h3 { font-size: 1.75rem; line-height: 1; }
h4 { font-size: 1.5rem; line-height: 1; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main { overflow-x: clip; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.shell { width: min(var(--shell), 100% - 2 * var(--gutter)); margin-inline: auto; }
.shell.narrow, .shell.slim { width: min(800px, 100% - 2 * var(--gutter)); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

.kicker { font: 700 .8125rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin: 0 0 .9em; }
.kicker.light { color: var(--tint); }
.fine { font-size: .9375rem; color: var(--muted); }
.fine.light { color: var(--tint); }
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head > p:last-child { font-size: 1.1875rem; margin: 1em 0 0; color: var(--muted); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: 12px 24px; border: 1px solid var(--rule); border-radius: 12px; background: var(--teal); color: #fff; font: 900 1rem/1.1 var(--sans); letter-spacing: .04em; text-decoration: none; text-transform: uppercase; box-shadow: var(--lift-sm); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.button:hover { transform: translate(-2px, -2px); box-shadow: var(--lift-sm); }
.button:active { transform: translate(3px, 3px); box-shadow: var(--lift-sm); }
.button.ghost { background: var(--paper); color: var(--ink); }
.button.light { background: var(--cream); color: var(--ink); }
.button.small { min-height: 44px; padding: 8px 16px; font-size: .875rem; box-shadow: var(--lift-sm); }
.link { background: none; border: 0; min-height: 44px; padding: 8px 10px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.link:hover { color: var(--teal); }

/* Rubber stamps and pins */
.stamp { display: inline-block; font: 400 1.5rem/1 var(--type); letter-spacing: .06em; text-transform: uppercase; color: var(--pop); border: 3px solid var(--pop); border-radius: 8px; padding: .5em .7em .34em; outline: 1.5px solid var(--pop); outline-offset: -8px; transform: rotate(-8deg); background: rgba(255, 253, 246, .6); white-space: nowrap; }
.pin { position: absolute; left: 50%; top: -9px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f6957c 0 22%, var(--pop) 24%); box-shadow: 0 3px 5px rgba(20, 24, 28, .35); z-index: 3; }

/* Letter tiles and ladders (the cover's motif) */
.ladder { position: relative; display: grid; gap: calc(var(--t) * .13); width: max-content; }
.ladder::before, .ladder::after { content: ''; position: absolute; top: calc(var(--t) * -.38); bottom: calc(var(--t) * -.38); width: calc(var(--t) * .1); border-radius: 99px; background: var(--teal); left: calc(var(--t) * .45); }
.ladder::after { left: calc(var(--t) * 3.81); }
.lrow { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, var(--t)); gap: calc(var(--t) * .12); }
.lrow > span { height: var(--t); display: grid; place-items: center; border: calc(var(--t) * .06) solid var(--ink); border-radius: 18%; background: var(--paper); color: var(--ink); font: 900 calc(var(--t) * .58)/1 var(--sans); }
.lrow.given > span { background: var(--ink); color: var(--cream); }
.lrow.pencil b { font: 400 calc(var(--t) * .66)/1 var(--hand); color: var(--graphite); transform: translateY(6%); }
.lrow > span.ev { background: var(--teal); border-color: var(--teal); }
.lrow > span.ev b { color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1px solid var(--rule); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header); }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 1.5rem/1 var(--display); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.wordmark b { font-weight: 400; color: var(--teal); }
.mark { display: flex; gap: 3px; }
.mark i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--ink); color: var(--cream); font: 900 .875rem/1 var(--sans); }
.mark i.t { background: var(--teal); }
.site-header nav { display: none; gap: 4px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 10px; white-space: nowrap; font: 700 .8125rem/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; border-radius: 8px; }
.site-header nav a:hover { background: var(--tint); }
.site-header nav .nav-cta, .site-header nav.open .nav-cta { display: none; }
/* Phone and tablet menu: nav.js shows the button and toggles .open on the nav. */
.nav-toggle { display: grid; place-items: center; flex: none; order: 3; width: 44px; height: 44px; padding: 0; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 3px; border-radius: 2px; background: var(--ink); transition: transform .2s var(--ease); }
.bars { position: relative; }
.bars::before, .bars::after { content: ''; position: absolute; left: 0; top: -7px; }
.bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1219px) {
  .wordmark { margin-right: auto; }
  .site-header .button { order: 2; }
  .site-header nav.open { display: flex; flex-direction: column; gap: 2px; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - var(--header)); overflow-y: auto; padding: 8px var(--gutter) 16px; background: var(--cream); border-block: 1px solid var(--rule); box-shadow: 0 14px 24px rgba(20, 24, 28, .2); }
  .site-header nav.open a { display: flex; align-items: center; min-height: 48px; font-size: 1rem; }
}
@media (max-width: 639px) {
  .site-header .button { display: none; }
  .site-header nav.open .nav-cta { display: flex; justify-content: center; margin-top: 8px; background: var(--pop); color: var(--ink); }
  .site-header nav.open .nav-cta:hover { background: #f0683f; }
}
.progress { position: absolute; left: 0; bottom: -3px; height: 3px; width: 100%; background: var(--pop); transform: scaleX(0); transform-origin: 0 50%; }
@media (max-width: 480px) { .mark { display: none; } .nav { gap: 10px; } .wordmark { font-size: min(1.5rem, 6.1vw); } }
.site-header .button { white-space: nowrap; }
@media (min-width: 1220px) { .site-header nav { display: flex; } .nav-toggle { display: none; } }

/* ---------- 1. Hero ---------- */
.hero { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.hero-print { position: absolute; width: clamp(200px, 22vw, 320px); height: clamp(250px, 27.5vw, 400px); right: -70px; top: 46%; color: var(--tint); opacity: .8; transform: rotate(-14deg); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 36px; flex: 1; padding-block: clamp(24px, 3.5vw, 48px) clamp(32px, 4.5vw, 60px); }
.hero h1 { font-size: clamp(3rem, min(5.4vw, 8.4vh), 5rem); line-height: .9; margin: 0 0 1rem; text-wrap: balance; }
.hero h1 span { display: block; }
.hero h1 .l2 { color: var(--teal); }
.hero h1 .sub { font: 700 clamp(1rem, 1.6vw, 1.25rem)/1.35 var(--sans); letter-spacing: 0; text-transform: none; max-width: 27em; margin: 1rem 0 0; text-wrap: pretty; }
.hero .lead { font-size: 1.125rem; max-width: 34em; color: var(--graphite); margin-bottom: 1.5em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.reassure { margin: 22px 0 0; font: 700 .8125rem/1.5 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-deep); }

.hero-stage { position: relative; --t: clamp(48px, 4.5vw, 66px); }
.hero-ladder-wrap { position: relative; padding: calc(var(--t) * .5) 0 0; }
.hl-glass { position: absolute; z-index: 4; width: calc(var(--t) * 1.9); height: calc(var(--t) * 1.9); left: calc(var(--t) * 3.132); top: calc(var(--t) * 2.052); color: var(--ink); pointer-events: none; overflow: visible; }
.hl .g { width: 100%; height: 100%; overflow: visible; }
.hl .g path { fill: none; stroke: #2c3136; stroke-width: 8.5; stroke-linecap: round; stroke-linejoin: round; }
.hl .ev .g path { stroke: #fff; }
.stamp-files { position: absolute; z-index: 5; left: calc(var(--t) * -.1); top: calc(var(--t) * 6.3); font-size: clamp(.95rem, 3.6vw, 1.25rem); text-align: center; transform: rotate(-9deg); background: var(--cream); margin: 0; }
.stamp-files small { display: block; font-size: .72em; margin-top: .3em; text-transform: none; }
.scrawl { font: 400 1.25rem/1.2 var(--hand); color: var(--graphite); text-align: right; margin: calc(var(--t) * .7) 0 0 calc(var(--t) * 2.2); max-width: calc(var(--t) * 2.6); transform: rotate(-2deg); }
.replay { display: block; margin: 6px auto 0; min-height: 44px; padding: 8px 14px; background: none; border: 0; font: 700 .8125rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); text-decoration: underline; text-underline-offset: 4px; }
.pencil-tool { position: absolute; left: 0; top: 0; z-index: 6; width: calc(var(--t) * .44); height: calc(var(--t) * 2.2); transform-origin: 50% 100%; pointer-events: none; opacity: 0; transition: opacity .35s; overflow: visible; will-change: transform; }
.pencil-shadow { position: absolute; left: 0; top: 0; z-index: 5; width: calc(var(--t) * .9); height: calc(var(--t) * .2); border-radius: 50%; background: rgba(20, 24, 28, .3); filter: blur(4px); pointer-events: none; opacity: 0; transition: opacity .35s; will-change: transform; }
.hl.writing .pencil-tool, .hl.writing .pencil-shadow { opacity: 1; }

.book { transform: rotate(-3deg) translateY(calc(var(--y, 0) * 1px)); }
.book img { width: 100%; filter: drop-shadow(10px 14px 16px rgba(20, 24, 28, .22)); }

.band { background: var(--ink); color: var(--cream); }
.band-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; padding-block: 16px; font: 700 .8125rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.band-row li { display: flex; align-items: baseline; gap: 8px; }
.band-row strong { font: 400 1.9rem/1 var(--display); color: #fff; letter-spacing: .02em; }

/* Phones and tablets: promise, then the cover beside the lead, then the buttons and the reassurance line.
   The animated ladder is decoration and is left to wider screens. */
@media (max-width: 1099px) {
  .hero-grid { grid-template-columns: minmax(0, .52fr) minmax(0, 1fr); grid-template-areas: "k k" "h h" "b l" "b p" "c c" "r r"; gap: 0 20px; align-items: center; align-content: center; padding-block: 24px; }
  .hero-copy, .hero-stage { display: contents; }
  .hero .kicker { grid-area: k; }
  .hero h1 { grid-area: h; font-size: min(8.1vw, 4.6rem); }
  .hero h1 .l1, .hero h1 .l2 { white-space: nowrap; }
  .hero h1 .sub { font-size: clamp(.9375rem, 2.4vw, 1.1875rem); }
  .book { grid-area: b; width: 100%; max-width: 280px; justify-self: center; }
  .hero .lead { grid-area: l; margin: 0; align-self: end; }
  .hero-price { grid-area: p; align-self: start; margin: 12px 0 0; }
  .cta-row { grid-area: c; margin-top: 24px; }
  .reassure { grid-area: r; }
  .hero-ladder-wrap, .hero-print { display: none; }
}
@media (min-width: 1100px) and (max-width: 1299px) { .book { width: 35% !important; } }
@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); align-items: center; gap: 24px; }
  .hero-print { right: auto; left: 44%; top: 34%; }
  .hero-stage { display: block; min-height: calc(var(--t) * 8.9); }
  .book { position: absolute; left: -2%; top: 10%; width: 41%; transform: perspective(1500px) rotateY(10deg) rotate(-4deg) translateY(calc(var(--y, 0) * 1px)); }
  .hero-ladder-wrap { position: absolute; right: calc(var(--t) * .8); top: 0; }
  .stamp-files { left: calc(var(--t) * -2.6); top: calc(var(--t) * 6.5); }
  .scrawl { text-align: center; margin: calc(var(--t) * .62) 0 0; max-width: none; }
}

/* ---------- 2. The story ---------- */
.story { background: var(--teal); color: var(--cream); --focus: #fff; padding: clamp(56px, 9vw, 110px) 0; }
.story-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; margin-bottom: clamp(28px, 5vw, 56px); }
.story-head h2 { max-width: 13em; font-size: clamp(2.1rem, 5.4vw, 3.9rem); }
.count { display: flex; align-items: center; gap: 12px; padding: 10px 16px 8px 10px; border: 1px solid var(--rule-d); border-radius: var(--radius); background: var(--teal-deep); }
.count-clock { width: 54px; height: 54px; flex: none; color: var(--cream); }
.count-hand { transform-box: view-box; transform-origin: 50% 50%; }
.count p { margin: 0; font: 400 1.5rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.count strong { display: inline-block; min-width: 1.1em; font-weight: 400; font-size: 2.6rem; color: #fff; font-variant-numeric: tabular-nums; text-align: right; }
.count small { display: block; font: 700 .6875rem/1.2 var(--sans); letter-spacing: .16em; color: var(--tint); margin-top: 2px; }

.beats { display: grid; gap: clamp(40px, 7vw, 72px); }
.beat { display: grid; gap: 24px; align-items: center; }
.beat h3 { font-size: clamp(2.2rem, 7vw, 5.4rem); color: #fff; margin-bottom: .3em; }
.beat-copy p { font-size: clamp(1.0625rem, 2.2vw, 1.3125rem); max-width: 30em; }
.beat-cta { margin: 1.4em 0 0; }
.beat-art { display: grid; place-items: center; min-height: 180px; }
.beat-dots { display: none; }
@media (min-width: 820px) {
  .beat { grid-template-columns: 1.1fr .9fr; gap: 48px; }
  .beat-art > * { zoom: 1.3; }
}

.notecard { position: relative; background: var(--paper); color: var(--ink); padding: 34px 30px 20px; border-radius: 4px; box-shadow: var(--lift); transform: rotate(-3deg); max-width: 300px; }
.notecard p { font: 400 clamp(1.5rem, 5vw, 1.9rem)/1.25 var(--hand); margin: 0 0 .3em; }
.notecard span { display: block; text-align: right; font: 400 1.25rem/1 var(--hand); color: var(--teal); }

.cabinet { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px 8px; width: min(100%, 340px); }
.cabinet i { position: relative; display: grid; place-items: center; height: 46px; background: var(--cream); color: var(--ink); border: 1px solid var(--rule); border-radius: 0 6px 6px 6px; font: 400 1.25rem/1 var(--display); font-style: normal; }
.cabinet i::before { content: ''; position: absolute; left: -2px; top: -9px; width: 46%; height: 9px; background: var(--cream); border: 1px solid var(--rule); border-bottom: 0; border-radius: 5px 5px 0 0; }

.strip { position: relative; background: var(--paper); color: var(--ink); padding: 26px 22px 30px; border-radius: 3px; box-shadow: var(--lift); transform: rotate(1.5deg); max-width: 400px; }
.strip p { font: 400 clamp(1.0625rem, 3.6vw, 1.25rem)/1.9 var(--type); margin: 0; }
.hole { position: relative; display: inline-block; vertical-align: -0.35em; width: 5.6em; height: 1.55em; background: var(--teal); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5); }
.scrap { position: absolute; inset: -1px; background: var(--paper); border: 1.5px dashed var(--ink); transform: translate(18px, 34px) rotate(13deg); box-shadow: 0 6px 12px -4px rgba(0, 0, 0, .45); }
.scrap::after { content: ''; position: absolute; inset: 26% 12%; background: var(--ink); border-radius: 2px; }
.snips { position: absolute; right: 14px; bottom: -22px; width: 46px; height: 46px; color: var(--ink); transform: rotate(-150deg); }

.claim { position: relative; background: var(--paper); color: var(--ink); padding: 22px 24px 26px; border: 1px solid var(--rule); border-radius: 4px; box-shadow: var(--lift); transform: rotate(-2deg); max-width: 340px; }
.claim small { display: block; font: 700 .75rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--teal); border-bottom: 1px solid var(--rule); padding-bottom: 10px; margin-bottom: 12px; }
.claim p { font: 400 1.0625rem/1.5 var(--type); margin: 0 0 .7em; }
.claim em { font: 400 1.375rem/1 var(--hand); color: var(--graphite); }
.stamp-claim { position: absolute; right: -14px; bottom: 30px; font-size: 1.9rem; transform: rotate(-14deg); background: rgba(255, 253, 246, .82); }

.leaf { background: var(--paper); color: var(--ink); width: 210px; text-align: center; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; box-shadow: var(--lift); transform: rotate(3deg); transform-origin: 50% 0; }
.leaf small { display: block; background: var(--pop); color: var(--ink); font: 900 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 12px 6px; border-bottom: 1px solid var(--rule); }
.leaf strong { display: block; font: 400 6.2rem/.9 var(--display); padding-top: 14px; text-transform: uppercase; }
.leaf span { display: block; font: 700 .8125rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 4px 0 16px; }

/* ---------- 3. How it works ---------- */
.how { background: var(--cream); padding: clamp(64px, 10vw, 120px) 0; }
.how-grid { display: grid; gap: 36px; }
.how-copy h2 { margin-bottom: .5em; }
.steps { display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.steps .num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--ink); color: var(--cream); font: 400 1.75rem/1 var(--display); padding-top: 2px; }
.steps h3 { margin: .25em 0 .25em; }
.steps p { margin: 0; color: var(--graphite); }
.how-stage { display: grid; gap: 22px; justify-items: center; align-content: center; --t: 46px; }
.how-ladder { position: relative; padding: calc(var(--t) * .5) 0; justify-self: start; margin-left: 2px; }
.tag { display: inline-block; font: 900 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; background: var(--teal); color: #fff; padding: 7px 10px; border-radius: 6px; margin: 0 0 calc(var(--t) * .55); }
.tag.dark { background: var(--ink); color: var(--cream); margin-bottom: 12px; }
.ladder.mini em { position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); width: max-content; max-width: 132px; font: 700 .8125rem/1.25 var(--sans); font-style: normal; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 6px 9px; }
.casecard { position: relative; width: 100%; max-width: 420px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--hard); padding: 16px 16px 18px; }
.cc-q { font: 400 1.6rem/1 var(--display); text-transform: uppercase; margin: 0 0 12px; max-width: 60%; }
.cc-theories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.cc-theories li { position: relative; font: 700 .8125rem/1.2 var(--sans); border: 1px solid var(--rule); border-radius: 9px; padding: 8px 8px 8px 34px; min-height: 44px; display: flex; align-items: center; background: var(--paper); transition: background .3s, color .3s; }
.cc-theories b { position: absolute; left: 6px; top: 50%; margin-top: -11px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; background: var(--ink); color: var(--cream); font: 400 1.05rem/1 var(--display); padding-top: 1px; }
.cc-theories .right { background: var(--teal); color: #fff; }
.tick { position: absolute; right: -8px; top: -10px; width: 26px; height: 26px; border-radius: 50%; background: var(--pop); border: 1px solid var(--rule); }
.tick::after { content: ''; position: absolute; left: 7px; top: 3px; width: 7px; height: 12px; border: solid var(--ink); border-width: 0 3px 3px 0; transform: rotate(40deg); }
.cc-label { font: 900 .6875rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; margin: 0 0 8px; color: var(--teal); }
.cc-boxes { display: grid; grid-template-columns: repeat(5, 44px); gap: 6px; }
.cc-boxes span { height: 44px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: 9px; background: var(--tint); font: 900 1.5rem/1 var(--sans); }
.cc-boxes span:first-child { background: var(--teal); color: #fff; border-color: var(--teal); }
.cc-boxes b { display: block; }
.stamp-closed { position: absolute; right: 6px; top: 8px; font-size: clamp(1.25rem, 4.6vw, 1.75rem); transform: rotate(-12deg); background: rgba(255, 253, 246, .86); }
@media (min-width: 620px) { .how-stage { --t: 56px; } .how-ladder { justify-self: center; margin-left: -120px; } .ladder.mini em { max-width: 190px; font-size: .9375rem; } }
@media (min-width: 980px) {
  .how-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
  .how-ladder { margin-left: -150px; }
  .how-stage { --t: clamp(56px, 7.4vh, 68px); gap: 30px; }
  .casecard { max-width: 470px; padding: 20px 22px 24px; }
  .cc-q { font-size: 2rem; }
  .cc-boxes { grid-template-columns: repeat(5, 52px); } .cc-boxes span { height: 52px; font-size: 1.75rem; }
}

/* ---------- 4. Playable ladder ---------- */
.puzzle { background: var(--ink); color: var(--cream); --focus: #fff; }
.puzzle h2 { margin-bottom: .4em; }
.puzzle-grid { display: grid; gap: 40px; }
.puzzle-copy > p { max-width: 34em; }
.exhibit { background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--type); padding: 18px 20px 16px; border-radius: 4px; border-left: 8px solid var(--teal); transform: rotate(-.6deg); }
.exhibit span { display: block; font: 900 .6875rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.demo { position: relative; --t: clamp(46px, 13.5vw, 60px); --focus: var(--ink); background: var(--cream); color: var(--ink); border-radius: 20px; padding: clamp(18px, 4vw, 32px); box-shadow: var(--lift); display: grid; gap: 14px; justify-self: center; width: 100%; max-width: 560px; }
.demo .row { display: grid; gap: 6px; }
.demo .tiles { position: relative; display: grid; grid-template-columns: repeat(4, var(--t)); gap: calc(var(--t) * .12); width: max-content; border-radius: 12px; }
.demo .tiles > span, .demo .tiles > i { height: var(--t); display: grid; place-items: center; border: 1px solid var(--rule); border-radius: 18%; font: 900 calc(var(--t) * .56)/1 var(--sans); font-style: normal; }
.demo .tiles > span { background: var(--ink); color: var(--cream); }
.demo .tiles > i { background: var(--paper); }
.demo .tiles > i.ev { background: var(--tint); border-color: var(--teal); }
.demo input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border: 0; background: transparent; color: var(--ink); font: 700 calc(var(--t) * .55)/1 'Courier New', Courier, monospace; text-transform: uppercase; letter-spacing: calc(var(--t) * .79); padding: 0 0 0 calc(var(--t) * .335); border-radius: 12px; outline-offset: 5px; }
.js .demo input { color: transparent; caret-color: transparent; letter-spacing: 0; }
.js .demo input::selection { background: transparent; }
.demo .tiles > i.cur { box-shadow: 0 0 0 3px var(--cream), 0 0 0 6px var(--pop); }
.demo label { font: 700 1rem/1.3 var(--sans); display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: baseline; order: -1; }
.demo label > b { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--cream); font-size: .8125rem; transform: translateY(-1px); }
.demo label small { grid-column: 2; font-weight: 400; font-size: .875rem; color: var(--teal); }
.demo .row.fixed { grid-template-columns: max-content 1fr; align-items: center; gap: 14px; }
.demo .row.fixed em { font: 400 1.25rem/1 var(--display); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.demo .row.ok .tiles > i { background: var(--tint); }
.demo .row.ok .tiles > i.ev { background: var(--teal); color: #fff; }
.demo .row.bad .tiles > i { border-color: var(--pop-text); background: #fbe3dc; }
.demo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; }
#demo-status { margin: 0; min-height: 3.2em; font-weight: 700; padding: 12px 14px; border-radius: 10px; background: var(--paper); border: 1px solid var(--rule); }
#demo-status.warn { border-color: var(--pop-text); color: #7d240e; background: #fbe3dc; }
#demo-status.good { border-color: var(--teal); color: #07403e; background: var(--tint); }
.stamp-solved { position: absolute; right: 8px; top: 16px; font-size: clamp(1.9rem, 7vw, 2.5rem); border-width: 4px; transform: rotate(-14deg) scale(2.4); opacity: 0; pointer-events: none; background: rgba(255, 253, 246, .88); }
.demo.solved .stamp-solved { opacity: 1; transform: rotate(-14deg) scale(1); transition: transform .32s var(--thump), opacity .12s; }
@media (min-width: 560px) {
  .demo .row { grid-template-columns: max-content 1fr; align-items: center; gap: 16px; }
  .demo label { order: 0; }
  .stamp-solved { top: 37%; right: 4px; }
}
@media (min-width: 980px) { .puzzle-grid { grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; } }

/* ---------- 4b. Quick facts, the word ladder explainer and the FAQ (question headings with direct answers) ---------- */
.facts-grid { display: grid; gap: 32px; }
.facts-copy h2 { margin-bottom: .4em; }
.facts-copy h3 { margin: 1.1em 0 .4em; }
.facts-copy p { max-width: 36em; }
.facts-table h3 { margin-bottom: .6em; }
.facts { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--hard); overflow: hidden; }
.facts th, .facts td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 2px solid var(--tint); }
.facts tr:last-child > * { border-bottom: 0; }
.facts th { width: 32%; font: 900 .75rem/1.6 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--teal-deep); background: #f3f1e6; }
@media (min-width: 900px) { .facts-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }

.explain-sec { background: var(--tint); }
.explain { display: grid; gap: 22px; align-items: start; }
.explain details { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 0 22px; box-shadow: var(--hard); }
.explain details p, .explain details ol { color: var(--graphite); }
.explain a, .steps a { color: var(--teal-deep); font-weight: 700; text-underline-offset: 3px; }
.tips { list-style: decimal; padding-left: 1.3em; margin-bottom: 1.2em; }
.tips li { margin-bottom: .5em; padding-left: .2em; }
.tips strong { color: var(--ink); }
@media (min-width: 960px) { .explain { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

summary { position: relative; cursor: pointer; list-style: none; padding: 20px 52px 16px 0; font: 400 1.6rem/1.05 var(--display); letter-spacing: .02em; text-transform: uppercase; }
summary::-webkit-details-marker { display: none; }
summary h3, summary h4 { display: inline; font: inherit; letter-spacing: inherit; }
summary::after { content: '+'; position: absolute; right: 0; top: 50%; margin-top: -18px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: var(--ink); color: var(--cream); font: 900 1.25rem/1 var(--sans); transition: transform .25s var(--ease), background .25s; }
summary:hover::after { background: var(--teal-deep); }
details[open] > summary::after { content: '\2013'; background: var(--teal); transform: rotate(180deg); }
details p { margin: 0 0 22px; max-width: 44em; }

/* ---------- 5. Evidence board ---------- */
.board-sec { background: var(--tint); }
.board { position: relative; display: grid; gap: 44px; padding: 10px 0; }
.string { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.string path { fill: none; stroke: var(--pop); stroke-width: 2.5; stroke-linecap: round; }
.card { position: relative; z-index: 1; width: 88%; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 30px 20px 18px; box-shadow: var(--hard); transform-origin: 50% 0; transform: rotate(var(--rot, 0deg)); }
.card:nth-child(odd) { justify-self: end; }
.card .tab { display: inline-block; font: 900 .6875rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #fff; background: var(--teal); padding: 6px 9px; border-radius: 5px; margin-bottom: 12px; }
.card h3 { margin-bottom: .35em; font-size: 1.9rem; }
.card p { margin: 0; color: var(--graphite); }
.c1 { --rot: -1.5deg; } .c2 { --rot: 1.8deg; } .c3 { --rot: -1deg; } .c4 { --rot: 1.4deg; } .c5 { --rot: -2deg; } .c6 { --rot: 1deg; }
.c6 .tab { background: var(--ink); }
.board-note { max-width: 40em; margin: clamp(36px, 6vw, 64px) auto 0; text-align: center; font: 400 1.4rem/1.4 var(--hand); color: var(--ink); }
@media (min-width: 760px) {
  .board { grid-template-columns: repeat(2, 1fr); gap: 56px 48px; }
  .card, .card:nth-child(odd) { width: auto; justify-self: stretch; }
  .card:nth-child(even) { margin-top: 36px; }
}
@media (min-width: 1080px) {
  .board { grid-template-columns: repeat(3, 1fr); gap: 72px 52px; }
  .card:nth-child(even) { margin-top: 0; }
  .c2, .c5 { margin-top: 48px !important; }
}

/* ---------- 6. Levels ---------- */
.levels { display: grid; gap: 18px; }
.lv { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; box-shadow: var(--hard); display: flex; flex-direction: column; }
.lv > p { margin: 0; padding: 16px 18px 20px; }
.lv-top { padding: 18px 18px 14px; border-bottom: 1px solid var(--rule); }
.lv-top h4 { font-size: 2.6rem; }
.lv-cases { margin: 4px 0 0; font: 700 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.dots { display: flex; gap: 5px; margin-bottom: 12px; }
.dots i { width: 22px; height: 12px; border: 2px solid currentColor; border-radius: 5px; }
.dots i.on { background: currentColor; }
.lv1 .lv-top { background: var(--tint); }
.lv2 .lv-top { background: var(--teal-mid); }
.lv3 .lv-top { background: var(--teal); color: #fff; }
.lv4 .lv-top { background: var(--ink); color: var(--cream); }
.levels-note { margin: clamp(28px, 5vw, 48px) 0 0; max-width: 46em; font-size: 1.125rem; }
@media (min-width: 620px) { .levels { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .levels { grid-template-columns: repeat(4, 1fr); align-items: stretch; gap: 22px; }
  .lv1 { margin-top: 108px; } .lv2 { margin-top: 72px; } .lv3 { margin-top: 36px; }
}

/* ---------- 7. Inside the book ---------- */
.inside-sec { background: var(--paper); border-block: 1px solid var(--rule); overflow: hidden; }
.inside-grid { display: grid; gap: 36px; }
.inside-copy h2 { margin-bottom: .4em; }
.inside-copy > p { max-width: 32em; }
.deck { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px; }
.deck figure { margin: 0; }
.deck img { border: 1px solid var(--rule); border-radius: 8px; background: #fff; }
.deck figcaption { font: 700 .9375rem/1.35 var(--sans); padding-top: 10px; }
.deck-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.deck-ctrl p { margin: 0; font: 400 1.5rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; min-width: 6.4em; text-align: center; }
.round { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--rule); background: var(--teal); color: #fff; font-size: 1.4rem; font-weight: 900; line-height: 1; box-shadow: var(--lift-sm); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.round:hover { transform: translate(-2px, -2px); box-shadow: var(--lift-sm); }
.round:active { transform: translate(2px, 2px); box-shadow: var(--lift-sm); }
.deck-tip { margin-top: 12px; }
.js .deck { display: block; position: relative; width: min(100% - 44px, 400px); aspect-ratio: 770 / 1290; margin: 26px auto 0; touch-action: pan-y; }
.js .deck figure { position: absolute; left: 0; top: 0; width: 100%; transition: transform .5s var(--ease), opacity .35s; transform-origin: 100% 100%; cursor: grab; }
.js .deck figure img { box-shadow: var(--lift); -webkit-user-drag: none; user-select: none; }
.js .deck figcaption { text-align: center; font-size: 1.0625rem; padding: 14px 6px 0; transition: opacity .3s; }
.js .deck figure:not(.top) figcaption { opacity: 0; }
@media (min-width: 900px) { .inside-grid { grid-template-columns: .9fr 1.1fr; align-items: center; gap: 56px; } }

/* ---------- 9. FAQ ---------- */
.faq-grid { width: min(820px, 100% - 2 * var(--gutter)); display: grid; gap: 8px; }
.faq-sec h2 { margin-bottom: .5em; }
.faq-sub { font: 900 .8125rem/1.3 var(--sans); letter-spacing: .16em; color: var(--teal-deep); margin: 28px 0 12px; }
.faq-group details { border-bottom: 1px solid var(--rule); }
.faq-group details:first-of-type { border-top: 1px solid var(--rule); }
.faq-group details p { color: var(--graphite); }

/* ---------- 10. Buy ---------- */
.buy { background: var(--teal); color: var(--cream); --focus: #fff; padding: clamp(48px, 7vw, 88px) 0; overflow: hidden; }
.buy-copy h2 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); }
.buy-grid { display: grid; gap: 40px; align-items: center; }
.buy-art img { width: min(74%, 330px); margin-inline: auto; transform: rotate(-4deg); border-radius: 3px 8px 8px 3px; box-shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 30px 60px -18px rgba(0, 0, 0, .65); }
.buy-copy h2 { color: #fff; margin-bottom: .35em; }
.buy-copy > p { max-width: 36em; }
.prelaunch { background: var(--cream); color: var(--ink); border-left: 10px solid var(--pop); border-radius: 6px; padding: 16px 18px; font-size: 1.0625rem; }
.prelaunch strong { display: block; font: 400 1.9rem/1 var(--display); letter-spacing: .03em; text-transform: uppercase; margin-bottom: 4px; }
.editions { display: grid; gap: 16px; margin: 22px 0; }
.edition { border: 1px solid var(--rule-d); border-radius: var(--radius); padding: 18px 18px 20px; background: var(--teal-deep); }
.edition h3 { color: #fff; margin-bottom: .3em; }
.edition p { margin: 0 0 12px; }
.soon { display: inline-block; font: 900 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; border: 1px solid var(--rule-d); border-radius: 99px; padding: 8px 12px; margin: 0 !important; }
.buy-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.buy-actions .price { font-weight: 700; }
.buy-lead { max-width: 36em; }
@media (min-width: 620px) { .editions { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .buy-grid { grid-template-columns: .7fr 1.3fr; gap: 56px; } }

/* ---------- The six reasons: shared pieces ---------- */
.lead { font-size: 1.1875rem; color: var(--graphite); max-width: 36em; }
h2 + .lead { margin-top: 1em; }
.proofs { display: grid; gap: 14px; margin: 24px 0; }
.proofs li { position: relative; padding-left: 40px; }
.proofs li::before { content: ''; position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 7px; background: var(--teal); }
.proofs li::after { content: ''; position: absolute; left: 9px; top: 5px; width: 8px; height: 14px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(40deg); }
.proofs strong { display: block; font: 400 1.5rem/1.1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.proofs span { color: var(--graphite); }
.page-shot { margin: 0; justify-self: center; width: 100%; max-width: 380px; transform: rotate(1.5deg); }
.page-shot img { border: 1px solid var(--rule); border-radius: 8px; background: #fff; box-shadow: var(--hard); }
.page-shot figcaption { font: 700 .8125rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-align: center; padding-top: 16px; }
.why-sec { background: var(--paper); }
.why-grid, .can-grid { display: grid; gap: 36px; align-items: center; }
.why-for { margin: 0; }
@media (min-width: 900px) { .why-grid, .can-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; } }

/* Call-to-action bands between the reasons */
.cta-band { background: var(--pop); color: var(--ink); border-block: 1px solid var(--rule); padding: 28px 0; }
.cta-band-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.cta-band p { margin: 0; flex: 1 1 320px; max-width: 42em; font-size: 1.125rem; font-weight: 700; }
.cta-band strong { display: block; font: 400 2.25rem/1 var(--display); letter-spacing: .02em; text-transform: uppercase; margin-bottom: 4px; }

/* Reason 3: levels */
.levels-h { font-size: 2.25rem; margin: clamp(40px, 6vw, 72px) 0 24px; }

/* Reason 4: comparison table */
.compare-sec { background: var(--tint); }
.compare-grid { display: grid; gap: 32px; }
.compare { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--hard); overflow: hidden; }
.compare th, .compare td { position: relative; padding: 13px 10px; text-align: center; vertical-align: middle; border-bottom: 2px solid var(--tint); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead td, .compare thead th { background: var(--ink); color: var(--cream); border-bottom: 0; }
.compare thead td { width: 36%; }
.compare thead th { font: 900 .75rem/1.25 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.compare thead th.us { background: var(--teal); color: #fff; }
.compare tbody th { text-align: left; padding-left: 16px; font: 700 .9375rem/1.3 var(--sans); }
.compare td.us { background: #e4eee8; }
.compare td.y::before { content: ''; display: inline-block; width: 10px; height: 18px; margin-top: -5px; border: solid var(--teal); border-width: 0 4px 4px 0; transform: rotate(40deg); }
.compare td.n::before, .compare td.n::after { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 3px; margin: -1.5px 0 0 -8px; border-radius: 2px; background: #6f7976; transform: rotate(45deg); }
.compare td.n::after { transform: rotate(-45deg); }
.compare td.v { font: 700 .75rem/1.2 var(--sans); color: var(--muted); }
.compare-note { margin: 14px 0 0; }
@media (min-width: 1000px) { .compare-grid { grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; } }

/* Reason 5: value */
.value-sec { background: var(--ink); color: var(--cream); --focus: #fff; }
.value-sec .lead { color: var(--tint); }
.value-time { display: block; margin-top: .6em; color: #fff; font-weight: 700; }
.value-grid { display: grid; gap: 32px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stats li { border: 1px solid var(--rule-d); border-radius: var(--radius); background: var(--teal-deep); padding: 16px 18px 14px; }
.stats strong { display: block; font: 400 3.4rem/.9 var(--display); color: #fff; letter-spacing: .02em; }
.stats span { font: 700 .8125rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--tint); }
.prices { width: 100%; margin-top: 18px; border-collapse: separate; border-spacing: 0; background: var(--cream); color: var(--ink); border-radius: 10px; overflow: hidden; font-size: .9375rem; }
.prices th, .prices td { padding: 10px 12px; text-align: left; border-bottom: 2px solid var(--tint); }
.prices tbody tr:last-child > * { border-bottom: 0; }
.prices thead th { font: 900 .6875rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; background: var(--tint); }
.prices tbody th { font-weight: 900; }
@media (min-width: 960px) { .value-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } }

/* Reason 6: editions */
.season { font-weight: 700; color: #fff; }
.edition { display: flex; flex-direction: column; align-items: flex-start; }
.edition .buy-actions, .edition .soon { margin-top: auto !important; }
.edition .buy-actions { width: 100%; }
.ed-price { font: 400 1.5rem/1 var(--display); letter-spacing: .04em; color: #fff; margin: 0 0 8px !important; }
.price::before { content: ' \00b7 '; white-space: pre; }
.price:empty::before { content: none; }
.ed-price small { font-size: .7em; letter-spacing: .08em; color: var(--tint); }
.ed-best { font-weight: 700; color: #fff; line-height: 1.35; }
.ed-best b { display: block; font: 900 .6875rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--tint); }
.ed-desc { color: var(--tint); }

/* Store switch (UK / US). Without JavaScript it stays hidden and both prices show side by side. */
.store { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 2px; padding: 4px; border: 1px solid var(--rule-d); border-radius: 12px; background: var(--teal-deep); }
.store-label { font: 900 .6875rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--tint); padding: 0 6px 0 8px; }
.store button { min-height: 44px; padding: 6px 14px; border: 2px solid transparent; border-radius: 8px; background: transparent; color: var(--cream); font: 900 .8125rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.store button small { font-size: 1em; color: var(--tint); }
.store button[aria-pressed="true"] { background: var(--cream); color: var(--ink); border-color: var(--ink); }
.store button[aria-pressed="true"] small { color: var(--teal-deep); }
/* Once a store is chosen, only its prices show. */
html[data-store="uk"] .p-us, html[data-store="us"] .p-uk, html[data-store] .p-sep { display: none; }

.assure { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin: 0 0 16px; }
.assure li { position: relative; padding-left: 26px; font: 700 .875rem/1.35 var(--sans); color: #fff; }
.assure li::before { content: ''; position: absolute; left: 2px; top: 1px; width: 7px; height: 13px; border: solid var(--tint); border-width: 0 3px 3px 0; transform: rotate(40deg); }
.assure a, .prelaunch a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.buy .assure a { color: #fff; }

/* Hero price line and the price under a live buy button */
.hero-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 1.1rem; }
.hero-price strong { font: 400 1.75rem/1 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--ink); }
.hp-ed { font: 700 .8125rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--teal-deep); }
.btn-price { font-size: .78em; font-weight: 700; letter-spacing: .02em; text-transform: none; }
.live .cta-row .button, .live .buybar .button, .live .cta-band .button { flex-direction: column; gap: 1px; }
.site-header .btn-price { display: none; }

/* Free sample */
.sample-band { background: var(--tint); }
.sample-band strong { color: var(--teal-deep); }
.sample-band .button { flex-direction: column; gap: 2px; }
.file-note { font-size: .72em; font-weight: 700; letter-spacing: .06em; }
.inside-sample { margin: 18px 0 0; }
.inside-sample a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 900; color: var(--teal-deep); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.inside-sample .file-note { margin-left: .4em; color: var(--muted); }

/* Gift */
.gift-sec { background: var(--cream); }
.gift-for { display: grid; gap: 16px; }
.gift-for li { position: relative; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--hard); padding: 18px 18px 18px 64px; }
.gift-for li::before { content: ''; position: absolute; left: 16px; top: 18px; width: 32px; height: 26px; border-radius: 5px; background: var(--pop); border: 1px solid var(--rule); }
.gift-for li::after { content: ''; position: absolute; left: 30px; top: 18px; width: 4px; height: 26px; background: var(--ink); }
.gift-for strong { display: block; font: 400 1.6rem/1.05 var(--display); letter-spacing: .02em; text-transform: uppercase; margin-bottom: 4px; }
.gift-for span { color: var(--graphite); }
.gift-note { margin: 28px 0 0; font: 400 1.35rem/1.35 var(--hand); }
@media (min-width: 700px) { .gift-for { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (min-width: 1100px) { .gift-for { grid-template-columns: repeat(4, 1fr); } }

/* Swipe controls (phones) and the sticky buy bar (phones) */
.swipe-ctrl, .buybar, .stage-kicker, .narrow { display: none; }
.round:disabled { opacity: .35; cursor: default; box-shadow: none; transform: none; }

/* ---------- Footer and 404 ---------- */
.footer { background: var(--ink); color: var(--cream); --focus: #fff; padding: 44px 0 36px; }
.footer-row { display: grid; gap: 14px; margin-bottom: 22px; }
.footer-brand { font: 400 2rem/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.footer-brand b { font-weight: 400; color: var(--teal-mid); }
.footer p { margin: 0; }
.footer .links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer .links a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; font: 700 .8125rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.footer small { display: block; color: #c3ccc8; font-size: .875rem; line-height: 1.6; max-width: 70em; }
@media (min-width: 900px) { .footer-row { grid-template-columns: auto 1fr; align-items: center; column-gap: 32px; } .footer .links { grid-column: 1 / -1; } }
.lost { min-height: 100vh; display: grid; place-items: center; background: var(--teal); color: var(--cream); --focus: #fff; padding: 40px 0; }
.lost h1 { font-size: clamp(3.4rem, 13vw, 7rem); color: #fff; margin-bottom: .2em; text-transform: uppercase; }
.lost p { font-size: 1.1875rem; max-width: 30em; }

/* =====================================================================
   MOTION (only when motion.js has added html.motion; never under reduced motion)
   ===================================================================== */
/* Reveal: a short slide, never a fade, so text is always fully opaque (see motion.js). */
.motion .reveal { transform: translateY(18px); transition: transform .6s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.motion .reveal.in { transform: none; }
.motion .card.reveal { transform: rotate(var(--rot, 0deg)) translateY(18px); }
.motion .card.reveal.in { transform: rotate(var(--rot, 0deg)); }

/* Hero: the text is painted finished, with no entrance animation, so nothing can overlap on first paint.
   Only the decorative stamp beside the desktop ladder arrives with a thump. */
@keyframes thump { 0% { opacity: 0; transform: rotate(-9deg) scale(2.6); } 60% { opacity: 1; } 100% { opacity: 1; transform: rotate(-9deg) scale(1); } }
.motion .stamp-files { animation: thump .4s var(--thump) both; animation-delay: 1s; }
.motion .hl.armed .ev:not(.lit) { background: var(--tint); border-color: var(--ink); }
.motion .hl.writing .ev, .motion .hl.found .ev { transition: background .35s, border-color .35s, transform .45s var(--thump); }
.motion .hl .ev.lit { transform: scale(1.08); }
.motion .hl.armed .ev:not(.lit) .g path { stroke: var(--graphite); }
.motion .hl.writing .hl-glass, .motion .hl.found .hl-glass { transition: opacity .3s, transform .6s var(--thump); }
.motion .hl.armed:not(.found) .hl-glass { opacity: 0; transform: translate(26%, -30%) scale(1.5) rotate(18deg); }
.motion .hl.found ~ .scrawl { transition: opacity .6s; }
.motion .hl.armed:not(.found) ~ .scrawl { opacity: 0; }

/* Story: pinned scroll story */
@media (min-height: 600px) and (min-width: 768px) {
  /* Sizes that suit a pinned screen. They apply whether or not the story is pinned. */
  .motion .story-head { align-items: center; }
  .motion .story-head h2 { font-size: clamp(1.5rem, min(3.4vw, 5.6vh), 2.4rem); color: var(--tint); max-width: 16em; }
  .motion .beat h3 { font-size: clamp(2rem, min(7vw, 10.5vh), 5.4rem); }
  .motion .beat-copy p { font-size: clamp(1rem, min(2.2vw, 2.9vh), 1.3125rem); }
  .motion .beat-art { min-height: 0; }
  .motion .count strong.ticking { animation: tickdown .2s var(--ease); }
  @keyframes tickdown { from { transform: translateY(-28%); opacity: .45; } to { transform: none; opacity: 1; } }

  /* PINNING. motion.js adds .pin-ok only after measuring that the tallest part of the story fits between the
     sticky header and the bottom of the window, with a margin. If it would not fit, the story stays in normal
     flow (every part visible, one after another), so nothing is ever clipped or hidden under the header. */
  .motion .story.pin-ok { height: 280vh; padding: 0; }
  .motion .pin-ok .story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; padding-top: var(--header); }
  .motion .pin-ok .story-inner { height: 100%; display: flex; flex-direction: column; padding-block: clamp(14px, 3vh, 40px) clamp(10px, 2vh, 24px); }
  .motion .pin-ok .story-head { margin-bottom: 0; flex: none; }
  .motion .pin-ok .beats { position: relative; flex: 1; min-height: 0; display: block; }
  .motion .pin-ok .beat { position: absolute; inset: 0; align-content: center; opacity: 0; visibility: hidden; transform: translateY(40px); transition: opacity .45s var(--ease), transform .6s var(--ease), visibility 0s .45s; }
  .motion .pin-ok .beat.on { opacity: 1; visibility: visible; transform: none; transition-delay: .12s, .12s, 0s; }
  .motion .pin-ok .beat.past { transform: translateY(-40px); }
  .motion .pin-ok .beat-dots { display: flex; gap: 8px; flex: none; justify-content: center; }
  .motion .pin-ok .beat-dots i { width: 34px; height: 6px; border-radius: 3px; background: var(--teal-deep); transition: background .3s; }
  .motion .pin-ok .beat-dots i.on { background: var(--cream); }

  .motion .pin-ok .beat .notecard { transform: translateY(-70px) rotate(-14deg); opacity: 0; transition: transform .7s var(--thump) .25s, opacity .3s .25s; }
  .motion .pin-ok .beat.on .notecard { transform: rotate(-3deg); opacity: 1; }
  .motion .pin-ok .beat .cabinet i { transform: translateY(26px) scale(.7); opacity: 0; transition: transform .45s var(--thump), opacity .25s; }
  .motion .pin-ok .beat.on .cabinet i { transform: none; opacity: 1; }
  .motion .pin-ok .beat .scrap { transform: none; transition: transform .9s cubic-bezier(.5, 0, .7, .4) .95s; }
  .motion .pin-ok .beat.on .scrap { transform: translate(18px, 34px) rotate(13deg); }
  .motion .pin-ok .beat .snips { transform: translate(-330px, -64px) rotate(-180deg); opacity: 0; transition: transform .8s var(--ease) .25s, opacity .2s .25s; }
  .motion .pin-ok .beat.on .snips { transform: rotate(-150deg); opacity: 1; }
  .motion .pin-ok .beat .stamp-claim { transform: rotate(-14deg) scale(2.8); opacity: 0; transition: transform .3s var(--thump) .6s, opacity .1s .6s; }
  .motion .pin-ok .beat.on .stamp-claim { transform: rotate(-14deg); opacity: 1; }
  .motion .pin-ok .beat .leaf { transform: rotate(-24deg); transition: transform 1.1s var(--thump) .2s; }
  .motion .pin-ok .beat.on .leaf { transform: rotate(3deg); }
}
/* Short laptop screens: smaller story art so the pinned story fits. */
@media (min-width: 820px) and (min-height: 600px) and (max-height: 800px) {
  .motion .beat-art > * { zoom: 1; }
  .motion .beat { gap: 32px; }
}
@media (min-height: 600px) and (min-width: 768px) and (max-width: 819px) {
  .motion .story-head h2 { display: none; }
  .motion .story-head { justify-content: center; }
  .motion .beat { gap: 3vh; }
  .motion .beat h3 { font-size: clamp(2rem, 9.5vw, 3rem); }
  .motion .beat-copy p { font-size: 1.0625rem; line-height: 1.5; margin-bottom: 0; }
  .motion .beat-cta { margin-top: 1em; }
  .motion .cabinet i { height: 34px; font-size: 1.05rem; }
  .motion .cabinet { gap: 14px 7px; width: min(100%, 290px); }
  .motion .leaf { width: 150px; } .motion .leaf strong { font-size: 3.6rem; padding-top: 8px; } .motion .leaf small { padding: 9px 6px; } .motion .leaf span { padding-bottom: 12px; }
  .motion .notecard { padding: 28px 24px 14px; } .motion .notecard p { font-size: 1.45rem; }
  .motion .claim { padding: 16px 18px 18px; } .motion .claim p { font-size: .9375rem; }
}

@media (min-height: 600px) and (max-height: 700px) and (min-width: 768px) and (max-width: 819px) {
  .motion .story-head .kicker { display: none; }
  .motion .count { padding: 5px 12px 4px 8px; } .motion .count-clock { width: 40px; height: 40px; } .motion .count strong { font-size: 2rem; }
  .motion .beat { gap: 2vh; }
  .motion .beat h3 { font-size: clamp(1.8rem, 8.4vw, 2.4rem); }
  .motion .beat-copy p { font-size: 1rem; line-height: 1.45; }
  .motion .cabinet i { height: 27px; font-size: .95rem; } .motion .cabinet { gap: 13px 7px; width: min(100%, 250px); }
  .motion .leaf { width: 124px; } .motion .leaf strong { font-size: 2.7rem; padding: 6px 0 4px; } .motion .leaf span { display: none; }
  .motion .notecard p { font-size: 1.3rem; }
  .motion .how-stage { --t: clamp(30px, 4.9vh, 40px); }
  .motion .cc-label { display: none; }
  .motion .steps { min-height: 5.9em; }
  .motion .how-copy h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* How it works: pinned demonstration */
.motion .how-stage .lrow.pencil b, .motion .how-stage .lrow em, .motion .cc-boxes b, .motion .tick, .motion .stamp-closed { transition: transform .5s var(--thump), opacity .25s; }
.motion .how-stage .lrow.pencil span:nth-child(2) b { transition-delay: .07s; } .motion .how-stage .lrow.pencil span:nth-child(3) b { transition-delay: .14s; } .motion .how-stage .lrow.pencil span:nth-child(4) b { transition-delay: .21s; }
.motion .how-stage:not(.s1) .r1 b, .motion .how-stage:not(.s2) .r2 b, .motion .how-stage:not(.s3) .r3 b { opacity: 0; transform: translateY(46%) rotate(-10deg); }
.motion .how-stage:not(.s1) .r1 em, .motion .how-stage:not(.s2) .r2 em, .motion .how-stage:not(.s3) .r3 em { opacity: 0; transform: translateY(-50%) translateX(-14px); }
.motion .how-stage .ev { transition: background .35s .2s, border-color .35s .2s; }
.motion .how-stage:not(.s2) .ev { background: var(--tint); border-color: var(--ink); }
.motion .how-stage #how-box { transition: background .3s .35s, border-color .3s .35s; }
.motion .how-stage:not(.s4) #how-box { background: var(--tint); border-color: var(--ink); }
.motion .how-stage #how-box b { transition: transform .8s var(--ease), opacity .2s; }
.motion .how-stage:not(.s4) #how-box b { opacity: 0; transform: translate(var(--fx, 0px), var(--fy, -60px)) scale(1.25); }
.motion .cc-boxes span:nth-child(3) b { transition-delay: .09s; } .motion .cc-boxes span:nth-child(4) b { transition-delay: .18s; } .motion .cc-boxes span:nth-child(5) b { transition-delay: .27s; }
.motion .how-stage:not(.s5) .cc-boxes span:not(:first-child) b { opacity: 0; transform: translateY(-70px) rotate(12deg); }
.motion .how-stage:not(.s6) .cc-theories .right { background: var(--paper); color: var(--ink); }
.motion .how-stage:not(.s6) .tick { opacity: 0; transform: scale(0); }
.motion .how-stage .stamp-closed { transition: transform .3s var(--thump), opacity .1s; }
.motion .how-stage:not(.s7) .stamp-closed { opacity: 0; transform: rotate(-12deg) scale(2.8); }
.motion .how-stage.s7 .casecard { animation: jolt .3s .08s; }
@keyframes jolt { 30% { transform: translate(2px, 4px) rotate(.6deg); } 60% { transform: translate(-1px, -1px); } }
@media (min-height: 600px) and (min-width: 768px) {
  /* Pinned only when motion.js has measured that the whole stage fits below the sticky header (.pin-ok).
     Otherwise the section is in normal flow and its example is shown complete. */
  .motion .how.pin-ok { height: 260vh; padding: 0; }
  .motion .how.pin-ok .how-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; padding-top: var(--header); display: grid; align-items: center; }
  .motion .how-copy h2 { font-size: clamp(2rem, min(4.6vw, 7.4vh), 4.2rem); }
  .motion .how-stage { --t: clamp(36px, 6vh, 68px); gap: clamp(10px, 2.4vh, 30px); }
  .motion .steps { gap: clamp(8px, 1.8vh, 18px); }
  /* The current step is marked by its number turning teal; the other steps stay fully readable. */
  .motion .steps .num { transition: background .3s, transform .3s var(--thump); }
  .motion .steps li.on .num { background: var(--teal); transform: scale(1.08); }
}
@media (min-height: 600px) and (min-width: 768px) and (max-width: 979px) {
  .motion .how-grid { gap: clamp(8px, 2vh, 22px); }
  .motion .how-copy .kicker { display: none; }
  .motion .how-copy h2 { font-size: clamp(1.6rem, 6.6vw, 2.6rem); margin-bottom: .45em; }
  .motion .steps { display: block; position: relative; min-height: 6.6em; }
  .motion .steps li { position: absolute; inset: 0 0 auto; }
  .motion .steps li:not(.on) { opacity: 0; visibility: hidden; }
  .motion .steps h3 { font-size: 1.5rem; margin-top: .1em; }
  .motion .steps p { font-size: .9375rem; line-height: 1.4; }
  .motion .how-stage { gap: clamp(8px, 1.8vh, 20px); --t: clamp(32px, 5.6vh, 50px); }
  .motion .how-ladder { padding: calc(var(--t) * .36) 0; }
  .motion .how-ladder .tag { display: none; }
  .motion .casecard { padding: 12px 12px 14px; }
  .motion .casecard .tag { display: none; }
  .motion .cc-q { font-size: 1.35rem; margin-bottom: 8px; max-width: 54%; }
  .motion .cc-theories { margin-bottom: 10px; gap: 6px; }
  .motion .cc-theories li { font-size: .75rem; padding-left: 30px; min-height: 40px; }
  .motion .cc-boxes { grid-template-columns: repeat(5, 38px); } .motion .cc-boxes span { height: 38px; font-size: 1.25rem; }
}
/* Short laptop screens (a 1366 x 768 laptop with tabs and a bookmarks bar shows about 600px): a tighter stage. */
@media (min-width: 980px) and (min-height: 560px) and (max-height: 820px) {
  .motion .how-copy .kicker { margin-bottom: .5em; }
  .motion .how-copy h2 { font-size: clamp(1.9rem, 6.2vh, 3.4rem); margin-bottom: .35em; }
  .motion .steps { gap: clamp(6px, 1.4vh, 14px); }
  .motion .steps li { grid-template-columns: 36px 1fr; gap: 12px; }
  .motion .steps .num { width: 36px; height: 36px; font-size: 1.4rem; }
  .motion .steps h3 { font-size: clamp(1.3rem, 3.3vh, 1.75rem); margin: .1em 0 .15em; }
  .motion .steps p { font-size: clamp(.875rem, 2.3vh, 1rem); line-height: 1.4; }
  .motion .how-stage { --t: clamp(30px, 5.2vh, 56px); gap: clamp(8px, 1.6vh, 20px); }
  .motion .how-ladder { padding: calc(var(--t) * .36) 0; }
  .motion .how-ladder .tag { margin-bottom: calc(var(--t) * .3); }
  .motion .casecard { padding: 12px 18px 14px; }
  .motion .cc-q { font-size: clamp(1.3rem, 3.6vh, 2rem); margin-bottom: 8px; }
  .motion .cc-theories { margin-bottom: 10px; }
  .motion .cc-theories li { min-height: 40px; }
  .motion .cc-boxes { grid-template-columns: repeat(5, 42px); } .motion .cc-boxes span { height: 42px; font-size: 1.4rem; }
  .motion .tag.dark { margin-bottom: 8px; }
}

/* Playable ladder feedback */
@keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes pop { 40% { transform: scale(1.14); } }
.motion .demo .row.ok .tiles > i { animation: flip .5s var(--ease) both; }
.motion .demo .row.ok .tiles > i:nth-of-type(2) { animation-delay: .08s; } .motion .demo .row.ok .tiles > i:nth-of-type(3) { animation-delay: .16s; } .motion .demo .row.ok .tiles > i:nth-of-type(4) { animation-delay: .24s; }
.motion .demo .row.bad .tiles { animation: shake .4s; }
.motion .demo .tiles > i.typed { animation: pop .18s; }

/* Evidence board, levels */
.motion .card .pin { transition: transform .45s var(--thump), opacity .15s; }
.motion .card .pin:not(.in) { opacity: 0; transform: translateY(-34px) scale(1.7); }
.motion .lv.reveal { transform: translateY(30px); }
.motion .lv.reveal.in { transform: none; }

/* =====================================================================
   PHONES (under 768px): every section, or each panel of a long section, is one full screen.
   A panel is as tall as the space between the sticky header and the sticky buy bar. It uses min-height,
   never a fixed height, so larger text simply makes a panel taller: nothing is ever clipped.
   ===================================================================== */
@media (max-width: 767px) {
  :root { --header: 54px; --bar: 62px; --gutter: 16px; --panel: calc(100vh - var(--header) - var(--bar)); }
  html { scroll-padding-top: var(--header); scroll-padding-bottom: var(--bar); }
  body { font-size: 1rem; line-height: 1.5; padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom, 0px)); }
  .nav { height: calc(var(--header) - var(--line)); }
  h2 { font-size: clamp(1.75rem, 8.4vw, 2.5rem); }
  h3 { font-size: 1.5rem; }
  .kicker { font-size: .6875rem; letter-spacing: .12em; margin-bottom: .6em; }
  .lead { font-size: 1rem; }
  h2 + .lead { margin-top: .7em; }
  .section { padding: 0; }
  .section-head { margin-bottom: 14px; }
  .section-head > p:last-child { font-size: 1rem; margin-top: .6em; }
  /* The html scroll-padding already clears the header, so a panel reached by a link starts exactly below it. */
  .panel { min-height: var(--panel); display: flex; flex-direction: column; justify-content: center; padding-block: 18px; scroll-margin-top: 0; }
  .can-grid.panel { display: grid; align-content: center; }
  .opt { display: none; }
  .narrow { display: inline; }

  /* Sticky buy bar */
  .buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--bar); padding: 6px var(--gutter) calc(6px + env(safe-area-inset-bottom, 0px)); background: var(--cream); border-top: 1px solid var(--rule); box-shadow: 0 -8px 20px rgba(20, 24, 28, .16); transition: transform .25s var(--ease), visibility 0s; }
  .buybar.away { transform: translateY(110%); visibility: hidden; transition: transform .25s var(--ease), visibility 0s .25s; }
  .buybar p { margin: 0; min-width: 0; font-size: .75rem; line-height: 1.3; color: var(--muted); white-space: nowrap; }
  .buybar p { overflow: hidden; }
  .buybar strong { display: block; overflow: hidden; text-overflow: ellipsis; font: 400 clamp(.9375rem, 4.3vw, 1.1875rem)/1 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
  .buybar .button { flex: none; }

  /* Swipe panels */
  [data-swipe] { display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  [data-swipe]::-webkit-scrollbar { display: none; }
  [data-swipe] > li, [data-swipe] > article { flex: 0 0 100%; scroll-snap-align: center; }
  .motion [data-swipe] .reveal { opacity: 1; transition: none; }
  .swipe-ctrl { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; }
  .swipe-ctrl p { margin: 0; min-width: 4.4em; text-align: center; font: 400 1.25rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
  .round.sm { width: 44px; height: 44px; font-size: 1.15rem; }
  .story .round { background: var(--cream); color: var(--ink); }

  /* Hero */
  /* The sticky bar is away while the hero's buttons are on screen, so the hero has the whole screen below the header. */
  .hero.panel { padding-block: 0; justify-content: space-between; min-height: calc(100vh - var(--header)); min-height: calc(100svh - var(--header)); }
  .hero-grid { padding-block: 14px; }
  .hero-price { gap: 2px 8px; }
  .hero-price strong { font-size: 1.375rem; }
  .hp-ed { font-size: .6875rem; letter-spacing: .06em; }
  .hero .kicker { margin-bottom: .5em; }
  .hero h1 { margin-bottom: 14px; }
  .hero h1 .sub { margin-top: .6rem; font-size: .9375rem; }
  .hero .lead { font-size: .9375rem; line-height: 1.45; }
  .hero-grid { gap: 0 16px; }
  .cta-row { flex-wrap: nowrap; gap: 10px; margin-top: 16px; }
  .cta-row .button [aria-hidden] { display: none; }
  .cta-row .button { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 8px 6px; font-size: .8125rem; letter-spacing: .02em; text-align: center; }
  .reassure { margin-top: 12px; font-size: .6875rem; letter-spacing: .05em; text-align: center; }
  .band-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding-block: 8px; font-size: .625rem; letter-spacing: .05em; text-align: center; }
  .band-row li { flex-direction: column; align-items: center; gap: 2px; }
  .band-row strong { font-size: 1.5rem; }
  .band-wide { display: none !important; }

  /* Reasons 1 and 3: a real page beside the proof points */
  .why-grid, .can-grid { grid-template-columns: 30% 1fr; grid-template-areas: "k k" "h h" "l l" "s p"; gap: 0 16px; align-items: center; }
  .why-copy, .can-copy { display: contents; }
  .why-grid .kicker, .can-grid .kicker { grid-area: k; }
  .why-grid h2, .can-grid h2 { grid-area: h; }
  .why-grid .lead, .can-grid .lead { grid-area: l; margin: .7em 0 1.1em; }
  .why-grid .proofs, .can-grid .proofs { grid-area: p; margin: 0; gap: 10px; }
  .page-shot { grid-area: s; transform: rotate(-2deg); }
  .page-shot img { border-width: 2px; border-radius: 5px; box-shadow: var(--lift-sm); }
  .page-shot figcaption, .why-for { display: none; }
  .proofs li { padding-left: 30px; }
  .proofs li::before { width: 20px; height: 20px; border-radius: 5px; }
  .proofs li::after { left: 7px; top: 4px; width: 6px; height: 11px; }
  .proofs strong { font-size: 1.25rem; }
  .proofs span { display: block; font-size: .875rem; line-height: 1.35; }

  /* The story */
  .story { padding: 18px 0; }
  .story-head { margin-bottom: 12px; }
  .story-head h2 { font-size: 1.5rem; color: var(--tint); }
  .count { display: none; }
  .beat { gap: 14px; align-content: center; }
  .beat h3 { font-size: clamp(1.75rem, 8.4vw, 2.4rem); }
  .beat-copy p { font-size: 1rem; line-height: 1.45; margin-bottom: 0; }
  .beat-cta { margin-top: 12px !important; }
  .beat-art { min-height: 0; padding: 10px 12px 14px; }
  .cabinet { gap: 13px 7px; width: min(100%, 250px); }
  .cabinet i { height: 27px; font-size: .95rem; }
  .leaf { width: 124px; } .leaf strong { font-size: 2.7rem; padding: 6px 0 4px; } .leaf small { padding: 9px 6px; } .leaf span { display: none; }
  .notecard { padding: 26px 22px 12px; } .notecard p { font-size: 1.3rem; }
  .claim { padding: 14px 16px 16px; } .claim p { font-size: .9375rem; } .stamp-claim { font-size: 1.5rem; right: -8px; bottom: 22px; }
  .strip { padding: 16px 18px 20px; } .strip p { font-size: 1rem; line-height: 1.75; }

  /* Six mysteries */
  .board { padding: 14px 8px 10px 2px; }
  .string { display: none; }
  .card, .card:nth-child(odd) { width: auto; transform: none; }
  .card h3 { font-size: 1.75rem; }
  .motion .card .pin, .motion .card .pin:not(.in) { opacity: 1; transform: none; }
  .board-note { margin-top: 10px; font-size: 1.0625rem; line-height: 1.3; }

  /* Reason 2: how it works, then the worked example */
  .how { padding: 0; }
  .how-grid { gap: 0; }
  .how-copy h2 { margin-bottom: .5em; }
  .steps { gap: 12px; }
  .steps li { grid-template-columns: 36px 1fr; gap: 12px; }
  .steps .num { width: 36px; height: 36px; font-size: 1.4rem; }
  .steps h3 { font-size: 1.375rem; margin: .15em 0; }
  .steps p { font-size: .9375rem; line-height: 1.4; }
  .stage-kicker { display: block; text-align: center; margin-bottom: 1em; }
  .how-stage { gap: 14px; --t: clamp(32px, 5.4vh, 44px); }
  .how-ladder { padding: calc(var(--t) * .4) 0; }
  .how-ladder .tag, .casecard .tag { display: none; }
  .casecard { padding: 12px 12px 14px; }
  .cc-q { font-size: 1.35rem; margin-bottom: 8px; max-width: 50%; }
  .stamp-closed { font-size: 1.0625rem; right: 4px; top: 6px; }
  .cc-theories { margin-bottom: 10px; gap: 6px; }
  .cc-theories li { font-size: .75rem; padding-left: 30px; min-height: 40px; }
  .cc-boxes { grid-template-columns: repeat(5, 38px); } .cc-boxes span { height: 38px; font-size: 1.25rem; }

  /* The playable ladder */
  .puzzle-grid { gap: 12px; }
  .puzzle h2 { margin-bottom: 0; }
  .puzzle-how, .exhibit, .puzzle-fine, .demo label small { display: none; }
  .demo { --t: clamp(34px, 6vh, 46px); padding: 12px; gap: 6px; border-radius: 16px; box-shadow: var(--lift); }
  .demo .row { grid-template-columns: max-content 1fr; align-items: center; gap: 10px; }
  .demo label { order: 0; font-size: .8125rem; line-height: 1.25; gap: 2px 6px; align-items: center; }
  .demo label > b { width: 20px; height: 20px; font-size: .6875rem; transform: none; }
  .demo .row.fixed em { font-size: 1rem; }
  .demo-actions { flex-wrap: nowrap; gap: 4px; margin-top: 4px; }
  .demo-actions .button { flex: 1; min-height: 44px; padding: 8px 12px; font-size: .875rem; white-space: nowrap; }
  .demo-actions .link { white-space: nowrap; }
  #demo-status { min-height: 3.5em; padding: 8px 10px; font-size: .875rem; line-height: 1.3; }
  .stamp-solved { font-size: 1.6rem; top: 8px; }

  /* Call-to-action bands */
  .cta-band { padding: 18px 0; }
  .cta-band-row { gap: 12px; }
  .cta-band p { font-size: 1rem; flex-basis: 100%; }
  .cta-band strong { font-size: 1.75rem; }
  .cta-band .button { width: 100%; }

  /* Reason 3: levels */
  .levels-h { margin: 0 0 12px; font-size: 1.625rem; }
  .levels { gap: 10px; }
  .lv { flex-direction: row; box-shadow: var(--lift-sm); }
  .lv-top { flex: 0 0 120px; padding: 10px 12px; border-bottom: 0; border-right: 1px solid var(--rule); }
  .lv-top h4 { font-size: 1.625rem; }
  .dots { margin-bottom: 6px; } .dots i { width: 14px; height: 8px; border-radius: 3px; }
  .lv-cases { font-size: .625rem; letter-spacing: .05em; white-space: nowrap; }
  .lv > p { padding: 10px 12px; font-size: .875rem; line-height: 1.35; align-self: center; }
  .levels-note { margin-top: 12px; font-size: .9375rem; }

  /* Reason 4: comparison */
  .compare-grid { gap: 14px; }
  .compare th, .compare td { padding: 8px 2px; }
  .compare thead td { width: 34%; }
  .compare thead th { padding-inline: 1px; }
  .compare thead th { font-size: .625rem; line-height: 1.25; letter-spacing: 0; text-transform: none; font-weight: 700; overflow-wrap: anywhere; }
  .compare tbody th { padding-left: 10px; font-size: .8125rem; line-height: 1.25; }
  .compare td.v { font-size: .6875rem; }
  .compare-note { margin-top: 8px; font-size: .75rem; }

  /* Reason 5: value, then the pages */
  .value-grid { gap: 14px; }
  .value-time { margin-top: .4em; }
  .stats { gap: 8px; }
  .stats li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-width: 2px; border-radius: 10px; }
  .stats strong { font-size: 2.1rem; }
  .stats span { font-size: .625rem; letter-spacing: .06em; }
  .prices { margin-top: 10px; font-size: .8125rem; }
  .prices th, .prices td { padding: 7px 8px; }
  .prices thead th { font-size: .625rem; letter-spacing: .06em; }
  .inside-grid { gap: 6px; }
  .inside-copy h2 { margin-bottom: .2em; }
  .inside-lead, .deck-tip { display: none; }
  .deck-ctrl { margin-top: 8px; justify-content: center; gap: 12px; }
  .deck-ctrl p { font-size: 1.25rem; }
  .deck-ctrl .round { width: 44px; height: 44px; font-size: 1.15rem; }
  .js .deck { width: min(100% - 44px, 400px, (var(--panel) - 240px) * .597); margin-top: 10px; }
  .inside-sample { margin: 2px 0 0; text-align: center; font-size: .9375rem; }

  /* Gift */
  .gift-sec .section-head > p:last-child { font-size: .9375rem; }
  .gift-for { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gift-for li { padding: 10px 10px 12px; box-shadow: var(--lift-sm); border-width: 2px; }
  .gift-for li::before { left: auto; right: 8px; top: 8px; width: 20px; height: 16px; border-radius: 4px; }
  .gift-for li::after { left: auto; right: 16px; top: 8px; width: 3px; height: 16px; }
  .gift-for strong { font-size: 1.2rem; padding-right: 22px; }
  .gift-for span { display: block; font-size: .8125rem; line-height: 1.35; }
  .gift-note { margin-top: 14px; font-size: 1.0625rem; }

  /* Free sample band */
  .sample-band .button { width: 100%; }
  .js .deck figcaption { font-size: .875rem; padding-top: 10px; }

  /* Reason 6: buy */
  .buy { padding: 18px 0; }
  .buy-grid { gap: 0; }
  .buy-art, .ed-desc, .buy-fine .spec { display: none; }
  .buy-lead, .season { font-size: .9375rem; margin-bottom: .7em; }
  .prelaunch { padding: 10px 12px; font-size: .875rem; }
  .prelaunch strong { font-size: 1.4rem; }
  .editions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
  .buy-copy { min-width: 0; }
  .edition { padding: 12px 10px 14px; }
  .edition h3 { font-size: 1.3rem; }
  .ed-price { font-size: clamp(.9375rem, 4.4vw, 1.15rem); }
  .soon { letter-spacing: .1em; }
  .buy-actions { gap: 8px; }
  .buy-actions .button { width: 100%; min-height: 46px; padding: 6px 4px; font-size: .6875rem; letter-spacing: .01em; box-shadow: var(--lift-sm); flex-direction: column; gap: 2px; text-align: center; }
  .buy-actions .price::before { content: none; }
  .buy-fine { display: none; }
  .buy-copy h2 { font-size: clamp(1.6rem, 7.4vw, 2.3rem); }
  .store { margin: 0 0 4px; padding: 3px; gap: 4px; }
  .store button { min-height: 44px; padding: 4px 10px; font-size: .75rem; }
  .store-label { font-size: .625rem; padding: 0 4px 0 6px; }
  .ed-best { font-size: .8125rem; margin-bottom: 8px !important; }
  .ed-best b { font-size: .5625rem; letter-spacing: .12em; }
  .ed-price small { font-size: .65em; }
  .assure { gap: 4px 10px; margin-bottom: 8px; }
  .assure li { font-size: .75rem; line-height: 1.3; padding-left: 18px; }
  .assure li::before { width: 5px; height: 10px; border-width: 0 2px 2px 0; }
  .prelaunch strong { font-size: 1.25rem; }
  .buy .kicker { display: none; }
  .buy-lead { margin-top: .5em; }
  .prelaunch { font-size: .8125rem; line-height: 1.4; margin-bottom: 0; }
  .edition { padding: 10px 10px 12px; }
  .edition h3 { margin-bottom: .2em; }

  /* Short answer, quick facts, explainer, FAQ */
  .facts-grid { gap: 0; }
  .facts-copy p { margin-bottom: 0; }
  .facts-table h3 { margin-bottom: .5em; }
  .facts th, .facts td { padding: 7px 10px; font-size: .875rem; line-height: 1.35; }
  .facts th { width: 30%; font-size: .6875rem; letter-spacing: .05em; line-height: 1.7; }
  .explain { gap: 10px; }
  .explain details { padding: 0 14px; box-shadow: var(--lift-sm); }
  summary { font-size: 1.25rem; padding: 14px 44px 11px 0; }
  summary::after { width: 32px; height: 32px; margin-top: -16px; }
  details p { margin-bottom: 16px; }
  .faq-grid { gap: 0; }
  .faq-sec h2 { font-size: clamp(1.5rem, 7vw, 2.1rem); margin-bottom: .4em; }
  .faq-sub { margin: 2px 0 8px; }
  .footer { padding: 32px 0 28px; }
}
@supports (height: 1svh) {
  @media (max-width: 767px) { :root { --panel: calc(100svh - var(--header) - var(--bar)); } }
}
/* Tall phones: there is room, so bring back the fuller copy and give the pictures more space. */
@media (max-width: 767px) and (min-height: 760px) {
  .panel { padding-block: 24px; }
  .lead .opt, .buy-lead .opt, .gift-sec .section-head .opt { display: inline; }
  .why-grid { grid-template-areas: "k k" "h h" "l l" "s p" "f f"; }
  .why-grid, .can-grid { grid-template-columns: 36% 1fr; }
  .why-for { display: block; grid-area: f; margin-top: 22px; }
  .puzzle-how { display: block; margin: .6em 0 0; }
  /* Taller screens share their extra height out between the hero's blocks instead of leaving it above and below. */
  .hero { --hx: clamp(0px, (100vh - 700px) * .2, 40px); }
  .hero-grid { grid-template-columns: minmax(0, .86fr) minmax(0, 1fr); padding-block: calc(14px + var(--hx)); }
  .hero h1 { margin-bottom: calc(20px + var(--hx)); }
  .hero h1 .sub { font-size: 1.0625rem; margin-top: calc(.6rem + var(--hx) / 3); }
  .hero .lead { font-size: 1rem; }
  .hero-price { margin-top: calc(12px + var(--hx) / 3); }
  .hero-price strong { font-size: 1.625rem; }
  .cta-row { margin-top: calc(24px + var(--hx)); }
  .reassure { margin-top: calc(16px + var(--hx) / 2); }
  .beat { gap: 22px; }
  .beat-art { zoom: 1.12; }
  .steps { gap: 18px; }
  .levels { gap: 14px; }
  .lv > p { padding-block: 14px; }
  .compare th, .compare td { padding-block: 11px; }
  .stats li { padding-block: 12px; }
  .prices th, .prices td { padding-block: 10px; }
  .facts th, .facts td { padding-block: 10px; }
  summary { padding-block: 17px 14px; }
  .js .deck { width: min(100% - 44px, 400px, (var(--panel) - 262px) * .597); }
  /* The second and third FAQ groups share one screen. */
  .faq-group.panel ~ .faq-group.panel { min-height: calc(var(--panel) / 2); }
}
/* Short phones: trim decoration before anything useful. */
@media (max-width: 767px) and (max-height: 700px) {
  .beat-art { zoom: .86; }
  .hero .lead { font-size: .875rem; }
  .board-note, .buy-lead, .ed-best b, .assure li:nth-child(n+3) { display: none; }
  .buy.panel { padding-block: 10px; }
  .compare th, .compare td { padding-block: 5px; }
  .compare tbody th { font-size: .75rem; }
  .compare-grid, .value-grid { gap: 10px; }
  .compare-note { margin-top: 5px; }
  .editions { margin: 8px 0; }
  .buy-lead, .season { margin-bottom: .5em; }
  .stats li { padding: 5px 10px; } .stats strong { font-size: 1.75rem; }
  .prices th, .prices td { padding-block: 5px; }
  .prelaunch { padding-block: 8px; }
  .facts th, .facts td { padding-block: 5px; }
}

/* Narrow phones: the store switch keeps its two buttons on one line. */
@media (max-width: 380px) { .store-label { display: none; } .store button { padding-inline: 8px; } }

/* =====================================================================
   GUIDE, PRINTABLES, BLOG AND INFORMATION PAGES (written by scripts/build_pages.py)
   One readable column (about 68 characters a line), a book card beside it on wide screens.
   ===================================================================== */
/* Header links that only appear in the phone and tablet menu, and the current page */
@media (min-width: 1220px) { .site-header nav .nav-phone { display: none; } }
.site-header nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--teal); }

/* Footer: four columns of links */
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 6px auto 26px; }
.footer-h { font: 900 .75rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-mid); margin: 0 0 6px; }
.footer-cols ul { display: grid; }
.footer-cols a { display: inline-flex; align-items: center; min-height: 40px; padding: 2px 0; font-size: .9375rem; text-underline-offset: 3px; }
.footer-cols a:hover { color: #fff; }
@media (min-width: 900px) { .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 40px; } }

/* Page top: breadcrumbs, kicker, H1, the direct answer and the date */
.page-hero { background: var(--paper); border-bottom: 1px solid var(--rule); padding: clamp(18px, 3vw, 30px) 0 clamp(26px, 4vw, 44px); }
.page-hero .shell { max-width: 1120px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 0; margin: 0 0 clamp(14px, 2.4vw, 24px); font: 700 .8125rem/1.4 var(--sans); letter-spacing: .04em; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: '/'; margin: 0 .55em; color: var(--teal-mid); }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--teal-deep); text-underline-offset: 3px; }
.page-hero h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); line-height: .95; max-width: 15em; text-wrap: balance; margin-bottom: .35em; }
.nowrap { white-space: nowrap; }
.page-lead { font-size: clamp(1.0625rem, 1.9vw, 1.25rem); line-height: 1.6; color: var(--graphite); max-width: 40em; margin: 0; }
.page-meta { margin: 16px 0 0; font: 700 .8125rem/1.5 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--teal-deep); }
.page-meta span + span::before { content: '\00b7'; margin: 0 .6em; color: var(--muted); }

/* Body: the reading column and, on wide screens, a sticky book card */
.page-wrap { display: grid; gap: 40px; padding-block: clamp(30px, 5vw, 60px) clamp(40px, 6vw, 72px); max-width: 1120px; }
.page-aside { display: none; }
@media (min-width: 1100px) {
  .page-wrap { grid-template-columns: minmax(0, 700px) 300px; justify-content: space-between; }
  .page-aside { display: block; }
  .aside-card { position: sticky; top: calc(var(--header) + 24px); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--hard); padding: 20px; }
  .aside-card img { width: 150px; margin: 0 auto 14px; transform: rotate(-3deg); border-radius: 2px 6px 6px 2px; box-shadow: var(--lift-sm); }
  .aside-card p { font-size: .9375rem; line-height: 1.5; color: var(--graphite); }
  .aside-card .aside-title { font: 400 1.6rem/1 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--ink); margin-bottom: .4em; }
  .aside-card .button { width: 100%; margin-top: 4px; }
  .aside-card .aside-link { display: block; margin-top: 12px; text-align: center; font-weight: 700; color: var(--teal-deep); text-underline-offset: 3px; }
}

.prose { min-width: 0; font-size: 1.125rem; line-height: 1.7; color: var(--ink); }
.prose > * { max-width: 68ch; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose h2 { font-size: clamp(2rem, 4.4vw, 2.75rem); line-height: 1; margin: 1.6em 0 .5em; scroll-margin-top: calc(var(--header) + 16px); }
.prose h3 { font-size: clamp(1.5rem, 3vw, 1.85rem); margin: 1.4em 0 .45em; color: var(--teal-deep); }
.prose h4 { font-size: 1.35rem; margin: 1.2em 0 .4em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose a { color: var(--teal-deep); font-weight: 700; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.prose a:hover { color: var(--ink); }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose li { margin-bottom: .45em; padding-left: .2em; }
.prose li::marker { color: var(--teal); font-weight: 900; }
.prose strong { font-weight: 900; }
.prose blockquote { margin: 0 0 1.2em; padding: 14px 20px; border-left: 6px solid var(--teal); background: var(--paper); font-style: italic; }
.prose figure { margin: 1.6em 0; }
.prose figure img { border: 1px solid var(--rule); border-radius: 8px; background: #fff; box-shadow: var(--hard); }
.prose figure.page-img { max-width: 360px; }
.prose figcaption { font: 700 .875rem/1.4 var(--sans); color: var(--muted); padding-top: 12px; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 1.4em; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; font-size: 1rem; line-height: 1.45; }
.prose th, .prose td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 2px solid var(--tint); }
.prose thead th { font: 900 .75rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; background: var(--tint); }
.prose tbody tr:last-child > * { border-bottom: 0; }
.prose .table-wrap { overflow-x: auto; max-width: 100%; }
.prose .key { display: inline-block; font: 900 .9em/1 var(--sans); letter-spacing: .08em; background: var(--tint); border: 1px solid var(--rule); border-radius: 6px; padding: 2px 6px 1px; }
.note { background: var(--paper); border: 1px solid var(--rule); border-left-width: 8px; border-left-color: var(--pop); border-radius: 8px; padding: 14px 18px; }
.note p:last-child { margin-bottom: 0; }
.sources { font-size: .9375rem; line-height: 1.55; }
.sources li { margin-bottom: .6em; }

/* Call-to-action boxes inside an article */
.cta-box { display: grid; gap: 16px; align-items: center; margin: 2em 0; padding: 20px; background: var(--tint); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--hard); }
.cta-box img { width: 96px; transform: rotate(-3deg); border-radius: 2px 5px 5px 2px; box-shadow: var(--lift-sm); }
.cta-box .cta-title { display: block; font: 400 1.75rem/1 var(--display); letter-spacing: .02em; text-transform: uppercase; margin: 0 0 .3em; }
.cta-box p { margin: 0 0 .8em; font-size: 1rem; line-height: 1.5; }
.cta-box .cta-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 0; }
.prose .cta-box a.button { color: var(--ink); text-decoration: none; font-weight: 900; }
.prose .cta-box a.button.ghost { color: var(--ink); }
.live .cta-box .button { flex-direction: column; gap: 1px; }
@media (min-width: 560px) { .cta-box { grid-template-columns: 96px 1fr; gap: 22px; } }
.cta-box.dark { background: var(--ink); color: var(--cream); --focus: #fff; }
.cta-box.dark p { color: var(--tint); }
.prose .cta-box.dark a:not(.button) { color: #fff; }

/* A word ladder on the page: given words as dark tiles, blank rungs with their clues */
.wl { margin: 1.4em 0 1.8em; padding: 18px 18px 8px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--hard); }
.wl-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; margin-bottom: 12px; }
.prose .wl-head h3, .wl-head h3 { margin: 0; font-size: 1.6rem; color: var(--ink); }
.wl-level { font: 900 .6875rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--teal); padding: 6px 9px; border-radius: 5px; }
.wl-level.hard, .wl-level.tricky { background: var(--ink); }
.wl-level.medium, .wl-level.steady { background: var(--teal-deep); }
.prose .wl ol { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.prose .wl li { display: grid; grid-template-columns: max-content 1fr; align-items: center; gap: 14px; margin: 0; padding: 0; }
.wl-tiles { display: grid; grid-auto-flow: column; gap: 5px; --s: clamp(34px, 9vw, 42px); }
.wl-tiles span { width: var(--s); height: var(--s); display: grid; place-items: center; border: 1px solid var(--rule); border-radius: 8px; background: #fff; font: 900 calc(var(--s) * .52)/1 var(--sans); }
.wl .given .wl-tiles span { background: var(--ink); color: var(--cream); }
.wl-clue { font-size: 1rem; line-height: 1.35; }
.wl-clue b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; background: var(--teal); color: #fff; font-size: .75rem; vertical-align: 1px; }
.wl .given .wl-clue { font: 400 1.05rem/1 var(--hand); color: var(--graphite); }
.wl details { border-top: 2px solid var(--tint); }
.wl summary { font-size: 1.25rem; padding: 12px 44px 10px 0; }
.wl summary::after { width: 30px; height: 30px; margin-top: -15px; }
.prose .wl details p { margin: 0 0 12px; font-size: 1rem; }
.wl-answer { font-weight: 900; letter-spacing: .04em; color: var(--teal-deep); }

/* Blog index cards */
.post-list { display: grid; gap: 22px; }
.post-card { position: relative; display: grid; gap: 8px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--hard); padding: 20px 20px 18px; }
.post-card h2, .prose .post-card h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); line-height: 1; margin: 0; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.post-card h2 a:hover { color: var(--teal-deep); }
.post-card p { margin: 0; color: var(--graphite); font-size: 1rem; line-height: 1.55; }
.post-card .page-meta { margin: 0; font-size: .75rem; }
.post-card .read-more { font-weight: 900; color: var(--teal-deep); font-size: .9375rem; }
.prose .post-list { max-width: none; }
.post-thumb { display: block; margin: -4px -4px 6px; }
.post-thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--rule); border-radius: 8px; background: var(--tint); }
@media (min-width: 700px) {
  .post-card.has-thumb { grid-template-columns: 240px 1fr; column-gap: 22px; align-content: start; }
  .post-card.has-thumb .post-thumb { grid-row: 1 / span 4; margin: 0; align-self: start; }
}

/* Featured image at the top of a blog post (only when the post has artwork) */
.prose figure.feature { margin: 0 0 1.6em; max-width: none; }
.prose figure.feature img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--tint); }

/* Links out to the other free pages */
.link-cards { display: grid; gap: 14px; margin: 0 0 1.4em; }
.link-cards a { display: block; padding: 14px 16px; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; text-decoration: none; }
.link-cards a strong { display: block; font: 400 1.35rem/1.05 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--ink); margin-bottom: 2px; }
.link-cards a span { font-weight: 400; color: var(--graphite); font-size: .9375rem; }
.link-cards a:hover { border-color: var(--teal); }
@media (min-width: 640px) { .link-cards { grid-template-columns: repeat(2, 1fr); } }

/* FAQ on the information pages */
.page-faq { border-top: 1px solid var(--rule); padding-top: 4px; }
.page-faq details { border-bottom: 1px solid var(--rule); }
.prose .page-faq details p { margin: 0 0 18px; color: var(--graphite); font-size: 1.0625rem; }
.prose .page-faq summary h3 { color: var(--ink); }

/* The buy section and download band below an article */
.sub .buy { border-top: 1px solid var(--rule); }
.download { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin: 0 0 1.4em; }
.prose .download a.button { color: var(--ink); text-decoration: none; }
.prose .download a.button.ghost { color: var(--ink); }
.download .file-note { font-weight: 700; color: var(--muted); font-size: .875rem; }

/* 404 */
.lost-links { display: grid; gap: 10px; margin: 22px 0 26px; }
.lost-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 900; color: #fff; text-underline-offset: 4px; }

@media (max-width: 767px) {
  .page-hero { padding: 12px 0 22px; }
  .crumbs ol { margin-bottom: 10px; font-size: .75rem; }
  .page-hero h1 { font-size: clamp(2.1rem, 10vw, 2.8rem); }
  .page-lead { font-size: 1.0625rem; line-height: 1.55; }
  .page-meta { font-size: .6875rem; }
  .page-wrap { padding-block: 22px 36px; gap: 0; }
  .prose { font-size: 1.0625rem; line-height: 1.65; }
  .prose h2 { font-size: clamp(1.75rem, 8vw, 2.2rem); margin-top: 1.4em; }
  .prose h3 { font-size: 1.45rem; }
  .prose table { font-size: .9375rem; }
  .prose th, .prose td { padding: 8px 9px; }
  .cta-box { padding: 16px; box-shadow: var(--lift-sm); }
  .cta-box img { display: none; }
  .cta-box .button { width: 100%; }
  .wl { padding: 14px 12px 6px; box-shadow: var(--lift-sm); }
  .prose .wl li { gap: 10px; }
  .wl-tiles { gap: 4px; --s: clamp(30px, 8.4vw, 38px); }
  .wl-clue { font-size: .9375rem; }
  .post-card { box-shadow: var(--lift-sm); padding: 16px; }
  .footer-cols a { min-height: 44px; }
  .sub .buy .buy-art { display: none; }
  /* Home: the word ladder answer and its four links share one screen */
  .home-links { gap: 8px; margin: 0; }
  .home-links a { padding: 8px 12px 9px; box-shadow: var(--lift-sm); }
  .home-links a strong { font-size: 1.15rem; }
  .home-links a span { display: block; font-size: .8125rem; line-height: 1.3; }
}

/* =====================================================================
   MODERN NOIR CASE FILE (November 2026 redesign)
   The rules above set the layout, and are tuned so each phone panel fits one screen and each pinned desktop
   stage fits its window. This layer changes the look only: hairlines and soft shadows in place of outlines and
   offset shadows, alternating paper and night sections, photographs behind dark sections with a contrast-safe
   scrim, frosted header and buy bar, monospace case labels. Anything that moves sits under html.motion.
   ===================================================================== */
:root {
  --night: #0b1114;
  --night-2: #101a1d;
  --deep: #0a2c2c;
  --paper: #fbf8f0;
  --card: #ffffff;
  --glow: #7fd3c7;           /* teal that reads on night (9.6:1) */
  --amber: #e9a13b;
  --ember: #f0683f;
  --mono: ui-monospace, 'Cascadia Mono', 'SF Mono', 'Segoe UI Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --radius: 16px;
  --lift-sm: 0 1px 2px rgba(11, 17, 20, .06), 0 8px 18px -8px rgba(11, 17, 20, .18);
  --lift: 0 2px 4px rgba(11, 17, 20, .06), 0 22px 44px -16px rgba(11, 17, 20, .32);
  --lift-lg: 0 4px 8px rgba(0, 0, 0, .25), 0 40px 80px -24px rgba(0, 0, 0, .7);
  --scrim: linear-gradient(180deg, rgba(11, 17, 20, .86), rgba(11, 17, 20, .8));
}
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
::selection { background: var(--teal); color: #fff; }
body { background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h2 { letter-spacing: .012em; text-wrap: balance; }
@media (min-width: 768px) { h2 { font-size: clamp(2.7rem, 5.6vw, 4.9rem); line-height: .93; } .section-head { max-width: 820px; } }

/* Case-file micro labels */
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .5em .7em; font: 600 .75rem/1.3 var(--mono); letter-spacing: .16em; }
.kicker::before { content: ''; flex: none; width: 26px; height: 2px; border-radius: 2px; background: var(--pop); }
.kicker.light, .on-night .kicker { color: var(--glow); }
.hero h1 .kicker { display: flex; }
.stage-kicker { justify-content: center; }

/* Buttons: one warm call to action that reads on paper and on night; quiet glass for the second choice */
.button { position: relative; overflow: hidden; isolation: isolate; border: 0; border-radius: 12px; background: linear-gradient(180deg, var(--ember), var(--pop)); color: var(--ink); letter-spacing: .05em; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 2px 5px rgba(11, 17, 20, .2), 0 12px 26px -12px rgba(226, 81, 47, .75); transition: transform .22s var(--ease), box-shadow .22s var(--ease), filter .22s; transform: translate(var(--mx, 0), var(--my, 0)); }
.button::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%); transform: translateX(-120%); }
.button:hover { transform: translate(var(--mx, 0), calc(var(--my, 0px) - 2px)); filter: brightness(1.04); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 4px 8px rgba(11, 17, 20, .22), 0 18px 34px -12px rgba(226, 81, 47, .85); }
.motion .button:hover::after { transform: translateX(120%); transition: transform .7s var(--ease); }
.button:active { transform: translateY(1px) scale(.985); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(11, 17, 20, .3); }
.button.small { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 1px 3px rgba(11, 17, 20, .25); border-radius: 10px; }
.button.ghost { background: rgba(255, 255, 255, .5); color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(20, 24, 28, .5); }
.button.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink), 0 10px 22px -12px rgba(11, 17, 20, .5); }
.button.light { background: var(--cream); color: var(--ink); box-shadow: inset 0 1px 0 #fff, 0 2px 5px rgba(0, 0, 0, .25), 0 14px 28px -14px rgba(0, 0, 0, .6); }
.on-night .button.ghost { background: rgba(245, 240, 227, .07); color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(245, 240, 227, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.on-night .button.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--cream); background: rgba(245, 240, 227, .14); }
.round { border: 0; background: var(--ink); color: var(--cream); box-shadow: var(--lift-sm); }
.round:hover { transform: translateY(-2px); box-shadow: var(--lift); }
.round:active { transform: translateY(1px); box-shadow: var(--lift-sm); }
.on-night .round, .story .round { background: rgba(245, 240, 227, .1); color: var(--cream); box-shadow: inset 0 0 0 1px var(--rule-d); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.on-night .round:hover { background: rgba(245, 240, 227, .2); }
.link:hover { color: var(--teal-deep); }

/* Night sections, photographs behind them, and the scrim that keeps every word readable */
.on-night { position: relative; isolation: isolate; background: var(--night); color: var(--cream); --focus: #fff; }
.on-night h2, .on-night h3 { color: #fff; }
.on-night .fine, .on-night .lead { color: #cfdad6; }
.has-bg { position: relative; isolation: isolate; }
.bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; margin: 0; pointer-events: none; }
.bg img { width: 100%; height: 100%; object-fit: cover; }
.has-bg::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url('assets/grain.png'), var(--scrim); }
.grain { background-image: url('assets/grain.png'), radial-gradient(120% 90% at 80% 0%, #12353a 0%, rgba(11, 17, 20, 0) 60%); }

/* ---------- Header: frosted night glass ---------- */
.site-header { background: rgba(11, 17, 20, .78); -webkit-backdrop-filter: saturate(150%) blur(14px); backdrop-filter: saturate(150%) blur(14px); border-bottom: 1px solid var(--rule-d); color: var(--cream); --focus: #fff; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .site-header { background: rgba(11, 17, 20, .96); } }
.wordmark .logo { width: auto; height: 30px; }
.site-header nav a { color: #e9e4d6; letter-spacing: .09em; transition: background .2s, color .2s; }
.site-header nav a:hover { background: rgba(245, 240, 227, .1); color: #fff; }
.site-header nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--pop); color: #fff; }
.nav-toggle { border: 1px solid var(--rule-d); background: rgba(245, 240, 227, .06); }
.bars, .bars::before, .bars::after { background: var(--cream); height: 2px; }
.progress { bottom: -2px; height: 2px; background: linear-gradient(90deg, var(--glow), var(--pop)); }
@media (max-width: 1219px) {
  .site-header nav.open { background: rgba(11, 17, 20, .97); border-block: 1px solid var(--rule-d); box-shadow: 0 24px 40px rgba(0, 0, 0, .45); }
}
@media (max-width: 767px) { .wordmark .logo { height: 26px; } }
@media (max-width: 359px) { .wordmark .logo { height: 22px; } }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(90% 80% at 78% 30%, #173b3d 0%, rgba(11, 17, 20, 0) 62%), var(--night); color: var(--cream); --focus: #fff; }
.hero.has-bg::before { background: url('assets/grain.png'), linear-gradient(90deg, rgba(11, 17, 20, .93) 0%, rgba(11, 17, 20, .84) 42%, rgba(11, 17, 20, .5) 72%, rgba(11, 17, 20, .62) 100%), linear-gradient(180deg, rgba(11, 17, 20, .35), rgba(11, 17, 20, 0) 30%, rgba(11, 17, 20, .7) 100%); }
.hero-grid, .band { position: relative; z-index: 1; }
.hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
.hero h1 .l2 { color: var(--glow); }
.hero h1 .sub { color: var(--cream); text-shadow: none; }
.hero .lead { color: #d5ded9; }
.hero-price strong { color: #fff; }
.hp-ed, .reassure { color: var(--glow); }
.hero-print, .stamp-files, .pencil-tool, .pencil-shadow { display: none !important; }
.book img { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)) drop-shadow(0 40px 50px rgba(0, 0, 0, .55)); }
@media (max-width: 1099px) { .book { position: relative; } }
@media (min-width: 768px) and (max-width: 1099px) { .hero-price { margin-top: 18px; } .band-row { gap: 6px 22px; } .band-row li + li { padding-left: 22px; } }
/* The evidence scan: a thin line of light that passes down the real cover, masked to the cover's own outline */
.book::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(180deg, rgba(127, 211, 199, 0) 0%, rgba(127, 211, 199, .0) 42%, rgba(127, 211, 199, .34) 49%, #eafffb 50%, rgba(127, 211, 199, .34) 51%, rgba(127, 211, 199, 0) 58%, rgba(127, 211, 199, 0) 100%); background-size: 100% 300%; background-position: 0 100%; -webkit-mask: url('assets/book-mockup.webp') center / 100% 100% no-repeat; mask: url('assets/book-mockup.webp') center / 100% 100% no-repeat; mix-blend-mode: screen; }
@keyframes scan { 0% { background-position: 0 100%; opacity: 0; } 8% { opacity: 1; } 42% { opacity: 1; } 50%, 100% { background-position: 0 0%; opacity: 0; } }
.motion .book::after { animation: scan 7s cubic-bezier(.45, 0, .55, 1) 1.2s infinite; }
@keyframes drift { from { transform: scale(1.04) translate3d(-.8%, -.6%, 0); } to { transform: scale(1.1) translate3d(.8%, .6%, 0); } }
.motion .hero .bg img { animation: drift 30s ease-in-out infinite alternate; will-change: transform; }
.motion .hero .bg { transform: translate3d(0, calc(var(--py, 0) * 1px), 0); }
/* The ladder beside the cover: glass tiles, letters drawn in light */
.hero .ladder::before, .hero .ladder::after { background: linear-gradient(180deg, rgba(127, 211, 199, 0), var(--glow) 18%, var(--glow) 82%, rgba(127, 211, 199, 0)); width: 2px; opacity: .7; }
.hero .lrow > span { background: rgba(245, 240, 227, .07); border: 1px solid rgba(245, 240, 227, .3); color: var(--cream); border-radius: 16%; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .7); }
.hero .lrow.given > span { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.hero .lrow > span.ev { background: var(--teal); border-color: var(--glow); box-shadow: 0 0 0 1px rgba(127, 211, 199, .5), 0 0 28px rgba(127, 211, 199, .55); }
.hero .lrow.pencil b { color: var(--cream); }
.hl .g path { stroke: #f5f0e3; stroke-width: 7; }
.hl-glass { color: var(--cream); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.motion .hl.armed .ev:not(.lit) { background: rgba(245, 240, 227, .07); border-color: rgba(245, 240, 227, .3); box-shadow: none; }
.motion .hl.armed .ev:not(.lit) .g path { stroke: #f5f0e3; }
.scrawl { font: 600 .75rem/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--glow); transform: none; }
.replay { color: var(--cream); font-family: var(--mono); font-weight: 600; }
.band { background: rgba(11, 17, 20, .55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--rule-d); }
.band-row { font: 600 .75rem/1.2 var(--mono); letter-spacing: .14em; color: #cfdad6; }
.band-row strong { font-variant-numeric: tabular-nums; min-width: 1.2ch; text-align: right; }
@media (max-width: 767px) {
  .kicker { font-size: .625rem; letter-spacing: .1em; gap: .4em .6em; }
  .kicker::before { width: 18px; }
  .stats span { font: 700 .625rem/1.25 var(--sans); letter-spacing: .06em; }
  .prices thead th { font: 900 .625rem/1.2 var(--sans); letter-spacing: .06em; }
  .photo-head { padding: 10px 14px 12px; margin-bottom: 8px; }
  .section-head.photo-head > p:last-child { margin-top: .4em; font-size: .9375rem; line-height: 1.4; }
}
@media (max-width: 767px) { .band-row { font-size: .5625rem; letter-spacing: .04em; } .band-row li { white-space: nowrap; } }
@media (min-width: 768px) { .band-row li + li { padding-left: 28px; border-left: 1px solid var(--rule-d); } .band-row { gap: 6px 28px; } }
@media (min-width: 1100px) {
  .hero h1 { line-height: .88; font-size: clamp(2.8rem, min(4.9vw, 8.4vh), 4.25rem); }
  .hero h1 .l1, .hero h1 .l2 { white-space: nowrap; }
  .hero-stage { --t: clamp(38px, 3.4vw, 52px); min-height: clamp(380px, 36vw, 560px); }
  .book { z-index: 2; width: 51%; left: -1%; top: 50%; transform: translateY(calc(-50% + var(--y, 0) * 1px)) perspective(1500px) rotateY(10deg) rotate(-4deg); }
  .hero-ladder-wrap { right: 0; top: 50%; margin-top: calc(var(--t) * -3.4); }
}
@media (min-width: 1100px) and (max-width: 1299px) { .book { width: 48% !important; } }

/* ---------- Light sections: paper, hairlines, air ---------- */
.why-sec { background: var(--card); }
.how { background: var(--paper); }
.board-sec { background: linear-gradient(180deg, #eef2ec, var(--paper)); }
.levels-sec { background: var(--card); }
.gift-sec { background: var(--paper); }
.facts-sec { background: var(--card); }
.explain-sec { background: #eef2ec; }
.faq-sec { background: var(--paper); }
.proofs li::before { border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(14, 107, 104, .12); }
.page-shot { transform: perspective(1400px) rotateY(-7deg) rotateX(2deg) rotate(1deg); transform-origin: 50% 50%; }
.page-shot img { border: 0; border-radius: 4px; box-shadow: 0 1px 1px rgba(11, 17, 20, .2), -1px 0 0 rgba(11, 17, 20, .06), 0 30px 50px -18px rgba(11, 17, 20, .5), 18px 26px 44px -20px rgba(11, 17, 20, .35); }
.page-shot figcaption { font: 600 .6875rem/1.3 var(--mono); letter-spacing: .14em; color: var(--muted); }
@media (max-width: 767px) { .page-shot { transform: rotate(-2deg); } .page-shot img { border: 0; box-shadow: 0 10px 22px -8px rgba(11, 17, 20, .5); } }

/* ---------- The story: the Bureau at night ---------- */
.story { background: radial-gradient(100% 80% at 20% 0%, #123034 0%, rgba(11, 17, 20, 0) 60%), var(--night); padding: 0; }
.story-pin { position: relative; isolation: isolate; padding-block: clamp(56px, 9vw, 110px); }
.story-pin.has-bg::before { background: url('assets/grain.png'), linear-gradient(180deg, rgba(11, 17, 20, .9), rgba(11, 17, 20, .8) 40%, rgba(11, 17, 20, .88)); }
.count { border: 1px solid var(--rule-d); background: rgba(245, 240, 227, .07); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.count small { font: 600 .625rem/1.2 var(--mono); color: var(--glow); }
.beat h3 { text-shadow: 0 2px 30px rgba(0, 0, 0, .5); }
.beat-copy p { color: #e3e8e2; }
.notecard, .strip, .claim, .leaf { box-shadow: 0 2px 3px rgba(0, 0, 0, .3), 0 30px 50px -16px rgba(0, 0, 0, .7); border: 0; }
.notecard, .strip, .claim { background: linear-gradient(160deg, #fffdf6, #f1ecdd); }
.cabinet i { border: 0; background: linear-gradient(180deg, #f8f4e8, #e6dfcc); box-shadow: 0 8px 14px -8px rgba(0, 0, 0, .7); font-family: var(--mono); font-size: .8125rem; font-weight: 700; }
.cabinet i::before { border: 0; background: #f8f4e8; }
.leaf small { border-bottom: 0; }
.motion .pin-ok .beat-dots i { background: rgba(245, 240, 227, .2); height: 3px; width: 40px; }
.motion .pin-ok .beat-dots i.on { background: var(--pop); }
.motion .story.pin-ok .story-pin { padding-bottom: 0; }
@media (max-width: 767px) {
  .story { padding: 0; }
  .story-pin { padding-block: 18px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
}

/* ---------- Six mysteries: case cards under a photographed board ---------- */
.photo-head { position: relative; isolation: isolate; overflow: hidden; max-width: none; border-radius: 22px; background: radial-gradient(90% 120% at 85% 10%, #173b3d 0%, rgba(11, 17, 20, 0) 62%), var(--night); color: var(--cream); padding: clamp(28px, 4.6vw, 64px); box-shadow: var(--lift); --focus: #fff; }
.photo-head h2 { color: #fff; max-width: 14em; }
.photo-head .kicker { color: var(--glow); }
.section-head.photo-head > p:last-child { color: #dfe6e1; max-width: 36em; }
.photo-head.has-bg::before { background: url('assets/grain.png'), linear-gradient(90deg, rgba(11, 17, 20, .92), rgba(11, 17, 20, .8) 55%, rgba(11, 17, 20, .45)); }
.card { transform: none; border: 1px solid var(--rule); border-top: 3px solid var(--teal); border-radius: 14px; background: var(--card); padding: 26px 22px 22px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { box-shadow: var(--lift); }
.motion .card.reveal { transform: translateY(18px); }
.motion .card.reveal.in { transform: none; }
.motion .card.reveal.in:hover { transform: translateY(-4px); }
.card .tab { font: 600 .6875rem/1 var(--mono); letter-spacing: .14em; color: var(--teal-deep); background: rgba(14, 107, 104, .1); border-radius: 99px; padding: 7px 11px; }
.c6 .tab { background: var(--ink); color: var(--cream); }
.c6 { border-top-color: var(--ink); }
.pin { top: -8px; width: 14px; height: 14px; margin-left: -7px; box-shadow: 0 4px 6px rgba(20, 24, 28, .35); }
.string path { stroke-width: 1.6; filter: drop-shadow(0 2px 2px rgba(20, 24, 28, .25)); }
.board-note { font: 400 1.0625rem/1.5 var(--sans); color: var(--muted); }
@media (max-width: 767px) {
  .photo-head { border-radius: 16px; padding: 14px 16px 16px; margin-bottom: 10px; }
  .photo-head.has-bg::before { background: url('assets/grain.png'), var(--scrim); }
  .card { padding: 22px 18px 18px; }
  .board-note { font-size: .9375rem; }
}

/* ---------- How it works ---------- */
.steps { position: relative; }
.steps .num { border-radius: 50%; position: relative; z-index: 1; font-family: var(--mono); font-weight: 700; font-size: 1.0625rem; padding-top: 0; box-shadow: 0 0 0 5px var(--paper); }
@media (min-width: 980px), (max-width: 767px) {
  /* The red string between the steps: it is drawn as the worked example plays, and is complete without motion. */
  .steps::before, .steps::after { content: ''; position: absolute; left: 21px; top: 22px; bottom: 30px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--rule); }
  .steps::after { background: var(--pop); transform-origin: 50% 0; transform: scaleY(var(--sp, 1)); transition: transform .6s var(--ease); }
}
@media (max-width: 767px) { .steps::before, .steps::after { left: 18px; top: 18px; } .steps .num { font-size: .9375rem; } }
@media (min-width: 980px) and (min-height: 560px) and (max-height: 820px) { .motion .steps::before, .motion .steps::after { left: 18px; top: 18px; } .motion .steps .num { font-size: .9375rem; } }
.tag { font: 600 .6875rem/1 var(--mono); letter-spacing: .14em; border-radius: 99px; padding: 7px 11px; }
.ladder.mini em { border: 1px solid var(--rule); box-shadow: var(--lift-sm); font-weight: 400; color: var(--graphite); }
.lrow > span { border-width: 1.5px; box-shadow: 0 1px 0 rgba(11, 17, 20, .08); }
.casecard { background: var(--card); border-radius: 18px; }
.cc-theories li { border: 1px solid var(--rule); font-weight: 700; }
.cc-theories .right { border-color: var(--teal); }
.cc-theories b { border-radius: 50%; font-family: var(--mono); font-size: .75rem; font-weight: 700; padding-top: 0; }
.tick { border: 0; box-shadow: 0 0 0 3px var(--card); }
.cc-label { font: 600 .625rem/1 var(--mono); letter-spacing: .16em; }
.cc-boxes span { border: 1.5px solid rgba(20, 24, 28, .5); }
.stamp { border-width: 2px; outline: 0; border-radius: 6px; }

/* ---------- The playable ladder ---------- */
.puzzle { position: relative; isolation: isolate; background: radial-gradient(80% 90% at 10% 10%, #143437 0%, rgba(11, 17, 20, 0) 60%), var(--night); }
.puzzle.has-bg::before { background: url('assets/grain.png'), linear-gradient(90deg, rgba(11, 17, 20, .92), rgba(11, 17, 20, .84) 50%, rgba(11, 17, 20, .7)); }
.puzzle h2 { color: #fff; }
.exhibit { border-left: 3px solid var(--pop); border-radius: 10px; transform: none; box-shadow: var(--lift-lg); }
.exhibit span { font: 600 .625rem/1 var(--mono); letter-spacing: .16em; }
.demo { border-radius: 22px; background: linear-gradient(180deg, #fffdf7, #f5f0e3); box-shadow: 0 0 0 1px rgba(245, 240, 227, .5), var(--lift-lg); }
.demo .tiles > span, .demo .tiles > i { border: 1.5px solid rgba(20, 24, 28, .55); }
.demo .tiles > span { border-color: var(--ink); }
.demo .tiles > i.ev { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 107, 104, .16); }
.demo label > b { font-family: var(--mono); }
#demo-status { border: 1px solid var(--rule); background: rgba(255, 255, 255, .7); }
#demo-status.warn { border-color: var(--pop-text); } #demo-status.good { border-color: var(--teal); }
.demo .link:hover { color: var(--teal-deep); }

/* Call-to-action bands */
.cta-band { position: relative; isolation: isolate; border-block: 0; background: linear-gradient(100deg, var(--teal-deep), var(--teal) 60%, #128a82); color: var(--cream); --focus: #fff; }
.cta-band strong { color: #fff; }
.sample-band { background: linear-gradient(100deg, var(--teal-deep), var(--teal) 60%, #128a82); }
.sample-band strong { color: #fff; }
.cta-band.last { background: var(--night); padding-block: clamp(44px, 7vw, 96px); }
.cta-band.last.has-bg::before { background: url('assets/grain.png'), linear-gradient(90deg, rgba(11, 17, 20, .9), rgba(11, 17, 20, .78)); }
.cta-band.last strong { font-size: clamp(2.25rem, 5vw, 4rem); }
.file-note { font-family: var(--mono); font-weight: 600; }

/* ---------- Levels ---------- */
.lv { border-radius: 18px; background: var(--card); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.lv:hover { box-shadow: var(--lift); }
.lv-top { border-bottom: 0; }
.lv-cases { font: 600 .6875rem/1 var(--mono); letter-spacing: .12em; }
.dots i { border-width: 1.5px; border-radius: 99px; height: 8px; }
.lv1 .lv-top { background: #e3ede7; } .lv2 .lv-top { background: #a9cfc7; }
.lv3 .lv-top { background: linear-gradient(135deg, var(--teal), #128a82); } .lv4 .lv-top { background: linear-gradient(135deg, #1b2a2e, var(--night)); }
@media (max-width: 767px) { .lv-top { border-right: 0; } }

/* ---------- Comparison: night table, this book lit ---------- */
.compare-sec { position: relative; background: url('assets/grain.png'), radial-gradient(90% 100% at 90% 0%, #143a3c 0%, rgba(11, 17, 20, 0) 60%), var(--night); color: var(--cream); --focus: #fff; }
.compare-sec h2 { color: #fff; }
.compare-sec .lead, .compare-sec .compare-note { color: #cfdad6; }
.compare-sec .kicker { color: var(--glow); }
.compare { background: rgba(245, 240, 227, .04); border: 1px solid var(--rule-d); border-radius: 18px; box-shadow: var(--lift-lg); color: var(--cream); }
.compare th, .compare td { border-bottom: 1px solid rgba(245, 240, 227, .09); }
.compare thead td, .compare thead th { background: rgba(245, 240, 227, .06); color: var(--cream); }
.compare thead th { font-family: var(--mono); font-weight: 600; }
.compare thead th.us { background: linear-gradient(180deg, #128a82, var(--teal)); color: #fff; }
.compare td.us { background: rgba(18, 138, 130, .22); box-shadow: inset 1px 0 0 rgba(127, 211, 199, .35), inset -1px 0 0 rgba(127, 211, 199, .35); }
.compare td.y::before { border-color: var(--glow); border-width: 0 3px 3px 0; }
.compare td.n::before, .compare td.n::after { background: rgba(245, 240, 227, .34); height: 2px; }
.compare td.v { color: #cfdad6; font-family: var(--mono); font-weight: 600; }

/* ---------- Value: stat tiles on paper ---------- */
.value-sec { background: var(--paper); color: var(--ink); --focus: var(--ink); }
.value-sec .kicker.light { color: var(--teal); }
.value-sec .lead { color: var(--graphite); }
.value-time { color: var(--teal-deep); }
.stats li { border: 1px solid var(--rule); border-radius: 16px; background: var(--card); box-shadow: var(--lift-sm); }
.stats strong { color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.stats span { font: 600 .6875rem/1.4 var(--mono); letter-spacing: .1em; color: var(--muted); display: block; }
.prices { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--lift-sm); }
.prices thead th { font-family: var(--mono); font-weight: 600; background: #eef2ec; }
.prices th, .prices td { border-bottom: 1px solid var(--rule); }
.value-photo { display: none; }
@media (min-width: 960px) {
  .value-photo { display: block; margin: 26px 0 0; border-radius: 18px; overflow: hidden; box-shadow: var(--lift); aspect-ratio: 16 / 8; }
  .value-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
  .value-photo:hover img { transform: scale(1.04); }
}

/* ---------- Inside the book: real pages on a dark desk ---------- */
.inside-sec { background: url('assets/grain.png'), radial-gradient(70% 80% at 72% 45%, #24383b 0%, #111b1e 55%, var(--night) 100%); border-block: 0; color: var(--cream); --focus: #fff; }
.inside-sec h2 { color: #fff; }
.inside-sec .kicker { color: var(--glow); }
.inside-lead, .inside-sec .fine { color: #cfdad6; }
.inside-sample a { color: var(--glow); }
.inside-sample .file-note { color: #cfdad6; }
.deck img { border: 0; border-radius: 3px; }
.js .deck figure img { box-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 30px 60px -18px rgba(0, 0, 0, .8); }
.deck figcaption { color: #e9e4d6; font-weight: 400; }
.deck-ctrl p { color: var(--cream); font-family: var(--mono); font-size: .8125rem; font-weight: 600; letter-spacing: .14em; min-width: 9.5em; }
.lens { position: absolute; z-index: 30; left: 0; top: 0; width: 190px; height: 190px; margin: -95px 0 0 -95px; border-radius: 50%; pointer-events: none; opacity: 0; background-color: #fff; background-repeat: no-repeat; box-shadow: 0 0 0 2px rgba(245, 240, 227, .9), 0 0 0 7px rgba(11, 17, 20, .55), 0 24px 40px rgba(0, 0, 0, .6); transition: opacity .2s; will-change: transform; }
.lens.on { opacity: 1; }
@media (max-width: 767px) { .deck-ctrl p { font-size: .75rem; } }

/* ---------- Gift: photo cards ---------- */
.gift-for li { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; padding: 22px; border: 0; border-radius: 18px; background: radial-gradient(120% 90% at 80% 0%, #1a4144 0%, rgba(11, 17, 20, 0) 62%), var(--night); color: var(--cream); box-shadow: var(--lift); }
.gift-for li::before { left: 0; right: 0; top: 0; width: auto; height: auto; inset: 0; z-index: -1; border: 0; border-radius: 0; background: linear-gradient(180deg, rgba(11, 17, 20, .1) 0%, rgba(11, 17, 20, .55) 38%, rgba(11, 17, 20, .93) 68%); }
.gift-for li::after { content: none; }
.gift-for .bg img { transition: transform 1.2s var(--ease); }
.gift-for li:hover .bg img { transform: scale(1.06); }
.gift-for strong { color: #fff; }
.gift-for span { color: #dfe6e1; }
.gift-note { font: 400 1.0625rem/1.5 var(--sans); color: var(--muted); }
@media (min-width: 1100px) { .gift-for li { min-height: 380px; } }
@media (max-width: 767px) {
  .gift-for li { min-height: 0; padding: 12px 12px 14px; border-radius: 14px; }
  .gift-for li::before { right: 0; top: 0; width: auto; height: auto; border-radius: 0; background: linear-gradient(180deg, rgba(11, 17, 20, .72), rgba(11, 17, 20, .9)); }
  .gift-for strong { padding-right: 0; }
  .gift-note { font-size: .9375rem; }
}

/* ---------- Buy ---------- */
.buy { position: relative; background: url('assets/grain.png'), radial-gradient(60% 80% at 18% 45%, #14585a 0%, rgba(11, 17, 20, 0) 70%), linear-gradient(160deg, #0d2326, var(--night)); }
.buy-art img { border-radius: 2px 6px 6px 2px; }
.motion .buy-art img { transition: transform .8s var(--ease); }
.motion .buy-art:hover img { transform: rotate(-2deg) translateY(-6px); }
.prelaunch { border-left: 3px solid var(--pop); border-radius: 12px; background: rgba(245, 240, 227, .96); box-shadow: var(--lift); }
.edition { border: 1px solid var(--rule-d); border-radius: 18px; background: rgba(245, 240, 227, .06); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color .3s, background .3s; }
.edition:hover { border-color: rgba(127, 211, 199, .5); background: rgba(245, 240, 227, .09); }
.soon { font: 600 .6875rem/1 var(--mono); border: 1px solid rgba(245, 240, 227, .5); }
.ed-best b, .store-label { font-family: var(--mono); font-weight: 600; color: var(--glow); }
.ed-desc, .ed-price small { color: #cfdad6; }
.store { border: 1px solid var(--rule-d); background: rgba(245, 240, 227, .06); }
.store button[aria-pressed="true"] { border-color: transparent; }
.assure li::before { border-color: var(--glow); }
.sub .buy { border-top: 0; }
/* On sale: the buy buttons are filled in by script.js, so their row keeps its height from the first paint. */
.on-sale .buy-actions { min-height: 52px; }
@media (max-width: 767px) { .on-sale .buy-actions { min-height: 46px; } }
.buy-actions .button.light { background: linear-gradient(180deg, var(--ember), var(--pop)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 2px 5px rgba(0, 0, 0, .3), 0 14px 28px -12px rgba(226, 81, 47, .8); }

/* ---------- Facts, links, FAQ ---------- */
.facts { background: var(--card); border-radius: 18px; }
.facts th, .facts td { border-bottom: 1px solid var(--rule); }
.facts th { font: 600 .6875rem/1.9 var(--mono); background: #f4f6f1; }
.link-cards a { position: relative; border: 1px solid var(--rule); border-radius: 14px; background: var(--card); padding: 18px 44px 18px 18px; box-shadow: var(--lift-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.link-cards a::after { content: '\2192'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-weight: 900; color: var(--pop-text); transition: transform .3s var(--ease); }
.link-cards a:hover { border-color: var(--teal); box-shadow: var(--lift); transform: translateY(-2px); }
.link-cards a:hover::after { transform: translate(4px, -50%); }
summary::after { background: transparent; color: var(--ink); border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(20, 24, 28, .5); font-weight: 400; font-size: 1.375rem; }
summary:hover::after { background: var(--ink); color: var(--cream); }
details[open] > summary::after { background: var(--teal); color: #fff; box-shadow: none; }
.faq-group details, .faq-group details:first-of-type, .page-faq details { border-color: var(--rule); }
.page-faq { border-top-color: var(--rule); }
.faq-sub { font: 600 .75rem/1.3 var(--mono); }
.motion details[open] > summary ~ * { animation: unfold .35s var(--ease); }
@keyframes unfold { from { opacity: .001; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) { .link-cards a { padding-right: 36px; } .home-links a { padding: 8px 34px 9px 12px; } }

/* ---------- Footer and sticky buy bar ---------- */
.footer { background: url('assets/grain.png'), var(--night); border-top: 1px solid var(--rule-d); }
.footer-brand img { width: auto; height: 34px; }
.footer-h { font: 600 .6875rem/1.3 var(--mono); color: var(--glow); }
.footer-cols a { text-decoration-color: rgba(245, 240, 227, .3); }
@media (max-width: 767px) {
  .buybar { background: rgba(11, 17, 20, .88); -webkit-backdrop-filter: saturate(150%) blur(14px); backdrop-filter: saturate(150%) blur(14px); border-top: 1px solid var(--rule-d); box-shadow: 0 -12px 30px rgba(0, 0, 0, .35); --focus: #fff; }
  .buybar p { color: #cfdad6; }
  .buybar strong { color: #fff; }
}

/* =====================================================================
   Guide, printables, blog and information pages
   ===================================================================== */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: url('assets/grain.png'), radial-gradient(80% 120% at 85% 0%, #17403f 0%, rgba(11, 17, 20, 0) 62%), var(--night); border-bottom: 0; color: var(--cream); --focus: #fff; padding: clamp(18px, 3vw, 30px) 0 clamp(36px, 5.5vw, 76px); }
.page-hero.has-bg::before { background: url('assets/grain.png'), linear-gradient(90deg, rgba(11, 17, 20, .93), rgba(11, 17, 20, .84) 55%, rgba(11, 17, 20, .6)), linear-gradient(180deg, rgba(11, 17, 20, .2), rgba(11, 17, 20, .55)); }
.page-hero h1 { color: #fff; font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: .92; }
.page-hero .kicker { color: var(--glow); }
.page-lead { color: #dbe3de; }
.page-meta { font: 600 .6875rem/1.6 var(--mono); letter-spacing: .1em; color: var(--glow); }
.page-meta a { color: #fff; text-underline-offset: 3px; }
.page-meta span + span::before { color: rgba(245, 240, 227, .5); }
.crumbs ol { color: #b8c4bf; font: 600 .6875rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.crumbs a { color: var(--glow); }
.crumbs li + li::before { color: rgba(245, 240, 227, .4); }
.has-feature .page-hero { padding-bottom: clamp(90px, 14vw, 190px); }
.feature-wrap { position: relative; z-index: 2; max-width: 1120px; margin-top: calc(clamp(64px, 11vw, 150px) * -1); }
.feature { margin: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--lift-lg); background: var(--night-2); }
.feature img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 1100px) { .feature img { aspect-ratio: 21 / 9; } }
.motion .feature img { animation: settle 1.4s var(--ease) both; }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }

.prose h2 { font-size: clamp(2.1rem, 4.4vw, 3rem); padding-top: .5em; position: relative; }
.prose h2::before { content: ''; position: absolute; left: 0; top: 0; width: 44px; height: 2px; border-radius: 2px; background: var(--pop); }
.prose > h2:first-child { padding-top: .5em; }
.prose h3 { color: var(--teal-deep); }
.prose blockquote { border-left: 3px solid var(--teal); border-radius: 0 12px 12px 0; background: var(--card); box-shadow: var(--lift-sm); }
.prose figure img { border: 0; border-radius: 8px; box-shadow: var(--lift); }
.prose figure.page-img { transform: perspective(1400px) rotateY(-5deg) rotate(.6deg); }
.prose table { border: 1px solid var(--rule); border-radius: 14px; background: var(--card); box-shadow: var(--lift-sm); }
.prose th, .prose td { border-bottom: 1px solid var(--rule); }
.prose thead th { font-family: var(--mono); font-weight: 600; background: #eef2ec; }
.prose .key { border: 1px solid var(--rule); font-family: var(--mono); }
.note { border: 1px solid var(--rule); border-left: 3px solid var(--pop); border-radius: 12px; background: var(--card); box-shadow: var(--lift-sm); }
.cta-box { border: 1px solid var(--rule); border-radius: 20px; background: linear-gradient(135deg, #eef4ef, var(--card)); box-shadow: var(--lift); padding: 24px; }
.cta-box img { border-radius: 2px 4px 4px 2px; box-shadow: 0 14px 24px -10px rgba(11, 17, 20, .55); }
.cta-box.dark { border-color: var(--rule-d); background: url('assets/grain.png'), radial-gradient(90% 140% at 100% 0%, #17403f 0%, rgba(11, 17, 20, 0) 65%), var(--night); }
.cta-box.dark .cta-title { color: #fff; }
.cta-box.dark .button.ghost, .prose .cta-box.dark a.button.ghost { background: rgba(245, 240, 227, .07); color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(245, 240, 227, .55); }
.wl { border-radius: 18px; background: var(--card); padding: 20px 20px 8px; }
.wl-level { font: 600 .625rem/1 var(--mono); border-radius: 99px; padding: 7px 10px; }
.wl-tiles span { border: 1.5px solid rgba(20, 24, 28, .55); }
.wl .given .wl-tiles span { border-color: var(--ink); }
.wl .given .wl-clue { font: 600 .6875rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.wl details { border-top: 1px solid var(--rule); }
.wl-clue b { font-family: var(--mono); }
@media (min-width: 1100px) {
  .aside-card { border-radius: 20px; background: url('assets/grain.png'), radial-gradient(120% 80% at 50% 0%, #17494a 0%, rgba(11, 17, 20, 0) 70%), var(--night); border: 1px solid var(--rule-d); color: var(--cream); box-shadow: var(--lift); --focus: #fff; padding: 26px 22px 22px; }
  .aside-card img { box-shadow: 0 20px 34px -12px rgba(0, 0, 0, .8); border-radius: 2px 4px 4px 2px; width: 160px; transition: transform .6s var(--ease); }
  .aside-card:hover img { transform: rotate(-1deg) translateY(-4px); }
  .aside-card p { color: #cfdad6; }
  .aside-card .aside-title { color: #fff; }
  .aside-card .aside-link { color: var(--glow); }
}

/* Blog index: one lead article, then a grid of cards */
.post-list { gap: 26px; }
.post-card { border-radius: 20px; padding: 0 0 22px; overflow: hidden; background: var(--card); gap: 10px; align-content: start; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--lift); }
.post-card > :not(.post-thumb) { margin-inline: 22px; }
.post-card:not(.has-thumb) { padding-top: 22px; }
.post-thumb { margin: 0 0 6px; overflow: hidden; background: var(--night-2); }
.post-thumb img { border: 0; border-radius: 0; transition: transform 1s var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-card h2, .prose .post-card h2 { padding-top: 0; font-size: clamp(1.6rem, 2.6vw, 2rem); }
.prose .post-card h2::before { content: none; }
.post-card .page-meta { color: var(--teal-deep); }
.prose .post-card h2 a { color: var(--ink); font-weight: 400; }
.prose .post-card h2 a:hover { color: var(--teal-deep); }
.post-card .page-meta span + span::before { color: var(--muted); }
.post-card .read-more { font: 600 .75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--pop-text); margin-top: 4px; }
.post-card h2 a::after { border-radius: 20px; }
@media (min-width: 700px) {
  .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-card.has-thumb { grid-template-columns: 1fr; column-gap: 0; }
  .post-card.has-thumb .post-thumb { grid-row: auto; }
  .post-card.feat { grid-column: 1 / -1; }
  .post-card.feat h2, .prose .post-card.feat h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
  .post-card.feat p { font-size: 1.0625rem; }
  .post-card.feat .post-thumb img { aspect-ratio: 2 / 1; }
}
.blog-page .page-wrap { max-width: 1200px; }
@media (min-width: 1100px) { .blog-page .page-wrap { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; } .blog-page .prose > * { max-width: none; } .blog-page .prose > p, .blog-page .prose > h2 { max-width: 68ch; } }

/* About: photo-led */
.split { display: grid; gap: 22px; align-items: center; margin: 0 0 1.6em; max-width: none; }
.split > * { margin: 0; }
.split-photo { border-radius: 20px; overflow: hidden; box-shadow: var(--lift); aspect-ratio: 4 / 3; background: var(--night-2); }
.split-photo img, .prose figure.split-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; transition: transform 1.2s var(--ease); }
.split-photo:hover img { transform: scale(1.04); }
@media (min-width: 700px) { .split { grid-template-columns: 1fr 1fr; gap: 32px; } .split.flip > :first-child { order: 2; } }
.pull, .prose blockquote.pull { position: relative; border-left: 0; font-style: normal; margin: 1.8em 0; padding: 26px 28px 24px 34px; border-radius: 20px; background: url('assets/grain.png'), radial-gradient(90% 140% at 100% 0%, #17403f 0%, rgba(11, 17, 20, 0) 65%), var(--night); color: #fff; box-shadow: var(--lift); }
.pull::before { content: ''; position: absolute; left: 0; top: 26px; bottom: 24px; width: 3px; border-radius: 3px; background: var(--pop); }
.pull p, .prose .pull p { margin: 0; font: 400 clamp(1.7rem, 3.6vw, 2.5rem)/1.02 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.pull cite { display: block; margin-top: 14px; font: 600 .6875rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--glow); }
.tiles-row, .prose ul.tiles-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0 0 1.6em; max-width: none; }
.tiles-row li, .prose .tiles-row li { margin: 0; padding: 16px 16px 14px; border: 1px solid var(--rule); border-radius: 16px; background: var(--card); box-shadow: var(--lift-sm); }
.tiles-row strong { display: block; font: 400 2.6rem/.9 var(--display); color: var(--teal-deep); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.tiles-row span { font: 600 .6875rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 700px) { .tiles-row, .prose ul.tiles-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.checks, .prose ul.checks { list-style: none; padding: 0; display: grid; gap: 10px; max-width: none; }
.checks li, .prose .checks li { position: relative; margin: 0; padding: 14px 16px 14px 52px; border: 1px solid var(--rule); border-radius: 14px; background: var(--card); box-shadow: var(--lift-sm); font-size: 1rem; line-height: 1.5; }
.checks li::before { content: ''; position: absolute; left: 16px; top: 15px; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); }
.checks li::after { content: ''; position: absolute; left: 24px; top: 19px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(40deg); }
@media (min-width: 700px) { .checks, .prose ul.checks { grid-template-columns: 1fr 1fr; } }
.author-card { display: grid; gap: 18px; align-items: center; margin: 0 0 1.4em; padding: 22px; border: 1px solid var(--rule); border-radius: 20px; background: var(--card); box-shadow: var(--lift-sm); max-width: none; }
.author-card p:last-child { margin: 0; }
.author-photo { width: 132px; height: 132px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px var(--card), 0 0 0 5px var(--rule), var(--lift); margin: 0; }
.author-photo img, .prose figure.author-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
@media (min-width: 560px) { .author-card.has-photo { grid-template-columns: 132px 1fr; gap: 26px; } }
.more { border: 1px solid var(--rule); border-radius: 14px; background: var(--card); padding: 0 18px; margin: 0 0 1.4em; box-shadow: var(--lift-sm); }
.more summary { font-size: 1.25rem; padding: 14px 44px 11px 0; }
.more summary::after { width: 30px; height: 30px; margin-top: -15px; }
.prose .more > :last-child { margin-bottom: 16px; }

/* 404 */
.lost { position: relative; isolation: isolate; background: url('assets/grain.png'), radial-gradient(80% 90% at 80% 10%, #17403f 0%, rgba(11, 17, 20, 0) 62%), var(--night); min-height: calc(100vh - var(--header)); }
.lost.has-bg::before { background: url('assets/grain.png'), linear-gradient(90deg, rgba(11, 17, 20, .93), rgba(11, 17, 20, .8)); }
.lost .kicker { color: var(--glow); }
.lost-links a { color: #fff; }
.lost-links li { border-bottom: 1px solid var(--rule-d); }
.lost-links { gap: 0; max-width: 34em; }

@media (max-width: 767px) {
  .page-hero { padding: 12px 0 28px; }
  .page-hero h1 { font-size: clamp(2.2rem, 10.4vw, 3rem); }
  .has-feature .page-hero { padding-bottom: 84px; }
  .feature-wrap { margin-top: -60px; }
  .feature { border-radius: 14px; }
  .cta-box { padding: 18px; border-radius: 16px; }
  .wl { padding: 14px 12px 6px; border-radius: 14px; }
  .post-card { padding: 0 0 18px; border-radius: 16px; }
  .post-card > :not(.post-thumb) { margin-inline: 16px; }
  .pull { padding: 20px 20px 18px 26px; border-radius: 16px; }
  /* Home panels: labels that must stay on one line so each panel still fits one screen */
  .stats span { font: 700 .625rem/1.25 var(--sans); letter-spacing: .06em; }
  .prices { font-size: .75rem; }
  .prices thead th { font: 900 .625rem/1.2 var(--sans); letter-spacing: .06em; }
  .prices th, .prices td { white-space: nowrap; padding-inline: 6px; }
  .prices th:first-child { padding-left: 10px; }
  .facts th { font: 900 .6875rem/1.7 var(--sans); letter-spacing: .05em; }
  .lv-cases { font: 700 .625rem/1 var(--sans); letter-spacing: .05em; }
}

/* Motion extras (only with html.motion): count-up numbers hold their width; the magnifier follows the pointer */
.motion .reveal { transition-duration: .8s; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .button, .button:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ================= WOW LAYER (25 Nov): big hero book on phones, more motion =================
   All of it is decoration. Nothing here runs without html.motion, which is never set for reduced motion. */

/* Phones: the book is the centre of the first screen. The subtitle and lead are printed on the cover itself,
   so they stay in the page for screen readers and search but give their room to the book. */
@media (max-width: 767px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "k" "h" "b" "p" "c" "r"; gap: 0; }
  .hero h1 .sub, .hero .lead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .hero h1 { margin-bottom: 0; }
  .book { grid-area: b; justify-self: center; max-width: none; min-width: 168px; width: min(80vw, calc((100vh - var(--header) - 374px) / 1.316)); width: min(80vw, calc((100svh - var(--header) - 374px) / 1.316)); margin: 14px 0 12px; }
  .hero-price { justify-content: center; text-align: center; margin: 0; }
  .hero .cta-row { margin-top: 12px; }
}

/* The cover: a soft glow behind it, a slow float, and a band of light that crosses it now and then. */
.book::before { content: ''; position: absolute; inset: -14%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(127, 211, 199, .38), rgba(127, 211, 199, 0) 72%); pointer-events: none; }
.book::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; -webkit-mask: url('assets/book-mockup.webp') center / 100% 100% no-repeat; mask: url('assets/book-mockup.webp') center / 100% 100% no-repeat; background: linear-gradient(105deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, .5) 50%, rgba(255, 255, 255, 0) 58%) no-repeat; background-size: 260% 100%; }
.motion .book { animation: bookin 1s var(--ease) both, bookfloat 6.5s ease-in-out 1s infinite; }
.motion .book::before { animation: glowpulse 5s ease-in-out infinite; }
.motion .book::after { opacity: 1; animation: sheen 6s ease-in-out 1.2s infinite; }
@keyframes bookin { from { scale: .84; translate: 0 34px; } to { scale: 1; translate: 0 0; } }
@keyframes bookfloat { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -12px; rotate: 1.4deg; } }
@keyframes glowpulse { 0%, 100% { opacity: .65; scale: .94; } 50% { opacity: 1; scale: 1.06; } }
@keyframes sheen { 0% { background-position: 130% 0; } 38%, 100% { background-position: -60% 0; } }

/* Reveal on scroll: a real rise and fade instead of a small slide. */
.motion .reveal { opacity: .15; translate: 0 38px; scale: .965; transition: transform .8s var(--ease), opacity .7s ease-out, translate .85s var(--ease), scale .85s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.motion .reveal.in { opacity: 1; translate: 0 0; scale: 1; }
.motion [data-swipe] .reveal { opacity: 1; translate: 0 0; scale: 1; }

/* Headings come up word by word from behind a line. */
.motion .words .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-bottom: -.06em; }
.motion .words .w > span { display: inline-block; transform: translateY(108%) rotate(4deg); transform-origin: 0 100%; transition: transform .75s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
.motion .words.in .w > span { transform: none; }

/* Photographs behind sections drift against the scroll. */
.motion .plx img { transform: translate3d(0, calc(var(--py, 0) * 1px), 0) scale(1.16); will-change: transform; }

/* The ladder ticker under the hero. */
.ticker { overflow: hidden; background: var(--night); color: var(--cream); border-block: 1px solid rgba(245, 240, 227, .14); }
.ticker-track { display: flex; width: max-content; }
.ticker-track ul { display: flex; align-items: center; gap: 18px; margin: 0; padding: 11px 9px; list-style: none; font: 400 1.125rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.ticker-track li { display: flex; align-items: center; gap: 18px; }
.ticker-track li::after { content: '\2192'; color: var(--glow); font-family: var(--sans); letter-spacing: 0; }
.ticker-track li.end { color: var(--glow); }
.ticker-track li.end::after { content: '\25C6'; font-size: .6em; color: var(--ember, #e4572e); }
.motion .ticker-track { animation: ticker 38s linear infinite; }
@keyframes ticker { to { transform: translate3d(-50%, 0, 0); } }

/* ================= SELL LAYER (25 Nov): the book and a buy button on every page, every screen ================= */
/* The cover in the sticky buy bar (phones). */
.bar-cover { flex: none; width: 34px; height: auto; border-radius: 1px 3px 3px 1px; transform: rotate(-4deg); box-shadow: 0 6px 12px -4px rgba(0, 0, 0, .7); }
.buybar p { flex: 1 1 auto; }

/* The book strip under each page heading: phones and tablets, where there is no side card. */
.book-strip { display: none; }
@media (max-width: 1099px) {
  .book-strip { display: block; position: relative; overflow: hidden; padding: 16px 0 18px; background: url('assets/grain.png'), radial-gradient(90% 160% at 0% 50%, #17494a 0%, rgba(11, 17, 20, 0) 70%), var(--night); border-top: 1px solid rgba(245, 240, 227, .12); color: var(--cream); --focus: #fff; }
  .book-strip-in { display: grid; grid-template-columns: clamp(104px, 30vw, 170px) minmax(0, 1fr); gap: 18px; align-items: center; }
  .bs-art { position: relative; }
  .bs-art::before { content: ''; position: absolute; inset: -16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(127, 211, 199, .34), rgba(127, 211, 199, 0) 72%); }
  .bs-art img { position: relative; width: 100%; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .6)); }
  .motion .bs-art img { animation: bookfloat 6.5s ease-in-out infinite; }
  .bs-title { margin: 0 0 4px; font: 400 clamp(1.5rem, 6.4vw, 2.2rem)/1 var(--display); letter-spacing: .02em; text-transform: uppercase; color: #fff; }
  .bs-text { margin: 0 0 12px; font-size: .9375rem; line-height: 1.4; color: #cfdad6; }
  .book-strip .button { width: 100%; max-width: 320px; }
}
/* Phones: the cover comes back into the buy boxes inside articles and the buy section at the foot of each page. */
@media (max-width: 767px) {
  .cta-box { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: start; }
  .cta-box img { display: block; width: 76px; }
  .sub .buy .buy-art { display: block; margin: 0 0 6px; }
  .sub .buy .buy-art img { width: min(46%, 190px); }
  .motion .sub .buy .buy-art img { animation: bookfloat 6.5s ease-in-out infinite; }
}

/* ================= MOTION, SECOND PASS: what the best product pages do =================
   1. Copy lights up word by word as it is scrolled through (scrubbed to the scroll, as on Apple's product pages).
   2. Photographs open out from a cropped frame as they arrive.
   3. The main buy buttons catch the light every few seconds. */
.motion .scrub .w { display: inline; overflow: visible; }
.motion .scrub .w > span { display: inline; opacity: .26; transition: opacity .35s ease-out; }
.motion .scrub .w.lit > span { opacity: 1; }
.motion .reveal.clip { opacity: 1; translate: 0 0; scale: 1; clip-path: inset(14% 9% 14% 9% round 22px); transition: clip-path 1.1s var(--ease); }
.motion .reveal.clip.in { clip-path: inset(0 0 0 0 round 0px); }
.motion .reveal.clip img { scale: 1.16; transition: scale 1.4s var(--ease); }
.motion .reveal.clip.in img { scale: 1; }
.motion .button:not(.ghost):not(.small)::after { animation: btnsheen 5.5s ease-in-out 2s infinite; }
@keyframes btnsheen { 0% { transform: translateX(-120%); } 22%, 100% { transform: translateX(120%); } }
.motion .buybar:not(.away) .bar-cover { animation: barpop .5s var(--ease) both; }
@keyframes barpop { from { scale: .4; rotate: -24deg; } to { scale: 1; rotate: 0deg; } }
.live .book-strip .button { flex-direction: column; gap: 1px; }
@media (max-width: 1099px) { .has-feature .book-strip { margin-top: 22px; border-bottom: 1px solid rgba(245, 240, 227, .12); } .book-strip + .page-wrap { padding-top: 26px; } }
/* Home buy section on phones: the cover floats beside the heading and the lines under it, and the store switch and
   edition cards start below it, so the book is on screen where the buy buttons are and covers nothing. */
@media (max-width: 767px) {
  .buy.panel .buy-grid { display: block; }
  .buy.panel .buy-copy { display: contents; }
  .buy.panel .buy-art { display: block; float: right; position: relative; width: clamp(92px, 27vw, 120px); margin: 2px 4px 10px 16px; }
  .buy.panel .buy-art::before { content: ''; position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(127, 211, 199, .34), rgba(127, 211, 199, 0) 72%); }
  .buy.panel .buy-art img { position: relative; width: 100%; margin: 0; }
  .motion .buy.panel .buy-art img { animation: bookfloat 6.5s ease-in-out infinite; }
  .buy.panel .buy-grid > .buy-copy > h2 { font-size: clamp(1.5rem, 6.7vw, 2.1rem); }
  .buy.panel .store, .buy.panel .prelaunch, .buy.panel .editions { clear: both; }
}
