:root {
  --ink-950: #04121B;
  --ink-850: #0A1E2B;
  --ink-700: #14313F;
  --track-600: #0FA36B;
  --track-400: #34D399;
  --cyan-400: #35E7E0;
  --flare-500: #FF7A2F;
  --text-100: #EAF6F2;
  --text-300: #8FA9B2;
  --paper-050: #F1FBF6;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Roboto Mono", "Courier New", monospace;
  --bar-h: 72px;
  --rail-w: 96px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --edge: clamp(16px, 2.4vw, 28px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-top: var(--bar-h);
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(15, 163, 107, 0.17), transparent 62%),
    radial-gradient(860px 480px at -10% 18%, rgba(53, 231, 224, 0.08), transparent 62%),
    var(--ink-950);
  background-attachment: fixed;
  color: var(--text-100);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: var(--cyan-400);
  color: var(--ink-950);
}

::selection {
  background: var(--cyan-400);
  color: var(--ink-950);
}

a {
  color: var(--track-400);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--cyan-400);
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--text-100);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

ul,
ol {
  padding-left: 1.2em;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--cyan-400);
  color: var(--ink-950);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--paper-050);
  outline-offset: 2px;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
  border-radius: 8px;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.container {
  width: min(100% - (var(--edge) * 2), 1280px);
  margin-inline: auto;
}

main {
  min-height: 50vh;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* Header frame */
.site-header {
  --bar-h: 72px;
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
}

.site-header[data-condensed] {
  --bar-h: 56px;
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  height: var(--bar-h);
  padding: 0 var(--edge);
  border-bottom: 1px solid var(--ink-700);
  background: linear-gradient(180deg, rgba(4, 18, 27, 0.97), rgba(4, 18, 27, 0.84));
  backdrop-filter: blur(14px);
  transition: height 220ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--text-100);
  text-decoration: none;
}

.brand:hover {
  color: var(--text-100);
}

.brand__mark {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid rgba(53, 231, 224, 0.38);
  border-radius: 12px;
  background:
    linear-gradient(140deg, var(--track-600) 0 44%, var(--ink-850) 44% 55%, var(--cyan-400) 55% 100%);
  box-shadow: 0 0 0 3px rgba(53, 231, 224, 0.07);
  transition: width 220ms ease, height 220ms ease, border-radius 220ms ease;
}

.brand__mark::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--flare-500);
  box-shadow: 0 0 0 3px rgba(255, 122, 47, 0.16);
}

.brand__text {
  display: grid;
  gap: 4px;
  line-height: 1;
}

.brand__word {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  transition: font-size 220ms ease;
}

.brand__meta {
  color: var(--cyan-400);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-header[data-condensed] .brand__word {
  font-size: 18px;
}

.site-header[data-condensed] .brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.site-header[data-condensed] .brand__meta {
  opacity: 0;
  transform: translateY(-3px);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  min-width: 0;
}

.timing-entry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(53, 231, 224, 0.45);
  border-radius: var(--radius-pill);
  background: rgba(53, 231, 224, 0.08);
  color: var(--text-100);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.timing-entry:hover {
  background: rgba(53, 231, 224, 0.16);
  border-color: var(--cyan-400);
  color: var(--text-100);
  transform: translateY(-1px);
}

.timing-entry__dot {
  display: block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--flare-500);
  box-shadow: 0 0 0 4px rgba(255, 122, 47, 0.14);
  animation: timing-pulse 2200ms ease-in-out infinite;
}

.timing-entry__label {
  display: block;
  line-height: 1;
}

.timing-entry__arrow {
  color: var(--cyan-400);
  font-size: 12px;
  line-height: 1;
}

@keyframes timing-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 4px rgba(255, 122, 47, 0.14);
  }
  50% {
    opacity: 0.58;
    box-shadow: 0 0 0 8px rgba(255, 122, 47, 0.03);
  }
}

.watch-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-pill);
  background: var(--ink-850);
  color: var(--text-300);
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 180ms ease, color 180ms ease;
}

.watch-count:hover {
  border-color: var(--cyan-400);
  color: var(--text-100);
}

.watch-count__num {
  color: var(--flare-500);
  font-size: 13px;
  font-weight: 800;
}

.watch-count__label {
  display: block;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--track-600);
  color: var(--text-100);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.header-cta:hover {
  background: var(--track-400);
  color: var(--ink-950);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgba(53, 231, 224, 0.4);
  border-radius: 14px;
  background: rgba(53, 231, 224, 0.08);
  color: var(--cyan-400);
  transition: background 180ms ease, border-color 180ms ease;
}

.nav-toggle:hover {
  background: rgba(53, 231, 224, 0.16);
  border-color: var(--cyan-400);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 200ms ease, opacity 160ms ease;
}

.site-header[data-open] .nav-toggle {
  background: var(--track-600);
  border-color: var(--track-400);
  color: var(--text-100);
}

.site-header[data-open] .nav-toggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header[data-open] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-header[data-open] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.scroll-meter {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  overflow: hidden;
  background: rgba(20, 49, 63, 0.6);
  pointer-events: none;
}

.scroll-meter__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--track-600), var(--cyan-400), var(--flare-500));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* Left rail navigation */
.site-nav {
  position: fixed;
  top: var(--bar-h);
  bottom: 0;
  left: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: var(--rail-w);
  padding: 20px 0 18px;
  overflow-y: auto;
  border-right: 1px solid var(--ink-700);
  background: linear-gradient(180deg, rgba(10, 30, 43, 0.99), rgba(4, 18, 27, 0.99));
  scrollbar-width: thin;
  scrollbar-color: var(--ink-700) transparent;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0 12px;
  list-style: none;
}

.nav-list li {
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 72px;
  padding: 8px 4px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--text-300);
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.nav-link:hover {
  border-color: rgba(53, 231, 224, 0.28);
  background: rgba(53, 231, 224, 0.08);
  color: var(--cyan-400);
}

.nav-link__index {
  color: var(--text-300);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  transition: color 180ms ease;
}

.nav-link__label {
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.nav-link[aria-current="page"] {
  border-color: var(--track-400);
  background: var(--track-600);
  color: var(--text-100);
  box-shadow: 0 10px 24px rgba(15, 163, 107, 0.28);
}

.nav-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 6px;
  width: 3px;
  height: 18px;
  border-radius: 3px;
  background: var(--flare-500);
  transform: translateY(-50%);
}

.nav-link[aria-current="page"] .nav-link__index {
  color: rgba(234, 246, 242, 0.82);
}

.nav-note {
  margin: auto 0 4px;
  align-self: center;
  color: rgba(143, 169, 178, 0.75);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

/* Footer */
.site-footer {
  margin-top: clamp(48px, 8vw, 96px);
  padding: clamp(48px, 7vw, 80px) 0 24px;
  overflow: hidden;
  border-top: 1px solid var(--ink-700);
  background:
    radial-gradient(720px 300px at 92% 0%, rgba(15, 163, 107, 0.15), transparent 70%),
    linear-gradient(180deg, rgba(10, 30, 43, 0.94), var(--ink-950) 66%);
}

.footer-inner {
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  gap: clamp(24px, 4vw, 48px);
}

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

.brand--footer .brand__word {
  font-size: 24px;
}

.footer-copy {
  max-width: 30ch;
  margin: 18px 0 12px;
  color: var(--text-300);
  font-size: 14px;
  line-height: 1.75;
}

.footer-legal {
  margin: 0;
  color: rgba(143, 169, 178, 0.8);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.footer-col {
  min-width: 0;
}

.footer-col--contact {
  min-width: 0;
}

.footer-col__title {
  margin: 0 0 14px;
  color: var(--cyan-400);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-link {
  display: inline-block;
  width: fit-content;
  border-bottom: 1px solid transparent;
  color: var(--text-300);
  font-size: 14px;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease;
}

.footer-link:hover {
  border-color: var(--track-400);
  color: var(--text-100);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-item {
  display: grid;
  gap: 2px;
}

.contact-label {
  color: var(--text-300);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-value {
  color: var(--text-100);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.footer-note {
  margin: 16px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--track-600);
  color: var(--text-300);
  font-size: 12px;
  line-height: 1.65;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 20px;
  border-top: 1px solid var(--ink-700);
  color: var(--text-300);
  font-size: 12px;
}

.footer-sign {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.footer-bottom__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom__links a {
  color: var(--text-300);
  text-decoration: underline;
  text-decoration-color: var(--ink-700);
  text-underline-offset: 4px;
}

.footer-bottom__links a:hover {
  color: var(--cyan-400);
  text-decoration-color: var(--cyan-400);
}

/* Typography and editorial layout */
.display-title {
  margin: 0 0 20px;
  font-size: clamp(44px, 6vw, 92px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 34ch;
  margin: 0;
  color: var(--text-300);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--cyan-400);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--track-400);
}

.annotation {
  margin: 0;
  color: var(--text-300);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.annotation--vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.2em;
}

.section {
  position: relative;
  padding-block: clamp(56px, 8vw, 112px);
}

.section--narrow .container {
  max-width: 880px;
}

.section--panel {
  border-block: 1px solid var(--ink-700);
  background: var(--ink-850);
}

.section--paper {
  background: var(--paper-050);
  color: var(--ink-950);
}

.section--paper h1,
.section--paper h2,
.section--paper h3,
.section--paper h4 {
  color: var(--ink-950);
}

.section--paper .lede,
.section--paper .annotation,
.section--paper .panel__meta {
  color: #40575F;
}

.section--paper a {
  color: var(--track-600);
}

.section__head {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.section__title {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.span-7 {
  grid-column: span 7;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: span 12;
}

.divider {
  width: 100%;
  height: 1px;
  margin-block: clamp(24px, 4vw, 40px);
  border: 0;
  background: var(--ink-700);
}

/* Common buttons and chips */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.btn--primary {
  background: var(--track-600);
  color: var(--text-100);
}

.btn--primary:hover {
  background: var(--track-400);
  color: var(--ink-950);
}

.btn--ghost {
  border-color: rgba(53, 231, 224, 0.48);
  background: rgba(53, 231, 224, 0.06);
  color: var(--text-100);
}

.btn--ghost:hover {
  border-color: var(--cyan-400);
  background: rgba(53, 231, 224, 0.14);
  color: var(--text-100);
}

.btn--flare {
  background: var(--flare-500);
  color: var(--ink-950);
}

.btn--flare:hover {
  background: #FF9A5E;
  color: var(--ink-950);
}

.chip,
.badge,
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chip {
  border: 1px solid var(--ink-700);
  background: var(--ink-850);
  color: var(--text-300);
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.chip:hover {
  border-color: rgba(53, 231, 224, 0.5);
  color: var(--text-100);
}

.chip[aria-pressed="true"] {
  border-color: var(--track-400);
  background: var(--track-600);
  color: var(--text-100);
}

.badge {
  border: 1px solid rgba(53, 231, 224, 0.36);
  background: rgba(53, 231, 224, 0.1);
  color: var(--cyan-400);
}

.tag {
  border: 1px solid var(--ink-700);
  background: rgba(4, 18, 27, 0.4);
  color: var(--text-300);
  letter-spacing: 0.08em;
}

/* Panels, topic boards and data components */
.panel {
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-lg);
  background: var(--ink-850);
}

.panel--flush {
  padding: 0;
  overflow: hidden;
}

.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.panel__title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
}

.panel__meta {
  margin: 0;
  color: var(--text-300);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.08em;
}

.topic-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: clamp(20px, 2.8vw, 28px);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(15, 163, 107, 0.08), transparent 42%),
    var(--ink-850);
  transition: border-color 180ms ease, transform 180ms ease;
}

.topic-card:hover {
  border-color: rgba(53, 231, 224, 0.48);
  transform: translateY(-2px);
}

.topic-card__summary {
  margin: 0;
  color: var(--text-100);
  font-size: 16px;
  line-height: 1.72;
}

.topic-card__bounds {
  margin: 0;
  padding: 8px 0 8px 12px;
  border-left: 2px solid var(--track-600);
  color: var(--text-300);
  font-size: 12px;
  line-height: 1.65;
}

.topic-card__terms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.topic-card__more {
  width: fit-content;
  color: var(--cyan-400);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-transform: uppercase;
}

.stat {
  padding-left: 14px;
  border-left: 3px solid var(--track-600);
}

.stat__value {
  display: block;
  color: var(--text-100);
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.stat__label {
  display: block;
  margin-top: 4px;
  color: var(--text-300);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--ink-700);
  border-radius: 16px;
}

.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--ink-700);
}

.data-table th {
  background: var(--ink-850);
  color: var(--text-300);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.data-table td {
  color: var(--text-100);
}

.data-table tbody tr:hover {
  background: rgba(53, 231, 224, 0.05);
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Breadcrumbs */
.breadcrumbs {
  margin-bottom: 20px;
  color: var(--text-300);
  font-size: 12px;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "›";
  color: var(--ink-700);
}

.breadcrumbs__link {
  color: var(--text-300);
  text-decoration: none;
}

.breadcrumbs__link:hover {
  color: var(--cyan-400);
}

/* Image container base */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 90% at 18% 12%, rgba(53, 231, 224, 0.14), transparent 58%),
    linear-gradient(135deg, var(--ink-850), var(--ink-950));
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(115deg, transparent 0 38px, rgba(53, 231, 224, 0.08) 38px 40px);
  pointer-events: none;
}

.media-frame::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(15, 163, 107, 0.22));
  clip-path: polygon(0 100%, 100% 34%, 100% 100%);
  pointer-events: none;
}

.media-frame img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide {
  aspect-ratio: 21 / 9;
}

.media-frame--tall {
  aspect-ratio: 3 / 4;
}

.media-frame--square {
  aspect-ratio: 1 / 1;
}

.media-frame__label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid rgba(53, 231, 224, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(4, 18, 27, 0.72);
  color: var(--text-100);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

/* Reveal choreography */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}

.reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 500ms ease,
    transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Responsive */
@media (min-width: 981px) {
  body {
    padding-left: var(--rail-w);
  }
}

@media (max-width: 1040px) {
  .watch-count {
    display: none;
  }
}

@media (max-width: 980px) {
  :root {
    --bar-h: 64px;
    --rail-w: 0px;
  }

  .site-header {
    --bar-h: 64px;
  }

  .site-header[data-condensed] {
    --bar-h: 56px;
  }

  body {
    padding-left: 0;
  }

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

  .site-nav {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 95;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: auto;
    max-height: min(72vh, 560px);
    padding: 14px;
    overflow-y: auto;
    border: 1px solid rgba(53, 231, 224, 0.45);
    border-radius: 26px;
    background: rgba(10, 30, 43, 0.98);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    transform: translateY(calc(100% + 28px));
    opacity: 0;
    visibility: hidden;
    transition:
      transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
      opacity 200ms ease,
      visibility 200ms ease;
  }

  .site-header[data-open] .site-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
  }

  .nav-link {
    flex-direction: row;
    gap: 8px;
    min-height: 0;
    padding: 10px 14px;
    border-color: var(--ink-700);
    border-radius: var(--radius-pill);
    background: rgba(4, 18, 27, 0.62);
  }

  .nav-link__label {
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: 0.06em;
    writing-mode: horizontal-tb;
    text-orientation: initial;
  }

  .nav-link__index {
    font-size: 10px;
  }

  .nav-link[aria-current="page"]::before {
    display: none;
  }

  .nav-note {
    display: none;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

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

  .span-4,
  .span-5,
  .span-7,
  .span-8 {
    grid-column: span 12;
  }

  .display-title {
    font-size: clamp(40px, 10vw, 64px);
  }
}

@media (max-width: 640px) {
  .header-bar {
    gap: 8px;
    padding-inline: 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand__mark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .brand__word {
    font-size: 18px;
  }

  .brand__meta {
    display: none;
  }

  .timing-entry {
    gap: 6px;
    padding: 8px 10px;
    font-size: 11px;
  }

  .timing-entry__arrow {
    display: none;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel,
  .topic-card {
    border-radius: var(--radius-md);
  }

  .media-frame {
    border-radius: var(--radius-md);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .timing-entry__dot {
    animation: none;
  }

  .scroll-meter__fill {
    transition: none;
  }
}
