/* ==== 00-base.css ==== */
/* NINJA PUFF — base: tokens, fonts, grounds, type, THE COMIC kit (panels, captions, bubbles, sfx, bursts, rays, the CA
   speech bubble, pills), header + drawer chrome, toast, .e404. Parts never restyle these. --buy fills ONLY Buy pills. */
:root {
  --paper: #fffbef; --paper-2: #f3ecdb; --ink: #14101f; --ink-2: #3a3350;
  --violet: #7b2cff; --night: #1a0f33; --night-2: #2b1659; --glow: #cbb2ff;
  --caption: #ffd84a; --puff: #ffffff; --dot: rgba(123, 44, 255, .18);
  --buy: #d7141f; --ring: #7b2cff;
  --title: "Sigmar One", "Arial Black", Impact, sans-serif;
  --sfx: "Knewave", "Arial Black", Impact, sans-serif;
  --text: "Delius", "Trebuchet MS", "Segoe UI", sans-serif;
  --m: 32px; --nav: 64px;
  --h1: clamp(64px, 8.4vw, 132px);
  --line: var(--ink); --em: var(--violet); --fg: var(--ink); --fg-2: var(--ink-2);
  --star: polygon(50% 0%, 59.3% 15.2%, 75% 6.7%, 75.5% 24.5%, 93.3% 25%, 84.8% 40.7%, 100% 50%, 84.8% 59.3%, 93.3% 75%, 75.5% 75.5%, 75% 93.3%, 59.3% 84.8%, 50% 100%, 40.7% 84.8%, 25% 93.3%, 24.5% 75.5%, 6.7% 75%, 15.2% 59.3%, 0% 50%, 15.2% 40.7%, 6.7% 25%, 24.5% 24.5%, 25% 6.7%, 40.7% 15.2%);
}
/* phones: the H1 'Ninja Puff' is ~6.5em wide in Sigmar One, so it is capped to fit the cover (56px / 48px when there is room) */
@media (max-width: 699px) { :root { --m: 16px; --h1: min(56px, calc((100vw - 64px) / 6.6)); } }
@media (max-width: 379px) { :root { --h1: min(48px, calc((100vw - 64px) / 6.6)); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 12px); overflow-x: hidden; }
html.rm { scroll-behavior: auto; }
body { margin: 0; background-color: var(--paper); color: var(--ink); font-family: var(--text); font-size: 18px; line-height: 1.5; overflow-x: hidden; }
body.lock { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--em); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 14px; border: 3px solid var(--ink); border-radius: 10px; background-color: var(--caption); color: var(--ink); }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- grounds (crisp print dots in one corner, never worn) ---------- */
.gd-paper { --line: var(--ink); --em: var(--violet); --fg: var(--ink); --fg-2: var(--ink-2); --ring: #7b2cff; background-color: var(--paper); color: var(--ink); position: relative; isolation: isolate; }
.gd-night { --line: var(--puff); --em: var(--glow); --fg: var(--glow); --fg-2: var(--glow); --ring: #ffd84a; background-color: var(--night); color: var(--glow); position: relative; isolation: isolate; }
.gd-paper::before, .gd-night::before { content: ""; position: absolute; z-index: -1; width: min(340px, 60vw); height: min(340px, 60vw); pointer-events: none;
  background-image: radial-gradient(circle, var(--dot) 2.2px, transparent 2.6px); background-size: 14px 14px; }
.gd-paper::before { top: 0; right: 0; -webkit-mask-image: radial-gradient(circle at 100% 0, #000 70%, transparent 70.5%); mask-image: radial-gradient(circle at 100% 0, #000 70%, transparent 70.5%); }
.gd-night::before { bottom: 0; left: 0; background-image: radial-gradient(circle, rgba(123, 44, 255, .45) 2.2px, transparent 2.6px);
  -webkit-mask-image: radial-gradient(circle at 0 100%, #000 70%, transparent 70.5%); mask-image: radial-gradient(circle at 0 100%, #000 70%, transparent 70.5%); }
.gd-night h2, .gd-night h3 { color: var(--puff); }
.gd-night .fine, .gd-night .lead { color: var(--glow); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--m); position: relative; }
.sec { padding: 104px 0; }
@media (max-width: 699px) { .sec { padding: 64px 0; } }
.pg-tag { display: inline-block; margin: 0 0 14px; padding: 4px 12px; border-radius: 4px; background-color: var(--ink); color: var(--paper); font-family: var(--text); font-size: 14px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; }
.gd-night .pg-tag { background-color: var(--puff); color: var(--ink); }

/* ---------- type (display rule: the hero H1 stays the largest type) ---------- */
h2 { font-family: var(--title); font-weight: 400; font-size: min(clamp(36px, 5vw, 76px), calc(var(--h1) * .8)); line-height: 1.04; letter-spacing: .005em; color: var(--ink); text-wrap: balance; }
h2 em { font-style: normal; color: var(--em); }
h3 { font-family: var(--title); font-weight: 400; font-size: min(clamp(22px, 2.2vw, 30px), calc(var(--h1) * .5)); line-height: 1.15; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--fg); max-width: 40em; }
.fine { font-size: 14px; line-height: 1.45; color: var(--fg-2); }

/* ---------- THE COMIC kit ---------- */
.panel { position: relative; border: 4px solid var(--line); border-radius: 6px; overflow: hidden; background-color: var(--paper); color: var(--ink); }
.panel.night { background-color: var(--night); color: var(--glow); }
.panel > img, .panel > picture > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.grid-p { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-p { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cap-box { display: inline-block; max-width: 100%; padding: 8px 14px; border: 3px solid var(--ink); border-radius: 3px; background-color: var(--caption); color: var(--ink);
  font-family: var(--text); font-size: 17px; line-height: 1.4; text-transform: none; box-shadow: 3px 3px 0 var(--ink); }

/* speech bubble: tail = an ink triangle + a white triangle on top of it (bottom-left by default; .r = bottom-right) */
.bubble { position: relative; display: inline-block; max-width: 100%; padding: 14px 20px; border: 3px solid var(--ink); border-radius: 28px; background-color: var(--puff); color: var(--ink); font-family: var(--text); font-size: 18px; line-height: 1.4; }
.bubble::before, .bubble::after { content: ""; position: absolute; pointer-events: none; }
.bubble::before { bottom: -24px; left: 34px; width: 30px; height: 27px; background-color: var(--ink); clip-path: polygon(0 0, 100% 0, 8% 100%); }
.bubble::after { bottom: -15px; left: 38.5px; width: 21px; height: 19px; background-color: var(--puff); clip-path: polygon(0 0, 100% 0, 6% 100%); }
.bubble.l::before { left: 34px; } .bubble.l::after { left: 38.5px; }
.bubble.r::before { left: auto; right: 34px; clip-path: polygon(0 0, 100% 0, 92% 100%); }
.bubble.r::after { left: auto; right: 38.5px; clip-path: polygon(0 0, 100% 0, 94% 100%); }

.sfx { display: inline-block; font-family: var(--sfx); font-weight: 400; font-size: min(clamp(28px, 4vw, 60px), calc(var(--h1) * .6)); line-height: 1; letter-spacing: .02em; color: var(--violet);
  -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink); transform: rotate(-6deg); user-select: none; }
.gd-night .sfx, .panel.night .sfx { -webkit-text-stroke-color: var(--puff); text-shadow: 3px 3px 0 var(--puff); }

.burst { position: relative; isolation: isolate; display: inline-grid; place-items: center; min-width: 64px; aspect-ratio: 1; padding: 14px; color: var(--ink); font-family: var(--title); font-size: 18px; line-height: 1; text-align: center; }
.burst::before, .burst::after { content: ""; position: absolute; z-index: -1; clip-path: var(--star); }
.burst::before { inset: 0; background-color: var(--ink); }
.burst::after { inset: 4px; background-color: var(--caption); }

.rays { position: absolute; inset: -40%; pointer-events: none; background-image: repeating-conic-gradient(from 0deg at 50% 50%, rgba(123, 44, 255, .12) 0deg 5deg, transparent 5deg 15deg); }
.panel.night .rays, .gd-night .rays { background-image: repeating-conic-gradient(from 0deg at 50% 50%, rgba(123, 44, 255, .5) 0deg 5deg, transparent 5deg 15deg); }

/* ---------- THE CA object: a speech bubble (tail up-left; label, address, Copy; POOF burst on copy) ---------- */
.bub-ca { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 14px; width: 100%; max-width: 560px; padding: 14px 16px 14px 22px;
  border: 3px solid var(--ink); border-radius: 28px; background-color: var(--puff); color: var(--ink); }
.bub-ca::before, .bub-ca::after { content: ""; position: absolute; pointer-events: none; }
.bub-ca::before { top: -24px; left: 40px; width: 30px; height: 27px; background-color: var(--ink); clip-path: polygon(8% 0, 100% 100%, 0 100%); }
.bub-ca::after { top: -15px; left: 44.5px; width: 21px; height: 19px; background-color: var(--puff); clip-path: polygon(6% 0, 100% 100%, 0 100%); }
.bub-lbl { grid-column: 1; grid-row: 1; font-family: var(--text); font-size: 15px; line-height: 1.3; color: var(--ink-2); }
.bub-ca .ca, .bub-pre { grid-column: 1 / -1; grid-row: 2; font-family: var(--text); font-size: 18px; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
.bub-ca .bub-copy { grid-column: 2; grid-row: 1; }
.bub-pre { color: var(--ink); }
.bub-copy { position: relative; }
.bub-poof { position: absolute; z-index: 3; right: -10px; top: -34px; min-width: 76px; font-size: 16px; pointer-events: none; opacity: 0; transform: scale(.6) rotate(-8deg); }
.bub-ca.is-copied .bub-poof { opacity: 1; transform: scale(1) rotate(-8deg); }
html.js:not(.rm) .bub-poof { transition: opacity .3s ease, transform .6s cubic-bezier(.2, 1.6, .4, 1); }

/* ---------- pills (comic: 3px ink border, 4px ink offset shadow, press = push in) ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 22px; border: 3px solid var(--ink); border-radius: 14px;
  background-color: var(--paper); color: var(--ink); font-family: var(--text); font-size: 18px; line-height: 1.1; text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); }
.pill .mk { width: 20px; height: 20px; flex: none; }
.pill.buy { background-color: var(--buy); color: #fff; border-width: 4px; box-shadow: 4px 4px 0 var(--ink); }
.pill.ink { background-color: var(--ink); color: var(--paper); }
.pill.line { background-color: var(--paper); color: var(--ink); }
.pill.line-l { background-color: transparent; color: var(--puff); border-color: var(--puff); box-shadow: 4px 4px 0 var(--violet); }
.pill.sm { min-height: 44px; padding: 0 14px; gap: 8px; font-size: 15px; border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); }
.pill.buy.sm { box-shadow: 3px 3px 0 var(--ink); }
.pill.line-l.sm { box-shadow: 3px 3px 0 var(--violet); }
.rnd { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 3px solid var(--ink); border-radius: 50%; background-color: var(--puff); color: var(--ink); cursor: pointer; box-shadow: 3px 3px 0 var(--ink); text-decoration: none; }
.rnd.lg { width: 56px; height: 56px; box-shadow: 4px 4px 0 var(--ink); }
.rnd .mk { width: 18px; height: 18px; }
.rnd.lg .mk { width: 20px; height: 20px; }
.mk.inv { filter: invert(1); }
.pill:active, .rnd:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.pill.line-l:active { box-shadow: 2px 2px 0 var(--violet); }
.gd-night .rnd, .panel.night .rnd { box-shadow: 3px 3px 0 var(--violet); }

/* ---------- motion: panels rise once, sfx pop once (html.js:not(.rm) only; under .rm all final) ---------- */
html.js:not(.rm) main .sec .panel { opacity: 0; transform: translateY(16px); transition: opacity .4s ease, transform .4s ease; transition-delay: calc(var(--i, 0) * 80ms); }
html.js:not(.rm) main .sec .panel.in { opacity: 1; transform: none; }
html.js:not(.rm) main .sec .sfx { opacity: 0; transform: rotate(-6deg) scale(.4); transition: opacity .3s ease, transform .5s cubic-bezier(.2, 1.6, .4, 1); }
html.js:not(.rm) main .sec .sfx.in { opacity: 1; transform: rotate(-6deg) scale(1); }

/* ---------- header ---------- */
.hd { position: sticky; top: 0; z-index: 50; height: var(--nav); background-color: var(--paper); border-bottom: 4px solid var(--ink); }
.hd-in { display: flex; align-items: center; gap: 12px; height: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--m); }
.hd-brand { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: none; flex: none; }
.hd-brand img { width: 44px; height: 44px; border: 3px solid var(--ink); border-radius: 50%; background-color: var(--night); }
.hd-brand b { font-family: var(--title); font-weight: 400; font-size: 20px; letter-spacing: .01em; line-height: 1; }
.hd-one { min-width: 38px; padding: 8px; font-size: 13px; }
.hd-nav { display: none; align-items: center; gap: 2px; margin-left: 8px; }
.hd-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--ink); font-size: 15px; text-decoration: none; border-bottom: 3px solid transparent; }
.hd-nav a:hover, .hd-nav a.here { border-bottom-color: var(--violet); }
.hd-r { display: flex; align-items: center; gap: 10px; margin-left: auto; }
@media (min-width: 1200px) { .hd-nav { display: flex; } .menu-btn { display: none; } }
@media (max-width: 559px) { .hd-brand b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
@media (max-width: 359px) { .hd-one { display: none; } }

/* ---------- menu drawer ---------- */
.hd-scrim { position: fixed; inset: 0; z-index: 75; background-color: rgba(20, 16, 31, .55); }
.hd-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: min(360px, 88vw); overflow-y: auto; padding: 14px 18px 24px; background-color: var(--paper); color: var(--ink); border-left: 4px solid var(--ink); }
.hd-dhd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.hd-dhd p { font-family: var(--title); font-size: 22px; }
.hd-drawer nav a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 4px; border-bottom: 2px solid var(--paper-2); color: var(--ink); font-size: 20px; text-decoration: none; }
.hd-drawer nav b { font-family: var(--title); font-weight: 400; font-size: 14px; color: var(--violet); min-width: 22px; }
.hd-dft { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.hd-dft .pill.buy { flex: 1 1 100%; }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 90; left: 50%; bottom: 24px; max-width: calc(100% - 32px); padding: 12px 18px; border: 3px solid var(--ink); border-radius: 14px; background-color: var(--caption); color: var(--ink);
  font-size: 16px; line-height: 1.35; box-shadow: 4px 4px 0 var(--ink); transform: translate(-50%, 140%); opacity: 0; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
html.js:not(.rm) .toast { transition: transform .3s ease, opacity .3s ease; }

/* ---------- footer frame (structure only; Part B styles its contents with ft-) ---------- */
.foot { border-top: 4px solid var(--ink); background-color: var(--paper); color: var(--ink); }

/* ---------- 404 ---------- */
.e404 { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 18px; padding: 48px var(--m); text-align: center; background-color: var(--paper); color: var(--ink); }
.e404 h1 { font-family: var(--title); font-weight: 400; font-size: var(--h1); line-height: 1; }
.e404 p { font-size: 20px; }

/* ==== 10-hero.css ==== */
/* #top — THE COVER of "NINJA PUFF #1": masthead across the top, cover lines left, the cat bursting out of a puff right. */
.tp { padding: 14px 0 48px; }
.tp-cover { display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); grid-template-rows: auto auto; gap: 14px 26px; padding: 14px 20px 20px;
  border: 6px solid var(--ink); border-radius: 8px; background-color: var(--paper); box-shadow: 8px 8px 0 var(--ink); }

/* masthead */
.tp-mast { grid-column: 1 / -1; display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 18px; padding-bottom: 10px; border-bottom: 4px solid var(--ink); }
.tp-h1 { font-family: var(--title); font-weight: 400; font-size: var(--h1); line-height: .92; letter-spacing: .005em; color: var(--ink); text-shadow: 5px 5px 0 var(--glow); white-space: nowrap; }
.tp-no { min-width: 96px; font-size: 32px; transform: rotate(8deg); }
.tp-issl { justify-self: end; font-size: 15px; letter-spacing: .14em; color: var(--ink-2); text-align: right; }

/* the art panel */
.tp-art { grid-column: 2; grid-row: 2; height: clamp(440px, calc(100vh - 300px), 720px); border-width: 4px; }
.tp-rays { z-index: 0; }
.tp-pf { position: absolute; z-index: 1; aspect-ratio: 1; border: 4px solid var(--ink); border-radius: 50%; background-color: var(--puff); }
.tp-pf1 { left: -9%; bottom: -14%; width: 40%; }
.tp-pf2 { right: -10%; bottom: -12%; width: 36%; }
.tp-pf3 { left: 30%; bottom: -24%; width: 44%; }
.tp-art > .tp-cut { position: absolute; z-index: 2; left: 50%; bottom: -3%; width: auto; height: 106%; max-width: none; object-fit: contain; transform: translateX(-50%); }
.tp-poof { position: absolute; z-index: 3; left: 18px; top: 18px; font-size: min(clamp(40px, 5vw, 78px), calc(var(--h1) * .6)); }
.tp-kick { position: absolute; z-index: 3; left: 16px; bottom: 16px; max-width: calc(100% - 32px); transform: rotate(-2deg); }

/* cover lines */
.tp-col { grid-column: 1; grid-row: 2; align-self: center; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.tp-beats { font-family: var(--title); font-weight: 400; font-size: min(clamp(32px, 4.4vw, 66px), calc(var(--h1) * .55)); line-height: 1.02; }
.tp-b1 { display: block; color: var(--ink); }
.tp-b2 { display: block; color: var(--violet); }
.tp-sub { max-width: 30em; }
.tp-bub { margin-top: 10px; }
.tp-bub::before { left: auto; right: 54px; clip-path: polygon(92% 0, 100% 100%, 0 100%); }
.tp-bub::after { left: auto; right: 58.5px; clip-path: polygon(94% 0, 100% 100%, 0 100%); }
.tp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.tp-fine { margin-top: -2px; }

/* motion (html.js:not(.rm) only; paused off screen and in a hidden tab via .still) */
@keyframes tp-breath { from { transform: scale(1); } to { transform: scale(1.04); } }
@keyframes tp-turn { from { transform: rotate(0deg); } to { transform: rotate(8deg); } }
@keyframes tp-pop { from { opacity: 0; transform: rotate(-6deg) scale(.4); } to { opacity: 1; transform: rotate(-6deg) scale(1); } }
html.js:not(.rm) .tp-pf { animation: tp-breath 6s ease-in-out infinite alternate; }
html.js:not(.rm) .tp-pf2 { animation-delay: -2s; }
html.js:not(.rm) .tp-pf3 { animation-delay: -4s; }
html.js:not(.rm) .tp-rays { animation: tp-turn 20s linear infinite alternate; }
html.js:not(.rm) .tp-poof { animation: tp-pop .5s cubic-bezier(.2, 1.6, .4, 1) .25s both; }
.tp.still .tp-pf, .tp.still .tp-rays { animation-play-state: paused; }

/* phones */
@media (max-width: 699px) {
  .tp { padding: 8px 0 32px; }
  .tp-cover { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 8px 12px 14px; border-width: 4px; box-shadow: 5px 5px 0 var(--ink); }
  .tp-mast { position: relative; grid-template-columns: minmax(0, 1fr); gap: 2px; padding-bottom: 6px; border-bottom-width: 3px; }
  .tp-h1 { text-shadow: 3px 3px 0 var(--glow); }
  .tp-no { position: absolute; z-index: 5; right: -10px; top: calc(100% + 2px); min-width: 58px; padding: 10px; font-size: 19px; }
  .tp-issl { justify-self: start; font-size: 12px; text-align: left; }
  .tp-art { grid-column: 1; grid-row: auto; height: 300px; }
  .tp-art > .tp-cut { top: -3%; bottom: auto; height: 136%; }
  .tp-poof { left: 10px; top: 10px; font-size: 36px; }
  .tp-kick { left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 6px 10px; font-size: 15px; }
  .tp-col { grid-column: 1; grid-row: auto; align-items: stretch; gap: 10px; }
  .tp-beats { font-size: calc(var(--h1) * .61); }
  .tp-sub { order: 5; font-size: 17px; }
  .tp-fine { order: 6; margin-top: 0; }
  .tp-bub { margin-top: 14px; max-width: none; padding: 8px 10px 10px 16px; gap: 2px 10px; }
  .tp-bub::before { right: auto; left: 40px; clip-path: polygon(8% 0, 100% 100%, 0 100%); }
  .tp-bub::after { right: auto; left: 44.5px; clip-path: polygon(6% 0, 100% 100%, 0 100%); }
  .tp-row { gap: 10px; }
  .tp-row .tp-buy { flex: 1 1 100%; }
  .tp-row .tp-chart { flex: 1 1 auto; }
}
/* short phones: smaller art, kicker waits for page 1, Buy + Chart + X on one row */
@media (max-width: 699px) and (max-height: 740px) {
  .tp-art { height: 200px; }
  .tp-art > .tp-cut { top: -4%; height: 150%; }
  .tp-kick { display: none; }
  .tp-row { flex-wrap: nowrap; }
  .tp-row .tp-buy { flex: 1 1 auto; min-width: 0; padding: 0 12px; gap: 8px; font-size: 17px; }
  .tp-row .tp-chart { flex: none; width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; box-shadow: 3px 3px 0 var(--ink); }
  .tp-row .tp-cl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tp-row .tp-x { width: 44px; height: 44px; box-shadow: 3px 3px 0 var(--ink); }
}

/* fixer: on desktop the cat is to the RIGHT of the bubble, so the tail points right at him */
@media (min-width: 700px) {
  .tp-bub::before { top: 34px; bottom: auto; left: auto; right: -40px; width: 40px; height: 30px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
  .tp-bub::after { top: 38.5px; bottom: auto; left: auto; right: -29px; width: 30px; height: 21px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
}

/* integrator: keep the cut-out inside the screen on tablets and phones */
@media (max-width: 899px) { .tp-art > .tp-cut { max-width: 100%; } }

/* ==== s01-02.css ==== */
/* Part A: #p1 The cat, #p2 The trick, #p3 The address (prefixes p1- p2- p3-) */

/* #p1 */
.p1-head, .p3-head { margin-bottom: 36px; }
@media (min-width: 700px) { .p1-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.p1-moon { aspect-ratio: 1; }
.p1-col { isolation: isolate; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; padding: 30px 26px 34px; }
.p1-rays { z-index: -1; }
.p1-c2 { margin-left: 8%; }
.p1-say { position: absolute; z-index: 1; top: 7%; left: 5%; max-width: 60%; font-size: 17px; padding: 10px 16px; }
.p1-poof { align-self: center; margin: 14px 0 10px; font-size: min(clamp(48px, 6vw, 92px), calc(var(--h1) * .8)); }
.p1-kick { align-self: flex-end; }
@media (max-width: 699px) {
  .p1-col { gap: 18px; padding: 22px 18px 24px; }
  .p1-c2 { margin-left: 0; }
  .p1-say { top: 5%; left: 4%; font-size: 15px; padding: 8px 12px; }
}

/* #p2 */
.p2-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 36px; }
.p2-whoosh { margin: 0 10px 8px 0; }
.p2-poof { position: absolute; z-index: 2; right: 14px; top: 12px; }
.p2-cap { margin: 12px; }
.p2-roofs > img, .p2-pop > img { height: auto; aspect-ratio: 3 / 2; }
.p2-tall { isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 26px 20px 28px; }
.p2-rays { z-index: -1; }
.p2-tall > .p2-logo { width: 100%; max-width: 420px; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 40%; border: 4px solid var(--puff); border-radius: 50%; box-shadow: 6px 6px 0 var(--violet); }
@media (min-width: 700px) {
  .p2-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .p2-roofs, .p2-pop { aspect-ratio: 3 / 2; }
  .p2-tall { grid-column: 2; grid-row: 1 / span 2; }
  .p2-cap { position: absolute; z-index: 2; left: 14px; top: 14px; max-width: min(62%, 360px); margin: 0; }
  .p2-poof { top: auto; right: 22px; bottom: 18px; }
}

/* #p3 */
.p3-steps { list-style: none; margin: 0; padding: 0; }
@media (min-width: 1000px) { .p3-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 700px) and (max-width: 999px) { .p3-step:last-child { grid-column: 1 / -1; } }
.p3-step { isolation: isolate; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 16px; padding: 22px 22px 26px; }
.p3-step::before { content: ""; position: absolute; z-index: -1; right: 0; bottom: 0; width: 150px; height: 150px; pointer-events: none;
  background-image: radial-gradient(circle, var(--dot) 2.2px, transparent 2.6px); background-size: 12px 12px;
  -webkit-mask-image: radial-gradient(circle at 100% 100%, #000 60%, transparent 60.5%); mask-image: radial-gradient(circle at 100% 100%, #000 60%, transparent 60.5%); }
.p3-num { grid-row: 1 / span 2; min-width: 70px; font-size: 26px; }
.p3-step h3 { grid-column: 2; }
.p3-txt { grid-column: 2; font-size: 18px; line-height: 1.45; color: var(--ink-2); }
.p3-act { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; margin-top: 54px; }
.p3-cat { flex: none; width: 140px; height: 140px; object-fit: cover; object-position: 50% 35%; border: 4px solid var(--ink); border-radius: 50%; background-color: var(--night); box-shadow: 4px 4px 0 var(--ink); }
.p3-act .p3-bub { flex: 1 1 360px; }
@media (min-width: 700px) {
  .p3-act { flex-wrap: nowrap; }
  .p3-act .p3-bub::before { top: 34px; left: -30px; width: 30px; height: 30px; clip-path: polygon(100% 0, 0 50%, 100% 100%); }
  .p3-act .p3-bub::after { top: 38.5px; left: -21px; width: 23px; height: 21px; clip-path: polygon(100% 0, 0 50%, 100% 100%); }
}
@media (min-width: 700px) and (max-width: 1099px) { .p3-act { flex-wrap: wrap; } .p3-row { flex: 1 1 100%; } }
.p3-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.p3-fine { margin-top: 24px; }
@media (max-width: 699px) {
  .p3-step { padding: 18px 16px 20px; }
  .p3-num { min-width: 60px; font-size: 22px; }
}

/* ==== s03-04.css ==== */
/* Part B: #p4 Tea time, #p5 Puff class, #p6 Back cover, #kit, footer contents (prefixes p4- p5- p6- kt- ft-) */

/* ---------- shared page heads (own classes) ---------- */
.p4-head, .p5-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.p4-head h2, .p5-head h2 { margin: 0; }
.p4-sfx, .p5-sfx { flex: none; margin: 0 8px 6px 0; }

/* ---------- #p4 Tea time ---------- */
.p4-pan { margin: 0; }
.p4-say { position: absolute; z-index: 1; top: 16px; right: 16px; max-width: calc(100% - 32px); }
.p4-cap { position: absolute; z-index: 1; top: 16px; left: 16px; max-width: calc(100% - 32px); }

/* ---------- #p5 Puff class ---------- */
.p5-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .p5-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.p5-wide { margin: 0; }
.p5-say { position: absolute; z-index: 1; top: 16px; right: 16px; max-width: calc(100% - 32px); }
.p5-steps { display: grid; gap: 14px; grid-template-rows: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.p5-step { display: flex; align-items: center; min-height: 88px; padding: 18px; }
.p5-cap { position: relative; z-index: 1; font-size: 19px; }
.p5-step .rays { opacity: .45; }
.p5-poof { position: relative; z-index: 1; margin-left: 14px; font-size: clamp(44px, 5vw, 68px); }
@media (max-width: 699px) {
  .p5-say { top: 10px; right: 10px; padding: 8px 14px; font-size: 15px; }
  .p5-step { min-height: 72px; padding: 14px; }
}

/* ---------- #p6 Back cover (full bleed banner, text block on the art) ---------- */
.p6 { position: relative; display: grid; overflow: hidden; }
.p6-art, .p6-wrap { grid-area: 1 / 1; }
/* fixer: the banner's swirl moon reads as the parent's mark, so the back cover shows a zoomed crop (cat + puff + roofs) as a background; the img stays for alt text / QA but is hidden */
.p6-art { display: none; }
.p6::before { content: ""; position: relative; inset: auto; z-index: 0; width: auto; height: auto; -webkit-mask-image: none; mask-image: none; grid-area: 1 / 1; min-height: 680px; background: var(--night) url(/img/banner-1536.webp) 62% 100% / max(100%, 1760px) auto no-repeat; }
.p6-wrap { z-index: 1; align-self: center; padding-top: 64px; padding-bottom: 64px; }
.p6-box { max-width: 580px; padding: 28px 28px 30px; border: 4px solid var(--puff); border-radius: 6px; background-color: var(--night); box-shadow: 8px 8px 0 var(--violet); }
.p6-box h2 { margin: 0; }
.p6-line { margin-top: 12px; }
.p6-ca { margin-top: 36px; }
.p6-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
@media (max-width: 699px) {
  .p6 { display: block; }
  /* phone: the banner is drawn as a cropped background (zoomed to the cat + puff, swirl moon cut off) so nothing pokes out of the screen */
  .p6-art { display: none; }
  .p6::before { content: ""; display: block; min-height: 0; aspect-ratio: 4 / 3; background: var(--night) url(/img/banner-1024.webp) 75% 100% / 195% auto no-repeat; }
  .p6-wrap { position: relative; }
  .p6-wrap { margin-top: -36px; padding-top: 0; padding-bottom: 64px; }
  .p6-box { padding: 20px 16px 22px; box-shadow: 5px 5px 0 var(--violet); }
}

/* ---------- #kit Take a puff home ---------- */
.kt h2 { margin: 0; }
.kt-grid { margin-top: 28px; }
.kt-pan { display: flex; flex-direction: column; }
.kt-pic { position: relative; overflow: hidden; border-bottom: 4px solid var(--ink); background-color: var(--paper-2); }
.kt-pic img { display: block; width: 100%; height: auto; }
.kt-logo { display: grid; place-items: center; aspect-ratio: 16 / 9; }
.kt-logo img { position: relative; z-index: 1; width: min(46%, 240px); border: 4px solid var(--ink); border-radius: 50%; }
.kt-body { display: grid; justify-items: start; gap: 14px; padding: 20px; }
.kt-txt { font-size: 18px; line-height: 1.45; }
.kt-row { display: flex; flex-wrap: wrap; gap: 14px; }
.kt-share { margin-top: 28px; }

/* ---------- footer contents ---------- */
.ft-in { display: grid; gap: 22px; padding-top: 40px; padding-bottom: 48px; }
.ft-brand { display: flex; align-items: center; gap: 14px; }
.ft-logo { width: 48px; height: 48px; border: 3px solid var(--ink); border-radius: 50%; }
.ft-name { font-family: var(--title); font-size: 22px; line-height: 1.2; }
.ft-marks { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ft-fine { display: grid; gap: 4px; color: var(--ink-2); }
.ft-top { justify-self: start; }

