:root {
  --black: #050505;
  --white: #ffffff;
  --red: #3a080d;
  --red-glow: #7a0f1c;
  --red-bright: #7a0f1c;
  --red-soft: #2a050a;
  --text: rgba(255, 255, 255, 0.82);
  --muted: rgba(255, 255, 255, 0.52);
  --grid: rgba(255, 255, 255, 0.05);
  --shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 26px 80px rgba(58, 8, 13, 0.35);
  --glow: 0 0 0 1px rgba(122, 15, 28, 0.22), 0 0 24px rgba(122, 15, 28, 0.2);
  --accent: #7a0f1c;
  --accent-strong: #7a0f1c;
  --accent-soft: rgba(58, 8, 13, 0.14);
  --gold: #7a0f1c;
  --surface: rgba(10, 10, 10, 0.78);
  --surface-strong: rgba(12, 12, 12, 0.94);
  --border-soft: rgba(255, 255, 255, 0.08);
  --radius: 20px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --glass: rgba(5, 5, 5, 0.7);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "Archivo", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --code-bg: #0b0b10;
  --code-border: rgba(122, 15, 28, 0.35);
  --code-inline-bg: rgba(122, 15, 28, 0.18);
  --code-inline-text: #f5c6ce;
  --code-text: #ece7e4;
  --code-muted: #8f8891;
  --code-punct: #c7c1c8;
  --code-const: #f0b4b9;
  --code-string: #f5c6ce;
  --code-operator: #e2dee3;
  --code-keyword: #7a0f1c;
  --code-function: #f7e9ec;
  --code-class: #e2ccd4;
}

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

html {
  scroll-behavior: auto;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 80% -10%, rgba(58, 8, 13, 0.22), transparent 45%), var(--black);
  color: var(--white);
  font-family: var(--sans);
  letter-spacing: 0.01em;
  text-transform: lowercase;
  overflow-x: hidden;
}

code,
pre {
  text-transform: none;
}

body.is-loading,
body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-family: var(--mono);
  font-size: 0.75rem;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
  z-index: 1002;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

input,
button,
textarea {
  text-transform: lowercase;
  color: inherit;
}

::selection {
  background: var(--red-glow);
  color: var(--white);
}

*:focus-visible {
  outline: 2px solid rgba(122, 15, 28, 0.6);
  outline-offset: 3px;
  border-radius: 6px;
}

.ambient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(122, 15, 28, 0.12), transparent 50%),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.05), transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(58, 8, 13, 0.18), transparent 55%);
  pointer-events: none;
  z-index: -2;
  animation: ambientShift 18s ease-in-out infinite;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(transparent 95%, rgba(255, 255, 255, 0.03) 100%),
    linear-gradient(90deg, transparent 95%, rgba(255, 255, 255, 0.03) 100%);
  background-size: 40px 40px;
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.04);
  z-index: 140;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--red), var(--red-bright));
  box-shadow: 0 0 20px rgba(122, 15, 28, 0.35);
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 998;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
  opacity: 0;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 30px rgba(122, 15, 28, 0.25);
}

body.cursor-ready .cursor-dot,
body.cursor-ready .cursor-ring {
  opacity: 1;
}

body.cursor-hover .cursor-ring {
  border-color: var(--red-bright);
  box-shadow: 0 0 40px rgba(122, 15, 28, 0.45);
}

body.cursor-hover .cursor-dot {
  opacity: 0.7;
}

.transition-layer {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(122, 15, 28, 0.35), transparent 55%),
    linear-gradient(135deg, var(--red), #0b0708);
  transform: scaleY(0);
  transform-origin: top;
  z-index: 999;
  pointer-events: none;
  opacity: 0.98;
  filter: blur(0.2px);
}

.preloader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(122, 15, 28, 0.2), transparent 55%),
    rgba(5, 5, 5, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}

body.is-loading .preloader {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-core {
  width: min(420px, 80vw);
  display: grid;
  gap: 18px;
  text-align: center;
}

.preloader-title {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  animation: preloaderPulse 2.6s ease-in-out infinite;
}

.preloader-bar {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.preloader-bar span {
  position: absolute;
  inset: 0;
  width: 100%;
  background: linear-gradient(90deg, var(--red), var(--red-bright));
  transform-origin: left;
  transform: scaleX(0);
  box-shadow: 0 0 18px rgba(122, 15, 28, 0.5);
}

.preloader-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

@keyframes preloaderPulse {
  0%,
  100% {
    opacity: 0.6;
    letter-spacing: 0.22em;
  }
  50% {
    opacity: 1;
    letter-spacing: 0.28em;
  }
}

@keyframes ambientShift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translate3d(-1%, 1%, 0) scale(1.02);
    opacity: 1;
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.page {
  padding: 140px 8vw 140px;
}

.site-header {
  position: fixed;
  top: 22px;
  left: 6vw;
  right: 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  backdrop-filter: blur(18px) saturate(140%);
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 12px 22px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.3s ease, border 0.3s ease, transform 0.3s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--white);
  background: rgba(58, 8, 13, 0.4);
  box-shadow: 0 0 20px rgba(122, 15, 28, 0.35);
}

.brand-word {
  font-size: 0.75rem;
}

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 0.85rem;
  font-family: var(--mono);
}

.nav-link {
  position: relative;
  color: var(--muted);
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-flex;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--red-glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--white);
  transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-controls {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.status-pill {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  background: linear-gradient(140deg, rgba(16, 16, 16, 0.9), rgba(8, 8, 8, 0.6));
  box-shadow: var(--shadow-soft);
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(150deg, rgba(18, 18, 18, 0.9), rgba(8, 8, 8, 0.8));
  display: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.nav-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(122, 15, 28, 0.5);
  box-shadow: var(--shadow-lift);
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

body.nav-open .nav-toggle span:first-child {
  transform: translateY(3px) rotate(45deg);
}

body.nav-open .nav-toggle span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  backdrop-filter: blur(16px);
  z-index: 300;
}

body.nav-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

.nav-overlay-inner {
  width: min(520px, 90vw);
  margin: 120px auto 0;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(150deg, rgba(16, 16, 16, 0.94), rgba(8, 8, 8, 0.88));
  display: grid;
  gap: 28px;
  transform: translateY(24px) scale(0.98);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
  box-shadow: var(--shadow);
}

body.nav-open .nav-overlay-inner {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.nav-overlay-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.nav-close {
  border: none;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-family: var(--mono);
}

.nav-overlay-links {
  display: grid;
  gap: 16px;
  font-size: 2rem;
  font-weight: 600;
}

.nav-overlay-links a {
  color: var(--white);
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-flex;
}

.nav-overlay-links a:hover {
  color: var(--red-bright);
  transform: translateX(6px);
}

.nav-overlay-footer {
  display: grid;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.nav-overlay-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: calc(100vh - 220px);
  position: relative;
}

.hero-title {
  font-size: clamp(3.2rem, 7vw, 7rem);
  line-height: 0.95;
  margin: 18px 0;
  letter-spacing: -0.02em;
}

body.home .hero::before {
  content: "";
  position: absolute;
  right: -12%;
  top: -24%;
  width: 55%;
  height: 70%;
  background: radial-gradient(circle, rgba(122, 15, 28, 0.18), transparent 60%);
  filter: blur(2px);
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

body.home .hero::after {
  content: "";
  position: absolute;
  left: -10%;
  bottom: -18%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(58, 8, 13, 0.16), transparent 65%);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

body.home .hero-copy,
body.home .hero-panel {
  position: relative;
  z-index: 1;
}

body.home .hero-title {
  color: var(--white);
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

@supports (-webkit-background-clip: text) {
  body.home .hero-title {
    color: transparent;
    background: linear-gradient(
      120deg,
      #ffffff 10%,
      rgba(255, 255, 255, 0.86) 45%,
      rgba(122, 15, 28, 0.95) 70%,
      #ffffff 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

body.home .hero-sub {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.84);
}

body.home .hero-actions .btn.primary {
  background: var(--white);
  color: var(--black);
  border-color: rgba(255, 255, 255, 0.6);
}

body.home .hero-actions .btn.ghost {
  border-color: rgba(122, 15, 28, 0.35);
  background: rgba(10, 10, 10, 0.55);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.2em;
}

.hero-sub {
  max-width: 540px;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-metrics {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.metric {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 10, 0.7);
  min-width: 140px;
}

body.home .metric {
  background: linear-gradient(160deg, rgba(14, 14, 14, 0.9), rgba(8, 8, 8, 0.7));
  border-color: rgba(122, 15, 28, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

body.home .metric-number {
  color: #ffffff;
  text-shadow: 0 0 24px rgba(122, 15, 28, 0.25);
}

.metric-number {
  font-size: 1.4rem;
  font-weight: 600;
}

.metric-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 4px;
}

.btn {
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: lowercase;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.btn.primary {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 16px 40px rgba(255, 255, 255, 0.15);
}

.btn.ghost {
  background: rgba(10, 10, 10, 0.5);
  color: var(--white);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(122, 15, 28, 0.6);
}

.hero-panel {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(58, 8, 13, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

body.home .hero-panel {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(58, 8, 13, 0.2), rgba(6, 6, 6, 0.95));
  border-color: rgba(122, 15, 28, 0.2);
}

body.home .hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(122, 15, 28, 0.18), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(58, 8, 13, 0.16), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

body.home .hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

body.home .hero-panel > * {
  position: relative;
  z-index: 1;
}

.signal {
  margin-bottom: 28px;
}

.signal-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.signal-value {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--white);
}

.signal-grid {
  display: grid;
  gap: 14px;
}

.signal-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  background: rgba(5, 5, 5, 0.6);
}

body.home .signal-card {
  background: linear-gradient(150deg, rgba(12, 12, 12, 0.9), rgba(6, 6, 6, 0.7));
  border-color: rgba(122, 15, 28, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.signal-title {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.signal-meta {
  font-size: 0.8rem;
  font-family: var(--mono);
  color: var(--muted);
}

.scanner {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scanner::before {
  content: "";
  position: absolute;
  left: -30%;
  width: 160%;
  height: 2px;
  top: 20%;
  background: linear-gradient(90deg, transparent, var(--red-glow), transparent);
  animation: scan 6s linear infinite;
  opacity: 0.7;
}

@keyframes scan {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(240px);
  }
  100% {
    transform: translateY(0);
  }
}

.section {
  margin-top: 120px;
}

body.home .section {
  position: relative;
}

body.home .section::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, rgba(122, 15, 28, 0.6), transparent);
  opacity: 0.7;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
}

.quick-stats {
  margin-top: 80px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(18, 18, 18, 0.9), rgba(8, 8, 8, 0.85));
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

body.home .stat-card {
  border-color: rgba(122, 15, 28, 0.12);
  background: linear-gradient(145deg, rgba(18, 18, 18, 0.92), rgba(6, 6, 6, 0.9));
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(122, 15, 28, 0.35);
  box-shadow: var(--shadow-lift);
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 1rem;
}

.bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.tile {
  border-radius: var(--radius);
  padding: 28px;
  background: linear-gradient(150deg, rgba(14, 14, 14, 0.92), rgba(8, 8, 8, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.07);
  min-height: 220px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, border 0.35s ease, box-shadow 0.35s ease;
}

body.home .tile {
  border-color: rgba(122, 15, 28, 0.12);
}

body.home .tile.large {
  background: linear-gradient(160deg, rgba(16, 16, 16, 0.96), rgba(8, 8, 8, 0.9), rgba(58, 8, 13, 0.3));
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(122, 15, 28, 0.2), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tile:hover::after {
  opacity: 1;
}

.tile:hover {
  transform: translateY(-4px);
  border-color: rgba(122, 15, 28, 0.35);
  box-shadow: var(--shadow-lift);
}

.tile.large {
  grid-column: span 2;
}

.tile-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.tile-title {
  font-size: 1.4rem;
  margin: 16px 0 12px;
}

.tile-body {
  color: var(--text);
  line-height: 1.55;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.matrix-card {
  border-radius: var(--radius);
  padding: 26px;
  background: rgba(9, 9, 9, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 12px;
}

body.home .matrix-card {
  border-color: rgba(122, 15, 28, 0.12);
  background: linear-gradient(160deg, rgba(12, 12, 12, 0.94), rgba(6, 6, 6, 0.85));
}

.matrix-card h3 {
  font-size: 1.2rem;
}

.matrix-card p {
  color: var(--text);
  line-height: 1.5;
}

.matrix-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.project-card {
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(12, 12, 12, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 12px;
  min-height: 200px;
}

body.home .project-card {
  position: relative;
  border-color: rgba(122, 15, 28, 0.16);
  background: linear-gradient(160deg, rgba(14, 14, 14, 0.96), rgba(6, 6, 6, 0.9));
  box-shadow: var(--shadow-soft);
}

body.home .project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.project-type {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.project-card p {
  color: var(--text);
  line-height: 1.5;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.process-step {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(10, 10, 10, 0.86);
  display: grid;
  gap: 12px;
}

body.home .process-step {
  border-color: rgba(122, 15, 28, 0.12);
  background: linear-gradient(160deg, rgba(12, 12, 12, 0.92), rgba(6, 6, 6, 0.86));
}

.process-step span {
  font-family: var(--mono);
  color: var(--red-bright);
}

.process-step h4 {
  font-size: 1.1rem;
}

.process-step p {
  color: var(--text);
  line-height: 1.5;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.panel {
  border-radius: var(--radius);
  padding: 28px;
  background: rgba(10, 10, 10, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

body.home .panel {
  border-color: rgba(122, 15, 28, 0.12);
  background: linear-gradient(160deg, rgba(12, 12, 12, 0.94), rgba(6, 6, 6, 0.9));
}

.panel-title {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.panel-body {
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 18px;
}

.data-list {
  display: grid;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}

.data-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.text-link {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--white);
  position: relative;
}

.text-link::after {
  content: "→";
  margin-left: 6px;
  color: var(--red-glow);
}

.cta {
  margin-top: 120px;
}

.cta-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(58, 8, 13, 0.5), rgba(10, 10, 10, 0.9));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

body.home .cta-card {
  border-color: rgba(122, 15, 28, 0.18);
  background: linear-gradient(135deg, rgba(58, 8, 13, 0.55), rgba(10, 10, 10, 0.92), rgba(6, 6, 6, 0.85));
  box-shadow: var(--shadow);
}

.cta-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.cta-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 12px 0 10px;
}

.cta-sub {
  color: var(--text);
  max-width: 460px;
}

.ticker {
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 0;
}

.ticker-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: ticker 20s linear infinite;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}

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

.page-hero {
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: -0.02em;
}

.page-sub {
  max-width: 540px;
  color: var(--text);
}

.filter-section {
  margin-top: 60px;
}

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

.filter-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(140deg, rgba(16, 16, 16, 0.9), rgba(8, 8, 8, 0.85));
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease, color 0.3s ease;
}

.filter-btn.is-active,
.filter-btn:hover {
  color: var(--white);
  border-color: rgba(122, 15, 28, 0.6);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.work-card {
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(16, 16, 16, 0.92), rgba(8, 8, 8, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
  transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: rgba(122, 15, 28, 0.5);
  box-shadow: var(--shadow-lift);
}

.work-card.is-hidden {
  opacity: 0.2;
  filter: grayscale(1);
  pointer-events: none;
  transform: scale(0.98);
}

.work-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.work-tag {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.work-title {
  font-size: 1.3rem;
}

.work-body {
  color: var(--text);
  line-height: 1.5;
}

.work-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: auto;
}

.work-feature {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: center;
}

.work-feature-copy h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 12px 0 14px;
}

.work-feature-copy p {
  color: var(--text);
  line-height: 1.6;
}

.feature-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  font-family: var(--mono);
  color: var(--muted);
}

.work-feature-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 12, 12, 0.86);
}

.feature-metric {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  color: var(--muted);
}

.feature-metric strong {
  color: var(--white);
  font-size: 1.1rem;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.series-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 12, 12, 0.85);
  display: grid;
  gap: 12px;
}

.series-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-auto-rows: 120px;
  gap: 18px;
}

.gallery-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  grid-row: span var(--span);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.gallery-item figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--white);
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: saturate(1) contrast(1.1);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.95);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
  padding: 40px 8vw;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-image {
  max-height: 70vh;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.lightbox-caption {
  margin-top: 18px;
  font-family: var(--mono);
  color: var(--muted);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  border: none;
  background: rgba(10, 10, 10, 0.8);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.timeline-list {
  display: grid;
  gap: 24px;
  position: relative;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.timeline-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 24px;
  padding-left: 10px;
}

.timeline-item .time {
  font-family: var(--mono);
  color: var(--muted);
}

.timeline-item h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.timeline-item p {
  color: var(--text);
  line-height: 1.5;
}

.about-hero {
  align-items: stretch;
  min-height: auto;
}

.about-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-card {
  display: grid;
  gap: 18px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-mark {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  background: linear-gradient(145deg, rgba(122, 15, 28, 0.35), rgba(10, 10, 10, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-soft);
}

.profile-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.2em;
}

.profile-role {
  font-size: 1.05rem;
  line-height: 1.4;
}

.profile-bio {
  color: var(--text);
  line-height: 1.6;
}

.profile-data {
  margin: 0;
  display: grid;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.profile-data div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.profile-data div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.profile-data dt,
.profile-data dd {
  margin: 0;
}

.profile-data dd {
  color: var(--white);
  text-align: right;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.profile-links .text-link {
  font-size: 0.78rem;
}

.profile-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.profile-strip span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 10, 0.6);
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.timeline-tags span {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 10, 0.6);
}

.about-details .panel {
  min-height: 220px;
}

.site-footer {
  padding: 60px 8vw 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px;
}

.footer-logo {
  font-weight: 600;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
}

.footer-copy {
  color: var(--text);
  line-height: 1.6;
  margin: 12px 0;
}

.footer-badges {
  display: flex;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-col h4 {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.footer-col a,
.footer-col p {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.footer-form {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.footer-form input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 10, 0.7);
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.footer-form button {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--white);
  color: var(--black);
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 0.75rem;
  cursor: pointer;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.floating-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-family: var(--mono);
  font-size: 0.75rem;
  z-index: 90;
  box-shadow: 0 20px 50px rgba(58, 8, 13, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: floaty 8s ease-in-out infinite;
  will-change: transform;
}

.floating-cta:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.scroll-top {
  position: fixed;
  left: 24px;
  bottom: 24px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 10, 0.8);
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.75rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
  z-index: 90;
  box-shadow: var(--shadow-soft);
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  transform: translateY(-3px);
  border-color: rgba(122, 15, 28, 0.5);
  box-shadow: var(--shadow-lift);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(12, 12, 12, 0.9);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 90;
  box-shadow: var(--shadow-soft);
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tutorial-hero {
  gap: 28px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.tutorial-hero::before {
  content: "";
  position: absolute;
  inset: 0;

  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

.tutorial-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 160px;
  height: 1px;
  background: linear-gradient(90deg, rgba(122, 15, 28, 0.95), transparent);
  z-index: 1;
}

.tutorial-hero > * {
  position: relative;
  z-index: 1;
}

.tutorial-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 40px;
  align-items: start;
}

.tutorial-hero-copy {
  display: grid;
  gap: 18px;
  max-width: 660px;
}

.tutorial-hero-panel {
  display: grid;
  align-items: stretch;
}

.tutorial-hero .hero-actions {
  margin-top: 22px;
}

.tutorial-hero .hero-metrics {
  margin-top: 20px;
}

.breadcrumbs {
  display: flex;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--white);
}

.breadcrumbs span::before {
  content: \"·\";
  margin-right: 10px;
  color: var(--muted);
}

.tutorial-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 6px;
}

.tutorial-tags .tag {
  border-color: rgba(122, 15, 28, 0.4);
  background: rgba(58, 8, 13, 0.32);
  color: var(--white);
}

.tutorial-panel {
  position: relative;
  padding: 26px;
  background: linear-gradient(160deg, rgba(16, 16, 16, 0.96), rgba(6, 6, 6, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-soft);
}

.tutorial-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(transparent 92%, rgba(255, 255, 255, 0.04) 100%);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.tutorial-panel > * {
  position: relative;
  z-index: 1;
}

.tutorial-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 6px;
}

.tutorial-panel .panel-title {
  font-size: 1.05rem;
  color: var(--white);
}

.panel-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(122, 15, 28, 0.5);
  color: var(--red-bright);
  font-family: var(--mono);
  font-size: 0.7rem;
  background: rgba(10, 10, 10, 0.6);
  white-space: nowrap;
}

.panel-steps {
  display: grid;
  gap: 12px;
}

.panel-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 10, 0.65);
}

.panel-index {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--red-bright);
  padding-top: 2px;
}

.panel-step-title {
  font-size: 0.92rem;
  font-weight: 600;
}

.panel-step-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

.panel-footer {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.panel-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  background: rgba(8, 8, 8, 0.7);
}

.tag,
.badge {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  background: rgba(10, 10, 10, 0.7);
}

.badge {
  color: var(--red-bright);
  border-color: rgba(122, 15, 28, 0.5);
}

.tutorial-intro {
  margin-top: 80px;
}

.foundation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.tutorial-card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(150deg, rgba(16, 16, 16, 0.9), rgba(8, 8, 8, 0.85));
  display: grid;
  gap: 10px;
  transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.tutorial-card h3 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.tutorial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(122, 15, 28, 0.4);
  box-shadow: var(--shadow-lift);
}

.tutorial-card p {
  color: var(--text);
  line-height: 1.5;
}

.search-section {
  margin-top: 100px;
}

.search-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(150deg, rgba(14, 14, 14, 0.92), rgba(6, 6, 6, 0.88));
  box-shadow: var(--shadow);
}

.search-input {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 8, 8, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.search-input:focus-within {
  border-color: rgba(122, 15, 28, 0.6);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.search-input input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1rem;
  outline: none;
}

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

.search-icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
}

.search-hint {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-meta {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.search-results {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.result-card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(150deg, rgba(16, 16, 16, 0.92), rgba(8, 8, 8, 0.86));
  display: grid;
  gap: 10px;
  transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-soft);
  min-height: 180px;
}

.result-card:hover {
  transform: translateY(-4px);
  border-color: rgba(122, 15, 28, 0.4);
  box-shadow: var(--shadow-lift);
}

.result-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.result-empty {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  font-family: var(--mono);
  color: var(--muted);
  background: linear-gradient(140deg, rgba(16, 16, 16, 0.85), rgba(8, 8, 8, 0.7));
}

.tutorial-index {
  margin-top: 110px;
}

.tutorial-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.tutorial-index-col {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(150deg, rgba(14, 14, 14, 0.94), rgba(6, 6, 6, 0.9));
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow-soft);
}

.tutorial-index-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.index-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.tutorial-list {
  display: grid;
  gap: 8px;
}

.tutorial-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(8, 8, 8, 0.6);
  transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.tutorial-list a:hover {
  transform: translateY(-2px);
  border-color: rgba(122, 15, 28, 0.5);
  background: rgba(12, 12, 12, 0.75);
}

.tutorial-list-title {
  font-size: 0.85rem;
}

.tutorial-meta {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  white-space: nowrap;
}

.tutorial-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 40px;
  margin: 64px auto 0;
  width: min(1200px, 100%);
  align-items: start;
}

.tutorial-aside {
  padding: 20px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(14, 14, 14, 0.97), rgba(6, 6, 6, 0.94));
  position: sticky;
  top: 120px;
  align-self: start;
  box-shadow: var(--shadow-soft);
  max-height: calc(100vh - 160px);
  overflow: auto;
}

.tutorial-aside h3 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc {
  display: grid;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.toc li {
  display: grid;
}

.toc a {
  color: var(--white);
  display: block;
  padding: 6px 10px;
  border-radius: 10px;
  border-left: 2px solid rgba(122, 15, 28, 0.2);
  transition: color 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.toc a:hover {
  color: var(--white);
  border-left-color: rgba(122, 15, 28, 0.7);
  background: rgba(122, 15, 28, 0.12);
}

.toc a.is-active {
  color: var(--white);
  border-left-color: rgba(122, 15, 28, 0.95);
  background: rgba(58, 8, 13, 0.24);
  font-weight: 600;
}

.tutorial-article {
  display: grid;
  gap: 34px;
  width: 100%;
  max-width: 900px;
  background: linear-gradient(180deg, rgba(14, 14, 14, 0.94), rgba(6, 6, 6, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 34px 38px;
  box-shadow: var(--shadow);
  font-size: 1.02rem;
}

.tutorial-article section {
  scroll-margin-top: 140px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.tutorial-article section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tutorial-article section:target {
  border: 1px solid rgba(122, 15, 28, 0.35);
  background: rgba(58, 8, 13, 0.12);
  border-radius: 14px;
  padding: 18px 20px;
}

.tutorial-article h2 {
  font-size: 1.7rem;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 14px;
}

.tutorial-article h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(122, 15, 28, 0.8);
}

.tutorial-article p {
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 14px;
}

.tutorial-article h3 {
  font-size: 1.2rem;
  margin: 18px 0 10px;
  letter-spacing: -0.01em;
}

.code-block {
  background: linear-gradient(150deg, rgba(12, 12, 16, 0.96), rgba(8, 8, 10, 0.94));
  border-radius: var(--radius-sm);
  border: 1px solid var(--code-border);
  border-left: 2px solid rgba(122, 15, 28, 0.55);
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.7;
  overflow-x: auto;
  color: var(--code-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--shadow-soft);
  position: relative;
  tab-size: 2;
  margin: 12px 0 18px;
}

.code-block code {
  color: inherit;
  display: block;
}

pre[class*="language-"] {
  background: transparent;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: var(--code-muted);
}

.token.punctuation {
  color: var(--code-punct);
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
  color: var(--code-const);
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: var(--code-string);
}

.token.operator,
.token.entity,
.token.url,
.token.variable {
  color: var(--code-operator);
}

.token.atrule,
.token.attr-value,
.token.keyword {
  color: var(--code-keyword);
}

.token.function,
.token.class-name {
  color: var(--code-function);
}

.tutorial-article code {
  font-family: var(--mono);
  color: var(--code-inline-text);
}

.tutorial-article p code,
.tutorial-article li code {
  background: var(--code-inline-bg);
  border: 1px solid rgba(122, 15, 28, 0.25);
  padding: 2px 6px;
  border-radius: 6px;
}

.bullet-list {
  display: grid;
  gap: 12px;
  color: var(--text);
  line-height: 1.7;
  margin: 10px 0 18px;
}

.bullet-list li {
  position: relative;
  padding-left: 18px;
}

.bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--red-bright);
}

.callout {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(122, 15, 28, 0.5);
  border-left: 3px solid rgba(122, 15, 28, 0.7);
  background: linear-gradient(140deg, rgba(58, 8, 13, 0.28), rgba(8, 8, 8, 0.65));
  font-family: var(--mono);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  line-height: 1.6;
  margin: 14px 0;
}

.tutorial-article table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.8rem;
  margin-top: 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(8, 8, 8, 0.85);
  box-shadow: var(--shadow-soft);
}

.tutorial-article th,
.tutorial-article td {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 12px;
  text-align: left;
  color: var(--text);
}

.tutorial-article th {
  color: var(--white);
  background: rgba(12, 12, 12, 0.9);
}

.tutorial-article tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 16px;
}

.lesson-card {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(150deg, rgba(14, 14, 14, 0.94), rgba(6, 6, 6, 0.9));
  display: grid;
  gap: 10px;
  transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-soft);
  min-height: 190px;
}

.lesson-card h3 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.lesson-card:hover {
  transform: translateY(-4px);
  border-color: rgba(122, 15, 28, 0.4);
  box-shadow: var(--shadow-lift);
}

.lesson-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .site-header {
    left: 4vw;
    right: 4vw;
  }

  .status-pill {
    display: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 14px 18px;
  }

  .site-nav {
    display: none;
  }

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

  .hero {
    min-height: auto;
  }

  .tile.large {
    grid-column: span 1;
  }

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .tutorial-layout {
    grid-template-columns: 1fr;
  }

  .tutorial-aside {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .tutorial-article {
    padding: 22px;
  }

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

  .tutorial-hero-copy {
    max-width: none;
  }

  .tutorial-panel {
    padding: 22px;
  }

  .tutorial-index-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 120px 6vw 120px;
  }

  .hero-metrics {
    flex-direction: column;
  }

  .profile-data div {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-data dd {
    text-align: left;
  }

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

  .nav-overlay-links {
    font-size: 1.6rem;
  }

  .nav-overlay-meta {
    flex-direction: column;
  }

  .search-input {
    padding: 10px 12px;
  }

  .search-panel {
    padding: 16px;
  }

  .panel-step {
    flex-direction: column;
  }

  .tutorial-list a {
    flex-direction: column;
    align-items: flex-start;
  }

  .code-block {
    font-size: 0.75rem;
  }

  .lightbox-image {
    max-height: 60vh;
  }

  .floating-cta,
  .scroll-top {
    bottom: 18px;
  }
}

@media (hover: none) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .preloader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
