:root {
  color-scheme: light;
  --paper: #f3f6f3;
  --paper-strong: #ffffff;
  --paper-soft: #e8ede8;
  --ink-dark: #151915;
  --ink-soft: #596159;
  --ink-faint: #7a827a;
  --rule: #cfd6cf;
  --rule-strong: #aeb8ae;
  --charcoal: #141815;
  --teal-strong: #087f78;
  --teal-bright: #33d2c4;
  --coral: #e65b45;
  --yellow: #f0c94c;
  --blue-clean: #3479c8;
  --max-width: 1220px;
  --page-pad: max(24px, calc((100vw - var(--max-width)) / 2));
}

html {
  background: var(--paper);
  overflow-x: hidden;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink-dark);
}

body::before {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav {
  top: 12px;
  width: min(var(--max-width), calc(100% - 24px));
  min-height: 54px;
  padding: 7px 8px 7px 10px;
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(12, 18, 16, 0.82);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.2);
}

.brand {
  min-width: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.mark {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  grid-template-rows: repeat(3, 5px);
  gap: 2px;
  width: auto;
  height: auto;
  padding: 4px;
  border-radius: 4px;
  background: #edf6f1;
  box-shadow: none;
}

.mark i {
  display: block;
  width: 5px;
  height: 5px;
  background: var(--teal-strong);
}

.mark i:nth-child(1) { grid-area: 1 / 1; }
.mark i:nth-child(2) { grid-area: 1 / 2; }
.mark i:nth-child(3) { grid-area: 2 / 1; }
.mark i:nth-child(4) { grid-area: 3 / 1; }
.mark i:nth-child(5) {
  grid-area: 3 / 2;
  background: var(--coral);
}

.brand-status {
  margin-left: 3px;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
  padding-left: 11px;
  color: #aab9b1;
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
}

.links {
  gap: 0;
}

.links a,
.nav-cta {
  border-radius: 4px;
  color: #dce7e1;
  font-size: 12px;
  font-weight: 650;
}

.links a:hover,
.nav-cta:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
  border-color: rgba(255, 255, 255, 0.25);
  background: #edf6f1;
  color: #151915;
}

.nav-cta:hover {
  border-color: #ffffff;
  background: #ffffff;
}

.hero {
  min-height: 92svh;
  max-height: none;
  align-items: center;
  padding: 112px var(--page-pad) 110px;
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(5, 9, 7, 0.7) 0%, rgba(5, 9, 7, 0.42) 35%, rgba(5, 9, 7, 0.04) 70%, rgba(5, 9, 7, 0.12) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(5, 9, 7, 0.02) 56%, rgba(5, 9, 7, 0.56) 100%);
}

.hero-content {
  width: min(720px, 63vw);
  max-width: none;
}

.eyebrow,
.kicker {
  color: var(--teal-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #baf6ec;
}

.pulse {
  background: #65e29a;
  box-shadow: 0 0 16px rgba(101, 226, 154, 0.8);
}

h1 {
  max-width: 700px;
  margin-top: 16px;
  font-size: clamp(54px, 6.2vw, 88px);
  line-height: 0.94;
  font-weight: 820;
}

.hero h1 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.9), 0 12px 42px rgba(0, 0, 0, 0.72);
}

.hero-lede {
  max-width: 630px;
  margin-top: 20px;
  color: #dae6e0;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.52;
}

.hero-actions {
  margin-top: 24px;
}

.button {
  gap: 9px;
  min-height: 44px;
  border-radius: 4px;
  padding: 11px 15px;
  font-size: 13px;
}

.button.primary {
  border-color: #f7fbf9;
  background: #f7fbf9;
  color: #131713;
  box-shadow: none;
  transition: transform 0.16s ease;
}

.button.primary:hover {
  border-color: var(--teal-strong);
  background: var(--teal-strong);
  color: #ffffff;
}

.button.light {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--ink-dark);
}

.button.light:hover {
  border-color: var(--teal-bright);
  background: var(--teal-bright);
  color: #09211e;
}

.button:not(.primary):not(.light):hover {
  border-color: #34453e;
  background: #202620;
  color: #ffffff;
}

.connect-actions .button.primary {
  border-color: var(--teal-strong);
  background: var(--teal-strong);
  color: #ffffff;
}

.connect-actions .button.primary:hover {
  border-color: #065f59;
  background: #065f59;
}

.build-panel {
  max-width: 680px;
  margin-top: 28px;
  padding: 14px 0 0;
  border-top-color: rgba(255, 255, 255, 0.24);
}

.build-panel-topline,
.hero-run-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.build-panel-topline > span {
  color: #a7b9af;
  font: 10px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.build-panel-label {
  color: #c9fff6;
  letter-spacing: 0.08em;
}

.build-panel-label::before {
  width: 6px;
  height: 6px;
}

.prompt-block {
  margin-top: 8px;
}

.prompt {
  font-size: 15px;
}

.hero-stats {
  margin-top: 12px;
}

.hero-stat,
.hero-stat span {
  color: #adbbb3;
}

.hero-stat span {
  text-transform: uppercase;
}

.variant-controls {
  flex-wrap: nowrap;
  gap: 4px;
  margin-top: 12px;
}

.variant-controls button {
  width: 124px;
  min-height: 44px;
  display: grid;
  align-content: center;
  gap: 2px;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.15;
  text-align: left;
}

.variant-controls .variant-model {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.variant-controls small {
  overflow: hidden;
  color: #94a69c;
  font: 9px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.variant-controls button[aria-pressed="true"] small {
  color: #c8fff6;
}

.hero-foot {
  position: absolute;
  z-index: 4;
  left: var(--page-pad);
  right: var(--page-pad);
  bottom: 0;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: #c5d1ca;
}

.hero-foot span {
  padding: 18px 18px 18px 0;
  font-size: 11px;
  text-transform: uppercase;
}

.hero-foot span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  padding-left: 18px;
}

.hero-foot b {
  margin-right: 3px;
  color: #ffffff;
  font-size: 13px;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-strong);
  padding-inline: var(--page-pad);
}

.signal-strip span {
  padding: 17px 12px 17px 0;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.signal-strip span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  background: var(--teal-strong);
}

.signal-strip span:nth-child(2)::before { background: var(--coral); }
.signal-strip span:nth-child(3)::before { background: var(--yellow); }
.signal-strip span:nth-child(4)::before { background: var(--blue-clean); }

.page-section {
  padding: 96px var(--page-pad);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.46fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 38px;
}

.section-intro h2,
.challenge-copy h2,
.judge-heading h2,
.dataset-copy h2 {
  max-width: 830px;
  margin: 9px 0 0;
  color: var(--ink-dark);
  font-size: clamp(38px, 5vw, 66px);
  line-height: 0.98;
  font-weight: 780;
}

.intro-note p,
.challenge-copy > p,
.judge-heading > p,
.dataset-copy > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.intro-note > span {
  display: block;
  margin-top: 12px;
  color: var(--ink-faint);
  font: 10px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

.leaderboard-section {
  background:
    linear-gradient(rgba(20, 25, 21, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 25, 21, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
}

.leaderboard-console {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  contain: layout inline-size paint;
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background: var(--paper-strong);
  box-shadow: 0 24px 70px rgba(22, 30, 24, 0.08);
}

.console-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--rule);
  padding: 12px;
}

.track-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  background: var(--paper-soft);
}

.track-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--ink-soft);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
}

.track-tabs button[aria-selected="true"] {
  background: var(--charcoal);
  color: #ffffff;
}

.track-tabs button:hover {
  background: #e4ebe6;
  color: var(--ink-dark);
}

.track-tabs button[aria-selected="true"]:hover,
.track-tabs button[aria-selected="true"]:focus-visible {
  background: var(--charcoal);
  color: #ffffff;
}

.track-tabs button:focus-visible {
  outline: 2px solid var(--teal-strong);
  outline-offset: 2px;
}

.track-tabs button:disabled {
  color: #7d857f;
  cursor: not-allowed;
  opacity: 0.76;
}

.tab-note {
  display: block;
  margin-top: 1px;
  color: #9a6251;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.console-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 11px;
}

.leaderboard-table td.leaderboard-empty {
  height: 220px;
  padding: 40px !important;
  text-align: center;
}

.leaderboard-empty strong,
.leaderboard-empty span {
  display: block;
}

.leaderboard-empty strong {
  color: var(--ink-dark) !important;
  -webkit-text-fill-color: var(--ink-dark);
  font-size: 20px;
}

.leaderboard-empty span {
  max-width: 470px;
  margin: 8px auto 18px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.leaderboard-empty a {
  color: var(--teal-strong);
  font-size: 12px;
  font-weight: 760;
}

.verified-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1e9d63;
  box-shadow: 0 0 0 3px rgba(30, 157, 99, 0.12);
}

.track-definition {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  border-bottom: 1px solid var(--rule);
  background: #f8faf8;
  padding: 15px 18px;
}

.track-definition strong {
  font-size: 13px;
}

.track-definition span {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.table-scroll {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

.leaderboard-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.leaderboard-table th,
.leaderboard-table td {
  border-bottom: 1px solid var(--rule);
  padding: 14px 16px;
  text-align: right;
}

.leaderboard-table th {
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.leaderboard-table th:nth-child(1),
.leaderboard-table th:nth-child(2),
.leaderboard-table td:nth-child(1),
.leaderboard-table td:nth-child(2) {
  text-align: left;
}

.leaderboard-table tbody tr {
  transition: background 0.15s ease;
}

.leaderboard-table tbody tr:hover,
.leaderboard-table tbody tr.is-active {
  background: #f0f5f1;
}

.leaderboard-table tbody tr.is-active {
  box-shadow: inset 3px 0 0 var(--coral);
}

.rank-cell {
  width: 64px;
  color: var(--ink-faint);
  font: 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.model-select {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink-dark);
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.model-select strong,
.model-select span {
  display: block;
}

.model-select strong {
  font-size: 14px;
}

.model-select span {
  margin-top: 4px;
  color: var(--ink-faint);
  font-size: 11px;
}

.score-main {
  color: var(--ink-dark);
  font-size: 16px;
  font-weight: 820;
}

.score-main small {
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 600;
}

.evidence-link {
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: transparent;
  color: var(--ink-dark);
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.evidence-link:hover {
  border-color: var(--ink-dark);
}

.run-inspector {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(360px, 1.4fr) minmax(200px, 0.72fr);
  gap: 28px;
  padding: 24px;
  background: #f8faf8;
}

.run-inspector[hidden] {
  display: none !important;
}

.run-id {
  color: var(--coral);
  font: 10px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
}

.run-summary h3 {
  margin: 7px 0 4px;
  font-size: 26px;
  line-height: 1;
}

.run-summary p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.run-summary a {
  display: inline-block;
  margin-top: 14px;
  color: var(--teal-strong);
  font-size: 12px;
  font-weight: 750;
}

.score-breakdown {
  display: grid;
  gap: 10px;
}

.score-line {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 30px minmax(90px, 0.8fr);
  gap: 10px;
  align-items: center;
}

.score-line > span {
  color: var(--ink-soft);
  font-size: 11px;
}

.score-line b {
  text-align: right;
  font-size: 12px;
}

.score-line i {
  display: block;
  height: 5px;
  background: #dfe5df;
}

.score-line i span {
  display: block;
  height: 100%;
  background: var(--teal-strong);
  transition: width 0.28s ease;
}

.score-line:nth-child(2) i span { background: var(--blue-clean); }
.score-line:nth-child(3) i span { background: var(--coral); }
.score-line:nth-child(4) i span { background: #9c7a19; }

.run-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.run-facts div {
  border-left: 2px solid var(--rule);
  padding-left: 9px;
}

.run-facts dt {
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.run-facts dd {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 760;
}

.challenge-band {
  background: var(--charcoal);
  color: #f4f7f4;
}

.challenge-inner,
.judge-inner,
.dataset-inner {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
}

.challenge-inner {
  display: grid;
  grid-template-columns: minmax(330px, 0.7fr) minmax(520px, 1.3fr);
  gap: 64px;
  align-items: center;
  min-height: 760px;
  padding-block: 72px;
}

.challenge-band .kicker,
.dataset-band .kicker {
  color: var(--teal-bright);
}

.challenge-copy h2,
.dataset-copy h2 {
  color: #ffffff;
}

.challenge-copy blockquote {
  margin: 28px 0 18px;
  border-left: 3px solid var(--coral);
  padding-left: 18px;
  color: #ffffff;
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.22;
  font-weight: 640;
}

.challenge-copy > p {
  color: #abb6ae;
}

.challenge-spec {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 0;
}

.challenge-spec div {
  border-top: 1px solid #3a423c;
  padding-top: 10px;
}

.challenge-spec dt {
  color: #8b998f;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.challenge-spec dd {
  margin: 5px 0 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 670;
}

.challenge-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.text-link {
  color: #d8e4dc;
  font-size: 12px;
  font-weight: 720;
}

.build-viewer {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border: 1px solid #3c453f;
  border-radius: 6px;
  /* Sunset sky behind the transparent WebGL canvas: static CSS gradients,
     so it costs nothing per frame. The scene's warm fog is tuned to blend
     the grass field into this horizon. */
  background:
    radial-gradient(55% 38% at 50% 42%, rgba(255, 200, 130, 0.65) 0%, rgba(255, 170, 95, 0.25) 45%, rgba(255, 170, 95, 0) 72%),
    linear-gradient(180deg, #33284c 0%, #5d3a5c 14%, #a05a55 26%, #d98253 34%, #f0ac66 39%, #e89a63 44%, #d08a5a 58%, #a06a42 100%);
}

#detailScene {
  position: absolute;
  inset: 42px 0 78px;
  width: auto;
  height: auto;
}

.viewer-topbar,
.viewer-footer {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(11, 16, 13, 0.84);
  backdrop-filter: blur(12px);
}

.viewer-topbar {
  top: 0;
  min-height: 42px;
  border-bottom: 1px solid #313a34;
  padding: 10px 13px;
  color: #9eaaa2;
  font: 10px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

.viewer-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #dce8e0;
}

.viewer-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #52d58b;
}

.viewer-footer {
  bottom: 0;
  min-height: 78px;
  border-top: 1px solid #313a34;
  padding: 11px 13px;
}

.viewer-footer > div:first-child {
  min-width: 0;
}

.viewer-footer strong,
.viewer-footer span {
  display: block;
}

.viewer-footer strong {
  font-size: 14px;
}

.viewer-footer > div:first-child span {
  max-width: 420px;
  margin-top: 4px;
  overflow: hidden;
  color: #8f9d94;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-variants {
  flex: 0 0 auto;
  margin: 0;
}

.methodology-section {
  background: var(--paper-strong);
}

.lane-matrix {
  border-top: 1px solid var(--rule-strong);
}

.lane-row {
  display: grid;
  grid-template-columns: 1.05fr 1.45fr 1.45fr 1fr;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  padding: 20px 4px;
}

.lane-row > * {
  min-width: 0;
}

.lane-row > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.lane-row b {
  color: var(--coral);
  font: 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.lane-row strong {
  font-size: 15px;
}

.lane-row > span {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.lane-row em {
  color: var(--ink-dark);
  font-style: normal;
  font-weight: 720;
}

.lane-header {
  padding-block: 11px;
  background: #f4f7f4;
}

.lane-header > span {
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.lane-row.unranked {
  background: #f8f4e8;
}

.evaluation-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(480px, 1.18fr);
  gap: 72px;
  align-items: center;
  margin-top: 86px;
}

.evaluation-copy h3 {
  max-width: 600px;
  margin: 10px 0 16px;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1;
}

.evaluation-copy > p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.method-callout {
  margin-top: 28px;
  border-left: 3px solid var(--coral);
  background: #f2f5f2;
  padding: 14px 16px;
}

.method-callout strong,
.method-callout span {
  display: block;
}

.method-callout strong {
  font-size: 13px;
}

.method-callout span {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

.score-system {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--rule-strong);
  background: #f7f9f7;
}

.score-segment {
  min-height: 180px;
  padding: 18px 14px;
  border-right: 1px solid var(--rule);
}

.score-segment span,
.score-segment strong,
.score-segment small {
  display: block;
}

.score-segment span {
  font-size: 29px;
  font-weight: 820;
}

.score-segment strong {
  margin-top: 42px;
  font-size: 13px;
}

.score-segment small {
  margin-top: 5px;
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.35;
}

.score-segment.objective { box-shadow: inset 0 5px 0 var(--teal-strong); }
.score-segment.spatial { box-shadow: inset 0 5px 0 var(--blue-clean); }
.score-segment.alignment { box-shadow: inset 0 5px 0 var(--coral); }
.score-segment.reliability { box-shadow: inset 0 5px 0 var(--yellow); border-right: 0; }

.taste-score {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto 1.3fr;
  gap: 24px;
  align-items: center;
  border-top: 1px solid var(--rule);
  padding: 17px;
  background: var(--charcoal);
  color: #ffffff;
}

.taste-score span {
  color: #8e9b91;
  font-size: 9px;
  font-weight: 780;
  text-transform: uppercase;
}

.taste-score strong {
  font-size: 20px;
}

.taste-score small {
  color: #b0bcb3;
  font-size: 10px;
  text-align: right;
}

.protocol-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 86px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule-strong);
  list-style: none;
}

.protocol-list li {
  min-height: 155px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 17px;
}

.protocol-list li:first-child {
  border-left: 1px solid var(--rule);
}

.protocol-list b,
.protocol-list strong,
.protocol-list span {
  display: block;
}

.protocol-list b {
  color: var(--coral);
  font: 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.protocol-list strong {
  margin-top: 35px;
  font-size: 13px;
}

.protocol-list span {
  margin-top: 7px;
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.45;
}

.dataset-band {
  background: #123934;
  color: #ffffff;
}

.dataset-inner {
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(500px, 1.22fr);
  gap: 72px;
  align-items: center;
  min-height: 680px;
  padding-block: 80px;
}

.dataset-copy > p {
  color: #b9cec8;
}

.dataset-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 30px;
  border-block: 1px solid rgba(255, 255, 255, 0.2);
}

.dataset-stats div {
  padding: 16px 12px 16px 0;
}

.dataset-stats div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  padding-left: 14px;
}

.dataset-stats strong,
.dataset-stats span {
  display: block;
}

.dataset-stats strong {
  color: #ffffff;
  font-size: 28px;
}

.dataset-stats span {
  margin-top: 4px;
  color: #9eb8b1;
  font-size: 9px;
  line-height: 1.4;
  text-transform: uppercase;
}

.dataset-policy {
  margin-top: 18px !important;
  color: #e2eee9 !important;
  font-size: 12px !important;
}

.trace-window {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: #0c1815;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.trace-topbar,
.trace-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px;
  color: #87a39b;
  font: 9px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

.trace-topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.trace-footer {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-transform: none;
}

.trace-footer a {
  flex: 0 0 auto;
  color: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 720;
}

.trace-window pre {
  min-height: 340px;
  margin: 0;
  overflow: auto;
  padding: 26px;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    #0c1815;
  background-size: 100% 27px;
  color: #bdf4e8;
  font: 13px/1.72 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.trace-window code {
  font: inherit;
}

.connect-section {
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(20, 25, 21, 0.035) 50%, transparent 50.1%),
    var(--paper);
}

.connect-shell {
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background: var(--paper-strong);
  box-shadow: 0 24px 70px rgba(22, 30, 24, 0.07);
}

.connect-content {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(480px, 1.2fr);
}

.connect-copy {
  padding: 42px;
}

.connect-copy > span {
  color: var(--coral);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.connect-copy h3 {
  margin: 11px 0 14px;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1;
}

.connect-copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.connect-copy ul {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.connect-copy li {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.connect-copy li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 6px;
  background: var(--teal-strong);
}

.connect-action-note {
  max-width: 260px;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.connect-code {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  border-left: 1px solid var(--rule);
  background: #111512;
  color: #e9f2ec;
}

.code-toolbar,
.connect-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #303731;
  padding: 12px 14px;
}

.code-toolbar > span,
.connect-footer > span {
  color: #8c9a90;
  font: 10px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.code-toolbar button {
  min-height: 30px;
  border: 1px solid #455047;
  border-radius: 3px;
  background: #202620;
  color: #ffffff;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 720;
  cursor: pointer;
}

.code-toolbar .connect-copy-action {
  flex: 0 0 auto;
  border-color: var(--teal-strong);
  background: var(--teal-strong);
  color: #ffffff;
  white-space: nowrap;
}

.code-toolbar .connect-copy-action:hover {
  border-color: #0ba79c;
  background: #0ba79c;
}

.code-toolbar .connect-copy-action:disabled {
  cursor: wait;
  opacity: 0.65;
}

.connect-token-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid #303731;
  padding: 13px 14px;
  background: #18201b;
}

.connect-token-panel[hidden] {
  display: none;
}

.connect-token-panel span,
.connect-token-panel small {
  color: #8c9a90;
  font: 10px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.connect-token-panel strong {
  color: #ffffff;
  font: 700 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.connect-token-panel small {
  text-align: right;
}

.connect-code pre {
  flex: 1 1 auto;
  margin: 0;
  overflow: auto;
  padding: 32px;
  color: #bdeee2;
  font: 13px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.connect-code code {
  font: inherit;
}

.connect-footer {
  border-top: 1px solid #303731;
  border-bottom: 0;
}

.connect-pairing-status {
  margin: 0;
  border-top: 1px solid #303731;
  padding: 11px 14px;
  color: #8c9a90;
  font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.connect-pairing-status[data-tone="ok"] {
  color: #7fe0b0;
}

.connect-pairing-status[data-tone="warn"] {
  color: #e6b96b;
}

.judge-band {
  border-top: 1px solid var(--rule);
  background: #e9eee9;
  padding-block: 82px;
}

.judge-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.44fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 32px;
}

.ballot {
  display: grid;
  grid-template-columns: minmax(270px, 1fr) minmax(240px, 0.72fr) minmax(270px, 1fr);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background: var(--paper-strong);
}

.ballot-build {
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
}

.ballot-art {
  position: relative;
  display: block;
  min-height: 350px;
  overflow: hidden;
  background: #dfe8e4;
}

.ballot-art figcaption {
  position: absolute;
  right: 8px;
  bottom: 6px;
  z-index: 1;
  padding: 3px 6px;
  border-radius: 3px;
  color: #35413d;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.82);
  pointer-events: none;
}

.judge-scene {
  cursor: grab;
  touch-action: none;
}

.judge-scene:active {
  cursor: grabbing;
}

.judge-scene:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: -3px;
}

.judge-scene canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.ballot-build > div:last-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--rule);
  padding: 13px 15px;
}

.ballot-build > div:last-child span {
  color: var(--coral);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.ballot-build > div:last-child strong {
  font-size: 11px;
}

.ballot-center {
  display: grid;
  align-content: center;
  border-inline: 1px solid var(--rule);
  padding: 28px;
  text-align: center;
}

.ballot-center > span {
  color: var(--teal-strong);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.ballot-center p {
  margin: 13px 0 24px;
  font-size: 17px;
  line-height: 1.42;
  font-weight: 650;
}

.ballot-actions {
  display: grid;
  grid-template-columns: 1fr 0.7fr 1fr;
  gap: 6px;
}

.ballot-actions button {
  min-height: 38px;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  background: #ffffff;
  color: var(--ink-dark);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.ballot-actions button:hover,
.ballot-actions button[aria-pressed="true"] {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: #ffffff;
}

.ballot-bot {
  width: min(300px, 100%);
  min-height: 65px;
  margin: 10px auto 0;
}

.ballot-center small {
  margin-top: 13px;
  color: var(--ink-faint);
  font-size: 9px;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 30px var(--page-pad);
  background: #0e120f;
  color: #9ca9a0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand > div {
  min-width: 0;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  color: #ffffff;
  font-size: 13px;
}

.footer-brand > div > span {
  margin-top: 3px;
  font-size: 10px;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: #d5dfd8;
  font-size: 11px;
}

.footer-note {
  justify-self: end;
  font: 9px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  .links {
    display: flex;
    margin-left: auto;
  }

  .links a {
    display: none;
  }

  .links .showcase-link {
    display: inline-flex;
  }

  .nav-cta {
    display: inline-flex;
  }

  .hero {
    min-height: 820px;
  }

  .hero-content {
    width: min(700px, 78vw);
  }

  .section-intro,
  .challenge-inner,
  .evaluation-grid,
  .dataset-inner {
    grid-template-columns: 1fr;
  }

  .section-intro {
    gap: 24px;
  }

  .run-inspector {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .run-facts {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, 1fr);
  }

  .challenge-inner,
  .dataset-inner {
    gap: 42px;
  }

  .build-viewer {
    min-height: 560px;
  }

  .lane-row {
    grid-template-columns: 1fr 1.2fr 1.2fr;
  }

  .lane-row > *:last-child {
    grid-column: 2 / -1;
  }

  .lane-header > *:last-child {
    display: none;
  }

  .evaluation-grid {
    gap: 38px;
  }

  .protocol-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .protocol-list li:nth-child(4) {
    border-left: 1px solid var(--rule);
  }

  .connect-content {
    grid-template-columns: 1fr;
  }

  .connect-code {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .judge-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ballot {
    grid-template-columns: 1fr 1fr;
  }

  .ballot-center {
    grid-column: 1 / -1;
    grid-row: 2;
    border-top: 1px solid var(--rule);
    border-inline: 0;
  }

  footer {
    grid-template-columns: 1fr auto;
  }

  .footer-note {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --page-pad: 16px;
  }

  .nav {
    width: calc(100% - 20px);
  }

  .brand-status,
  .nav-cta span {
    display: none;
  }

  .nav-cta {
    padding-inline: 10px;
  }

  .hero {
    min-height: 780px;
    padding: 104px 16px 150px;
    grid-template-columns: minmax(0, 1fr);
  }

  #heroScene,
  .hero-model {
    top: 60px;
    right: -150px;
    width: 125vw;
    height: 360px;
    opacity: 0.52;
  }

  .hero-content {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  h1 {
    font-size: 40px;
  }

  .hero-lede {
    font-size: 16px;
  }

  .build-panel-topline > span {
    display: none;
  }

  .hero-run-row {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .build-panel {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .variant-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
  }

  .variant-controls button {
    width: auto;
    min-width: 0;
    overflow: hidden;
  }

  .hero-foot {
    left: 16px;
    right: 16px;
    grid-template-columns: 1fr 1fr;
  }

  .hero-foot span {
    padding: 10px 8px 10px 0;
    font-size: 8px;
  }

  .hero-foot span + span {
    padding-left: 8px;
  }

  .hero-foot span:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .hero-foot span:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .hero-foot b {
    font-size: 10px;
  }

  .signal-strip {
    grid-template-columns: 1fr 1fr;
    padding-inline: 16px;
  }

  .signal-strip span {
    padding-block: 12px;
    font-size: 8px;
  }

  .page-section {
    padding-block: 64px;
  }

  .section-intro h2,
  .challenge-copy h2,
  .judge-heading h2,
  .dataset-copy h2 {
    font-size: 39px;
  }

  .console-toolbar {
    display: block;
  }

  .track-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .track-tabs button {
    min-width: 0;
    padding-inline: 5px;
    font-size: 10px;
  }

  .console-meta {
    margin: 11px 4px 2px;
  }

  .track-definition {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .run-inspector {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 18px;
  }

  .run-facts {
    grid-column: auto;
    grid-template-columns: 1fr 1fr;
  }

  .score-line {
    grid-template-columns: 1fr 30px;
  }

  .score-line i {
    grid-column: 1 / -1;
  }

  .challenge-inner,
  .dataset-inner,
  .judge-inner {
    width: calc(100% - 32px);
  }

  .challenge-inner {
    min-height: 0;
    padding-block: 64px;
  }

  .challenge-spec,
  .dataset-stats {
    grid-template-columns: 1fr 1fr;
  }

  .build-viewer {
    min-height: 470px;
  }

  #detailScene {
    bottom: 112px;
  }

  .viewer-footer {
    display: block;
  }

  .viewer-footer > div:first-child span {
    max-width: 100%;
  }

  .viewer-variants {
    margin-top: 10px;
  }

  .lane-header {
    display: none;
  }

  .lane-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px 6px;
  }

  .lane-row > *:last-child {
    grid-column: auto;
  }

  .score-system {
    grid-template-columns: 1fr 1fr;
  }

  .score-segment {
    min-height: 148px;
  }

  .score-segment:nth-child(2) {
    border-right: 0;
  }

  .score-segment:nth-child(3),
  .score-segment:nth-child(4) {
    border-top: 1px solid var(--rule);
  }

  .score-segment strong {
    margin-top: 26px;
  }

  .taste-score {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .taste-score small {
    text-align: left;
  }

  .protocol-list {
    grid-template-columns: 1fr;
    margin-top: 54px;
  }

  .protocol-list li,
  .protocol-list li:nth-child(4) {
    min-height: 0;
    border-left: 1px solid var(--rule);
  }

  .protocol-list strong {
    margin-top: 18px;
  }

  .dataset-inner {
    min-height: 0;
    padding-block: 64px;
  }

  .dataset-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .dataset-stats strong {
    font-size: 21px;
  }

  .trace-window pre {
    min-height: 300px;
    padding: 18px;
    font-size: 11px;
  }

  .trace-footer > span {
    display: none;
  }

  .connect-copy {
    padding: 28px 20px;
  }

  .connect-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .connect-actions > span {
    max-width: none;
  }

  .connect-code {
    min-height: 380px;
  }

  .connect-token-panel {
    grid-template-columns: 1fr auto;
  }

  .connect-token-panel small {
    grid-column: 1 / -1;
    text-align: left;
  }

  .connect-code pre {
    padding: 22px 16px;
    font-size: 11px;
  }

  .judge-band {
    padding-block: 64px;
  }

  .ballot {
    grid-template-columns: 1fr;
  }

  .ballot-art {
    min-height: 300px;
  }

  .ballot-center {
    grid-column: auto;
    grid-row: auto;
  }

  footer {
    grid-template-columns: 1fr;
    padding-inline: 16px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

/* ============================================================
   SCROLL-DRIVEN ENTRANCE ANIMATIONS
   ============================================================ */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeScale {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(18px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes countPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* Elements waiting to enter */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: none;
}

.reveal.is-visible {
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Staggered children */
.reveal-stagger > .reveal:nth-child(1) { animation-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal-stagger > .reveal:nth-child(3) { animation-delay: 0.16s; }
.reveal-stagger > .reveal:nth-child(4) { animation-delay: 0.24s; }
.reveal-stagger > .reveal:nth-child(5) { animation-delay: 0.32s; }
.reveal-stagger > .reveal:nth-child(6) { animation-delay: 0.4s; }

/* Section intros */
.section-intro.reveal.is-visible,
.challenge-copy.reveal.is-visible,
.judge-heading.reveal.is-visible,
.dataset-copy.reveal.is-visible {
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Cards and metrics get a scale entrance */
.card.reveal.is-visible,
.metric.reveal.is-visible,
.lane-row.reveal.is-visible,
.protocol-list li.reveal.is-visible {
  animation: fadeScale 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Leaderboard console entrance */
.leaderboard-console.reveal.is-visible {
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Content must not remain hidden when background tabs pause CSS animations. */
.reveal.is-visible {
  opacity: 1;
  transform: none;
  animation: none !important;
}

/* ============================================================
   LEADERBOARD MICRO-INTERACTIONS
   ============================================================ */

/* Row hover glow */
.leaderboard-table tbody tr {
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.leaderboard-table tbody tr:hover {
  background: rgba(8, 127, 120, 0.06);
  box-shadow: inset 0 0 0 1px rgba(8, 127, 120, 0.12), 0 4px 20px rgba(8, 127, 120, 0.06);
  transform: translateX(2px);
}

.leaderboard-table tbody tr.is-active {
  background: rgba(8, 127, 120, 0.08);
  box-shadow: inset 3px 0 0 var(--coral), 0 4px 24px rgba(8, 127, 120, 0.08);
}

/* Score number transition */
.score-main {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease;
}

.leaderboard-table tbody tr:hover .score-main {
  transform: scale(1.05);
  color: var(--teal-strong);
}

/* Rank #1 shimmer */
@keyframes rankShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.leaderboard-table tbody tr:first-child .rank-cell {
  background: linear-gradient(
    90deg,
    var(--ink-faint) 0%,
    var(--teal-strong) 25%,
    var(--coral) 50%,
    var(--teal-strong) 75%,
    var(--ink-faint) 100%
  );
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rankShimmer 3.5s ease-in-out infinite;
  font-weight: 900;
}

/* Score count-up pulse */
.score-animating {
  animation: countPulse 0.35s ease;
}

/* ============================================================
   SMOOTH TAB/TRACK TRANSITIONS
   ============================================================ */

@keyframes contentFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.track-transitioning .leaderboard-table tbody,
.track-transitioning .track-definition,
.connect-transitioning .connect-copy,
.connect-transitioning .connect-code {
  animation: contentFadeIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.run-inspector {
  transition: opacity 0.25s ease;
}

.inspector-transitioning {
  animation: contentFadeIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ============================================================
   ANIMATED GRADIENT BORDERS ON CARDS
   ============================================================ */

@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes gradientRotate {
  from { --gradient-angle: 0deg; }
  to { --gradient-angle: 360deg; }
}

.card,
.metric,
.submission-item {
  position: relative;
  border-color: transparent;
  background-clip: padding-box;
}

.card::before,
.metric::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(
    from var(--gradient-angle),
    rgba(8, 127, 120, 0.4),
    rgba(230, 91, 69, 0.2),
    rgba(240, 201, 76, 0.2),
    rgba(52, 121, 200, 0.3),
    rgba(8, 127, 120, 0.4)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover::before,
.metric:hover::before {
  animation: gradientRotate 6s linear infinite;
  opacity: 1;
}

@media (max-width: 520px) {
  .nav-cta {
    display: none;
  }
}

/* ============================================================
   PREFERS-REDUCED-MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .score-line i span {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .reveal.is-visible {
    animation: none;
  }

  .card.reveal.is-visible,
  .metric.reveal.is-visible,
  .lane-row.reveal.is-visible,
  .protocol-list li.reveal.is-visible,
  .leaderboard-console.reveal.is-visible,
  .section-intro.reveal.is-visible,
  .challenge-copy.reveal.is-visible,
  .judge-heading.reveal.is-visible,
  .dataset-copy.reveal.is-visible {
    animation: none;
  }

  .leaderboard-table tbody tr:first-child .rank-cell {
    animation: none;
    background: none;
    -webkit-text-fill-color: var(--teal-strong);
  }

  .leaderboard-table tbody tr:hover {
    transform: none;
  }

  .leaderboard-table tbody tr:hover .score-main {
    transform: none;
  }

  .card::before,
  .metric::before {
    animation: none;
  }

  .track-transitioning .leaderboard-table tbody,
  .track-transitioning .track-definition,
  .connect-transitioning .connect-copy,
  .connect-transitioning .connect-code,
  .inspector-transitioning {
    animation: none;
  }

  .score-animating {
    animation: none;
  }
}
