/* Sticker Culture — antjanus.com redesign 060
   Everything on the page is a die-cut vinyl sticker slapped on a laptop lid.
   The die-cut border is a box-shadow spread (follows border-radius) for boxes,
   and a stroke drawn into the SVG for irregular shapes. */

:root {
  /* primitives */
  --kraft-100: #f3ede2;
  --kraft-200: #e8dfcf;
  --cream: #fffdf8;
  --char-900: #17171b;
  --char-700: #3b3833;
  --char-500: #5b554c;
  --tomato: #ff5b3a;
  --sun: #ffd23f;
  --mint: #3dd6a8;
  --sky: #8fd3ff;
  --bubble: #ff9ccf;
  --lilac: #c3b1ff;
  --slate: #364f6a;
  --slate-deep: #2a3f54;

  /* semantic */
  --ground: var(--kraft-100);
  --ground-speck: rgba(90, 60, 25, 0.09);
  --sheet: var(--cream);
  --backing: #e4e7eb;
  --backing-line: rgba(23, 23, 27, 0.18);
  --die: var(--cream);
  --ink: var(--char-900);
  --ink-body: var(--char-700);
  --muted: var(--char-500);
  --on-vinyl: var(--char-900);
  --rule: rgba(23, 23, 27, 0.14);
  --focus: #1d4ed8;
  --link: #1f4fa8;
  --shadow: 0 1px 1px rgba(40, 25, 10, 0.12), 0 8px 18px -6px rgba(40, 25, 10, 0.35);
  --shadow-lift: 0 2px 2px rgba(40, 25, 10, 0.12), 0 22px 34px -12px rgba(40, 25, 10, 0.45);
  --code-bg: #1b1b21;
  --code-ink: #ece8e1;

  --die-w: 6px;
  --radius: 18px;
  --radius-sm: 12px;

  --f-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-hand: "Permanent Marker", "Comic Sans MS", cursive;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #141417;
    --ground-speck: rgba(255, 255, 255, 0.045);
    --sheet: #23232b;
    --backing: #2b2c33;
    --backing-line: rgba(255, 255, 255, 0.16);
    --die: #e9e3d6;
    --ink: #f5f1ea;
    --ink-body: #dcd6cc;
    --muted: #aaa398;
    --rule: rgba(255, 255, 255, 0.14);
    --focus: #8fd3ff;
    --link: #9cc8ff;
    --shadow: 0 1px 1px rgba(0, 0, 0, 0.5), 0 10px 20px -6px rgba(0, 0, 0, 0.7);
    --shadow-lift: 0 2px 2px rgba(0, 0, 0, 0.5), 0 24px 36px -12px rgba(0, 0, 0, 0.85);
    --code-bg: #0e0e11;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #141417;
  --ground-speck: rgba(255, 255, 255, 0.045);
  --sheet: #23232b;
  --backing: #2b2c33;
  --backing-line: rgba(255, 255, 255, 0.16);
  --die: #e9e3d6;
  --ink: #f5f1ea;
  --ink-body: #dcd6cc;
  --muted: #aaa398;
  --rule: rgba(255, 255, 255, 0.14);
  --focus: #8fd3ff;
  --link: #9cc8ff;
  --shadow: 0 1px 1px rgba(0, 0, 0, 0.5), 0 10px 20px -6px rgba(0, 0, 0, 0.7);
  --shadow-lift: 0 2px 2px rgba(0, 0, 0, 0.5), 0 24px 36px -12px rgba(0, 0, 0, 0.85);
  --code-bg: #0e0e11;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-body);
  background-color: var(--ground);
  background-image:
    radial-gradient(var(--ground-speck) 1px, transparent 1.4px),
    radial-gradient(var(--ground-speck) 1px, transparent 1.4px),
    url("assets/laptop-lid-texture.webp");
  background-size: 22px 22px, 22px 22px, 900px auto;
  background-position: 0 0, 11px 11px, 0 0;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); line-height: 1.08; margin: 0 0 0.5em; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--sun); color: var(--on-vinyl); padding: 10px 16px; border-radius: 999px; font-weight: 700; box-shadow: 0 0 0 4px var(--die); }
.skip:focus { top: 12px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.section { padding: clamp(48px, 7vw, 96px) 0 0; }
.muted { color: var(--muted); }

/* ---------- the sticker primitive ---------- */
.stk {
  position: relative;
  background: var(--fill, var(--sheet));
  color: var(--on, var(--ink-body));
  border-radius: var(--radius);
  box-shadow: 0 0 0 var(--die-w) var(--die), var(--shadow);
  transform: rotate(var(--r, 0deg));
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.stk h2, .stk h3, .stk h4 { color: var(--on-head, var(--ink)); }
a.stk, .stk.is-link { text-decoration: none; }
a.stk:hover, .stk.is-link:hover, .stk.is-link:focus-within {
  transform: rotate(0deg) translateY(-4px) scale(1.01);
  box-shadow: 0 0 0 var(--die-w) var(--die), var(--shadow-lift);
  z-index: 2;
}
/* Fold on the corner: the "peel" tell. */
.peel::after {
  content: "";
  position: absolute;
  right: 0; top: 0;
  width: 34px; height: 34px;
  border-radius: 0 var(--radius) 0 0;
  background: linear-gradient(225deg, var(--ground) 0 48%, #d8d0c1 49% 62%, #f7f3ea 78%);
  box-shadow: -3px 3px 5px -2px rgba(0, 0, 0, 0.3);
  transition: width 160ms ease, height 160ms ease;
}
a.peel:hover::after, .peel.is-link:hover::after { width: 52px; height: 52px; }

/* Vinyl colors: text is always dark ink on the bright vinyls, cream on slate/black. */
.v-tomato { --fill: var(--tomato); --on: var(--on-vinyl); --on-head: var(--on-vinyl); }
.v-sun    { --fill: var(--sun);    --on: var(--on-vinyl); --on-head: var(--on-vinyl); }
.v-mint   { --fill: var(--mint);   --on: var(--on-vinyl); --on-head: var(--on-vinyl); }
.v-sky    { --fill: var(--sky);    --on: var(--on-vinyl); --on-head: var(--on-vinyl); }
.v-bubble { --fill: var(--bubble); --on: var(--on-vinyl); --on-head: var(--on-vinyl); }
.v-lilac  { --fill: var(--lilac);  --on: var(--on-vinyl); --on-head: var(--on-vinyl); }
.v-slate  { --fill: var(--slate);  --on: #f4f0e8; --on-head: #fffdf8; }
.v-black  { --fill: var(--char-900); --on: #ece7de; --on-head: #fffdf8; }
.v-cream  { --fill: var(--cream); --on: var(--char-700); --on-head: var(--char-900); }
.v-holo {
  --fill: url("assets/holo-foil.webp") center / cover, linear-gradient(115deg, #ffd6f5 0%, #c9e8ff 28%, #d9ffe9 52%, #fff1c4 74%, #e6d6ff 100%);
  --on: var(--on-vinyl); --on-head: var(--on-vinyl);
}
.v-slate a, .v-black a { color: #bfe0ff; }
.v-tomato a, .v-sun a, .v-mint a, .v-sky a, .v-bubble a, .v-lilac a, .v-holo a, .v-cream a { color: var(--on-vinyl); }

/* rotation helpers, kept small on anything with running text */
.r-1 { --r: -1.4deg; } .r-2 { --r: 1.1deg; } .r-3 { --r: -0.6deg; } .r-4 { --r: 2deg; } .r-5 { --r: -3deg; } .r-6 { --r: 4deg; }
.tilted > *:nth-child(4n+1) { --r: -1.1deg; }
.tilted > *:nth-child(4n+2) { --r: 0.8deg; }
.tilted > *:nth-child(4n+3) { --r: -0.4deg; }
.tilted > *:nth-child(4n)   { --r: 1.3deg; }

/* ---------- small stickers: pills, labels, tags ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.4em;
  min-height: 44px;
  padding: 0.35em 1em;
  border-radius: 999px;
  background: var(--fill, var(--sheet));
  color: var(--on, var(--ink));
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: 0 0 0 4px var(--die), var(--shadow);
  transform: rotate(var(--r, 0deg));
  transition: transform 150ms ease, box-shadow 150ms ease;
  border: 0;
  cursor: pointer;
}
a.pill:hover, button.pill:hover { transform: rotate(0deg) translateY(-2px); box-shadow: 0 0 0 4px var(--die), var(--shadow-lift); }
.pill[aria-current="page"], .pill[aria-pressed="true"] {
  --fill: var(--char-900); --on: #fffdf8;
  outline: 3px dashed var(--char-900); outline-offset: 7px;
}
:root[data-theme="dark"] .pill[aria-current="page"], :root[data-theme="dark"] .pill[aria-pressed="true"] { --fill: #fffdf8; --on: var(--char-900); outline-color: #fffdf8; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pill[aria-current="page"], :root:not([data-theme="light"]) .pill[aria-pressed="true"] { --fill: #fffdf8; --on: var(--char-900); outline-color: #fffdf8; }
}
.pill .count { font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 700; background: rgba(0,0,0,.12); border-radius: 999px; padding: 0.1em 0.5em; }

.label {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3em 0.7em;
  border-radius: 6px;
  background: var(--fill, var(--char-900));
  color: var(--on, #fffdf8);
  box-shadow: 0 0 0 3px var(--die), 0 3px 6px -2px rgba(0,0,0,.35);
  transform: rotate(var(--r, -2deg));
  line-height: 1.3;
}
.chip {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.25em 0.65em;
  border-radius: 999px;
  border: 2px solid currentColor;
  color: inherit;
  text-decoration: none;
  line-height: 1.3;
}
a.chip:hover { background: var(--sun); color: var(--on-vinyl); border-color: var(--on-vinyl); }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; padding: 0; margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px;
  padding: 0.7em 1.4em;
  border-radius: 14px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.0625rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.btn--primary { background: var(--char-900); color: #fffdf8; box-shadow: 0 0 0 5px var(--die), var(--shadow); transform: rotate(-1.5deg); }
.btn--primary:hover { transform: rotate(0) translateY(-3px); box-shadow: 0 0 0 5px var(--die), var(--shadow-lift); }
.btn--primary:active { transform: translateY(1px); box-shadow: 0 0 0 5px var(--die); }
.btn--vinyl { background: var(--fill, var(--sun)); color: var(--on-vinyl); box-shadow: 0 0 0 5px var(--die), var(--shadow); }
.btn--vinyl:hover { transform: translateY(-3px); box-shadow: 0 0 0 5px var(--die), var(--shadow-lift); }
.btn--link { color: var(--ink); text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--tomato); padding-inline: 0.4em; }
.btn--link:hover { text-decoration-color: var(--ink); }
.btn--quiet { color: var(--muted); font-weight: 700; padding-inline: 0.4em; }
.btn--quiet:hover { color: var(--ink); }
.btn[aria-disabled="true"] { opacity: 0.7; cursor: progress; }

/* ---------- header ---------- */
.site-head { position: relative; z-index: 20; padding: 18px 0 12px; }
.head-row { display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-badge { width: 72px; height: 72px; transform: rotate(-8deg); transition: transform 300ms ease; filter: drop-shadow(0 4px 5px rgba(0,0,0,.28)); }
.brand:hover .brand-badge { transform: rotate(352deg); }
.brand-word { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; line-height: 1; }
.brand-word small { display: block; font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { flex: 1; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; justify-content: center; }
.nav li:nth-child(odd) .pill { --r: -2deg; }
.nav li:nth-child(even) .pill { --r: 1.5deg; }
.nav .pill { font-size: 1rem; }
.pill--ai { --fill: url("assets/holo-foil.webp") center / cover, linear-gradient(115deg, #ffd6f5, #c9e8ff 40%, #d9ffe9 70%, #fff1c4); --on: var(--on-vinyl); }
.head-tools { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.search { display: flex; align-items: center; background: var(--sheet); border-radius: 999px; box-shadow: 0 0 0 4px var(--die), var(--shadow); padding: 3px 3px 3px 14px; transform: rotate(0.8deg); }
.search input { border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); width: 9.5rem; min-height: 40px; }
.search input::placeholder { color: var(--muted); }
.search input:focus-visible { outline: none; }
.search:focus-within { outline: 3px solid var(--focus); outline-offset: 7px; }
.search button { border: 0; border-radius: 999px; background: var(--char-900); color: #fffdf8; font-family: var(--f-display); font-weight: 700; font-size: 0.9375rem; min-height: 40px; padding: 0 14px; cursor: pointer; }
.theme-btn, .menu-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  display: inline-grid; place-items: center;
  background: var(--sun); color: var(--on-vinyl);
  box-shadow: 0 0 0 4px var(--die), var(--shadow);
  transform: rotate(-10deg);
  transition: transform 200ms ease;
}
.theme-btn:hover { transform: rotate(20deg) scale(1.06); }
.theme-btn svg, .menu-btn svg { width: 24px; height: 24px; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn { background: var(--lilac); }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn { background: var(--lilac); }
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}
.menu-btn { display: none; background: var(--mint); transform: rotate(6deg); }

@media (max-width: 1100px) {
  .search input { width: 7rem; }
}
@media (max-width: 980px) {
  .head-row { flex-wrap: wrap; }
  .menu-btn { display: inline-grid; }
  .head-tools { margin-left: auto; }
  .head-tools .search { display: none; }
  .nav { display: none; flex-basis: 100%; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 16px; padding: 18px 8px 6px; }
  .nav .pill { justify-content: space-between; width: 100%; font-size: 1.125rem; }
  .nav .search--mobile { display: flex; margin-top: 4px; }
  .nav .search--mobile input { flex: 1; width: auto; }
  .brand-badge { width: 60px; height: 60px; }
}
.search--mobile { display: none; }

/* ---------- section heads ---------- */
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin: 0.3em 0 0; }
.sec-head p { margin: 0.4em 0 0; font-size: 1.125rem; color: var(--muted); }
.sec-head .more { font-family: var(--f-display); font-weight: 800; font-size: 1.0625rem; color: var(--ink); }

/* ---------- starburst / seal badges (SVG shapes with drawn die-cut stroke) ---------- */
.badge { position: relative; display: grid; place-items: center; text-align: center; }
.badge svg.shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 5px 6px rgba(0,0,0,.3)); }
.badge .shape .die { fill: var(--die); }
.badge .txt { position: relative; color: var(--on-vinyl); font-family: var(--f-display); font-weight: 800; line-height: 1; padding: 0 12%; }
.badge .txt b { display: block; font-size: var(--big, 2.2rem); letter-spacing: -0.03em; }
.badge .txt span { display: block; font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }
.badge.on-dark .txt { color: #fffdf8; }

/* ---------- grids ---------- */
.grid { display: grid; gap: clamp(28px, 3.4vw, 44px); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }

/* ---------- article card ---------- */
.card { display: flex; flex-direction: column; padding: 12px; color: var(--ink-body); }
.card .pic { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 9; background: var(--backing); }
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 18px 10px 10px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 0.8125rem; color: var(--muted); }
.card h3 { font-size: 1.375rem; margin: 0; line-height: 1.15; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card p { margin: 0; font-size: 1.0625rem; }
.card .go { margin-top: auto; font-family: var(--f-display); font-weight: 800; color: var(--ink); padding-top: 6px; }
.card .chips { position: relative; z-index: 1; }
.card.no-pic .pic { display: none; }
.card .corner { position: absolute; top: -14px; left: 18px; z-index: 3; }

/* text-only "shape" placeholder so imageless cards still read as stickers */
.pic-fallback { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 2.6rem; color: var(--on-vinyl); letter-spacing: -0.04em; background: var(--fill, var(--sun)); }

/* ---------- sticker sheet (backing paper with kiss-cut slots) ---------- */
.sheet {
  position: relative;
  background:
    linear-gradient(var(--backing-line) 1px, transparent 1px) 0 0 / 100% 40px,
    var(--backing);
  border-radius: 10px;
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow);
}
.sheet::before {
  content: "PEEL HERE  ↘";
  position: absolute; top: 10px; right: 16px;
  font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; color: var(--muted);
}
.slot { border: 2px dashed var(--backing-line); border-radius: var(--radius); }

/* ---------- home hero ---------- */
.hero { padding: clamp(24px, 4vw, 56px) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: 0.98; letter-spacing: -0.045em; margin: 24px 0 26px; }
.hl { display: inline-block; padding: 0 0.18em; border-radius: 0.18em; background: var(--fill, var(--sun)); color: var(--on-vinyl); box-shadow: 0 0 0 5px var(--die), var(--shadow); transform: rotate(var(--r, -3deg)); }
.hero .lede { font-size: 1.25rem; line-height: 1.55; max-width: 34rem; color: var(--ink-body); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 14px; margin-top: 30px; }
.board { position: relative; aspect-ratio: 1 / 1.02; width: 100%; }
.board .photo { position: absolute; left: 12%; top: 4%; width: 80%; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 10px var(--die), var(--shadow-lift); transform: rotate(3deg); aspect-ratio: 4 / 4.6; background: #6b6b6b; }
.board .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; }
.nametag { position: absolute; left: 0; bottom: 3%; width: 54%; border-radius: 16px; overflow: hidden; background: var(--cream); box-shadow: 0 0 0 7px var(--die), var(--shadow-lift); transform: rotate(-7deg); text-align: center; z-index: 3; }
.nametag .top { background: var(--tomato); color: var(--on-vinyl); padding: 10px 8px 8px; }
.nametag .top b { display: block; font-family: var(--f-display); font-size: clamp(1.6rem, 3.6vw, 2.6rem); letter-spacing: 0.02em; line-height: 1; }
.nametag .top span { font-family: var(--f-display); font-weight: 700; font-size: clamp(0.8125rem, 1.4vw, 1rem); }
.nametag .name { font-family: var(--f-hand); color: #1e2a6e; font-size: clamp(1.9rem, 4.4vw, 3.2rem); padding: 8px 6px 14px; line-height: 1.1; transform: rotate(-2deg); }
.nametag .bot { height: 12px; background: var(--tomato); }
.board .b1 { position: absolute; right: -2%; top: -2%; width: 34%; aspect-ratio: 1; z-index: 4; transform: rotate(12deg); }
.board .b2 { position: absolute; right: 0; bottom: 14%; width: 30%; aspect-ratio: 1; z-index: 4; transform: rotate(-9deg); }
.board .b3 { position: absolute; left: 2%; top: 8%; width: 26%; aspect-ratio: 1; z-index: 4; transform: rotate(-14deg); }
.board .badge .txt b { font-size: clamp(1.3rem, 3vw, 2.3rem); }
.board .badge .txt span { font-size: clamp(0.8125rem, 1vw, 0.875rem); }
.board .mini { position: absolute; z-index: 5; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .board { max-width: 560px; margin: 8px auto 0; }
}

/* ---------- start here shelf ---------- */
.shelf { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 3.4vw, 44px); }
.shelf .card:first-child h3 { font-size: 1.75rem; }
@media (max-width: 960px) { .shelf { grid-template-columns: 1fr; } }

/* ---------- shaped experiment stickers ---------- */
.shapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; align-items: center; }
.shaped { position: relative; display: grid; place-items: center; text-align: center; aspect-ratio: 1; text-decoration: none; color: var(--on-vinyl); transition: transform 160ms ease; }
.shaped:hover { transform: rotate(0deg) scale(1.05) !important; }
.shaped svg.shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 6px 8px rgba(0,0,0,.3)); }
.shaped .in { position: relative; padding: 0 20%; }
.shaped .kind { font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.shaped h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); color: var(--on-vinyl); margin: 6px 0; }
.shaped p { font-size: 0.9375rem; margin: 0; line-height: 1.35; }
@media (max-width: 960px) { .shapes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .shapes { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; } }

/* ---------- bottom trio ---------- */
.trio { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 960px) { .trio { grid-template-columns: 1fr; } }
.linklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.linklist a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 16px; border-radius: 12px; background: var(--sheet); color: var(--ink); text-decoration: none; font-weight: 700; box-shadow: 0 0 0 4px var(--die), var(--shadow); font-family: var(--f-display); }
.linklist a small { font-family: var(--f-mono); font-weight: 500; font-size: 0.8125rem; color: var(--muted); }
.linklist a:hover { transform: translateY(-2px); }
.pad { padding: clamp(22px, 3vw, 34px); }

/* ---------- page hero (inner pages) ---------- */
.phero { padding: clamp(28px, 5vw, 64px) 0 0; }
.phero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.phero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: 0.95; letter-spacing: -0.05em; margin: 22px 0 20px; }
.phero .lede { font-size: 1.25rem; max-width: 40rem; }
.phero .art { position: relative; }
.phero .art .frame { border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 9px var(--die), var(--shadow-lift); transform: rotate(2.5deg); aspect-ratio: 4 / 3; background: var(--slate); }
.phero .art .frame img { width: 100%; height: 100%; object-fit: cover; }
.phero .art .badge { position: absolute; width: 36%; aspect-ratio: 1; left: -6%; bottom: -12%; transform: rotate(-12deg); }
@media (max-width: 900px) { .phero-grid { grid-template-columns: 1fr; } .phero .art { max-width: 520px; margin: 8px 12px 30px; } }

/* ---------- jump bar ---------- */
.jump { position: sticky; top: 0; z-index: 15; padding: 14px 0; background: color-mix(in srgb, var(--ground) 90%, transparent); backdrop-filter: blur(6px); }
.jump ul { list-style: none; display: flex; gap: 14px; margin: 0; padding: 6px 4px; overflow-x: auto; scrollbar-width: thin; }
.jump li { flex-shrink: 0; }
.jump .lbl { font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); align-self: center; }

/* ---------- landscape project stickers ---------- */
.proj { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; overflow: hidden; }
.proj .pic { aspect-ratio: 16 / 10; background: #0f1115; overflow: hidden; }
.proj .pic img { width: 100%; height: 100%; object-fit: cover; }
.proj .pic.contain img { object-fit: contain; background: #0f1115; }
.proj .body { padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 12px; }
.proj h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0; }
.proj:nth-child(even) .pic { order: 2; }
.proj-list { display: grid; gap: 52px; }
.stats-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0; }
.stat-tag { font-family: var(--f-mono); font-size: 0.875rem; font-weight: 700; padding: 0.3em 0.7em; border-radius: 8px; background: var(--fill, var(--sun)); color: var(--on-vinyl); box-shadow: 0 0 0 3px var(--die); }
@media (max-width: 800px) { .proj { grid-template-columns: 1fr; } .proj:nth-child(even) .pic { order: 0; } }

/* featured project */
.feature { display: grid; grid-template-columns: 1.3fr 1fr; overflow: hidden; }
.feature .body { padding: clamp(24px, 4vw, 48px); }
.feature h3 { font-size: clamp(2rem, 4vw, 3rem); }
.feature .pic { min-height: 320px; position: relative; }
.feature .pic img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.feature .nums { display: flex; flex-wrap: wrap; gap: 26px; margin: 26px 0 30px; }
.feature .nums .badge { width: 124px; aspect-ratio: 1; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature .pic { min-height: 240px; } }

/* sticker bomb wall of side projects */
.bomb { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 40px 34px; }
.bomb .card:nth-child(5n+1) { --r: -2.2deg; }
.bomb .card:nth-child(5n+2) { --r: 1.6deg; }
.bomb .card:nth-child(5n+3) { --r: -0.8deg; }
.bomb .card:nth-child(5n+4) { --r: 2.4deg; }
.bomb .card:nth-child(5n)   { --r: -1.4deg; }
.bomb .card h3 { font-size: 1.25rem; }
.term { width: 100%; height: 100%; display: grid; place-items: center; background: #0f1115 radial-gradient(circle at 20% 20%, #1d2330, #0f1115 70%); color: #7ef0bf; font-family: var(--f-mono); font-size: 0.875rem; }

/* ---------- rows (archive list) ---------- */
.rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.row { display: grid; grid-template-columns: 8.5rem 1fr; gap: 6px 24px; padding: 18px 22px; align-items: baseline; }
.row time { font-family: var(--f-mono); font-size: 0.875rem; color: var(--muted); }
.row h3 { font-size: 1.3rem; margin: 0; }
.row h3 a { color: var(--ink); text-decoration: none; }
.row h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.row h3 a:hover { text-decoration: underline; }
.row p { grid-column: 2; margin: 0; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } .row p { grid-column: 1; } }

/* tags wall */
.tagwall { display: flex; flex-wrap: wrap; gap: 18px 16px; align-items: center; }
.tagwall .pill { font-size: var(--s, 1rem); }

/* ---------- callout bumper ---------- */
.bumper { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; padding: clamp(20px, 3vw, 30px) clamp(22px, 4vw, 44px); border-radius: 10px; }
.bumper p { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.2; color: var(--on-head, var(--ink)); max-width: 40ch; }

/* ---------- stories ---------- */
.story { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 16px; }
.story .pic { border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4; }
.story .pic img { width: 100%; height: 100%; object-fit: cover; }
.story h3 { font-size: 1.5rem; margin: 8px 0 10px; }
.story h3 a { color: inherit; text-decoration: none; }
.story h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.story .part { font-family: var(--f-display); font-weight: 800; font-size: 1rem; }
.story.soon { background: transparent; box-shadow: none; border: 3px dashed var(--backing-line); color: var(--muted); grid-template-columns: 1fr; }
.story.soon h3 { color: var(--muted); }
@media (max-width: 560px) { .story { grid-template-columns: 1fr; } .story .pic { aspect-ratio: 16/9; } }
.seal-note { display: flex; gap: 20px; align-items: center; }
.seal-note .badge { width: 130px; flex-shrink: 0; aspect-ratio: 1; }

/* ---------- about ---------- */
.luggage { display: flex; flex-wrap: wrap; gap: 26px 20px; padding: 10px 0; }
.lug { padding: 12px 18px; border-radius: 12px; min-width: 150px; text-align: center; background: var(--fill); color: var(--on, var(--on-vinyl)); box-shadow: 0 0 0 5px var(--die), var(--shadow); transform: rotate(var(--r, 0deg)); }
.lug b { display: block; font-family: var(--f-display); font-size: 1.25rem; line-height: 1.1; }
.lug span { font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.05em; }
.lug.oval { border-radius: 50%; padding: 18px 26px; }
.lug.tag { border-radius: 8px 22px 22px 8px; }
.timeline { display: grid; gap: 34px; }
.phase { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: clamp(20px, 3vw, 32px); }
.phase .when { font-family: var(--f-mono); font-weight: 700; font-size: 0.9375rem; }
.phase h3 { font-size: 1.75rem; margin: 6px 0 0; }
.phase ul { margin: 12px 0 0; padding-left: 1.2em; }
.phase li { margin-bottom: 6px; }
.phase li strong { color: var(--ink); }
@media (max-width: 760px) { .phase { grid-template-columns: 1fr; gap: 8px; } }
.bumpers { display: grid; gap: 30px; justify-items: start; }
.bumpers .bumper { max-width: 100%; }
.bumpers .bumper:nth-child(odd) { justify-self: start; }
.bumpers .bumper:nth-child(even) { justify-self: end; }
.bumpers .bumper p { font-size: clamp(1.25rem, 2.8vw, 2rem); }
.dark-lid { background: #121215; color: #e6e1d8; border-radius: 28px; padding: clamp(28px, 5vw, 64px); position: relative; overflow: hidden; }
.dark-lid h2, .dark-lid h3 { color: #fffdf8; }
.dark-lid .muted { color: #b9b2a7; }
.dark-lid::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.4px) 0 0 / 20px 20px; pointer-events: none; }
.dark-lid > * { position: relative; }
.cap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 40px; margin-top: 30px; }
.cap h3 { font-size: 1.5rem; margin-bottom: 6px; }
.cap p { color: #c9c2b7; }
.cap .chips { gap: 12px; }
.cap .chips li { font-family: var(--f-display); font-weight: 700; font-size: 1rem; padding: 0.35em 0.9em; border-radius: 999px; background: var(--fill); color: var(--on-vinyl); box-shadow: 0 0 0 3px #e9e3d6; }

/* ---------- article ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 8px; z-index: 50; background: transparent; }
.progress span { display: block; height: 100%; width: 0; background: repeating-linear-gradient(135deg, var(--tomato) 0 12px, var(--sun) 12px 24px); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.a-hero { padding: clamp(24px, 4vw, 48px) 0 0; }
.a-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.a-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1; letter-spacing: -0.04em; margin: 20px 0 18px; }
.a-hero .lede { font-size: 1.25rem; }
.a-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 20px; }
.a-hero .frame { border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 9px var(--die), var(--shadow-lift); transform: rotate(-2deg); background: #222; }
.a-hero .frame img { width: 100%; height: auto; }
@media (max-width: 900px) { .a-hero-grid { grid-template-columns: 1fr; } .a-hero .frame { margin: 6px 10px; } }
.crumb { font-family: var(--f-display); font-weight: 700; color: var(--ink); }

.a-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: clamp(40px, 6vw, 72px); }
.toc { position: sticky; top: 24px; }
.toc .sheet { padding: 22px 18px 18px; }
.toc .sheet::before { content: none; }
.toc h2 { font-size: 0.8125rem; font-family: var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.toc a { display: block; padding: 8px 12px; border-radius: 10px; background: var(--sheet); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.9375rem; line-height: 1.3; box-shadow: 0 0 0 3px var(--die), 0 3px 6px -2px rgba(0,0,0,.25); }
.toc a:hover { transform: translateX(3px); }
.toc a[aria-current="true"] { background: var(--sun); color: var(--on-vinyl); transform: rotate(-1.5deg); }
.toc-mobile { display: none; }
@media (max-width: 1000px) {
  .a-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .toc-mobile { display: block; margin-bottom: 30px; }
  .toc-mobile summary { cursor: pointer; font-family: var(--f-display); font-weight: 800; font-size: 1.125rem; color: var(--ink); min-height: 44px; display: flex; align-items: center; }
  .toc-mobile ol { margin: 10px 0 0; padding-left: 1.4em; }
  .toc-mobile li { margin: 8px 0; }
}

.paper { background: var(--sheet); border-radius: 20px; box-shadow: 0 0 0 var(--die-w) var(--die), var(--shadow); padding: clamp(22px, 5vw, 64px); }
.prose { font-size: 1.125rem; line-height: 1.72; color: var(--ink-body); max-width: 44rem; margin: 0 auto; }
.prose h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: 2.2em 0 0.6em; display: flex; align-items: center; gap: 14px; }
.prose h2 .num { flex-shrink: 0; display: inline-grid; place-items: center; width: 2.1em; height: 2.1em; font-size: 0.55em; border-radius: 50%; background: var(--fill, var(--sun)); color: var(--on-vinyl); box-shadow: 0 0 0 4px var(--die), 0 3px 6px -2px rgba(0,0,0,.4); transform: rotate(-8deg); }
.prose ol, .prose ul { padding-left: 1.4em; }
.prose li { margin-bottom: 0.45em; }
.prose code { font-family: var(--f-mono); font-size: 0.9em; background: color-mix(in srgb, var(--sun) 35%, transparent); color: var(--ink); padding: 0.08em 0.35em; border-radius: 5px; }
.prose em { font-style: italic; }
.callout { position: relative; margin: 2em 0; padding: 26px 24px 18px; border-radius: 16px; background: var(--fill); color: var(--on-vinyl); box-shadow: 0 0 0 5px var(--die), var(--shadow); transform: rotate(var(--r, -0.5deg)); }
.callout p { margin: 0; }
.callout p + p { margin-top: 0.6em; }
.callout a { color: var(--on-vinyl); font-weight: 700; }
.callout code { background: rgba(255,255,255,.55); color: var(--on-vinyl); }
.callout .tagline { position: absolute; top: -16px; left: 18px; }
.callout--why { --fill: var(--sun); --r: -0.6deg; }
.callout--q { --fill: var(--bubble); --r: 0.6deg; border-radius: 22px 22px 22px 4px; }
.callout--note { --fill: var(--sky); --r: -0.3deg; }
.callout--skill { --fill: var(--mint); --r: 0.4deg; }
.codeblock { margin: 2em -1rem; border-radius: 16px; background: var(--code-bg); box-shadow: 0 0 0 6px var(--die), var(--shadow); overflow: hidden; }
.codeblock .bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 8px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.codeblock .lang { font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 700; letter-spacing: .1em; background: var(--sky); color: var(--on-vinyl); padding: 2px 8px; border-radius: 5px; }
.copy { font-family: var(--f-display); font-weight: 700; font-size: 0.9375rem; background: var(--sun); color: var(--on-vinyl); border: 0; border-radius: 999px; padding: 0 14px; min-height: 36px; cursor: pointer; }
.copy:hover { background: #fff; }
.codeblock pre { font-variant-ligatures: none; margin: 0; padding: 18px 20px 22px; overflow-x: auto; font-family: var(--f-mono); font-size: 0.9375rem; line-height: 1.6; color: var(--code-ink); tab-size: 2; }
.codeblock pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.tok-k { color: #ff9ccf; } .tok-s { color: #b7f39b; } .tok-c { color: #a49f96; font-style: italic; } .tok-t { color: #8fd3ff; } .tok-f { color: #ffd23f; }
@media (max-width: 640px) { .codeblock { margin: 1.6em -6px; } .codeblock pre { font-size: 0.875rem; } }

.a-after { display: grid; gap: 48px; margin-top: 56px; }
.share { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; padding: clamp(24px, 4vw, 44px); }
.newsletter h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 8px; }
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; } }
.form { display: flex; flex-wrap: wrap; gap: 12px; }
.form input[type="email"] { flex: 1 1 200px; min-height: 50px; border-radius: 12px; border: 3px solid var(--char-900); background: #fffdf8; color: var(--char-900); padding: 0 14px; font: inherit; font-size: 1.0625rem; }
.form input::placeholder { color: #6a645a; }
.form .consent { flex-basis: 100%; display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; }
.form .consent input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--char-900); }
.form-msg { flex-basis: 100%; font-weight: 700; margin: 0; }
.form-msg:empty { display: none; }

/* ---------- patterns ---------- */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
@media (max-width: 860px) { .ways { grid-template-columns: 1fr; } }
.ways .stk { padding: 26px 24px 22px; }
.ways h3 { font-size: 1.6rem; margin: 10px 0 8px; }
.filters { display: grid; gap: 22px; margin: 44px 0 30px; }
.searchbig { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 20px; border-radius: 18px; background: var(--sheet); box-shadow: 0 0 0 6px var(--die), var(--shadow); }
.searchbig input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1.125rem; color: var(--ink); min-height: 50px; }
.searchbig input::placeholder { color: var(--muted); }
.searchbig input:focus-visible { outline: none; }
.searchbig:focus-within { outline: 3px solid var(--focus); outline-offset: 8px; }
.catrow { display: flex; flex-wrap: wrap; gap: 16px 14px; align-items: center; }
.resultbar { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.resultbar .count { font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.resultbar select { font: inherit; font-size: 1rem; min-height: 44px; border-radius: 12px; border: 3px solid var(--ink); background: var(--sheet); color: var(--ink); padding: 0 10px; }
.clear { background: none; border: 0; font: inherit; font-weight: 700; color: var(--link); text-decoration: underline; cursor: pointer; min-height: 44px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 42px 36px; }
.pcard { display: flex; flex-direction: column; padding: 12px; }
.pcard .thumb { border-radius: 12px; height: 180px; background: var(--backing); position: relative; overflow: hidden; display: grid; place-items: center; }
.pcard .body { padding: 16px 8px 8px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard .eyebrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-family: var(--f-mono); font-size: 0.8125rem; color: var(--muted); }
.pcard .cat { font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: 0.06em; }
.pcard h2 { font-size: 1.375rem; margin: 0; }
.pcard h2 a { color: var(--ink); text-decoration: none; }
.pcard h2 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.pcard p { margin: 0; font-size: 1rem; }
.pcard .good { font-size: 0.9375rem; color: var(--muted); }
.pcard .good b { color: var(--ink); }
.pcard .chips { margin-top: auto; padding-top: 6px; }
.pcard[hidden] { display: none; }
.empty { text-align: center; padding: 50px 20px; }
.empty[hidden] { display: none; }
.empty h2 { font-size: 2rem; }

/* category thumbnails: tiny CSS stickers per category */
.th { position: relative; width: 78%; height: 70%; }
.th-data { display: flex; align-items: flex-end; gap: 8%; }
.th-data i { flex: 1; border-radius: 6px 6px 0 0; background: var(--sky); box-shadow: 0 0 0 3px var(--die); }
.th-data i:nth-child(1) { height: 40%; } .th-data i:nth-child(2) { height: 75%; background: var(--slate); } .th-data i:nth-child(3) { height: 55%; } .th-data i:nth-child(4) { height: 90%; background: var(--tomato); } .th-data i:nth-child(5) { height: 30%; }
.th-layout { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; }
.th-layout i { border-radius: 8px; background: var(--mint); box-shadow: 0 0 0 3px var(--die); }
.th-layout i:first-child { grid-row: span 2; background: var(--sheet); }
.th-inter { display: grid; place-items: center; }
.th-inter i { width: 64%; height: 44%; border-radius: 999px; background: var(--sun); box-shadow: 0 0 0 4px var(--die), 0 6px 0 var(--char-900); }
.th-inter b { position: absolute; right: 16%; bottom: 8%; width: 26px; height: 32px; background: var(--char-900); clip-path: polygon(0 0, 100% 62%, 58% 66%, 78% 100%, 62% 100%, 44% 70%, 0 92%); }
.th-forms { display: grid; align-content: center; gap: 12px; }
.th-forms i { height: 30px; border-radius: 8px; background: var(--sheet); box-shadow: 0 0 0 3px var(--die), inset 0 0 0 2px var(--rule); }
.th-forms i:last-child { width: 48%; justify-self: end; background: var(--bubble); box-shadow: 0 0 0 3px var(--die); }
.th-color { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: center; }
.th-color i { aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 3px var(--die); }
.th-color i:nth-child(1) { background: var(--slate); } .th-color i:nth-child(2) { background: var(--lilac); } .th-color i:nth-child(3) { background: var(--sun); } .th-color i:nth-child(4) { background: var(--tomato); }
.pcard .flag { position: absolute; top: -16px; right: 14px; z-index: 3; }

/* pattern detail */
.back { font-family: var(--f-display); font-weight: 800; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.back:hover { text-decoration: underline; }
.uses { columns: 2 16rem; column-gap: 40px; padding-left: 1.2em; font-size: 1.0625rem; }
.uses li { margin-bottom: 8px; break-inside: avoid; }
.panes { margin-top: 36px; padding: 0; overflow: hidden; }
.panes-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 2px dashed var(--rule); }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tabs [role="tab"] { font-family: var(--f-display); font-weight: 700; font-size: 1rem; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 3px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--ground); }
.pane-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pane-actions .copy { min-height: 44px; }
.pane { padding: clamp(18px, 3vw, 34px); }
.pane[hidden] { display: none; }
.pane pre { margin: 0; padding: 20px; border-radius: 12px; background: var(--code-bg); color: var(--code-ink); overflow-x: auto; font-family: var(--f-mono); font-size: 0.9375rem; line-height: 1.6; box-shadow: 0 0 0 5px var(--die); }
.pane .note { margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--sky) 35%, var(--sheet)); color: var(--ink); }
.prompt-text { font-size: 1.125rem; line-height: 1.7; max-width: 44rem; }

/* the hairline stat strip demo itself (scoped as hss-) */
.stage { background: var(--backing); border-radius: 14px; padding: clamp(16px, 3vw, 30px); display: grid; gap: 18px; --hss-border: #c8cdd4; --hss-surface: #ffffff; --hss-ink: #161b22; --hss-dim: #56606e; --hss-accent: #364f6a; }
:root[data-theme="dark"] .stage { --hss-border: #2c3743; --hss-surface: #191f27; --hss-ink: #e6ecf3; --hss-dim: #97a4b4; --hss-accent: #6f92bd; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stage { --hss-border: #2c3743; --hss-surface: #191f27; --hss-ink: #e6ecf3; --hss-dim: #97a4b4; --hss-accent: #6f92bd; } }
.stage .cap { margin: 0; font-size: 1rem; color: var(--ink); }
.hss-strip { display: grid; gap: 1px; background: var(--hss-border); border: 1px solid var(--hss-border); border-radius: 10px; overflow: hidden; grid-template-columns: 1fr; }
@media (min-width: 21rem) { .hss-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 52rem) { .hss-strip { grid-template-columns: repeat(4, 1fr); } .hss-strip.five { grid-template-columns: repeat(5, 1fr); } }
.hss-tile { background: var(--hss-surface); color: var(--hss-ink); padding: 14px 16px; display: grid; gap: 4px; text-align: left; min-width: 0; font: inherit; border: 0; }
.hss-tile .k { font-family: var(--f-mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--hss-dim); }
.hss-tile .v { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; font-family: var(--f-display); line-height: 1.1; }
.hss-tile .v .u { font-size: 0.8125rem; font-weight: 500; font-family: var(--f-mono); color: var(--hss-dim); margin-left: 4px; }
.hss-tile .s { font-size: 0.875rem; color: var(--hss-dim); }
.hss-tile .v.none { color: var(--hss-dim); }
button.hss-tile { cursor: pointer; }
button.hss-tile:hover { background: color-mix(in srgb, var(--hss-accent) 7%, var(--hss-surface)); }
button.hss-tile[aria-pressed="true"] { background: color-mix(in srgb, var(--hss-accent) 16%, var(--hss-surface)); box-shadow: inset 0 -4px 0 var(--hss-accent); }
.hss-list { list-style: none; margin: 0; padding: 0; border-radius: 10px; overflow: hidden; display: grid; gap: 1px; background: var(--hss-border); border: 1px solid var(--hss-border); }
.hss-list li { background: var(--hss-surface); color: var(--hss-ink); padding: 10px 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hss-list li span { font-family: var(--f-mono); font-size: 0.875rem; color: var(--hss-dim); }
.hss-status { margin: 0; color: var(--ink); font-size: 1rem; }

/* ---------- footer ---------- */
.site-foot { margin-top: clamp(72px, 10vw, 130px); padding-bottom: 40px; }
.foot-sheet { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 36px; }
.foot-sheet h2 { font-size: 0.875rem; font-family: var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot-sheet ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-sheet ul a { color: var(--ink); text-decoration: none; font-weight: 600; display: inline-flex; min-height: 36px; align-items: center; }
.foot-sheet ul a:hover { text-decoration: underline; }
.foot-sheet p { color: var(--ink-body); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 26px; font-size: 1rem; color: var(--muted); }
@media (max-width: 900px) { .foot-sheet { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-sheet { grid-template-columns: 1fr; } }

/* Phones: keep the tilt, but small enough that tall stickers stay inside the gutter. */
@media (max-width: 640px) {
  .wrap { padding: 0 22px; }
  .tilted > *:nth-child(odd), .bomb .card:nth-child(odd) { --r: -0.5deg; }
  .tilted > *:nth-child(even), .bomb .card:nth-child(even) { --r: 0.5deg; }
  .r-1, .r-3 { --r: -0.5deg; } .r-2, .r-4 { --r: 0.5deg; }
  .board .b1 { right: 1%; }
  .board .b2 { right: 2%; }
  .board .nametag { max-width: 56%; }
  .phero .art .badge { left: -2%; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .paper { padding: 26px 16px; border-radius: 14px; }
  .callout { padding: 26px 16px 16px; margin-inline: -4px; }
  .board { margin-bottom: 24px; }
}
.toc-mobile.sheet::before { content: none; }

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

/* per-card variation so forty thumbnails do not read as one stamp repeated */
.pcard .thumb { background: color-mix(in srgb, var(--thumb) 24%, var(--backing)); }
.pcard .th { transform: rotate(var(--tilt, 0deg)) scale(var(--scale, 1)); }
.thumb-no { position: absolute; left: 12px; bottom: 12px; font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; padding: 0.2em 0.6em; border-radius: 6px; background: var(--char-900); color: #fffdf8; box-shadow: 0 0 0 3px var(--die); transform: rotate(-4deg); }

.prose-fig { margin: 2em 0; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 6px var(--die), var(--shadow); background: #222; }
.prose-fig img { display: block; width: 100%; height: auto; }
.prose code { overflow-wrap: anywhere; }
