:root {
  --bg: #06070d;
  --bg-2: #0b0d18;
  --card: rgba(16, 19, 34, 0.72);
  --card-solid: #10131f;
  --card-hover: rgba(22, 26, 46, 0.85);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-3: rgba(255, 255, 255, 0.24);
  --text: #f4f6ff;
  --muted: #9ea7c2;
  --dim: #6f7894;
  --orange: #ff8a3d;
  --pink: #ff4d8d;
  --violet: #9b7cff;
  --cyan: #36d9ff;
  --green: #3ef0a1;
  --red: #ff5c6c;
  --grad: linear-gradient(100deg, var(--orange), var(--pink) 35%, var(--violet) 68%, var(--cyan));
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --max: 1160px;
  --topbar-h: 64px;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-2: #eef1f7;
  --card: rgba(255, 255, 255, 0.78);
  --card-solid: #ffffff;
  --card-hover: rgba(255, 255, 255, 0.96);
  --line: rgba(20, 27, 45, 0.08);
  --line-2: rgba(20, 27, 45, 0.14);
  --line-3: rgba(20, 27, 45, 0.24);
  --text: #151923;
  --muted: #596176;
  --dim: #7a8294;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 20px);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(155, 124, 255, 0.45);
  color: #fff;
}

a {
  color: inherit;
}

.hidden,
[hidden] {
  display: none !important;
}

code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.88em;
}

/* ---------- Background ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 80% 60% at 70% 0%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 0%, #000 10%, transparent 70%);
}

.bg-beam {
  position: absolute;
  top: -40vmax;
  left: 50%;
  width: 120vmax;
  height: 120vmax;
  margin-left: -60vmax;
  background: conic-gradient(from 180deg at 50% 50%,
      transparent 0deg, rgba(155, 124, 255, 0.16) 40deg, transparent 80deg,
      transparent 160deg, rgba(54, 217, 255, 0.12) 200deg, transparent 240deg,
      transparent 290deg, rgba(255, 77, 141, 0.12) 320deg, transparent 360deg);
  filter: blur(40px);
  opacity: 0.8;
  animation: rotate 60s linear infinite;
  mask-image: radial-gradient(circle, #000 20%, transparent 60%);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 60%);
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.bg-orb-1 {
  width: 520px;
  height: 520px;
  top: -160px;
  right: -120px;
  background: rgba(155, 124, 255, 0.35);
}

.bg-orb-2 {
  width: 420px;
  height: 420px;
  top: 420px;
  left: -220px;
  background: rgba(255, 138, 61, 0.16);
}

/* ---------- Scroll progress ---------- */

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 2px;
}

.progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  box-shadow: 0 0 12px rgba(155, 124, 255, 0.8);
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  padding: 0 max(16px, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid transparent;
  transition: background 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease;
}

.topbar.is-stuck {
  background: rgba(6, 7, 13, 0.72);
  border-color: var(--line);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.topbar-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.topbar-links a {
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 200ms ease, background 200ms ease;
}

.topbar-links a:hover,
.topbar-links a.is-current {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pref-toggle {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  transition: color 200ms ease, background 200ms ease, border-color 200ms ease, transform 250ms var(--ease), box-shadow 200ms ease;
}

.pref-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-3);
  transform: translateY(-1px);
}

.pref-toggle > i {
  width: 16px;
  text-align: center;
  font-size: 14px;
}

.pref-toggle[aria-pressed="true"] {
  color: var(--text);
  border-color: rgba(155, 124, 255, 0.42);
  background: rgba(155, 124, 255, 0.10);
  box-shadow: 0 0 16px -8px rgba(155, 124, 255, 0.7);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  font: 500 14px/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 250ms var(--ease), background 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 300ms ease;
}

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

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--line-3);
}

.btn-solid {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

.btn-solid:hover {
  box-shadow: 0 10px 30px -6px rgba(155, 124, 255, 0.7);
}

/* ---------- Light theme ---------- */

html[data-theme="light"] .bg-dots {
  background-image: radial-gradient(rgba(20, 27, 45, 0.12) 1px, transparent 1.4px);
}

html[data-theme="light"] .bg-dots-hot {
  background-image: radial-gradient(rgba(99, 72, 210, 0.55) 1.2px, transparent 1.8px);
}

html[data-theme="light"] .topbar.is-stuck {
  background: rgba(246, 247, 251, 0.78);
}

html[data-theme="light"] code,
html[data-theme="light"] .stack li,
html[data-theme="light"] .feat-links a,
html[data-theme="light"] .filter:hover,
html[data-theme="light"] .search,
html[data-theme="light"] .tag,
html[data-theme="light"] .pref-toggle {
  background-color: rgba(20, 27, 45, 0.045);
}

html[data-theme="light"] .pref-toggle:hover {
  background: rgba(20, 27, 45, 0.08);
}

html[data-theme="light"] .pref-toggle[aria-pressed="true"] {
  color: #4f36a8;
  background: rgba(155, 124, 255, 0.12);
  border-color: rgba(99, 72, 210, 0.28);
}

html[data-theme="light"] .toolbar {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(20, 27, 45, 0.12);
  box-shadow: 0 20px 40px -24px rgba(52, 58, 79, 0.28);
}

html[data-theme="light"] .filter {
  color: #596176;
}

html[data-theme="light"] .filter:hover {
  color: #151923;
  background: rgba(20, 27, 45, 0.06);
  border-color: rgba(20, 27, 45, 0.08);
}

html[data-theme="light"] .filter.is-active {
  color: #4f36a8;
  background: rgba(155, 124, 255, 0.14);
  border-color: rgba(99, 72, 210, 0.24);
}

html[data-theme="light"] .stack li {
  color: var(--muted);
}

html[data-theme="light"] .term {
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 40px 100px -24px rgba(52, 58, 79, 0.28),
    0 0 0 1px rgba(20, 27, 45, 0.03),
    0 0 80px -24px rgba(155, 124, 255, 0.22);
}

html[data-theme="light"] .term-body {
  color: #343b50;
}

html[data-theme="light"] .term-body .o {
  color: #667087;
}

html[data-theme="light"] .term-body code,
html[data-theme="light"] .demo-row code {
  background: none;
}

html[data-theme="light"] .feat {
  background: rgba(20, 27, 45, 0.10);
  box-shadow: 0 20px 50px -24px rgba(52, 58, 79, 0.26);
}

html[data-theme="light"] .feat::after {
  background:
    radial-gradient(520px circle at var(--mx, 50%) var(--my, -30%), rgba(155, 124, 255, 0.10), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 252, 0.98));
}

html[data-theme="light"] .feat:hover {
  box-shadow: 0 28px 64px -28px rgba(52, 58, 79, 0.34), 0 0 46px -26px rgba(155, 124, 255, 0.42);
}

html[data-theme="light"] .feat h3 {
  color: #151923;
}

html[data-theme="light"] .feat h3 span {
  color: #4f596f;
}

html[data-theme="light"] .feat p {
  color: #505a70;
}

html[data-theme="light"] .feat p strong {
  color: #151923;
}

html[data-theme="light"] .feat-date,
html[data-theme="light"] .feat-demo {
  background: rgba(20, 27, 45, 0.045);
}

html[data-theme="light"] .demo-row {
  background: rgba(20, 27, 45, 0.035);
}

html[data-theme="light"] .feat-links a:hover,
html[data-theme="light"] .proj:hover .proj-go {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

html[data-theme="light"] .era-label span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(20, 27, 45, 0.34);
}

html[data-theme="light"] .era.is-active .era-label span {
  color: var(--text);
  -webkit-text-stroke-color: transparent;
}

html[data-theme="light"] .tag[data-t="agents"] { color: #6548b7; }
html[data-theme="light"] .tag[data-t="rag"] { color: #087d99; }
html[data-theme="light"] .tag[data-t="reasoning"] { color: #a64f12; }
html[data-theme="light"] .tag[data-t="eval"] { color: #a92f62; }
html[data-theme="light"] .tag[data-t="data"] { color: #147a4d; }
html[data-theme="light"] .tag[data-t="dl"] { color: #8a6710; }

/* ---------- Layout ---------- */

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: rise 700ms 100ms var(--ease) both;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: ping 2.2s ease-out infinite;
}

.hero h1 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 128px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.055em;
  animation: rise 900ms 180ms var(--ease) both;
}

.grad {
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 7s linear infinite;
}

.byline {
  margin: 14px 0 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 500;
  animation: rise 800ms 280ms var(--ease) both;
}

.intro-text {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
  animation: rise 800ms 360ms var(--ease) both;
}

.intro-text strong {
  color: var(--text);
  font-weight: 600;
}

.stack {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  animation: rise 800ms 440ms var(--ease) both;
}

.stack li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #d6dcf2;
  font-family: var(--font-mono);
  font-size: 12.5px;
  transition: border-color 200ms ease, background 200ms ease, transform 250ms var(--ease);
}

.stack li:hover {
  transform: translateY(-2px);
  border-color: var(--line-3);
  background: rgba(255, 255, 255, 0.07);
}

.stack i {
  color: var(--violet);
  font-size: 12px;
}

.stack li:nth-child(3n+2) i { color: var(--cyan); }
.stack li:nth-child(3n) i { color: var(--orange); }

.stats {
  margin: 34px 0 0;
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  animation: rise 800ms 520ms var(--ease) both;
}

.stats div {
  display: flex;
  flex-direction: column-reverse;
}

.stats dt {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* Terminal */
.term {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: rgba(10, 12, 22, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 40px 100px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 80px -20px rgba(155, 124, 255, 0.35);
  transform: perspective(1400px) rotateY(-8deg) rotateX(4deg);
  animation: termIn 1100ms 300ms var(--ease) both;
}

.term::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: var(--grad);
  opacity: 0.35;
  filter: blur(22px);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.term-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.term-bar span:nth-child(2) { background: #febc2e; }
.term-bar span:nth-child(3) { background: #28c840; }

.term-bar em {
  margin-left: 10px;
  color: var(--dim);
  font: 400 12px var(--font-mono);
  font-style: normal;
}

.term-body {
  margin: 0;
  padding: 18px 20px 22px;
  overflow-x: auto;
  color: #cfd6ef;
  font: 400 13.5px/1.85 var(--font-mono);
}

.term-body code {
  padding: 0;
  border-radius: 0;
  background: none;
  font: inherit;
}

.term-body .l {
  display: inline-block;
  opacity: 0;
  animation: lineIn 300ms var(--ease) forwards;
}

.term-body .l:nth-child(1) { animation-delay: 900ms; }
.term-body .l:nth-child(2) { animation-delay: 1250ms; }
.term-body .l:nth-child(3) { animation-delay: 1350ms; }
.term-body .l:nth-child(4) { animation-delay: 1450ms; }
.term-body .l:nth-child(5) { animation-delay: 1550ms; }
.term-body .l:nth-child(6) { animation-delay: 2000ms; }
.term-body .l:nth-child(7) { animation-delay: 2350ms; }
.term-body .l:nth-child(8) { animation-delay: 2700ms; }

.term-body b {
  color: var(--green);
  font-weight: 400;
}

.term-body .o {
  color: var(--muted);
}

.term-body i {
  color: var(--cyan);
  font-style: normal;
}

.term-body u {
  text-decoration: none;
  color: var(--orange);
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  vertical-align: -2px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(54, 217, 255, 0.8);
  animation: blink 1s steps(1) infinite;
}

/* ---------- Sections ---------- */

.block {
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
}

.block-head {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  align-items: baseline;
  margin-bottom: 32px;
}

.block-num {
  grid-row: span 2;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--violet);
  padding: 4px 9px;
  border: 1px solid rgba(155, 124, 255, 0.35);
  border-radius: 8px;
  background: rgba(155, 124, 255, 0.08);
  align-self: start;
  margin-top: 8px;
}

.block-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.block-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- Bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feat {
  --glow-o: 0.32;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  transform: perspective(1100px) translateY(var(--lift, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--sc, 1));
  transition: transform 500ms var(--ease), border-color 300ms ease, box-shadow 400ms ease;
}

/* Rotating gradient border on hover */
.feat::before {
  content: '';
  position: absolute;
  inset: -50%;
  z-index: -2;
  background: conic-gradient(from var(--angle, 0deg), transparent 0 60%, var(--violet) 72%, var(--cyan) 80%, var(--pink) 88%, transparent 96%);
  opacity: 0;
  transition: opacity 400ms ease;
  animation: rotate 4s linear infinite;
}

.feat::after {
  content: '';
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 21px;
  background:
    radial-gradient(520px circle at var(--mx, 50%) var(--my, -30%), rgba(255, 255, 255, 0.07), transparent 55%),
    linear-gradient(180deg, #0f1120, #0a0c16);
}

.feat:hover {
  --lift: -4px;
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.8), 0 0 60px -20px rgba(155, 124, 255, 0.5);
}

.feat:hover::before {
  opacity: 1;
}

.feat-glow {
  position: absolute;
  z-index: 0;
  top: -30%;
  right: -20%;
  width: 70%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  filter: blur(60px) saturate(1.6);
  opacity: var(--glow-o);
  pointer-events: none;
  transition: opacity 500ms ease, transform 800ms var(--ease);
}

.feat:hover .feat-glow {
  opacity: 0.55;
  transform: scale(1.15);
}

.feat > *:not(.feat-glow) {
  position: relative;
  z-index: 1;
}

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

.feat-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line-2), 0 12px 30px -8px rgba(0, 0, 0, 0.6);
  transition: transform 500ms var(--ease);
}

.feat:hover .feat-logo {
  transform: rotate(-6deg) scale(1.06);
}

.feat-date {
  padding: 5px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  white-space: nowrap;
}

.feat-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feat h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.feat h3 span,
.proj h3 span {
  color: var(--muted);
  font-weight: 500;
}

.feat p {
  margin: 0 0 12px;
  color: #b9c1db;
  font-size: 14.5px;
  line-height: 1.65;
}

.feat p strong {
  color: var(--text);
  font-weight: 600;
}

.feat-links {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feat-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 250ms var(--ease);
}

.feat-links a:hover {
  transform: translateY(-1px);
  color: #07080f;
  background: #fff;
  border-color: #fff;
}

/* Big flagship card */
.feat-xl {
  grid-column: span 2;
  grid-row: span 2;
  padding: 32px;
  --glow-o: 0.42;
}

.feat-xl .feat-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.feat-xl h3 {
  font-size: clamp(26px, 3vw, 34px);
}

.feat-xl p {
  max-width: 640px;
  font-size: 15.5px;
}

.feat-demo {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 10px 0 18px;
  padding: 14px 16px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(4, 5, 12, 0.6);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.demo-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 2px;
  border-bottom: 1px dashed var(--line-2);
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  opacity: 0;
  translate: -8px 0;
  transition: opacity 500ms var(--ease), translate 500ms var(--ease), background 400ms ease;
}

.feat-demo.play .demo-row {
  opacity: 1;
  translate: 0 0;
}

.feat-demo.play .demo-row:nth-of-type(2) { transition-delay: 150ms; }
.feat-demo.play .demo-row:nth-of-type(3) { transition-delay: 450ms; }
.feat-demo.play .demo-row:nth-of-type(4) { transition-delay: 750ms; }
.feat-demo.play .demo-row:nth-of-type(5) { transition-delay: 1050ms; }
.feat-demo.play .demo-row:nth-of-type(6) { transition-delay: 1350ms; }

.demo-row code {
  padding: 0;
  background: none;
  color: #d6dcf2;
  font-size: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-row b {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.demo-row .ok {
  color: var(--green);
  background: rgba(62, 240, 161, 0.1);
  border: 1px solid rgba(62, 240, 161, 0.3);
}

.demo-row .bad {
  color: var(--red);
  background: rgba(255, 92, 108, 0.1);
  border: 1px solid rgba(255, 92, 108, 0.35);
}

.demo-row:has(.bad) {
  background: rgba(255, 92, 108, 0.06);
}

.demo-row:has(.bad) code {
  color: #ffb3bb;
  text-decoration: line-through;
  text-decoration-color: rgba(255, 92, 108, 0.6);
}

.demo-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 60px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(155, 124, 255, 0.12) 70%, rgba(155, 124, 255, 0.5) 98%, transparent);
  animation: scan 4.5s cubic-bezier(.5, 0, .5, 1) infinite;
}

.demo-note {
  position: absolute;
  right: 12px;
  bottom: 8px;
  color: var(--dim);
  font-size: 10.5px;
}

/* Metric card */
.feat-metric {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  margin-bottom: 14px;
}

.feat-metric strong {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.feat-metric > span {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--cyan);
}

.feat-metric em {
  grid-column: 1 / -1;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

/* Wide card */
.feat-wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
}

.feat-wide .feat-top {
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
}

.feat-wide-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
}

.feat-wide .feat-glow {
  top: -80%;
  right: 10%;
  width: 40%;
}

/* ---------- Git log ---------- */

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

.gitlog::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(var(--violet), var(--cyan));
  opacity: 0.5;
}

.gitlog li {
  position: relative;
  display: grid;
  grid-template-columns: 46px 100px minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px 20px 16px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  transition: border-color 250ms ease, background 250ms ease, transform 400ms var(--ease);
}

.gitlog li:hover {
  border-color: var(--line-2);
  background: var(--card-hover);
  transform: translateX(4px);
}

.gitlog-node {
  justify-self: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--violet);
  box-shadow: 0 0 14px rgba(155, 124, 255, 0.7);
}

.gitlog li:nth-child(2) .gitlog-node {
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(54, 217, 255, 0.7);
}

.gitlog time {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.gitlog-repo {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 14.5px;
}

.gitlog-repo a {
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.gitlog-repo a:hover {
  color: var(--cyan);
}

.gitlog-prs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gitlog-prs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(62, 240, 161, 0.35);
  border-radius: 999px;
  background: rgba(62, 240, 161, 0.08);
  color: var(--green);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  transition: background 200ms ease, color 200ms ease;
}

.gitlog-prs a:hover {
  background: var(--green);
  color: #06120c;
}

.gitlog-prs i {
  font-size: 11px;
}

.gitlog-skills {
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- Archive toolbar ---------- */

.toolbar {
  position: sticky;
  top: calc(var(--topbar-h) + 8px);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: rgba(10, 12, 22, 0.92);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
}

.filters {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter {
  flex: none;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: 500 13.5px/1 var(--font-body);
  cursor: pointer;
  transition: color 200ms ease, background 200ms ease, border-color 200ms ease;
}

.filter:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.filter.is-active {
  color: #07080f;
  background: #fff;
}

.filter sup {
  margin-left: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.6;
}

.search {
  flex: 0 0 240px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px 0 12px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--dim);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.search:focus-within {
  border-color: rgba(155, 124, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(155, 124, 255, 0.2);
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 400 14px var(--font-body);
}

.search input::placeholder {
  color: var(--dim);
}

.search input::-webkit-search-cancel-button {
  filter: invert(1) opacity(0.5);
}

.search kbd {
  padding: 2px 7px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: var(--dim);
  font: 400 11px var(--font-mono);
}

.result-count {
  margin: 14px 2px 0;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.result-count:empty {
  display: none;
}

/* ---------- Timeline ---------- */

.timeline {
  --fill: 0;
  position: relative;
  margin-top: 28px;
}

.timeline::before,
.timeline::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 168px;
  width: 2px;
  border-radius: 2px;
}

.timeline::before {
  background: var(--line);
}

.timeline::after {
  background: linear-gradient(var(--orange), var(--pink), var(--violet), var(--cyan));
  transform-origin: top;
  transform: scaleY(var(--fill));
  box-shadow: 0 0 12px rgba(155, 124, 255, 0.6);
}

.era {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 36px;
  padding-bottom: 36px;
}

.era-label {
  position: sticky;
  top: calc(var(--topbar-h) + 92px);
  align-self: start;
  text-align: right;
  display: grid;
  gap: 4px;
}

.era-label span {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
  transition: color 400ms ease, -webkit-text-stroke-color 400ms ease;
}

.era.is-active .era-label span {
  color: #fff;
  -webkit-text-stroke-color: transparent;
}

.era-label-text span {
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.era-label small {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.era-list {
  display: grid;
  gap: 12px;
  counter-reset: none;
}

.proj {
  position: relative;
  display: grid;
  grid-template-columns: 52px 50px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 18px 20px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  transition: border-color 250ms ease, background 250ms ease, transform 450ms var(--ease), box-shadow 400ms ease;
}

/* Timeline node */
.proj::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 32px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-3);
  transition: border-color 250ms ease, box-shadow 250ms ease, background 250ms ease;
}

.proj:hover {
  border-color: var(--line-2);
  background: var(--card-hover);
  transform: translateX(6px);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.8);
}

.proj:hover::before {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.proj-num {
  padding-top: 13px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: right;
  transition: color 250ms ease;
}

.proj:hover .proj-num {
  color: var(--text);
}

.proj-logo {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line-2);
  transition: transform 450ms var(--ease);
}

.proj:hover .proj-logo {
  transform: scale(1.08) rotate(-4deg);
}

.proj-mono {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(155, 124, 255, 0.22), rgba(54, 217, 255, 0.12));
  color: #dcd3ff;
  font-size: 20px;
}

.proj:nth-child(3n+2) .proj-mono {
  background: linear-gradient(135deg, rgba(54, 217, 255, 0.22), rgba(62, 240, 161, 0.1));
  color: #c7f4ff;
}

.proj:nth-child(3n) .proj-mono {
  background: linear-gradient(135deg, rgba(255, 138, 61, 0.24), rgba(255, 77, 141, 0.12));
  color: #ffd9c2;
}

.proj-body {
  min-width: 0;
}

.proj h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.proj h3 a {
  text-decoration: none;
}

/* Make the whole card clickable */
.proj h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.proj h3 a:focus-visible {
  outline: none;
}

.proj:focus-within {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.proj p {
  margin: 6px 0 0;
  color: #aeb6d0;
  font-size: 14.5px;
  line-height: 1.6;
}

.proj-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.proj-meta time {
  margin-right: 6px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 12px;
}

.tag {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.tag[data-t="agents"] { color: #c9b8ff; background: rgba(155, 124, 255, 0.12); }
.tag[data-t="rag"] { color: #9fe9ff; background: rgba(54, 217, 255, 0.1); }
.tag[data-t="reasoning"] { color: #ffc49d; background: rgba(255, 138, 61, 0.12); }
.tag[data-t="eval"] { color: #ffb0cc; background: rgba(255, 77, 141, 0.11); }
.tag[data-t="data"] { color: #9df5c9; background: rgba(62, 240, 161, 0.1); }
.tag[data-t="dl"] { color: #ffe08a; background: rgba(255, 210, 74, 0.1); }

.proj-go {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--dim);
  font-size: 12px;
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 250ms ease, transform 400ms var(--ease), background 200ms ease, color 200ms ease;
}

.proj:hover .proj-go {
  opacity: 1;
  transform: none;
  background: #fff;
  color: #07080f;
  border-color: #fff;
}

.proj:hover .proj-body {
  padding-right: 34px;
}

/* Filtering */
.proj.is-out,
.era.is-out {
  display: none;
}

.empty {
  margin-top: 28px;
  padding: 48px 20px;
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 1px dashed var(--line-2);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.empty i {
  font-size: 28px;
  color: var(--violet);
}

.empty p {
  margin: 0 0 8px;
}

/* ---------- Footer ---------- */

.footer {
  padding: 24px 0 48px;
}

.footer-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid var(--line-2);
  border-radius: 26px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 120% at 50% 120%, rgba(155, 124, 255, 0.35), transparent 60%),
    var(--card);
}

.footer-cta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
}

.footer-cta p {
  margin: 8px 0 22px;
  color: var(--muted);
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.footer-actions .btn {
  padding: 11px 18px;
  font-size: 15px;
}

.copyright {
  margin: 24px 0 0;
  color: var(--dim);
  font-size: 13px;
  text-align: center;
}

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  translate: 0 22px;
  transition: opacity 700ms var(--ease), translate 700ms var(--ease);
  transition-delay: var(--d, 0ms);
}

.js .reveal.in {
  opacity: 1;
  translate: 0 0;
}

/* ---------- Animation preference ---------- */

.animations-off {
  scroll-behavior: auto;
}

.animations-off *,
.animations-off *::before,
.animations-off *::after {
  animation: none !important;
  transition-duration: 0.001ms !important;
  transition-delay: 0ms !important;
}

.animations-off .reveal,
.animations-off .demo-row {
  opacity: 1 !important;
  translate: 0 0 !important;
}

.animations-off .cursor-glow,
.animations-off .bg-dots-hot {
  display: none !important;
}

.animations-off .bg-dots,
.animations-off .bg-dots-hot {
  background-position: 0 0 !important;
}

.animations-off .bg-beam {
  rotate: 0deg !important;
  transform: none !important;
}

.animations-off .hero {
  opacity: 1 !important;
}

.animations-off .hero [data-depth],
.animations-off .btn,
.animations-off .feat-links a,
.animations-off .hero-kicker,
.animations-off .gitlog-prs a {
  translate: 0 0 !important;
}

.animations-off .term-wrap {
  transform: none !important;
}

.animations-off .feat {
  --rx: 0deg !important;
  --ry: 0deg !important;
  --gx: 0px !important;
  --gy: 0px !important;
  --lift: 0px !important;
  --sc: 1 !important;
}

.animations-off .feat-glow {
  translate: 0 0 !important;
  transform: none !important;
}

.animations-off .block-head h2 {
  translate: 0 0 !important;
  opacity: 1 !important;
}

.animations-off .block-num {
  rotate: 0deg !important;
}

.animations-off .gitlog li,
.animations-off .footer-cta {
  scale: 1 !important;
  opacity: 1 !important;
}

.animations-off .proj:hover,
.animations-off .stack li:hover,
.animations-off .btn:hover,
.animations-off .pref-toggle:hover,
.animations-off .feat-links a:hover,
.animations-off .feat:hover .feat-logo {
  transform: none !important;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ---------- Keyframes ---------- */

@keyframes rotate {
  to { transform: rotate(360deg); }
}

@keyframes sheen {
  to { background-position: -200% 0; }
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(62, 240, 161, 0.55); }
  80%, 100% { box-shadow: 0 0 0 9px rgba(62, 240, 161, 0); }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes termIn {
  from { opacity: 0; transform: perspective(1400px) rotateY(-24deg) rotateX(10deg) translateY(30px); }
  to { opacity: 1; transform: perspective(1400px) rotateY(-8deg) rotateX(4deg); }
}

@keyframes scan {
  0% { transform: translateY(-60px); }
  100% { transform: translateY(420px); }
}

@keyframes lineIn {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .term {
    max-width: 560px;
    transform: none;
    animation-name: rise;
  }

  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feat-xl {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .feat-wide-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .gitlog li {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 6px 12px;
  }

  .gitlog li > :not(.gitlog-node) {
    grid-column: 2;
  }

  .gitlog-node {
    grid-row: 1 / span 4;
    align-self: start;
    margin-top: 4px;
  }
}

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

  .topbar-actions {
    margin-left: auto;
  }

  .topbar .btn span {
    display: none;
  }

  .topbar .btn {
    padding: 9px 11px;
  }

  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .feat,
  .feat-xl {
    padding: 22px;
  }

  .feat-wide {
    flex-direction: column;
  }

  .feat-wide .feat-top {
    flex-direction: row;
    align-items: center;
    width: 100%;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .search {
    flex-basis: auto;
  }

  .search kbd {
    display: none;
  }

  .timeline::before,
  .timeline::after {
    left: 7px;
  }

  .era {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding-left: 30px;
  }

  .era-label {
    position: static;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .era-label span {
    font-size: 34px;
    color: #fff;
    -webkit-text-stroke-color: transparent;
  }

  .era-label-text span {
    font-size: 22px;
  }

  .era-label-text br {
    display: none;
  }

  .proj {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 16px;
    gap: 14px;
  }

  .proj::before {
    left: -27px;
  }

  .proj-num {
    display: none;
  }

  .proj-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .proj-go {
    display: none;
  }

  .proj:hover {
    transform: none;
  }

  .proj:hover .proj-body {
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .topbar {
    gap: 10px;
    padding-inline: 12px;
  }

  .brand > span {
    display: none;
  }

  .topbar-actions {
    gap: 5px;
  }

  .stats {
    gap: 22px;
  }

  .stats dd {
    font-size: 28px;
  }

  .term-body {
    font-size: 12px;
    padding: 14px 14px 18px;
  }

  .feat-metric strong {
    font-size: 54px;
  }
}

@media (hover: none) {
  .feat:hover {
    --lift: 0px;
  }

  .proj:hover,
  .gitlog li:hover {
    transform: none;
  }
}

/* ---------- Mouse + scroll motion ---------- */

.bg-dots-hot {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(155, 124, 255, 0.9) 1.2px, transparent 1.8px);
  background-size: 26px 26px;
  mask-image: radial-gradient(240px circle at var(--cx, -999px) var(--cy, -999px), #000, transparent 70%);
  -webkit-mask-image: radial-gradient(240px circle at var(--cx, -999px) var(--cy, -999px), #000, transparent 70%);
}

.bg-dots,
.bg-dots-hot {
  background-position: 0 var(--dots-y, 0px);
}

.bg-beam {
  rotate: var(--beam, 0deg);
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  width: 600px;
  height: 600px;
  margin: -300px 0 0 -300px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(155, 124, 255, 0.14), rgba(54, 217, 255, 0.05) 40%, transparent 68%);
  transform: translate3d(var(--cx, 50vw), var(--cy, 30vh), 0);
  opacity: 0;
  transition: opacity 600ms ease;
}

.cursor-glow.on {
  opacity: 1;
}

.term-wrap {
  transform: perspective(1200px) translateY(var(--ty, 0px)) rotateX(var(--trx, 0deg)) rotateY(var(--try, 0deg));
  transform-style: preserve-3d;
  will-change: transform;
}

.hero [data-depth],
.btn,
.feat-links a,
.hero-kicker {
  will-change: translate;
}

.feat-glow {
  translate: var(--gx, 0px) var(--gy, 0px);
}

.proj {
  background:
    radial-gradient(420px circle at var(--mx, -500px) var(--my, -500px), rgba(155, 124, 255, 0.13), transparent 60%),
    var(--card);
}

.proj:hover {
  background:
    radial-gradient(420px circle at var(--mx, -500px) var(--my, -500px), rgba(155, 124, 255, 0.16), transparent 60%),
    var(--card-hover);
}

.block-head h2 {
  will-change: translate;
}

.era-list {
  transform-origin: center;
  will-change: transform;
}

/* ---------- Custom scrollbars ---------- */

html {
  scrollbar-width: thin;
  scrollbar-color: rgba(155, 124, 255, 0.55) transparent;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff8a3d, #ff4d8d 35%, #9b7cff 70%, #36d9ff) padding-box;
  min-height: 48px;
}

::-webkit-scrollbar-thumb:hover {
  border-width: 2px;
  filter: brightness(1.2);
}

::-webkit-scrollbar-corner {
  background: transparent;
}
