/*
 * site.css: styles for what assets/js/site.js and tools/build_benchmarks.py add
 * on top of the design. The design CSS is precompiled Tailwind, so anything new
 * is styled here with sx- classes. Colours match the design tokens.
 */
:root {
  --sx-blue: #317eff;
  --sx-blue-soft: rgba(49, 126, 255, 0.15);
  --sx-blue-text: #8fb8ff;
  --sx-line: rgba(83, 82, 82, 0.6);
  --sx-card: linear-gradient(#0e1116 0%, #0a0a0a 100%);
  --sx-muted: #b5b9c2;
  --sx-font: apkGaleria, "apkGaleria Fallback", sans-serif;
}
.sx-lock { overflow: hidden; }

/* ---------- buttons ---------- */
.sx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 20px; border-radius: 9999px; cursor: pointer;
  border: 1px solid var(--sx-line); background: transparent; color: #fff;
  font: 500 14px/1 var(--sx-font); text-decoration: none; transition: border-color .15s, background-color .15s;
}
.sx-btn:hover { border-color: var(--sx-blue); }
.sx-btn:focus-visible, .sx-x:focus-visible, .sx-fab:focus-visible, .sx-input:focus-visible,
.sx-bar a:focus-visible, .sx-tile:focus-visible, .sx-tab:focus-visible {
  outline: 2px solid var(--sx-blue); outline-offset: 2px;
}
.sx-btn-primary { background: var(--sx-blue); border-color: var(--sx-blue); }
.sx-btn-primary:hover { background: #4a8dff; }
.sx-btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- request form ---------- */
.sx-modal {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(6px);
  animation: sx-fade .18s ease-out;
}
.sx-modal[hidden] { display: none; }
.sx-panel {
  position: relative; width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow: auto;
  padding: 28px; border-radius: 16px; border: 1px solid var(--sx-line); background: var(--sx-card);
  color: #fff; font-family: var(--sx-font); box-shadow: 0 24px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(49, 126, 255, .12);
  animation: sx-rise .22s ease-out;
}
.sx-panel h2 { margin: 0 32px 6px 0; font: 400 26px/1.2 var(--sx-font); color: #fff; }
.sx-lead { margin: 0 0 20px; color: var(--sx-muted); font-size: 15px; line-height: 1.5; }
.sx-x {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 9999px;
  background: transparent; color: var(--sx-muted); font-size: 26px; line-height: 1; cursor: pointer;
}
.sx-x:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.sx-form { display: flex; flex-direction: column; gap: 14px; }
.sx-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sx-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sx-field label { font-size: 13px; color: var(--sx-muted); }
.sx-input {
  width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--sx-line); background: #050608; color: #fff; font: 400 15px/1.4 var(--sx-font);
}
textarea.sx-input { resize: vertical; }
select.sx-input { appearance: auto; }
.sx-input::placeholder { color: #6f7480; }
.sx-status { min-height: 18px; margin: 0; font-size: 13px; color: #ffb28a; }
.sx-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.sx-done p { margin: 0 0 14px; color: var(--sx-muted); font-size: 15px; line-height: 1.5; }
.sx-pre {
  margin: 0 0 16px; padding: 14px; border-radius: 8px; border: 1px solid var(--sx-line); background: #050608;
  color: #dfe3ea; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word;
}

/* ---------- floating request button ---------- */
.sx-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; min-height: 48px; padding: 0 22px; border-radius: 9999px;
  border: 1px solid rgba(112, 168, 255, .5); background: var(--sx-blue); color: #fff; font: 500 14px/1 var(--sx-font);
  cursor: pointer; box-shadow: 0 10px 30px rgba(49, 126, 255, .35);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.sx-fab.sx-show { opacity: 1; transform: none; pointer-events: auto; }
.sx-fab:hover { background: #4a8dff; }

/* ---------- section bar ---------- */
.sx-bar {
  position: fixed; top: 80px; left: 0; right: 0; z-index: 25; border-bottom: 1px solid var(--sx-line);
  background: rgba(0, 0, 0, .82); backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.sx-bar.sx-show { opacity: 1; transform: none; pointer-events: auto; }
.sx-bar ul {
  display: flex; gap: 4px; margin: 0 auto; padding: 0 16px; max-width: 1280px; list-style: none; overflow-x: auto; scrollbar-width: none;
}
.sx-bar ul::-webkit-scrollbar { display: none; }
.sx-bar a {
  display: inline-flex; align-items: center; height: 44px; padding: 0 12px; white-space: nowrap; text-decoration: none;
  color: var(--sx-muted); font: 400 14px/1 var(--sx-font); border-bottom: 2px solid transparent;
}
.sx-bar a:hover { color: #fff; }
.sx-bar a[aria-current] { color: #fff; border-bottom-color: var(--sx-blue); }

/* ---------- reveal on scroll ---------- */
.sx-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease-out, transform .6s ease-out; }
.sx-reveal.sx-in { opacity: 1; transform: none; }
/* Bars grow from zero when their section arrives. */
[data-slice-type="ranked_bar_chart"] ol li span[style*="width"],
[data-slice-type="distribution_chart"] li > span > span[style*="width"] { transition: width .9s cubic-bezier(.2, .7, .2, 1); }
.sx-reveal:not(.sx-in) ol li span[style*="width"],
.sx-reveal:not(.sx-in) li > span > span[style*="width"] { width: 0 !important; }

/* ---------- catalog: card stat ---------- */
.sx-stat { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 4px; }
.sx-stat-num { display: block; color: #fff; font: 400 34px/1 var(--sx-font); letter-spacing: -0.01em; }
.sx-stat-label { display: block; margin-top: 6px; color: var(--sx-muted); font: 400 13px/1.3 var(--sx-font); }
.sx-spark { display: flex; align-items: flex-end; gap: 4px; height: 40px; flex-shrink: 0; }
.sx-spark span { width: 8px; min-height: 3px; border-radius: 2px 2px 0 0; background: var(--sx-blue); opacity: .85; }
.sx-spark span:nth-child(n+2) { opacity: .55; }
.sx-spark span:nth-child(n+3) { opacity: .35; }

/* ---------- catalog: guided entry ---------- */
.sx-guide { margin: 0 auto; padding: 32px 16px 0; max-width: 1280px; font-family: var(--sx-font); }
@media (min-width: 1280px) { .sx-guide { max-width: 90%; padding-left: 32px; padding-right: 32px; } }
@media (min-width: 1536px) { .sx-guide { padding-left: 80px; padding-right: 80px; } }
.sx-guide-title { margin: 0 0 14px; color: #fff; font: 400 20px/1.3 var(--sx-font); }
.sx-guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.sx-tile {
  display: flex; flex-direction: column; gap: 6px; width: 100%; height: 100%; box-sizing: border-box; padding: 16px; text-align: left; cursor: pointer;
  border-radius: 16px; border: 1px solid var(--sx-line); background: var(--sx-card); color: #fff;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.sx-tile:hover { border-color: var(--sx-blue); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(49, 126, 255, .16); }
.sx-tile[aria-pressed="true"] { border-color: var(--sx-blue); background: linear-gradient(rgba(49, 126, 255, .22), rgba(49, 126, 255, .06)); }
.sx-tile-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sx-tile-name { font: 500 16px/1.3 var(--sx-font); }
.sx-tile-count { color: var(--sx-blue-text); font: 400 13px/1 var(--sx-font); white-space: nowrap; }
.sx-tile-hint { color: var(--sx-muted); font: 400 13px/1.4 var(--sx-font); }

/* ---------- detail: leaderboard switcher ---------- */
.sx-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.sx-tab {
  min-height: 36px; padding: 0 14px; border-radius: 9999px; cursor: pointer; border: 1px solid var(--sx-blue);
  background: transparent; color: var(--sx-blue-text); font: 500 13px/1 var(--sx-font); transition: background-color .15s, color .15s;
}
.sx-tab:hover { background: var(--sx-blue-soft); }
.sx-tab[aria-pressed="true"] { background: var(--sx-blue); color: #fff; }
.sx-metric-note { margin: 0 0 16px; color: var(--sx-muted); font: 400 14px/1.5 var(--sx-font); }

/* ---------- detail: sample task ---------- */
.sx-task { font-family: var(--sx-font); color: #fff; }
.sx-task-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px; border-radius: 16px; border: 1px solid var(--sx-line); background: var(--sx-card); }
.sx-task-card.sx-has-media { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.sx-task-card > .sx-task-foot, .sx-task-card > .sx-task-why, .sx-task-card > .sx-task-detail, .sx-task-card > .sx-sheets { grid-column: 1 / -1; }
.sx-task-main { min-width: 0; }
.sx-task-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.sx-task-tags li { padding: 5px 10px; border: 1px solid var(--sx-blue); border-radius: 999px; color: var(--sx-blue-text); font: 500 12px/1 var(--sx-font); }
.sx-task-title { margin: 0 0 18px; font: 400 22px/1.3 var(--sx-font); color: #fff; }
.sx-task-label { margin: 0 0 8px; color: var(--sx-muted); font: 500 12px/1 var(--sx-font); letter-spacing: .1em; text-transform: uppercase; }
/* Opening a long task animates its height where the browser can size to "auto" (interpolate-size); elsewhere it just opens. */
.sx-task { interpolate-size: allow-keywords; }
.sx-task-body { position: relative; height: auto; overflow: hidden; transition: height .45s cubic-bezier(.22, .8, .24, 1); }
.sx-task-body.sx-clamped { height: 260px; }
.sx-task-body::after { content: ""; position: absolute; inset: auto 0 0 0; height: 72px; background: linear-gradient(transparent, #0b0d10); pointer-events: none; opacity: 0; transition: opacity .3s; }
.sx-task-body.sx-clamped::after { opacity: 1; }
.sx-task-prompt { margin: 0; color: #e8ebf0; font: 400 16px/1.6 var(--sx-font); white-space: pre-wrap; overflow-wrap: anywhere; }
.sx-task-code { margin: 14px 0 0; padding: 14px; border-radius: 10px; border: 1px solid var(--sx-line); background: #06070a; color: #cfe0ff; font: 400 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; overflow-x: auto; }
.sx-task-more { margin: 10px 0 0; padding: 0; border: 0; background: none; color: var(--sx-blue-text); font: 500 14px/1.4 var(--sx-font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sx-task-more:focus-visible { outline: 2px solid var(--sx-blue); outline-offset: 3px; border-radius: 4px; }
.sx-task-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.sx-task-facts li { padding: 12px; border-radius: 10px; border: 1px solid var(--sx-line); }
.sx-task-facts b { display: block; font: 400 22px/1.1 var(--sx-font); }
.sx-task-facts span { display: block; margin-top: 6px; color: var(--sx-muted); font: 400 13px/1.35 var(--sx-font); }
.sx-task-media { display: grid; gap: 14px; min-width: 0; }
.sx-task-media figure { margin: 0; }
.sx-task-media a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--sx-line); background: #fff; }
.sx-task-media img { display: block; width: 100%; height: auto; }
.sx-task-media img.sx-img-natural { margin: 0 auto; }
.sx-task-media figcaption { margin-top: 8px; color: var(--sx-muted); font: 400 13px/1.45 var(--sx-font); }
.sx-task-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.sx-task-box { padding: 16px; border-radius: 12px; border: 1px solid var(--sx-line); }
.sx-task-box p { margin: 0; font: 400 15px/1.55 var(--sx-font); white-space: pre-wrap; overflow-wrap: anywhere; }
.sx-task-box.sx-wrong { border-color: rgba(255, 122, 89, .6); background: rgba(255, 122, 89, .07); }
.sx-task-box.sx-right { border-color: rgba(74, 222, 128, .55); background: rgba(74, 222, 128, .07); }
.sx-task-checks { margin: 0; padding: 0 0 0 18px; color: #e8ebf0; font: 400 15px/1.55 var(--sx-font); }
.sx-task-checks li + li { margin-top: 6px; }
.sx-task-why { margin: 0; color: var(--sx-muted); font: 400 14px/1.6 var(--sx-font); }
.sx-task-media .sx-tabs { justify-self: end; }
.sx-task-pick { margin: -4px 0 18px; }
.sx-task-codelabel { margin-top: 18px; }
.sx-task-codelabel + .sx-task-code { margin-top: 0; }
/* Switching sample: the card content fades in. Two names so the animation restarts on every switch. */
.sx-task-card.sx-swap-a > * { animation: sx-swap-a .28s ease-out; }
.sx-task-card.sx-swap-b > * { animation: sx-swap-b .28s ease-out; }
@keyframes sx-swap-a { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes sx-swap-b { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* Text with formulas, rendered at build time (tools/render_math.mjs). */
.sx-rich { color: #e8ebf0; font: 400 16px/1.7 var(--sx-font); white-space: normal; overflow-wrap: break-word; }
.sx-rich p { margin: 0 0 12px; white-space: normal; font: inherit; }
.sx-rich > :last-child { margin-bottom: 0; }
.sx-rich ul { margin: 0 0 12px; padding-left: 20px; }
.sx-rich li + li { margin-top: 6px; }
.sx-rich code { padding: 1px 5px; border-radius: 5px; background: rgba(255, 255, 255, .08); font: 400 .88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sx-rich .sx-rich-h { color: var(--sx-muted); font: 500 12px/1 var(--sx-font); letter-spacing: .1em; text-transform: uppercase; }
.sx-rich .katex { font-size: 1.08em; }
.sx-rich .katex-display { margin: 12px 0; padding: 2px 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.sx-task-box .sx-rich { font-size: 17px; }
/* "format": "markdown": a task instruction kept as written, with its headings, lists, quotes and code. */
.sx-rich ol { margin: 0 0 12px; padding-left: 22px; }
.sx-rich strong { color: #fff; font-weight: 600; }
.sx-rich .sx-md-h { margin: 22px 0 10px; color: #fff; font: 600 18px/1.3 var(--sx-font); }
.sx-rich .sx-md-h1 { font-size: 21px; }
.sx-rich .sx-md-h3 { font-size: 16px; }
.sx-rich > .sx-md-h:first-child { margin-top: 0; }
.sx-rich blockquote { margin: 0 0 12px; padding: 10px 14px; border-left: 3px solid var(--sx-blue); border-radius: 0 8px 8px 0; background: rgba(255, 255, 255, .04); }
.sx-rich .sx-task-code { margin: 0 0 14px; }
.sx-rich .sx-task-code code { padding: 0; background: none; font: inherit; }
.sx-md-table { margin: 0 0 14px; overflow-x: auto; }
.sx-md-table table { border-collapse: collapse; font: 400 14px/1.45 var(--sx-font); }
.sx-md-table th, .sx-md-table td { padding: 7px 12px; border: 1px solid var(--sx-line); text-align: left; vertical-align: top; }
.sx-md-table th { color: #fff; font-weight: 600; background: rgba(255, 255, 255, .04); }
/* Text-only tasks: keep lines a readable length on wide screens. */
.sx-task-card:not(.sx-has-media) .sx-task-main { max-width: 880px; }
.sx-task-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.sx-spec { margin: 0; }
.sx-spec div { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--sx-line); }
.sx-spec div:first-child { border-top: 0; padding-top: 2px; }
.sx-spec dt { color: var(--sx-muted); font: 500 12px/1.5 var(--sx-font); letter-spacing: .08em; text-transform: uppercase; }
.sx-spec dd { margin: 0; color: #e8ebf0; font: 400 15px/1.5 var(--sx-font); }
.sx-sheets { padding: 16px; border-radius: 12px; border: 1px solid var(--sx-line); }
.sx-sheets-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sx-sheets-count { padding: 4px 10px; border-radius: 999px; background: var(--sx-blue-soft); color: var(--sx-blue-text); font: 500 12px/1.3 var(--sx-font); white-space: nowrap; }
.sx-sheets .sx-task-why { margin-bottom: 12px; }
.sx-sheets-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.sx-sheets-list a { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--sx-line); color: #fff; text-decoration: none; transition: border-color .15s; }
.sx-sheets-list a:hover { border-color: var(--sx-blue); }
.sx-sheets-list a:focus-visible { outline: 2px solid var(--sx-blue); outline-offset: 2px; }
.sx-sheet-n { color: var(--sx-muted); font: 400 12px/1 var(--sx-font); font-variant-numeric: tabular-nums; }
.sx-sheets-list b { flex: 1; min-width: 0; color: #fff; font: 500 15px/1.3 var(--sx-font); overflow-wrap: anywhere; }
.sx-sheets-list small { color: var(--sx-blue-text); font: 500 12px/1 var(--sx-font); white-space: nowrap; }
@media (max-width: 900px) { .sx-task-card.sx-has-media { grid-template-columns: minmax(0, 1fr); } }

/* ---------- detail: sections from the approved CyberStrike mockup ---------- */
/* task distribution: one card per group */
.sx-dist-grid { display: grid; gap: 16px; }
@media (min-width: 1024px) {
  .sx-dist-grid.lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sx-dist-grid.lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.sx-dist-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 20px; border: 1px solid var(--sx-line); border-radius: 16px; background: var(--sx-card); font-family: var(--sx-font); }
.sx-dist-ct { display: flex; flex-direction: column; gap: 8px; }
.sx-dist-ct h3 { margin: 0; color: #fff; font: 400 20px/1.25 var(--sx-font); }
.sx-dist-ct span { order: -1; color: var(--sx-blue-text); font: 600 12px/1.4 var(--sx-font); letter-spacing: .06em; text-transform: uppercase; }
.sx-dist-desc { margin: 0; color: var(--sx-muted); font: 300 15px/1.5 var(--sx-font); }
.sx-quote { display: block; margin: 6px 0 10px; padding-left: 12px; border-left: 2px solid var(--sx-blue); color: #e6e6e6; font: 300 14px/1.5 var(--sx-font); font-style: normal; }
.sx-dist-bars { display: grid; gap: 10px; margin: auto 0 0; padding: 0; list-style: none; }
.sx-dist-uneven .sx-dist-bars { margin-top: 6px; }
.sx-dist-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; color: #e6e6e6; font: 300 13px/1.4 var(--sx-font); }
.sx-dist-bars em { color: #fff; font-style: normal; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.sx-dist-bars i { position: relative; grid-column: 1 / -1; height: 6px; overflow: hidden; border-radius: 999px; background: #1a1f2a; }
.sx-dist-bars i b { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--sx-blue); }

/* what a task looks like: the mockup's table form */
.sx-tt { overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; background: var(--sx-card); font-family: var(--sx-font); }
.sx-tt-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, .1); background: rgba(49, 126, 255, .08); }
.sx-tt-id { color: #fff; font: 400 14px/1.4 ui-monospace, Menlo, monospace; }
.sx-tt-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border: 1px solid var(--sx-blue); border-radius: 999px; color: var(--sx-blue-text); font: 500 12px/1 var(--sx-font); white-space: nowrap; }
.sx-tt dl { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); margin: 0; }
.sx-tt dt, .sx-tt dd { margin: 0; padding: 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.sx-tt dt { color: var(--sx-blue-text); font: 600 12px/1.6 var(--sx-font); letter-spacing: .08em; text-transform: uppercase; }
.sx-tt dd { color: #e6e6e6; font: 300 15px/1.5 var(--sx-font); }
.sx-tt dl > :nth-last-child(-n+2) { border-bottom: 0; }
.sx-pill { margin-right: 6px; padding: 2px 8px; border-radius: 6px; font: 400 12px/1.6 ui-monospace, Menlo, monospace; }
.sx-pill-pass { background: #12301f; color: #7fd9ae; }
.sx-pill-fail { background: #3a1616; color: #f0a3a3; }
@media (max-width: 640px) {
  .sx-tt dl { grid-template-columns: minmax(0, 1fr); }
  .sx-tt dt { padding-bottom: 0; border-bottom: 0; }
}
.sx-quote::before, .sx-quote::after { content: none; }

/* how it compares */
.sx-cmp { border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; overflow: hidden; background: var(--sx-card); font-family: var(--sx-font); }
.sx-cmp-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, 1.1fr); border-top: 1px solid rgba(255, 255, 255, .1); }
.sx-cmp-row:first-child { border-top: 0; }
.sx-cmp-row > div { min-width: 0; padding: 20px; color: var(--sx-muted); font: 300 15px/1.5 var(--sx-font); }
.sx-cmp-row > div:first-child { color: #fff; font-weight: 500; }
.sx-cmp-row > div:last-child { background: rgba(49, 126, 255, .08); color: #e6e6e6; }
.sx-cmp-head > div, .sx-cmp-head > div:first-child { padding-block: 14px; color: var(--sx-blue-text); font: 600 12px/1.4 var(--sx-font); letter-spacing: .08em; text-transform: uppercase; }
.sx-cmp-lbl { display: none; margin-bottom: 4px; color: var(--sx-blue-text); font: 600 11px/1.4 var(--sx-font); letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 1023px) {
  .sx-cmp-head { display: none; }
  .sx-cmp-row { grid-template-columns: minmax(0, 1fr); }
  .sx-cmp-lbl { display: block; }
}

/* where frontier models fail */
.sx-cards3 { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 1024px) { .sx-cards3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sx-task-bg { margin-top: 16px; }
.sx-folds { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.sx-fold { border: 1px solid var(--sx-line); border-radius: 12px; background: var(--sx-card); }
.sx-fold > summary { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; color: #fff; font: 500 15px/1.4 var(--sx-font); list-style: none; }
.sx-fold > summary::-webkit-details-marker { display: none; }
.sx-fold > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--sx-blue); border-bottom: 2px solid var(--sx-blue); transform: rotate(-45deg); transition: transform .2s; }
.sx-fold[open] > summary::before { transform: rotate(45deg); }
.sx-fold > summary span { margin-left: auto; color: var(--sx-muted); font-size: 13px; font-weight: 400; }
.sx-fold > summary:focus-visible { outline: 2px solid var(--sx-blue); outline-offset: 2px; border-radius: 12px; }
.sx-fold > .sx-task-code { margin: 0 12px 12px; max-height: 560px; overflow: auto; }
@media (prefers-reduced-motion: reduce) { .sx-fold > summary::before { transition: none; } }
.sx-points { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.sx-points .sx-card h3 { font-size: 18px; }
@media (min-width: 768px) { .sx-points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sx-points { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .sx-points-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sx-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 20px; border: 1px solid var(--sx-line); border-radius: 16px; background: var(--sx-card); font-family: var(--sx-font); }
.sx-card h3 { margin: 0; color: #fff; font: 400 20px/1.25 var(--sx-font); }
.sx-card p { margin: 0; color: var(--sx-muted); font: 300 15px/1.5 var(--sx-font); }
.sx-card p.sx-card-k { color: var(--sx-blue-text); font: 600 12px/1.4 var(--sx-font); letter-spacing: .06em; text-transform: uppercase; }

/* quality and contamination */
.sx-gates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 1024px) { .sx-gates { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 520px) { .sx-gates { grid-template-columns: minmax(0, 1fr); } }
.sx-gate { display: flex; flex-direction: column; gap: 8px; padding: 16px; font-family: var(--sx-font); }
@media (min-width: 768px) { .sx-gate { padding: 20px; } }
.sx-gate em { color: var(--sx-blue-text); font: 600 12px/1 var(--sx-font); font-style: normal; letter-spacing: .06em; }
.sx-gate b { color: #fff; font: 600 15px/1.3 var(--sx-font); }
.sx-gate p { margin: 0; color: var(--sx-muted); font: 300 13.5px/1.45 var(--sx-font); }
.sx-rg-h { margin: 8px 0 0; color: var(--sx-blue); font: 400 14px/1.2 var(--sx-font); letter-spacing: 3px; text-transform: uppercase; }
.sx-rg { display: grid; gap: 16px 24px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .sx-rg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sx-rg { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.sx-rg li { min-width: 0; padding-top: 12px; border-top: 1px solid var(--sx-blue); }
.sx-rg b { color: #fff; font: 600 15px/1.3 var(--sx-font); }
.sx-rg p { margin: 4px 0 0; color: var(--sx-muted); font: 300 13.5px/1.45 var(--sx-font); }
.sx-qnote { max-width: 70ch; margin: 0; color: var(--sx-muted); font: 300 16px/1.5 var(--sx-font); }
.sx-qnote b { color: #fff; font-weight: 500; }

/* what you get */
.sx-kv { margin: 0; border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; overflow: hidden; background: var(--sx-card); font-family: var(--sx-font); }
.sx-kv > div { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); border-top: 1px solid rgba(255, 255, 255, .1); }
.sx-kv > div:first-child { border-top: 0; }
.sx-kv dt { padding: 19px 20px 16px; color: var(--sx-blue-text); font: 600 12px/1.4 var(--sx-font); letter-spacing: .08em; text-transform: uppercase; }
.sx-kv dd { margin: 0; padding: 16px 20px; color: #e6e6e6; font: 300 15px/1.5 var(--sx-font); }
@media (max-width: 640px) {
  .sx-kv > div { grid-template-columns: minmax(0, 1fr); }
  .sx-kv dt { padding-bottom: 0; }
}

@keyframes sx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sx-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  .sx-row { grid-template-columns: 1fr; }
  .sx-task-card { padding: 16px; }
  .sx-panel { padding: 20px; }
  .sx-fab { right: 12px; bottom: 12px; }
  .sx-stat-num { font-size: 28px; }
  .sx-guide { padding-top: 24px; }
  .sx-guide-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sx-tile { padding: 12px; }
  .sx-tile-top { flex-direction: column; gap: 4px; }
  .sx-tile-name { font-size: 15px; }
  .sx-tile-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sx-modal, .sx-panel, .sx-task-card > * { animation: none !important; }
  .sx-task-body, .sx-task-body::after { transition: none; }
  .sx-fab, .sx-bar, .sx-tile, .sx-reveal { transition: none; }
  [data-slice-type] span[style*="width"] { transition: none !important; }
}

/* ---------- event look ---------- */
/* One accent, brand blue, on every card, the sample strip, the number wall and detail pages. */
:root { --sx-accent: #317eff; --sx-accent-rgb: 49, 126, 255; --sx-accent-text: #8fb8ff; }

/* hero background */
.sx-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; animation: sx-fade 1.2s .1s ease-out forwards;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 45%, transparent 100%); mask-image: radial-gradient(120% 100% at 50% 0%, #000 45%, transparent 100%); }

/* counters under the hero */
.sx-count { margin: 0 auto; padding: 28px 16px 0; max-width: 1100px; font-family: var(--sx-font); color: #fff; }
.sx-count ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.sx-count li { padding: 4px 20px; text-align: center; border-left: 1px solid var(--sx-line); }
.sx-count li:first-child { border-left: 0; }
.sx-count b { display: block; font: 400 clamp(30px, 5vw, 52px)/1.05 var(--sx-font); letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 30%, #8fb8ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sx-count span { display: block; margin-top: 8px; color: var(--sx-muted); font: 400 14px/1.4 var(--sx-font); }

/* strip of sample tasks: one list written twice, sliding left by exactly half its width */
.sx-strip { margin: 0 auto; padding: 36px 0 0; max-width: 1600px; font-family: var(--sx-font); }
.sx-strip-h { margin: 0 0 14px; padding: 0 16px; text-align: center; color: var(--sx-blue); font: 500 13px/1 var(--sx-font); letter-spacing: .12em; text-transform: uppercase; }
.sx-strip-view { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.sx-strip-track { display: flex; gap: 12px; width: max-content; margin: 0; padding: 4px 0 4px 12px; list-style: none; animation: sx-slide calc(var(--sx-n, 10) * 5s) linear infinite; }
.sx-strip-view:hover .sx-strip-track, .sx-strip-view:focus-within .sx-strip-track { animation-play-state: paused; }
.sx-strip-track a { display: flex; align-items: center; gap: 12px; width: 300px; height: 84px; padding: 10px 14px 10px 10px; box-sizing: border-box; border-radius: 14px;
  border: 1px solid var(--sx-line); background: var(--sx-card); color: #fff; text-decoration: none; transition: border-color .2s, transform .2s; }
.sx-strip-track a:hover { border-color: var(--sx-blue); transform: translateY(-2px); }
.sx-strip-track a:focus-visible { outline: 2px solid var(--sx-blue); outline-offset: 2px; }
.sx-strip-img { flex: none; display: flex; align-items: center; justify-content: center; width: 62px; height: 62px; border-radius: 10px; overflow: hidden; background: #fff; }
.sx-strip-img img { width: 100%; height: 100%; object-fit: cover; }
.sx-strip-glyph { background: rgba(var(--sx-accent-rgb), .14); border: 1px solid rgba(var(--sx-accent-rgb), .5); color: var(--sx-accent-text); font: 500 26px/1 var(--sx-font); }
.sx-strip-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sx-strip-txt small { color: var(--sx-accent-text); font: 500 11px/1 var(--sx-font); letter-spacing: .08em; text-transform: uppercase; }
.sx-strip-txt b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font: 500 14px/1.3 var(--sx-font); }
.sx-strip-txt i { color: var(--sx-muted); font: normal 400 12px/1.2 var(--sx-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes sx-slide { to { transform: translateX(calc(-50% - 6px)); } }

/* catalog cards */
article.sx-card { transition: transform .2s ease-out, border-color .2s, box-shadow .3s; box-shadow: inset 0 2px 0 rgba(var(--sx-accent-rgb), .55); }
article.sx-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--sx-mx, 50%) var(--sx-my, 0%), rgba(49, 126, 255, .18), transparent 60%); }
@media (hover: hover) {
  article.sx-card:hover { border-color: var(--sx-blue); box-shadow: inset 0 2px 0 var(--sx-blue), 0 22px 50px -24px rgba(49, 126, 255, .55); }
  article.sx-card:hover::before { opacity: 1; }
  article.sx-card:hover .sx-spark span { animation: sx-spark .7s ease-out both; }
  article.sx-card:hover .sx-spark span:nth-child(2n) { animation-delay: .06s; }
  article.sx-card:hover .sx-spark span:nth-child(3n) { animation-delay: .12s; }
}
article.sx-card .sx-spark span { background: var(--sx-accent); transform-origin: bottom; }
article.sx-card .sx-stat-num { color: var(--sx-accent-text); }
@keyframes sx-spark { from { transform: scaleY(.15); } 60% { transform: scaleY(1.12); } to { transform: none; } }

/* one card pattern: title, up to three lines of copy, then a stat row pinned above the link,
   so the number, its label and the small chart line up across a row whatever the copy length */
article.sx-card h2 ~ p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; min-height: 3em; }
article.sx-card .sx-stat { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--sx-line); min-height: 88px; }
article.sx-card .sx-stat ~ a { margin-top: 0; }
article.sx-card .sx-stat > div:first-child { min-width: 0; }
article.sx-card .sx-stat-num { font-size: 32px; font-variant-numeric: tabular-nums; white-space: nowrap; }
article.sx-card .sx-stat-label { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.6em; }
article.sx-card .sx-spark { width: 68px; justify-content: flex-end; }
/* the badge sits in the top right corner of the stat row, clear of the number and the chart */
.sx-card-sample { position: absolute; z-index: 1; right: 20px; bottom: 133px; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border: 1px solid rgba(var(--sx-accent-rgb), .45); border-radius: 999px; background: #0c0e12; color: var(--sx-accent-text); font: 500 12px/1 var(--sx-font); white-space: nowrap; pointer-events: none; }
.sx-card-sample::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sx-accent); }
@media (max-width: 767px) { article.sx-card .sx-stat-num { font-size: 28px; } }

/* wall of numbers under the catalog */
.sx-wall { margin: 0 auto; padding: 24px 16px 72px; max-width: 1240px; font-family: var(--sx-font); color: #fff; }
.sx-wall-eyebrow { margin: 0 0 8px; color: var(--sx-blue); font: 500 13px/1 var(--sx-font); letter-spacing: .12em; text-transform: uppercase; }
.sx-wall h2 { margin: 0 0 24px; font: 400 30px/1.2 var(--sx-font); color: #fff; }
.sx-wall ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.sx-wall a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px; box-sizing: border-box; border-radius: 16px; border: 1px solid var(--sx-line);
  background: radial-gradient(120% 90% at 0% 0%, rgba(var(--sx-accent-rgb), .13), transparent 60%), var(--sx-card); color: #fff; text-decoration: none; transition: border-color .2s, transform .2s; }
.sx-wall a:hover { border-color: var(--sx-blue); box-shadow: 0 22px 50px -24px rgba(49, 126, 255, .55); transform: translateY(-3px); }
.sx-wall a:focus-visible { outline: 2px solid var(--sx-blue); outline-offset: 2px; }
.sx-wall b { font: 400 clamp(44px, 6vw, 64px)/1 var(--sx-font); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--sx-accent-text); }
.sx-wall span { color: #e8ebf0; font: 400 15px/1.4 var(--sx-font); }
.sx-wall small { margin-top: auto; padding-top: 10px; color: var(--sx-muted); font: 500 12px/1 var(--sx-font); letter-spacing: .08em; text-transform: uppercase; }

/* detail pages pick up the accent */
#sx-task-h2 { scroll-margin-top: 150px; }
.sx-task-tags li { border-color: var(--sx-accent); color: var(--sx-accent-text); }

/* leaderboard: the top bar glows once its bars have grown */
[data-slice-type="ranked_bar_chart"].sx-in ol > li:first-child span[style*="width"] { animation: sx-pulse 1.5s ease-out 1s 2; }
@keyframes sx-pulse { 0% { box-shadow: 0 0 0 0 rgba(49, 126, 255, .7); } 100% { box-shadow: 0 0 0 12px rgba(49, 126, 255, 0); } }

/* sample task: the answer stays covered until asked for */
.sx-task-box.sx-right { position: relative; }
.sx-task-box.sx-veiled > :not(.sx-task-label):not(.sx-unveil) { filter: blur(9px); opacity: .5; user-select: none; pointer-events: none; }
.sx-unveil { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); min-height: 40px; padding: 0 18px; border-radius: 9999px; cursor: pointer;
  border: 1px solid rgba(74, 222, 128, .7); background: rgba(8, 20, 12, .85); color: #b9f5cd; font: 500 14px/1 var(--sx-font); white-space: nowrap; transition: background-color .15s, transform .15s; }
.sx-unveil:hover { background: rgba(74, 222, 128, .22); transform: translate(-50%, -50%) scale(1.04); }
.sx-unveil:focus-visible { outline: 2px solid var(--sx-blue); outline-offset: 3px; }
.sx-task-card > .sx-task-foot .sx-task-box.sx-unveiled { animation: sx-flip .55s cubic-bezier(.2, .8, .2, 1); }
@keyframes sx-flip { from { transform: perspective(700px) rotateX(-80deg); opacity: .2; } to { transform: none; opacity: 1; } }

/* figure lightbox */
.sx-task-media a { cursor: zoom-in; }
.sx-lightbox { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; overflow: hidden; background: rgba(0, 0, 0, .93);
  animation: sx-fade .2s ease-out; touch-action: none; }
.sx-lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; background: #fff; cursor: zoom-in; user-select: none; transition: transform .12s ease-out; will-change: transform; }
.sx-lightbox img.sx-zoomed { cursor: grab; }
.sx-lightbox .sx-x { position: fixed; top: 16px; right: 16px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 24px; cursor: pointer; }
.sx-lightbox-hint { position: fixed; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; color: var(--sx-muted); font: 400 13px/1.3 var(--sx-font); pointer-events: none; }

/* conference pill */
.sx-event { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 9999px; cursor: pointer;
  border: 1px solid rgba(49, 126, 255, .6); background: rgba(8, 12, 22, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font: 400 13px/1 var(--sx-font);
  box-shadow: 0 10px 30px -12px rgba(49, 126, 255, .7); animation: sx-rise .5s .6s ease-out both; }
.sx-event b { font-weight: 600; }
.sx-event-text { color: var(--sx-muted); }
.sx-event:focus-visible { outline: 2px solid var(--sx-blue); outline-offset: 3px; }
.sx-event-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; animation: sx-dot 1.8s ease-out infinite; }
@keyframes sx-dot { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); } 100% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } }
.sx-event-card { position: fixed; left: 16px; bottom: 66px; z-index: 60; width: 248px; padding: 16px; box-sizing: border-box; border-radius: 16px; border: 1px solid var(--sx-line);
  background: #0b0d10; color: #fff; font-family: var(--sx-font); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility 0s .2s; }
.sx-event-card.sx-show { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
.sx-event-title { margin: 0 0 4px; font: 500 15px/1.35 var(--sx-font); }
.sx-event-detail { margin: 0 0 4px; color: var(--sx-muted); font: 400 13px/1.4 var(--sx-font); }
.sx-event-qr { margin: 12px 0 8px; padding: 10px; border-radius: 12px; background: #fff; }
.sx-event-qr svg { display: block; width: 100%; height: auto; }
.sx-event-scan { margin: 0 0 12px; color: var(--sx-muted); font: 400 12px/1.3 var(--sx-font); text-align: center; }
.sx-event-card .sx-actions { margin: 0; justify-content: space-between; }

/* page to page: a short cross-fade, and a card's title carries into its page heading */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
::view-transition-group(sx-title) { animation-duration: .38s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
[data-slice-type="hero_section_v3"] h1 { view-transition-name: sx-title; }

@media (max-width: 640px) {
  .sx-count { padding-top: 20px; }
  .sx-count li { padding: 4px 8px; }
  .sx-count span { font-size: 12px; }
  .sx-strip-track a { width: 260px; }
  .sx-wall { padding-bottom: 48px; }
  .sx-wall h2 { font-size: 24px; }
  .sx-wall ul { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sx-wall a { padding: 14px; }
  .sx-wall span { font-size: 13px; }
  .sx-event { left: 12px; bottom: 12px; }
  .sx-event-text { display: none; }
  .sx-event-card { left: 12px; bottom: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .sx-hero-canvas { animation: none; opacity: 1; }
  .sx-strip-track { animation: none; }
  .sx-strip-view { overflow-x: auto; }
  .sx-event, .sx-event-dot, .sx-lightbox, .sx-task-box.sx-unveiled, article.sx-card .sx-spark span,
  [data-slice-type="ranked_bar_chart"] ol > li span[style*="width"] { animation: none !important; }
  article.sx-card, .sx-wall a, .sx-strip-track a, .sx-lightbox img, .sx-event-card { transition: none; }
}

/* ---------- page loader ----------
   The Turing mark fills from the bottom like a glass while a page loads. <html> gets
   .sx-loading from an inline script in <head>, so it is there on first paint; site.js
   adds .sx-loaded once the page is ready, and .sx-leaving when a link to another page is
   clicked. If the script never runs, the last keyframes clear the loader anyway. */
html.sx-loading::before, html.sx-leaving::before { content: ""; position: fixed; inset: 0; z-index: 2147483600;
  background: radial-gradient(60% 50% at 50% 50%, rgba(49, 126, 255, .16), transparent 70%), #000; }
html.sx-loading::after, html.sx-leaving::after { content: ""; position: fixed; z-index: 2147483601; left: 50%; top: 50%; width: 132px; height: 82px; margin: -41px 0 0 -66px;
  -webkit-mask: url(../img/turing-mark.svg) center / contain no-repeat; mask: url(../img/turing-mark.svg) center / contain no-repeat;
  background: linear-gradient(to top, #317eff 0%, #58a6ff 30%, #9fe3ff 47%, #fff 49.6%, rgba(255, 255, 255, .13) 50%, rgba(255, 255, 255, .13) 100%) 0 0 / 100% 204% no-repeat;
  filter: drop-shadow(0 0 18px rgba(49, 126, 255, .55)); }
html.sx-loading::before { animation: sx-load-out .3s 2.6s ease-in forwards; }
html.sx-loading::after { animation: sx-fill .55s cubic-bezier(.45, .05, .25, 1) forwards, sx-load-out .3s 2.6s ease-in forwards; }
html.sx-loading.sx-loaded::before { animation: sx-load-out .28s ease-in forwards; }
html.sx-loading.sx-loaded::after { animation: sx-fill .55s cubic-bezier(.45, .05, .25, 1) forwards, sx-load-out .28s ease-in forwards; }
html.sx-leaving::before { animation: sx-fade .18s ease-out both; }
html.sx-leaving::after { animation: sx-fade .18s ease-out both, sx-fill .7s cubic-bezier(.45, .05, .25, 1) forwards; }
@keyframes sx-fill { from { background-position: 0 0; } to { background-position: 0 100%; } }
@keyframes sx-load-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  html.sx-loading::before, html.sx-loading::after, html.sx-leaving::before, html.sx-leaving::after { display: none; }
}
/* Leaderboard: on every page the takeaways go in a row under the chart, up to three across. */
@media (min-width: 1280px) {
  .sx-lb-stack { grid-template-columns: minmax(0, 1fr); }
  .sx-lb-stack ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ===== card feedback (4 Dec night): a percentage on a card is a whole number with a bar; no small chart ===== */
article.sx-card .sx-stat { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 12px; min-height: 108px; }
.sx-stat-bar { display: block; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.sx-stat-bar i { display: block; height: 100%; border-radius: inherit; background: var(--sx-accent); }
.sx-card-sample { bottom: 153px; }
article.sx-card { cursor: pointer; }

/* ===== request buttons where intent is highest (4 Dec night) ===== */
.sx-mid-cta, .sx-end-cta { box-sizing: border-box; width: calc(100% - 32px); max-width: 1180px; margin: 0 auto; font-family: var(--sx-font); color: #fff;
  border: 1px solid rgba(var(--sx-accent-rgb), .35); border-radius: 16px; background: linear-gradient(180deg, rgba(var(--sx-accent-rgb), .12), rgba(var(--sx-accent-rgb), .03)); }
.sx-mid-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 20px 24px; margin-top: 8px; margin-bottom: 8px; }
.sx-mid-cta p { margin: 0; max-width: 60ch; color: rgba(255, 255, 255, .78); font-size: 16px; line-height: 1.45; }
.sx-mid-cta b { color: #fff; font-weight: 500; }
.sx-end-cta { padding: 40px 24px; margin-bottom: 72px; text-align: center; }
.sx-end-cta h2 { margin: 0; font: 400 clamp(24px, 3vw, 34px)/1.15 var(--sx-font); letter-spacing: -.01em; }
.sx-end-cta p { margin: 12px auto 24px; max-width: 52ch; color: rgba(255, 255, 255, .72); font-size: 16px; line-height: 1.5; }
.sx-mid-cta .sx-btn, .sx-end-cta .sx-btn { text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap; }

/* ===== card bar rev (5 Dec): a short bar on the same line as the metric it measures, not a full-width rule ===== */
article.sx-card .sx-stat { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; align-content: start; align-items: center; column-gap: 10px; row-gap: 10px; }
article.sx-card .sx-stat > div:first-child { display: contents; }
article.sx-card .sx-stat-num { grid-column: 1 / -1; }
article.sx-card .sx-stat-label { grid-column: 1 / -1; grid-row: 2; margin-top: 0; min-height: 0; }
article.sx-card .sx-stat:has(.sx-stat-bar) .sx-stat-label { grid-column: 2; }
article.sx-card .sx-stat-bar { grid-column: 1; grid-row: 2; width: 64px; height: 4px; background: rgba(255, 255, 255, .14); }
article.sx-card .sx-stat { min-height: 92px; }
.sx-card-sample { bottom: 137px; }
/* the bar as a fine detail: hairline track, gradient fill with a soft glow and a bright tip */
article.sx-card .sx-stat { column-gap: 12px; row-gap: 12px; }
article.sx-card .sx-stat-bar { width: 56px; height: 3px; overflow: visible; background: rgba(255, 255, 255, .09); }
article.sx-card .sx-stat-bar i { position: relative; min-width: 3px; background: linear-gradient(90deg, color-mix(in srgb, var(--sx-accent) 55%, transparent), var(--sx-accent)); box-shadow: 0 0 8px color-mix(in srgb, var(--sx-accent) 55%, transparent); }
article.sx-card .sx-stat-bar i::after { content: ""; position: absolute; right: -1px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #fff; opacity: .85; box-shadow: 0 0 6px var(--sx-accent); }
article.sx-card .sx-stat-label { line-height: 1.2; letter-spacing: .01em; }
/* rev 4: the solid short bar, polished. Rounded track with a hairline edge, gradient fill, soft glow. */
article.sx-card .sx-stat-bar { width: 64px; height: 4px; border-radius: 999px; overflow: visible; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .1); }
article.sx-card .sx-stat-bar i { min-width: 4px; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--sx-accent) 70%, #000), var(--sx-accent) 60%, color-mix(in srgb, var(--sx-accent) 65%, #fff)); box-shadow: 0 0 10px color-mix(in srgb, var(--sx-accent) 50%, transparent), 0 0 2px color-mix(in srgb, var(--sx-accent) 80%, transparent); }
article.sx-card .sx-stat-bar i::after { display: none; }

/* ===== header menus (5 Dec): the dropdowns of turing.com, linked to its pages ===== */
.sx-menu-panel { position: absolute; top: calc(100% + 14px); left: -14px; z-index: 60; width: 250px; padding: 6px 0; border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; background: #16171b; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s; }
.sx-menu-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
header .relative.sx-open > .sx-menu-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
header .relative.sx-open > button { color: #fff; }
header .relative.sx-open > button > span { transform: rotate(180deg); }
.sx-menu-item { display: block; padding: 11px 16px; text-decoration: none; transition: background-color .12s ease; }
.sx-menu-item:hover, .sx-menu-item:focus-visible { background: rgba(255, 255, 255, .06); outline: none; }
.sx-menu-item b { display: block; color: #fff; font: 600 14px/1.3 var(--sx-font); letter-spacing: -.005em; }
.sx-menu-item span { display: block; margin-top: 3px; color: rgba(255, 255, 255, .62); font: 300 12px/1.35 var(--sx-font); }
.sx-menu-group { margin: 6px 0; padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, .08); border-bottom: 1px solid rgba(255, 255, 255, .08); color: var(--sx-accent-text, #6ea0ff); font: 500 10px/1 var(--sx-font); letter-spacing: .32em; text-transform: uppercase; }
/* phone: the menu button opens the same menus as one sheet under the header */
@media (max-width: 1023px) {
  header.sx-nav-open nav { display: flex !important; position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100vh - 80px); overflow-y: auto; padding: 8px 20px 24px; background: #000; border-top: 1px solid rgba(255, 255, 255, .08); }
  header.sx-nav-open nav > * { border-bottom: 1px solid rgba(255, 255, 255, .08); }
  header.sx-nav-open nav button, header.sx-nav-open nav > a { width: 100%; justify-content: space-between; padding: 16px 0; }
  header.sx-nav-open nav .sx-menu-panel { position: static; display: none; width: auto; margin: 0 0 12px; opacity: 1; visibility: visible; transform: none; box-shadow: none; }
  header.sx-nav-open nav .relative.sx-open > .sx-menu-panel { display: block; }
}
@media (prefers-reduced-motion: reduce) { .sx-menu-panel { transition: none; } }
.sx-menu-panel > .sx-menu-group:first-child { margin-top: -6px; border-top: 0; }

/* Home page closing band: two buttons side by side (5 Dec). */
.sx-end-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
