/* ==== 00-base.css ==== */
/* BAG O' LANTERN — base: tokens, grounds, type, the night-stand kit (print, sticker, price tag, crate end, chalkboard,
   A-frame, rosette, honesty box), pills, header, menu drawer, toast. Archetype V: THE NIGHT STAND. */
:root {
  --night: #0c181b; --night-2: #14262a; --dusk: #1b3340; --slate: #1f2724; --slate-2: #2c3632; --chalk: #ece6d8; --chalk-2: #b4ae9f;
  --kraft: #c38c53; --kraft-hi: #dcae76; --kraft-lo: #8b5d32; --ink: #1c130c; --ink-2: #3a281a; --crate: #5b3d26; --crate-hi: #7d5634;
  --fur: #f7f2e9; --glow: #f2621a; --glow-hi: #f7843c; --straw: #e3c27b; --candle: #ffbe63; --pk: #c8571c; --pk-lo: #8e3a12; --stem: #55703d;
  --rib-blue: #2d5aa8; --rib-red: #b33a2e; --rib-gold: #d6a93a;
  --serif: 'Aleo', Georgia, 'Times New Roman', serif;
  --sans: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sten: 'Stardos Stencil', 'Arial Black', system-ui, sans-serif;
  --hand: 'Schoolbell', 'Comic Sans MS', cursive;
  --m: 56px; --nav: 76px; --h1: clamp(40px, 5.6vw, 92px);
  --ring: #ffd7a0; --em: var(--straw);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --cast: -10px 16px 28px rgba(0, 0, 0, .42);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav) + 12px); }
html:not(.rm) { scroll-behavior: smooth; }
body { margin: 0; background-color: var(--night); color: var(--chalk); font: 400 18px/1.55 var(--sans); overflow-x: clip; }
body.lock { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, h1, h2, h3, h4, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 8px; background-color: var(--chalk); color: var(--ink); }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* layout */
.wrap { max-width: 1340px; margin: 0 auto; padding: 0 var(--m); box-sizing: content-box; }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.sec { position: relative; padding: 112px 0; overflow-x: clip; }

/* grounds */
.gd-night, .gd-dusk, .gd-slate, .gd-crate, .gd-photo, .gd-dark { --em: var(--straw); --ring: #ffd7a0; color: var(--chalk); }
.gd-night { background-color: var(--night); background-image: radial-gradient(ellipse 50% 40% at 50% 0, rgba(255, 190, 99, .06), rgba(255, 190, 99, 0) 70%), url(/img/grain.webp); }
.gd-dusk { background-color: var(--night); background-image: linear-gradient(180deg, var(--dusk), var(--night) 70%), url(/img/grain.webp); background-blend-mode: normal; }
.gd-slate { background-color: var(--slate); background-image: radial-gradient(ellipse 60% 50% at 30% 20%, rgba(236, 230, 216, .05), rgba(236, 230, 216, 0) 70%), url(/img/grain.webp); }
.gd-crate { background-color: var(--crate);
  background-image: url(/img/grain.webp), repeating-linear-gradient(180deg, rgba(0, 0, 0, 0) 0 118px, rgba(0, 0, 0, .28) 118px 121px, rgba(255, 255, 255, .05) 121px 122px),
  linear-gradient(180deg, var(--crate-hi), var(--crate) 40%); }
.gd-kraft { --em: var(--kraft-lo); --ring: var(--ink); color: var(--ink); background-color: var(--kraft);
  background-image: url(/img/grain.webp), linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(0, 0, 0, .08)); }
.gd-photo { position: relative; background-color: var(--night); }
.gd-dark { background-color: var(--night-2); background-image: url(/img/grain.webp); }

/* type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; text-wrap: balance; color: inherit; }
h2 { font-size: min(clamp(32px, 3.6vw, 56px), calc(var(--h1) * .7)); line-height: 1.06; }
h2 em, h3 em { font-style: italic; font-weight: 500; color: var(--em); }
h3 { font-size: min(clamp(22px, 2vw, 30px), calc(var(--h1) * .45)); line-height: 1.15; }
.lbl { font: 600 12px/1.35 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.lead { font-size: 19px; line-height: 1.55; text-wrap: pretty; }
.fine { font-size: 14px; line-height: 1.5; color: var(--chalk-2); }
.gd-kraft .fine { color: var(--ink-2); }
.hand { font-family: var(--hand); font-weight: 400; line-height: 1.15; }

/* the night-stand kit */
.print { position: relative; display: block; padding: 12px; background-color: var(--fur); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), var(--cast); }
.print img { width: 100%; height: auto; }
.sticker { display: inline-grid; place-items: center; padding: 12px 22px; border-radius: 50%; background-color: var(--fur); color: var(--ink); text-align: center;
  font: 700 13px/1.25 var(--sten); letter-spacing: .08em; text-transform: uppercase; box-shadow: inset 0 0 0 2px var(--glow), inset 0 0 0 4px var(--fur), inset 0 0 0 5px rgba(28, 19, 12, .5), 0 6px 14px rgba(0, 0, 0, .35); }
.tagk { position: relative; display: inline-grid; gap: 4px; max-width: 26ch; padding: 12px 16px 12px 26px; background-color: var(--kraft); background-image: url(/img/grain.webp);
  color: var(--ink); font: 500 15px/1.35 var(--sans); clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); box-shadow: var(--cast); }
.tagk b { font: 700 13px/1.2 var(--sten); letter-spacing: .1em; text-transform: uppercase; }
.tagk::after { content: ''; position: absolute; left: 11px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background-color: var(--ink); }
.crate-end { display: block; padding: 14px 22px; background-color: var(--crate); background-image: url(/img/grain.webp), linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(0, 0, 0, .18));
  color: var(--kraft-hi); font: 700 15px/1.2 var(--sten); letter-spacing: .14em; text-transform: uppercase; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25), 0 10px 22px rgba(0, 0, 0, .35); }
.chalkboard { position: relative; padding: 32px; background-color: var(--slate); background-image: url(/img/grain.webp), radial-gradient(ellipse 70% 60% at 40% 30%, rgba(236, 230, 216, .06), rgba(236, 230, 216, 0) 70%);
  color: var(--chalk); box-shadow: inset 0 0 0 10px var(--crate), inset 0 0 0 12px rgba(0, 0, 0, .35), var(--cast); }
.aframe { position: relative; display: grid; gap: 18px; }
.aframe-top, .aframe-bot { position: relative; padding: 30px 32px; background-color: var(--slate); background-image: url(/img/grain.webp);
  box-shadow: inset 0 0 0 10px var(--crate), inset 0 0 0 12px rgba(0, 0, 0, .35), var(--cast); }
.rosette { position: relative; display: inline-grid; place-items: center; width: 86px; height: 86px; border-radius: 50%; color: var(--fur); text-align: center;
  font: 700 11px/1.15 var(--sten); letter-spacing: .06em; text-transform: uppercase; background: repeating-conic-gradient(var(--rc) 0 8deg, var(--rc2) 8deg 16deg);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .4); --rc: var(--rib-blue); --rc2: #3d6cbd; }
.rosette > span { display: grid; place-items: center; width: 60px; height: 60px; padding: 6px; border-radius: 50%; background-color: var(--rc); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.rosette::before, .rosette::after { content: ''; position: absolute; z-index: -1; top: 70%; width: 22px; height: 54px; background-color: var(--rc); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }
.rosette::before { left: 22px; transform: rotate(14deg); } .rosette::after { right: 22px; transform: rotate(-14deg); }
.rosette.red { --rc: var(--rib-red); --rc2: #c94d40; } .rosette.gold { --rc: var(--rib-gold); --rc2: #e3ba51; color: var(--ink); }
.rosette.straw { --rc: var(--straw); --rc2: #ecd093; color: var(--ink); }
.rosette { isolation: isolate; }

/* the honesty box (CA) */
.hb { position: relative; display: grid; gap: 8px; padding: 22px 20px 16px; border-radius: 6px; background-color: var(--kraft); background-image: url(/img/grain.webp), linear-gradient(180deg, var(--kraft-hi), var(--kraft) 30%);
  color: var(--ink); --ring: var(--ink); box-shadow: inset 0 -6px 0 var(--crate), inset 0 0 0 2px rgba(28, 19, 12, .25), 0 14px 28px rgba(0, 0, 0, .45); }
.hb::before { content: ''; position: absolute; left: 50%; top: 9px; width: 64px; height: 6px; margin-left: -32px; border-radius: 3px; background-color: var(--ink); box-shadow: inset 0 2px 2px rgba(0, 0, 0, .6); }
.hb-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hb-l { color: var(--ink-2); }
.hb .ca { font: 500 17px/1.3 var(--sans); font-variant-numeric: tabular-nums lining-nums; color: var(--ink); word-break: normal; overflow-wrap: anywhere; }
.hb .pre { font: italic 500 20px/1.25 var(--serif); color: var(--ink); }
.hb .hb-soon { display: inline-flex; align-items: center; gap: 8px; font: 600 11.5px/1 var(--sans); letter-spacing: .16em; color: var(--ink-2); }
.hb.ok { box-shadow: inset 0 -6px 0 var(--crate), inset 0 0 0 2px var(--stem), 0 14px 28px rgba(0, 0, 0, .45); }
.hb.sm { padding: 18px 16px 14px; }
.hb.sm .ca { font-size: 15px; }

/* pills */
.pill { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 26px; border-radius: 999px;
  font: 600 17px/1 var(--sans); text-decoration: none; white-space: nowrap; color: var(--ink); }
.pill.sm { height: 44px; padding: 0 18px; font-size: 15px; gap: 8px; }
.pill.buy { background-color: var(--glow); background-image: linear-gradient(180deg, var(--glow-hi), var(--glow) 70%); color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 1px rgba(0, 0, 0, .15), 0 10px 26px rgba(242, 98, 26, .35); }
.pill.buy:hover { background-image: linear-gradient(180deg, #fa9a5a, var(--glow-hi) 75%); }
.pill.chalk { background-color: var(--chalk); color: var(--ink); }
.pill.chalk:hover { background-color: #fff8ea; }
.pill.night { color: var(--chalk); box-shadow: inset 0 0 0 1.5px rgba(236, 230, 216, .65); }
.pill.night:hover { background-color: rgba(236, 230, 216, .1); }
.gd-kraft .pill.night { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.pill .mk { flex: none; width: 20px; height: 20px; }
.pill.buy .mk { box-sizing: content-box; padding: 3px; border-radius: 50%; background-color: #fff; }
.mk.inv { filter: invert(1); }
.pill .ic { width: 20px; height: 20px; }
html.js:not(.rm) .pill { transition: transform .18s var(--ease), background-color .18s; }
html.js:not(.rm) .pill:hover { transform: translateY(-1px); }
html.js:not(.rm) .pill:active { transform: scale(.97); }
.rnd { position: relative; width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; color: var(--chalk);
  box-shadow: inset 0 0 0 1.5px rgba(236, 230, 216, .6); text-decoration: none; }
.rnd.lg { width: 56px; height: 56px; }
.rnd:hover { background-color: rgba(236, 230, 216, .1); }
.rnd img { width: 18px; height: 18px; }
.rnd .ic { width: 20px; height: 20px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* header */
.top { position: sticky; top: 0; z-index: 50; height: var(--nav); display: flex; align-items: center; gap: 20px; padding: 0 var(--m); background-color: rgba(12, 24, 27, .94);
  box-shadow: 0 1px 0 rgba(236, 230, 216, .1); color: var(--chalk); --ring: #ffd7a0; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px var(--kraft); }
.brand b { font: 600 21px/1 var(--serif); white-space: nowrap; }
.nav { display: flex; gap: 24px; margin: 0 auto; }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; font: 500 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; color: var(--chalk-2); white-space: nowrap; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background-color: var(--straw); transform: scaleX(0); transform-origin: left; }
html.js:not(.rm) .nav a::after { transition: transform .25s var(--ease); }
.nav a:hover, .nav a.here { color: var(--chalk); }
.nav a.here::after { transform: scaleX(1); }
.nav-r { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.nav + .nav-r { margin-left: 0; }
.motion { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 999px; font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--chalk); box-shadow: inset 0 0 0 1.5px rgba(236, 230, 216, .45); white-space: nowrap; }
.motion .dot { width: 8px; height: 8px; border-radius: 50%; background-color: var(--candle); box-shadow: 0 0 8px var(--candle); }
html.rm .motion .dot { background-color: transparent; box-shadow: inset 0 0 0 1.5px var(--chalk-2); }
.hd-buy { display: none; }
.top.past .hd-buy:not([hidden]) { display: inline-flex; }
.menu-btn { display: none; }

/* menu drawer */
.sheet-bg { position: fixed; inset: 0; z-index: 59; background-color: rgba(5, 10, 12, .6); }
.drawer { position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; width: min(400px, calc(100% - 36px)); overflow: hidden auto; padding: 18px 20px 28px;
  background-color: var(--slate); background-image: url(/img/grain.webp); color: var(--chalk); box-shadow: -20px 0 60px rgba(0, 0, 0, .5); --ring: #ffd7a0; }
.sheet-hd { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--crate); }
.sheet-hd .lbl { color: var(--straw); }
.sheet-x { margin-left: auto; }
.drawer nav { display: grid; margin-top: 6px; }
.drawer nav a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; border-bottom: 1px dashed rgba(236, 230, 216, .25);
  font: 600 20px/1.2 var(--serif); text-decoration: none; }
.drawer nav a .ic { width: 18px; height: 18px; color: var(--glow-hi); }
.sheet-r { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
html.js:not(.rm) .drawer:not([hidden]) { animation: drawer-in .3s var(--ease) 1; }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }

/* toast */
.toast { position: fixed; z-index: 70; left: 50%; bottom: 24px; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 10px; background-color: var(--chalk); color: var(--ink);
  font: 500 16px/1.4 var(--sans); box-shadow: 0 12px 30px rgba(0, 0, 0, .45); transform: translate(-50%, 160%); opacity: 0; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
html.js:not(.rm) .toast { transition: transform .3s var(--ease), opacity .3s; }

/* 404 */
.e404 { min-height: 100svh; display: grid; align-content: center; justify-items: start; gap: 18px; max-width: 900px; margin: 0 auto; padding: 40px var(--m); }
.e404 img { width: 120px; height: 120px; border-radius: 50%; box-shadow: 0 0 0 3px var(--kraft); }
.e404 h1 { font: 600 clamp(36px, 5vw, 64px)/1.04 var(--serif); }
.e404 h1 em { display: block; font-style: italic; font-weight: 500; color: var(--glow-hi); }

@media (max-width: 1279px) { :root { --m: 40px; } .nav { gap: 18px; } }
@media (min-width: 700px) { .top .motion { box-shadow: none; padding: 0 8px; color: var(--chalk-2); } }
@media (max-width: 1199px) {
  .nav, .top .rnd:not(.menu-btn) { display: none; }
  .top .menu-btn { display: inline-grid; }
  .nav + .nav-r { margin-left: auto; }
}
@media (max-width: 999px) { :root { --m: 28px; } }
@media (max-width: 699px) {
  :root { --m: 16px; --nav: 60px; }
  body { font-size: 17px; }
  .g12 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .g12 > * { grid-column: 1 / -1 !important; }
  .sec { padding: 72px 0; }
  .top { gap: 8px; }
  .brand b { font-size: 17px; }
  .lead { font-size: 17px; }
  .top .motion { display: none; }
  .hb .ca { font-size: 15px; }
  .chalkboard, .aframe-top, .aframe-bot { padding: 24px 20px; }
}
@media (max-width: 359px) { .brand b { display: none; } }
html:not(.js) .menu-btn, html:not(.js) [data-motion] { display: none !important; }
@media (max-width: 1199px) { html:not(.js) .nav { display: flex; flex: 1 1 auto; min-width: 0; overflow-x: auto; } }

/* ==== 10-hero.css ==== */
/* HERO #top — a cover: the glowing bag face on the right (bleeds off the edge, fades into the night), the stand's
   eyebrow + H1 + sub + the honesty box + ONE Buy on the left, a chalk strip along the bottom. */
.hero { position: relative; min-height: calc(100svh - var(--nav)); display: grid; align-content: center; overflow: clip; isolation: isolate; padding: 40px 0 92px; }
.tp-face { position: absolute; z-index: -1; right: 0; top: 0; bottom: 0; width: 56vw; max-width: 1000px;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 30%), linear-gradient(0deg, transparent 0, #000 26%); -webkit-mask-composite: source-in;
  mask: linear-gradient(90deg, transparent 0, #000 30%) intersect, linear-gradient(0deg, transparent 0, #000 26%); }
.tp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; max-width: none; }
.tp-glow { position: absolute; left: 50%; top: 80%; width: 70%; height: 46%; margin-left: -35%; border-radius: 50%; pointer-events: none; mix-blend-mode: screen; opacity: .85;
  background: radial-gradient(ellipse, rgba(242, 98, 26, .45), rgba(242, 98, 26, 0) 70%); }
.tp-leaves { position: absolute; inset: 0; pointer-events: none; }
.tp-leaves .ic { position: absolute; top: -40px; width: 22px; height: 22px; color: var(--glow-hi); opacity: 0; stroke-width: 1.4; }
.tp-leaves .ic:nth-child(1) { left: 30%; --t: 13s; --dl: -2s; } .tp-leaves .ic:nth-child(2) { left: 62%; --t: 16s; --dl: -9s; color: var(--straw); } .tp-leaves .ic:nth-child(3) { left: 84%; --t: 11s; --dl: -5s; }
.tp-tagw { position: absolute; z-index: 2; right: 5%; top: 0; padding-top: 74px; transform-origin: 30px 0; }
.tp-tagw::before { content: ''; position: absolute; left: 22px; top: 0; height: 80px; width: 2px; background-color: rgba(236, 230, 216, .55); }
.tp-tag { max-width: 22ch; font-size: 14px; }
.tp-tag .hand { font-size: 21px; line-height: 1.1; }

.tp-wrap { position: relative; z-index: 2; width: 100%; box-sizing: border-box; max-width: calc(1340px + 2 * var(--m)); }
.tp-col { width: min(640px, 50vw); }
.tp-eyebrow { color: var(--straw); }
.hero h1 { margin-top: 16px; font: 600 var(--h1)/1.0 var(--serif); letter-spacing: -.015em; color: var(--chalk); text-wrap: balance; }
.hero h1 em { display: block; font-style: italic; font-weight: 600; color: var(--glow); }
.tp-sub { margin-top: 18px; max-width: 36ch; font-size: 19px; line-height: 1.5; color: var(--chalk-2); text-wrap: pretty; }
.tp-hb { margin-top: 24px; max-width: 560px; }
.tp-coin { position: absolute; left: 50%; top: -14px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(circle at 35% 35%, #f6dc8a 0 20%, var(--rib-gold) 55%, #9c7a22 100%); box-shadow: 0 2px 4px rgba(0, 0, 0, .4); }
.tp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.tp-play { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font: 500 16px/1 var(--sans); color: var(--chalk); text-underline-offset: 5px; }
.tp-strip { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 30px; padding: 14px var(--m);
  background-color: var(--slate); background-image: url(/img/grain.webp); color: var(--chalk); box-shadow: inset 0 2px 0 var(--crate); }

/* motion (never under html.rm; .still pauses everything off screen / hidden tab) */
html.js:not(.rm) .tp-glow { animation: tp-flicker 3.6s linear infinite; }
@keyframes tp-flicker { 0%, 100% { opacity: .85; } 12% { opacity: .7; } 19% { opacity: .95; } 33% { opacity: .78; } 47% { opacity: 1; } 61% { opacity: .74; } 78% { opacity: .92; } 88% { opacity: .8; } }
html.js:not(.rm) .tp-tagw { animation: tp-sway 5s ease-in-out infinite alternate; }
@keyframes tp-sway { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
html.js:not(.rm) .tp-leaves .ic { animation: tp-leaf var(--t) linear var(--dl) infinite; }
@keyframes tp-leaf { 0% { opacity: 0; transform: translate(0, 0) rotate(0); } 8% { opacity: .85; } 90% { opacity: .7; } 100% { opacity: 0; transform: translate(-90px, 108vh) rotate(320deg); } }
html.rm .tp-leaves { display: none; }
html.js:not(.rm) .hb.drop .tp-coin { animation: tp-coin 1.1s cubic-bezier(.5, 0, .9, .5) 1 both; }
@keyframes tp-coin { 0% { opacity: 1; transform: translateY(-30px); } 70% { opacity: 1; transform: translateY(10px); clip-path: inset(0 0 0 0); } 100% { opacity: 0; transform: translateY(24px); clip-path: inset(0 0 100% 0); } }
html.js:not(.rm) .tp-col > * { animation: tp-in .7s var(--ease) both; }
.tp-col > :nth-child(2) { animation-delay: .08s; } .tp-col > :nth-child(3) { animation-delay: .16s; } .tp-col > :nth-child(4), .tp-col > :nth-child(5) { animation-delay: .24s; } .tp-col > :nth-child(6) { animation-delay: .32s; }
@keyframes tp-in { from { opacity: 0; transform: translateY(14px); } }
.hero.still, .hero.still * { animation-play-state: paused !important; }

/* short laptops */
@media (min-width: 900px) and (max-height: 940px) { :root { --h1: min(5.2vw, 8.2vh); } .hero { padding: 20px 0 76px; } .tp-sub { margin-top: 10px; font-size: 17px; } .tp-hb { margin-top: 14px; } }
@media (max-width: 1100px) and (min-width: 700px) { .tp-col { width: min(560px, 58vw); } .tp-face { width: 60vw; } .tp-tagw { right: 2%; } }
/* portrait tablets: the same stacked layout as phones, sized up */
@media (min-width: 700px) and (max-width: 999px) and (orientation: portrait) {
  .hero { display: block; min-height: 0; padding: 0 0 92px; }
  .tp-face { position: relative; z-index: 0; width: 100%; max-width: none; height: min(58vw, 42svh); -webkit-mask: linear-gradient(0deg, transparent 0, #000 30%); mask: linear-gradient(0deg, transparent 0, #000 30%); }
  .tp-img { object-position: 50% 52%; }
  .tp-tagw { right: 4%; }
  .tp-wrap { margin-top: -56px; }
  .tp-col { width: min(620px, 100%); }
}

/* phones: the face strip on top, then the cover text */
@media (max-width: 699px) {
  :root { --h1: clamp(34px, 11vw, 46px); }
  .hero { display: block; min-height: 0; padding: 0 0 96px; }
  .tp-face { position: relative; z-index: 0; width: 100%; max-width: none; height: clamp(150px, calc(100svh - 490px), 300px); -webkit-mask: linear-gradient(0deg, transparent 0, #000 24%); mask: linear-gradient(0deg, transparent 0, #000 24%); }
  .tp-img { object-position: 50% 58%; }
  .tp-tagw { display: none; }
  .tp-wrap { margin-top: -36px; }
  .tp-col { width: auto; }
  .hero h1 { margin-top: 10px; }
  .tp-sub { font-size: 16px; margin-top: 10px; }
  .tp-hb { margin-top: 14px; }
  .tp-row { gap: 8px; margin-top: 12px; flex-wrap: nowrap; }
  .tp-row .pill { height: 52px; padding: 0 14px; gap: 8px; font-size: 16px; }
  .tp-row .tp-buy { flex: 1 1 auto; }
  .tp-row .rnd.lg { width: 52px; height: 52px; }
  .tp-strip { gap: 4px 16px; font-size: 12px; }
}
@media (max-width: 420px) and (max-height: 700px) {
  :root { --h1: 38px; }
  .tp-tagw { display: none; }
  .tp-wrap { margin-top: -20px; }
  .tp-sub { display: none; }
  .tp-eyebrow { font-size: 12px; }
}
@media (max-width: 419px) { .tp-row .rnd.lg { display: none; } }

/* ==== s01-02.css ==== */
/* Part A — #stand (crate-end header, the stand-night print + oval sticker) and #change (chalkboard, the kraft bag whose
   marker face draws on in 3 steps). Prefixes st- oc-. Motion only under html.js:not(.rm); entrances never replay (.settled). */

/* ---------- #stand ---------- */
/* h2 em on kraft: --kraft-lo is 1.9:1 on --kraft (too faint); --crate is 3.4:1 (large text) and still reads as wood */
#stand { --em: var(--crate); }
.st-crate { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; margin-bottom: 56px; transform: rotate(-.4deg);
  font-family: var(--sten); font-weight: 400; font-size: min(clamp(18px, 2.1vw, 30px), calc(var(--h1) * .36)); letter-spacing: .16em; line-height: 1.15; }
.st-crate-t { text-align: center; }
.st-nail { flex: none; width: 12px; height: 12px; border-radius: 50%; background-color: var(--chalk-2); background-image: radial-gradient(circle at 35% 35%, var(--fur), var(--chalk-2) 45%, var(--ink-2) 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.st-grid { align-items: center; row-gap: 0; }
.st-hd { grid-column: 8 / span 5; grid-row: 1; align-self: end; padding-bottom: 26px; }
.st-fig { grid-column: 1 / span 7; grid-row: 1 / span 2; margin-right: 18px; }
.st-body { grid-column: 8 / span 5; grid-row: 2; align-self: start; display: grid; gap: 18px; }
.st-body .lead { font-weight: 500; padding-top: 22px; border-top: 2px solid rgba(28, 19, 12, .28); }
.st-p { color: var(--ink-2); }
.st-print { transform: rotate(-1.5deg); }
.st-print img { aspect-ratio: 3 / 2; object-fit: cover; }
.st-sticker { position: absolute; z-index: 2; left: -26px; top: -34px; width: 196px; min-height: 124px; padding: 14px 18px; gap: 2px; transform: rotate(-9deg); }
.st-sticker span { display: block; }
.st-sticker b { display: block; font: 700 26px/1.05 var(--sten); letter-spacing: .06em; }
.st-cap { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding-left: 6px; font: italic 500 16px/1.4 var(--sans); color: var(--ink-2); }
.st-cap::before { content: ''; flex: none; width: 30px; height: 2px; background-color: var(--ink-2); }

html.js:not(.rm) .st-print { transition: transform 1s var(--ease), opacity .8s var(--ease); }
html.js:not(.rm) .st-sticker { transition: transform .5s cubic-bezier(.3, 1.5, .5, 1) .55s, opacity .25s linear .55s; }
html.js:not(.rm):not(.settled) .st-fig:not(.st-on) .st-print { transform: rotate(-4deg) translateY(28px); opacity: 0; }
html.js:not(.rm):not(.settled) .st-fig:not(.st-on) .st-sticker { transform: rotate(-24deg) scale(1.35); opacity: 0; }

/* ---------- #change ---------- */
.oc-board { padding: clamp(40px, 5vw, 76px); }
.oc-board::before { content: ''; position: absolute; inset: 12px; pointer-events: none;
  background-image: radial-gradient(ellipse 22% 12% at 18% 78%, rgba(236, 230, 216, .06), rgba(236, 230, 216, 0) 70%),
    radial-gradient(ellipse 30% 9% at 72% 14%, rgba(236, 230, 216, .05), rgba(236, 230, 216, 0) 70%),
    radial-gradient(ellipse 14% 20% at 88% 70%, rgba(236, 230, 216, .04), rgba(236, 230, 216, 0) 70%),
    linear-gradient(172deg, rgba(236, 230, 216, 0) 30%, rgba(236, 230, 216, .035) 31%, rgba(236, 230, 216, 0) 36%); }
.oc-hd, .oc-grid { position: relative; }
.oc-hd { grid-column: 7 / span 6; grid-row: 1; align-self: end; padding-bottom: 34px; }
.oc-eyebrow { color: var(--straw); margin-bottom: 14px; }
.oc-h2 { font-size: min(clamp(38px, 4.8vw, 72px), calc(var(--h1) * .8)); line-height: 1.02; }
.oc-line { width: min(620px, 92%); height: 22px; margin-top: 14px; overflow: visible; }
.oc-line path { fill: none; stroke: var(--chalk); stroke-linecap: round; }
.oc-line-a { stroke-width: 5; opacity: .82; }
.oc-line-b { stroke-width: 2; opacity: .38; }
.oc-grid { align-items: center; row-gap: 0; }
.oc-fig { grid-column: 1 / span 6; grid-row: 1 / span 2; padding-right: 24px; }
.oc-copy { grid-column: 7 / span 6; grid-row: 2; align-self: start; display: grid; gap: 22px; }
.oc-stage { position: relative; width: min(100%, 460px); aspect-ratio: 400 / 520; margin: 0 auto; transform: rotate(-3deg); }
.oc-l { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.oc-c-candle { stop-color: var(--candle); }
.oc-c-hi { stop-color: var(--kraft-hi); } .oc-c-kr { stop-color: var(--kraft); } .oc-c-lo { stop-color: #a8743f; }
.oc-c-fur { stop-color: var(--fur); }
.oc-furlit { opacity: .6; }
.oc-c-ink { stop-color: var(--ink); }
.oc-gus { fill: var(--ink); opacity: .1; }
.oc-flap { fill: var(--fur); opacity: .1; }
.oc-fold { fill: none; stroke: var(--kraft-lo); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.oc-fold-soft { stroke-width: 2; opacity: .4; }
.oc-edge { fill: none; stroke: var(--kraft-lo); stroke-width: 3; stroke-linejoin: round; }
.oc-rim { fill: var(--kraft-lo); }
.oc-hole { fill: #100b08; }
.oc-iris { fill: var(--straw); opacity: .34; }
.oc-glint { fill: var(--fur); opacity: .8; }
.oc-ink { fill: var(--ink); stroke: var(--ink); stroke-width: 6; stroke-linejoin: round; }
.oc-ring { fill: none; stroke: var(--ink); stroke-width: 5; }
.oc-pink { fill: #e6a29a; }
.oc-steps { display: grid; }
.oc-step { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 18px; padding: 20px 0; border-bottom: 2px dashed rgba(236, 230, 216, .22); }
.oc-step:first-child { padding-top: 0; }
.oc-n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font: 700 19px/1 var(--sten); color: var(--chalk);
  box-shadow: inset 0 0 0 2px rgba(236, 230, 216, .75), inset 0 0 0 4px rgba(236, 230, 216, .12); }
.oc-t { font: 500 clamp(19px, 1.75vw, 24px)/1.35 var(--sans); color: var(--chalk); }
.oc-p { font-size: 19px; line-height: 1.55; color: var(--chalk); }
.oc-fine { max-width: 46ch; }

/* the marker draws on: eyes (wipe), nose (ring grows), grin (wipe), then the glow from inside */
html.js:not(.rm) .oc-line { transition: clip-path 1s cubic-bezier(.5, .1, .3, 1) .2s; clip-path: inset(-10px 0 -10px 0); }
html.js:not(.rm):not(.settled) .oc-hd:not(.oc-on) .oc-line { clip-path: inset(-10px 100% -10px 0); }
html.js:not(.rm) .oc-eyes { clip-path: inset(-4% -2% -4% 0); transition: clip-path .85s cubic-bezier(.45, .05, .4, 1) .1s; }
html.js:not(.rm) .oc-nose { clip-path: circle(75% at 50% 53.8%); transition: clip-path .55s cubic-bezier(.3, .1, .3, 1) 1.05s; }
html.js:not(.rm) .oc-grin { clip-path: inset(-4% -2% -4% 0); transition: clip-path .9s cubic-bezier(.45, .05, .4, 1) 1.6s; }
html.js:not(.rm) .oc-halo, html.js:not(.rm) .oc-glow { transition: opacity 1.1s ease 2.55s; }
html.js:not(.rm) .oc-step, html.js:not(.rm) .oc-p { transition: opacity .5s ease, transform .5s var(--ease); }
html.js:not(.rm) .oc-step:nth-child(1) { transition-delay: .1s; }
html.js:not(.rm) .oc-step:nth-child(2) { transition-delay: 1.05s; }
html.js:not(.rm) .oc-step:nth-child(3) { transition-delay: 1.6s; }
html.js:not(.rm) .oc-p { transition-delay: 2.55s; }
html.js:not(.rm):not(.settled) .oc-grid:not(.oc-on) .oc-eyes { clip-path: inset(-4% 79% -4% 0); }
html.js:not(.rm):not(.settled) .oc-grid:not(.oc-on) .oc-nose { clip-path: circle(0% at 50% 53.8%); }
html.js:not(.rm):not(.settled) .oc-grid:not(.oc-on) .oc-grin { clip-path: inset(-4% 77% -4% 0); }
html.js:not(.rm):not(.settled) .oc-grid:not(.oc-on) .oc-halo, html.js:not(.rm):not(.settled) .oc-grid:not(.oc-on) .oc-glow { opacity: 0; }
html.js:not(.rm):not(.settled) .oc-grid:not(.oc-on) .oc-step, html.js:not(.rm):not(.settled) .oc-grid:not(.oc-on) .oc-p { opacity: .28; transform: translateX(10px); }

@media (max-width: 999px) {
  .st-hd { grid-column: 1 / span 11; grid-row: auto; padding-bottom: 30px; }
  .st-fig { grid-column: 1 / -1; grid-row: auto; margin-right: 0; }
  .st-body { grid-column: 1 / span 10; grid-row: auto; margin-top: 30px; }
  .oc-hd { grid-column: 1 / -1; grid-row: auto; padding-bottom: 36px; }
  .oc-fig { grid-column: 1 / span 5; grid-row: auto; padding-right: 0; }
  .oc-copy { grid-column: 6 / span 7; grid-row: auto; align-self: center; }
}
@media (max-width: 699px) {
  .st-crate { margin-bottom: 36px; padding: 12px 14px; gap: 10px; font-size: 15px; letter-spacing: .12em; }
  .st-nail { width: 10px; height: 10px; }
  .st-hd { padding-bottom: 46px; }
  .st-fig, .st-hd, .st-body { grid-row: auto; }
  .st-print { margin: 0 6px; }
  .st-sticker { left: -10px; top: -26px; width: 176px; min-height: 104px; padding: 10px 12px; font-size: 13px; letter-spacing: .02em; }
  .st-sticker b { font-size: 21px; }
  .st-cap { font-size: 15px; margin-top: 20px; }
  .st-body { margin-top: 18px; }
  .st-body .lead { padding-top: 18px; }
  .oc-board { padding: 32px 22px 30px; }
  .oc-line { height: 16px; margin-top: 10px; }
  .oc-hd { padding-bottom: 14px; }
  .oc-fig { grid-row: auto; }
  .oc-copy { margin-top: 12px; }
  .oc-stage { width: min(100%, 300px); }
  .oc-step { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
  .oc-n { width: 44px; height: 44px; font-size: 18px; }
  .oc-p { font-size: 17px; }
}
/* tablets: keep the sticker inside the page edge */
@media (max-width: 1100px) { .st-sticker { left: 6px; top: -22px; width: 170px; } }

/* ==== s03-04.css ==== */
/* Part B — #blink (WHO BLINKED? toy: hanging sign, pumpkin crate, chalk scoreboard) + #patch (full-bleed sunset patch). */

/* ---------- #blink ---------- */
.bk-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.bk-head { display: flex; align-items: flex-end; gap: 48px; margin-bottom: 56px; }
.bk-sign { position: relative; flex: none; margin-top: 64px; padding: 26px 40px 30px; border-radius: 4px; color: var(--ink); --em: var(--pk-lo); --ring: var(--ink);
  background-color: var(--kraft-hi); background-image: url(/img/grain.webp), linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(0, 0, 0, .1));
  box-shadow: inset 0 0 0 2px rgba(28, 19, 12, .22), inset 0 -5px 0 var(--kraft-lo), var(--cast); transform-origin: 50% -64px; }
.bk-sign::before, .bk-sign::after { content: ''; position: absolute; bottom: 100%; width: 3px; height: 66px; margin-bottom: -10px; border-radius: 2px;
  background-image: repeating-linear-gradient(180deg, #d9c39a 0 4px, #a88d5f 4px 7px); }
.bk-sign::before { left: 16%; } .bk-sign::after { right: 16%; }
.bk-sign .lbl { color: var(--ink-2); margin-bottom: 8px; }
.bk-sign h2 { font-size: min(clamp(40px, 4.6vw, 72px), calc(var(--h1) * .8)); line-height: 1; }
.bk-lead { max-width: 46ch; color: var(--chalk); }

.bk-game { align-items: start; }
.bk-crate { grid-column: 1 / span 6; justify-self: start; position: relative; width: 100%; max-width: 620px; padding: 46px 24px 24px; border-radius: 4px;
  background-color: var(--crate); background-image: url(/img/grain.webp), linear-gradient(180deg, var(--crate-hi), var(--crate) 28%, var(--crate) 80%, #4a311e);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .3), inset 0 2px 0 rgba(255, 255, 255, .12), var(--cast); }
.bk-crate::before, .bk-crate::after { content: ''; position: absolute; top: 16px; width: 9px; height: 9px; border-radius: 50%; background-color: #2a1b10;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .25); }
.bk-crate::before { left: 14px; } .bk-crate::after { right: 14px; }
.bk-plank { position: absolute; left: 0; right: 0; top: 13px; text-align: center; font: 400 15px/1 var(--sten); letter-spacing: .16em; color: var(--kraft-hi); opacity: .85; white-space: nowrap; }
.bk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px; border-radius: 2px;
  background-color: #0a1416; background-image: repeating-linear-gradient(118deg, rgba(227, 194, 123, .07) 0 2px, rgba(227, 194, 123, 0) 2px 10px),
  radial-gradient(ellipse 70% 60% at 50% 45%, rgba(255, 190, 99, .1), rgba(255, 190, 99, 0) 70%);
  box-shadow: inset 0 8px 18px rgba(0, 0, 0, .7), inset 0 0 0 2px rgba(0, 0, 0, .5); }

.bk-tile { position: relative; display: grid; justify-items: center; gap: 4px; min-width: 0; min-height: 96px; padding: 8px 6px 8px; border-radius: 10px; color: var(--straw); }
.bk-tile:hover { background-color: rgba(255, 190, 99, .06); }
.bk-tile:focus-visible { outline-offset: 0; border-radius: 10px; }
.bk-card { position: relative; display: block; width: 100%; aspect-ratio: 6 / 5; perspective: 600px; }
/* soft ground shadow under each pumpkin (a gradient, not a filter: cheap while the candles flicker) */
.bk-card::after { content: ''; position: absolute; left: 14%; right: 14%; bottom: -5px; height: 14px; border-radius: 50%; z-index: -1; pointer-events: none;
  background-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0) 70%); }
.bk-front, .bk-back { position: absolute; inset: 0; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.bk-back { border-radius: 10px; overflow: hidden; background-color: var(--kraft); box-shadow: 0 0 0 3px var(--fur), 0 8px 16px rgba(0, 0, 0, .5); opacity: 0; }
.bk-back img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.bk-pk { width: 100%; height: 100%; overflow: visible; }
.bk-stem { fill: var(--stem); }
.bk-r1 { fill: var(--pk-lo); } .bk-r2 { fill: var(--pk); } .bk-r3 { fill: #d4652a; }
.bk-rib { fill: none; stroke: var(--pk-lo); stroke-width: 1.4; opacity: .7; }
.bk-in { fill: url(#bk-glow); opacity: .32; }
.bk-holes path { fill: #2a130a; stroke: #2a130a; stroke-width: 5; stroke-linejoin: round; }
.bk-eyes path { fill: var(--candle); }
.bk-mouth { fill: var(--candle); opacity: .9; }
.bk-no { font: 700 15px/1 var(--sten); letter-spacing: .1em; color: var(--straw); }
/* the blink: eyes dark for 180 ms (a game event, so it happens under html.rm too) */
.bk-tile.bk-blink .bk-eyes { opacity: 0; }
.bk-tile.bk-blink .bk-in { opacity: .12; }
/* reveal: flip (motion) / cross-fade (rm) to the cat */
.bk-tile.bk-show .bk-back { opacity: 1; }
.bk-tile.bk-show .bk-front { opacity: 0; }
html.js:not(.rm) .bk-front, html.js:not(.rm) .bk-back { opacity: 1; transition: transform .45s var(--ease); }
html.js:not(.rm) .bk-back { transform: rotateY(180deg); }
html.js:not(.rm) .bk-tile.bk-show .bk-front { opacity: 1; transform: rotateY(-180deg); }
html.js:not(.rm) .bk-tile.bk-show .bk-back { transform: rotateY(0); }
html.rm .bk-front, html.rm .bk-back { transition: opacity .2s linear; }
.bk-tile.bk-hit .bk-no { color: var(--fur); }
.bk-tile.bk-no-tap .bk-no { color: var(--chalk-2); text-decoration: line-through; }
html.js:not(.rm) .bk-tile.bk-no-tap .bk-card { animation: bk-nope .32s var(--ease) 1; }
@keyframes bk-nope { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.bk-game[data-phase="play"] .bk-tile[aria-disabled="true"] { cursor: default; }
html.js:not(.rm) .bk-tile:active .bk-card { transform: scale(.97); }

/* candle noise (motion only, paused off screen / hidden tab) */
html.js:not(.rm) #blink.bk-on .bk-in { animation: bk-flk 3.1s steps(1, end) infinite; }
html.js:not(.rm) #blink.bk-on .bk-eyes { animation: bk-flk2 2.3s linear infinite; }
html.js:not(.rm) #blink.bk-on .bk-tile.bk-blink .bk-eyes { animation: none; }
.bk-tile:nth-child(2) .bk-in, .bk-tile:nth-child(2) .bk-eyes { animation-delay: -.7s !important; animation-duration: 2.7s !important; }
.bk-tile:nth-child(3) .bk-in, .bk-tile:nth-child(3) .bk-eyes { animation-delay: -1.9s !important; }
.bk-tile:nth-child(4) .bk-in, .bk-tile:nth-child(4) .bk-eyes { animation-delay: -1.2s !important; animation-duration: 3.5s !important; }
.bk-tile:nth-child(5) .bk-in, .bk-tile:nth-child(5) .bk-eyes { animation-delay: -2.4s !important; }
.bk-tile:nth-child(6) .bk-in, .bk-tile:nth-child(6) .bk-eyes { animation-delay: -.3s !important; animation-duration: 2.9s !important; }
.bk-tile:nth-child(7) .bk-in, .bk-tile:nth-child(7) .bk-eyes { animation-delay: -1.5s !important; animation-duration: 3.3s !important; }
.bk-tile:nth-child(8) .bk-in, .bk-tile:nth-child(8) .bk-eyes { animation-delay: -2.8s !important; }
.bk-tile:nth-child(9) .bk-in, .bk-tile:nth-child(9) .bk-eyes { animation-delay: -1s !important; animation-duration: 2.6s !important; }
@keyframes bk-flk { 0% { opacity: .32; } 17% { opacity: .44; } 29% { opacity: .27; } 46% { opacity: .38; } 61% { opacity: .48; } 78% { opacity: .3; } 90% { opacity: .4; } }
@keyframes bk-flk2 { 0%, 100% { opacity: 1; } 37% { opacity: .9; } 52% { opacity: .97; } 71% { opacity: .91; } }
html.js:not(.rm) #blink.bk-on .bk-sign { animation: bk-sway 6s ease-in-out infinite; }
@keyframes bk-sway { 0%, 100% { transform: rotate(-.8deg); } 50% { transform: rotate(.8deg); } }

/* the chalk scoreboard */
.bk-board { grid-column: 7 / span 6; align-self: stretch; display: flex; flex-direction: column; gap: 20px; padding: 34px 34px 30px; }
.bk-board .bk-acts { margin-top: auto; }
.bk-game[data-phase="play"] .bk-acts { display: none; }
.bk-stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; padding-bottom: 16px; border-bottom: 2px dashed rgba(236, 230, 216, .28); }
.bk-stat { display: flex; align-items: baseline; gap: 10px; }
.bk-stat .lbl { color: var(--chalk-2); font-size: 14px; }
.bk-stat b { font: 700 min(clamp(34px, 3.2vw, 48px), calc(var(--h1) * .6))/1 var(--sten); color: var(--straw); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.bk-tally { display: flex; gap: 8px; margin-left: auto; align-self: center; }
.bk-tally li { position: relative; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(236, 230, 216, .35); }
.bk-tally li.hit { background-color: var(--straw); box-shadow: none; }
.bk-tally li.miss::before, .bk-tally li.miss::after { content: ''; position: absolute; left: 7px; top: 1px; width: 2px; height: 14px; background-color: var(--chalk); transform: rotate(45deg); }
.bk-tally li.miss::after { transform: rotate(-45deg); }
.bk-tally li.miss { box-shadow: none; }
.bk-tally li.slow { box-shadow: inset 0 0 0 2px var(--chalk-2); background-image: linear-gradient(var(--chalk-2), var(--chalk-2)); background-size: 8px 2px; background-repeat: no-repeat; background-position: center; }
.bk-res { display: flex; align-items: center; gap: 22px; padding: 4px 0 14px 6px; }
.bk-ros { flex: none; }
.bk-won { font: 600 min(clamp(28px, 2.6vw, 40px), calc(var(--h1) * .62))/1.08 var(--serif); color: var(--chalk); }
.bk-say { min-height: 1.5em; font: 500 20px/1.4 var(--sans); color: var(--chalk); text-wrap: pretty; }
.bk-say:empty { min-height: 0; }
.bk-acts { display: flex; flex-wrap: wrap; gap: 12px; }
.bk-keys { margin-top: -4px; }
html.js:not(.rm) .bk-res:not([hidden]) .bk-ros { animation: bk-pin .6s var(--ease) 1 both; transform-origin: 50% 0; }
@keyframes bk-pin { from { transform: rotate(-24deg) scale(.6); opacity: 0; } 60% { transform: rotate(6deg); opacity: 1; } }

@media (max-width: 1099px) {
  .bk-crate { grid-column: 1 / span 6; }
  .bk-board { grid-column: 7 / span 6; padding: 28px 24px 24px; }
}
@media (max-width: 899px) {
  .bk-head { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 40px; }
  .bk-crate, .bk-board { grid-column: 1 / -1; }
  .bk-board { order: -1; align-self: start; }
}
@media (max-width: 699px) {
  .bk-sign { align-self: stretch; margin-top: 52px; padding: 20px 22px 24px; }
  .bk-sign::before, .bk-sign::after { height: 54px; }
  .bk-crate { padding: 38px 10px 10px; }
  .bk-plank { top: 11px; font-size: 13px; letter-spacing: .1em; }
  .bk-grid { gap: 6px; padding: 8px; }
  .bk-tile { padding: 6px 2px; gap: 2px; }
  .bk-no { font-size: 13px; }
  .bk-board { gap: 16px; }
  .bk-stat b { font-size: 32px; }
  .bk-say { font-size: 18px; }
  .bk-acts .pill { flex: 1 1 auto; }
  .bk-keys { display: none; }
}
/* short screens: the whole crate must fit under the header; landscape phones get nine in a row (matches keys 1-9) */
.bk-crate { max-width: max(280px, min(620px, calc(100svh - var(--nav) - 24px))); }
@media (orientation: landscape) and (max-height: 500px) {
  .bk-crate, .bk-board { grid-column: 1 / -1; }
  .bk-board { order: 0; }
  .bk-crate { max-width: none; }
  .bk-grid { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .bk-tile { min-height: 0; }
}

/* ---------- #patch ---------- */
.pt { position: relative; overflow: hidden; }
.pt-ph { position: relative; height: clamp(520px, 86vh, 1100px); }
.pt-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.pt-fade { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(180deg, var(--night) 0, rgba(12, 24, 27, .55) 7%, rgba(12, 24, 27, 0) 18%, rgba(12, 24, 27, 0) 52%, rgba(12, 24, 27, .55) 74%, rgba(12, 24, 27, .9) 90%, var(--night) 100%),
  radial-gradient(ellipse 52% 46% at 0 100%, rgba(12, 24, 27, .78), rgba(12, 24, 27, 0) 100%); }
.pt-hang { position: absolute; inset: 0; pointer-events: none; --x: 63%; --y: 27%; transform-origin: var(--x) 0; }
.pt-str { position: absolute; left: var(--x); top: 0; width: 2px; height: var(--y); margin-left: -1px;
  background-image: repeating-linear-gradient(180deg, #e6d3ad 0 4px, #b49866 4px 7px); box-shadow: 1px 0 0 rgba(0, 0, 0, .25); }
.pt-tag { position: absolute; left: calc(var(--x) - 14.5px); top: var(--y); transform: translateY(-50%); white-space: nowrap; }
.pt-hd { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 72px; }
.pt-copy { max-width: 500px; display: grid; gap: 14px; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.pt-copy .lbl { color: var(--straw); }
.pt-copy p:not(.lbl) { font-size: 19px; color: var(--chalk); }
html.js:not(.rm) .pt.pt-on .pt-hang { animation: pt-sway 5.4s ease-in-out infinite; }
@keyframes pt-sway { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }
@media (max-width: 699px) {
  .pt-hang { --x: calc(100% - 158px); --y: 86px; }
  .pt-tag { width: 156px; white-space: normal; }
  .pt-hd { padding-bottom: 40px; }
  .pt-copy { max-width: none; gap: 10px; }
  .pt-copy p:not(.lbl) { font-size: 17px; }
}

/* ==== s05-06.css ==== */
/* Part C — #trick (gd-dusk: split header with a price-board leader, two tilted prints, two kraft tags on strings between
   them) and #prizes (gd-crate: rosette header, three prints in a staggered row, a rosette pinned on each that swings in,
   the chalk judges' note = Schoolbell use 2). Prefixes tt- pz-. Motion only under html.js:not(.rm); entrances never
   replay (.settled); the tag sway is the only loop and runs only while #trick's tags are on screen (.tt-run). */

/* ---------- #trick ---------- */
#trick { --tt-fs: min(clamp(44px, 6.2vw, 96px), calc(var(--h1) * .86)); }
#trick { background-image: url(/img/grain.webp), linear-gradient(180deg, var(--night) 0, var(--dusk) 24%, var(--night) 88%); }
.tt-h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .28em; margin-bottom: 64px;
  font-size: var(--tt-fs); line-height: 1.02; text-wrap: initial; }
.tt-q { flex: none; }
.tt-dots { flex: 1 1 60px; min-width: 40px; height: 6px; transform: translateY(-.16em);
  background: radial-gradient(circle at 3px 3px, rgba(227, 194, 123, .55) 2.2px, rgba(227, 194, 123, 0) 2.8px) 0 0 / 15px 6px repeat-x; }
.tt-h2 em { flex: none; margin-left: auto; }
.tt-grid { position: relative; align-items: start; }
.tt-trick { grid-column: 1 / 8; grid-row: 1 / 3; }
.tt-candy { grid-column: 8 / 13; grid-row: 1; margin-top: 80px; }
.tt-p { grid-column: 8 / 13; grid-row: 2; margin-top: 30px; max-width: 34ch; }
.tt-trick .tt-print { transform: rotate(-1.2deg); }
.tt-candy .tt-print { transform: rotate(1.8deg); }
.tt-print img { aspect-ratio: 3 / 2; object-fit: cover; }
.tt-cap { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-left: 6px; font: italic 500 16px/1.4 var(--sans); color: var(--chalk-2); }
.tt-cap::before { content: ''; flex: none; width: 30px; height: 2px; background-color: var(--straw); opacity: .7; }

/* the two tags hang on strings across the seam between the prints */
.tt-tags { grid-column: 7 / 9; grid-row: 1; position: relative; z-index: 3; align-self: stretch; pointer-events: none; }
.tt-hang { position: absolute; top: calc(-64px - var(--tt-fs) * .4); display: block; padding-top: calc(var(--len, 60px) + 24px + var(--tt-fs) * .4); transform-origin: 23px 0; }
.tt-hang-1 { --len: 54px; --r: -3deg; left: -96px; transform: rotate(-3deg); }
.tt-hang-2 { --len: 236px; --r: 2.5deg; left: 26px; transform: rotate(2.5deg); }
.tt-hang-1 { z-index: 2; }
.tt-str { position: absolute; left: 22px; top: 0; width: 2px; height: calc(var(--len) + 26px + var(--tt-fs) * .4); background-color: rgba(236, 230, 216, .55); }
.tt-tag { width: 236px; max-width: none; pointer-events: auto; }
.tt-tt { font: 700 17px/1.2 var(--sten); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- #prizes ---------- */
.pz-grid { align-items: end; }
.pz-hd { grid-column: 1 / 9; grid-row: 1; }
.pz-title { display: flex; align-items: center; gap: 26px; }
.pz-title h2 em { display: block; }
.pz-hros { flex: none; display: block; width: 86px; height: 112px; padding-top: 4px; transform: rotate(-6deg); }
.pz-lead { margin-top: 22px; max-width: 54ch; padding-left: 112px; }
.pz-note { grid-column: 9 / 13; grid-row: 1; justify-self: end; max-width: 330px; padding: 26px 30px; transform: rotate(1.6deg); }
.pz-hand { font-size: min(clamp(22px, 2.1vw, 30px), calc(var(--h1) * .4)); color: var(--chalk); }

.pz-row { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; margin-top: 84px; align-items: start; }
.pz-item { --rz: 8deg; }
.pz-i2 { margin-top: 70px; --rz: -7deg; }
.pz-i3 { margin-top: 26px; --rz: 5deg; }
.pz-fig { position: relative; }
.pz-print { transform: rotate(-1.8deg); }
.pz-i2 .pz-print { transform: rotate(1.4deg); }
.pz-i3 .pz-print { transform: rotate(-.8deg); }
.pz-print img { aspect-ratio: 3 / 2; object-fit: cover; }
.pz-ros { position: absolute; z-index: 2; top: -36px; right: -20px; display: block; padding-top: 6px; transform: rotate(var(--rz)); transform-origin: 50% 4px; }
.pz-i2 .pz-ros { right: auto; left: -20px; }
.pz-pin { position: absolute; z-index: 3; left: 50%; top: 0; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background-color: var(--chalk-2); box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .3), 0 2px 4px rgba(0, 0, 0, .45); }
.pz-cap { display: flex; align-items: baseline; gap: 12px; margin-top: 24px; padding-left: 4px; font: italic 500 16px/1.45 var(--sans); color: var(--chalk); }
.pz-cap::before { content: ''; flex: none; width: 22px; height: 2px; background-color: var(--straw); transform: translateY(-5px); }

/* ---------- motion (entrances only once; under rm everything is final) ---------- */
html.js:not(.rm) .tt-print { transition: transform 1s var(--ease), opacity .8s var(--ease); }
html.js:not(.rm):not(.settled) .tt-fig:not(.tt-on) .tt-print { opacity: 0; transform: translateY(34px) rotate(-4deg); }
html.js:not(.rm) .tt-candy .tt-print { transition-delay: .15s; }
html.js:not(.rm) .tt-hang { animation: tt-sway 5.2s ease-in-out infinite alternate; animation-play-state: paused; }
html.js:not(.rm) .tt-hang-2 { animation-duration: 6.1s; animation-delay: -2s; }
html.js:not(.rm) .tt-tags.tt-run .tt-hang { animation-play-state: running; }
@keyframes tt-sway { from { transform: rotate(calc(var(--r) - 2.5deg)); } to { transform: rotate(calc(var(--r) + 2.5deg)); } }

html.js:not(.rm):not(.settled) .pz-item:not(.pz-on) .pz-ros { opacity: 0; transform: rotate(calc(var(--rz) - 70deg)); }
html.js:not(.rm) .pz-item.pz-on .pz-ros { animation: pz-swing 1.5s var(--ease) both; }
html.js:not(.rm) .pz-i2.pz-on .pz-ros { animation-delay: .22s; }
html.js:not(.rm) .pz-i3.pz-on .pz-ros { animation-delay: .44s; }
html.js:not(.rm).settled .pz-item .pz-ros { animation: none; }
@keyframes pz-swing {
  0% { opacity: 0; transform: rotate(calc(var(--rz) - 70deg)); }
  14% { opacity: 1; }
  42% { transform: rotate(calc(var(--rz) + 20deg)); }
  64% { transform: rotate(calc(var(--rz) - 9deg)); }
  84% { transform: rotate(calc(var(--rz) + 3deg)); }
  100% { opacity: 1; transform: rotate(var(--rz)); }
}

/* ---------- tablet ---------- */
@media (max-width: 1199px) {
  .tt-h2 { margin-bottom: 44px; }
  .tt-trick { grid-column: 1 / 11; grid-row: auto; }
  .tt-tags { grid-column: 1 / -1; grid-row: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; margin: 8px 0 4px; pointer-events: auto; }
  .tt-hang { position: relative; top: auto; left: auto; --len: 30px; padding-top: var(--len); }
  .tt-str { height: calc(var(--len) + 2px); }
  .tt-hang-2 { --len: 54px; }
  .tt-candy { grid-column: 3 / 13; grid-row: auto; margin-top: 0; }
  .tt-p { grid-column: 1 / 11; grid-row: auto; max-width: 46ch; margin-top: 20px; }
}
@media (max-width: 999px) {
  .pz-hd, .pz-row { grid-column: 1 / -1; }
  .pz-row { grid-template-columns: minmax(0, 1fr); gap: 64px; margin-top: 64px; }
  .pz-item { width: min(100%, 600px); margin-top: 0; }
  .pz-i2 { justify-self: end; margin-top: 0; }
  .pz-i3 { justify-self: center; margin-top: 0; }
  .pz-note { grid-column: 1 / -1; grid-row: 3; margin-top: 56px; }
}

/* ---------- phone ---------- */
@media (max-width: 699px) {
  .tt-h2 { margin-bottom: 32px; }
  .tt-dots { min-width: 28px; }
  .tt-trick, .tt-candy, .tt-tags, .tt-p { grid-row: auto; }
  .tt-print { margin: 0 6px; }
  .tt-tags { flex-direction: column; align-items: flex-start; gap: 6px; margin: 4px 0 8px; padding-left: 10px; }
  .tt-hang { --len: 22px; }
  .tt-hang-2 { --len: 34px; align-self: flex-end; margin: -18px 6px 0 0; }
  .tt-tag { width: 220px; }
  .tt-tt { font-size: 16px; }
  .tt-cap { font-size: 15px; margin-top: 20px; }
  .tt-p { margin-top: 12px; }
  .pz-title { gap: 16px; align-items: flex-start; }
  .pz-title h2 em { display: inline; }
  .pz-title h2 em { display: block; }
.pz-hros { width: 72px; height: 96px; padding-top: 0; transform: rotate(-6deg) scale(.84); transform-origin: 50% 0; }
  .pz-lead { padding-left: 0; }
  .pz-row { gap: 60px; margin-top: 56px; }
  .pz-print { margin: 0 6px; }
  .pz-ros { top: -30px; right: -2px; }
  .pz-i2 .pz-ros { left: -2px; }
  .pz-cap { font-size: 15px; margin-top: 20px; }
  .pz-note { justify-self: stretch; max-width: none; margin-top: 48px; padding: 22px 24px; transform: rotate(-1deg); }
}

/* ==== s07-end.css ==== */
/* Part D — #home (the chalk A-frame how-to-buy + logo-a print + small honesty box), #closing (the banner full-bleed,
   night falls from the top, centred ending), #pin (the share card) and the footer (a string of bulbs that switch off:
   "Lights off. Bag on."). Prefixes th- cl- pn- ft-. Motion only under html.js:not(.rm); entrances never replay (.settled). */

/* ---------- #home ---------- */
/* [desi.6] slate fades into the closing banner's night (no hard seam); grain first, radial highlight kept */
#home { background-image: url(/img/grain.webp), linear-gradient(180deg, rgba(31, 39, 36, 0) 72%, var(--night) 100%), radial-gradient(ellipse 60% 50% at 30% 20%, rgba(236, 230, 216, .05), rgba(236, 230, 216, 0) 70%); }
.th-grid { align-items: center; }
.th-sign { grid-column: 1 / span 7; position: relative; isolation: isolate; padding: 0 26px 74px; }
/* the two side rails of the A-frame; below the boards they are the legs (splayed a little) */
.th-sign::before, .th-sign::after { content: ''; position: absolute; z-index: -1; top: 8px; bottom: 0; width: 18px; border-radius: 3px 3px 2px 2px; transform-origin: 50% 0;
  background-color: var(--crate); background-image: url(/img/grain.webp), linear-gradient(90deg, var(--crate-hi), var(--crate) 55%, rgba(0, 0, 0, .25));
  box-shadow: 0 10px 18px rgba(0, 0, 0, .35); }
.th-sign::before { left: 4px; transform: rotate(1.4deg); }
.th-sign::after { right: 4px; transform: rotate(-1.4deg); }
.th-bar { position: relative; z-index: 2; margin: 0 -26px 14px; text-align: center; font-size: 14px; }
.th-top { padding-right: 132px; }
.th-top h2 { max-width: 15ch; }
.th-doodle { position: absolute; right: 30px; top: 50%; width: 92px; height: auto; margin-top: -40px; transform: rotate(8deg);
  fill: none; stroke: var(--chalk); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .72; }
.th-doodle path:nth-child(4) { stroke: var(--straw); }
.th-steps { display: grid; }
.th-steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px 0; border-top: 2px dashed rgba(236, 230, 216, .22); }
.th-steps li:first-child { border-top: 0; padding-top: 4px; }
.th-steps li:last-child { padding-bottom: 4px; }
.th-n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(236, 230, 216, .8);
  font: 700 22px/1 var(--sten); color: var(--straw); }
.th-steps p { font: 500 19px/1.45 var(--sans); color: var(--chalk); text-wrap: pretty; }

.th-side { grid-column: 8 / span 5; display: grid; justify-items: start; gap: 16px; padding-left: 12px; }
.th-print { width: min(330px, 78%); margin: 0 0 0 30px; transform: rotate(2.4deg); }
.th-print img { aspect-ratio: 1; object-fit: cover; }
.th-hb { position: relative; z-index: 2; width: 100%; max-width: 500px; margin-top: -44px; }
.th-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.th-more { margin-top: 0; gap: 10px; }
.th-fine { max-width: 44ch; }

html.js:not(.rm) .th-print { transition: transform 1s var(--ease), opacity .7s var(--ease); }
html.js:not(.rm):not(.settled) .th-grid:not(.th-on) .th-print { transform: rotate(9deg) translateY(30px); opacity: 0; }
html.js:not(.rm) .th-steps li { transition: clip-path .9s var(--ease), opacity .5s linear; }
.th-steps li:nth-child(2) { transition-delay: .3s; } .th-steps li:nth-child(3) { transition-delay: .6s; }
html.js:not(.rm):not(.settled) .th-grid:not(.th-on) .th-steps li { clip-path: inset(0 100% 0 0); opacity: 0; }
html.js:not(.rm) .th-doodle { transition: opacity .8s linear .9s, transform .8s var(--ease) .9s; }
html.js:not(.rm):not(.settled) .th-grid:not(.th-on) .th-doodle { opacity: 0; transform: rotate(-6deg) scale(.8); }

/* ---------- #closing ---------- */
.cl { position: relative; isolation: isolate; overflow: clip; padding: 0 0 112px; }
.cl-ph { position: relative; height: clamp(440px, 62vw, 92vh); overflow: hidden; }
.cl-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 58% 40%; }
/* the night fades in from the top (its own layer, so it can fall on entrance) */
.cl-night { position: absolute; left: 0; right: 0; top: 0; height: 44%; pointer-events: none;
  background: linear-gradient(180deg, var(--night) 0, rgba(12, 24, 27, .78) 26%, rgba(12, 24, 27, .3) 62%, rgba(12, 24, 27, 0)); }
.cl-scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, var(--night) 0, rgba(12, 24, 27, .9) 14%, rgba(12, 24, 27, .45) 30%, rgba(12, 24, 27, 0) 46%); }
.cl-hd { position: relative; z-index: 2; margin-top: -170px; }
.cl-copy { display: grid; justify-items: center; gap: 18px; max-width: 860px; margin: 0 auto; text-align: center; }
.cl-lbl { color: var(--straw); }
.cl h2 { font-size: min(clamp(36px, 4.6vw, 72px), calc(var(--h1) * .8)); line-height: 1.04; }
.cl h2 em { display: block; }
.cl-p { max-width: 46ch; font-size: 19px; line-height: 1.55; color: var(--chalk); text-wrap: pretty; }
.cl-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }

html.js:not(.rm) .cl-img { transition: transform 2.6s var(--ease); }
html.js:not(.rm):not(.settled) .cl:not(.cl-on) .cl-img { transform: scale(1.07); }
html.js:not(.rm) .cl-night { transition: opacity 2.2s ease-in .2s, transform 2.4s var(--ease) .2s; }
html.js:not(.rm):not(.settled) .cl:not(.cl-on) .cl-night { opacity: 0; transform: translateY(-30%); }

/* ---------- #pin ---------- */
.pn-hd { max-width: 760px; margin-bottom: 48px; }
.pn-lbl { color: var(--straw); margin-bottom: 14px; }
.pn-grid { align-items: center; }
.pn-fig { grid-column: 1 / span 7; padding: 10px 18px 0 6px; }
.pn-print { transform: rotate(-1.2deg); }
.pn-print img { aspect-ratio: 16 / 9; object-fit: cover; }
.pn-tape { position: absolute; z-index: 2; top: -14px; width: 104px; height: 30px; background-color: rgba(220, 174, 118, .86); background-image: url(/img/grain.webp);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .25); clip-path: polygon(3% 0, 97% 6%, 100% 50%, 96% 100%, 2% 92%, 0 50%); }
.pn-tape-l { left: -22px; transform: rotate(-24deg); }
.pn-tape-r { right: -22px; transform: rotate(21deg); }
.pn-side { grid-column: 8 / span 5; display: grid; justify-items: start; gap: 22px; padding-left: 18px; }
.pn-p { max-width: 34ch; }
.pn-acts { display: flex; flex-wrap: wrap; gap: 12px; }
.pn-kit { margin-top: -6px; }

html.js:not(.rm) .pn-print { transition: transform .9s var(--ease), opacity .6s var(--ease); }
html.js:not(.rm):not(.settled) .pn-grid:not(.pn-on) .pn-print { transform: rotate(-5deg) translateY(26px); opacity: 0; }
html.js:not(.rm) .pn-tape { transition: transform .4s cubic-bezier(.3, 1.5, .5, 1) .7s, opacity .2s linear .7s; }
html.js:not(.rm):not(.settled) .pn-grid:not(.pn-on) .pn-tape { opacity: 0; transform: scale(1.4) rotate(0); }

/* ---------- footer ---------- */
.foot { position: relative; padding: 0 0 44px; background-color: var(--night-2); background-image: url(/img/grain.webp); color: var(--chalk); --ring: #ffd7a0; --em: var(--straw); }
/* a string of bulbs along the eave; they switch off one by one when the footer is seen ("Lights off.") */
.ft-bulbs { position: relative; display: flex; justify-content: space-around; height: 58px; padding: 0 12px; overflow: hidden; }
.ft-bulbs::before { content: ''; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background-color: #0a1214; box-shadow: 0 1px 0 rgba(236, 230, 216, .08); }
.ft-bulbs i { position: relative; display: block; width: 12px; margin-top: calc(8px + var(--c, 10px)); height: 17px; border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%;
  background-color: var(--candle); box-shadow: inset -2px -3px 0 rgba(160, 90, 20, .35); }
.ft-bulbs i::before { content: ''; position: absolute; left: 5px; bottom: 100%; width: 2px; height: calc(var(--c, 10px) + 4px); background-color: #0a1214; }
.ft-bulbs i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 190, 99, .5), rgba(255, 190, 99, 0) 68%); }
.ft-bulbs i:nth-child(3n + 1) { --c: 4px; } .ft-bulbs i:nth-child(3n + 2) { --c: 14px; } .ft-bulbs i:nth-child(3n) { --c: 9px; }
.ft-wrap { display: grid; gap: 30px; padding-top: 34px; }
.ft-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; }
.ft-brand { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; text-decoration: none; }
.ft-logo { position: relative; flex: none; display: block; width: 56px; height: 56px; }
.ft-logo img { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 2px var(--kraft); }
/* "Bag on.": a warm lantern light around the logo */
.ft-logo::after { content: ''; position: absolute; inset: -22px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 190, 99, .42), rgba(255, 190, 99, 0) 66%); }
.ft-brand b { font: 600 28px/1 var(--serif); letter-spacing: -.01em; }
.ft-hand { font-size: min(clamp(24px, 2.4vw, 34px), calc(var(--h1) * .42)); color: var(--straw); transform: rotate(-1.5deg); }
.ft-links { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 26px; border-top: 2px dashed rgba(236, 230, 216, .16); }
.ft-bot { display: grid; gap: 8px; }
.ft-dis { max-width: 78ch; }

html.js:not(.rm) .ft-bulbs i, html.js:not(.rm) .ft-bulbs i::after { transition: opacity .25s linear var(--d, 0ms); }
html.js:not(.rm) .foot.ft-off .ft-bulbs i { opacity: .38; }
html.js:not(.rm) .foot.ft-off .ft-bulbs i::after { opacity: 0; }
html.js:not(.rm) .ft-logo::after { transition: opacity 1.2s ease-out 1.5s, transform 1.2s var(--ease) 1.5s; }
html.js:not(.rm):not(.settled) .foot:not(.ft-off) .ft-logo::after { opacity: 0; transform: scale(.6); }

/* ---------- tablets ---------- */
@media (max-width: 1099px) and (min-width: 700px) {
  .th-sign { grid-column: 1 / span 12; }
  .th-side { grid-column: 1 / span 12; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); column-gap: 32px; align-items: start; padding: 36px 0 0; }
  .th-print { grid-row: 1 / span 4; width: 100%; margin: 0; }
  .th-hb { margin-top: 0; }
  .pn-fig { grid-column: 1 / span 12; }
  .pn-side { grid-column: 1 / span 12; padding: 24px 0 0; }
}

/* ---------- phones ---------- */
@media (max-width: 699px) {
  .th-sign { padding: 0 16px 52px; }
  .th-sign::before, .th-sign::after { width: 12px; }
  .th-sign::before { left: 2px; } .th-sign::after { right: 2px; }
  .th-bar { margin: 0 -16px 10px; font-size: 12px; padding: 12px 14px; }
  .th-top { padding-right: 20px; }
  .th-top h2 { max-width: none; padding-right: 64px; }
  .th-doodle { right: 14px; top: 22px; width: 58px; margin-top: 0; }
  .th-steps li { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 14px 0; }
  .th-n { width: 44px; height: 44px; font-size: 20px; }
  .th-steps p { font-size: 17px; }
  .th-side { padding: 16px 0 0; gap: 14px; }
  .th-print { width: min(300px, 76%); margin: 0 auto 0 18px; }
  .th-hb { margin-top: -36px; }
  .th-row .th-buy { flex: 1 1 100%; }
  .th-row .pill.night:not(.sm) { flex: 1 1 100%; }

  .cl { padding-bottom: 72px; }
  .cl-ph { height: 420px; }
  .cl-img { object-position: 60% 40%; }
  .cl-hd { margin-top: -96px; }
  .cl-copy { gap: 14px; }
  .cl-p { font-size: 17px; }
  .cl-row { width: 100%; }
  .cl-row .pill { flex: 1 1 100%; }

  .pn-hd { margin-bottom: 30px; }
  .pn-fig { padding: 8px 6px 0; }
  .pn-tape { width: 74px; height: 24px; top: -10px; }
  .pn-tape-l { left: -12px; } .pn-tape-r { right: -12px; }
  .pn-side { padding: 18px 0 0; gap: 18px; }
  .pn-acts { width: 100%; }
  .pn-acts .pill { flex: 1 1 auto; }

  .ft-bulbs { height: 50px; padding: 0 4px; }
  .ft-bulbs i:nth-child(n + 11) { display: none; }
  .ft-wrap { gap: 24px; padding-top: 26px; }
  .ft-top { flex-direction: column; align-items: flex-start; }
  .ft-brand b { font-size: 24px; }
  .ft-links { padding-top: 22px; gap: 8px; }
}

