:root {
  color-scheme: light dark;
  --page: #f6f4fa;
  --surface: #ffffff;
  --surface-2: #faf8fd;
  --ink: #231b34;
  --ink-2: #3d3350;
  --muted: #5b506b;
  --line: #e2dbec;
  --line-strong: #cfc4dd;
  --control-line: #8a7c9b;
  --accent: #5630a2;
  --accent-ink: #ffffff;
  --soft: #eee6fc;
  --award: #7a3f1f;
  --hero: #261841;
  --hero-ink: #fbf6ff;
  --hero-muted: #e5d9f7;
  --peach: #ffb88c;
  --lavender: #bba2ff;
  --shadow: 0 1px 2px rgb(35 27 52 / 0.06), 0 4px 14px -6px rgb(35 27 52 / 0.12);
  --shadow-hover: 0 2px 4px rgb(35 27 52 / 0.08), 0 12px 28px -10px rgb(35 27 52 / 0.24);
  --font: "Avenir Next", "Aptos", "Segoe UI Variable", system-ui, sans-serif;
  --radius: 0.75rem;
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #161121;
    --surface: #201a2d;
    --surface-2: #1b1626;
    --ink: #f8f1ff;
    --ink-2: #e4d9f1;
    --muted: #c0b1d2;
    --line: #362d45;
    --line-strong: #4a3f5c;
    --control-line: #8c7b9f;
    --accent: #d0b7ff;
    --accent-ink: #1d1330;
    --soft: #33244c;
    --award: #ffc6a3;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 6px 18px -8px rgb(0 0 0 / 0.5);
    --shadow-hover: 0 2px 4px rgb(0 0 0 / 0.35), 0 14px 30px -10px rgb(0 0 0 / 0.65);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #161121;
  --surface: #201a2d;
  --surface-2: #1b1626;
  --ink: #f8f1ff;
  --ink-2: #e4d9f1;
  --muted: #c0b1d2;
  --line: #362d45;
  --line-strong: #4a3f5c;
  --control-line: #8c7b9f;
  --accent: #d0b7ff;
  --accent-ink: #1d1330;
  --soft: #33244c;
  --award: #ffc6a3;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 6px 18px -8px rgb(0 0 0 / 0.5);
  --shadow-hover: 0 2px 4px rgb(0 0 0 / 0.35), 0 14px 30px -10px rgb(0 0 0 / 0.65);
}
:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4rem; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--ink);
  font: 500 1rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, select, input { font: inherit; color: inherit; }
button, select, summary, label:has(> input[type="checkbox"]) { cursor: pointer; }
select {
  min-height: 2.75rem;
  border: 1px solid var(--control-line);
  border-radius: 0.55rem;
  background-color: var(--surface);
  padding-inline: 0.7rem;
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sprite { position: absolute; }
.icon {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shell { width: min(100% - 2rem, 75rem); margin-inline: auto; }
@media (min-width: 48rem) { .shell { width: min(100% - 4rem, 75rem); } }
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: absolute; z-index: 10; inset: var(--s-2) auto auto var(--s-2); padding: var(--s-3) var(--s-4); border-radius: 0.5rem; background: var(--surface); }

.button, .text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 2.75rem;
  font-weight: 700;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}
.button {
  padding: var(--s-2) var(--s-5);
  border: 1px solid var(--control-line);
  border-radius: 0.6rem;
  background: var(--surface);
}
.button:hover { border-color: var(--accent); background: var(--soft); }
.text-button { padding: 0 var(--s-2); border: 0; background: none; color: var(--accent); font-size: 0.9rem; }
.text-button:hover { text-decoration: underline; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--page); }
.header-inner { min-height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.brand {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  min-height: 2.75rem;
  gap: var(--s-3);
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.brand-mark {
  flex: 0 0 1.6rem;
  height: 1.6rem;
  border-radius: 0.35rem;
  background: linear-gradient(135deg, transparent 24%, var(--lavender) 25% 33%, transparent 34% 45%, var(--peach) 46% 54%, transparent 55% 66%, var(--lavender) 67% 75%, transparent 76%), var(--hero);
}
.header-actions { display: flex; align-items: center; gap: var(--s-2); }
.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.6rem;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}
.header-link:hover { color: var(--accent); }
.theme { position: relative; display: inline-flex; align-items: center; }
.theme .icon { position: absolute; left: 0.65rem; color: var(--muted); pointer-events: none; }
.theme select { padding-left: 2rem; font-size: 0.88rem; font-weight: 600; border-color: var(--line-strong); }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: var(--s-5);
  border-radius: var(--radius);
  background: var(--hero);
  color: var(--hero-ink);
}
.hero-content { position: relative; z-index: 1; padding: clamp(var(--s-5), 4vw, var(--s-7)); max-width: 44rem; }
.hero-title {
  font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3.25rem);
  line-height: 1.02;
  font-weight: 750;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero-content > p:not(.hero-title) {
  margin-top: var(--s-3);
  max-width: 34rem;
  color: var(--hero-muted);
  line-height: 1.6;
  font-size: clamp(0.95rem, 0.88rem + 0.3vw, 1.1rem);
  text-wrap: pretty;
}
.hero-stats { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-5); }
.hero-stats li { display: flex; align-items: baseline; gap: var(--s-2); font-size: 0.85rem; color: var(--hero-muted); }
.hero-stats strong { color: var(--peach); font-size: 1.05rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.hero-art { position: absolute; z-index: 0; inset: 0; pointer-events: none; }
.hero-art i {
  position: absolute;
  width: 70%;
  height: 150%;
  top: 18%;
  left: 66%;
  border: clamp(0.22rem, 0.7vw, 0.55rem) solid var(--route-color, var(--lavender));
  border-radius: 48% 12% 25% 55%;
  transform: rotate(-36deg) translate(var(--shift, 0), var(--shift, 0));
}
.hero-art i:nth-child(2) { --shift: 1.2rem; --route-color: #9878ef; }
.hero-art i:nth-child(3) { --shift: 2.4rem; --route-color: var(--peach); }
.hero-art i:nth-child(4) { --shift: 3.6rem; --route-color: #f49082; }
.hero-art i:nth-child(5) { --shift: 4.8rem; --route-color: #9878ef; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--hero) 0 50%, transparent 85%); }

/* Section tabs */
.section-nav {
  position: sticky;
  z-index: 5;
  top: 0;
  margin-top: var(--s-5);
  background: var(--page);
  border-bottom: 1px solid var(--line);
}
.section-nav-inner { display: flex; gap: 0 var(--s-6); overflow-x: auto; scrollbar-width: none; }
.section-nav-inner::-webkit-scrollbar { display: none; }
.section-nav a {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 3rem;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.section-nav a[aria-current] { color: var(--accent); border-bottom-color: currentColor; }
.section-nav a:hover { color: var(--ink); }
.section-nav a:focus-visible { outline-offset: -3px; }

/* View heading */
.workspace { padding-top: var(--s-6); }
.view-head { display: grid; gap: var(--s-2); }
.view-crumb { font-size: 0.95rem; font-weight: 650; }
.view-crumb a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 2.75rem; }
#view-title {
  font-size: clamp(1.75rem, 1.35rem + 1.3vw, 2.5rem);
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.view-intro { max-width: 40rem; color: var(--muted); font-size: 1.05rem; line-height: 1.6; text-wrap: pretty; }
.view-links { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
.view-links a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 2.75rem; font-size: 0.95rem; font-weight: 650; }

/* Search and filters */
.controls {
  display: grid;
  gap: var(--s-5);
  margin-top: var(--s-5);
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.search {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 3.25rem;
  padding: 0 var(--s-4);
  border: 1px solid var(--control-line);
  border-radius: 0.6rem;
  background: var(--surface-2);
  color: var(--muted);
}
.search:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.search input {
  flex: 1;
  min-width: 0;
  min-height: 3.15rem;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
}
.search input::placeholder { color: var(--muted); opacity: 1; }
.search-small { min-height: 3rem; max-width: 28rem; flex: 1 1 16rem; }
.search-small input { min-height: 2.9rem; }
.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-5); }
@media (min-width: 60rem) { .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.field { display: grid; gap: var(--s-2); min-width: 0; }
.field > span { color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.field select { width: 100%; min-width: 0; min-height: 3rem; font-size: 0.95rem; font-weight: 600; text-overflow: ellipsis; }
.field select:has(option:checked:not([value=""])) { border-color: var(--accent); background-color: var(--soft); color: var(--accent); }

.result-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3) var(--s-5);
  margin: var(--s-6) 0 var(--s-4);
}
.result-count { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.sort { display: flex; align-items: center; gap: var(--s-3); color: var(--muted); font-size: 0.95rem; font-weight: 650; }
.sort select { font-weight: 600; color: var(--ink); }

/* Project cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: var(--s-5);
  align-items: stretch;
}
.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--s-5) var(--s-5) var(--s-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
  transition: box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}
.card:hover { box-shadow: var(--shadow-hover); border-color: var(--line-strong); }
.card-title {
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-wrap: balance;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--accent); text-decoration: underline; }
.card-event {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s-2);
  margin-top: var(--s-1);
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 650;
}
.card-event span + span { color: var(--muted); font-weight: 550; }
.card-event span + span::before { content: "·"; margin-right: var(--s-2); }
.card-match { margin-top: var(--s-3); color: var(--accent); font-size: 0.88rem; font-weight: 700; }
.card-prizes { text-wrap: pretty; display: grid; gap: var(--s-2); margin-top: var(--s-4); font-size: 0.92rem; line-height: 1.45; }
.card-prizes li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-2); align-items: start; }
.card-prizes li > .icon { margin-top: 0.15rem; color: var(--award); }
.card-prizes li > span { min-width: 0; }
.card-more .card-prizes { margin-top: var(--s-1); }
.prize-sponsor { font-weight: 750; text-decoration: none; }
.prize-sponsor:hover { text-decoration: underline; }
.prize-title { color: var(--award); font-weight: 600; }
.card-more { margin-top: var(--s-1); padding-left: 1.55rem; font-size: 0.88rem; }
.card-more summary { width: fit-content; min-height: 2.25rem; display: flex; align-items: center; color: var(--muted); font-weight: 650; }
.card-more summary:hover { color: var(--accent); }
.card-summary {
  margin-top: var(--s-4);
  text-wrap: pretty;
  color: var(--ink-2);
  font-size: 0.97rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.card-integrations { margin: var(--s-3) 0 0; overflow-wrap: anywhere; font-size: 0.92rem; line-height: 1.5; }
.card-integrations dt { font-weight: 700; }
.card-integrations dt:not(:first-child) { margin-top: var(--s-2); }
.card-integrations dd { margin: 0; color: var(--ink-2); }
.card-tech {
  margin-top: var(--s-3);
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s-5);
  margin-top: auto;
  padding-top: var(--s-4);
}
.card-links::before { content: ""; flex: 1 0 100%; margin-top: var(--s-2); margin-bottom: var(--s-1); border-top: 1px solid var(--line); }
.card-links a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 3rem;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}
.card-links a:hover span { text-decoration: underline; }
.card-code-missing {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.more { display: flex; justify-content: center; margin-top: var(--s-6); }
.empty-state {
  grid-column: 1 / -1;
  display: grid;
  justify-items: start;
  gap: var(--s-4);
  padding: var(--s-6);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 1.05rem;
}
.empty { padding-block: var(--s-5); color: var(--muted); }

/* Directories */
#context { margin-top: var(--s-5); }
.directory-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-5); }
.letters {
  position: sticky;
  z-index: 4;
  top: 3.05rem;
  margin-top: var(--s-5);
  padding-block: var(--s-3);
  background: var(--page);
  border-bottom: 1px solid var(--line);
}
.letters-track { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.letters a {
  display: grid;
  place-items: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}
.letters a:hover { background: var(--soft); }
@media (pointer: coarse) { .letters a { min-width: 2.75rem; min-height: 2.75rem; } }
.directory-group { scroll-margin-top: 8.5rem; padding-top: var(--s-7); }
.directory-group:first-child { padding-top: var(--s-6); }
.directory-group > h2 {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 2px solid var(--line-strong);
  font-size: 1.6rem;
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.directory-group > h2 small { color: var(--muted); font-size: 0.9rem; font-weight: 600; letter-spacing: 0; }
.directory-list { display: grid; grid-template-columns: 1fr; gap: 0 var(--s-6); }
@media (min-width: 40rem) { .directory-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .directory-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--s-7); } }
.directory-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 3.5rem;
  padding: var(--s-3) var(--s-3);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  border-radius: 0.4rem;
}
.directory-list a:hover { background: var(--surface); }
.directory-list a:hover .directory-name { text-decoration: underline; }
.directory-name { color: var(--ink); font-size: 1rem; font-weight: 650; overflow-wrap: anywhere; }
.directory-label { display: grid; gap: 0.125rem; min-width: 0; }
.directory-meta { color: var(--muted); font-size: 0.85rem; }
.pill {
  flex: none;
  padding: var(--s-1) var(--s-3);
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Sponsor insights */
.insights, .picker-summary:not(:empty) {
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.insights > h2 { font-size: 1.2rem; font-weight: 750; }
.insight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: var(--s-5) var(--s-7); margin-top: var(--s-4); }
.ranked-panel :is(h2, h3) { color: var(--muted); font-size: 0.88rem; font-weight: 700; }
.ranked { margin-top: var(--s-2); }
.ranked li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  min-height: 2.75rem;
  padding-block: var(--s-2);
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.rank-count { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Track picker */
.picker { min-width: 0; margin: 0; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.picker legend { padding-inline: var(--s-2); font-size: 1.05rem; font-weight: 750; }
.picker .search-small { margin-bottom: var(--s-4); }
.picker-choices { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-2); max-height: 19rem; padding: var(--s-1); overflow: auto; }
.picker-choices label {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 2.75rem;
  padding-inline: var(--s-3) var(--s-4);
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
  font-size: 0.93rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.picker-choices label:hover { border-color: var(--accent); }
.picker-choices label:has(:checked) { background: var(--soft); color: var(--accent); border-color: var(--accent); }
.picker-choices input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--accent); }
.picker-summary:not(:empty) { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
.picked { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); overflow-wrap: anywhere; }
.picked .text-button { min-height: 2.5rem; }
.picker-summary .ranked { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.picker-summary .ranked li { gap: var(--s-3); min-height: 2.25rem; padding: var(--s-1) var(--s-3); border: 1px solid var(--line); border-radius: 0.5rem; font-size: 0.9rem; }

/* Footer */
.site-footer { margin-top: var(--s-8); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3) var(--s-6); padding: var(--s-6) 0 var(--s-7); }
.footer-inner > p { max-width: 32rem; line-height: 1.6; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
.footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 650; }

@media (max-width: 40rem) {
  .header-link { padding-inline: var(--s-2); }
  .hero-content { padding: var(--s-5) var(--s-4); }
  .hero-art { display: none; }
  .theme .icon { left: 50%; translate: -50% 0; color: var(--ink-2); }
  .theme select { width: 2.75rem; padding: 0; color: transparent; background-image: none; appearance: none; }
  .theme select option { color: var(--ink); }
  .section-nav-inner { flex-wrap: wrap; gap: 0 var(--s-4); overflow: visible; }
  .workspace { padding-top: var(--s-5); }
  .controls { gap: var(--s-4); padding: var(--s-4); }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-3); }
  .project-grid { gap: var(--s-4); }
  .card { padding: var(--s-5) var(--s-4) var(--s-1); }
  .insights, .picker, .picker-summary:not(:empty) { padding: var(--s-4); }
  .directory-group > h2 { font-size: 1.4rem; }
  .letters-track { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .letters a { flex: none; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .card, .controls, .insights { border-color: CanvasText; }
  .section-nav a[aria-current] { border-bottom-color: Highlight; }
}
