@font-face {
  font-family: "Hubot Sans";
  src: url("fonts/hubot-sans.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}

:root {
  --bg: #030a1c;
  --bg-2: #071331;
  --bg-3: #0c1b42;
  --ink: #eef3ff;
  --ink-2: #b7c3e0;
  --mute: #7d8bb0;
  --line: rgba(160, 185, 255, 0.12);
  --line-2: rgba(160, 185, 255, 0.22);
  --blue: #065dff;
  --radix: #66defb;
  --radix-ink: #021c4c;
  --hot: #fb573c;
  --warm: #ffb547;
  --solo: #5b6a92;
  --rep: #b98cff;
  --rep-ink: #1a0738;
  --hot-ink: #ff8a73;
  --radix-soft: rgba(102, 222, 251, 0.14);
  --radix-ring: rgba(102, 222, 251, 0.35);
  --rep-soft: rgba(185, 140, 255, 0.16);
  --rep-ring: rgba(185, 140, 255, 0.5);
  --hot-soft: rgba(251, 87, 60, 0.16);
  --glass: rgba(3, 10, 28, 0.72);
  --glass-2: rgba(7, 19, 49, 0.92);
  --scrim: rgba(1, 5, 15, 0.62);
  --shadow: rgba(0, 0, 0, 0.5);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-bounce: cubic-bezier(0.34, 1.36, 0.64, 1);
  /* motion scale (transitions.dev tokens) */
  --duration-stagger: 40ms;
  --duration-quick: 150ms;
  --duration-fast: 250ms;
  --duration-medium: 350ms;
  --duration-slow: 400ms;
  --duration-very-slow: 500ms;
  --distance-medium: 12px;
  --blur-medium: 3px;
  /* radius by role: tags < controls < cards. Round only for dots. */
  --r-tag: 6px;
  --r-control: 10px;
  --r-card: 14px;
  --body: Inter, system-ui, sans-serif; /* Radix brand body face (paired with Hubot Sans), unslop-ignore */

  --gutter: 16px;
  --display: "Hubot Sans", "Inter", system-ui, sans-serif;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
/* `hidden` must win over any display rule (an invisible overlay once ate every click). */
[hidden] { display: none !important; }
html {
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--body);
  overflow-x: hidden;
}
button, a, [role="button"], select {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }
input, select { font-size: 16px; }
:focus-visible { outline: 2px solid var(--radix); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.display {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
  font-size: clamp(34px, 6vw, 72px);
  text-wrap: balance;
}
.display-sm { font-size: clamp(28px, 3.6vw, 44px); }
.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--radix);
}
.lede { color: var(--ink-2); font-size: clamp(16px, 1.5vw, 19px); max-width: 640px; margin: 18px 0 0; }
.tld {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 105%;
  letter-spacing: -0.01em;
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(var(--distance-medium));
  filter: blur(var(--blur-medium));
  transition: opacity var(--duration-very-slow) var(--ease-out), transform var(--duration-very-slow) var(--ease-out), filter var(--duration-very-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--duration-stagger));
}
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- sample pill ---------- */
.sample-pill {
  position: fixed; z-index: 60;
  left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  font-size: 12.5px; font-weight: 600; color: #1b1300;
  background: var(--warm);
  border-radius: var(--r-control);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  overflow: hidden; text-overflow: ellipsis;
}
.sample-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #1b1300; animation: blink 1.6s ease-in-out infinite; flex: none; }
@keyframes blink { 50% { opacity: 0.25; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 24px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 14px;
  transition: background-color 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav-logo img { display: block; height: 22px; width: auto; }
.nav-links { display: none; gap: 40px; margin-left: auto; font-size: 14.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.nav-links a { text-decoration: none; color: var(--ink-2); transition: color 160ms ease; }
.nav-search {
  margin-left: 10px;
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 20px;
  border: 1px solid var(--line-2); border-radius: var(--r-control);
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: border-color 160ms ease, color 160ms ease, transform 120ms var(--ease-out);
}
.nav-search:active { transform: scale(0.96); }
@media (min-width: 900px) {
  .nav-links { display: flex; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.field {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: -2;
  touch-action: pan-y;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to top, var(--bg) 6%, color-mix(in srgb, var(--bg) 60%, transparent) 40%, transparent 70%),
    radial-gradient(ellipse at 80% 40%, rgba(6, 93, 255, 0.18), transparent 60%);
}
.hero-copy { padding-top: 120px; padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.hero-copy a, .hero-copy button { pointer-events: auto; }
.hero-title { font-size: clamp(54px, 11vw, 148px); line-height: 0.95; margin-bottom: 22px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1100ms var(--ease-out);
}
.hero-title .line:nth-child(2) > span { transition-delay: 90ms; }
.hero.ready .hero-title .line > span { transform: none; }
.hero-title em { font-style: normal; color: var(--radix); }
.hero-sub { max-width: 520px; color: var(--ink-2); font-size: clamp(16px, 1.6vw, 19px); margin: 0 0 22px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.sw-radix { background: var(--radix); box-shadow: 0 0 10px var(--radix); } /* key for the hero field's glow, unslop-ignore */
.sw-hot { background: var(--hot); }
.sw-solo { background: var(--solo); }
.hint { font-size: 13px; color: var(--mute); margin: 14px 0 0; }
.hint-coarse { display: none; }
@media (pointer: coarse) { .hint-fine { display: none; } .hint-coarse { display: inline; } }
@media (min-width: 900px) {
  .hero { align-items: center; }
  .hero-copy { padding-bottom: 80px; }
  .hero-scrim {
    background:
      linear-gradient(90deg, var(--bg) 4%, color-mix(in srgb, var(--bg) 55%, transparent) 38%, transparent 60%),
      linear-gradient(to top, var(--bg) 2%, transparent 22%);
  }
}
.scroll-cue {
  position: absolute; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  width: 22px; height: 36px; margin-left: -11px;
  border: 1.5px solid var(--line-2); border-radius: 12px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: var(--ink-2);
  animation: cue 1.8s var(--ease-in-out) infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* canvas tooltip */
.tip {
  position: fixed; z-index: 40; left: 0; top: 0;
  pointer-events: none;
  padding: 8px 12px;
  background: var(--glass-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font-size: 13px; color: var(--ink-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
  transition: opacity 150ms ease;
}
.tip b { display: block; font-family: var(--display); font-stretch: 105%; font-size: 18px; color: var(--ink); }
.tip.r b { color: var(--radix); }

/* ---------- stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  padding: 0;
  margin-top: 8px;
}
.stats.wrap { max-width: calc(1240px - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); }
.stat { background: var(--bg); padding: 24px 20px; }
.stat b {
  display: block;
  font-family: var(--display); font-weight: 800; font-stretch: 110%;
  font-size: clamp(36px, 5.4vw, 68px); line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat span { display: block; margin-top: 8px; color: var(--mute); font-size: 14px; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } .stat { padding: 32px 28px; } }

/* ---------- blocks ---------- */
.block { padding-top: clamp(88px, 12vw, 160px); }
.block-head { margin-bottom: 36px; }

/* Radix share bar: one segment per Radix string */
.radix-bar { display: flex; gap: 3px; height: 10px; margin-bottom: 28px; }
.radix-bar i {
  flex: 1; border-radius: 3px; background: var(--radix);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 500ms var(--ease-out);
}
.radix-bar i.c { background: var(--hot); }
.radix-bar.in i { transform: none; }

/* segmented control */
.controls { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-bottom: 22px; }
.seg {
  position: relative; display: inline-flex;
  padding: 4px; border-radius: var(--r-control);
  background: var(--bg-2); border: 1px solid var(--line);
}
.seg button {
  position: relative; z-index: 1;
  height: 36px; padding: 0 16px;
  font-size: 14px; font-weight: 600; color: var(--mute);
  border-radius: 7px;
  transition: color 200ms ease;
}
.seg button[aria-selected="true"] { color: var(--radix-ink); }
.seg-pill {
  position: absolute; top: 4px; left: 0; height: 36px;
  border-radius: 7px; background: var(--radix);
  transition: transform var(--duration-fast) var(--ease-out), width var(--duration-fast) var(--ease-out);
}
.seg-sm button { height: 32px; padding: 0 14px; font-size: 13px; }
.seg-sm .seg-pill { height: 32px; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding: 2px; margin: -2px; max-width: 100%; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-control);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 120ms var(--ease-out);
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chip[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #021c4c; }
.chip[aria-pressed="true"] i { background: #021c4c; }
.chip:active, .seg button:active { transform: scale(0.96); }

/* tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; } }
.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 132px; padding: 16px;
  text-align: left;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  transition: border-color 200ms ease, transform 160ms var(--ease-out), opacity 260ms var(--ease-out);
}
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c) 26%, transparent), transparent 60%);
  opacity: 0.5; transition: opacity 260ms ease;
}
.tile > * { position: relative; z-index: 1; }
.tile:active { transform: scale(0.97); }
.tile .tld { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.1; overflow-wrap: anywhere; }
.tile .tld span { color: var(--c); }
.tile-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 18px; }
.tile-cat { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  font-size: 12px; font-weight: 700; border-radius: var(--r-tag);
  background: var(--radix-soft); color: var(--radix);
  font-variant-numeric: tabular-nums;
}
.badge.c { background: var(--hot-soft); color: var(--hot-ink); }
.dots { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--hot); }
.dots i.r { background: var(--radix); }
.tile.out { opacity: 0; transform: scale(0.96); pointer-events: none; }
.tile[hidden] { display: none; }
.tiles-empty { grid-column: 1 / -1; color: var(--mute); padding: 24px 0; }

/* rivals */
.rivals { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rival { border-bottom: 1px solid var(--line); }
.rival-head {
  width: 100%; display: grid; align-items: center;
  grid-template-columns: 28px minmax(0, 1fr) auto 18px;
  gap: 12px; padding: 18px 2px; text-align: left;
}
.rival-rank { color: var(--mute); font-size: 13px; font-variant-numeric: tabular-nums; }
.rival-name { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rival-track { grid-column: 2 / 4; height: 4px; border-radius: 2px; background: var(--bg-3); overflow: hidden; margin-top: -6px; }
.rival-track i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--hot), var(--warm)); transform-origin: left; transform: scaleX(0); transition: transform 900ms var(--ease-out); }
.rival.in .rival-track i { transform: scaleX(var(--p)); }
.rival-n { font-family: var(--display); font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums; }
.rival-n small { font-family: var(--body); font-weight: 500; font-size: 12px; color: var(--mute); margin-left: 4px; }
.chev { width: 18px; height: 18px; color: var(--mute); transition: transform var(--duration-fast) var(--ease-out); }
.rival[data-open="true"] .chev { transform: rotate(180deg); }
.rival-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--duration-fast) var(--ease-out); }
.rival[data-open="true"] .rival-body { grid-template-rows: 1fr; }
.rival-body > div { overflow: hidden; }
.rival-strings { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 20px 40px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  border-radius: var(--r-tag); background: var(--bg-2); border: 1px solid var(--line);
  font-family: var(--display); font-weight: 700; font-stretch: 105%; font-size: 15px;
  transition: border-color 160ms ease, transform 120ms var(--ease-out);
}
.pill:active { transform: scale(0.96); }
.pill small { font-family: var(--body); font-weight: 600; font-size: 11px; color: var(--mute); }
.more-btn { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--radix); padding: 8px 0; }

/* heat */
.heat { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.heat-row {
  width: 100%;
  display: grid; grid-template-columns: 32px minmax(90px, 160px) 1fr auto;
  gap: 14px; align-items: center;
  padding: 12px 10px; border-radius: 12px; text-align: left;
  transition: background-color 160ms ease;
}
.heat-row .rank { color: var(--mute); font-size: 13px; font-variant-numeric: tabular-nums; }
.heat-row .tld { font-size: clamp(18px, 2vw, 24px); overflow: hidden; text-overflow: ellipsis; }
.heat-row.r .tld { color: var(--radix); }
.heat-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.heat-dots i {
  width: 12px; height: 12px; border-radius: 50%; background: var(--hot);
  opacity: 0; transform: scale(0.6);
  transition: opacity var(--duration-slow) var(--ease-bounce), transform var(--duration-slow) var(--ease-bounce);
  transition-delay: calc(var(--d) * 25ms);
}
.heat-dots i.r { background: var(--radix); outline: 2px solid var(--radix-ring); outline-offset: 2px; }
.heat-row.in .heat-dots i { opacity: 1; transform: none; }
.heat-row .n { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-2); }
@media (max-width: 560px) {
  .heat-row { grid-template-columns: 24px 1fr auto; gap: 6px 10px; }
  .heat-dots { grid-column: 2 / 4; grid-row: 2; }
  .heat-dots i { width: 10px; height: 10px; }
}

/* bars + mix */
.split { display: grid; gap: 72px; }
@media (min-width: 960px) { .split { grid-template-columns: 1.2fr 1fr; gap: 72px; } }
.split h2 { margin-bottom: 28px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; font-size: 14px; }
.bar b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar span { color: var(--ink-2); font-variant-numeric: tabular-nums; font-weight: 600; }
.bar .track { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.bar .track i { display: block; height: 100%; border-radius: 4px; background: var(--solo); transform-origin: left; transform: scaleX(0); transition: transform 1000ms var(--ease-out); transition-delay: calc(var(--i) * 50ms); }
.bar.r b { color: var(--radix); }
.bar.r .track i { background: var(--radix); }
.bar.in .track i { transform: scaleX(var(--p)); }

.mix { display: flex; height: 56px; gap: 3px; border-radius: 14px; overflow: hidden; }
.mix i { flex: var(--p) 1 0; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform 900ms var(--ease-out); transition-delay: calc(var(--i) * 90ms); }
.mix.in i { transform: none; }
.mix-legend { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.mix-legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: center; font-size: 14px; color: var(--ink-2); }
.mix-legend li i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.mix-legend b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- explorer ---------- */
.finder {
  position: sticky; top: calc(76px + env(safe-area-inset-top, 0px)); z-index: 20;
  padding: 12px 0; margin-bottom: 8px;
  background: linear-gradient(var(--bg) 80%, transparent);
}
.search {
  display: flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 8px 0 16px;
  border-radius: 14px; background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--mute);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.search:focus-within { border-color: var(--radix); box-shadow: 0 0 0 4px var(--radix-soft); }
.search input {
  flex: 1; min-width: 0; height: 100%;
  background: none; border: 0; outline: 0; color: var(--ink);
}
.search input::-webkit-search-cancel-button { display: none; }
.clear {
  width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--mute);
  opacity: 0; transform: scale(0.96); pointer-events: none;
  transition: opacity 150ms ease, transform 150ms var(--ease-out);
}
.search.has .clear { opacity: 1; transform: none; pointer-events: auto; }
.finder-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; }
.finder-row select {
  height: 40px; padding: 0 12px; border-radius: var(--r-control);
  background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line);
  font-size: 14px;
}
.result-count { color: var(--mute); font-size: 13px; margin-left: auto; font-variant-numeric: tabular-nums; }

.list { list-style: none; margin: 0; padding: 0; }
.row {
  width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px; align-items: center;
  padding: 16px 4px; text-align: left;
  border-bottom: 1px solid var(--line);
  animation: rowIn 420ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 25ms);
}
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } }
.row .tld { font-size: 20px; }
.row.r .tld { color: var(--radix); }
.row .who { grid-column: 1 / -1; color: var(--mute); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .who mark { background: var(--radix-soft); color: var(--ink); border-radius: 3px; padding: 0 2px; }
.row .who .rx { color: var(--radix); font-weight: 600; }
.row .count { display: flex; align-items: center; gap: 6px; }
@media (min-width: 768px) {
  .row { grid-template-columns: 220px minmax(0, 1fr) auto; }
  .row .who { grid-column: auto; }
}
.list-more { height: 1px; }
.empty { padding: 48px 0; text-align: center; color: var(--mute); }

/* ---------- footer ---------- */
.foot { padding-top: 120px; padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); color: var(--mute); font-size: 13px; }
.foot img { opacity: 0.8; margin-bottom: 18px; }
.foot p { max-width: 720px; margin: 0 0 10px; }

/* ---------- sheet (bottom sheet on phones, side panel on desktop) ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 70;
  background: var(--scrim);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity var(--duration-medium) ease;
}
.sheet-backdrop.open { opacity: 1; transition-duration: var(--duration-slow); }
.sheet {
  position: fixed; z-index: 80;
  left: 0; right: 0; bottom: 0;
  max-height: 86dvh;
  display: flex; flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--line-2); border-bottom: 0;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -20px 60px var(--shadow);
  transform: translateY(100%);
  transition: transform var(--duration-medium) var(--ease-drawer); /* close */
}
.sheet.open { transform: none; transition-duration: var(--duration-slow); /* open */ }
.sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 10px auto 0; flex: none; touch-action: none; }
.sheet-close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%;
  font-size: 24px; line-height: 1; color: var(--ink-2); background: var(--bg-3);
  transition: transform 120ms var(--ease-out);
}
.sheet-close:active { transform: scale(0.92); }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px calc(28px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) {
  .sheet {
    left: auto; top: 12px; bottom: 12px; right: 12px;
    width: 460px; max-height: none;
    border-radius: 22px; border-bottom: 1px solid var(--line-2);
    transform: translateX(calc(100% + 24px));
  }
  .sheet-grip { display: none; }
  .sheet-body { padding: 28px; }
}
.sh-tld { font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: clamp(44px, 9vw, 64px); line-height: 1; letter-spacing: -0.02em; margin: 8px 0 12px; overflow-wrap: anywhere; padding-right: 40px; }
.sh-tld.r { color: var(--radix); }
.sh-status { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.sh-blurb { color: var(--ink-2); margin: 0 0 18px; }
.sh-blurb b { color: var(--ink); }
.sh-link { display: inline-flex; gap: 6px; color: var(--radix); font-weight: 600; font-size: 14px; text-decoration: none; margin-bottom: 22px; }
.sh-h { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin: 8px 0 8px; }
.sh-list { list-style: none; margin: 0; padding: 0; }
.sh-list li {
  display: grid; grid-template-columns: 12px 1fr; gap: 12px; align-items: start;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  /* `both`: hidden during the stagger delay, then settles on the row's own
     (visible) style. Never set opacity: 0 here, or the end state is invisible. */
  animation: rowIn 380ms var(--ease-out) both;
  animation-delay: calc(120ms + min(var(--i), 8) * var(--duration-stagger));
}
.sh-list li i { width: 10px; height: 10px; border-radius: 50%; background: var(--hot); margin-top: 6px; }
.sh-list li.r i { background: var(--radix); }
.sh-list li.r b { color: var(--radix); }
.sh-list b { display: block; font-weight: 600; }
.sh-list small { color: var(--mute); font-size: 12.5px; }
.sh-list button { color: inherit; text-align: left; }
.sh-also { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sh-also .pill { height: 28px; font-size: 13px; padding: 0 10px; }

body.locked { overflow: hidden; }

/* ---------- hover, only where hover is real ---------- */
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover, .nav-search:hover { color: var(--ink); }
  .nav-search:hover { border-color: var(--ink-2); }
  .tile:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); }
  .tile:hover::before { opacity: 1; }
  .rival-head:hover .rival-name { color: var(--radix); }
  .pill:hover { border-color: var(--line-2); }
  .heat-row:hover, .row:hover { background: var(--bg-2); }
  .chip:hover { border-color: var(--ink-2); }
  .seg button:hover { color: var(--ink); }
  .seg button[aria-selected="true"]:hover { color: var(--radix-ink); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; filter: none; transition: opacity 300ms ease; }
  .hero-title .line > span { transform: none; transition: none; }
  .row, .sh-list li { animation: fadeOnly 200ms ease both; animation-delay: 0ms; transform: none; }
  @keyframes fadeOnly { from { opacity: 0; } to { opacity: 1; } }
  .heat-dots i { transform: none; transition: opacity 200ms ease; }
  .sheet { transition: transform 1ms, opacity 200ms ease; }
  .scroll-cue span, .sample-pill .dot { animation: none; }
}

/* ---------- hero search ---------- */
.hero-search {
  display: flex; align-items: center; gap: 12px;
  width: 100%; max-width: 460px; height: 54px; margin-top: 26px; padding: 0 12px 0 18px;
  border-radius: 16px; text-align: left;
  background: var(--glass); border: 1px solid var(--line-2);
  color: var(--mute); font-size: 15px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color 180ms ease, color 180ms ease, transform 120ms var(--ease-out);
}
.hero-search span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-search:active { transform: scale(0.98); }
kbd {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px;
  border-radius: 7px; border: 1px solid var(--line-2); background: var(--bg-3);
  font: 600 12px/1 var(--body); color: var(--ink-2);
}
@media (pointer: coarse) { .hero-search kbd { display: none; } }

/* ---------- explorer view tabs ---------- */
.views {
  position: relative; display: flex; gap: 4px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.views::-webkit-scrollbar { display: none; }
.views button {
  flex: none; height: 48px; padding: 0 16px;
  font-family: var(--display); font-weight: 700; font-stretch: 105%; font-size: 18px;
  color: var(--mute); transition: color 200ms ease;
}
.views button span { font-family: var(--body); font-size: 12px; font-weight: 600; color: var(--mute); margin-left: 4px; font-variant-numeric: tabular-nums; }
.views button[aria-selected="true"] { color: var(--ink); }
.views-line {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 1px;
  background: var(--radix); transform-origin: left;
  transition: transform var(--duration-fast) var(--ease-out);
}

/* group / entity rows in the explorer */
.row .grp { font-family: var(--display); font-weight: 700; font-stretch: 105%; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sub { font-family: var(--body); font-weight: 500; font-size: 12px; color: var(--mute); display: block; margin-top: 2px; }
.row.r .grp { color: var(--radix); }
.badge.x { background: var(--radix-soft); color: var(--radix); }
.badge.n { background: var(--bg-3); color: var(--ink-2); }

/* ---------- search palette ---------- */
.palette {
  position: fixed; inset: 0; z-index: 90;
  display: flex; justify-content: center; align-items: flex-start;
  padding: calc(10vh + env(safe-area-inset-top, 0px)) 16px 16px;
  background: var(--scrim);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity var(--duration-quick) ease;
}
.palette.open { opacity: 1; transition-duration: var(--duration-fast); }
.palette.instant { transition: none; }
.palette-box {
  width: 100%; max-width: 640px; max-height: 72vh;
  display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 18px;
  box-shadow: 0 30px 80px var(--shadow);
  transform: scale(0.96);
  transition: transform var(--duration-quick) var(--ease-out);
  overflow: hidden;
}
.palette.open .palette-box, .palette.instant .palette-box { transform: none; }
.palette.open .palette-box { transition-duration: var(--duration-fast); }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 0 12px 0 18px; height: 60px; border-bottom: 1px solid var(--line); color: var(--mute); flex: none; }
.palette-input input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--ink); font-size: 18px; }
.palette-input input::-webkit-search-cancel-button { display: none; }
.palette-esc { font-size: 13px; font-weight: 600; color: var(--mute); padding: 8px 10px; border-radius: 8px; background: var(--bg-3); }
.palette-results { overflow-y: auto; overscroll-behavior: contain; padding: 8px; }
.p-h { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); padding: 12px 10px 6px; }
.p-item {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px; border-radius: 10px; text-align: left;
}
.p-item b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.p-item .tld { font-size: 18px; }
.p-item small { display: block; color: var(--mute); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-item.r b, .p-item.r .tld { color: var(--radix); }
.p-item[aria-selected="true"] { background: var(--bg-3); }
.p-item mark { background: none; color: var(--radix); }
.p-empty { padding: 28px 12px; color: var(--mute); text-align: center; }
.p-all { width: 100%; padding: 12px 10px; text-align: left; color: var(--radix); font-weight: 600; font-size: 14px; border-radius: 10px; }
@media (max-width: 640px) {
  .palette { padding: 0; align-items: stretch; }
  .palette-box { max-width: none; max-height: none; height: 100dvh; border-radius: 0; border: 0; padding-top: env(safe-area-inset-top, 0px); }
}

/* ---------- portfolio sheet ---------- */
.sh-name { font-family: var(--display); font-weight: 800; font-stretch: 108%; font-size: clamp(30px, 6vw, 40px); line-height: 1.08; letter-spacing: -0.015em; margin: 8px 0 12px; padding-right: 44px; overflow-wrap: anywhere; }
.sh-name.r { color: var(--radix); }
.sh-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.sh-pills .pill { height: 30px; font-size: 14px; padding: 0 10px; }
.sh-pills .pill.r { color: var(--radix); border-color: var(--radix-ring); }
.sh-pills .pill.c small { color: var(--hot-ink); }
.sh-group { font-size: 13px; color: var(--mute); margin: -4px 0 16px; }
.sh-group button { color: var(--radix); font-weight: 600; }
.sh-list li.ent { grid-template-columns: 1fr auto; }
.sh-list li.ent .badge { margin-top: 2px; }

@media (hover: hover) and (pointer: fine) {
  .hero-search:hover { border-color: var(--ink-2); color: var(--ink-2); }
  .views button:hover { color: var(--ink); }
  .p-item:hover { background: var(--bg-3); }
  .sh-group button:hover, .p-all:hover { text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  .palette-box { transform: none !important; transition: none; }
}
.bar b button { font: inherit; color: inherit; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
@media (hover: hover) and (pointer: fine) { .bar b button:hover { color: var(--radix); } }
.pill.off, .sh-list li.off { opacity: 0.55; }
.mix-legend li.mix-sub { display: block; margin-top: 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }

/* Replacement strings: always signed. Dashed violet, with an "R" marker. */
.rep-tag {
  display: inline-grid; place-items: center; flex: none;
  width: 18px; height: 18px; border-radius: 5px;
  background: var(--rep); color: var(--rep-ink);
  font: 800 11px/1 var(--body); letter-spacing: 0;
  vertical-align: 1px; margin-right: 4px;
}
.pill.rep { border: 1px dashed var(--rep); color: var(--rep); }
.pill.rep small { color: color-mix(in srgb, var(--rep) 70%, var(--mute)); }
.badge.rep { background: var(--rep-soft); color: var(--rep); border: 1px dashed var(--rep-ring); }
.sh-tld.rep { color: var(--rep); }
.rep-note { font-size: 13px; color: var(--mute); margin: -2px 0 6px; max-width: 52ch; }
.rep-list li i { background: transparent; border: 1.5px dashed var(--rep); box-shadow: none; }
.rep-list li.r i { border-color: var(--radix); }
.sh-h .rep-tag { vertical-align: 0; }
.tip .tip-cta { color: var(--radix); }


/* ---------- light theme ----------
   Dark is the default. Light is opt-in from the header toggle and covers
   the whole page, hero included; the dot field switches palette in app.js. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-2: #ffffff;
  --bg-3: #e9edf5;
  --ink: #021c4c;
  --ink-2: #33456e;
  --mute: #5f6c92;
  --line: rgba(2, 28, 76, 0.1);
  --line-2: rgba(2, 28, 76, 0.18);
  --radix: #0072ad;      /* Radix cyan, deepened to 5:1 on white */
  --radix-ink: #ffffff;
  --hot: #e2401f;
  --hot-ink: #b8321a;
  --warm: #c77d00;
  --solo: #a3aecb;
  --rep: #6d35d6;
  --rep-ink: #ffffff;
  --radix-soft: rgba(0, 114, 173, 0.1);
  --radix-ring: rgba(0, 114, 173, 0.35);
  --rep-soft: rgba(109, 53, 214, 0.08);
  --rep-ring: rgba(109, 53, 214, 0.45);
  --hot-soft: rgba(226, 64, 31, 0.1);
  --glass: rgba(255, 255, 255, 0.82);
  --glass-2: rgba(255, 255, 255, 0.96);
  --scrim: rgba(2, 12, 35, 0.32);
  --shadow: rgba(2, 28, 76, 0.16);
}
:root[data-theme="light"] .tile { box-shadow: 0 1px 2px var(--shadow); }
:root[data-theme="light"] .stats { margin-top: 32px; }

/* logo: white over dark, black over light */
.nav-logo .logo-dark { display: none; }
:root[data-theme="light"] .logo-light { display: none; }
:root[data-theme="light"] .logo-dark { display: block; }

/* theme toggle: icon swap (transitions.dev: 250ms, 2px blur, rotate) */
.theme-toggle {
  position: relative; flex: none;
  width: 36px; height: 36px; border-radius: var(--r-control);
  border: 1px solid var(--line-2); color: var(--ink-2);
  transition: border-color 160ms ease, color 160ms ease, transform 120ms var(--ease-out);
}
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle svg {
  position: absolute; inset: 0; margin: auto;
  transition: opacity var(--duration-fast) ease-in-out, transform var(--duration-fast) ease-in-out, filter var(--duration-fast) ease-in-out;
}
.theme-toggle .i-sun { opacity: 0; transform: rotate(-90deg) scale(0.6); filter: blur(2px); }
:root[data-theme="light"] .theme-toggle .i-sun { opacity: 1; transform: none; filter: none; }
:root[data-theme="light"] .theme-toggle .i-moon { opacity: 0; transform: rotate(90deg) scale(0.6); filter: blur(2px); }
/* header row: [logo] ... [links] [theme] [search] */
.theme-toggle { margin-left: auto; width: 44px; height: 44px; }
.nav-search svg { width: 18px; height: 18px; }
.theme-toggle svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .theme-toggle { margin-left: 36px; } }
@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover { color: var(--ink); border-color: var(--ink-2); }
}
@media (prefers-reduced-motion: reduce) {
  .theme-toggle svg { transition: opacity 150ms ease; transform: none !important; filter: none !important; }
}

/* ---------- portfolio panel: stats row + tidy string grid ---------- */
.sh-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; margin: 4px 0 26px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
}
.stat-cell { background: var(--bg-2); padding: 12px 12px 10px; min-width: 0; }
.stat-cell b { display: block; font-family: var(--display); font-weight: 800; font-stretch: 108%; font-size: 24px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat-cell span { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-cell.c b { color: var(--hot-ink); }
.stat-cell.x b { color: var(--radix); }
.stat-cell.rep b { color: var(--rep); }

.sh-sec { margin-bottom: 22px; }
.sh-sec .sh-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.sh-n { font-size: 11px; font-weight: 700; letter-spacing: 0; color: var(--ink-2); background: var(--bg-3); border-radius: var(--r-tag); padding: 2px 7px; font-variant-numeric: tabular-nums; }
.sh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 420px) { .sh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sh-grid.clipped .cell.more { display: none; }
.cell {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-width: 0; height: 38px; padding: 0 10px 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-tag); background: var(--bg);
  font-family: var(--display); font-weight: 700; font-stretch: 105%; font-size: 15px; text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease, transform 120ms var(--ease-out);
}
.cell span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell small { flex: none; font-family: var(--body); font-size: 12px; font-weight: 700; color: var(--mute); font-variant-numeric: tabular-nums; }
.cell small.c { color: var(--hot-ink); }
.cell.r span { color: var(--radix); }
.cell.rep { border-style: dashed; border-color: var(--rep-ring); }
.cell.rep span { color: var(--rep); }
.cell.rep small { font-family: var(--body); font-weight: 500; font-size: 11px; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell.off { opacity: 0.55; }
.cell:active { transform: scale(0.97); }
.sh-more { margin-top: 8px; width: 100%; height: 38px; border-radius: var(--r-tag); border: 1px dashed var(--line-2); font-size: 13px; font-weight: 600; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) {
  .cell:hover { border-color: var(--line-2); background: var(--bg-3); }
  .sh-more:hover { color: var(--ink); border-color: var(--ink-2); }
}
/* replacement cells: name on top, "for .primary" underneath, so neither truncates */
.cell.rep { height: auto; min-height: 46px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; padding: 6px 10px 6px 12px; }
.cell.rep small { max-width: 100%; }
.stat-cell span { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; }
.cell { font-size: 14.5px; }


/* ---------- phones: the dot field gets its own band above the text ----------
   On narrow screens the field can't sit beside the headline, and behind it the
   two fight. The slot reserves the space left over above the copy (at least
   ~40% of the screen); app.js centres and sizes the field inside it. */
.field-slot { display: none; }
@media (max-width: 899px) {
  .hero { flex-direction: column; align-items: stretch; }
  .field-slot {
    display: block; flex: 1 0 auto;
    min-height: min(86vw, 42svh);
    margin-top: calc(68px + env(safe-area-inset-top, 0px)); /* clear the header */
    pointer-events: none;
  }
  .hero-copy { padding-top: 8px; padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .hero-scrim { background: linear-gradient(to top, var(--bg) 0%, transparent 18%); }
  .hero .eyebrow { font-size: 11px; letter-spacing: 0.14em; }
  .hero-title { margin-bottom: 16px; }
}
