@font-face { font-family: 'Space Grotesk'; src: url(/fonts/SpaceGrotesk.woff2) format('woff2'); font-weight: 300 700; font-display: swap; }
:root {
  color-scheme: light;
  --paper: #F6F6F3; --card: #FFFFFF; --ink: #141416; --soft: #5D5E66; --faint: #8A8B94; --line: #E4E4DF;
  --card-top: #FFFFFF; --sheen: rgba(255, 255, 255, .9);
  --l-green: #006837; --l-brown: #B5651B; --l-ochre: #E79C49; --l-red: #811C24;
  --accent: #A8641A; --orange: #E3A04F; --on-orange: #141416; --live: #1F8F5A; --live-bg: #E3F5EC; --dev: #8A6100; --dev-bg: #FBF0D2;
  --board: #EFEDE6; --grain: rgba(20, 20, 22, .07); --note: #FFFFFF; --note-hi: #FBE9CF; --note-ink: #141416; --note-soft: #5D5E66;
  --shadow: 0 1px 2px rgba(20, 20, 22, .04), 0 18px 40px -22px rgba(20, 20, 22, .28);
  --sans: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0F0F11; --card: #18181B; --ink: #F2F2F0; --soft: #A6A7AF; --faint: #7C7D86; --line: #2A2A2F;
    --card-top: #1D1D21; --sheen: rgba(255, 255, 255, .06);
    --l-green: #3DAA6E; --l-brown: #C9772C; --l-ochre: #E9A353; --l-red: #B03440;
    --accent: #E3A04F; --orange: #E3A04F; --on-orange: #141416; --live: #5BD69A; --live-bg: #12301F; --dev: #F2CE6B; --dev-bg: #33290F;
    --board: #17171A; --grain: rgba(255, 255, 255, .05); --note: #232327; --note-hi: #3A2E1E; --note-ink: #F2F2F0; --note-soft: #A6A7AF;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -22px rgba(0, 0, 0, .8);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0F0F11; --card: #18181B; --ink: #F2F2F0; --soft: #A6A7AF; --faint: #7C7D86; --line: #2A2A2F;
  --card-top: #1D1D21; --sheen: rgba(255, 255, 255, .06);
    --l-green: #3DAA6E; --l-brown: #C9772C; --l-ochre: #E9A353; --l-red: #B03440;
    --accent: #E3A04F; --orange: #E3A04F; --on-orange: #141416; --live: #5BD69A; --live-bg: #12301F; --dev: #F2CE6B; --dev-bg: #33290F;
    --board: #17171A; --grain: rgba(255, 255, 255, .05); --note: #232327; --note-hi: #3A2E1E; --note-ink: #F2F2F0; --note-soft: #A6A7AF;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -22px rgba(0, 0, 0, .8);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); }
a { color: inherit; }
img, video { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 24px; }
.label { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 0 0 20px; }

/* header */
header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--paper) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; display: inline-flex; align-items: baseline; gap: 0; }
nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
nav a { text-decoration: none; color: var(--soft); }
nav a:hover { color: var(--ink); }
nav .lang { font: 500 13px var(--mono); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }

/* intro */
.intro { padding-block: 72px 48px; }
.status { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--soft); margin: 0 0 26px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px var(--live-bg); }
h1 { width: fit-content; font-size: clamp(34px, 5vw, 56px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 600; margin: 0 0 22px; max-width: 21ch; text-wrap: balance; }
h1 span { color: var(--faint); }
.lede { font-size: 19px; color: var(--soft); max-width: 58ch; margin: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 30px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--soft); }
.meta b { color: var(--ink); font-weight: 600; }

/* sections, pills and tags (on the notes and in the viewer) */
section { padding-block: 40px; }
.pill { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pill.live { color: var(--live); background: var(--live-bg); }
.pill.dev { color: var(--dev); background: var(--dev-bg); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.tags li { font: 500 12px var(--mono); color: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; }

/* now + about */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .when { font: 500 13px var(--mono); color: var(--faint); padding-top: 3px; }
.timeline b { font-weight: 600; display: block; }
.timeline span { color: var(--soft); font-size: 15px; }
.about p { margin: 0 0 18px; color: var(--soft); font-size: 19px; max-width: 62ch; }
.about p strong { color: var(--ink); font-weight: 600; }
.stack { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.stack li { font-size: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }

/* company + contact */
.company { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
.company div { padding: 16px 18px; border-left: 1px solid var(--line); }
.company div:first-child { border-left: 0; }
.company dt { font-size: 13px; color: var(--faint); margin-bottom: 2px; }
.company dd { margin: 0; font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }
.legal-note { font-size: 14px; color: var(--faint); margin: 12px 0 0; }
.legal-note a { color: var(--soft); }
.contact { margin-top: 24px; }
.contact h2 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 16px; max-width: 18ch; text-wrap: balance; }
.contact .elsewhere { margin: 14px 0 0; font-size: 15px; }
.contact .elsewhere a { color: var(--soft); text-underline-offset: 3px; }
.contact a.mail { font-size: clamp(20px, 2.6vw, 28px); font-weight: 600; color: var(--accent); text-underline-offset: 6px; text-decoration-thickness: 2px; }

footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 32px 44px; color: var(--faint); font-size: 14px; }
footer { border-top: 1px solid var(--line); margin-top: 56px; }
footer nav { font-size: 14px; gap: 18px; }

.doc { padding-block: 48px 20px; }
.doc h1 { font-size: 40px; max-width: none; }
.doc h2 { font-size: 21px; margin: 28px 0 8px; font-weight: 600; }
.doc p { color: var(--soft); max-width: 70ch; }

@media (max-width: 820px) {
  .cols { grid-template-columns: 1fr; }
  .cols { gap: 40px; }
  .company { grid-template-columns: repeat(2, 1fr); }
  .company div:nth-child(3) { border-left: 0; }
  .company div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
/* six sections in the menu: below this width they no longer fit beside the logo */
@media (max-width: 680px) {
  header nav a[href^="#"] { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .intro { padding-block: 40px 24px; }
  .lede { font-size: 17px; }
  .timeline li { grid-template-columns: 76px 1fr; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Uko, the guide */
.guide { position: fixed; right: 22px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: 92px; height: 138px; z-index: 40; }
.guide-bubble { position: fixed; left: 0; top: 0; z-index: 41; max-width: 230px; padding: 9px 13px; border-radius: 14px; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; line-height: 1.4; pointer-events: none; animation: bubble-in .25s cubic-bezier(.2, .8, .2, 1); }
@keyframes bubble-in { from { opacity: 0; scale: .92; } }
@media (max-width: 560px) { .guide { right: 8px; width: 58px; height: 87px; } .guide-bubble { max-width: 190px; font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .guide-bubble { animation: none; } }

/* a support for Uko: the about and the contact are cards */
.panel { position: relative; z-index: 1; background: linear-gradient(180deg, var(--card-top), var(--card)); border: 1px solid var(--line); border-radius: 22px; padding: 28px 30px 30px; box-shadow: inset 0 1px 0 var(--sheen), 0 1px 2px rgba(20, 20, 22, .04), 0 14px 34px -22px rgba(20, 20, 22, .3); }
.panel .label { margin-bottom: 14px; }
@media (max-width: 560px) { .panel { padding: 22px 20px 24px; } }

/* Uko's look: a button bottom left, and its card */
.look-btn { position: fixed; left: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 42; height: 46px; min-width: 46px; padding: 0 16px 0 12px; border-radius: 999px; display: flex; align-items: center; gap: 8px; font: 600 14px var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer; transition: transform .2s ease; }
.look-btn:hover { transform: scale(1.06); }
.look-btn[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
.look-card { position: fixed; left: 18px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 43; width: min(300px, calc(100vw - 36px)); padding: 16px 16px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; animation: bubble-in .2s cubic-bezier(.2, .8, .2, 1); }
.look-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 16px; }
.look-x { border: 0; background: none; color: var(--soft); font-size: 22px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.look-label { margin: 12px 0 6px; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.look-chars { display: flex; flex-wrap: wrap; gap: 6px; }
.look-chip { font: inherit; font-size: 13px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.look-chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.look-hair { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 4px; background: var(--paper); }
.look-hair-name { flex: 1; text-align: center; font-weight: 600; }
.look-arrow { width: 32px; height: 30px; border: 0; border-radius: 9px; background: var(--card); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.look-colors { display: flex; flex-wrap: wrap; gap: 6px; }
.look-swatch { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(20, 20, 22, .18); cursor: pointer; }
.look-swatch[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.look-random { margin-top: 14px; width: 100%; font: inherit; font-weight: 600; padding: 9px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.look-random:hover, .look-chip:hover, .look-arrow:hover { border-color: var(--soft); }
.look-card [hidden] { display: none !important; }
.look-more { display: block; margin-top: 12px; text-align: center; font-size: 13px; color: var(--soft); text-decoration: underline; text-underline-offset: 3px; }
.look-more:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .look-card { animation: none; } .look-btn { transition: none; } }
@media (max-width: 560px) { .look-btn { padding: 0; justify-content: center; } .look-btn-text { display: none; } }

/* the logo: the A and its hat (Uko can borrow the hat) */
/* the first A of the name is the logo's A, wearing its hat */
.brand-logo { height: 1.02em; width: auto; display: inline-block; vertical-align: baseline; overflow: visible; margin: 0 .01em -.03em -.04em; transform: translateY(.03em); }
.l-green { fill: var(--l-green); } .l-brown { fill: var(--l-brown); } .l-ochre { fill: var(--l-ochre); } .l-red { fill: var(--l-red); } .l-white { fill: #FFFFFF; }
.l-brown-s { fill: none; stroke: var(--l-brown); }
.logo-hat { transition: opacity .2s ease; }
.brand.hat-off .logo-hat { opacity: 0; }
.logo-hat-hit { position: absolute; z-index: 2; border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: 8px; }
.logo-hat-hit:focus { outline: none; }
.logo-hat-hit:focus-visible { outline: 2px solid var(--accent); }
.hat-layer { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; overflow: visible; pointer-events: none; }
.hat-click { pointer-events: visiblePainted; cursor: pointer; outline: none; filter: drop-shadow(0 2px 2px rgba(20, 20, 22, .18)); }
.hat-click:focus-visible { outline: 2px solid var(--accent); }
.hat-strap { fill: none; stroke: var(--l-brown); stroke-linecap: round; }
/* what is coming next for each product */
.ai { margin: 2px 0 0; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 7%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); font-size: 14px; color: var(--soft); }
.ai b { display: block; font-size: 12px; letter-spacing: .02em; color: var(--accent); margin-bottom: 4px; }
.ai ul { margin: 0; padding-left: 18px; }
.ai li { margin: 2px 0; }

/* the four content sections (« le tableau »): each is a pale, finely grained board; each piece is
   a paper note held by one orange pin. A click peels the note off and it grows into the viewer. */
.sec { padding-block: 44px; }
.sec-head { margin: 0 0 26px; }
.sec-head .label { display: flex; align-items: center; gap: 10px; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: var(--on-orange); font: 600 11px/1 var(--mono); letter-spacing: 0; }
.sec-title { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; margin: 0; max-width: 26ch; text-wrap: balance; }
.sec-title span { color: var(--faint); }

.board { position: relative; z-index: 1; border-radius: 6px; background-color: var(--board); background-image: radial-gradient(var(--grain) 0.8px, transparent 1.3px), radial-gradient(var(--grain) 0.6px, transparent 1.1px); background-size: 13px 13px, 9px 9px; background-position: 0 0, 5px 7px; box-shadow: inset 0 0 0 1px var(--line); padding: 40px 32px 44px; }
.notes { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 34px 30px; }

.note { position: relative; flex: 0 0 auto; width: 214px; display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 16px; border: 0; border-radius: 2px; text-align: left; font: inherit; color: var(--note-ink); cursor: pointer;
  background: linear-gradient(176deg, var(--note) 78%, color-mix(in srgb, var(--note) 94%, #000));
  box-shadow: 0 1px 1px rgba(0, 0, 0, .06), 0 12px 18px -12px rgba(0, 0, 0, .45);
  transform: rotate(var(--r)); transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s ease, opacity .3s ease; }
.note--hi { background: linear-gradient(176deg, var(--note-hi) 78%, color-mix(in srgb, var(--note-hi) 94%, #000)); }
.note--app { width: 300px; }
.note--tall { width: 170px; }
/* « voir tout » d'une section : lien vers la page complète (/sites/) */
.sec-more { margin: 16px 0 0; }
.sec-more a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: 600 15px/1 var(--sans); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.sec-more a:hover, .sec-more a:focus-visible { border-color: var(--accent); transform: translateX(2px); }
.note--all { align-self: stretch; justify-content: center; min-height: 150px; box-shadow: inset 0 0 0 2px var(--accent), 0 12px 18px -12px rgba(0, 0, 0, .35); }
.note--all .n-meta { color: var(--accent); font-weight: 600; }
.note--all { width: 260px; }
.ghosts { position: relative; display: block; height: 92px; margin: 2px 0 8px; }
.ghosts > span { position: absolute; top: 10px; width: 66px; height: 66px; border-radius: 2px; filter: blur(1.6px); opacity: .9;
  background: repeating-linear-gradient(180deg, transparent 0 12px, rgba(20, 20, 22, .13) 12px 15px) 9px 14px / 46px 40px no-repeat, var(--g);
  box-shadow: 0 6px 10px -6px rgba(0, 0, 0, .35); transform: rotate(var(--t)); }
.ghosts > span:nth-child(1) { left: 0; --g: #FBE9CF; --t: -8deg; }
.ghosts > span:nth-child(2) { left: 54px; top: 2px; --g: #DDEFE3; --t: 5deg; }
.ghosts > span:nth-child(3) { left: 108px; top: 14px; --g: #E3EAF8; --t: -4deg; }
.ghosts > span:nth-child(4) { left: 162px; top: 4px; --g: #F6DCDC; --t: 7deg; }
.ghosts.peek > span { filter: none; opacity: 1; background: var(--card, #fff); overflow: hidden; width: 78px; height: 54px; }
.ghosts.peek > span:nth-child(2) { left: 50px; } .ghosts.peek > span:nth-child(3) { left: 100px; } .ghosts.peek > span:nth-child(4) { left: 150px; }
.ghosts.peek img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ghosts svg { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; color: var(--accent);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }

a.note { color: inherit; text-decoration: none; }
.note:hover, .note:focus-visible { transform: rotate(0deg) translateY(-6px); box-shadow: 0 1px 1px rgba(0, 0, 0, .06), 0 22px 30px -16px rgba(0, 0, 0, .45); }
.note:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.note.is-taken { opacity: 0; transform: rotate(calc(var(--r) * -3)) translateY(-28px) scale(1.04); }

/* a series: its notes share one pin and fan out under it, pivoting on the needle; the one you point at (or tap, on a phone) comes to the front */
.pile { position: relative; flex: 0 0 auto; display: grid; align-items: start; margin-right: 96px; }
.pile > .pin { z-index: 4; }
.pile > .note { grid-area: 1 / 1; z-index: 1; --a: -18deg; transform-origin: 50% 15px; transform: rotate(var(--a)); }
.pile > .note.is-front { z-index: 2; --a: 3deg; }
.pile > .note:focus-visible { z-index: 3; transform: rotate(var(--a)) translateY(-6px); }
/* it comes forward where it hangs, so it never slides out from under the mouse; a touch screen has no hover (it would stick after a tap) */
@media (hover: hover) { .pile > .note:hover { z-index: 3; transform: rotate(var(--a)) translateY(-6px); } }
.pile > .note.is-taken { transform: rotate(calc(var(--r) * -3)) translateY(-28px) scale(1.04); }

/* an office push pin (tools/vitrine.py draws it once, #punaise): leant over, its needle in the paper, shadow cast to the lower right; one colour per section (--pin) */
.pin { position: absolute; top: -22px; left: 50%; width: 22px; height: 37px; margin-left: -11px; overflow: visible; color: var(--pin, #D62828); transform: rotate(-32deg); transform-origin: 50% 98%; filter: drop-shadow(1px 5px 2px rgba(0, 0, 0, .3)); pointer-events: none; }
.pin-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 1px; background: #141416; margin-bottom: 6px; }
.note--app .thumb { aspect-ratio: 16 / 10; }
.note--tall .thumb { aspect-ratio: 9 / 16; }
.thumb { position: relative; }
.thumb picture { display: contents; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
/* the hover preview lets clicks through to its note: removing it under the click would lose the click */
.thumb video { position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.thumb video.is-on { opacity: 1; }
/* a video says so on its still: a play mark and its length */
/* and, beside it, the language it speaks when it is not the page's and « 2 formats » */
.marks { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 1; display: flex; flex-wrap: wrap; gap: 5px; }
.badge, .chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 7px; border-radius: 999px; background: rgba(12, 12, 14, .72); color: #fff; font: 600 11px/1 var(--mono); letter-spacing: .03em; backdrop-filter: blur(4px); }
.chip { padding-inline: 7px; background: rgba(255, 255, 255, .9); color: #141416; }
.badge::before { content: ''; width: 0; height: 0; border-style: solid; border-width: 4.5px 0 4.5px 7px; border-color: transparent transparent transparent currentColor; }
.badge--site::before { content: '↗'; width: auto; height: auto; border: 0; }
.n-title { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.n-text { font-size: 14px; line-height: 1.4; color: var(--note-soft); }
.n-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; font: 500 11px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--note-soft); }
.n-meta .pill { text-transform: none; letter-spacing: 0; font-family: var(--sans); }

/* the viewer: grows out of the note you clicked, plays the full video with sound */
.viewer { padding: 0; border: 0; background: transparent; max-width: min(94vw, 1000px); width: 100%; max-height: 92vh; overflow: visible; }
.viewer[data-shape="tall"] { max-width: min(94vw, 760px); }
.viewer::backdrop { background: color-mix(in srgb, var(--paper) 55%, rgba(8, 8, 10, .75)); backdrop-filter: blur(8px); }
.v-box { position: relative; transform-origin: 0 0; display: grid; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; overflow: auto; overscroll-behavior: contain; box-shadow: var(--shadow); max-height: 92vh; }
.viewer[data-shape="tall"] .v-box { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
.v-media { background: #141416; display: grid; place-items: center; min-width: 0; }
.v-media video, .v-media img { width: 100%; max-height: 64vh; object-fit: contain; }
.viewer[data-shape="tall"] .v-media video { max-height: 86vh; }
.v-text { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 10px; overflow: auto; min-width: 0; }
.v-text h3 { margin: 0; font-size: 26px; letter-spacing: -0.02em; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v-text p { margin: 0; color: var(--soft); max-width: 62ch; }
.v-text .v-kind { font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.v-text .v-note { font-size: 14px; color: var(--faint); }
/* the cuts of one video: its shapes and its languages */
.v-switch { display: flex; flex-wrap: wrap; gap: 8px 14px; padding-right: 40px; }
.v-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--line); }
.v-seg button { border: 0; border-radius: 999px; padding: 6px 12px; background: transparent; color: var(--soft); font: 600 13px/1 var(--sans); cursor: pointer; }
.v-seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.v-seg button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.v-links { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 6px; }
.v-links a { font-weight: 600; color: var(--ink); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.viewer .close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 500 22px/1 var(--sans); cursor: pointer; }
.viewer .close:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

@media (max-width: 700px) {
  .board { padding: 14px 0 30px; margin-inline: -16px; border-radius: 0; box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
  .notes { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; padding: 30px 20px 18px; gap: 22px; scrollbar-width: none; }
  .notes::-webkit-scrollbar { display: none; }
  .note { width: 68vw; max-width: 260px; scroll-snap-align: start; }
  .note--app { width: 78vw; max-width: 320px; }
  .note--tall, .note--both { width: 52vw; max-width: 200px; }
  .note--both .thumb { aspect-ratio: 9 / 16; }
  .pile { scroll-snap-align: start; margin-right: 84px; }
  .viewer[data-shape="tall"] .v-box { grid-template-columns: 1fr; }
  .viewer[data-shape="tall"] .v-media video { max-height: 62vh; }
  .v-text { padding: 18px 18px 22px; }
}
@media (prefers-reduced-motion: reduce) { .note { transition: none; } }
