/* ── Base — shared by every page (the landing and the projects hub) ─────────
   Token-free on purpose: each page brings its own look as tokens; this file only
   needs --accent, or --focus where the accent is too light for a 3:1 ring. */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* one focus ring everywhere (WCAG 2.4.7, 3:1 via --focus) */
:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }   /* <symbol>s used by <svg><use href="#…"> */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* first Tab stop, hidden until focused (WCAG 2.4.1); system colours follow each page's color-scheme */
.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 1000; padding: 10px 16px; border-radius: 6px;
  background: Canvas; color: CanvasText; border: 1px solid var(--focus, var(--accent)); text-decoration: none;
  transition: top .12s ease;
}
.skip-link:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── AI whitepapers — a 1:1 rebuild of ai-whitepapers.framer.website ───────────
   Measurements, colours and type are read off the Framer page at 1280px (Inter
   with its optical-size axis, Poppins only in the search pill). Desktop from
   810px, Framer's breakpoint; below it the nav collapses and cards stay open.
   Reset, focus ring and skip link come from ../../assets/base.css. */
:root {
  --bg: #000;
  --fg: #fff;
  --dim: #777;                       /* hero subtitle, footer links */
  --mute: rgba(255, 255, 255, .6);   /* year, description */
  --nav-dim: #9C9D9E;
  --edge: #2E2E2E;                   /* card rim */
  --edge-2: #222;                    /* buttons, dividers */
  --field: rgba(187, 187, 187, .15);
  --chip: #1D1D1D;
  --glow: #0E00CF;
  --accent: #fff;
  --sans: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.3, 1.15, .5, 1);   /* Framer's springs: fast, a hair past the mark, settle */
}
html { color-scheme: dark; scroll-padding-top: 100px; }
body { background: var(--bg); color: var(--fg); font-family: var(--sans); font-optical-sizing: auto; overflow-x: hidden; }
a { text-decoration: none; }
input { font: inherit; color: inherit; background: none; border: 0; outline: 0; min-width: 0; }
input::placeholder { color: rgba(255, 255, 255, .4); }
input:focus-visible { outline: 0; }
:is(.field):focus-within { box-shadow: 0 0 0 2px var(--fg); }

/* ── nav: one floating pill ──────────────────────────────────────────────── */
.nav { position: fixed; top: 12px; left: 50%; translate: -50% 0; z-index: 50; padding: 12px; border-radius: 99px;
  background: rgba(1, 5, 15, .5); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.nav-links { display: flex; gap: 10px; }
.nav-links > * { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 12px 16px; border-radius: 99px;
  font-size: 16px; font-weight: 500; line-height: 1.2; color: var(--nav-dim); white-space: nowrap; transition: color .2s; }
.nav-links > :hover { color: var(--fg); }
.nav-links .on { background: var(--fg); color: #1E2024; }
.nav-links svg { width: 24px; height: 24px; flex: none; }
.nav-current, .nav-burger { display: none; }
.nav-links .nav-lang { min-width: 50px; justify-content: center; padding-inline: 12px; box-shadow: inset 0 0 0 1px var(--edge-2); font-size: 14px; letter-spacing: .04em; }

/* ── hero ────────────────────────────────────────────────────────────────── */
/* hero: copy left, the two story cards right, on a faint grid that fades out */
.hero { position: relative; overflow: hidden; padding: 120px 20px 40px; }
.hero-grid { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 48px; align-items: center; align-content: center; max-width: 1160px; min-height: 70vh; margin: 0 auto; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero-copy > * { animation: rise .6s var(--ease) backwards; }
.hero-copy > :nth-child(2) { animation-delay: .15s; } .hero-copy > :nth-child(3) { animation-delay: .3s; } .hero-copy > :nth-child(4) { animation-delay: .45s; }
.hero-lead { margin-top: 20px; max-width: 520px; font-size: 18px; line-height: 1.55; color: var(--mute); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-cta .btn-start { padding: 0 26px; }
.btn-ghost { display: inline-flex; align-items: center; height: 56px; padding: 0 24px; border-radius: 99px; box-shadow: inset 0 0 0 1px #3A3A3A; font-weight: 600; transition: background .2s; }
.btn-ghost:hover { background: #161616; }
.hero-in > .podcast { grid-column: 1; grid-row: 2; align-self: start; width: 520px; margin-top: 36px; animation: rise .6s var(--ease) .6s backwards; }
.hero-cards { grid-column: 2; grid-row: 1 / span 2; }
.hero-cards { position: relative; height: 480px; }
.hc { position: absolute; top: 50%; left: 50%; width: 250px; aspect-ratio: 9 / 16; margin: calc(250px * -16 / 9 / 2) 0 0 -125px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, #13233f, #050505 75%); box-shadow: 0 30px 60px rgba(0, 0, 0, .6), inset 0 0 0 1px #2E2E2E;
  animation: card-in .8s var(--ease) backwards; transition: translate .3s var(--spring), rotate .3s var(--spring); }
.hc-1 { z-index: 2; transform: translateX(-70px); rotate: 6deg; animation-delay: .5s; }
.hc-2 { transform: translateX(110px); rotate: -6deg; animation-delay: .3s; background: linear-gradient(180deg, #2a1640, #050505 75%); }
.hc:hover { translate: 0 -10px; }
.hc-1:hover { rotate: 9deg; } .hc-2:hover { rotate: -9deg; }
.hc img { position: absolute; top: 9%; left: 50%; width: 62%; height: auto; translate: -50% 0; rotate: -4deg; border-radius: 4px; box-shadow: 0 20px 40px rgba(0, 0, 0, .6); }
.hc-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .95) 30%, transparent 68%); }
.hc-body { position: absolute; inset: auto 0 0; display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.hc-k { align-self: flex-start; padding: 4px 9px; border-radius: 99px; background: rgba(29, 29, 29, .9); font-size: 11px; font-weight: 600; }
.hc b { font-size: 17px; line-height: 1.25; letter-spacing: -0.01em; }
.hc-go { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .7); }
@keyframes rise { from { opacity: 0; translate: 0 20px; } }
@keyframes card-in { from { opacity: 0; translate: 50px 0; } }
h1 { display: flex; flex-direction: column; font-weight: 700; }
.hero h1 { text-align: left; }
.h1-a { font-size: 52px; line-height: 1.2; letter-spacing: -0.04em; }
.h1-a small { font-size: 14px; letter-spacing: -0.03em; }
.h1-b { font-size: 40px; line-height: 1.2; letter-spacing: -0.04em; color: var(--dim); }
.podcast { width: 559px; max-width: 100%; height: 152px; margin-top: 24px; border: 0; border-radius: 12px; display: block;
  color-scheme: normal; }   /* a dark page + a light-scheme embed = an opaque white canvas behind the iframe; matching schemes keeps it transparent */

/* ── search: full screen over a dimmed page ─────────────────────────────── */
.srch { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; align-items: flex-start; padding: 169px 20px 40px;
  background: rgba(0, 0, 0, .72); opacity: 0; transition: opacity .2s; }
.srch[hidden] { display: none; }
.srch.open { opacity: 1; }
.srch-box { display: flex; flex-direction: column; width: 650px; max-width: 100%; max-height: 100%; border-radius: 16px; background: #000;
  box-shadow: 0 0 0 1px #1A1A1A; translate: 0 -10px; scale: .98; transition: translate .4s var(--spring), scale .4s var(--spring); }
.srch.open .srch-box { translate: 0 0; scale: 1; }
.srch-row { display: flex; align-items: center; gap: 14px; height: 87px; flex: none; padding: 0 24px; }
.srch-row > svg { width: 22px; height: 22px; flex: none; }
.srch-row input { flex: 1; font-size: 32px; line-height: 1.2; }
.srch-row input::-webkit-search-cancel-button { display: none; }
.srch-x { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .85); color: #000; font-size: 15px; line-height: 1; }
.srch-x[hidden] { display: none; }
.srch-list { list-style: none; overflow-y: auto; padding-bottom: 8px; }
.srch-list a { display: block; padding: 14px 24px; transition: background .15s; }
.srch-list a:is(:hover, :focus-visible) { background: #1A1A1A; outline: 0; }
.srch-list :is(b, small) { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srch-list b { font-size: 15px; font-weight: 500; }
.srch-list small { margin-top: 4px; font-size: 13px; color: var(--mute); }
.srch-empty { padding: 14px 24px 22px; color: var(--mute); }

/* ── library: filters left, cards right ─────────────────────────────────── */
.lib { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; max-width: 1160px; margin: 120px auto 0; padding: 0 20px; }
.filters { display: flex; flex-direction: column; }
.filters h2 { font-size: 32px; line-height: 1; font-weight: 600; letter-spacing: .03em; margin-bottom: 24px; }
.f-group { display: flex; flex-direction: column; gap: 8px; padding-block: 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--edge-2); }
.f-label { font-size: 14px; font-weight: 500; line-height: 1.2; color: rgba(255, 255, 255, .9); }
.field { display: flex; align-items: center; gap: 8px; width: 264px; max-width: 100%; height: 40px; padding: 0 12px; border-radius: 10px;
  background: var(--field); box-shadow: inset 0 0 0 1px rgba(136, 136, 136, .1); font-size: 14px; }
.field svg { width: 14px; height: 14px; flex: none; color: rgba(255, 255, 255, .7); }
.field input { flex: 1; }
.field input[type="date"] { color: rgba(255, 255, 255, .4); }
.field input[type="date"]:is(.set, :focus) { color: var(--fg); }   /* .set: has a date (whitepapers.js) */
.field input::-webkit-calendar-picker-indicator { display: none; }
.cal { display: grid; place-items: center; width: 24px; height: 24px; margin-right: -4px; flex: none; border-radius: 6px; color: rgba(255, 255, 255, .6); transition: color .2s; }
.cal:hover { color: var(--fg); }
.cal svg { width: 16px; height: 16px; }
.chips { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; padding: 12px; border-radius: 12px; background: var(--chip); box-shadow: inset 0 0 0 1px #757575; color: #9E9E9E; font-size: 14px; line-height: 1.2;
  transition: color .2s, background .2s; }
.chip::after { content: ""; width: 0; height: 8px; margin-left: 0; border-radius: 50%; background: #5ED35F; opacity: 0; scale: .4;
  transition: width .35s var(--spring), margin-left .35s var(--spring), opacity .2s, scale .35s var(--spring); }
.chip[aria-pressed="true"] { background: var(--fg); color: #000; }
.chip[aria-pressed="true"]::after { width: 8px; margin-left: 10px; opacity: 1; scale: 1; }
.btn-line { display: grid; place-items: center; border-radius: 10px; background: #000; box-shadow: inset 0 0 0 1px var(--edge-2); font-size: 14px; font-weight: 600; line-height: 1.2; transition: background .2s; }
.btn-line:hover { background: #111; }
.btn-clear { height: 54px; }

.cards { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 388px)); gap: 20px; align-items: start; }
.card a { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; overflow: hidden; background: #000;
  box-shadow: inset 0 0 0 1px var(--edge); font-size: 16px; line-height: 1.5; letter-spacing: -0.02em; }
.card a:focus-visible { outline-offset: 2px; border-radius: 16px; }
/* the blue glow waits outside the top-left corner and slides in on hover */
.glow { position: absolute; left: -76px; top: -73px; width: 176px; height: 176px; border-radius: 50%; background: var(--glow); filter: blur(30px);
  translate: -117px -60px; scale: .74;   /* at rest: Framer's 130px circle at (-170, -110), its blur clear of the card */ transition: translate .5s var(--ease), scale .5s var(--ease); pointer-events: none; }
/* the cover, and the first page that fans out from behind it */
.media { position: relative; height: 207px; }
.media img { position: absolute; left: 50%; border-radius: 8px; width: auto; max-width: none; transition: translate .5s var(--ease), rotate .5s var(--ease), opacity .4s; }
.front { z-index: 1; top: 16px; height: 175px; translate: -50% 0; }
.back { top: 41px; height: 154px; translate: calc(-50% + 17px) 0; opacity: 0; }
.title { color: rgba(255, 255, 255, .9); }
.year, .desc { color: var(--mute); }
.desc { display: none; }
@media (hover: hover) {
  .card a:is(:hover, :focus-visible) .glow { translate: 0 0; scale: 1; }
  .card a:is(:hover, :focus-visible) .front { translate: calc(-50% - 35px) 0; }
  .card a:is(:hover, :focus-visible) .back { translate: calc(-50% + 67px) 5px; rotate: 15deg; opacity: 1; }
  .cards:not(.js) .card a:is(:hover, :focus-visible) .year { display: none; }   /* without JS: the plain swap */
  .cards:not(.js) .card a:is(:hover, :focus-visible) .desc { display: block; }
  .cards.js .card a:is(:hover, :focus-visible) .desc { grid-template-rows: 1fr; opacity: 1; margin-top: 0; }
  .cards.js .card a:is(:hover, :focus-visible) .year { grid-template-rows: 0fr; opacity: 0; margin-top: -10px; }
}
/* with JS each text sits in an inner span, so its row can fold from 0 to its own height */
.cards.js :is(.desc, .year) { display: grid; transition: grid-template-rows .4s var(--spring), margin-top .4s var(--spring), opacity .3s; }
.cards.js :is(.desc, .year) > span { min-height: 0; overflow: hidden; }
.cards.js .desc { grid-template-rows: 0fr; opacity: 0; margin-top: -10px; }   /* -10px: the card's gap, so a folded row takes no space */
.cards.js .year { grid-template-rows: 1fr; }
.empty { padding: 24px 0; color: var(--mute); }
.btn-more { width: 100%; height: 40px; margin-top: 40px; border-radius: 12px; }
.btn-more[hidden] { display: none; }

/* ── footer ──────────────────────────────────────────────────────────────── */
.foot { margin-top: 40px; padding: 100px 20px; border-top: 1px solid #111; }
.foot-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; max-width: 960px; margin: 0 auto; }
.foot-cols { display: flex; gap: 40px; }
.foot-cols div { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; letter-spacing: -0.01em; font-weight: 500; }
.foot-cols b { font-weight: 500; line-height: 1; }
.foot-cols :is(a, span) { color: var(--dim); }
.foot-cols a:hover { color: var(--fg); }
.foot-copy { font-size: 15px; line-height: 1; letter-spacing: -0.01em; font-weight: 500; color: var(--dim); }

/* ── article page: the source's first page left, the summary right ──────── */
.art { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; max-width: 1180px; margin: 0 auto; padding: 140px 40px 0; }
.art-side { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 24px; }
.art-page { position: relative; display: block; }
.art-page img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 10px 30px rgba(255, 255, 255, .08); }
.art-src { position: absolute; left: 50%; bottom: -18px; translate: -50% 0; display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 99px;
  background: #1D1D1D; box-shadow: inset 0 0 0 1px var(--edge); white-space: nowrap; font-size: 15px; font-weight: 500; transition: background .2s; }
.art-page:hover .art-src { background: #2A2A2A; }
.art-src svg, .art-status svg, .art-actions svg { width: 20px; height: 20px; flex: none; }
.art-lic { margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 13px; color: #888; }
.art-lic b { padding: 1px 6px; border: 1px solid #888; border-radius: 3px; font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.art-lic a { text-decoration: underline; }
.art-lic a:hover { color: var(--fg); }
.art-status { display: flex; align-items: flex-start; gap: 14px; padding-left: 4px; font-size: 15px; line-height: 1.3; color: rgba(255, 255, 255, .85); }

.art-main { min-width: 0; }
.art-date { font-size: 15px; color: #888; }
.art-date time { margin-left: 6px; color: rgba(255, 255, 255, .85); }
h1.art-h { display: block; margin-top: 12px; font-size: 40px; line-height: 1.2; letter-spacing: -0.04em; }
.art-orig { margin-top: 8px; font-size: 14px; color: #888; }
.art-orig i { font-style: normal; color: rgba(255, 255, 255, .7); }
.art-by { margin-top: 8px; font-size: 15px; color: #888; }
.art-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.art-actions .btn-line { display: inline-flex; gap: 10px; height: 50px; padding: 0 18px; font-weight: 500; font-size: 15px; background: #111; }
.art-actions .btn-line:hover { background: #1D1D1D; }
.tabs { display: inline-flex; gap: 4px; margin-top: 24px; padding: 6px; border-radius: 8px; background: rgba(51, 51, 51, .6); }
.tabs button { padding: 8px 12px; border-radius: 6px; font-size: 15px; color: rgba(255, 255, 255, .85); transition: background .2s, color .2s; }
.tabs [aria-selected="true"] { background: var(--fg); color: #000; }

.prose { margin-top: 28px; font-size: 18px; line-height: 1.5; color: rgba(255, 255, 255, .75); }
.prose > * + * { margin-top: 20px; }
.prose :is(h2, h3) { color: var(--fg); line-height: 1.4; }
.prose h2 { font-size: 30px; }
.prose h3 { font-size: 26px; }
.prose * + :is(h2, h3) { margin-top: 48px; }
.prose strong { color: rgba(255, 255, 255, .92); }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 12px; }
.prose a { text-decoration: underline; }
.prose code { font-family: 'Fragment Mono', ui-monospace, monospace; font-size: .9em; }
.tip { padding: 16px 24px 24px; border-radius: 16px; background: #1D1D1D; }
.tip p:last-child { margin-top: 16px; font-family: 'Fragment Mono', ui-monospace, monospace; font-size: 16px; line-height: 1.3; color: var(--fg); white-space: pre-line; }
.tip .tip-k { display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--fg); color: #000; font-size: 12px; font-weight: 600; }
.video { aspect-ratio: 560 / 315; border-radius: 12px; overflow: hidden; }
.video iframe { width: 100%; height: 100%; border: 0; }

.coffee { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 64px; }
.coffee p { padding: 10px 22px; border-radius: 12px; background: var(--fg); color: #000; font-size: 14px; font-weight: 600; }
.coffee-row { display: flex; gap: 12px; }
.coffee-row a { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 96px; padding: 14px 0; border-radius: 12px; background: var(--fg); color: #000;
  font-size: 13px; font-weight: 600; transition: translate .3s var(--spring); }
.coffee-row a:hover { translate: 0 -3px; }
.coffee-row svg { width: 26px; height: 26px; color: #2E9E4F; }

/* ── collections: cards, the collection page and the takeaway deck ─────── */
.nav-links .on-sub { color: var(--fg); }
.cols-sec { max-width: 1160px; margin: 120px auto 0; padding: 0 20px; }
.cols-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.cols-head h2 { font-size: 32px; font-weight: 600; letter-spacing: .03em; }
.cols-head a { color: var(--nav-dim); font-weight: 500; transition: color .2s; }
.cols-head a:hover { color: var(--fg); }
.col-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.col-card a { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 16px; overflow: hidden; background: #0A0A0A;
  box-shadow: inset 0 0 0 1px var(--edge); transition: translate .4s var(--spring), box-shadow .3s; }
.col-card a:hover { translate: 0 -4px; box-shadow: inset 0 0 0 1px #4A4A4A; }
.col-cover { position: relative; display: block; height: 170px; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, hsl(var(--h) 85% 55% / .55), transparent 60%), linear-gradient(135deg, hsl(var(--h) 60% 18%), #0A0A0A); }
.col-cover img { position: absolute; bottom: -30px; left: 50%; width: 96px; height: auto; max-width: none; border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
  translate: -50% 0; transition: translate .5s var(--ease), rotate .5s var(--ease); }
.col-cover img:nth-child(2) { translate: calc(-50% - 78px) 16px; rotate: -10deg; }
.col-cover img:nth-child(3) { translate: calc(-50% + 78px) 16px; rotate: 10deg; }
.col-card a:hover .col-cover img:nth-child(1) { translate: -50% -8px; }
.col-card a:hover .col-cover img:nth-child(2) { translate: calc(-50% - 92px) 10px; rotate: -14deg; }
.col-card a:hover .col-cover img:nth-child(3) { translate: calc(-50% + 92px) 10px; rotate: 14deg; }
.col-emoji { position: absolute; top: 146px; left: 22px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: #1D1D1D; box-shadow: 0 0 0 4px #0A0A0A; font-size: 24px; }
/* collection icons (Feather): line icons tinted with the collection's hue */
.fi { flex: none; width: 15px; height: 15px; color: hsl(var(--h) 85% 72%); }
.fi-lg { width: 22px; height: 22px; }
.col-hero-art .fi-lg { width: 28px; height: 28px; }
:is(.side-cols, .art-cols, .tk-links) a { display: inline-flex; align-items: center; gap: 7px; }
.col-title { padding: 40px 22px 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.col-foot { display: flex; justify-content: space-between; margin-top: auto; padding: 28px 22px 20px; color: var(--mute); font-size: 15px; }
.col-read { color: var(--fg); font-weight: 600; }

.cols-page, .col-page { max-width: 1000px; margin: 0 auto; padding: 140px 20px 0; }
/* collection page: the collection's papers as a feed on the left, recommendations on the right */
.col-2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; max-width: 1160px; }
.col-2 .col-hero { grid-template-columns: 200px minmax(0, 1fr); }
.col-2 .col-hero-art { height: 140px; }
/* collection posts: round avatar, text, optional picture/clip, an action row */
.cp-list { list-style: none; margin-top: 48px; }
.cp { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 22px 0; border-top: 1px solid #1A1A1A; }
.cp-av img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: top; background: #111; box-shadow: inset 0 0 0 1px var(--edge); }
.cp-main { min-width: 0; }
.cp-kicker { margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #5C5C5C; font-variant-numeric: tabular-nums; }
.cp h2 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
.cp h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cp-by { margin-top: 4px; font-size: 14px; color: #888; }
.cp-desc { margin-top: 12px; max-width: 64ch; font-size: 16px; line-height: 1.65; letter-spacing: .005em; color: #E4E4E4; }   /* a solid softer white: alpha would blur the anti-aliasing */
.cp-src { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 13px; line-height: 1.45; color: #777; }
.cp-src svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.cp-src a { color: #A9A9A9; text-decoration: underline; text-decoration-color: #444; text-underline-offset: 3px; }
.cp-src a:hover { color: var(--fg); text-decoration-color: currentColor; }
.cp-media { display: block; width: 100%; margin-top: 14px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--edge); object-fit: cover; aspect-ratio: 16 / 9; background: #111; }
.cp-ph { position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 0% 0%, hsl(var(--h) 85% 55% / .5), transparent 60%), linear-gradient(135deg, hsl(var(--h) 55% 16%), #0A0A0A); }
.cp-ph img { position: absolute; left: 50%; top: 14%; width: 38%; height: auto; translate: -50% 0; rotate: -4deg; border-radius: 4px; box-shadow: 0 24px 48px rgba(0, 0, 0, .6);
  transition: rotate .5s var(--ease), translate .5s var(--ease); }
.cp-ph:hover img { rotate: 0deg; translate: -50% -6px; }
/* video stand-in: darker frame, play button, duration and sound badge like a real clip */
.cp-ph-video::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
.cp-play { position: absolute; z-index: 1; top: 50%; left: 50%; translate: -50% -50%; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: #000; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: scale .3s var(--spring); }
.cp-play svg { width: 24px; height: 24px; margin-left: 3px; fill: currentColor; }
.cp-ph-video:hover .cp-play { scale: 1.08; }
.cp-dur, .cp-mute { position: absolute; z-index: 1; bottom: 12px; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .7); color: var(--fg); font-size: 12px; font-weight: 600; }
.cp-dur { left: 12px; font-variant-numeric: tabular-nums; }
.cp-mute { right: 12px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 50%; }
.cp-mute svg { width: 16px; height: 16px; }
.cp-acts { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; max-width: 560px; }
.cp-act { display: inline-flex; align-items: center; gap: 7px; padding: 6px 8px; margin-left: -8px; border-radius: 99px; font-size: 14px; color: #888;
  font-variant-numeric: tabular-nums; transition: color .2s, background .2s; }
.cp-act svg { width: 18px; height: 18px; flex: none; }
:is(a, button).cp-act:hover { color: var(--fg); background: #161616; }
.cp-act-end { margin-left: 0; }
.cp-act.done { color: #5ED35F; }
/* hover/focus label above each action, saying what it does */
.cp-act[data-tip] { position: relative; }
.cp-act[data-tip]::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; translate: -50% 4px; z-index: 3;
  padding: 5px 9px; border-radius: 7px; background: #EDEDED; color: #000; font-size: 12px; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s, translate .2s var(--ease); }
.cp-act[data-tip]:is(:hover, :focus-visible)::after { opacity: 1; translate: -50% 0; transition-delay: .25s; }
[data-stat]:empty { display: none; }
.col-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
.col-side h2 { margin-top: 8px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.side-search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 14px; background: var(--field);
  box-shadow: inset 0 0 0 1px rgba(136, 136, 136, .1); color: rgba(255, 255, 255, .5); font-size: 15px; transition: color .2s; }
.side-search:hover { color: var(--fg); }
.side-search svg { width: 18px; height: 18px; }
.rec-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.rec { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.rec-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rec-title { font-size: 15px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rec-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.rec-by { font-size: 13px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-meta { font-size: 13px; color: rgba(255, 255, 255, .75); }
.rec-btn { padding: 7px 14px; border-radius: 10px; box-shadow: inset 0 0 0 1px #3A3A3A; font-size: 14px; font-weight: 600; transition: background .2s; }
.rec-btn:hover { background: #1D1D1D; }
.side-cols { display: flex; flex-wrap: wrap; gap: 8px; }
.side-cols a { padding: 6px 12px; border-radius: 99px; background: #161616; box-shadow: inset 0 0 0 1px var(--edge); font-size: 13px; }
.side-cols a:hover { background: #222; }
.cols-h { display: block; font-size: 42px; letter-spacing: -0.04em; }
.cols-lead { margin: 12px 0 40px; max-width: 620px; font-size: 18px; line-height: 1.5; color: var(--mute); }
.crumbs { font-size: 14px; color: #888; }
.crumbs a:hover { color: var(--fg); }
.crumbs span { color: rgba(255, 255, 255, .85); }
.col-hero { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px 36px; align-items: center; margin-top: 32px; }
.col-hero-art { position: relative; height: 170px; border-radius: 16px; overflow: hidden; }
.col-hero-art .col-emoji { top: 50%; left: 50%; translate: -50% -50%; width: 64px; height: 64px; box-shadow: 0 0 0 6px rgba(0, 0, 0, .35); }
.col-hero h1 { display: block; font-size: 40px; line-height: 1.15; letter-spacing: -0.04em; }
.col-desc { margin-top: 10px; font-size: 18px; line-height: 1.5; color: rgba(255, 255, 255, .75); }
.col-stats { margin-top: 14px; font-size: 14px; color: #888; }
.btn-start { display: inline-flex; justify-content: center; align-items: center; height: 56px; border-radius: 99px; background: var(--fg); color: #000;
  font-weight: 600; font-size: 16px; transition: scale .3s var(--spring); }
.btn-start:hover { scale: 1.03; }

.art-cols { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: #888; }
.art-cols a { padding: 4px 10px; border-radius: 99px; background: #161616; box-shadow: inset 0 0 0 1px var(--edge); color: rgba(255, 255, 255, .85); }
.art-cols a:hover { background: #222; }

/* takeaway feed: one full-height reel per screen, snapping like short-video apps */
html:has(.feed) { scroll-snap-type: y mandatory; scroll-padding-top: 0; }
body.feed .nav, body.feed .foot, body.feed .skip-link { display: none; }
.feed { position: relative; }
.reel { position: relative; display: flex; justify-content: center; align-items: center; gap: 18px; height: 100vh; height: 100dvh; padding: 20px 0;
  scroll-snap-align: start; scroll-snap-stop: always; }
.reel-frame { position: relative; height: 100%; aspect-ratio: 9 / 16; max-width: calc(100vw - 32px); border-radius: 16px; overflow: hidden; background: #050505; }
.reel-vis { position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(130% 80% at 50% 0%, hsl(var(--h) 80% 45% / .55), transparent 70%), linear-gradient(180deg, hsl(var(--h) 45% 14%), #050505 75%); }
.reel-foot, .feed-prog { display: none; }
.reel-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-art { position: absolute; inset: 0; display: grid; justify-items: center; padding-top: 12%; }
.reel-art img { width: 58%; height: auto; border-radius: 6px; rotate: -4deg; box-shadow: 0 30px 60px rgba(0, 0, 0, .6); opacity: .9; }
.reel-shade { position: absolute; inset: auto 0 0; height: calc(72% + 28% * var(--p)); pointer-events: none;
  background: linear-gradient(0deg, rgba(0, 0, 0, .96) 0%, rgba(0, 0, 0, calc(.85 + .1 * var(--p))) calc(52% + 18% * var(--p)), transparent 100%); }
.reel-body { position: absolute; inset: auto 0 0; max-height: 100%; overflow-y: auto; padding: 24px 22px 30px; scrollbar-width: none; }
.reel-body::-webkit-scrollbar { display: none; }
.reel-body h2 { margin-top: 14px; font-size: 25px; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.reel-t { margin-top: 10px; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .85); }
.reel-src { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, .6);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reel-src svg { width: 16px; height: 16px; flex: none; }
.reel-src:hover { color: var(--fg); }
.reel-prog { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .2); }
.reel-prog i { display: block; height: 100%; border-radius: 3px; background: var(--fg); }
.reel-mute { position: absolute; top: 14px; left: 14px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.reel-mute svg { width: 22px; height: 22px; }
.reel-side { display: flex; flex-direction: column; align-items: center; gap: 18px; align-self: flex-end; padding-bottom: 12px; }
.reel-av img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: top; box-shadow: 0 0 0 2px var(--fg); }
.reel-act { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.reel-act svg { box-sizing: content-box; width: 22px; height: 22px; padding: 13px; border-radius: 50%; background: #1D1D1D; transition: background .2s; }
.reel-act:hover svg { background: #2E2E2E; }
.reel-n { font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.reel-done .reel-body { inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
/* a hairline around the whole card, drawn on top so the picture can't cover it */
.reel-frame::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; box-shadow: inset 0 0 0 1px #2A2A2A; pointer-events: none; }
/* end card: what to read next, and confetti */
.nx-h { margin-top: 28px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #777; }
.nx-grid { display: grid; gap: 10px; margin-top: 12px; width: 100%; text-align: left; }
/* a suggestion: picture (the card's own, or the paper's first page on its tint) + the teaser + the paper.
   Phones: thumbnail beside the text; desktop: picture on top (below, in the min-width query). */
.nx { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); border-radius: 16px; overflow: hidden; background: #161616;
  transition: translate .35s var(--spring), background .2s; }
.nx::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none; transition: box-shadow .2s; }
.nx:hover { translate: 0 -4px; background: #1B1B1B; }
.nx:hover::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.nx-vis { position: relative; overflow: hidden; min-height: 100px;
  background: radial-gradient(130% 90% at 30% 0%, hsl(var(--h) 80% 45% / .55), transparent 70%), hsl(var(--h) 40% 12%); }
.nx-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease); }
/* the page peeks up from the bottom edge, title side showing */
.nx-art { position: absolute; inset: 0; display: grid; justify-items: center; align-items: start; padding-top: 14%; }
.nx-art img { width: 54%; border-radius: 4px; rotate: -4deg; box-shadow: 0 18px 40px rgba(0, 0, 0, .6); transition: rotate .5s var(--spring), translate .5s var(--spring); }
.nx:hover .nx-art img { rotate: -1deg; translate: 0 -6%; }
.nx:hover .nx-media { scale: 1.05; }
.nx-k { display: none; }
.nx-body { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.nx b { font-size: 15px; line-height: 1.3; letter-spacing: -.01em; }
.nx-paper { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.nx-paper img { flex: none; width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.nx small { font-size: 12px; color: #888; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.reel-done .reel-body { overflow-y: auto; }
.confetti { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; pointer-events: none; }
/* ── desktop: a wide card (picture left, text right, paper + actions in a footer), a progress rail on the left */
@media (min-width: 810px) {
  .reel { gap: 0; padding: 40px 0; }
  .reel-frame { display: grid; grid-template-columns: 2fr 3fr; width: min(1060px, calc(100vw - 260px)); height: min(640px, calc(100dvh - 80px));
    aspect-ratio: auto; max-width: none; border-radius: 22px; background: #0D0D0D; box-shadow: inset 0 0 0 1px #222, 0 30px 80px rgba(0, 0, 0, .5);
    opacity: .35; translate: 0 28px; transition: opacity .6s var(--ease), translate .7s var(--ease); }   /* --p jumps: no reveal animation on desktop */
  .reel.in .reel-frame { opacity: 1; translate: 0 0; }
  .reel-vis { position: relative; inset: auto; }
  .reel-art { padding-top: 0; align-content: center; }
  .reel-art img { width: 66%; }
  .reel-shade { display: none; }
  .reel-vis { background: radial-gradient(130% 90% at 30% 0%, hsl(var(--h) 80% 45% / .5), transparent 70%), hsl(var(--h) 40% 12%); }
  .tk-ex { opacity: 1; } .tk-ex-in { translate: none; }
  .reel-body { position: static; display: flex; flex-direction: column; justify-content: center; max-height: none; padding: 40px 48px 28px; }
  .reel-body h2 { font-size: 30px; }
  .reel.tk-hook .reel-body h2 { font-size: 36px; }
  .reel-t { font-size: 17px; line-height: 1.6; max-width: 52ch; }
  .reel-src, .reel-side, .reel-prog { display: none; }
  .reel-foot { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 18px; border-top: 1px solid #222; }
  .reel-body > .tk-k { margin-top: auto; }
  .reel-body .tk-more { align-self: flex-start; }   /* centre the text block, footer pinned at the bottom */
  .reel-paper { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; margin-right: 8px; }
  .reel-paper img { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; object-position: top; box-shadow: inset 0 0 0 1px #333; }
  .reel-paper span { display: flex; flex-direction: column; min-width: 0; }
  .reel-paper b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .reel-paper small { font-size: 12px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .reel-paper:hover b { text-decoration: underline; text-underline-offset: 3px; }
  .reel-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; color: #999; transition: background .2s, color .2s; }
  .reel-icon:hover { background: #1D1D1D; color: var(--fg); }
  .reel-icon.done { color: #5ED35F; }
  .reel-icon svg { width: 19px; height: 19px; }
  .reel-done .reel-frame { display: flex; justify-content: center; align-items: center; }
  .reel-done .reel-body { position: static; }
  .reel-done .reel-body { max-width: 820px; }
  .nx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .nx { grid-template-columns: none; grid-template-rows: auto 1fr; }
  .nx-vis { aspect-ratio: 16 / 10; min-height: 0; }
  .nx-k { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px;
    background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); font-size: 12px; font-weight: 500; color: #EDEDED; }
  .nx-k svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
  .nx-body { padding: 14px 16px 16px; }
  /* the rail: one tick per card. feed.js sets --row, and per tick --w (length), --o (opacity), --s (thickness)
     from a wave that follows the pointer; the card beside it previews the tick under it. */
  .feed-prog { position: fixed; left: 24px; top: 50%; translate: 0 -50%; z-index: 6; display: block; width: 56px; }
  .tick { display: flex; align-items: center; width: 100%; height: var(--row, 10px); border-radius: 2px; }
  .tick i { display: block; height: 2px; width: var(--w, 14px); border-radius: 2px; background: var(--fg); opacity: var(--o, .22); transform: scaleY(var(--s, 1)); }
  .tick:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
  .scrub-card { position: absolute; left: 76px; top: 0; width: 260px; padding: 12px 16px 14px; border-radius: 16px; background: #1A1A1A;
    border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 2px 6px -2px rgba(0, 0, 0, .3), 0 16px 36px -12px rgba(0, 0, 0, .7);
    pointer-events: none; transform-origin: left center; opacity: 0; }
  .scrub-card small { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 500; color: var(--mute); font-variant-numeric: tabular-nums; }
  .scrub-card b { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
  .scrub-card p { margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--mute);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (min-width: 810px) and (prefers-reduced-motion: reduce) { .reel-frame { opacity: 1; translate: none; transition: none; } }
.feed-back { position: fixed; top: 20px; left: 20px; z-index: 5; padding: 10px 16px; border-radius: 99px; background: rgba(29, 29, 29, .8);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 14px; font-weight: 500; }
.feed-back:hover { background: #2E2E2E; }
.feed-nav { position: fixed; right: 28px; top: 50%; translate: 0 -50%; z-index: 5; display: flex; flex-direction: column; gap: 14px; }
.feed-nav button { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #1D1D1D; transition: background .2s, opacity .2s; }
.feed-nav button:hover { background: #2E2E2E; }
.feed-nav button:disabled { opacity: .3; pointer-events: none; }
.feed-nav svg { width: 24px; height: 24px; }
.feed-down svg { rotate: 180deg; }
.tk-k { display: flex; }
.tk-k span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; background: rgba(29, 29, 29, .85);
  color: var(--fg); font-size: 12px; font-weight: 600; }
.tk-k span svg { width: 14px; height: 14px; flex: none; color: var(--k); }
.tk-strategy { --k: #7B8CFF; } .tk-practice { --k: #5ED35F; } .tk-avoid { --k: #FF6B6B; }
.tk-fact { --k: #F5C451; } .tk-scene { --k: #FF8AD8; } .tk-hook { --k: #fff; }
.tk-k em { margin-left: 8px; align-self: center; font-style: normal; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .6); }
.reel-ref { margin-top: 12px; font-size: 12px; color: rgba(255, 255, 255, .5); }
/* the story's opening card: the benefit, big */
.reel.tk-hook .reel-art img { width: 66%; rotate: 3deg; }
.reel.tk-hook .reel-body h2 { font-size: 34px; line-height: 1.1; letter-spacing: -0.03em; }
.reel.tk-hook .reel-t { font-size: 17px; }
.reel-hint { margin-top: 18px; font-size: 14px; font-weight: 600; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { translate: 0 5px; } }
/* paper page: the hook card that leads into the story */
.art-hook { display: grid; gap: 8px; margin-top: 28px; padding: 22px 24px; border-radius: 16px; color: var(--fg);
  background: radial-gradient(120% 140% at 100% 0%, rgba(14, 0, 207, .55), transparent 60%), #111; box-shadow: inset 0 0 0 1px var(--edge);
  transition: box-shadow .3s, translate .4s var(--spring); }
.art-hook:hover { translate: 0 -3px; box-shadow: inset 0 0 0 1px #4A4A4A; }
.art-hook .art-hook-k { justify-self: start; padding: 4px 10px; border-radius: 99px; background: var(--fg); color: #000; font-size: 12px; font-weight: 700; }
.art-hook b { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; }
.art-hook span { color: rgba(255, 255, 255, .75); line-height: 1.5; }
.art-hook .art-hook-go { color: var(--fg); font-weight: 600; }
/* "show example": --p runs 0 → 1, by a transition on click or by the finger on touch (feed.js).
   The shade grows up over the picture, the box rises from below, the button's arrow turns. */
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
@media (max-width: 809px) {   /* the reveal animates on phones only; on desktop the example just opens */
  .reel-frame { transition: --p .6s cubic-bezier(.22, .8, .24, 1); }
  .reel-frame.dragging { transition: none; }
}
.tk-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, .12);
  font-size: 14px; font-weight: 500; touch-action: none; -webkit-user-select: none; user-select: none; transition: background .2s; }
.tk-more:hover { background: rgba(255, 255, 255, .18); }
.tk-more svg { width: 16px; height: 16px; rotate: calc(180deg - 180deg * var(--p)); }
.tk-ex { height: calc(var(--p) * var(--exh, 0px)); overflow: hidden; opacity: clamp(0, var(--p) * 1.6 - .2, 1); }
.tk-ex-in { padding-top: 12px; translate: 0 calc((1 - var(--p)) * 32px); }
.tk-ex-box { padding: 14px 16px; border-radius: 12px; background: rgba(0, 0, 0, .55); box-shadow: inset 0 0 0 1px #2E2E2E; font-family: 'Fragment Mono', ui-monospace, monospace;
  font-size: 14px; line-height: 1.45; color: var(--fg); }
.tk-emoji svg { width: 52px; height: 52px; margin: 0 auto; color: #5ED35F; }
.tk-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.tk-link { padding: 8px 14px; border-radius: 99px; background: #1D1D1D; font-size: 14px; }
.tk-link:hover { background: #2A2A2A; }

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hc, .hero-in > .podcast { animation: none; }
  .reel-hint { animation: none; }
  .art-hook,
  .col-card a, .col-cover img, .btn-start, .reel-frame, .reel-act svg, .feed-nav button,
  .coffee-row a, .tabs button,
  .glow, .media img, .chip, .chip::after, .btn-line, .nav-links > *, .srch, .srch-box, .cards.js :is(.desc, .year) { transition: none; }
}

/* ── phone: Framer's mobile layout ──────────────────────────────────────── */
@media (max-width: 809px) {
  .nav { top: 0; left: 0; right: 0; translate: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    padding: 12px 16px; border-radius: 0; }
  .nav-current { display: block; font-size: 16px; font-weight: 500; }
  .nav-burger { display: grid; gap: 8px; width: 34px; height: 34px; place-content: center; }
  .nav-burger i { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--fg); transition: translate .3s, rotate .3s; }
  .nav-burger[aria-expanded="true"] i:first-child { translate: 0 5px; rotate: 45deg; }
  .nav-burger[aria-expanded="true"] i:last-child { translate: 0 -5px; rotate: -45deg; }
  .nav-links { display: none; flex-basis: 100%; flex-direction: column; gap: 4px; padding-top: 12px; }
  .nav.open .nav-links { display: flex; }
  .nav-links > * { justify-content: space-between; }

  .hero { padding-top: 100px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 24px; min-height: 0; }
  .h1-a { font-size: 36px; }
  .hero-in > .podcast { grid-column: 1; grid-row: auto; width: 100%; margin-top: 8px; }
  .hero-cards { grid-column: 1; grid-row: auto; }
  .hero-cards { height: 380px; }
  .hc { width: 190px; margin: calc(190px * -16 / 9 / 2) 0 0 -95px; }
  .hc-1 { transform: translateX(-50px); } .hc-2 { transform: translateX(70px); }
  .hc b { font-size: 14px; }
  .h1-a { font-size: 32px; }
  .h1-b { font-size: 22px; line-height: 1.25; }
  .h1-b br { display: none; }

  .lib { grid-template-columns: minmax(0, 1fr); margin-top: 72px; gap: 40px; }
  .filters h2 { font-size: 36px; }
  .field { width: 100%; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  /* no hover on a phone: every card shows what hover reveals on desktop */
  .card .glow { translate: 0 0; scale: 1; }
  .card .front { translate: calc(-50% - 35px) 0; }
  .card .back { translate: calc(-50% + 67px) 5px; rotate: 15deg; opacity: 1; }
  .card .year { display: none; }
  .card .desc { display: block; }
  .cards.js .desc { grid-template-rows: 1fr; opacity: 1; margin-top: 0; }

  .cols-sec { margin-top: 72px; }
  .cols-head h2 { font-size: 28px; }
  .col-grid { grid-template-columns: minmax(0, 1fr); }
  .cols-page, .col-page { padding-top: 100px; }
  .cols-h { font-size: 32px; }
  .col-hero { grid-template-columns: minmax(0, 1fr); }
  .col-2 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cp-act-end span, .cp-act-end { font-size: 0; gap: 0; }
  .cp-act-end svg { width: 18px; height: 18px; }
  .col-2 .col-hero { grid-template-columns: minmax(0, 1fr); }
  .col-side { position: static; }
  .col-hero h1 { font-size: 30px; }
  /* phone: the reel is the whole screen, actions float on its right edge */
  .reel { padding: 0; }
  .reel-frame { height: 100%; width: 100%; max-width: none; aspect-ratio: auto; border-radius: 0; }
  .reel-body { padding: 24px 76px 34px 18px; }
  .reel-side { position: absolute; right: 10px; bottom: 34px; z-index: 2; gap: 14px; }
  .reel-act span { font-size: 11px; }
  .reel-act svg { padding: 11px; background: rgba(29, 29, 29, .7); }
  .feed-nav { display: none; }
  .feed-back { top: 14px; left: 14px; }
  .reel-mute { top: 14px; left: auto; right: 14px; }

  .art { grid-template-columns: minmax(0, 1fr); gap: 48px; padding: 100px 20px 0; }
  .art-side { position: static; align-items: center; }
  .art-page { width: 220px; }
  h1.art-h { font-size: 30px; }
  .prose { font-size: 17px; }
  .prose h3 { font-size: 22px; }

  .foot { padding: 60px 20px; }
  .foot-in, .foot-cols { flex-direction: column; align-items: flex-start; }
}
