/* PDP Lab · public sites. Design "H" (approved 20 Oct 2026): a DTC brand's colour and hero, gallery clarity,
   one colour and one visual signature per category. Fonts are self-hosted later; Bricolage Grotesque via Google Fonts for now. */
:root {
  --ink: #14231B; --mute: #5E6A63; --line: #ECE6DA; --n: #F3F3F0; --paper: #fff;
  --green: #0F4D36; --lime: #D7F25C; --tang: #FF7A2F; --cream: #FFF6E8;
  --peach: #FFB27A; --peach2: #FFE3CC;   /* concepts */
  --blue: #BFE3FF; --blue2: #E3F2FF;     /* handbook */
  --lime2: #F0FAC4;                       /* experiments (with --lime) */
  --lav: #E4D7FF; --lav2: #F1EBFF;       /* collections */
  --f: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--f); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.s-skip { position: absolute; left: -9999px; }
.s-skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2.5px solid var(--tang); outline-offset: 2px; }

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; }
.logo { font: 800 23px/1 var(--f); letter-spacing: -.03em; display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.logo i { width: 24px; height: 24px; border-radius: 50%; background: var(--tang); box-shadow: inset -5px -5px 0 rgba(0,0,0,.12); }
.logo.lab i { background: var(--lime); }
.nav { display: flex; gap: 4px; background: var(--n); border-radius: 999px; padding: 5px; }
.nav a { padding: 8px 15px; border-radius: 999px; font-weight: 600; font-size: 14.5px; display: flex; gap: 7px; align-items: center; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { background: #fff; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: 15px; white-space: nowrap; cursor: pointer; }
.btn:hover { background: var(--green); }
.btn.lime { background: var(--lime); color: var(--ink); } .btn.lime:hover { background: #fff; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); } .btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.lg { padding: 16px 26px; font-size: 16px; }
.btn svg, .lnk svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn:disabled { opacity: .5; cursor: default; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; background: #fff; border-radius: 999px; padding: 5px 12px; }
.lnk { font-weight: 700; border-bottom: 2.5px solid currentColor; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }

/* ---------- bands, headings ---------- */
.band { border-radius: 24px; padding: 32px 36px; margin-top: 4px; }
.band.with-search { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.crumb { font-size: 14px; font-weight: 600; color: #33463c; } .crumb a { text-decoration: underline; text-underline-offset: 3px; }
.band h1 { font: 800 clamp(32px, 4.4vw, 58px)/1 var(--f); letter-spacing: -.04em; margin-top: 10px; max-width: 960px; }
.band .dek { font-size: 18.5px; margin-top: 12px; max-width: 760px; color: #24302a; }
.band .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.disc { font-size: 12.5px; color: var(--mute); margin-top: 12px; }
.h2 { font: 800 clamp(26px, 3vw, 36px)/1.02 var(--f); letter-spacing: -.035em; }
.sec { margin-top: 48px; }
.sh { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.sh p { color: var(--mute); margin-top: 6px; max-width: 620px; }
.prose { max-width: 760px; font-size: 17.5px; color: #24302a; }
.prose p + p, .prose ul, .prose ol, .prose h2, .prose h3, .prose .prose-table { margin-top: 14px; }
.prose h1 { font: 800 clamp(32px, 4vw, 50px)/1.02 var(--f); letter-spacing: -.04em; margin-bottom: 16px; }
.prose h2 { font: 800 26px/1.1 var(--f); letter-spacing: -.03em; margin-top: 30px; }
.prose h3 { font: 800 20px/1.2 var(--f); }
.prose ul, .prose ol { padding-left: 22px; } .prose li + li { margin-top: 6px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-size: .88em; background: var(--n); padding: 1px 6px; border-radius: 6px; }
.prose-table { overflow-x: auto; } .prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* ---------- tiles (neutral, gallery style) ---------- */
.tile { display: block; min-width: 0; }
.th { position: relative; overflow: hidden; background: var(--n); border-radius: 16px; aspect-ratio: 4/3; }
.tile:hover .th { box-shadow: 0 0 0 2px var(--ink); }
.th .tag { position: absolute; left: 10px; top: 10px; z-index: 3; }
.th .wfw { position: absolute; left: 50%; top: 8%; width: 300px; transform: translateX(-50%) scale(.86); transform-origin: top center; }
.th .wf { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 10px 24px -16px rgba(0,0,0,.3); }
.th .wf > .wf-ctx:first-child, .th .wf > .wf-ctx:first-child + .wf-gap { display: none; }
.th .ph { position: absolute; left: 50%; top: 6%; width: 86%; height: 100%; transform: translateX(-50%); overflow: hidden; }
.th .ph img { width: 100%; display: block; }
.th .stack img { position: absolute; width: 62%; border-radius: 10px; box-shadow: 0 10px 24px -14px rgba(0,0,0,.45); background: #fff; object-fit: cover; object-position: top; aspect-ratio: 4/3; }
.th .stack img:nth-child(1) { left: 6%; top: 16%; transform: rotate(-5deg); }
.th .stack img:nth-child(2) { left: 32%; top: 8%; transform: rotate(4deg); }
.th .stack img:nth-child(3) { left: 20%; top: 30%; z-index: 2; }
.th .ba { position: absolute; inset: 8% 7% 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8%; }
.th .ba div { position: relative; border-radius: 12px 12px 0 0; overflow: hidden; background: #fff; box-shadow: 0 12px 26px -14px rgba(0,0,0,.5); }
.th .ba img { width: 100%; display: block; }
.th .ba b { position: absolute; left: 7px; top: 7px; z-index: 2; font-size: 11px; background: #fff; border-radius: 999px; padding: 2px 9px; }
.th .ba div + div b { background: var(--tang); color: #fff; }
.meta h3 { font: 700 17px/1.22 var(--f); letter-spacing: -.015em; margin-top: 12px; }
.meta p { font-size: 13.5px; color: var(--mute); margin-top: 3px; }
.needs { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.need { font-size: 12px; font-weight: 600; background: var(--n); border-radius: 999px; padding: 2px 9px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 24px; }
.grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.row4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

/* ---------- home ---------- */
.hero { background: var(--green); color: var(--cream); border-radius: 28px; padding: 60px 52px 0; display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; overflow: hidden; }
.hero .eb { display: inline-block; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.12); border-radius: 999px; padding: 5px 13px; margin-bottom: 18px; }
.hero h1 { font: 800 clamp(42px, 5.8vw, 84px)/.93 var(--f); letter-spacing: -.045em; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero p.lede { font-size: 19px; max-width: 520px; margin-top: 22px; color: #DCEBDF; }
.hero .acts { display: flex; gap: 12px; margin: 30px 0 56px; flex-wrap: wrap; }
.hero .ghost2 { border: 2px solid rgba(255,246,232,.35); border-radius: 999px; padding: 13px 20px; font-weight: 700; }
.stage { position: relative; min-height: 440px; }
.stage .phn { position: absolute; bottom: -30px; width: 240px; height: 470px; border-radius: 30px; border: 8px solid var(--ink); overflow: hidden; background: #fff; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.stage .phn img { display: block; width: 100%; }
.stage .p1 { left: 3%; transform: rotate(-7deg); } .stage .p2 { right: 5%; bottom: -6px; transform: rotate(5deg); z-index: 2; }
.stage .lbl { position: absolute; z-index: 3; background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 13px; font-weight: 700; font-size: 13.5px; box-shadow: 0 10px 20px -10px rgba(0,0,0,.5); white-space: nowrap; }
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.cat { border-radius: 22px; padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 8px; transition: transform .15s; }
.cat:hover { transform: translateY(-3px); }
.cat .ic { height: 86px; border-radius: 14px; background: rgba(255,255,255,.6); position: relative; overflow: hidden; }
.cat h3 { font: 800 24px/1 var(--f); letter-spacing: -.03em; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cat h3 small { font: 700 14px var(--f); opacity: .7; white-space: nowrap; }
.cat p { font-size: 14.5px; line-height: 1.4; } .cat .go { font-weight: 700; font-size: 14px; margin-top: auto; }
.mini-ba { position: absolute; inset: 12px 18px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-ba i { background: #fff; border-radius: 8px 8px 0 0; } .mini-ba i + i { background: var(--tang); }
.mini-wf { position: absolute; inset: 12px 30px 0; background: #fff; border-radius: 8px 8px 0 0; padding: 10px; display: grid; gap: 5px; align-content: start; }
.mini-wf b { height: 7px; border-radius: 3px; background: #D8D4CC; display: block; } .mini-wf b:nth-child(2) { width: 70%; } .mini-wf b:nth-child(3) { height: 14px; background: var(--ink); border-radius: 999px; }
.mini-ph { position: absolute; left: 50%; transform: translateX(-50%); top: 12px; bottom: 0; width: 70px; border: 5px solid var(--ink); border-bottom: 0; border-radius: 14px 14px 0 0; background: #fff; }
.mini-ph::after { content: ""; position: absolute; left: 8px; right: 8px; top: 24px; height: 14px; border-radius: 999px; background: #5A4FA0; }
.mini-st i { position: absolute; width: 56%; height: 62px; background: #fff; border-radius: 8px; box-shadow: 0 6px 14px -8px rgba(0,0,0,.4); }
.mini-st i:nth-child(1) { left: 8%; top: 18px; transform: rotate(-6deg); } .mini-st i:nth-child(2) { left: 36%; top: 10px; transform: rotate(5deg); } .mini-st i:nth-child(3) { left: 22%; top: 26px; }
.shelf { margin-top: 28px; border-radius: 28px; padding: 40px 40px 44px; }
.shelf .sh h2 { font: 800 clamp(30px, 3.6vw, 42px)/.98 var(--f); letter-spacing: -.04em; margin-top: 12px; }
.shelf .sh p { color: #2d3a33; font-size: 16.5px; }
.shelf .tile { background: #fff; border-radius: 20px; padding: 10px 10px 16px; } .shelf .tile .th { border-radius: 12px; } .shelf .meta { padding: 0 6px; }
.parts { display: flex; gap: 8px; flex-wrap: wrap; margin: -8px 0 22px; }
.parts a { background: #fff; border-radius: 999px; padding: 6px 13px; font-weight: 600; font-size: 14px; } .parts a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.ba3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.ba3 .side { display: flex; flex-direction: column; align-items: center; gap: 12px; background: rgba(255,255,255,.55); border-radius: 20px; padding: 20px 20px 0; overflow: hidden; }
.ba3 .side.after { background: var(--ink); } .ba3 .side.after .pill { background: var(--tang); color: #fff; }
.ba3 .side .shot { width: 88%; height: 560px; overflow: hidden; border-radius: 18px 18px 0 0; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); background: #fff; }
.ba3 .side .shot img { width: 100%; display: block; }
.why { background: #fff; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.why h3 { font: 800 26px/1.02 var(--f); letter-spacing: -.03em; }
.why ul { list-style: none; padding: 0; display: grid; gap: 8px; } .why li { display: flex; gap: 10px; font-weight: 600; }
.why li b { flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-size: 12px; }
.why small { margin-top: auto; font-size: 12px; color: var(--mute); }
.cta { margin-top: 28px; background: var(--green); color: var(--cream); border-radius: 28px; padding: 44px 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.cta h2 { font: 800 clamp(28px, 3.4vw, 40px)/1.02 var(--f); letter-spacing: -.04em; max-width: 680px; } .cta h2 em { font-style: normal; color: var(--lime); }
.cta p { color: #CFE3D6; margin-top: 10px; }
.empty { background: var(--n); border-radius: 20px; padding: 28px; } .empty h3 { font: 800 22px/1.1 var(--f); }

/* ---------- inner pages: filter bar ---------- */
.search { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 0 6px 0 18px; height: 50px; width: 340px; flex: none; border: 2px solid transparent; }
.search:focus-within { border-color: var(--ink); }
.search input { flex: 1; border: 0; background: transparent; font: 500 15.5px var(--f); outline: 0; min-width: 0; color: var(--ink); }
.search b { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.fbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 22px 0; }
.sel { border: 1px solid #E6E6E2; border-radius: 10px; padding: 9px 12px; font: 600 14px var(--f); background: #fff; color: var(--ink); }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; justify-content: safe center; min-width: 0; } .tabs::-webkit-scrollbar { display: none; }
.tab { border: 0; background: transparent; font: 600 14.5px var(--f); color: var(--mute); padding: 8px 13px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--ink); } .tab.on { background: var(--n); color: var(--ink); }
.count { font-size: 14px; font-weight: 600; color: var(--mute); white-space: nowrap; }

/* ---------- handbook part page (editorial) ---------- */
.why-p { margin-top: 26px; max-width: 820px; font-size: 18px; color: #2d3a33; }
.why-p b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--mute); margin-bottom: 4px; }
.toc { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.toc a { background: var(--n); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 14px; } .toc a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.erows > .row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.erows > .row:first-child { border-top: 0; margin-top: 18px; }
.erows > .row:nth-child(even) .pic { order: 2; }
.pic { background: var(--blue2); border-radius: 24px; padding: 30px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pic .wf { background: #fff; box-shadow: 0 14px 30px -20px rgba(20,50,80,.5); max-width: 320px; }
.no { font: 800 15px var(--f); color: #2a6fa8; }
.erows h2 { font: 800 30px/1.06 var(--f); letter-spacing: -.03em; margin-top: 6px; }
.erows .what { margin-top: 10px; font-size: 17.5px; color: #2d3a33; }
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.dl div { background: var(--n); border-radius: 16px; padding: 14px 16px; } .dl .warn { background: #FFF1E6; }
.dl b { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--mute); } .dl p { margin-top: 4px; font-size: 15px; }
.rmeta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; font-size: 14px; color: var(--mute); }
.rmeta .need { background: var(--blue2); color: #1f4a70; font-weight: 700; }
.real { width: 100%; max-width: 420px; background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 10px 24px -18px rgba(0,0,0,.4); }
.real img { width: 100%; display: block; border-radius: 8px; } .real figcaption { font-size: 13px; color: var(--mute); margin-top: 8px; } .real b { color: var(--ink); }
.box { margin-top: 40px; border-radius: 26px; padding: 30px 34px; } .box > p { margin-top: 6px; }
.box h2 { font: 800 30px/1 var(--f); letter-spacing: -.03em; }
.next { margin-top: 34px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .next span { font-weight: 700; margin-right: 6px; }
.next a { background: var(--n); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 14px; }
.recipe { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; counter-reset: r; }
.recipe li { background: #fff; border-radius: 14px; padding: 12px 14px; counter-increment: r; font-size: 14px; } .recipe li::before { content: counter(r); font-weight: 800; color: #2a6fa8; margin-right: 6px; }
.recipe b { display: block; } .recipe span { color: var(--mute); }
.vers { display: grid; gap: 22px; margin-top: 18px; }
.ver { display: grid; grid-template-columns: 400px 1fr; gap: 30px; align-items: start; background: #fff; border-radius: 20px; padding: 18px; }
.ver iframe { display: block; width: 100%; border: 0; min-height: 200px; }
.ver h3 { font: 800 22px/1.1 var(--f); letter-spacing: -.02em; } .ver p { margin-top: 8px; color: #2d3a33; font-size: 15px; }
.ver .new { font-size: 12px; font-weight: 700; background: var(--lime); border-radius: 999px; padding: 2px 9px; margin-left: 6px; vertical-align: 3px; }
.bp { display: grid; grid-template-columns: 340px 1fr; gap: 40px; margin-top: 26px; align-items: start; }
.bp .stackp { background: var(--blue2); border-radius: 24px; padding: 22px; position: sticky; top: 16px; }
.bp ol { list-style: none; padding: 0; display: grid; gap: 12px; counter-reset: b; }
.bp li { background: var(--n); border-radius: 18px; padding: 16px 18px; counter-increment: b; }
.bp li .k { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #2a6fa8; }
.bp li h3 { font: 800 19px/1.15 var(--f); margin-top: 4px; } .bp li p { margin-top: 4px; font-size: 15px; color: #2d3a33; } .bp li a { display: inline-block; margin-top: 8px; font-weight: 700; font-size: 14px; text-decoration: underline; }

/* ---------- experiment page ---------- */
.xp { display: grid; grid-template-columns: 440px 1fr; gap: 44px; margin-top: 30px; align-items: start; }
.xp .dev { position: sticky; top: 16px; }
.xp .phone { width: 414px; max-width: 100%; padding: 12px; border-radius: 52px; background: #141414; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); margin: 0 auto; }
.xp .phone iframe { display: block; width: 100%; height: 800px; border: 0; border-radius: 40px; background: #fff; }
.xp .hint { text-align: center; color: var(--mute); font-size: 13.5px; margin-top: 10px; }
.hyp { background: var(--lime2); border-radius: 22px; padding: 22px 24px; }
.hyp b { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: #4a5a1a; }
.hyp p { font: 700 21px/1.3 var(--f); letter-spacing: -.01em; margin-top: 6px; }
.notes { list-style: none; padding: 0; display: grid; gap: 10px; margin-top: 18px; counter-reset: n; }
.notes li { display: flex; gap: 12px; background: var(--n); border-radius: 16px; padding: 14px 16px; counter-increment: n; }
.notes li::before { content: counter(n); flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.notes h3 { font: 800 17px/1.2 var(--f); } .notes p { font-size: 14.5px; color: #2d3a33; margin-top: 3px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.kv div { background: var(--n); border-radius: 16px; padding: 14px 16px; } .kv b { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--mute); }
.kv p, .kv ul { margin-top: 4px; font-size: 15px; } .kv ul { padding-left: 18px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; font-weight: 700; } .pager a:hover { text-decoration: underline; }

/* ---------- concept page (T6) ---------- */
.postwrap { margin-top: 24px; border-radius: 26px; overflow: hidden; background: #EFE8DC; }
.post { width: 1080px; height: 1080px; transform-origin: 0 0; }
.pin { width: 1080px; height: 1080px; background: var(--cream); padding: 40px 36px 30px; display: flex; flex-direction: column; }
.pt { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pt .logo { font-size: 26px; } .pt b { font: 800 40px/1 var(--f); letter-spacing: -.035em; margin-top: 6px; } .pt small { font-size: 17px; color: var(--mute); }
.pr { flex: 1; display: grid; grid-template-columns: 170px 1fr 1fr 170px; gap: 14px; align-items: center; margin-top: 10px; }
.pp { position: relative; display: flex; justify-content: center; padding-top: 64px; }
.ptag { position: absolute; top: 0; font: 800 22px var(--f); letter-spacing: .02em; border-radius: 999px; padding: 9px 24px; }
.ptag.b { background: var(--ink); color: #fff; left: 4%; } .ptag.a { background: #EF3E23; color: #fff; right: 4%; }
.arw { position: absolute; top: 18px; width: 80px; height: 54px; } .arw.l { left: 44%; } .arw.r { right: 44%; }
.pn p { font: 600 20px/1.35 var(--f); color: #24302a; } .pn.l { text-align: right; }
.pf { display: flex; justify-content: space-between; font-size: 15px; color: var(--mute); margin-top: 16px; }
.dvc { width: 414px; padding: 12px; border-radius: 52px; background: #141414; box-shadow: 0 30px 60px -24px rgba(40,30,10,.4), inset 0 0 0 2px #2b2b2b; flex: none; }
.pp .dvc { zoom: .74; }
.scr { width: 390px; height: 844px; border-radius: 40px; overflow: hidden; background: #fff; position: relative; }
.scr > img { width: 390px; display: block; } .scr .sb { position: absolute; left: 0; bottom: 0; box-shadow: 0 -6px 14px -8px rgba(0,0,0,.2); }
.scr.scroll { overflow-y: auto; scrollbar-width: none; } .scr.scroll::-webkit-scrollbar { display: none; }
.status { height: 44px; display: flex; justify-content: space-between; align-items: center; padding: 0 28px; font: 600 14px/1 system-ui; color: #151515; background: #fff; }
.status i { width: 120px; height: 30px; background: #141414; border-radius: 20px; }
.strip { background: var(--ink); color: #fff; font: 600 10.5px/1 ui-monospace, Menlo, monospace; letter-spacing: .12em; text-align: center; padding: 14px 10px; }
.dl-row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.tabs6 { display: flex; justify-content: center; margin-top: 46px; }
.seg { display: inline-flex; background: var(--n); border-radius: 999px; padding: 5px; }
.seg button { border: 0; background: transparent; font: 800 16px var(--f); padding: 11px 26px; border-radius: 999px; cursor: pointer; color: var(--mute); }
.seg button.on { background: var(--ink); color: #fff; } .seg button[data-t^=after].on { background: #EF3E23; }
.seg { flex-wrap: wrap; justify-content: center; } @media (max-width: 520px) { .seg button { padding: 10px 14px; font-size: 14px; } }
.hint6 { text-align: center; color: var(--mute); font-size: 14.5px; margin-top: 10px; }
.stage6 { position: relative; width: 100%; max-width: 1100px; margin: 22px auto 0; height: 900px; }
.stage6 .devw { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 414px; height: 868px; }
.stage6 .devw > * { position: absolute; inset: 0; }
.stage6 iframe { width: 414px; height: 880px; border: 0; background: transparent; }
.nt { position: absolute; top: calc(var(--y) * 1px + 12px); transform: translateY(-50%); width: 300px; display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 10px 30px -18px rgba(0,0,0,.45); }
.nt.l { right: calc(50% + 207px + 46px); } .nt.r { left: calc(50% + 207px + 46px); }
.nt::after { content: ""; position: absolute; top: 50%; width: 46px; border-top: 2px dashed var(--ink); } .nt.l::after { left: 100%; } .nt.r::after { right: 100%; }
.nt::before { content: ""; position: absolute; top: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%; background: #EF3E23; box-shadow: 0 0 0 3px #fff; z-index: 2; }
.nt.l::before { left: calc(100% + 40px); } .nt.r::before { right: calc(100% + 40px); }
.nt > b { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--peach); display: grid; place-items: center; font-weight: 800; }
.nt h4 { font: 800 17px/1.15 var(--f); letter-spacing: -.015em; } .nt p { font-size: 14px; color: #3d4842; margin-top: 3px; }
.pane { display: none; } .pane.on { display: block; }
.more { margin-top: 40px; background: var(--n); border-radius: 22px; padding: 18px 22px; }
.more summary { cursor: pointer; font: 800 19px var(--f); letter-spacing: -.015em; }
.ch { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: center; padding: 30px; border-radius: 26px; background: var(--peach2); margin-top: 20px; }
.ch .n { width: 38px; height: 38px; border-radius: 50%; background: var(--peach); display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.ch h3 { font: 800 28px/1.05 var(--f); letter-spacing: -.03em; margin-top: 12px; } .ch p { margin-top: 8px; color: #2d3a33; font-size: 16.5px; }
.pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.pair figure { margin: 0; background: #fff; border-radius: 16px; padding: 10px; box-shadow: 0 14px 30px -20px rgba(0,0,0,.4); }
.pair figure img { width: 100%; display: block; border-radius: 8px; } .pair figcaption { font-size: 12.5px; font-weight: 700; color: var(--mute); margin-bottom: 6px; }
.pair figure.a figcaption { color: var(--tang); } .pair .arr { font-size: 26px; font-weight: 800; }
.none { border: 2px dashed #E3C9B2; border-radius: 10px; padding: 30px 14px; text-align: center; color: var(--mute); font-weight: 600; }
.alts { margin-top: 18px; color: var(--mute); font-size: 15px; } .alts a { text-decoration: underline; }
body.card .top, body.card .band, body.card footer, body.card .dl-row, body.card .tabs6, body.card .hint6, body.card .stage6,
body.card .more, body.card .sec, body.card .cta, body.card .alts, body.card .s-skip { display: none !important; }
body.card main { padding: 0; max-width: none; } body.card .postwrap { margin: 0; border-radius: 0; } body.card .post { transform: none !important; }

/* ---------- collection page (C3 editorial) ---------- */
.intro { max-width: 760px; margin-top: 28px; font-size: 18px; color: #2d3a33; display: grid; gap: 12px; }
.q { display: inline-block; font-size: 12.5px; font-weight: 700; background: var(--lav2); color: #3d2f73; border-radius: 999px; padding: 3px 10px; }
.crows > .row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: center; padding: 34px 0; border-top: 1px solid var(--line); }
.crows > .row:first-child { border-top: 0; margin-top: 20px; }
.crows .pic { background: var(--lav2); border-radius: 22px; padding: 22px; display: grid; place-items: center; }
.crows .pic img { max-width: 100%; max-height: 520px; object-fit: contain; border-radius: 10px; box-shadow: 0 14px 30px -18px rgba(40,20,90,.5); }
.crows > .row:nth-child(even) .pic { order: 2; }
.crows .no { color: #7a62d6; } .crows h2 { font: 800 28px/1.08 var(--f); letter-spacing: -.03em; margin-top: 6px; }
.crows p.w { margin-top: 10px; font-size: 17px; color: #2d3a33; }
.crows blockquote { margin: 12px 0 0; border-left: 3px solid var(--lav); padding: 4px 0 4px 14px; font-weight: 600; }
.crows .rmeta .q { margin: 0; }
.gap { margin-top: 46px; background: var(--green); color: var(--cream); border-radius: 26px; padding: 34px 38px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: center; }
.gap h2 { font: 800 34px/1.02 var(--f); letter-spacing: -.035em; } .gap h2 em { font-style: normal; color: var(--lime); } .gap p { color: #CFE3D6; margin-top: 10px; font-size: 17px; }
.exps2 { display: grid; gap: 14px; }
.exps2 a, .eg a { background: #fff; color: var(--ink); border-radius: 18px; padding: 10px 10px 14px; display: block; }
.eg { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 18px; }
.e-im { background: var(--n); border-radius: 12px; aspect-ratio: 4/3; overflow: hidden; position: relative; }
.e-im img { position: absolute; left: 7%; top: 5%; width: 86%; }
.exps2 h4, .eg h4 { font: 800 16px/1.2 var(--f); margin: 10px 4px 0; } .exps2 p, .eg p { font-size: 13px; color: var(--mute); margin: 4px 4px 0; }
.hint { color: var(--mute); font-size: 14px; margin-top: 18px; } .hint a { text-decoration: underline; }

/* ---------- book, lab ---------- */
.book { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; margin-top: 30px; align-items: start; }
.ticks { list-style: none; padding: 0; display: grid; gap: 10px; } .ticks li { display: flex; gap: 10px; font-size: 17px; }
.ticks li::before { content: "✓"; flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.local { font-size: 13.5px; color: var(--mute); margin-top: 10px; } .local code { background: var(--n); padding: 1px 6px; border-radius: 6px; }
.faq details { background: var(--n); border-radius: 16px; padding: 14px 18px; } .faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 700; } .faq p { margin-top: 8px; color: #2d3a33; } .faq a { text-decoration: underline; }
.paths { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 30px; }
.paths a { background: #fff; color: var(--ink); border-radius: 20px; padding: 20px; display: grid; gap: 4px; } .paths a b { font: 800 20px var(--f); } .paths a span { color: var(--mute); }
.hero.lab { background: var(--ink); grid-template-columns: 1fr; padding-bottom: 50px; }

/* ---------- footer ---------- */
footer.foot { border-top: 1px solid var(--line); margin-top: 70px; padding: 34px 0 70px; font-size: 14.5px; color: var(--mute); }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.foot h4 { font: 800 15px var(--f); color: var(--ink); margin-bottom: 8px; }
.foot ul { list-style: none; padding: 0; display: grid; gap: 6px; } .foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .note { margin-top: 26px; max-width: 760px; font-size: 13px; } .foot .note a { text-decoration: underline; }

/* ---------- small screens ---------- */
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .row4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cats { grid-template-columns: repeat(2, 1fr); } .recipe { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1000px) {
  .stage6 { height: auto; } .stage6 .devw { position: relative; left: auto; transform: none; margin: 0 auto; zoom: .86; }
  .nt { position: relative; top: auto; transform: none; left: auto !important; right: auto !important; width: auto; margin-top: 10px; } .nt::after, .nt::before { display: none; }
  .xp { grid-template-columns: 1fr; } .xp .dev { position: static; } .ver { grid-template-columns: 1fr; } .bp { grid-template-columns: 1fr; } .bp .stackp { position: static; }
}
@media (max-width: 900px) {
  .wrap { padding: 0 16px; } .nav { display: none; }
  .band { padding: 22px 18px; } .band.with-search { flex-direction: column; align-items: stretch; } .search { width: auto; }
  .fbar { grid-template-columns: 1fr; gap: 10px; } .fbar .sel { justify-self: start; } .tabs { justify-content: flex-start; }
  .grid, .grid.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .erows > .row, .crows > .row { grid-template-columns: 1fr; gap: 18px; padding: 28px 0; } .erows > .row:nth-child(even) .pic, .crows > .row:nth-child(even) .pic { order: 0; }
  .pic { padding: 18px; } .erows h2 { font-size: 24px; } .crows h2 { font-size: 23px; } .dl, .kv { grid-template-columns: 1fr; }
  .box { padding: 22px 18px; } .cta { flex-direction: column; align-items: flex-start; padding: 28px 22px; }
  .ch { grid-template-columns: 1fr; padding: 20px 16px; gap: 16px; } .pair { grid-template-columns: 1fr; } .pair .arr { transform: rotate(90deg); justify-self: center; }
  .gap { grid-template-columns: 1fr; padding: 24px 20px; } .book { grid-template-columns: 1fr; } .foot .cols { grid-template-columns: 1fr 1fr; } .paths { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .stage .phn { height: 340px; } .ba3 .side .shot { height: 380px; }
  .hero { grid-template-columns: 1fr; padding: 34px 20px 0; border-radius: 22px; } .stage { min-height: 360px; } .stage .phn { width: 180px; } .stage .p1 { left: 0; } .stage .p2 { right: 0; }
  .cats { grid-template-columns: 1fr 1fr; gap: 10px; } .cat { padding: 14px; } .cat .ic { height: 64px; } .cat p { display: none; } .cat h3 { font-size: 19px; flex-direction: column; gap: 4px; }
  .shelf { padding: 26px 14px 28px; border-radius: 22px; } .sh { flex-direction: column; align-items: flex-start; }
  .row4, .row3 { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .row4 > *, .row3 > * { scroll-snap-align: start; }
  .ba3 { grid-template-columns: 1fr 1fr; gap: 10px; } .ba3 .why { grid-column: 1 / -1; } .ba3 .side { padding: 12px 8px 0; }
  .xp .phone { zoom: .86; } .recipe { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .grid, .grid.g3 { grid-template-columns: 1fr; } }

/* ---------- experiments (approved 21 Oct): hook cards, Pinterest wall, E1 page ---------- */
.wall { columns: 2 460px; column-gap: 26px; margin-top: 8px; }
.wall.w3 { columns: 3 300px; column-gap: 18px; margin-top: 0; }
.hc { display: block; break-inside: avoid; margin-bottom: 26px; background: var(--lime2); border-radius: 26px; padding: 26px; }
.shelf .hc { background: #fff; padding: 20px; margin-bottom: 18px; }
.hc:hover { box-shadow: 0 0 0 2px var(--ink); }
.hc .n { font: 800 15px var(--f); color: #4a5a1a; }
.hc h3 { font: 800 clamp(22px, 2.4vw, 30px)/1.04 var(--f); letter-spacing: -.03em; margin-top: 6px; }
.hc .nm { margin: 10px 0 14px; font-weight: 700; font-size: 14.5px; display: flex; gap: 8px; align-items: center; }
.hc .box { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 14px 30px -18px rgba(40,60,10,.5); }
.shelf .hc { background: var(--paper); }
.shelf .hc .box { box-shadow: none; background: #FFFBF5; }
.hc .box { background: #FFFBF5; }
.hc iframe, .e-live iframe, .abx iframe, .el .vis iframe { display: block; width: 100%; border: 0; min-height: 120px; }
.hc iframe { pointer-events: none; }
.e-live { background: #fff; border-radius: 12px; overflow: hidden; max-height: 260px; }
.e-live iframe { pointer-events: none; }
.hook { font: 800 clamp(28px, 3.6vw, 46px)/1.02 var(--f); letter-spacing: -.04em; max-width: 900px; }
.hy2 { max-width: 820px; font-size: 18px; color: #2d3a33; margin-top: 14px; }
.ab { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 28px; align-items: start; }
.ab figure { margin: 0; background: var(--n); border-radius: 24px; padding: 22px; }
.ab figure.v { background: var(--lime2); }
.ab figcaption { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 800; }
.abx { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 14px 30px -18px rgba(0,0,0,.35); max-width: 430px; margin: 0 auto; }
.chg { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 26px; counter-reset: n; }
.chg li { display: flex; gap: 12px; background: var(--n); border-radius: 16px; padding: 14px 16px; counter-increment: n; }
.chg li::before { content: counter(n); flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-weight: 800; }
.chg h4 { font: 800 17px/1.2 var(--f); } .chg p { font-size: 14.5px; color: #2d3a33; margin-top: 3px; }
.score { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; margin-top: 18px; }
.score div { background: var(--ink); color: #fff; border-radius: 18px; padding: 18px 20px; }
.score b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--lime); } .score p { margin-top: 6px; font-weight: 600; }
.whole { margin-top: 30px; display: grid; grid-template-columns: 380px 1fr; gap: 34px; align-items: start; background: var(--lime2); border-radius: 26px; padding: 26px; }
.whole .phone { padding: 11px; border-radius: 48px; background: #141414; }
.whole .phone iframe { display: block; width: 100%; height: 720px; border: 0; border-radius: 38px; background: #fff; }
.whole p { margin-top: 8px; color: #2d3a33; }

/* ---------- blueprints: a real page + its parts, linked ---------- */
.ph3 { width: 414px; max-width: 100%; padding: 12px; border-radius: 52px; background: #141414; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); margin: 0 auto; }
.ph3 iframe { display: block; width: 100%; height: 820px; border: 0; border-radius: 40px; background: #fff; }
.bpw { display: grid; grid-template-columns: 440px 1fr; gap: 44px; margin-top: 30px; align-items: start; }
.bpw .dev { position: sticky; top: 16px; }
.cnt { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; } .cnt span { font-weight: 800; border-radius: 999px; padding: 7px 14px; }
.els { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.el { border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: transform .15s; }
.el:hover { transform: translateY(-2px); } .el.on { box-shadow: 0 0 0 3px var(--ink); }
.el.h { background: var(--blue2); } .el.e { background: var(--lime2); }
.el .top2 { display: flex; justify-content: space-between; align-items: center; }
.el .nn { font: 800 34px/1 var(--f); letter-spacing: -.04em; opacity: .25; }
.el .kind { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 3px 10px; background: #fff; }
.el h3 { font: 800 20px/1.1 var(--f); letter-spacing: -.02em; } .el p { font-size: 14.5px; color: #2d3a33; } .el .pt { font-size: 13px; color: var(--mute); font-weight: 600; }
.el .vis { background: #fff; border-radius: 14px; height: 190px; overflow: hidden; display: grid; place-items: center; position: relative; }
.el .vis .wf { transform: scale(.62); box-shadow: none; }
.el .vis .wf > .wf-ctx:first-child, .el .vis .wf > .wf-ctx:first-child + .wf-gap { display: none; }
.el .vis iframe { position: absolute; inset: 0; height: 100% !important; pointer-events: none; zoom: .72; width: 139%; }
.el a.go { font-weight: 700; font-size: 14px; text-decoration: underline; }
.bpc .th { aspect-ratio: 3/4; background: var(--dw-bg, #FFFBF5) !important; box-shadow: inset 0 0 0 1px var(--line); }
.bpc .th iframe { position: absolute; left: 0; top: 0; border: 0; pointer-events: none; }
.bpc .th .fade { position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(rgba(255,251,245,0), #FFFBF5); pointer-events: none; }
.bpc:hover .th { box-shadow: 0 0 0 2px var(--ink); }
@media (max-width: 1000px) {
  .ab, .chg, .score, .whole { grid-template-columns: 1fr; } .whole .phone { max-width: 380px; margin: 0 auto; }
  .bpw { grid-template-columns: 1fr; } .bpw .dev { position: static; } .els { grid-template-columns: 1fr; }
}
.bpw > *, .ab > *, .whole > * { min-width: 0; }
@media (max-width: 520px) { .ph3 { padding: 8px; border-radius: 40px; } .ph3 iframe { height: 700px; border-radius: 32px; } .whole { padding: 16px; } .ab figure { padding: 14px; } }

/* ---------- concept page: bullets on the card, ruler and spec sheet ---------- */
.pn .pts { list-style: none; padding: 0; display: grid; gap: 14px; }
.pn .pts li { font: 700 19px/1.25 var(--f); color: #24302a; padding-left: 0; }
.pn.l .pts li::after { content: ""; }
.pn .pts li:first-child { font-size: 21px; color: var(--ink); }
.spec { margin-top: 34px; }
.ruler2 { background: var(--n); border-radius: 22px; padding: 52px 26px 24px; display: grid; gap: 84px; position: relative; }
.rt { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 14px; }
.rl { font-weight: 800; }
.rr { position: relative; height: 14px; border-radius: 999px; background: #E3DED4; }
.rr .fs { position: absolute; left: 0; top: 0; bottom: 0; width: 42.2%; border-radius: 999px; background: var(--lime); }
.mk { position: absolute; top: -42px; transform: translateX(-50%); font-size: 12.5px; white-space: nowrap; color: var(--mute); text-align: center; }
.mk b { display: block; font-size: 12px; color: var(--ink); text-align: center; }
.mk::after { content: ""; position: absolute; left: 50%; top: 40px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px #fff; }
.mk.b::after { background: var(--tang); }
.mk.b { top: 26px; } .mk.b::after { top: -28px; }
.rx { position: relative; margin-left: 104px; margin-top: -40px; height: 16px; font-size: 12px; color: var(--mute); }
.rx span { position: absolute; left: 0; white-space: nowrap; }
.stab { margin-top: 16px; border-radius: 22px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.sr { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 15.5px; }
.sr:first-child { border-top: 0; } .sr span:first-child { font-weight: 800; } .sr span:last-child { font-weight: 600; color: #1d5b33; }
.sr.hd { background: var(--n); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: var(--mute); }
.sr.hd span:last-child { color: var(--tang); }
@media (max-width: 760px) { .sr { grid-template-columns: 1fr 1fr; } .sr span:first-child { grid-column: 1 / -1; } .rt { grid-template-columns: 1fr; gap: 34px; } .rx { margin-left: 0; } .rx span:nth-child(3) { display: none; } .ruler2 { padding: 18px 16px 30px; } }

/* change cards: swipe-file voice */
.ch h3 { font-size: 30px; }
.ch .t1 { margin-top: 12px; font-size: 17px; color: #2d3a33; }
.ch .t2 { margin-top: 6px; font-size: 17px; font-weight: 700; color: var(--ink); }
.ch .t3 { margin-top: 6px; font-size: 17px; font-weight: 700; color: #b0461f; }
.pair figure.a { position: relative; }
.pair .hand { position: absolute; left: -46px; top: -30px; width: 84px; height: 50px; z-index: 2; }
@media (max-width: 900px) { .pair .hand { display: none; } .ch h3 { font-size: 24px; } }

/* pattern rows: Drawing | Live switch */
.pic[data-live] { position: relative; }
.sw2 { display: inline-flex; background: #fff; border-radius: 999px; padding: 4px; box-shadow: 0 6px 16px -10px rgba(0,0,0,.4); }
.sw2 button { border: 0; background: transparent; font: 700 13.5px var(--f); padding: 7px 14px; border-radius: 999px; cursor: pointer; color: var(--mute); }
.sw2 button.on { background: var(--ink); color: #fff; }
.sw2 button[data-v=live].on { background: #1E8E5A; }
.pic .livev { display: block; width: 100%; max-width: 420px; border: 0; border-radius: 16px; background: #fff; min-height: 200px; box-shadow: 0 14px 30px -20px rgba(20,50,80,.5); }

/* menu: a small line above each word */
.nav a.k { padding: 6px 16px 7px 13px; }
.nav a.k > span { display: flex; flex-direction: column; line-height: 1.05; font-weight: 800; font-size: 15px; }
.nav a.k small { font: 700 10px var(--f); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-bottom: 2px; }

/* handbook: sidebar + bigger tiles */
.hbl { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; margin-top: 26px; align-items: start; }
.hside { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; }
.hs-k { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin: 0 0 6px 12px; }
.hside .tab { display: flex; justify-content: space-between; align-items: center; text-align: left; width: 100%; padding: 9px 12px; border-radius: 12px; font-size: 15px; color: var(--ink); }
.hside .tab small { font-size: 12.5px; color: var(--mute); font-weight: 700; }
.hside .tab:hover { background: var(--n); }
.hside .tab.on { background: var(--blue); }
.hside .sel { width: 100%; } .hside .count { margin: 10px 0 0 12px; }
.hbl .grid.g3 { gap: 30px 22px; }
.hbl .th { aspect-ratio: 5/4; }
@media (max-width: 900px) {
  .hbl { grid-template-columns: 1fr; gap: 14px; }
  .hside { position: static; flex-direction: row; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .hside .hs-k, .hside .count, .hside .sel { display: none; }
  .hside .tab { width: auto; flex: none; gap: 8px; background: var(--n); border-radius: 999px; }
}

/* Live switch: a pulsing dot so people notice it */
.sw2 button[data-v=live] { display: inline-flex; align-items: center; gap: 7px; }
.sw2 button[data-v=live]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1E8E5A; box-shadow: 0 0 0 0 rgba(30,142,90,.6); animation: pulse 1.6s infinite; }
.sw2 button[data-v=live].on::before { background: #fff; animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(30,142,90,.55); } 70% { box-shadow: 0 0 0 9px rgba(30,142,90,0); } 100% { box-shadow: 0 0 0 0 rgba(30,142,90,0); } }
@media (prefers-reduced-motion: reduce) { .sw2 button[data-v=live]::before { animation: none; } }
.hbl .th .tag + .wfw { top: 15%; }

/* experiment page, simplified */
.xhead .hook { margin-top: 6px; }
.ab figcaption span { display: inline-flex; align-items: center; gap: 8px; }
.abl { font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; }
.abl.a { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); } .abl.b { background: var(--ink); color: var(--lime); }
.xtest { margin-top: 26px; background: var(--ink); color: #fff; border-radius: 22px; padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.xtest b { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--lime); }
.xtest p { margin-top: 6px; font-size: 17px; font-weight: 600; max-width: 760px; }
.xtest .pill { background: var(--lime); flex: none; }
@media (max-width: 700px) { .xtest { flex-direction: column; align-items: flex-start; } }
