:root {
  --bg: #fafbfd;
  --surface: #ffffff;
  --card: #f1f5f9;
  --ink: #1e293b;
  --head: #0b1220;
  --muted: #5b6878;
  --rule: #e2e8f0;
  --faint: #edf2f7;
  --accent: #0284c7;
  --accent-2: #059669;
  --accent-soft: #e0f2fe;
  --ok: #059669;
  --warn: #e11d48;
  --wb-c: #1e293b;
  --wb-d: #0f172a;
  --cyan-c: #0ea5e9;
  --cyan-d: #0369a1;
  --em-c: #10b981;
  --em-d: #047857;
  --glow-1: rgba(14, 165, 233, 0.11);
  --glow-2: rgba(16, 185, 129, 0.08);
  --shadow: 0 14px 36px -18px rgba(15, 23, 42, 0.14);
  --nav-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.12);
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --display: 'Space Grotesk', var(--font);
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080c12;
    --surface: #101620;
    --card: #131b26;
    --ink: #dce5ef;
    --head: #f8fafc;
    --muted: #8b9bb0;
    --rule: #212d3d;
    --faint: #17202c;
    --accent: #38bdf8;
    --accent-2: #34d399;
    --accent-soft: #0c2636;
    --ok: #34d399;
    --warn: #fb7185;
    --wb-c: #f8fafc;
    --wb-d: #64748b;
    --cyan-c: #38bdf8;
    --cyan-d: #0284c7;
    --em-c: #34d399;
    --em-d: #059669;
    --glow-1: rgba(56, 189, 248, 0.13);
    --glow-2: rgba(52, 211, 153, 0.09);
    --shadow: 0 22px 48px -20px rgba(0, 0, 0, 0.7);
    --nav-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.65);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #080c12;
  --surface: #101620;
  --card: #131b26;
  --ink: #dce5ef;
  --head: #f8fafc;
  --muted: #8b9bb0;
  --rule: #212d3d;
  --faint: #17202c;
  --accent: #38bdf8;
  --accent-2: #34d399;
  --accent-soft: #0c2636;
  --ok: #34d399;
  --warn: #fb7185;
  --wb-c: #f8fafc;
  --wb-d: #64748b;
  --cyan-c: #38bdf8;
  --cyan-d: #0284c7;
  --em-c: #34d399;
  --em-d: #059669;
  --glow-1: rgba(56, 189, 248, 0.13);
  --glow-2: rgba(52, 211, 153, 0.09);
  --shadow: 0 22px 48px -20px rgba(0, 0, 0, 0.7);
  --nav-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.65);
  color-scheme: dark;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
  animation-timing-function: ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 420px at 30% -80px, var(--glow-1), transparent 70%),
    radial-gradient(ellipse 60% 380px at 72% -60px, var(--glow-2), transparent 70%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding-top: 96px;
  scroll-margin-top: 84px;
}

/* ---------------- Floating Pill Navigation ---------------- */
.nav-shell {
  position: sticky;
  top: 14px;
  z-index: 50;
  padding: 0 16px;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  max-width: 960px;
  margin: 0 auto;
  height: 56px;
  padding: 0 10px 0 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--rule);
  box-shadow: var(--nav-shadow);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--head);
  flex: none;
}

.nav-brand:hover {
  text-decoration: none;
}

.nav-brand img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.nav-brand .word {
  font-size: 1.08rem;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: var(--head);
  background: var(--card);
  text-decoration: none;
}

.nav-links a.on {
  color: var(--head);
  background: var(--card);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.theme-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  color: var(--head);
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.theme-btn:hover {
  border-color: var(--accent);
  transform: scale(1.04);
}

.theme-btn svg {
  width: 16px;
  height: 16px;
  display: none;
}

.theme-btn[data-mode="system"] .i-system,
.theme-btn[data-mode="light"] .i-light,
.theme-btn[data-mode="dark"] .i-dark {
  display: block;
}

.nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.15s;
}

.nav-cta:hover {
  text-decoration: none;
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ---------------- 3D Brand Wordmark ---------------- */
.word {
  font-family: 'Unbounded', var(--display);
  font-weight: 900;
  font-size: clamp(2.4rem, 4.6vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline-flex;
  gap: 0.02em;
  padding-bottom: 0.1em;
}

.word span {
  --c: var(--wb-c);
  --d: var(--wb-d);
  color: var(--c);
  text-shadow:
    0 1px 0 var(--d),
    0 2px 0 var(--d),
    0 3px 0 var(--d),
    0 4px 0 var(--d),
    0 8px 14px rgba(15, 23, 32, 0.2);
}

.word .w-cyan {
  --c: var(--cyan-c);
  --d: var(--cyan-d);
}

.word .w-em {
  --c: var(--em-c);
  --d: var(--em-d);
}

.nav-brand .word {
  font-size: 1rem;
  padding-bottom: 0.06em;
}

.nav-brand .word span {
  text-shadow: 0 1px 0 var(--d), 0 2px 0 var(--d), 0 4px 8px rgba(15, 23, 32, 0.16);
}

/* ---------------- Centered Editorial Hero ---------------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 58px 0 42px;
  max-width: 920px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.brand img {
  width: clamp(58px, 6vw, 72px);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(14, 165, 233, 0.18));
}

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.15rem, 4.4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--head);
  max-width: 860px;
}

h1 .hl {
  background: linear-gradient(110deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 16px;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 640px;
}

/* ---------------- Authors & Institution Emblems ---------------- */
.people {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.authors {
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--ink);
  max-width: 860px;
}

.authors span,
.authors a,
.authors a:visited {
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}

.authors a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.people sup {
  font-size: 0.68em;
  color: var(--accent);
  margin-left: 1px;
  font-weight: 700;
}

.orgs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
  margin-top: 18px;
}

.org {
  --slot: 44px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  height: var(--slot);
}

.org sup {
  font-size: 0.7rem;
  line-height: 1;
}

.org img {
  display: block;
  width: auto;
  height: var(--h, 42px);
  align-self: center;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.org:hover img {
  transform: translateY(-2px);
}

.author-note {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .org img.mono-dk { filter: brightness(0) invert(1); }
  :root:not([data-theme="light"]) .org img.bright-dk { filter: brightness(1.65) saturate(1.15); }
  :root:not([data-theme="light"]) .org img.lift-dk { filter: brightness(1.38); }
  :root:not([data-theme="light"]) .org img.hue-dk { filter: invert(1) hue-rotate(180deg) brightness(1.18); }
}

:root[data-theme="dark"] .org img.mono-dk { filter: brightness(0) invert(1); }
:root[data-theme="dark"] .org img.bright-dk { filter: brightness(1.65) saturate(1.15); }
:root[data-theme="dark"] .org img.lift-dk { filter: brightness(1.38); }
:root[data-theme="dark"] .org img.hue-dk { filter: invert(1) hue-rotate(180deg) brightness(1.18); }

/* ---------------- Pill Action Buttons ---------------- */
.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--bg);
  background: var(--head);
  border: 1px solid var(--head);
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--accent) 65%, transparent);
}

.btn.btn-secondary {
  background: var(--surface);
  color: var(--head);
  border-color: var(--rule);
}

.btn.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--card);
}

.btn.soon {
  background: var(--card);
  color: var(--muted);
  border-color: var(--rule);
  cursor: default;
}

.btn.soon:hover {
  transform: none;
}

.btn small {
  font-weight: 600;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--rule);
  margin-left: 2px;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* ---------------- Hero Bento Showcase ---------------- */
.hero-bento {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 18px;
  align-items: stretch;
  margin-top: 8px;
}

.bento-video {
  height: 100%;
}

.bento-video video {
  height: 100%;
  aspect-ratio: 16 / 10;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.stat:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 3vw, 2.55rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--head);
}

.stat strong span {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 0.72em;
}

.stat p {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ---------------- Video Frames ---------------- */
.frame {
  position: relative;
  background: #070a0e;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
}

.frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #070a0e;
}

#simVideo {
  object-fit: contain;
}

/* ---------------- Section Headings ---------------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.section-head .lede {
  margin-bottom: 0;
}

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--head);
  margin-bottom: 10px;
}

.lede {
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 660px;
  margin-bottom: 28px;
}

.sub-h {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.32rem;
  color: var(--head);
  letter-spacing: -0.02em;
  margin: 48px 0 18px;
}

/* ---------------- Segmented Pill Tabs ---------------- */
.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--rule);
  margin-bottom: 22px;
}

.section-head .tabs {
  margin-bottom: 0;
}

.tab {
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 7px 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.tab:hover {
  color: var(--head);
}

.tab.on {
  background: var(--surface);
  color: var(--head);
  box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.14);
}

/* ---------------- Real-World 5-Task Grid ---------------- */
.task-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.video-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-card:nth-child(4),
.video-card:nth-child(5) {
  grid-column: span 3;
}

.video-trigger {
  display: block;
  width: 100%;
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.video-trigger:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.expand-pill {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(8, 12, 18, 0.72);
  color: #ffffff;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.18s ease;
  backdrop-filter: blur(8px);
}

.video-trigger:hover .expand-pill,
.video-trigger:focus-visible .expand-pill {
  opacity: 1;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}

.card-foot h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--head);
}

.rate {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}

/* ---------------- Pair Video Comparisons ---------------- */
.pair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pair-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pair-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--head);
  padding: 0 4px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}

.dot-ok { background: var(--ok); }
.dot-warn { background: var(--warn); }
.dot-accent { background: var(--accent); }

/* ---------------- Method ---------------- */
.method-desc {
  color: var(--ink);
  font-size: 1.02rem;
  max-width: 780px;
  margin-bottom: 22px;
}

.rsi-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
}

.rsi-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rsi-step {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
}

.step-num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--accent);
  padding-top: 2px;
}

.rsi-step h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--head);
  margin-bottom: 3px;
}

.rsi-step p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------------- Simulation ---------------- */
.sim-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.sim-bars h3,
.chart-top h3 {
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--head);
}

.hbar-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.hbar-row {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 0.18s, border-color 0.18s;
}

.hbar-row.on {
  background: var(--card);
  border-color: var(--rule);
}

.hbar-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.hbar-head strong {
  font-family: var(--mono);
  color: var(--head);
}

.hbar-track {
  height: 10px;
  border-radius: 999px;
  background: var(--faint);
  overflow: hidden;
}

.hbar-fill {
  display: block;
  height: 100%;
  width: var(--v);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.hbar-fill.base {
  background: var(--rule);
}

/* ---------------- Results Charts ---------------- */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.chart-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.delta-pill {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}

.mono-readout {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-2);
  white-space: nowrap;
}

.vbar-plot {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  height: 270px;
  padding-top: 28px;
  align-items: end;
  border-bottom: 1.5px solid var(--rule);
}

.vbar-col {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.vbar-val {
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
}

.vbar-col.ours .vbar-val {
  color: var(--head);
  font-size: 0.96rem;
}

.vbar {
  width: min(76%, 54px);
  height: 0;
  border-radius: 8px 8px 0 0;
  background: var(--rule);
  transition: height 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chart-card.in .vbar {
  height: calc(var(--h) * 0.78);
}

.vbar-col.ours .vbar {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--accent) 65%, transparent);
}

.vbar-lbl {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  padding-top: 4px;
  white-space: nowrap;
}

.vbar-col.ours .vbar-lbl {
  color: var(--head);
  font-weight: 700;
}

.curve-wrap {
  width: 100%;
  height: 270px;
}

.curve-wrap svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------------- Abstract & Footer ---------------- */
#paper .links {
  justify-content: flex-start;
}

.abstract-text {
  font-size: 1.03rem;
  line-height: 1.78;
  color: var(--ink);
  max-width: 900px;
}

.footer {
  margin-top: 96px;
  padding: 28px 24px 52px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------------- Lightbox Modal ---------------- */
dialog {
  margin: auto;
  width: min(960px, 92vw);
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--surface);
  color: var(--head);
  padding: 20px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

dialog::backdrop {
  background: rgba(8, 12, 18, 0.76);
  backdrop-filter: blur(8px);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dialog-head h3 {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
}

#dialogClose {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--head);
  cursor: pointer;
  font-size: 1rem;
}

#dialogClose:hover {
  background: var(--card);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 920px) {
  .hero-bento,
  .sim-layout,
  .results-grid,
  .rsi-layout,
  .pair-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 40px;
  }

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

  .video-card,
  .video-card:nth-child(4),
  .video-card:nth-child(5) {
    grid-column: span 1;
  }

  .video-card:nth-child(5) {
    grid-column: span 2;
  }
}

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

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

  .tabs {
    border-radius: 16px;
  }

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

  .video-card:nth-child(5) {
    grid-column: span 1;
  }

  .vbar-lbl {
    font-size: 0.72rem;
  }
}
