/* Glassbox. A lab at night: ink, a faint blueprint grid, glass panels, and one
   accent colour per box (--c). Everything is served from this domain. */
:root {
  --ink: #07080c;
  --ink2: #0d0f16;
  --panel: rgba(255, 255, 255, .045);
  --panel2: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .09);
  --line2: rgba(255, 255, 255, .16);
  --text: #eef0f6;
  --muted: #a8aebf;
  --dim: #737a8e;
  --glow: #8ef0ff;
  --c: var(--glow);
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --r: 18px;
  --max: 1200px;
  --pad: max(16px, calc((100vw - var(--max)) / 2));
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; min-height: 100vh; background: var(--ink); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .32;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}
body::after {
  content: ''; position: fixed; z-index: -1; pointer-events: none; width: 1000px; height: 1000px; top: -480px; right: -300px;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 20%, transparent), transparent 62%);
}
a { color: inherit; }
img, video { max-width: 100%; display: block; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h2 { font: 400 clamp(34px, 4.6vw, 56px)/1.04 var(--serif); letter-spacing: -.012em; }
em { font-style: italic; color: var(--c); }
kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .05); font: 500 11px var(--mono); color: var(--muted); }
main { width: min(var(--max), 100% - 32px); margin: 0 auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--text); color: var(--ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.eyebrow { margin: 0 0 12px; font: 500 12.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.lede { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 36em; margin: 18px 0 0; }
.lede strong { color: var(--text); font-weight: 500; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px var(--pad); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  background: rgba(7, 8, 12, .66); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 18px var(--sans); letter-spacing: -.01em; }
.logo { width: 28px; height: 28px; color: var(--text); flex: none; }
.nav nav { display: flex; align-items: center; gap: 2px; }
.nav nav > a { text-decoration: none; color: var(--muted); font-size: 14.5px; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav nav > a:hover { color: var(--text); background: var(--panel2); }
.nav .icon { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0 !important; }
.nav .icon svg { width: 20px; height: 20px; }
.search-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; margin: 0 4px 0 8px; padding: 0 8px 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); color: var(--muted); font: 500 14px var(--sans); cursor: pointer; transition: all .2s; }
.search-btn:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.search-btn svg { width: 16px; height: 16px; }
@media (max-width: 720px) { .nav .wide { display: none; } }
@media (max-width: 560px) { .search-btn span, .search-btn kbd { display: none; } .search-btn { width: 40px; padding: 0; justify-content: center; } .nav nav > a { padding: 8px 9px; } .brand span { display: none; } }

/* ---------------------------------------------------------------- buttons, chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line2); background: var(--panel); color: var(--text); text-decoration: none;
  font: 500 15px var(--sans); cursor: pointer; transition: transform .15s, background .2s, border-color .2s, box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { background: var(--panel2); border-color: rgba(255, 255, 255, .3); transform: translateY(-1px); }
.btn.primary { background: var(--text); color: var(--ink); border-color: transparent; }
.btn.primary:hover { box-shadow: 0 10px 44px -10px color-mix(in srgb, var(--c) 80%, transparent); background: #fff; }
.btn.big { min-height: 52px; padding: 12px 24px; font-size: 16px; }
.btn.ghost { border-color: transparent; background: none; color: var(--muted); }
.btn.ghost:hover { color: var(--text); }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.ctas.center { justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line2); background: none; color: var(--muted); font: 500 14px var(--sans); cursor: pointer; transition: all .2s; white-space: nowrap; }
.chip small { font: 500 11.5px var(--mono); color: var(--dim); }
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.chip.on { background: var(--text); color: var(--ink); border-color: transparent; }
.chip.on small { color: rgba(7, 8, 12, .6); }
.chip[data-filter]:not([data-filter="all"])::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* ---------------------------------------------------------------- hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; min-height: min(700px, calc(100svh - 65px)); padding: clamp(20px, 4vh, 40px) 0 clamp(16px, 3vh, 30px); }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 clamp(12px, 2.4vh, 22px); padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); font: 500 13px var(--mono); color: var(--muted); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 0 var(--c); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 { font: 400 clamp(46px, min(7vw, 11.5vh), 108px)/.9 var(--serif); letter-spacing: -.028em; }
.hero h1 em { color: var(--glow); }
.hero-search {
  display: flex; align-items: center; gap: 12px; max-width: 520px; height: 54px; margin-top: clamp(18px, 3.4vh, 30px); padding: 0 14px 0 20px; border-radius: 999px; cursor: text;
  border: 1px solid var(--line2); background: rgba(255, 255, 255, .06); box-shadow: 0 20px 60px -30px color-mix(in srgb, var(--c) 70%, transparent); transition: border-color .2s, background .2s;
}
.hero-search:hover { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .08); }
.hero-search svg { width: 20px; height: 20px; color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--text); font: 400 17px var(--sans); outline: none; cursor: text; }
.hero-search input::placeholder { color: var(--muted); }
.hints { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0 8px; font-size: 14px; color: var(--dim); }
.hints span { display: contents; }
.hints button { border: 0; background: none; padding: 2px 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 4px; }
.hints button:hover { color: var(--text); text-decoration-color: var(--c); }

/* the cube: starts as a black box, then turns to glass and shows what's inside */
.stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(28px, 6vh, 56px); padding: clamp(16px, 3vh, 32px) 0 10px; }
.cube-scene { --rx: -18deg; --ry: 32deg; perspective: 1400px; width: min(270px, 56vw, 30vh); aspect-ratio: 1; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.cube-scene:active { cursor: grabbing; }
.cube { --s: min(270px, 56vw, 30vh); position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); animation: spin 28s linear infinite; }
.js .cube { animation: none; }
@keyframes spin { from { transform: rotateX(-18deg) rotateY(0); } to { transform: rotateX(-18deg) rotateY(360deg); } }
.cube .f {
  position: absolute; inset: 0; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .015) 55%, color-mix(in srgb, var(--c) 12%, transparent));
  box-shadow: inset 0 0 40px color-mix(in srgb, var(--c) 18%, transparent);
  transition: background 1.4s cubic-bezier(.2, .7, .2, 1), border-color 1.4s, box-shadow 1.4s;
}
.cube-scene.black .f { background: #0a0b10; border-color: rgba(255, 255, 255, .14); box-shadow: inset 0 0 60px #000; }
.cube .front { transform: translateZ(calc(var(--s) / 2)); }
.cube .back { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.cube .left { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.cube .right { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.cube .top { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.cube .bottom { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.cube .core { position: absolute; inset: 20%; transform: rotateY(calc(var(--ry) * -1)) rotateX(calc(var(--rx) * -1)); transition: opacity 1.2s .3s, filter 1.2s .3s; }
.cube-scene.black .core { opacity: 0; filter: blur(8px); }
.core-art { width: 100%; height: 100%; object-fit: cover; object-position: 93% 50%; }
.core-art.clean { object-position: 50% 50%; }
.core-art { border-radius: 14px; box-shadow: 0 0 70px color-mix(in srgb, var(--c) 60%, transparent); }
.core .art.fallback { aspect-ratio: auto; height: 100%; border-radius: 14px; }
.floor { position: absolute; left: 50%; top: 100%; width: 140%; height: 60px; transform: translate(-50%, 20px); border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 45%, transparent), transparent); filter: blur(12px); transition: opacity 1.4s; }
.cube-scene { position: relative; }
.cube-scene.black .floor { opacity: .15; }
.cube-label { position: relative; z-index: 1; width: min(440px, 100%); text-align: center; text-decoration: none; padding: 10px; border-radius: 16px; transition: background .2s; }
.cube-label:hover { background: var(--panel); }
.cube-label .no { display: block; font: 500 12px var(--mono); color: var(--c); letter-spacing: .08em; text-transform: uppercase; }
.cube-label strong { display: block; margin-top: 6px; font: 400 28px/1.12 var(--serif); }
.cube-label .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.cube-label .go svg { width: 16px; height: 16px; }
.drag-hint { position: static; margin: -48px 0 0; font: 400 12px var(--mono); color: var(--dim); transition: opacity .6s; }
.drag-hint.gone { opacity: 0; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 36px; }
  .stage { padding-top: 20px; }
}

/* ---------------------------------------------------------------- manifesto */
.manifesto { padding: 90px 0 70px; }
.m-line { margin: 0; font: 400 clamp(36px, 6vw, 84px)/1.05 var(--serif); letter-spacing: -.02em; color: var(--text); }
.m-line + .m-line { margin-top: 6px; }
.m-line:nth-child(2) { color: var(--muted); }
.blackbox { padding: 0 .12em; border-radius: 8px; background: #000; color: #000; box-shadow: 0 0 0 1px var(--line2); transition: color 1.2s .5s, background 1.2s .5s; }
.m-line.in .blackbox { background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--text); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.pillar { padding: 26px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.pillar .n { font: 500 12.5px var(--mono); color: var(--c); text-transform: uppercase; letter-spacing: .06em; }
.pillar h3 { margin-top: 12px; font: 400 32px/1.05 var(--serif); }
.pillar p { color: var(--muted); margin: 10px 0 0; }
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- today's box */
.today { display: grid; grid-template-columns: minmax(0, 400px) 1fr; gap: 56px; align-items: center; margin: 40px 0; padding: 40px; border-radius: 30px; background: linear-gradient(145deg, color-mix(in srgb, var(--c) 10%, transparent), var(--panel) 50%); border: 1px solid var(--line); }
.today-media { position: relative; }
.reel { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 22px; background: #000; border: 1px solid var(--line2); box-shadow: 0 30px 90px -30px color-mix(in srgb, var(--c) 70%, transparent); }
.sound { position: absolute; right: 12px; bottom: 12px; min-height: 34px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(7, 8, 12, .7); color: var(--text); font: 500 12px var(--mono); cursor: pointer; backdrop-filter: blur(8px); }
.today h2 { font-size: clamp(38px, 5vw, 64px); }
.mini-beats { margin: 26px 0 0; padding: 0; list-style: none; counter-reset: b; display: grid; gap: 10px; }
.mini-beats li { counter-increment: b; display: flex; gap: 14px; align-items: baseline; font-size: 17px; }
.mini-beats li::before { content: counter(b, decimal-leading-zero); font: 500 12.5px var(--mono); color: var(--c); }
.small-links { margin: 18px 0 0; font-size: 14px; color: var(--dim); }
.small-links a { color: var(--muted); }
@media (max-width: 860px) { .today { grid-template-columns: 1fr; padding: 22px; gap: 28px; } .today-media { max-width: 360px; } }

/* ---------------------------------------------------------------- shelf */
.shelf, .concepts-band, .calendar, .related { padding: 70px 0 20px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.shelf-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); min-width: 240px; }
.filter-search svg { width: 16px; height: 16px; color: var(--dim); }
.filter-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: 400 15px var(--sans); outline: none; }
.filter-search.big { height: 52px; max-width: 520px; margin: 28px 0 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; text-decoration: none; background: var(--panel); border: 1px solid var(--line); transition: transform .25s, border-color .25s, box-shadow .25s; }
a.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 24px 60px -26px color-mix(in srgb, var(--c) 65%, transparent); }
.card-art { position: relative; aspect-ratio: 1200 / 630; overflow: hidden; background: #0b0d14; }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
a.card:hover .card-art img { transform: scale(1.04); }
.badge { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(7, 8, 12, .72); backdrop-filter: blur(6px); font: 500 12px var(--mono); color: var(--c); }
.card-body { padding: 16px 18px 20px; }
.meta { display: flex; align-items: center; gap: 8px; font: 500 12px var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
.meta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.card h3 { margin-top: 10px; font: 400 26px/1.12 var(--serif); }
.card p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.card.sealed { border-style: dashed; background: none; }
.card.sealed .art.fallback { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 10px, transparent 10px 20px); }
.card.sealed .art.fallback span { color: rgba(255, 255, 255, .14); }
.card.sealed h3, .card.sealed p { color: var(--dim); }
.card.sealed .badge { color: var(--dim); }
.art.fallback { position: relative; display: grid; place-items: center; aspect-ratio: 1200 / 630; width: 100%; overflow: hidden; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--c) 45%, transparent), transparent 60%), linear-gradient(160deg, #141826, #07080c); }
.art.fallback span { font: italic 400 clamp(48px, 9vw, 110px)/1 var(--serif); color: rgba(255, 255, 255, .85); }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }
.empty a { color: var(--c); }

/* ---------------------------------------------------------------- concepts */
.term-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.term-cloud a { padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; font-size: 15px; transition: all .2s; }
.term-cloud a:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); color: #fff; background: color-mix(in srgb, var(--c) 10%, transparent); }
.term-cloud a::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c); margin-right: 9px; vertical-align: 1px; }

/* ---------------------------------------------------------------- calendar */
.legend { display: flex; gap: 16px; margin: 0; font: 400 13px var(--mono); color: var(--dim); }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; background: rgba(255, 255, 255, .07); vertical-align: -1px; margin-right: 6px; }
.legend i.lit { background: var(--glow); }
.cal { overflow-x: auto; padding: 4px 2px 10px; }
.cal-months, .cal-grid { display: grid; grid-template-columns: repeat(53, minmax(14px, 1fr)); gap: 4px; min-width: 900px; }
.cal-months { margin-bottom: 8px; font: 400 12px var(--mono); color: var(--dim); }
.cal-grid { grid-template-rows: repeat(7, auto); grid-auto-flow: column; }
.cal-grid > * { aspect-ratio: 1; border-radius: 3px; background: rgba(255, 255, 255, .055); }
.cal-grid .pad { background: none; }
.cal-grid .past { background: rgba(255, 255, 255, .025); }
.cal-grid .today { outline: 1px dashed var(--glow); outline-offset: 1px; }
.cal-grid a.lit { background: var(--c); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 70%, transparent); transition: transform .15s; }
.cal-grid a.lit:hover { transform: scale(1.5); }

/* ---------------------------------------------------------------- promise, follow */
.promise { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; margin: 80px 0 20px; padding: clamp(24px, 5vw, 56px); border-radius: 30px; border: 1px solid var(--line2); background: radial-gradient(circle at 0% 0%, rgba(142, 240, 255, .08), transparent 60%), var(--panel); }
.promise h2 { font-size: clamp(40px, 5vw, 64px); }
.promise em { color: var(--glow); }
.promise .eyebrow { color: var(--glow); }
.promise-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.promise-list li { padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.promise-list b { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.promise-list b::before, .checks li::before { content: ''; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--glow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8 3 3 5-6' fill='none' stroke='%2307080c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; }
.promise-list span { display: block; margin-top: 4px; color: var(--muted); font-size: 14.5px; }
.promise-foot { grid-column: 1 / -1; display: flex; gap: 8px; margin: 0; }
@media (max-width: 860px) { .promise { grid-template-columns: 1fr; gap: 26px; } }
@media (max-width: 520px) { .promise-list { grid-template-columns: 1fr; } }
.follow { padding: 90px 0 40px; text-align: center; }
.follow .lede { margin-left: auto; margin-right: auto; }
.follow .eyebrow { color: var(--glow); }

/* ---------------------------------------------------------------- explainer */
.ex-hero { padding: clamp(36px, 7vw, 90px) 0 40px; max-width: 940px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; font: 500 13px var(--mono); color: var(--dim); }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs .no { color: var(--c); }
.ex-hero h1 { font: 400 clamp(48px, 7.6vw, 100px)/.96 var(--serif); letter-spacing: -.022em; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 26px 0 0; font: 400 13px var(--mono); color: var(--dim); }
.facts span + span::before { content: '·'; margin-right: 16px; color: var(--line2); }
.ex-body { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 56px; align-items: start; padding: 30px 0 50px; }
.ex-media { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 10px; }
.try { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line2); }
.try .art { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.try .btn { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); }
iframe.live { display: block; width: 100%; aspect-ratio: 4 / 5; border: 0; border-radius: 22px; background: #000; }
.beats { list-style: none; counter-reset: b; margin: 0; padding: 0; display: grid; gap: 12px; }
.beats li { counter-increment: b; position: relative; padding: 22px 24px 22px 72px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.beats li::before { content: counter(b, decimal-leading-zero); position: absolute; left: 24px; top: 24px; font: 500 14px var(--mono); color: var(--c); }
.beats h2 { font: 600 18.5px/1.3 var(--sans); letter-spacing: 0; }
.beats p { margin: 6px 0 0; color: var(--muted); }
@media (max-width: 860px) { .ex-body { grid-template-columns: 1fr; gap: 30px; } .ex-media { position: static; max-width: 400px; } }
.ex-yt { padding: 10px 0 40px; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000 center/cover; display: grid; place-items: center; align-content: center; gap: 12px; border: 1px solid var(--line2); }
.yt-note { margin: 0; padding: 4px 10px; border-radius: 8px; background: rgba(7, 8, 12, .7); font-size: 12.5px; color: var(--muted); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ex-concepts { padding: 30px 0; }
.concepts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 0; }
.concepts div { padding: 18px; border-radius: 14px; border: 1px solid var(--line); scroll-margin-top: 90px; }
.concepts div:target { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, transparent); }
.concepts dt { font: 600 15.5px var(--sans); color: var(--c); }
.concepts dd { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.ex-fork { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; margin: 40px 0; padding: 30px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); }
.ex-fork h2 { font-size: clamp(32px, 4vw, 44px); }
.ex-fork p { color: var(--muted); }
.ex-fork b { color: var(--text); font-weight: 500; }
.credits { font-size: 14px; }
.credits a { color: var(--text); }
.cmd { position: relative; margin: 0; padding: 18px 90px 18px 18px; border-radius: 12px; background: #000; border: 1px solid var(--line); overflow-x: auto; font: 400 14px var(--mono); color: #cfe; }
.copy { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); min-height: 34px; padding: 4px 12px; border-radius: 8px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text); font: 500 12px var(--sans); cursor: pointer; }
@media (max-width: 760px) { .ex-fork { grid-template-columns: 1fr; padding: 22px; } }
.ex-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 30px 0 10px; }
.ex-nav a { display: block; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, background .2s; }
.ex-nav a:hover { border-color: var(--line2); background: var(--panel); }
.ex-nav .next { text-align: right; }
.ex-nav small { font: 500 12px var(--mono); color: var(--dim); }
.ex-nav span { display: block; margin-top: 4px; font: 400 22px/1.2 var(--serif); }
.kbd-hint { margin: 10px 0 40px; text-align: center; font-size: 13px; color: var(--dim); }
.kbd-hint kbd { margin: 0 2px; }
@media (hover: none) { .kbd-hint { display: none; } }

/* ---------------------------------------------------------------- docs: concepts, privacy, terms */
.doc { max-width: 820px; padding: clamp(36px, 6vw, 80px) 0 40px; }
.doc.wide { max-width: var(--max); }
.doc h1 { font: 400 clamp(48px, 7vw, 88px)/.98 var(--serif); letter-spacing: -.02em; }
.page .eyebrow { color: var(--glow); }
.effective { margin: 18px 0 0; font: 400 13px var(--mono); color: var(--dim); }
.effective a { color: var(--muted); }
.summary { margin: 34px 0; padding: 26px 28px; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--glow) 40%, transparent); background: radial-gradient(circle at 0 0, rgba(142, 240, 255, .1), transparent 70%), var(--panel); }
.summary h2 { font-size: 30px; margin-bottom: 14px; }
.summary a { color: var(--glow); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: var(--muted); }
.checks li::before { position: absolute; left: 0; top: 4px; }
.checks b { color: var(--text); font-weight: 600; }
.toc { margin: 0 0 30px; padding: 18px 22px; border-radius: 16px; border: 1px solid var(--line); }
.toc p { margin: 0 0 8px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 30px; }
.toc a { color: var(--muted); text-decoration: none; line-height: 1.9; }
.toc a:hover { color: var(--text); }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.legal section { padding: 26px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.legal section h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 12px; }
.legal section p { color: #c9cedb; line-height: 1.75; }
.legal section a, .doc .lede a { color: var(--glow); }
.legal code, .doc code { font: 400 .9em var(--mono); color: #cfe; background: rgba(255, 255, 255, .06); padding: 1px 6px; border-radius: 6px; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--dim); background: rgba(255, 255, 255, .03); }
tr:last-child td { border-bottom: 0; }
td { color: #c9cedb; }
.az { position: sticky; top: 64px; z-index: 5; display: flex; flex-wrap: wrap; gap: 2px; margin: 26px 0 10px; padding: 8px 0; background: rgba(7, 8, 12, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.az a, .az span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; font: 500 14px var(--mono); text-decoration: none; }
.az a:hover { background: var(--panel2); }
.az span { color: rgba(255, 255, 255, .18); }
.az-group { padding-top: 26px; scroll-margin-top: 120px; }
.az-group h2 { font-size: 44px; color: var(--glow); }
.az-group dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 12px; margin: 14px 0 0; }
.concept { padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); scroll-margin-top: 130px; }
.concept:target { border-color: var(--c); }
.concept dt { font: 600 17px var(--sans); }
.concept dt::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 10px; vertical-align: 2px; }
.concept dd { margin: 8px 0 0; color: var(--muted); }
.concept dd a { display: block; margin-top: 12px; font-size: 14px; color: var(--c); text-decoration: none; }
.concept dd a:hover { text-decoration: underline; }
.nf-main { padding: 120px 0; text-align: center; }
.nf-main h1 { font: 400 clamp(48px, 8vw, 96px)/1 var(--serif); }
.nf-main .lede { margin: 18px auto 0; }

/* ---------------------------------------------------------------- footer */
.foot { margin-top: 60px; padding: 50px var(--pad) 40px; border-top: 1px solid var(--line); background: linear-gradient(transparent, rgba(0, 0, 0, .4)); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.foot-brand p { color: var(--muted); max-width: 30em; }
.promise-line a { color: var(--glow); }
.foot h4 { margin: 6px 0 12px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.foot-grid > div:not(.foot-brand) a { display: block; padding: 4px 0; color: var(--muted); text-decoration: none; }
.foot-grid > div:not(.foot-brand) a:hover { color: var(--text); }
.colophon { margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- search palette */
.palette { position: fixed; inset: 0; z-index: 90; display: grid; justify-items: center; align-items: start; padding: 12vh 16px 16px; background: rgba(4, 5, 8, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.palette-card { width: min(640px, 100%); max-height: 76vh; display: flex; flex-direction: column; border-radius: 20px; border: 1px solid var(--line2); background: #10131b; box-shadow: 0 40px 120px rgba(0, 0, 0, .7); overflow: hidden; }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 62px; border-bottom: 1px solid var(--line); }
.palette-input svg { width: 20px; height: 20px; color: var(--muted); }
.palette-input input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--text); font: 400 18px var(--sans); outline: none; }
.palette-input input::-webkit-search-cancel-button { display: none; }
.palette-list { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.palette-list .grp { padding: 10px 10px 6px; font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.palette-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; }
.palette-list a[aria-selected="true"] { background: var(--panel2); }
.palette-list .sw { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.palette-list .t { flex: 1; min-width: 0; }
.palette-list .t b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-list .t small { display: block; color: var(--dim); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-list mark { background: none; color: var(--c); }
.palette-list .none { padding: 24px 12px; color: var(--muted); text-align: center; }
.palette-list .none a { display: inline; padding: 0; color: var(--glow); }
.palette-foot { display: flex; gap: 16px; margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim); }
.palette-foot span { display: inline-flex; align-items: center; gap: 4px; }
@media (hover: none) { .palette-foot { display: none; } .palette { padding-top: 16px; } }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 95; transform: translate(-50%, 20px); padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--ink); font: 500 14px var(--sans); opacity: 0; transition: all .25s; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* long URLs and commands must never widen the page on phones */
.ex-fork > *, .ex-body > *, .today > * { min-width: 0; }
.doc, .legal section, .summary { overflow-wrap: anywhere; }

/* ================================================================ history */
.art-svg { display: block; color: var(--text); }
.art-svg .a { stroke: var(--c); }
.art-svg .f { fill: var(--c); stroke: var(--c); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h-main { padding-bottom: 20px; }
.h-hero { padding: clamp(36px, 7vw, 90px) 0 30px; max-width: 980px; }
.h-hero h1 { font: 400 clamp(52px, 8.4vw, 112px)/.95 var(--serif); letter-spacing: -.024em; }
.h-tagline { margin: 16px 0 0; font: italic 400 clamp(24px, 2.6vw, 34px)/1.2 var(--serif); color: var(--c); }
.h-stats { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 34px 0 0; }
.h-stats div { display: flex; flex-direction: column-reverse; }
.h-stats dt { font: 400 clamp(40px, 5vw, 64px)/1 var(--serif); }
.h-stats dd { margin: 4px 0 0; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.h-box-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.h-firsts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 30px 0 50px; }
.h-first { padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.h-first .v { margin: 0; font: 400 34px/1 var(--serif); color: var(--c); }
.h-first .l { margin: 10px 0 0; font-weight: 600; font-size: 15px; }
.h-first .w { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }

/* the strip: one dot per moment, sticky, with the current year */
.h-timeline-anchor { scroll-margin-top: 70px; }
.h-strip { position: sticky; top: 64px; z-index: 30; display: flex; align-items: center; gap: 18px; margin: 0 calc(-1 * max(16px, (100vw - var(--max)) / 2)); padding: 10px max(16px, calc((100vw - var(--max)) / 2)); background: rgba(7, 8, 12, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.h-now { display: flex; flex-direction: column; min-width: 150px; }
.h-now-year { font: 400 28px/1 var(--serif); color: var(--text); white-space: nowrap; }
.h-now-era { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.h-dots { position: relative; flex: 1; display: flex; align-items: center; gap: 3px; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 8px 2px; }
.h-dots::-webkit-scrollbar { display: none; }
.h-dot { position: relative; flex: 1 0 8px; max-width: 26px; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--c) 35%, transparent); transition: transform .2s, background .2s; }
.h-dot.key { height: 14px; background: color-mix(in srgb, var(--c) 60%, transparent); }
.h-dot:hover, .h-dot.on { background: var(--c); transform: scaleY(1.5); box-shadow: 0 0 10px var(--c); }
.h-eras { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 10px; }
.h-eras a { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); border-left: 3px solid var(--c); text-decoration: none; font-size: 14px; transition: background .2s; }
.h-eras a:hover { background: var(--panel); }
.h-eras span { font: 500 11.5px var(--mono); color: var(--c); }
@media (max-width: 640px) { .h-now { min-width: 96px; } .h-now-year { font-size: 20px; } .h-now-era { display: none; } .h-strip { top: 64px; } }

/* eras and the alternating timeline */
.h-era { padding: 60px 0 10px; scroll-margin-top: 130px; }
.h-era-head { max-width: 760px; margin-bottom: 30px; }
.h-era-range { margin: 0 0 8px; font: 500 13px var(--mono); color: var(--c); letter-spacing: .06em; }
.h-era-head h2 { font-size: clamp(40px, 5.6vw, 72px); }
.h-era-head h2::after { content: ''; display: block; width: 80px; height: 3px; margin-top: 16px; border-radius: 2px; background: var(--c); }
.h-era-head p:last-child { color: var(--muted); font-size: 18px; }
.h-line-wrap { position: relative; display: grid; gap: 22px; }
.h-line-wrap::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-1px); background: linear-gradient(var(--c), color-mix(in srgb, var(--c) 20%, transparent)); opacity: .5; }
.h-event { position: relative; display: grid; grid-template-columns: 1fr 1fr; scroll-margin-top: 140px; }
.h-event .h-card { grid-column: 1; margin-right: 44px; }
.h-event.right .h-card { grid-column: 2; margin: 0 0 0 44px; }
@media (min-width: 861px) { .h-event.right { margin-top: -150px; } .h-event.right .h-pin { top: 30px; } }
.h-pin { position: absolute; left: 50%; top: 30px; width: 16px; height: 16px; transform: translate(-50%, 0); border-radius: 50%; background: var(--ink); border: 3px solid var(--c); box-shadow: 0 0 0 6px var(--ink); }
.h-event.key .h-pin { width: 22px; height: 22px; background: var(--c); box-shadow: 0 0 0 6px var(--ink), 0 0 24px var(--c); }
.h-card { padding: 22px 24px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.h-event.key .h-card { background: linear-gradient(150deg, color-mix(in srgb, var(--c) 12%, transparent), var(--panel) 60%); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.h-event:target .h-card, .h-event.on .h-card { border-color: var(--c); }
.h-top { display: flex; align-items: center; gap: 16px; }
.h-art { flex: none; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 18px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); }
.h-event.key .h-art { width: 92px; height: 92px; }
.h-year { margin: 0; font: 400 clamp(38px, 4vw, 54px)/1 var(--serif); color: var(--c); }
.h-date { margin: 4px 0 0; font: 400 12.5px var(--mono); color: var(--dim); }
.h-date a { color: var(--muted); }
.h-card h3 { margin-top: 16px; font: 600 20px/1.3 var(--sans); }
.h-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.h-meta span { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line2); font-size: 13px; color: var(--muted); }
.h-card > p { color: #c9cedb; }
.h-why { padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .3); border-left: 3px solid var(--c); font-size: 15px; }
.h-why b { color: var(--text); }
.h-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 0; font-size: 14px; }
.h-links a { color: var(--c); text-decoration: none; }
.h-links a:hover { text-decoration: underline; }
.refs { display: inline-flex; gap: 4px; }
.ref { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px; border: 1px solid var(--line2); font: 500 11px var(--mono); color: var(--muted) !important; }
@media (max-width: 860px) {
  .h-line-wrap::before { left: 11px; }
  .h-event { grid-template-columns: 1fr; }
  .h-event .h-card, .h-event.right .h-card { grid-column: 1; margin: 0 0 0 36px; }
  .h-pin { left: 12px; }
  .h-art { width: 60px; height: 60px; } .h-event.key .h-art { width: 70px; height: 70px; }
  .h-card { padding: 18px; }
}

/* charts */
.h-chart { margin: 50px 0 20px; padding: clamp(18px, 3vw, 34px); border-radius: 26px; border: 1px solid var(--line2); background: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--c) 10%, transparent), transparent 60%), var(--panel); }
.h-chart h3 { font: 400 clamp(30px, 3.6vw, 44px)/1.05 var(--serif); }
.h-chart figcaption > p:last-child { color: var(--muted); max-width: 50em; }
.h-chart svg { width: 100%; height: auto; margin-top: 10px; overflow: visible; }
.h-chart .tick line { stroke: rgba(255, 255, 255, .08); }
.h-chart text { fill: var(--dim); font: 400 12px var(--mono); }
.h-chart .pt text { fill: var(--text); font: 500 12px var(--mono); }
.h-chart .pt circle { fill: var(--ink); stroke: var(--c); stroke-width: 3; }
.h-line { fill: none; stroke: var(--c); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 60%, transparent)); }
.js .h-chart.reveal .h-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s cubic-bezier(.3, .6, .2, 1) .2s; }
.js .h-chart.reveal.in .h-line { stroke-dashoffset: 0; }
.h-chart-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 20px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.h-chart-list b { font: 500 13px var(--mono); color: var(--c); margin-right: 6px; }

/* facts, people, places, sources */
.h-facts, .h-people, .h-places, .h-sources { padding: 60px 0 10px; }
.h-fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.h-fact { margin: 0; padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); font: 400 22px/1.25 var(--serif); }
.h-fact::before { content: '“'; display: block; font: 400 48px/.6 var(--serif); color: var(--c); margin-bottom: 8px; }
.h-people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 12px; margin-top: 24px; }
.h-person { display: flex; gap: 14px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.h-person .mono { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); font: 400 22px var(--serif); color: var(--c); }
.h-person h3 { font: 600 16.5px var(--sans); }
.h-person .life { margin: 2px 0 6px; font: 400 12.5px var(--mono); color: var(--dim); }
.h-person p { margin: 0; font-size: 14.5px; color: var(--muted); }
.h-place-list { display: grid; gap: 6px; margin-top: 24px; max-width: 820px; }
.h-place summary { display: grid; grid-template-columns: 170px 1fr 30px; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px; cursor: pointer; list-style: none; }
.h-place summary::-webkit-details-marker { display: none; }
.h-place summary:hover, .h-place[open] summary { background: var(--panel); }
.h-place-name { font-weight: 500; }
.h-bar { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.h-bar i { display: block; height: 100%; border-radius: 5px; background: var(--c); }
.h-count { font: 500 13px var(--mono); color: var(--muted); text-align: right; }
.h-place ul { margin: 4px 0 10px; padding: 0 12px 0 196px; list-style: none; display: grid; gap: 4px; font-size: 14.5px; }
.h-place ul a { color: var(--muted); text-decoration: none; }
.h-place ul a:hover { color: var(--text); }
.h-place ul b { font: 500 12.5px var(--mono); color: var(--c); margin-right: 6px; }
@media (max-width: 600px) { .h-place summary { grid-template-columns: 110px 1fr 26px; } .h-place ul { padding-left: 12px; } }
.h-sources ol { margin: 20px 0 0; padding-left: 26px; display: grid; gap: 8px; color: var(--muted); scroll-margin-top: 140px; }
.h-sources li { scroll-margin-top: 140px; }
.h-sources li:target { color: var(--text); }
.h-sources a { color: var(--text); }
.h-sources li span { color: var(--dim); font-size: 14px; }
.h-sources .hint a { color: var(--c); }
.h-end { padding: 80px 0 30px; text-align: center; }
.h-end h2 { font-size: clamp(36px, 5vw, 60px); }

/* teaser on explainer pages */
.h-teaser { margin: 30px 0; padding: clamp(20px, 4vw, 40px); border-radius: 26px; border: 1px solid var(--line2); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 10%, transparent), var(--panel) 55%); }
.h-teaser-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }
.h-teaser-head h2 { font-size: clamp(30px, 3.6vw, 46px); max-width: 16em; }
.h-teaser-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; position: relative; }
.h-teaser-row a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 16px; border-radius: 16px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s; }
.h-teaser-row a:hover { border-color: var(--c); transform: translateY(-3px); }
.h-teaser-row b { font: 400 30px/1 var(--serif); color: var(--c); }
.h-teaser-row span { font-size: 14px; color: var(--muted); }
.h-wrap[hidden] { display: none; }

/* ---------------------------------------------------------------- the cabinet (home)
   Every box as a glass display case, all in the first screen. Today's box is the big case;
   tomorrow's is still a black box. Cases start dark and turn to glass one after another. */
.cabinet { --gap: 14px; --head: 104px; padding: 18px 0 36px; }
.cab-head { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, auto); grid-template-areas: "title search" "sub chips"; align-items: center; gap: 10px 28px; margin-bottom: 18px; }
.cab-h1 { grid-area: title; margin: 0; font: 400 clamp(34px, 3.8vw, 54px)/1 var(--serif); letter-spacing: -.02em; }
.cab-h1 em { color: var(--glow); }
.cab-sub { grid-area: sub; display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); font-size: 15px; }
.cab-search { grid-area: search; justify-self: end; }
.cab-head .chips { grid-area: chips; justify-content: flex-end; flex-wrap: wrap; margin: 0; }
.cab-head .chip { min-height: 32px; padding: 4px 12px; font-size: 13px; }
.cab-search { display: flex; align-items: center; gap: 10px; width: min(360px, 100%); height: 42px; padding: 0 10px 0 14px; border-radius: 999px; cursor: text;
  border: 1px solid var(--line2); background: rgba(255, 255, 255, .05); transition: border-color .2s, background .2s; }
.cab-search:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); }
.cab-search svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.cab-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: 400 15px var(--sans); outline: none; cursor: text; }
.cab-search input::placeholder { color: var(--muted); }
.cab-search kbd { font: 500 11px var(--mono); color: var(--dim); border: 1px solid var(--line2); border-radius: 6px; padding: 2px 6px; }

.cases {
  /* every case keeps a legible minimum size; the screen decides how many fit in a row */
  display: grid; gap: var(--gap); grid-auto-flow: dense;
  grid-template-columns: repeat(auto-fill, minmax(var(--case-min, 244px), 1fr));
  /* rows grow if the words need more room, so text never spills out of its case */
  grid-auto-rows: minmax(var(--case-h, 264px), auto);
}
.case { position: relative; border-radius: 18px; isolation: isolate; --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 18px 40px -24px rgba(0, 0, 0, .9); }
.case.feature { grid-column: span 2; grid-row: span 2; }
/* words flow at the foot of the case (not pinned over it), so a case is always tall enough for them */
.case { display: flex; flex-direction: column; justify-content: flex-end; }
.case > .case-body { position: relative; }
.case.feature .hook { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.case:hover, .case:focus-within { transition: transform .12s linear, box-shadow .3s; box-shadow: 0 1px 0 rgba(255, 255, 255, .1) inset, 0 30px 60px -28px color-mix(in srgb, var(--c) 55%, #000); z-index: 2; }
.case .glass { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: #0b0d13;
  border: 1px solid color-mix(in srgb, var(--c) 28%, rgba(255, 255, 255, .12)); }
.case .glass img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform .8s cubic-bezier(.2, .8, .2, 1), filter .8s; filter: saturate(1.05); }
.case:hover .glass img { transform: scale(1.07); }
.case .glass::after { /* shade under the words */ content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 8, 12, 0) 30%, rgba(7, 8, 12, .55) 58%, rgba(7, 8, 12, .94) 100%); }
.case.feature .glass::after { background: linear-gradient(180deg, rgba(7, 8, 12, 0) 38%, rgba(7, 8, 12, .6) 66%, rgba(7, 8, 12, .96) 100%); }
.case .sheen { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .16), transparent 45%),
              linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .07) 46%, transparent 54%); }
.case:hover .sheen { opacity: 1; }
.case .glass::before { /* glass edge highlight */ content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .04), inset 0 -40px 60px -40px color-mix(in srgb, var(--c) 45%, transparent); }
/* black box → glass */
.case .seal { position: absolute; inset: 0; z-index: 3; background: #050608; pointer-events: none; opacity: 0; }
.js .case .seal { animation: unseal 1s cubic-bezier(.6, 0, .2, 1) calc(.15s + var(--i) * .09s) both; }
@keyframes unseal { from { opacity: 1; } to { opacity: 0; } }

.case-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 14px 16px 14px; }
.case.feature .case-body { padding: 24px 26px 24px; }
.case-meta { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font: 500 11.5px var(--mono); letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.case-meta .no { color: var(--c); }
.case-meta .fld { display: inline-flex; align-items: center; gap: 6px; }
.case-meta .fld i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.case-meta .now { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; padding: 3px 9px 3px 8px; border-radius: 999px; color: var(--ink); background: var(--c); font-weight: 600; }
.case-meta .now .pulse { width: 6px; height: 6px; background: var(--ink); box-shadow: none; }
.case h3 { margin: 0; font: 400 clamp(19px, 1.55vw, 24px)/1.12 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.case.feature h3 { font-size: clamp(30px, 3.1vw, 46px); line-height: 1.02; max-width: 13em; }
.case .stretch { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.case .stretch:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }
.case-body { pointer-events: none; }
.case-actions { pointer-events: auto; }
.case .hook { margin: 10px 0 0; max-width: 34em; color: #d4d8e3; font-size: 15px; line-height: 1.5; }
.case-actions { position: relative; z-index: 5; display: flex; gap: 6px; margin-top: 10px; }
.case .ca { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font: 500 13px var(--sans); color: var(--text); text-decoration: none;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s, border-color .2s; }
.case .ca:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); }
.case .ca.play { background: var(--c); color: var(--ink); border-color: transparent; font-weight: 600; }
.case .ca.play:hover { filter: brightness(1.1); }
.case .ca svg { width: 13px; height: 13px; }
.case.feature .ca { height: 38px; padding: 0 16px; font-size: 14.5px; }
.case.feature .ca svg { width: 15px; height: 15px; }
/* small cases show their buttons on hover (always on touch screens) */
@media (hover: hover) {
  .case:not(.feature) .case-actions { opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
  .case:not(.feature):hover .case-actions, .case:not(.feature):focus-within .case-actions { opacity: 1; transform: none; }
  .case:not(.feature) .case-body { transition: transform .25s; transform: translateY(38px); }
  .case:not(.feature):hover .case-body, .case:not(.feature):focus-within .case-body { transform: none; }
}
/* tomorrow's box, still sealed */
.case.sealed { box-shadow: none; }
.case.sealed .glass { border: 1px dashed rgba(255, 255, 255, .14); background: repeating-linear-gradient(135deg, #07080c 0 10px, #090a0f 10px 20px); }
.case.sealed .glass::after, .case.sealed .glass::before { display: none; }
.case.sealed .black { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--dim); }
.case.sealed .black .n { font: 400 44px/1 var(--serif); color: rgba(255, 255, 255, .12); }
.case.sealed .black svg { width: 20px; height: 20px; }
.case.sealed h3 { font-size: 17px; color: var(--muted); }
.case.sealed .case-meta .no { color: var(--dim); }
.case[hidden] { display: none; }

.case-meta { white-space: nowrap; min-width: 0; }
.case-meta .fld { overflow: hidden; text-overflow: ellipsis; }
.case:not(.feature) h3 { font-size: 21px; }
.law-cases { --case-h: 220px; }
@media (max-width: 900px) {
  .cab-head { grid-template-columns: 1fr; grid-template-areas: "title" "sub" "search" "chips"; }
  .cab-search { width: 100%; justify-self: stretch; }
  .cab-head .chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .cab-head .chips::-webkit-scrollbar { display: none; }
  .case.feature { grid-row: span 2; }
}
/* Home: the headline stays on one line, and rows are sized so today's big case fits the first screen */
.home-cab { --head: 96px; padding-top: 14px; }
.home-cab .cab-head { gap: 10px 24px; margin-bottom: 14px; }
@media (min-width: 901px) { .home-cab .cab-head { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title search" "chips sub"; } }
.home-cab .cab-head .chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.home-cab .cab-head .chips::-webkit-scrollbar { display: none; }
.home-cab .cab-head .chip { flex: none; }
@media (min-width: 901px) { .home-cab .cab-head .chips { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); padding-right: 40px; } }
.home-cab .cab-sub { justify-self: end; }
.home-cab .cab-h1 { white-space: nowrap; font-size: clamp(30px, 3.1vw, 48px); }
.home-cab .cab-sub { font-size: 14px; white-space: nowrap; }
.home-cab .cab-sub .more { display: none; }
@media (max-width: 1180px) and (min-width: 901px) { .home-cab .cab-sub { display: none; } }
@media (min-width: 901px) {
  .home-cab .cases { --case-h: clamp(168px, calc((100svh - 65px - 14px - var(--head) - 14px - var(--gap) - 12px) / 2), 300px); }
}
/* short screens: today's case keeps its words compact so it still fits */
@media (min-width: 901px) and (max-height: 820px) {
  .home-cab .case.feature .hook { -webkit-line-clamp: 2; font-size: 14px; margin-top: 6px; }
  .home-cab .case.feature h3 { font-size: clamp(26px, 2.4vw, 36px); }
  .home-cab .case.feature .case-body { padding: 16px 20px; }
  .home-cab .case.feature .ca { height: 34px; }
}
@media (max-width: 560px) { .home-cab .cab-h1 { white-space: normal; } }
@media (max-width: 560px) { .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); --case-h: 200px; } }
@media (max-width: 480px) {
  .cabinet { padding-top: 14px; }
  .cases { --gap: 10px; --case-h: 184px; }
  .case h3 { font-size: 18px; }
  .case-body { padding: 12px; }
  .case .ca { height: 28px; padding: 0 10px; font-size: 12.5px; }
  .case:not(.feature) .ca:not(.play) { display: none; }
  .case.feature .hook { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .case, .case .glass img { transition: none; transform: none; }
  .js .case .seal { animation: none; }
}

/* ---------------------------------------------------------------- laws and principles */
.laws-shelf { padding-top: 56px; border-top: 1px solid var(--line); margin-top: 20px; }
.laws-page .laws-shelf { border-top: 0; margin-top: 0; padding-top: 18px; }
.cab-head .cab-all { grid-area: search; justify-self: end; color: var(--muted); text-decoration: none; font-size: 14px; }
.cab-head .cab-all:hover { color: var(--text); }
.case.law .law-glass { background:
    radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--c) 26%, transparent), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 22px), #0a0c12; }
.case.law .glass::after { background: linear-gradient(180deg, rgba(7,8,12,0) 45%, rgba(7,8,12,.85) 100%); }
.law-art { position: absolute; right: 14px; top: 14px; width: 54px; height: 54px; color: var(--muted); opacity: .8; }
.law-art svg { width: 100%; height: 100%; }
.law-art .art-svg { --c: var(--c); }
.law-formula { position: absolute; left: 16px; right: 70px; top: 18px; margin: 0; font: 400 clamp(22px, 2vw, 30px)/1.1 var(--serif); color: var(--text); letter-spacing: -.01em; text-wrap: balance; }
.case.law h3 { font-size: clamp(18px, 1.4vw, 21px); }
.law-seen { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { .case.law .case-body { transform: none !important; } }

/* modal */
.law-modal { --c: var(--glow); width: min(820px, calc(100vw - 32px)); max-height: min(88svh, 900px); padding: 0; border: 1px solid color-mix(in srgb, var(--c) 40%, var(--line2)); border-radius: 22px;
  background: radial-gradient(90% 60% at 100% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 60%), #0b0d13; color: var(--text); box-shadow: 0 40px 120px rgba(0,0,0,.7); overflow: auto; }
.law-modal::backdrop { background: rgba(4,5,8,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.law-modal[open] { animation: lm-in .28s cubic-bezier(.2,.8,.2,1); }
@keyframes lm-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.lm-close-form { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; height: 0; }
.lm-x { margin: 10px 10px 0 0; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(7,8,12,.7); color: var(--text); font-size: 22px; cursor: pointer; }
.lm-body { padding: 26px 28px 8px; }
.lm-kicker { display: flex; gap: 12px; margin: 0 0 10px; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.lm-kicker span + span { color: var(--muted); }
.lm-top { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 22px; align-items: start; }
.lm-text h2 { margin: 0; font: 400 clamp(30px, 4vw, 44px)/1 var(--serif); }
.lm-formula { margin: 14px 0 4px; font: 400 clamp(26px, 3.4vw, 38px)/1.1 var(--serif); color: var(--c); }
.lm-note { margin: 0; color: var(--muted); font-size: 14px; }
.lm-idea { margin: 14px 0 0; font-size: 16.5px; line-height: 1.55; color: #d9dde7; }
.lm-disc { margin: 12px 0 0; font: 400 12.5px var(--mono); color: var(--dim); }
.lm-disc a { color: var(--muted); }
.lm-visual { border-radius: 16px; overflow: hidden; border: 1px solid var(--line2); background: #07080c; aspect-ratio: 1; display: grid; place-items: center; }
.lm-visual img { width: 100%; height: 100%; object-fit: cover; }
.lm-art { width: 60%; color: var(--text); }
.lm-art svg { width: 100%; height: auto; }
.lm-h { margin: 24px 0 10px; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.lm-examples { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lm-examples li { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.03); border-left: 3px solid var(--c); }
.lm-examples b { font-weight: 600; font-size: 14.5px; }
.lm-examples span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.lm-examples a { margin-top: 2px; font-size: 13px; color: var(--c); text-decoration: none; }
.lm-examples a:hover { text-decoration: underline; }
.lm-foot { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 28px; margin-top: 16px;
  border-top: 1px solid var(--line); background: rgba(11,13,19,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lm-foot p { margin: 0; color: var(--muted); font-size: 14px; }
.lm-actions { display: flex; gap: 8px; }
.lm-actions form { margin: 0; }
.lm-actions .btn.primary { background: var(--c); color: var(--ink); border-color: transparent; }
@media (max-width: 640px) {
  .lm-top { grid-template-columns: 1fr; }
  .lm-visual { width: 140px; order: -1; }
  .lm-examples { grid-template-columns: 1fr; }
  .lm-body { padding: 22px 18px 6px; }
  .lm-foot { padding: 14px 18px; }
}

/* on explainer pages */
.ex-laws { padding: 34px 0 10px; }
.law-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.law-chip { display: inline-flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--c) 40%, var(--line2)); background: color-mix(in srgb, var(--c) 8%, transparent); text-decoration: none; color: var(--text); }
.law-chip span { font: 400 16px var(--serif); color: var(--c); }
.law-chip:hover { background: color-mix(in srgb, var(--c) 16%, transparent); }
.law-big { margin: 0; font: 400 clamp(34px, 5vw, 58px)/1 var(--serif); color: var(--c); }
.law-note { margin: 6px 0 0; color: var(--muted); }
.law-examples { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.law-examples li { padding: 16px; border-radius: 16px; border: 1px solid var(--line); border-left: 3px solid var(--c); background: rgba(255,255,255,.03); }
.law-examples h3 { margin: 0 0 6px; font: 400 21px/1.15 var(--serif); }
.law-examples p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.law-examples a { display: inline-block; margin-top: 8px; color: var(--c); text-decoration: none; font-size: 14px; }

/* explainer: the direct answer, chapter by chapter, and the FAQ (all plain HTML for readers and crawlers) */
.ex-answer { color: var(--text); }
.ex-hook { max-width: 40em; margin: 12px 0 0; color: var(--muted); font-size: 15.5px; }
.law-more { margin: 16px 0 0; color: var(--muted); font-size: 14.5px; }
.law-more a { color: var(--c); }
.ex-chapters, .ex-faq { padding: 34px 0 10px; max-width: 820px; }
.ex-chapters h2, .ex-faq h2 { font: 400 clamp(30px, 4vw, 44px)/1.05 var(--serif); margin: 0 0 18px; }
.ex-toc ol { margin: 0 0 10px; padding-left: 1.3em; columns: 2 240px; column-gap: 32px; color: var(--dim); }
.ex-toc li { margin: 0 0 6px; break-inside: avoid; }
.ex-toc a { color: var(--muted); text-decoration: none; }
.ex-toc a:hover { color: var(--text); }
.ex-chapter { padding: 26px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.ex-ch-no { margin: 0 0 6px; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.ex-chapter h3 { margin: 0; font: 400 clamp(24px, 3vw, 32px)/1.1 var(--serif); }
.ex-ch-sub { margin: 6px 0 0; color: var(--muted); font-style: italic; }
.ex-learn { margin-top: 14px; color: var(--muted); line-height: 1.7; }
.ex-learn p, .ex-learn ul, .ex-learn ol { margin: 0 0 12px; }
.ex-learn b, .ex-learn strong { color: var(--text); font-weight: 600; }
.ex-learn a { color: var(--c); }
.ex-learn h4 { margin: 16px 0 6px; font: 600 16px var(--sans); color: var(--text); }
.ex-learn table { border-collapse: collapse; margin: 0 0 12px; font-size: 14.5px; }
.ex-learn th, .ex-learn td { padding: 6px 10px; border: 1px solid var(--line); text-align: left; }
.ex-ch-play { margin: 4px 0 0; font-size: 14.5px; }
.ex-ch-play a { color: var(--c); text-decoration: none; }
.ex-q { border-top: 1px solid var(--line); }
.ex-q:last-child { border-bottom: 1px solid var(--line); }
.ex-q summary { display: flex; align-items: baseline; gap: 12px; padding: 16px 0; cursor: pointer; list-style: none; }
.ex-q summary::-webkit-details-marker { display: none; }
.ex-q summary::before { content: '+'; font: 500 16px var(--mono); color: var(--c); }
.ex-q[open] summary::before { content: '−'; }
.ex-q summary h3 { margin: 0; font: 500 17px/1.4 var(--sans); }
.ex-q p { margin: 0 0 18px 26px; color: var(--muted); }
.ex-q p b { color: var(--text); font-weight: 600; }

/* small cases: Read and History become round icon buttons so all three always fit */
.case:not(.feature) .ca.ic { width: 30px; padding: 0; justify-content: center; }
.case:not(.feature) .ca.ic span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.case:not(.feature) .ca.ic svg { width: 15px; height: 15px; }
.case.feature .ca.ic svg { display: none; }
.case-actions { flex-wrap: nowrap; min-width: 0; }
@media (max-width: 480px) { .case:not(.feature) .ca:not(.play) { display: inline-flex; } .case:not(.feature) .ca.ic { width: 28px; height: 28px; } }

/* Legibility: the words sit on a frosted-glass strip, whatever the picture behind them */
.case:not(.law):not(.sealed) .case-body {
  background: linear-gradient(180deg, rgba(8,10,15,.55), rgba(8,10,15,.86) 38%, rgba(8,10,15,.94));
  backdrop-filter: blur(14px) saturate(125%); -webkit-backdrop-filter: blur(14px) saturate(125%);
  border-top: 1px solid rgba(255,255,255,.09);
  border-radius: 0 0 17px 17px;
}
.case .case-body h3, .case .case-body .hook { text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.case .case-meta { text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.case .case-meta .fld { color: #c9cedb; }
.case .glass::after { background: linear-gradient(180deg, rgba(7,8,12,0) 45%, rgba(7,8,12,.35) 100%) !important; }
.case.feature .case-body { padding-top: 20px; }
.case.feature .hook { color: #e3e6ee; }
