/* Podcastómetro — dark theme, mobile first */
:root {
  color-scheme: dark;
  --bg: #000000; --bg-2: #0B0B0F; --surface: #14141B; --surface-2: #1B1B24; --surface-3: #23232E;
  --border: #262631; --border-2: #363644;
  --text: #F4F4F7; --muted: #A5A5B5; --faint: #72727F;
  --accent: #FF4757; --accent-soft: rgba(255, 71, 87, .14);
  --good: #4ADE80; --good-soft: rgba(74, 222, 128, .13); --bad: #FF7B7B; --bad-soft: rgba(255, 123, 123, .13);
  --pc: var(--accent); /* podcast colour: set per page or per card */
  --radius: 18px; --radius-sm: 12px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --gutter: 16px; --header: 56px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Grid children must be allowed to shrink below their content width */
.grid-2 > *, .sig-grid > *, .facts > *, .pods > *, .ents > *, .examples > * { min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 56px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* Background: black with a wide, very subtle white grid */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 96px 96px; background-position: -1px -1px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--pc); outline-offset: 2px; border-radius: 6px; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tnum { font-variant-numeric: tabular-nums; }
@media (min-width: 768px) { :root { --gutter: 28px; --header: 64px; } }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(9, 9, 13, .82);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; gap: 10px; height: var(--header); }
@media (min-width: 900px) { .site-header .container { gap: 16px; } }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display);
  font-weight: 800; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; }
@media (min-width: 400px) { .brand { font-size: 20px; } }
.rec { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
  animation: rec 2s ease-in-out infinite; flex: none; }
@keyframes rec { 50% { box-shadow: 0 0 0 7px rgba(255, 71, 87, .06); } }
.nav { display: none; margin-left: auto; gap: 4px; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current] { color: var(--text); background: var(--surface-2); }
/* Contact call to action: always visible */
.nav-cta { margin-left: auto; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; flex: none;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 20px -8px var(--accent); transition: transform .15s, background .15s; }
.nav-cta:hover { transform: translateY(-1px); background: #ff5e6c; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px 12px; font-size: 15px; font-weight: 600; cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }
.menu-btn .lbl { display: none; }
@media (min-width: 520px) { .menu-btn .lbl { display: inline; } }
.menu-panel { position: absolute; left: 0; right: 0; top: var(--header); background: var(--bg-2); border-bottom: 1px solid var(--border);
  padding: 12px var(--gutter) 20px; display: none; box-shadow: 0 24px 40px rgba(0, 0, 0, .5); max-height: calc(100vh - var(--header)); overflow: auto; }
.menu-panel.open { display: block; }
.menu-panel h6 { margin: 8px 0; font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; }
.menu-panel .pod-links { display: grid; gap: 6px; margin-bottom: 14px; }
.menu-panel a { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 10px 12px; border-radius: 12px; background: var(--surface); font-weight: 600; }
.menu-panel a:hover { background: var(--surface-2); }
.menu-panel .page-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
@media (min-width: 640px) { .menu-panel .pod-links { grid-template-columns: 1fr 1fr 1fr; } }
@media (min-width: 900px) { .nav { display: flex; } .nav-cta { margin-left: 0; } .menu-panel .page-links, .menu-panel .pages-title { display: none; } }

/* Mini logo (header menu, rankings, fact cards) */
.mlogo { width: 32px; height: 32px; border-radius: 9px; flex: none; background: var(--lbg, #000); padding: 3px; overflow: hidden;
  display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .08); }
.mlogo img { width: 100%; height: 100%; object-fit: contain; }
.mlogo.cover { padding: 0; }
.mlogo.cover img { object-fit: cover; }

/* ---- Buttons & chips ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 1px solid var(--border-2); background: var(--surface-2); cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); background: var(--surface-3); }
.btn.primary { background: var(--text); color: #0A0A0E; border-color: transparent; }
.btn.primary:hover { background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--border); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--border-2); background: var(--surface-3); }
.chip.on { background: var(--pc); border-color: var(--pc); color: #0A0A0E; }
.chip i { font-style: normal; color: var(--faint); font-weight: 500; font-size: 12px; }
.chip.on i { color: rgba(0, 0, 0, .6); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.tag.good { background: var(--good-soft); color: var(--good); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.tag.hot { background: color-mix(in srgb, var(--pc) 18%, transparent); color: var(--pc); }

/* Segmented control, scrolls sideways on small screens */
.seg { display: flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; border: 0; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; padding: 8px 14px;
  border-radius: 10px; cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-2); }

/* ---- Sections ---- */
.section { padding: 56px 0 8px; }
.section-head { margin-bottom: 24px; max-width: 760px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pc); margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.03em; line-height: 1.08; margin: 0; }
.section-head h2 { font-size: clamp(28px, 6vw, 44px); font-weight: 800; }
.section-head p { color: var(--muted); margin: 12px 0 0; font-size: 17px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; min-width: 0; }
@media (min-width: 768px) { .card { padding: 24px; } .section { padding-top: 80px; } }
.grid-2 { display: grid; gap: 16px; }
@media (min-width: 960px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 20px; } }
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 14px; letter-spacing: -.02em; }
.insight { font-family: var(--display); font-size: clamp(20px, 4.4vw, 26px); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin: 0 0 6px; }
.insight em { font-style: normal; color: var(--pc); }
.note { color: var(--muted); font-size: 14px; margin: 0; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--pc); font-weight: 700; text-decoration: none; font-size: 15px; }
.more:hover { text-decoration: underline; }

/* ---- Home hero ---- */
.hero { position: relative; padding: 40px 0 24px; }
.hero .kicker { color: var(--muted); }
.hero-top { display: grid; gap: 8px; align-items: center; }
@media (min-width: 1024px) { .hero-top { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; } }
.wordmark { font-size: clamp(46px, 12.2vw, 100px); font-weight: 800; letter-spacing: -.055em; line-height: .92; margin: 4px 0 0; }
@media (min-width: 1024px) { .wordmark { font-size: min(7.4vw, 100px); } }
.wordmark span { background: linear-gradient(90deg, #FF4757, #FF8A1F 55%, #FFD23F); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 4.4vw, 22px); color: var(--muted); max-width: 640px; margin: 20px 0 0; line-height: 1.5; }
.lead b { color: var(--text); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .rec { animation: none; } html { scroll-behavior: auto; } }

/* Word cloud next to the title: questions + words that define some podcasts, drifting slowly */
.cloud { position: relative; height: 190px; margin-top: 20px; pointer-events: none; }
@media (min-width: 1024px) { .cloud { height: 300px; margin-top: 0; } }
.fl { position: absolute; top: var(--t); left: var(--l); font-family: "Instrument Serif", Georgia, serif; font-style: italic;
  font-size: clamp(26px, 6.6vw, 40px); line-height: 1; white-space: nowrap; color: var(--c, var(--muted)); opacity: .6;
  animation: drift 9s ease-in-out infinite; }
.fl.q { color: var(--text); opacity: .55; font-size: clamp(20px, 5vw, 28px); }
.fl:nth-child(2n) { animation-delay: -3s; }
.fl:nth-child(3n) { animation-delay: -6s; }
@keyframes drift { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .fl { animation: none; } }

/* Logo wall (podcast "posters") */
.logo-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 36px; }
@media (min-width: 900px) { .logo-wall { grid-template-columns: repeat(6, 1fr); gap: 14px; } }
.logo-tile { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--lbg, #000);
  border: 1px solid rgba(255, 255, 255, .08); display: grid; place-items: center; padding: 12%; text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s; }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; }
.logo-tile.cover { padding: 0; }
.logo-tile.cover img { object-fit: cover; }
.logo-tile:hover { transform: translateY(-3px); border-color: var(--pc); box-shadow: 0 12px 30px -10px var(--pc); }

/* Big numbers */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-top: 28px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); padding: 16px 18px; }
.stat b { display: block; font-family: var(--display); font-size: clamp(30px, 7vw, 44px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.stat span { display: block; color: var(--text); font-weight: 600; font-size: 15px; }
.stat small { display: block; color: var(--faint); font-size: 13px; margin-top: 2px; }

/* ---- Fact cards ---- */
.facts { display: grid; gap: 14px; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); text-decoration: none; overflow: hidden; transition: transform .2s, border-color .2s; }
.fact::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--pc); }
.fact:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--pc) 55%, var(--border)); }
.fact .who { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.fact .who .mlogo { width: 28px; height: 28px; border-radius: 8px; }
.fact .big { font-family: var(--display); font-size: clamp(40px, 11vw, 54px); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--pc); overflow-wrap: anywhere; }
.fact p { margin: 0; font-size: 17px; line-height: 1.45; }
.fact p b { color: var(--pc); font-weight: 700; }
.fact .go { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.fact:hover .go { color: var(--pc); }
.minibars { display: grid; gap: 7px; margin-top: 2px; }
.minibar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; font-size: 13px; color: var(--muted); }
.minibar span:nth-child(2) { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.minibar i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.minibar i::after { content: ""; display: block; height: 100%; width: var(--w); background: var(--pc); border-radius: 3px; }
.facts-more { display: flex; justify-content: center; margin-top: 18px; }

/* ---- Word search ---- */
.search { position: relative; }
.search input { width: 100%; font: inherit; font-size: 18px; padding: 14px 16px 14px 48px; border-radius: 14px; border: 1px solid var(--border-2);
  background: var(--bg-2); color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
.search input:focus { border-color: var(--pc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc) 20%, transparent); }
.search svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: 14px; padding: 6px; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); display: none; max-height: 300px; overflow: auto; }
.suggest.open { display: block; }
.suggest button { display: flex; width: 100%; justify-content: space-between; gap: 10px; text-align: left; border: 0; background: transparent;
  padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 16px; }
.suggest button:hover, .suggest button.active { background: var(--surface-3); }
.suggest button i { font-style: normal; color: var(--faint); font-size: 13px; }
.search-row { display: grid; gap: 12px; margin-bottom: 14px; }
@media (min-width: 768px) { .search-row { grid-template-columns: 1fr auto; align-items: center; } }
.result { font-size: 18px; line-height: 1.5; margin: 18px 0 8px; }
.result b { color: var(--pc); }
.result a { color: var(--pc); font-weight: 700; }

/* Ranking rows (one per podcast) */
.rank { display: grid; gap: 8px; }
.rank-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 12px; border-radius: 14px;
  background: var(--bg-2); border: 1px solid var(--border); text-decoration: none; }
a.rank-row:hover { border-color: var(--border-2); }
.rank-row .name { font-weight: 700; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .val { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 16px; text-align: right; }
.rank-row .bar { grid-column: 2 / -1; height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.rank-row .bar i { display: block; height: 100%; width: var(--w); background: var(--pc); border-radius: 4px; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.rank-row .sub { grid-column: 2 / -1; font-size: 13px; color: var(--faint); }
.rank-row.top { border-color: color-mix(in srgb, var(--pc) 50%, var(--border)); }

/* ---- Podcast cards (home) ---- */
.pods { display: grid; gap: 14px; }
@media (min-width: 640px) { .pods { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .pods { grid-template-columns: repeat(3, 1fr); } }
.pod { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  overflow: hidden; text-decoration: none; transition: transform .2s, border-color .2s; }
.pod:hover { transform: translateY(-3px); border-color: var(--pc); }
.pod .cover { height: 150px; background: var(--lbg); display: flex; align-items: center; justify-content: center; padding: 18px; border-bottom: 1px solid var(--border); overflow: hidden; }
.pod .cover img { max-height: 114px; max-width: 80%; width: auto; height: auto; object-fit: contain; }
.pod .cover.sq { padding: 0; }
.pod .cover.sq img { max-height: 150px; max-width: 100%; }
.pod .body { padding: 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pod h3 { font-size: 24px; font-weight: 800; }
.pod h3 small { display: block; font-family: var(--font); font-size: 14px; letter-spacing: 0; font-weight: 500; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.pod dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.pod dl div { background: var(--bg-2); border-radius: 10px; padding: 8px 10px; }
.pod dt { font-size: 12px; color: var(--faint); }
.pod dd { margin: 0; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.pod .sig { font-size: 14px; color: var(--muted); }
.pod .sig b { color: var(--pc); font-weight: 700; }
.pod .go { margin-top: auto; color: var(--pc); font-weight: 700; font-size: 15px; }

/* ---- Charts ---- */
.chart { position: relative; width: 100%; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .axis text { fill: var(--faint); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart .grid line { stroke: var(--border); }
.chart .bars { fill: color-mix(in srgb, var(--pc) 38%, transparent); }
.chart .bars-hl { fill: #3DB8FF; }
.chart .bars-sel { fill: var(--text); }
.chart .trend { fill: none; stroke: var(--pc); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .hl-label { fill: #3DB8FF; font-size: 12px; font-weight: 800; font-family: var(--font); }
.chart .guide { stroke: var(--muted); stroke-dasharray: 3 3; }
.chart .series { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.tip { position: absolute; z-index: 5; top: 0; pointer-events: none; background: var(--surface-3); border: 1px solid var(--border-2); border-radius: 12px;
  padding: 10px 12px; font-size: 13px; line-height: 1.4; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); width: max-content; max-width: min(300px, 86%); }
.tip.sticky { pointer-events: auto; }
.tip b { font-size: 14px; }
.tip .t { color: var(--muted); display: block; margin: 2px 0 4px; }
.tip .v { font-weight: 800; font-size: 15px; color: var(--pc); }
.tip .open { display: inline-block; margin-top: 8px; border: 0; background: var(--pc); color: #0A0A0E; font-weight: 800; font-size: 13px;
  padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }
.legend i.line { height: 3px; vertical-align: 3px; border-radius: 2px; }

/* Horizontal bars */
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; width: 100%; text-align: left; background: none; border: 0; padding: 4px 6px;
  border-radius: 10px; cursor: default; }
button.hbar { cursor: pointer; }
button.hbar:hover { background: var(--surface-2); }
.hbar.on { background: color-mix(in srgb, var(--pc) 12%, transparent); }
.hbar .l { font-weight: 600; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .v { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.hbar .b { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.hbar .b i { display: block; height: 100%; width: var(--w); background: var(--c, var(--pc)); border-radius: 4px; }

/* ---- Podcast page ---- */
.p-hero { position: relative; padding: 24px 0 8px; overflow: hidden; }
.p-hero::before { content: ""; position: absolute; inset: -40% -20% auto; height: 480px; pointer-events: none;
  background: radial-gradient(45% 50% at 30% 40%, color-mix(in srgb, var(--pc) 22%, transparent), transparent 70%); }
.p-hero .container { position: relative; }
.switcher { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 16px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
.switcher::-webkit-scrollbar { display: none; }
.switcher a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--muted); }
.switcher a .mlogo { width: 26px; height: 26px; border-radius: 50%; }
.switcher a[aria-current] { color: var(--text); border-color: var(--pc); background: color-mix(in srgb, var(--pc) 12%, var(--surface)); }
.p-head { display: grid; gap: 20px; align-items: center; margin-top: 8px; }
@media (min-width: 768px) { .p-head { grid-template-columns: 200px 1fr; gap: 32px; } }
.p-logo { width: 140px; aspect-ratio: 1; border-radius: 22px; background: var(--lbg); display: grid; place-items: center; padding: 14px;
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 20px 50px -20px var(--pc); overflow: hidden; }
.p-logo.cover { padding: 0; }
.p-logo.cover img { width: 100%; height: 100%; object-fit: cover; }
.p-logo img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 768px) { .p-logo { width: 200px; } }
.p-head h1 { font-size: clamp(38px, 9vw, 72px); font-weight: 800; letter-spacing: -.045em; }
.p-head .lead { margin-top: 10px; }
.p-head .dates { color: var(--faint); font-size: 14px; margin-top: 8px; }

/* In-page section nav */
.subnav { position: sticky; top: var(--header); z-index: 40; background: rgba(9, 9, 13, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); margin-top: 24px; }
.subnav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a { flex: none; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 999px; }
.subnav a:hover { color: var(--text); }
.subnav a.on { background: var(--pc); color: #0A0A0E; }

/* Metric tabs */
.mtabs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 12px; margin: 0 calc(var(--gutter) * -1) 4px; padding-left: var(--gutter); padding-right: var(--gutter); scroll-snap-type: x mandatory; }
.mtabs::-webkit-scrollbar { display: none; }
@media (min-width: 960px) { .mtabs { display: grid; grid-template-columns: repeat(5, 1fr); overflow: visible; margin: 0 0 4px; padding: 2px 0 12px; } }
.mtab { flex: 0 0 min(64%, 220px); scroll-snap-align: start; text-align: left; cursor: pointer; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 14px 16px; transition: border-color .15s, background .15s; }
.mtab:hover { border-color: var(--border-2); }
.mtab.on { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 10%, var(--surface)); }
.mtab .n { font-size: 14px; font-weight: 700; color: var(--muted); }
.mtab.on .n { color: var(--pc); }
.mtab .v { display: block; font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin-top: 2px; }
.mtab .u { display: block; font-size: 13px; color: var(--faint); margin-bottom: 8px; }
.callout { display: flex; gap: 12px; align-items: flex-start; background: rgba(61, 184, 255, .1); border: 1px solid rgba(61, 184, 255, .25);
  border-radius: 14px; padding: 12px 14px; margin: 14px 0 6px; cursor: pointer; font-size: 15px; text-align: left; width: 100%; }
.callout .dot { width: 10px; height: 10px; border-radius: 50%; background: #3DB8FF; margin-top: 7px; flex: none; }
.callout b { color: #3DB8FF; }

/* Example words */
.examples { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
@media (min-width: 768px) { .examples { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .examples { grid-template-columns: repeat(6, 1fr); } }
.ex { text-align: left; cursor: pointer; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; transition: border-color .15s; min-width: 0; }
.ex:hover { border-color: var(--border-2); }
.ex.on { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 10%, var(--surface)); }
.ex .w { font-weight: 800; font-size: 17px; text-transform: capitalize; }
.ex .n { font-size: 12px; color: var(--faint); }
.ex svg { display: block; width: 100%; height: 30px; margin: 8px 0 6px; }

/* Entities */
.ents { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .ents { grid-template-columns: 1fr 1fr; } }
.ent { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.ent h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.ent ol { margin: 0; padding: 0; list-style: none; counter-reset: e; display: grid; gap: 4px; }
.ent li { display: flex; gap: 8px; font-size: 15px; counter-increment: e; }
.ent li::before { content: counter(e); color: var(--faint); font-size: 12px; width: 14px; padding-top: 3px; }
.ent li span { margin-left: auto; color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }

/* 3D map */
.map-card { padding: 0; overflow: hidden; }
.map-top { padding: 16px 16px 0; display: grid; gap: 12px; }
@media (min-width: 768px) { .map-top { padding: 20px 24px 0; grid-template-columns: 1fr auto; align-items: center; } }
.map-stage { position: relative; height: min(72vh, 560px); min-height: 380px; margin-top: 8px; background: radial-gradient(60% 60% at 50% 45%, var(--surface-2), var(--surface)); }
.map-stage .plot { position: absolute; inset: 0; }
.map-overlay { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-end; justify-content: center; padding: 16px;
  background: linear-gradient(transparent 55%, rgba(9, 9, 13, .7)); }
.map-overlay[hidden] { display: none; }
.map-tools { position: absolute; z-index: 4; top: 12px; right: 12px; display: flex; gap: 6px; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-2);
  background: rgba(20, 20, 27, .85); backdrop-filter: blur(6px); font-size: 13px; font-weight: 700; cursor: pointer; }
.icon-btn:hover { background: var(--surface-3); }
.icon-btn.on { background: var(--pc); color: #0A0A0E; border-color: var(--pc); }
.icon-btn svg { width: 16px; height: 16px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 0; }
@media (min-width: 768px) { .map-legend { padding: 14px 24px 0; } }
.lg { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 8px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; cursor: pointer; }
.lg i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.lg.off { opacity: .35; }
.lg.solo { border-color: var(--c); }
.map-info { padding: 14px 16px 18px; min-height: 92px; }
@media (min-width: 768px) { .map-info { padding: 16px 24px 22px; } }
.map-info .ep-pick { display: flex; gap: 14px; align-items: flex-start; }
.map-info .ep-pick > div { flex: 1; min-width: 0; }
.map-info .ep-pick h4 { margin: 2px 0 6px; font-size: 16px; line-height: 1.35; }
.map-info .kv { display: flex; flex-wrap: wrap; gap: 6px; }

/* Twins */
.list { display: grid; gap: 8px; }
.item { display: block; width: 100%; text-align: left; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border);
  cursor: pointer; font-size: 15px; line-height: 1.4; }
.item:hover { border-color: var(--border-2); }
.num { font-weight: 800; color: var(--pc); margin-right: 6px; font-variant-numeric: tabular-nums; }
.sub-title { font-size: 20px; font-weight: 700; margin: 8px 0 14px; letter-spacing: -.02em; }
.twins { display: grid; gap: 14px; margin-bottom: 36px; }
@media (min-width: 700px) { .twins { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .twins { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.twin { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; min-width: 0; }
.twin .kicker { margin: 0; font-size: 12px; }
.twin .ep { display: block; width: 100%; text-align: left; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; cursor: pointer; font-size: 15px; line-height: 1.4; }
.twin .ep:hover { border-color: var(--pc); }
.twin .ep small { display: block; color: var(--faint); font-size: 12px; margin-top: 4px; }
.twin .eq { align-self: center; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; margin: -4px 0;
  background: color-mix(in srgb, var(--pc) 16%, var(--surface)); color: var(--pc); font-weight: 800; }
.twin .common { margin-top: auto; padding-top: 4px; font-size: 13px; color: var(--muted); }
.twin .common b { color: var(--text); font-weight: 600; }

/* Episode list */
.ep-tools { display: grid; gap: 10px; margin-bottom: 12px; }
@media (min-width: 768px) { .ep-tools { grid-template-columns: 1fr auto; } }
.ep-tools input, .ep-tools select { font: inherit; font-size: 16px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--bg-2); color: var(--text); }
.ep-tools label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.eps { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.eps-head { display: none; }
.ep-row { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 12px 14px; border-top: 1px solid var(--border); cursor: pointer; width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-bottom: 0; }
.ep-row:first-child { border-top: 0; }
.ep-row:hover { background: var(--surface-2); }
.ep-row .c-num { grid-row: span 2; font-weight: 800; color: var(--pc); font-variant-numeric: tabular-nums; min-width: 38px; }
.ep-row .c-title { font-weight: 600; font-size: 15px; line-height: 1.35; }
.ep-row .c-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.ep-row .c-meta b { color: var(--muted); font-weight: 600; }
.ep-row .c-meta .sorted { color: var(--pc); }
.ep-row .c-meta .sorted b { color: var(--pc); }
.eps-more { display: flex; justify-content: center; padding: 14px; border-top: 1px solid var(--border); }

/* Episode sheet (dialog) */
dialog.sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 100%; max-height: 92vh; border-radius: 24px 24px 0 0;
  background: var(--surface); color: var(--text); box-shadow: 0 -20px 60px rgba(0, 0, 0, .6); }
dialog.sheet::backdrop { background: rgba(5, 5, 8, .7); backdrop-filter: blur(4px); }
@media (min-width: 768px) { dialog.sheet { margin: auto; width: min(880px, calc(100vw - 48px)); max-height: calc(100vh - 64px); border-radius: 24px; } }
.sheet-head { position: sticky; top: 0; z-index: 2; background: var(--surface); padding: 12px 18px 14px; border-bottom: 1px solid var(--border); display: flex; gap: 12px; align-items: flex-start; }
.sheet-head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; border-radius: 2px; background: var(--border-2); transform: translateX(-50%); }
@media (min-width: 768px) { .sheet-head { padding: 22px 26px 16px; } .sheet-head::before { display: none; } }
.sheet-head h3 { font-size: clamp(19px, 4.6vw, 24px); line-height: 1.25; margin: 4px 0 6px; font-weight: 700; }
.sheet-head .eyebrow { font-size: 13px; font-weight: 700; color: var(--pc); margin-top: 8px; }
.sheet-head a { font-size: 14px; color: var(--muted); font-weight: 600; }
.x-btn { margin-left: auto; margin-top: 6px; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--surface-2);
  font-size: 22px; line-height: 1; cursor: pointer; }
.sheet-body { padding: 16px 18px 28px; }
@media (min-width: 768px) { .sheet-body { padding: 20px 26px 30px; } }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 768px) { .kpis { grid-template-columns: repeat(5, 1fr); } }
.kpi { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.kpi b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi small { display: block; color: var(--faint); font-size: 12px; line-height: 1.3; margin-bottom: 6px; }
.sheet-body h4 { margin: 22px 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills span { background: var(--bg-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px 11px; font-size: 14px; }
.pills span i { color: var(--faint); font-style: normal; font-size: 12px; margin-left: 5px; }

/* ---- Comparison ---- */
.sig-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .sig-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .sig-grid { grid-template-columns: repeat(3, 1fr); } }
.sig-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; border-top: 3px solid var(--pc); }
.sig-card header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 700; }
.sig-card .hbars { gap: 6px; }

/* ---- Contact ---- */
.contact { --pc: var(--accent); margin-top: 96px; padding: 56px 0; border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 71, 87, .06), transparent 320px); }
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; } }
.contact h2 { font-size: clamp(32px, 7vw, 52px); font-weight: 800; }
.contact .kicker { color: var(--accent); }
.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span { font-size: 14px; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--bg-2);
  border: 1px solid var(--border-2); border-radius: 12px; padding: 12px 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--bad); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .send { justify-self: start; min-width: 190px; }
.contact-form .send[disabled] { opacity: .6; cursor: wait; transform: none; }
.form-status { margin: 0; font-size: 15px; min-height: 1.5em; }
.form-status.error { color: var(--bad); }
.form-done { text-align: center; padding: 28px 8px; }
.form-done b { display: block; font-family: var(--display); font-size: 28px; letter-spacing: -.02em; margin: 10px 0 6px; }
.form-done p { color: var(--muted); margin: 0; }
.form-done .ok { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 28px;
  background: var(--good-soft); color: var(--good); }

/* ---- Footer ---- */
.site-footer { margin-top: 0; border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .container { display: grid; gap: 20px; }
@media (min-width: 768px) { .site-footer .container { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h5 { margin: 0 0 10px; color: var(--text); font-size: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Loading skeleton */
.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%;
  animation: sk 1.4s linear infinite; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }
