/* Playground shell. Motion follows Emil Kowalski's rules: transform/opacity only, ease-out for enter,
   presses scale to .97, nothing enters from scale(0), hover effects only on fine pointers. */
@font-face { font-family: "Montreal"; src: url("/fonts/NeueMontreal-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montreal"; src: url("/fonts/NeueMontreal-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Editorial"; src: url("/fonts/PPEditorialNew-Ultralight.woff2") format("woff2"); font-weight: 200; font-display: swap; }
@font-face { font-family: "Montreal"; src: url("/fonts/NeueMontreal-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Mono"; src: url("/fonts/PPNeueMontrealMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* Palettes. 1 Graphite is the default (calm, the works stand out); 2 Ink green; 3 Midnight;
   --fx-*: the FOCO pixel field's ramp + outline colour per palette (dark tones, outlines tinted by the accent);
   "foco" = the pink FOCO-flyer theme from 19 Nov, saved as it was. The square (pale #a7c0c4 header) stays in every palette. */
:root, [data-theme="graphite"] {
  --err: #f0645a;
  --fx-deep: #08080a; --fx-rose: #0f0f12; --fx-mag: #17171c; --fx-hot: #22232d; --fx-pale: #303340; --fx-line: #44528a; --fx-line-amt: 1; --fx-smear: .22;
  --page: #0c0c0d; --bg: #0c0c0d; --card: #151517; --s2: #1f1f22; --s3: #29292d; --line: #232326; --line-2: #39393e;
  --ink: #f3f2ef; --ink-2: #d9d8d3; --mute: #8f8e89; --dim: #5f5e5a; --accent: #93abff; --shadow: #000; --deep: #0b0b0c;
  --orb-0: #eef1ff; --orb-1: #b9c6ff; --orb-2: #8aa2ff; --orb-3: #3d5bd9; --orb-4: #ffffff; --orb-5: #a7c0c4;
  --sq: #a7c0c4; --sq-ink: #121a1e; --sq-ink-2: #33434a;
  --chip: #1f1f22; --chip-ink: #a9a8a3; --chip-hover: #29292d; --chip-on: #f3f2ef; --chip-on-ink: #0b0b0c; --nav: #a9a8a3; --grain: .06;
}
[data-theme="ink"] {
  --err: #f0705c;
  --fx-deep: #070a09; --fx-rose: #0d1411; --fx-mag: #141d1a; --fx-hot: #1d2b25; --fx-pale: #2a3c35; --fx-line: #437c68; --fx-line-amt: 1; --fx-smear: .22;
  --page: #0b0f0e; --bg: #0b0f0e; --card: #131917; --s2: #1b2421; --s3: #24302c; --line: #1f2925; --line-2: #33403b;
  --ink: #eef3f0; --ink-2: #d2dcd7; --mute: #8a9891; --dim: #5a6661; --accent: #a4e8cc; --shadow: #000; --deep: #090c0b;
  --orb-0: #effaf5; --orb-1: #c5f0de; --orb-2: #8fdcbf; --orb-3: #2f8f72; --orb-4: #ffffff; --orb-5: #a7c0c4;
  --sq: #a7c0c4; --sq-ink: #0f1a17; --sq-ink-2: #2f4540;
  --chip: #1b2421; --chip-ink: #a3b1aa; --chip-hover: #24302c; --chip-on: #eef3f0; --chip-on-ink: #090c0b; --nav: #a3b1aa; --grain: .06;
}
[data-theme="midnight"] {
  --err: #f36a78;
  --fx-deep: #07080d; --fx-rose: #0d101a; --fx-mag: #141a29; --fx-hot: #1d2437; --fx-pale: #2b354d; --fx-line: #864d3b; --fx-line-amt: 1; --fx-smear: .22;
  --page: #0a0c12; --bg: #0a0c12; --card: #121621; --s2: #1a1f2d; --s3: #232a3b; --line: #1d2230; --line-2: #323a4f;
  --ink: #eef0f7; --ink-2: #d2d6e3; --mute: #8a8fa3; --dim: #5a5f73; --accent: #ff8a5c; --shadow: #000; --deep: #080a10;
  --orb-0: #fff1ea; --orb-1: #ffc8b0; --orb-2: #ff9a73; --orb-3: #c4502e; --orb-4: #ffffff; --orb-5: #a7c0c4;
  --sq: #a7c0c4; --sq-ink: #10151f; --sq-ink-2: #34405a;
  --chip: #1a1f2d; --chip-ink: #a2a7ba; --chip-hover: #232a3b; --chip-on: #eef0f7; --chip-on-ink: #080a10; --nav: #a2a7ba; --grain: .06;
}
[data-theme="foco"] {
  --err: #ffc39a;
  --fx-deep: #392427; --fx-rose: #a4354c; --fx-mag: #c03455; --fx-hot: #f84473; --fx-pale: #f6dadb; --fx-line: #f84473; --fx-line-amt: 1; --fx-smear: .12;
  --page: #a4354c; --bg: #1d0c11; --card: #2a1419; --s2: #3b1b22; --s3: #48232c; --line: #44212a; --line-2: #502833;
  --ink: #fbe8ea; --ink-2: #f0d3d8; --mute: #d19aa6; --dim: #9a6570; --accent: #f84473; --shadow: #14060a; --deep: #1d0c11;
  --orb-0: #f5d9db; --orb-1: #f78ca8; --orb-2: #f84573; --orb-3: #a32142; --orb-4: #ffffff; --orb-5: #a6bfc4;
  --sq: #a7c0c4; --sq-ink: #a4223f; --sq-ink-2: #7a2236;
  --chip: #a7c0c4; --chip-ink: #6d1f33; --chip-hover: #b8ced1; --chip-on: #392427; --chip-on-ink: #f6dadb; --nav: #f6dadb; --grain: .16;
}
:root {
  --card-2: var(--s2);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  /* the one timing system (BRIEF-V4 §M; JS twins in c/_motion.js) */
  --ease-land: cubic-bezier(.24, 1.34, .38, 1); --ease-quad: cubic-bezier(.25, .46, .45, .94);
  --t-press: 140ms; --t-press-s: 110ms; --t-release: 200ms; --t-hover-off: 150ms; --t-chrome: 180ms; --t-enter: 200ms; --t-exit: 150ms;
  --r: 22px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--page); color-scheme: dark; }
body { background: transparent; color: var(--ink); font: 400 15px/1.45 Montreal, Inter, system-ui, sans-serif; letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* the FOCO-flyer field behind everything (bg.js), nearest-neighbour upscaled, with a fine grain on top */
/* ---- design system v0 (19 Nov 2026; measured from Linear's live CSS, see DESIGN-SYSTEM.md): an 8 px base with 4 px
   half-steps, a 1344 px page, Linear's interface type steps on our three faces, a small set of radii ---- */
:root { --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px; --sp-10: 128px;
  --page-max: 1344px; --page-pad: 48px; --header-h: 64px;
  --t-micro: 500 11px/1.4 Mono, ui-monospace, monospace; --t-mini: 400 13px/1.5 Montreal, sans-serif; --t-small: 500 14px/1.4 Montreal, sans-serif;
  --t-body: 400 15px/1.6 Montreal, sans-serif; --t-large: 400 17px/1.6 Montreal, sans-serif;
  --r-1: 4px; --r-2: 8px; --r-3: 12px; --r-4: 16px; }
@media (max-width: 1100px) { :root { --page-pad: 24px; } }
@media (max-width: 700px) { :root { --page-pad: 16px; } }
.pg-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; }
.pg-bg.is-pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
.pg-dissolve { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 25; pointer-events: none; image-rendering: pixelated; image-rendering: crisp-edges; }   /* above the cards, under the nav (30) */
.fx-pixel .pg-edge { display: none; }   /* the RGB strips belong to the old tilt */
.pg-edge { position: fixed; left: 0; width: 100%; z-index: 25; pointer-events: none; mix-blend-mode: multiply; }
.pg-edge--top { top: 0; } .pg-edge--bottom { bottom: 0; }
.pg-grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: var(--grain); mix-blend-mode: overlay; }

/* The square (pale, pixel-edged; Karim: "save the square. It's very important to me"). Three layouts on review (Head pill):
   big = a bigger square, centred, huge title; split = editorial, aligned to the grid's edges: title bottom-left, the line and a
   live index (the filters, as links) on the right; grain = split with a stippled light in the square's own pale tone
   (handhold.io's grain, drawn once by playground.js). The title is sized by the square's width (cqi), so it never overflows. */
.pg-head { position: relative; isolation: isolate; container-type: inline-size; width: min(1584px, 100% - 96px); margin: 128px auto 72px; padding: 36px 40px 40px; background: var(--sq); color: var(--sq-ink); }
.pg-head h1 { font-family: Montreal, sans-serif; font-weight: 700; font-size: min(12cqi, 210px); line-height: .9; white-space: nowrap; --track: -.04em; letter-spacing: var(--track); }
.pg-head__k { font: 500 11px/1.2 Mono, ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--sq-ink-2); }
.pg-head__k:empty { display: none; }
.pg-head__grain { display: none; position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; image-rendering: pixelated; }
.pg-head :focus-visible { outline-color: var(--sq-ink); }
.pg-pal.pg-pal--head { bottom: 136px; }   /* its review pill, above Scroll */
.pg-head[data-v="big"] { width: min(1040px, 100% - 96px); padding: clamp(52px, 7vw, 100px) 40px clamp(56px, 7vw, 96px); text-align: center; }
.pg-head[data-v="big"] h1 { font-size: min(17cqi, 160px); margin-top: clamp(18px, 2.2vw, 30px); }
.pg-head[data-v="big"] p { max-width: 34em; margin: clamp(22px, 2.6vw, 38px) auto 0; text-wrap: balance; }
.pg-head:not([data-v="big"]) { padding-bottom: 64px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "k d" "t ix"; column-gap: 48px; row-gap: 48px; align-content: space-between; min-height: clamp(380px, 31vw, 520px); }
.pg-head:not([data-v="big"]) .pg-head__k { grid-area: k; }
.pg-head:not([data-v="big"]) h1 { grid-area: t; align-self: end; font-size: min(12cqi, (100cqi - 388px) / 5.7, 210px); margin: 0 0 -.082em -.04em; }   /* optical: the caps' baseline sits on the index's last rule; descenders hang into the padding */
.pg-head:not([data-v="big"]) p { grid-area: d; margin: -4px 0 0; text-wrap: pretty; }
.pg-head__ix { grid-area: ix; align-self: end; display: none; }
.pg-head:not([data-v="big"]) .pg-head__ix { display: block; }
.pg-head__ix a { display: flex; justify-content: space-between; padding: 8px 0 7px; border-top: 1px solid color-mix(in srgb, var(--sq-ink) 16%, transparent); font: 500 11.5px/1.2 Mono, ui-monospace, monospace; letter-spacing: .02em; color: var(--sq-ink-2); transition: color 150ms ease, transform var(--t-press) var(--ease-out); }
.pg-head__ix a:last-child { border-bottom: 1px solid color-mix(in srgb, var(--sq-ink) 16%, transparent); }
.pg-head__ix a:active { transform: scale(.97); transition-duration: var(--t-press-s); }
@media (hover: hover) and (pointer: fine) { .pg-head__ix a:hover { color: var(--sq-ink); } }
.pg-head[data-v="grain"] .pg-head__grain { display: block; }
/* min (default; Karim, 19 Nov: "more minimal, a bit less big … too much text inside it … something on-brand"): the big
   title bottom-left, one short line bottom-right, no index or label; the square carries the page's own pixel contour field
   (bg.js), faint and pale on pale, so the header and the background are one brand */
.pg-head[data-v="min"] { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 34px 36px 30px; min-height: 0; }
.pg-head[data-v="min"] .pg-head__k, .pg-head[data-v="min"] .pg-head__ix { display: none; }
.pg-head[data-v="min"] h1 { font-size: min(9.5cqi, 150px); margin: 0 0 -.07em -.04em; }
.pg-head[data-v="min"] p { margin: 0 0 6px; max-width: 18em; text-align: right; font-size: 16px; }
.pg-head[data-v="min"] .pg-head__grain { display: block; }
@media (max-width: 700px) { .pg-head[data-v="min"] { display: block; padding: 26px 22px 26px; } .pg-head[data-v="min"] h1 { font-size: min(17cqi, 150px); } .pg-head[data-v="min"] p { text-align: left; margin-top: 18px; } }
@media (max-width: 1180px) {
  .pg-head:not([data-v="big"]) { grid-template-columns: 1fr; grid-template-areas: "k" "t" "d"; row-gap: 0; min-height: 0; padding-bottom: 48px; }
  .pg-head:not([data-v="big"]) .pg-head__ix { display: none; }
  .pg-head:not([data-v="big"]) h1 { font-size: min(17cqi, 180px); margin: 28px 0 0 -.04em; }
  .pg-head:not([data-v="big"]) p { max-width: 34em; margin-top: 24px; }
}
@media (max-width: 1100px) { .pg-head, .pg-head[data-v="big"] { width: calc(100% - 64px); } }
@media (max-width: 700px) {
  .pg-head, .pg-head[data-v="big"] { width: calc(100% - 32px); margin: 104px auto 40px; }
  .pg-head:not([data-v="big"]) { padding: 26px 22px 30px; }
  .pg-head[data-v="big"] { padding: 52px 20px 56px; }
}
/* The title uses Karim's own pairing from karim-saab.com ("SERIOUS" / "Products that feel human"): the sans in bold caps, and
   PP Editorial New Ultralight in sentence case with tight tracking, never in caps. 1 = PLAY sans + ground serif (the hero's
   order), 2 = Play serif + GROUND sans, 3 = Playground all in Editorial, like "Products that feel human". */
.pg-head h1 .t-a { text-transform: uppercase; }
.pg-head h1 .t-b { font-family: Editorial, "Times New Roman", serif; font-weight: 200; font-size: 1.12em; }
.pg-head h1[data-pair="2"] .t-a { font-family: Editorial, serif; font-weight: 200; font-size: 1.12em; text-transform: none; }
.pg-head h1[data-pair="2"] .t-b { font-family: Montreal, sans-serif; font-weight: 700; font-size: 1em; text-transform: uppercase; }
.pg-head h1[data-pair="3"] span { font-family: Editorial, serif; font-weight: 200; font-size: 1.12em; text-transform: none; }
.pg-head p { margin-top: 14px; max-width: 30em; color: var(--sq-ink-2); font-size: 17px; line-height: 1.45; }
.pg-head p b { color: var(--sq-ink); font-weight: 500; }

.pg-chips { display: flex; padding: 0 48px 28px; max-width: 1680px; margin: 0 auto; }
.pg-seg { position: relative; display: inline-flex; padding: 3px; border-radius: 999px; background: var(--chip); }
.pg-seg__on { position: absolute; left: 0; top: 3px; bottom: 3px; width: 0; border-radius: 999px; background: var(--chip-on); }
.pg-chip { position: relative; z-index: 1; height: 30px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; color: var(--chip-ink); font-size: 13px; transition: color 160ms ease, transform 160ms var(--ease-out); }
.pg-chip:active { transform: scale(.97); }
.pg-chip[aria-checked="true"] { color: var(--chip-on-ink); }
.pg-chip__n { font: 500 10.5px/1 Mono, ui-monospace, monospace; opacity: .5; }
.pg-chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .pg-chip:hover:not([aria-checked="true"]) { color: var(--ink); } }

.pg-grid { display: grid; grid-auto-flow: row dense; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding: 8px 48px 160px; max-width: 1680px; margin: 0 auto; }
@media (max-width: 1100px) { .pg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 8px 32px 120px; } .pg-chips { padding: 0 32px 22px; } }
@media (max-width: 700px) { .pg-grid { grid-template-columns: 1fr; gap: 18px; padding: 4px 16px 80px; } .pg-chips { padding: 0 16px 16px; }  }

.pg-card { position: relative; display: flex; flex-direction: column; border-radius: 0; overflow: visible; opacity: 0; transform: translateY(8px); animation: pg-in .5s var(--ease-out) forwards; }
.pg-card[hidden] { display: none; }
.pg-card.is-in { animation: none; opacity: 1; transform: none; }
.pg-card.is-wide, .pg-card.is-site { grid-column: span 2; }
.pg-card.is-site .pg-stage { aspect-ratio: 16 / 9; }
.pg-card.is-tall .pg-stage { aspect-ratio: auto; flex: 1; min-height: 280px; }
.pg-card.is-wide .pg-stage { aspect-ratio: auto; flex: 1; min-height: 0; }
/* feature: a product moment at video size, 2 columns × 1 row (2×2 was "way too big", Karim 19 Nov). At most two on the page. */
.pg-card.is-feature { grid-column: span 2; }
.pg-card.is-feature .pg-stage { aspect-ratio: 16 / 9; }
@media (max-width: 700px) { .pg-card.is-feature .pg-stage { aspect-ratio: auto; min-height: 520px; } .pg-card.is-wide, .pg-card.is-site, .pg-card.is-full, .pg-card.is-feature { grid-column: auto; } .pg-card.is-wide .pg-stage { aspect-ratio: 4 / 3.1; min-height: 0; } .pg-card.is-tall .pg-stage { aspect-ratio: 4 / 3.1; flex: none; } }
@keyframes pg-in { to { opacity: 1; transform: none; } }
.pg-stage { position: relative; aspect-ratio: 4 / 3.1; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.pg-meta { position: absolute; left: 14px; bottom: 14px; z-index: 3; max-width: calc(100% - 80px); display: flex; flex-direction: column; gap: 4px; padding: 9px 12px; border-radius: 12px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px; line-height: 1.2; color: var(--mute); pointer-events: none;
  opacity: 0; transform: translateY(4px); transition: opacity var(--t-chrome) ease, transform 240ms var(--ease-land); }
.pg-card:has(:focus-visible):not(:has(:is(input, textarea, [contenteditable="true"]):focus)) .pg-meta { opacity: 1; transform: none; }   /* keyboard focus only: a mouse click never brings the chip */
@media (hover: hover) and (pointer: fine) { .pg-card.is-named .pg-meta { opacity: 1; transform: none; } }
.pg-card:has(:is(input, textarea, [contenteditable="true"]):focus) .pg-meta { opacity: 0; transform: translateY(4px); }   /* never cover a composer you're typing in */
@media (hover: none), (max-width: 700px) { .pg-meta { display: none; } }   /* touch: no name chip; the card's own label carries it (REFERENCES §C5) */
.pg-meta b { color: var(--ink); font-weight: 500; }
.pg-tag { display: none; }
.pg-replay { position: absolute; bottom: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); color: var(--mute); opacity: 0; transition: opacity .2s ease, transform .16s var(--ease-out); }
.pg-replay:active { transform: scale(.92); transition-duration: var(--t-press-s); }
.is-site .pg-replay { display: none; }
.pg-card:focus-within .pg-replay { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .pg-card:hover .pg-replay { opacity: 1; } .pg-replay:hover { color: var(--ink); } }

.pg-foot { padding: var(--sp-8) var(--page-pad) var(--sp-7); color: var(--nav); font: var(--t-mini); display: flex; justify-content: space-between; max-width: calc(var(--page-max) + 2 * var(--page-pad)); margin: 0 auto; }

/* reduced motion = fewer, gentler animations, not none: each component keeps its fades and drops movement itself */
@media (prefers-reduced-motion: reduce) {
  .pg-card { animation: none; opacity: 1; transform: none; }
}
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 2px; }

/* palette switcher (review aid, bottom right) */
.pg-pal { position: fixed; right: 16px; bottom: 16px; z-index: 31; display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line-2), 0 12px 30px -12px var(--shadow); font-size: 12px; }
.pg-pal span { padding: 0 8px 0 10px; color: var(--mute); }
.pg-pal button { height: 26px; min-width: 26px; padding: 0 9px; border-radius: 999px; color: var(--ink-2); transition: transform 160ms var(--ease-out), background-color 150ms ease; }
.pg-pal button:active { transform: scale(.95); }
.pg-pal button[aria-pressed="true"] { background: var(--ink); color: var(--deep); }
.pg-pal--title { bottom: 56px; } .pg-pal--scroll { bottom: 96px; }
.pg-pal input { width: 120px; margin: 0 4px 0 8px; accent-color: var(--ink); }
.pg-pal output { min-width: 66px; padding-right: 8px; color: var(--mute); font-family: Mono, ui-monospace, monospace; font-size: 11px; }

/* the top bar from the work page (portfolio-code/work.html): Menu · logo · Paris time + mail. Past the title it shrinks into
   a centred pill, like a dynamic island. Solid surfaces from the palette (never see-through). */
.pg-bar { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 max(var(--page-pad), calc((100vw - var(--page-max)) / 2)); color: var(--ink);
  transition: background-color 300ms ease, box-shadow 300ms ease; }
.pg-bar.is-pill { background: var(--s2); box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 40px -18px var(--shadow); }
.pg-bar__menu { height: 26px; padding: 0 16px; border-radius: 999px; background: var(--s2); color: var(--ink-2); font-size: 13px; transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.pg-bar__menu:active { transform: scale(.97); }
.pg-bar.is-pill .pg-bar__menu { background: var(--s3); }
.pg-bar__mark { position: absolute; left: 50%; transform: translateX(-50%); height: 18px; }
.pg-bar__mark img { height: 100%; display: block; }
.pg-bar__right { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-2); font-family: Mono, ui-monospace, monospace; }
.pg-bar__dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--s2); color: var(--ink-2); transition: transform 160ms var(--ease-out); }
.pg-bar__dot:active { transform: scale(.94); }
.pg-bar.is-pill .pg-bar__dot { background: var(--s3); }
.pg-bar__dot svg { width: 11px; height: 11px; }
.pg-menu { position: fixed; z-index: 29; top: 76px; left: 48px; display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 14px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 40px -18px var(--shadow); min-width: 190px;
  transform-origin: 20px 0; opacity: 0; transform: scale(.97) translateY(-4px); pointer-events: none; transition: opacity 150ms ease-out, transform 150ms var(--ease-out); }
.pg-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.pg-bar.is-pill ~ .pg-menu { top: 74px; left: calc(50% - 323px); }
.pg-menu a { padding: 9px 12px; border-radius: 9px; font-size: 15px; color: var(--ink-2); }
.pg-menu a[aria-current] { background: var(--s3); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .pg-menu a:hover { background: var(--s3); color: var(--ink); } .pg-bar__menu:hover { background: var(--s3); } }
@media (max-width: 900px) { .pg-bar { padding: 0 16px; } .pg-menu, .pg-bar.is-pill ~ .pg-menu { left: 16px; } .pg-bar__clock { display: none; } }

/* the "why" line: the design decision behind a card, in place of the tag on hover / focus */
.pg-why { display: block; max-width: 52ch; font-size: 12px; line-height: 1.35; color: var(--mute); }   /* the decision + its reason, inside the hover chip */

/* the card's face (pixel-edged, clipped) and its caption underneath (how to use it) */
.pg-face { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--card); overflow: hidden; }
.pg-how { margin: 11px 2px 0; font: 500 11.5px/1.3 Mono, ui-monospace, monospace; letter-spacing: .01em; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* no sideways page scroll, ever (Karim, 19 Nov: "sometimes you are getting the horizontal scroll, which is a bug"): the 3D
   scroll bend may push a card's edge past the viewport for a frame; clip keeps sticky/fixed working (unlike hidden) */
html, body { overflow-x: clip; }
/* phones: the filter track is wider than the screen, so it scrolls inside itself instead of widening the page */
.pg-chips { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.pg-chips::-webkit-scrollbar { display: none; }
/* Lenis (smooth scroll) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

/* classic (default again; Karim, 19 Nov: "I like it way better like before, not the big one … the smaller version"): the
   original centred pale square exactly as it was before the header variants */
.pg-head[data-v="classic"] { display: block; container-type: normal; width: fit-content; max-width: calc(100% - 32px); margin: 128px auto 64px; padding: 46px 76px 50px; text-align: center; min-height: 0; }
.pg-head[data-v="classic"] .pg-head__k, .pg-head[data-v="classic"] .pg-head__ix, .pg-head[data-v="classic"] .pg-head__grain { display: none; }
.pg-head[data-v="classic"] h1 { font-size: clamp(46px, 6.4vw, 82px); line-height: 1; margin: 0; }   /* one notch bigger (Karim, 19 Nov) */
.pg-head[data-v="classic"] p { display: none; }   /* Karim, 19 Nov: "the small one with just playground on it" */
@media (max-width: 700px) { .pg-head[data-v="classic"] { margin: 104px 16px 40px; padding: 30px 22px 32px; } }


/* mid (default; Karim, 19 Nov: "a middle ground between … Before, and … Big. The screen should be functional before
   everything else"): the square between the two sizes, Min's pixel contour pale on pale, one line, and the filters inside
   it, so the first screen shows the title, the filters and a full row of cards. Chips solid in the square's own inks. */
.pg-head[data-v="mid"] { display: block; min-height: 0; width: min(880px, 100% - 64px); margin: 176px auto var(--sp-8); padding: var(--sp-8) var(--sp-7); text-align: center; }
.pg-head[data-v="mid"] .pg-head__k, .pg-head[data-v="mid"] .pg-head__ix { display: none; }
.pg-head[data-v="mid"] .pg-head__grain { display: block; }
.pg-head[data-v="mid"] h1 { font-size: min(13.5cqi, 118px); margin: 0; }
.pg-head[data-v="mid"] p { margin: 40px auto 0; font-size: 16px; color: var(--sq-ink-2); }
.pg-head[data-v="mid"] p b { color: var(--sq-ink); font-weight: 500; }
.pg-head[data-v="mid"] .pg-chips { justify-content: center; max-width: none; margin: 40px 0 0; padding: 0;
  --chip: color-mix(in srgb, var(--sq) 90%, var(--sq-ink)); --chip-hover: color-mix(in srgb, var(--sq) 82%, var(--sq-ink));
  --chip-ink: var(--sq-ink-2); --chip-on: var(--sq-ink); --chip-on-ink: var(--sq); }
.pg-head[data-v="mid"] .pg-chip:focus-visible { outline-color: var(--sq-ink); }
.pg-head[data-v="mid"] .pg-chip { height: 36px; padding: 0 16px; font-size: 14px; }   /* the square's one control: a real hit size */
.pg-head[data-v="mid"] .pg-seg { padding: 4px; } .pg-head[data-v="mid"] .pg-seg__on { top: 4px; bottom: 4px; }
@media (max-width: 700px) {
  .pg-head[data-v="mid"] { width: auto; margin: var(--sp-9) var(--page-pad) var(--sp-6); padding: var(--sp-6) 0; }
  .pg-head[data-v="mid"] h1 { font-size: min(17cqi, 118px); }
  .pg-head[data-v="mid"] .pg-chips { justify-content: flex-start; padding: 0 16px; }
}

/* ---- Curated (default): fewer, bigger, quieter ---- */
.pg-name { display: none; }
.pg-pal.pg-pal--page { bottom: 176px; }
.pg-curated .pg-chips, .pg-curated .pg-meta { display: none; }
.pg-curated .pg-card:not([data-cur]) { display: none; }
.pg-curated .pg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-8) var(--sp-7); max-width: calc(var(--page-max) + 2 * var(--page-pad)); padding-inline: var(--page-pad); padding-top: 0; }   /* square → first cards = the rows' own --sp-8 */
.pg-curated .pg-card { order: var(--cur); grid-column: auto; }
.pg-curated .pg-card[data-cur-wide] { grid-column: span 2; }
.pg-curated .pg-face { flex: none; aspect-ratio: 16 / 10; display: grid; place-items: center; }
.pg-curated .pg-card .pg-stage { width: min(440px, 100% - 32px); height: min(340px, 100% - 32px); aspect-ratio: auto; flex: none; min-height: 0; }
.pg-curated .pg-card[data-id="v5-aspect"] .pg-stage { height: 100%; }                         /* the crop needs the plate's height */
.pg-curated .pg-card.is-site .pg-stage, .pg-curated .pg-card[data-id="v5-voice"] .pg-stage, .pg-curated .pg-card[data-id="pipeline"] .pg-stage, .pg-curated .pg-card[data-id="nodes"] .pg-stage, .pg-curated .pg-card[data-id="mark"] .pg-stage, .pg-curated .pg-card[data-id="voxels"] .pg-stage { width: 100%; height: 100%; }   /* pipeline: lines in from the plate edge, cards out past it, like the ref */
.pg-curated .pg-card[data-id="v5-voice"] .pg-face { aspect-ratio: 12 / 5; }
.pg-curated .pg-card[data-id="site-naija"] .pg-face { aspect-ratio: 16 / 9; }
.pg-curated .pg-how { display: flex; align-items: baseline; gap: var(--sp-3); margin-top: var(--sp-4); font: var(--t-micro); }
.pg-curated .pg-name { display: inline; font: var(--t-small); letter-spacing: -.01em; color: var(--ink-2); }
.pg-curated .pg-howtxt { opacity: 0; transition: opacity var(--t-hover-off, 150ms) ease; }
.pg-curated .pg-card:is(:hover, :focus-within) .pg-howtxt { opacity: 1; transition-duration: 150ms; }
@media (hover: none) { .pg-curated .pg-howtxt { opacity: 1; } }
@media (max-width: 900px) {
  .pg-curated .pg-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-7); }
  .pg-curated .pg-card[data-cur-wide] { grid-column: auto; }
  .pg-curated .pg-card[data-id="v5-voice"] .pg-face { aspect-ratio: 4 / 3; }
  .pg-curated .pg-how { flex-direction: column; gap: 4px; }
}

/* the recruiters' note (temporary, while the case studies are rebuilt; Karim, 19 Nov: "a bit more prominent … we have to explain
   them or else they will get the fuck out"): the page's one paragraph, in ink, with a real button */
.pg-note { max-width: calc(640px + 2 * var(--page-pad)); margin: 0 auto var(--sp-8); padding: 0 var(--page-pad); text-align: center; }
.pg-note p { font: var(--t-large); color: var(--ink-2); text-wrap: balance; }
.pg-note b { color: var(--ink); font-weight: 500; }
.pg-note__cta { display: inline-flex; align-items: center; height: 40px; margin-top: var(--sp-5); padding: 0 var(--sp-5); border-radius: 999px; background: var(--ink); color: var(--deep); font: var(--t-small); transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.pg-note__cta:active { transform: scale(.97); }
.pg-note__cta:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) { .pg-note__cta:hover { background: var(--ink-2); } }

/* the bar without a menu (19 Nov): Paris clock left, the mark centred, one action right */
.pg-bar__clock { font: 500 12px/1 Mono, ui-monospace, monospace; letter-spacing: .02em; color: var(--ink-2); }
.pg-bar__cta { height: 28px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; background: var(--ink); color: var(--deep); font: var(--t-mini); font-weight: 500; transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.pg-bar__cta:active { transform: scale(.97); }
.pg-bar__cta:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) { .pg-bar__cta:hover { background: var(--ink-2); } }

/* responsive (19 Nov pass): the action stays right when the clock is hidden; Nodes gets an upright plate on narrow screens */
.pg-bar__cta { margin-left: auto; }
@media (max-width: 900px) { .pg-curated .pg-card[data-id="nodes"] .pg-face { aspect-ratio: 4 / 5; } }

/* recognition under the button (19 Nov: "very cheap … under the book a call … smaller text … why all caps? … the logos of
   the others"): the official marks, monochrome, small, each with a short sentence-case line */
.pg-aw { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3) var(--sp-5); margin: var(--sp-6) 0 0; padding: 0; list-style: none; }
.pg-aw li { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--ink-2); white-space: nowrap; }
.pg-aw__logo { height: 13px; width: auto; display: block; }
.pg-aw__word { font: 500 13px/1 Montreal, sans-serif; letter-spacing: -.02em; color: var(--ink-2); }
.pg-aw__t { font: 400 12px/1 Montreal, sans-serif; color: var(--mute); }
.pg-aw__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* the jury, first (19 Nov: "I would keep the awards jury at the top"): a small line with the mark above the note */
.pg-note p.pg-jury { display: inline-flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-4); font: var(--t-small); color: var(--ink); }
.pg-jury__aw { width: 24px; height: auto; color: var(--ink); }
