:root {
  color-scheme: dark;
  --ink: #f8f4e8;
  --muted: #c4bdad;
  --soft: #e2d7c2;
  --paper: #0c0f10;
  --panel: #151a1b;
  --panel-strong: #1d2424;
  --line: rgba(248, 244, 232, 0.16);
  --ember: #ff6f4f;
  --gold: #f5c45b;
  --mint: #6de1a6;
  --blue: #68b7ff;
  --violet: #bd92ff;
  --shadow: 0 28px 100px rgba(0, 0, 0, 0.42);
  --mouse-x: 50%;
  --mouse-y: 18%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(109, 225, 166, 0.16), transparent 23rem),
    linear-gradient(135deg, rgba(255, 111, 79, 0.12), transparent 34rem),
    linear-gradient(225deg, rgba(104, 183, 255, 0.14), transparent 32rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
}

body::before {
  background-image:
    linear-gradient(rgba(248, 244, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 244, 232, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

body::after {
  z-index: -1;
  opacity: 0.46;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 7px
    );
  mix-blend-mode: screen;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(109, 225, 166, 0.82);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 12px;
  color: #07100d;
  background: var(--gold);
  border-radius: 8px;
  font-weight: 900;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 76px);
  background: rgba(12, 15, 16, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px);
}

.brand,
.brand-copy,
.nav,
.hero-actions,
.traverse-actions,
.contact-actions,
.site-footer,
.project-meta,
.console-actions,
.ticker-track,
.mode-button,
.filter-button,
.button {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #07100d;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), transparent 34%),
    linear-gradient(135deg, var(--mint), var(--gold));
  border: 1px solid rgba(248, 244, 232, 0.22);
  border-radius: 8px;
  box-shadow: 0 0 34px rgba(109, 225, 166, 0.22);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
}

.brand-copy {
  align-items: flex-start;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav {
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
}

.nav a {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.nav a,
.project-card a,
.site-footer a {
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav a:hover,
.project-card a:hover,
.site-footer a:hover {
  color: var(--gold);
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: rgba(248, 244, 232, 0.07);
  border-color: rgba(248, 244, 232, 0.14);
}

.nav .nav-cta {
  color: var(--ink);
  background: rgba(109, 225, 166, 0.1);
  border-color: rgba(109, 225, 166, 0.22);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: min(760px, calc(100svh - 148px));
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  overflow: hidden;
  padding: clamp(62px, 8vw, 112px) clamp(18px, 5vw, 76px) clamp(30px, 5vw, 58px);
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  filter: saturate(1.08) contrast(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 74% 36%, rgba(245, 196, 91, 0.16), transparent 28rem),
    linear-gradient(90deg, rgba(12, 15, 16, 0.96) 0%, rgba(12, 15, 16, 0.74) 38%, rgba(12, 15, 16, 0.32) 70%, rgba(12, 15, 16, 0.68) 100%),
    linear-gradient(0deg, rgba(12, 15, 16, 0.92), transparent 46%);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(rgba(248, 244, 232, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 244, 232, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, black, transparent 74%);
}

.hero-copy {
  max-width: 920px;
  padding-bottom: clamp(8px, 3vw, 28px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--mint);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.live-dot {
  width: 9px;
  height: 9px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--mint);
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(4.2rem, 10vw, 9.4rem);
  line-height: 0.84;
  text-wrap: balance;
}

h2 {
  max-width: 920px;
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 5vw, 5.6rem);
  line-height: 0.94;
  text-wrap: balance;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.hero-text,
.section-heading p,
.traverse-lede,
.traverse-detail-grid p,
.contact-section p,
.now-grid p,
.project-card p,
.system-grid p,
.hero-dock p {
  color: var(--muted);
}

.hero-text {
  max-width: 710px;
  margin-bottom: 0;
  color: var(--soft);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-badges span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 10px;
  color: var(--soft);
  background: rgba(248, 244, 232, 0.08);
  border: 1px solid rgba(248, 244, 232, 0.14);
  border-radius: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-actions,
.traverse-actions,
.contact-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  justify-content: center;
  border: 1px solid rgba(248, 244, 232, 0.28);
  border-radius: 8px;
  padding: 0 18px;
  color: inherit;
  background: rgba(248, 244, 232, 0.06);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.button.primary {
  color: #07100d;
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 18px 44px rgba(245, 196, 91, 0.2);
}

.button.secondary {
  color: var(--ink);
  background: rgba(248, 244, 232, 0.08);
}

.button.ghost {
  color: var(--ink);
  background: transparent;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(109, 225, 166, 0.62);
}

.command-strip {
  display: inline-flex;
  max-width: min(100%, 780px);
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 12px 14px;
  overflow: hidden;
  color: var(--soft);
  background: rgba(5, 8, 8, 0.62);
  border: 1px solid rgba(248, 244, 232, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(0.78rem, 1.2vw, 0.92rem);
}

.prompt {
  flex: 0 0 auto;
  color: var(--mint);
}

#focus-output {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.hero-dock {
  display: grid;
  gap: 1px;
  overflow: hidden;
  align-self: end;
  background: rgba(248, 244, 232, 0.14);
  border: 1px solid rgba(248, 244, 232, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-dock div {
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(109, 225, 166, 0.1), transparent 44%),
    rgba(8, 11, 12, 0.72);
  backdrop-filter: blur(18px);
}

.dock-label,
.project-meta,
.note-kicker,
.chip {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.dock-label {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
}

.hero-dock strong {
  display: block;
  margin-bottom: 5px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.35rem;
}

.hero-dock p {
  margin: 0;
  font-size: 0.94rem;
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-band div {
  padding: clamp(22px, 3.6vw, 42px) clamp(18px, 5vw, 76px);
  background:
    linear-gradient(135deg, rgba(104, 183, 255, 0.08), transparent 56%),
    rgba(21, 26, 27, 0.9);
}

.metric-band strong {
  display: block;
  color: var(--ink);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.metric-band span {
  color: var(--muted);
  font-weight: 800;
}

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #f8f4e8;
  color: #111413;
}

.ticker-track {
  width: max-content;
  gap: 10px;
  padding: 12px 0;
  animation: ticker 32s linear infinite;
}

.ticker span {
  position: relative;
  padding: 0 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ticker span::after {
  position: absolute;
  top: 50%;
  right: -3px;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--ember);
  border-radius: 50%;
  transform: translateY(-50%);
}

.section,
.systems-section,
.traverse-section,
.now-section,
.contact-section,
.note-strip,
.lab-section {
  padding: clamp(58px, 8vw, 116px) clamp(18px, 5vw, 76px);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 34px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-button,
.mode-button {
  min-height: 40px;
  justify-content: center;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(248, 244, 232, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.filter-button.active,
.filter-button:hover,
.mode-button.active,
.mode-button:hover {
  color: #07100d;
  background: var(--mint);
  border-color: var(--mint);
}

.project-grid,
.now-grid,
.system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.project-card,
.now-grid article,
.system-grid article {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  overflow: hidden;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(109, 225, 166, 0.08), transparent 48%),
    rgba(21, 26, 27, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.project-card::before,
.system-grid article::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 94px;
  height: 94px;
  content: "";
  background:
    linear-gradient(90deg, transparent 16px, rgba(248, 244, 232, 0.12) 16px 18px, transparent 18px),
    linear-gradient(0deg, transparent 16px, rgba(248, 244, 232, 0.12) 16px 18px, transparent 18px);
  background-size: 24px 24px;
  opacity: 0.56;
  transform: translate(24px, -24px);
}

.project-card:hover,
.now-grid article:hover,
.system-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 196, 91, 0.5);
}

.project-card.hidden {
  display: none;
}

.project-card.featured {
  grid-column: span 2;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 111, 79, 0.2), transparent 24rem),
    linear-gradient(145deg, rgba(245, 196, 91, 0.16), transparent 48%),
    var(--panel-strong);
  border-color: rgba(245, 196, 91, 0.36);
}

.muted-card {
  background:
    linear-gradient(145deg, rgba(189, 146, 255, 0.11), transparent 52%),
    rgba(248, 244, 232, 0.055);
}

.project-meta {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
  color: var(--soft);
}

.project-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.project-meta i {
  width: 8px;
  height: 8px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--mint);
}

.project-card a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin-top: 10px;
  color: var(--mint);
  font-weight: 900;
}

.project-card p {
  margin-bottom: 22px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.card-actions a {
  padding: 0 10px;
  background: rgba(109, 225, 166, 0.08);
  border: 1px solid rgba(109, 225, 166, 0.2);
  border-radius: 8px;
}

.card-actions a + a {
  color: var(--soft);
  background: rgba(248, 244, 232, 0.06);
  border-color: rgba(248, 244, 232, 0.14);
}

.traverse-section {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(360px, 1fr);
  gap: clamp(24px, 5vw, 64px);
  overflow: hidden;
  align-items: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(104, 183, 255, 0.18), transparent 24rem),
    linear-gradient(130deg, rgba(109, 225, 166, 0.12), transparent 48%),
    #0a0e0f;
  border-block: 1px solid var(--line);
}

.traverse-section::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(rgba(248, 244, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 244, 232, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, black, transparent 84%);
}

.traverse-copy {
  max-width: 680px;
}

.traverse-lede {
  margin-bottom: 0;
  color: var(--soft);
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
}

.traverse-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.traverse-tags span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  color: var(--soft);
  background: rgba(248, 244, 232, 0.08);
  border: 1px solid rgba(248, 244, 232, 0.14);
  border-radius: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.traverse-visual {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: rgba(5, 8, 8, 0.82);
  border: 1px solid rgba(248, 244, 232, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.traverse-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  background: rgba(248, 244, 232, 0.08);
  border-bottom: 1px solid rgba(248, 244, 232, 0.14);
}

.traverse-window-bar span {
  width: 11px;
  aspect-ratio: 1;
  background: var(--ember);
  border-radius: 50%;
}

.traverse-window-bar span:nth-child(2) {
  background: var(--gold);
}

.traverse-window-bar span:nth-child(3) {
  background: var(--mint);
}

.traverse-window-bar strong {
  margin-left: 8px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.traverse-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

.traverse-detail-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.traverse-detail-grid article {
  min-height: 236px;
  padding: 26px;
  background:
    linear-gradient(145deg, rgba(104, 183, 255, 0.1), transparent 52%),
    rgba(21, 26, 27, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.traverse-detail-grid span {
  display: block;
  margin-bottom: 26px;
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.traverse-detail-grid p {
  margin-bottom: 0;
}

.systems-section {
  background:
    linear-gradient(120deg, rgba(104, 183, 255, 0.14), transparent 42%),
    #101314;
  border-block: 1px solid var(--line);
}

.system-grid article {
  min-height: 260px;
}

.system-grid span {
  display: block;
  margin-bottom: 34px;
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}

.note-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.note-strip article {
  min-height: 220px;
  padding: clamp(22px, 4vw, 36px);
  background:
    linear-gradient(145deg, rgba(245, 196, 91, 0.1), transparent 50%),
    rgba(21, 26, 27, 0.94);
}

.note-kicker {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
}

.note-strip p {
  max-width: 34ch;
  margin: 0;
  color: var(--soft);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.14rem, 2vw, 1.55rem);
  line-height: 1.24;
}

.lab-section {
  background:
    radial-gradient(circle at 18% 12%, rgba(109, 225, 166, 0.16), transparent 24rem),
    linear-gradient(250deg, rgba(189, 146, 255, 0.15), transparent 48%),
    #090c0d;
  border-bottom: 1px solid var(--line);
}

.lab-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 900px);
  gap: 18px;
  align-items: stretch;
}

.lab-modes {
  display: grid;
  gap: 10px;
  align-content: start;
}

.lab-console {
  max-width: 900px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(4, 7, 8, 0.78);
  border: 1px solid rgba(248, 244, 232, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.console-top {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.console-top span {
  width: 12px;
  aspect-ratio: 1;
  background: var(--ember);
  border-radius: 50%;
}

.console-top span:nth-child(2) {
  background: var(--gold);
}

.console-top span:nth-child(3) {
  background: var(--mint);
}

.console-line {
  min-height: 82px;
  margin-bottom: 24px;
  color: var(--soft);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.1rem, 2.3vw, 1.75rem);
  line-height: 1.22;
}

.console-line span:first-child {
  color: var(--mint);
  font-family: "JetBrains Mono", monospace;
}

.console-actions {
  flex-wrap: wrap;
  gap: 16px;
}

.seed-meter {
  display: inline-flex;
  align-items: end;
  gap: 5px;
  height: 42px;
}

.seed-meter i {
  width: 8px;
  height: 16px;
  background: var(--blue);
  border-radius: 4px 4px 0 0;
  box-shadow: 0 0 16px rgba(104, 183, 255, 0.4);
  transform-origin: bottom;
  animation: meter 900ms ease-in-out infinite alternate;
}

.seed-meter i:nth-child(2) {
  height: 28px;
  background: var(--mint);
  animation-delay: 120ms;
}

.seed-meter i:nth-child(3) {
  height: 20px;
  background: var(--gold);
  animation-delay: 240ms;
}

.seed-meter i:nth-child(4) {
  height: 34px;
  background: var(--ember);
  animation-delay: 80ms;
}

.seed-meter i:nth-child(5) {
  height: 24px;
  background: var(--violet);
  animation-delay: 180ms;
}

.seed-meter i:nth-child(6) {
  height: 30px;
  animation-delay: 300ms;
}

.now-section {
  background: #f8f4e8;
  color: #171918;
}

.now-section .eyebrow {
  color: #c44d38;
}

.now-section .section-heading p,
.now-grid p {
  color: #5f625b;
}

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

.now-grid article {
  min-height: 268px;
  background:
    linear-gradient(145deg, rgba(109, 225, 166, 0.18), transparent 52%),
    #ffffff;
  border-color: #ded7c7;
}

.chip {
  display: inline-flex;
  margin-bottom: 28px;
  padding: 6px 10px;
  color: #171918;
  background: #e7f6dc;
  border: 1px solid #cbdfbd;
  border-radius: 8px;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.contact-section > div:first-child {
  max-width: 760px;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 76px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  font-weight: 800;
}

.stream-page code {
  color: inherit;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.92em;
  font-weight: 700;
}

.stream-body {
  background:
    radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(255, 111, 79, 0.16), transparent 23rem),
    linear-gradient(135deg, rgba(109, 225, 166, 0.12), transparent 34rem),
    linear-gradient(225deg, rgba(104, 183, 255, 0.14), transparent 32rem),
    var(--paper);
}

.stream-page {
  overflow: hidden;
}

.stream-hero,
.stream-embed-section,
.movie-list-section,
.bot-section {
  padding: clamp(58px, 8vw, 116px) clamp(18px, 5vw, 76px);
}

.stream-hero {
  position: relative;
  display: grid;
  min-height: min(720px, calc(100svh - 76px));
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.stream-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(rgba(248, 244, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 244, 232, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, black, transparent 84%);
}

.stream-hero-copy {
  max-width: 900px;
  padding-bottom: clamp(8px, 3vw, 26px);
}

.stream-hero h1 {
  max-width: 860px;
}

.stream-hero-text {
  max-width: 760px;
  margin: 0;
  color: var(--soft);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.stream-signal-board {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: rgba(248, 244, 232, 0.14);
  border: 1px solid rgba(248, 244, 232, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stream-signal-board div {
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(255, 111, 79, 0.12), transparent 44%),
    rgba(8, 11, 12, 0.76);
  backdrop-filter: blur(18px);
}

.stream-signal-board strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.28rem;
}

.stream-signal-board p,
.movie-list-copy p,
.movie-library-shell p,
.bot-flow p,
.bot-note p {
  color: var(--muted);
}

.stream-embed-section {
  background:
    linear-gradient(120deg, rgba(104, 183, 255, 0.13), transparent 42%),
    #101314;
  border-bottom: 1px solid var(--line);
}

.stream-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
  gap: 18px;
  align-items: stretch;
}

.embed-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding: 12px;
  background: rgba(5, 8, 8, 0.62);
  border: 1px solid rgba(248, 244, 232, 0.14);
  border-radius: 8px;
}

.embed-action-bar span,
.embed-action-bar a {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.embed-action-bar span {
  color: var(--gold);
}

.embed-action-bar a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--soft);
  background: rgba(248, 244, 232, 0.06);
  border: 1px solid rgba(248, 244, 232, 0.14);
  border-radius: 8px;
}

.embed-action-bar a:hover {
  color: #07100d;
  background: var(--mint);
  border-color: var(--mint);
}

.stream-player-panel,
.stream-chat-panel,
.movie-library-shell {
  overflow: hidden;
  background: rgba(5, 8, 8, 0.78);
  border: 1px solid rgba(248, 244, 232, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.embed-shell {
  position: relative;
  display: grid;
  min-height: 300px;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(109, 225, 166, 0.1), transparent 48%),
    rgba(3, 6, 7, 0.92);
}

.embed-shell::before {
  position: absolute;
  z-index: 0;
  color: var(--muted);
  content: "Loading embed...";
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.embed-shell iframe,
.movie-list-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #050708;
  border: 0;
}

.embed-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(255, 111, 79, 0.12), transparent 48%),
    rgba(3, 6, 7, 0.96);
}

.embed-fallback-inner {
  max-width: 38rem;
}

.embed-fallback strong {
  display: block;
  margin-bottom: 10px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1;
}

.embed-fallback p {
  margin-bottom: 18px;
  color: var(--muted);
}

.embed-fallback .button {
  display: inline-flex;
}

.twitch-shell {
  aspect-ratio: 16 / 9;
  min-height: 420px;
}

.chat-shell {
  height: 100%;
  min-height: 420px;
}

.movie-list-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: stretch;
}

.movie-library-full {
  grid-template-columns: 1fr;
  align-items: start;
  padding-top: clamp(46px, 7vw, 86px);
}

.movie-library-full .movie-list-copy {
  max-width: 980px;
}

.movie-library-page h1 {
  max-width: 980px;
  margin-bottom: 18px;
  font-size: clamp(3.3rem, 8vw, 7.2rem);
  line-height: 0.88;
}

.movie-library-full .movie-library-shell {
  min-height: auto;
}

.movie-list-copy {
  align-self: center;
  max-width: 620px;
}

.movie-list-copy .button {
  display: inline-flex;
  margin-top: 28px;
}

.movie-list-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.movie-list-stats div {
  padding: 16px;
  background: rgba(248, 244, 232, 0.06);
  border: 1px solid rgba(248, 244, 232, 0.14);
  border-radius: 8px;
}

.movie-list-stats strong,
.movie-list-stats span,
.movie-library-toolbar span,
.movie-position,
.movie-meta,
.movie-source {
  font-family: "JetBrains Mono", monospace;
}

.movie-list-stats strong {
  display: block;
  color: var(--gold);
  font-size: clamp(1.45rem, 4vw, 2.4rem);
  line-height: 1;
}

.movie-list-stats span,
.movie-search-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.movie-search-label {
  display: block;
  margin-top: 24px;
  margin-bottom: 8px;
}

.movie-search {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(248, 244, 232, 0.08);
  border: 1px solid rgba(248, 244, 232, 0.18);
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
}

.movie-search::placeholder {
  color: rgba(248, 244, 232, 0.52);
}

.movie-search:focus {
  outline: 3px solid rgba(109, 225, 166, 0.6);
  outline-offset: 3px;
}

.command-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.command-list span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 11px;
  color: #07100d;
  background: var(--mint);
  border-radius: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
}

.movie-list-preview .movie-list-copy .button {
  margin-right: 10px;
}

.movie-preview-panel {
  position: relative;
  display: grid;
  min-height: 430px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(245, 196, 91, 0.16), transparent 48%),
    radial-gradient(circle at 84% 14%, rgba(255, 111, 79, 0.2), transparent 22rem),
    rgba(3, 6, 7, 0.94);
  border: 1px solid rgba(248, 244, 232, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease;
}

.movie-preview-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 196, 91, 0.54);
}

.movie-preview-copy {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 620px;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 5vw, 42px);
}

.provider-badge {
  align-self: flex-start;
  margin-bottom: auto;
  padding: 8px 10px;
  color: #111413;
  background: var(--gold);
  border-radius: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.movie-preview-copy strong {
  display: block;
  max-width: 12ch;
  margin-top: clamp(80px, 14vw, 140px);
  margin-bottom: 18px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2.2rem, 6vw, 5.2rem);
  line-height: 0.9;
  text-wrap: balance;
}

.movie-preview-copy p {
  max-width: 48ch;
  margin-bottom: 0;
  color: var(--soft);
}

.movie-preview-posters {
  position: absolute;
  right: clamp(18px, 4vw, 42px);
  bottom: clamp(18px, 4vw, 42px);
  display: grid;
  width: min(46%, 360px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.movie-preview-posters img {
  width: 100%;
  aspect-ratio: 2 / 3;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(248, 244, 232, 0.16);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

.movie-preview-posters img:nth-child(2),
.movie-preview-posters img:nth-child(4) {
  transform: translateY(22px);
}

.movie-library-shell {
  position: relative;
  min-height: 560px;
  padding: clamp(14px, 2vw, 18px);
  background:
    linear-gradient(145deg, rgba(245, 196, 91, 0.1), transparent 46%),
    radial-gradient(circle at 88% 12%, rgba(255, 111, 79, 0.16), transparent 22rem),
    rgba(3, 6, 7, 0.94);
}

.movie-library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.movie-library-toolbar span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 12px;
}

.movie-card {
  position: relative;
  display: grid;
  min-height: 330px;
  overflow: hidden;
  background: rgba(248, 244, 232, 0.07);
  border: 1px solid rgba(248, 244, 232, 0.14);
  border-radius: 8px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 196, 91, 0.54);
  background: rgba(248, 244, 232, 0.1);
}

.movie-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  background:
    linear-gradient(145deg, rgba(109, 225, 166, 0.12), transparent 52%),
    rgba(248, 244, 232, 0.06);
}

.movie-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-card-body {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}

.movie-position {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  color: #07100d;
  background: var(--gold);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
}

.movie-card h3 {
  display: -webkit-box;
  min-height: 2.65em;
  margin: 0;
  overflow: hidden;
  font-size: 1.02rem;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.movie-meta span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  background: rgba(248, 244, 232, 0.07);
  border: 1px solid rgba(248, 244, 232, 0.12);
  border-radius: 8px;
}

.movie-source {
  color: var(--mint);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.movie-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  color: var(--soft);
  background: rgba(248, 244, 232, 0.06);
  border: 1px solid rgba(248, 244, 232, 0.14);
  border-radius: 8px;
}

.bot-section {
  background: #f8f4e8;
  color: #171918;
}

.bot-section .eyebrow {
  color: #c44d38;
}

.bot-section .section-heading p,
.bot-flow p,
.bot-note p {
  color: #5f625b;
}

.bot-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.bot-flow article {
  min-height: 286px;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(109, 225, 166, 0.18), transparent 52%),
    #ffffff;
  border: 1px solid #ded7c7;
  border-radius: 8px;
}

.bot-flow span {
  display: block;
  margin-bottom: 34px;
  color: #c44d38;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}

.bot-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 18px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid #ded7c7;
  border-radius: 8px;
}

.bot-note > div {
  max-width: 760px;
}

.bot-note .note-kicker {
  color: #c44d38;
}

.bot-note p {
  margin-bottom: 0;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: min(820px, calc(100svh - 120px));
  }

  .hero-dock {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .traverse-section {
    grid-template-columns: 1fr;
  }

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

  .project-card.featured {
    grid-column: span 2;
  }

  .stream-hero,
  .movie-list-section {
    grid-template-columns: 1fr;
  }

  .stream-signal-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stream-layout,
  .bot-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stream-player-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .site-header,
  .contact-section,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    font-size: 0.78rem;
    scrollbar-width: none;
  }

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

  .nav a {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 7px 9px;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero-media img {
    object-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(12, 15, 16, 0.97), rgba(12, 15, 16, 0.74) 68%, rgba(12, 15, 16, 0.64)),
      linear-gradient(0deg, rgba(12, 15, 16, 0.94), transparent 50%);
  }

  h1 {
    font-size: clamp(3.35rem, 18vw, 5rem);
  }

  h2 {
    font-size: clamp(2.15rem, 11vw, 3.25rem);
  }

  .hero-dock,
  .metric-band,
  .project-grid,
  .now-grid,
  .note-strip,
  .system-grid,
  .traverse-detail-grid,
  .lab-layout {
    grid-template-columns: 1fr;
  }

  .stream-signal-board,
  .stream-layout,
  .bot-flow {
    grid-template-columns: 1fr;
  }

  .stream-hero {
    min-height: auto;
  }

  .twitch-shell,
  .chat-shell {
    min-height: 360px;
  }

  .movie-preview-panel {
    min-height: auto;
  }

  .movie-preview-copy {
    max-width: none;
    padding-bottom: 18px;
  }

  .movie-preview-copy strong {
    max-width: 14ch;
    margin-top: 74px;
  }

  .movie-preview-posters {
    position: static;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0 clamp(22px, 6vw, 42px) clamp(22px, 6vw, 42px);
  }

  .movie-preview-posters img:nth-child(2),
  .movie-preview-posters img:nth-child(4) {
    transform: translateY(12px);
  }

  .movie-library-shell {
    min-height: 420px;
  }

  .movie-library-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  }

  .bot-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-card.featured {
    grid-column: auto;
  }

  .hero-dock {
    display: none;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions .primary {
    grid-column: 1 / -1;
  }

  .hero-badges {
    gap: 6px;
  }

  .hero-badges span {
    min-height: 30px;
    font-size: 0.66rem;
  }

  .embed-action-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .embed-action-bar a {
    justify-content: center;
  }

  .project-card,
  .now-grid article,
  .system-grid article,
  .traverse-detail-grid article {
    min-height: auto;
    padding: 22px;
  }

  .project-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
  }

  .card-actions a {
    flex: 1 1 130px;
    justify-content: center;
  }

  .command-strip {
    align-items: flex-start;
    flex-direction: column;
  }

}

@media (max-width: 430px) {
  .brand-copy small {
    display: none;
  }

  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .movie-list-copy .button {
    display: flex;
  }

  .movie-list-preview .movie-list-copy .button {
    margin-right: 0;
  }

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

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

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

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@keyframes meter {
  to {
    transform: scaleY(0.58);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
