:root {
  --bg: #040504;
  --panel: rgba(10, 12, 10, 0.35);
  --panel-2: rgba(15, 18, 15, 0.40);
  --ink: #f4f7fb;
  --muted: #A3B5AA;
  --soft: #dce7f5;
  --line: rgba(0, 229, 117, 0.12);
  --panel-border: rgba(0, 229, 117, 0.15);
  --accent: #00e575;
  --accent-glow: rgba(0, 229, 117, 0.3);
  --accent-2: #00ff87;
  --danger: #ff4a4a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 3px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 18px rgba(0, 229, 117, 0.25);
  --shadow-inset: inset 0 2px 8px rgba(0, 0, 0, 0.6);
  --radius: 12px;
  --max: 1200px;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  --font-display: 'Space Grotesk', var(--font-sans);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 117, 0.15);
  border: 2px solid var(--bg);
  border-radius: 4px;
  transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}


@font-face {
  font-family: "Nik Brew Local";
  src: url("fonts/Nik_Brew_Latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF;
}

@font-face {
  font-family: "Nik Brew Local";
  src: url("fonts/Nik_Brew_Cyrillic.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-04FF;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  top: -96px;
  left: -96px;
  width: calc(100% + 192px);
  height: calc(100% + 192px);
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 20%, rgba(0, 229, 117, 0.08) 0%, transparent 60%),
    linear-gradient(rgba(0, 229, 117, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 117, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
  animation: fieldDrift 60s linear infinite;
  will-change: transform;
}

body.lang-ru .en,
body.lang-en .ru { display: none !important; }

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }

.skip-link {
  position: absolute;
  left: 14px;
  top: 10px;
  z-index: 100;
  padding: 9px 12px;
  border-radius: 6px;
  background: var(--ink);
  color: #0a0f15;
  font-weight: 850;
  transform: translateY(-140%);
  transition: transform .15s ease;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--panel-border);
  background: var(--panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.topbar-inner,
.hero-inner,
.page-hero-inner,
.section,
.footer-inner,
.contact-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.topbar-inner {
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 900;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-sans);
  font-size: 16px;
  letter-spacing: 0;
}

.brand-sub {
  font-size: 9px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

@media (min-width: 981px) {
  .brand-text {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .brand-sub {
    font-size: 11px;
  }
  .brand-sub::before {
    content: "|";
    margin-right: 8px;
    color: rgba(0, 229, 117, 0.3);
  }
}

.mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
  flex: 0 0 auto;
  box-shadow: 0 0 10px rgba(0, 229, 117, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.nav-link,
.lang-button,
.button {
  min-height: 44px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 780;
  white-space: nowrap;
}

.nav-link {
  position: relative;
  padding: 8px 10px;
  color: var(--muted);
  transition: color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 8px var(--accent), 0 0 4px var(--accent);
  transform: translate(-50%, 0) scale(0);
  transition: transform 0.3s var(--ease-out);
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: var(--ink);
  background: transparent;
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: translate(-50%, 0) scale(1);
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgba(255,255,255,0.05); backdrop-filter: blur(24px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.lang-button {
  min-width: 44px;
  border: 0;
  padding: 6px 12px;
  border-radius: 9999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  opacity: 1;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.lang-button:hover:not(.is-active) {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
}

.lang-button.is-active {
  background: var(--accent);
  color: #040504;
  opacity: 1;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 229, 117, 0.25);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000, transparent 84%);
}

.hero::after {
  display: none !important;
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 640px;
  padding-top: 86px;
  padding-bottom: 70px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(min(100%, 420px), 0.78fr);
  align-items: center;
  gap: 32px;
}

.hero-copy {
  display: grid;
  gap: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.brand-script {
  margin: 0 0 12px;
  padding-bottom: .12em;
  color: var(--accent-2);
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  opacity: .92;
  text-shadow: 0 0 26px rgba(246, 200, 95, .22);
}

h1 {
  margin: 0;
  max-width: 900px;
  padding-bottom: .08em;
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.page-hero h1 {
  font-size: 40px;
}

.lead {
  margin: 0;
  max-width: 770px;
  color: var(--muted);
  font-size: 19px;
}

.actions,
.card-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button {
  padding: 8px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease-out), border-color 0.2s var(--ease-out), background 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.button:hover {
  border-color: var(--accent);
  background: rgba(94, 234, 212, 0.13);
  transform: translateY(-1.5px) scale(1.01);
  box-shadow: var(--shadow-glow);
}

.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.button.primary {
  border-color: rgba(94, 234, 212, 0.72);
  background: var(--accent);
  color: #06100e;
}

.button.primary:hover {
  box-shadow: var(--shadow-glow);
}

.button.dark {
  border-color: rgba(246, 200, 95, 0.54);
  background: rgba(246, 200, 95, 0.12);
  color: var(--ink);
}

.button.hero-button {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.hero-art {
  min-width: 0;
  animation: cardFloat 8s ease-in-out infinite;
}

.route-board,
.review-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 23, 34, 0.9);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.route-kicker {
  margin: 0 0 2px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.route-choice {
  min-height: 132px;
  padding: 12px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 150px;
  align-items: stretch;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.route-choice:hover {
  transform: translateY(-3px);
  border-color: rgba(94, 234, 212, .5);
  background: rgba(94, 234, 212, .09);
}

.route-index {
  width: 52px;
  min-height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(94, 234, 212, .12);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 950;
}

.route-content {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 7px;
}

.route-content strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.12;
}

.route-content small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.route-preview {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #0d141e;
}

.route-preview img {
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.route-preview-motion img {
  object-position: center;
}

.route-note {
  padding: 10px 12px;
  border: 1px dashed rgba(246, 200, 95, .34);
  border-radius: 8px;
  color: var(--soft);
  font-size: 14px;
}

.review-panel {
  background:
    linear-gradient(180deg, rgba(17, 21, 20, 0.96), rgba(13, 16, 15, 0.96)),
    linear-gradient(90deg, rgba(72,214,189,.1), transparent);
}

.review-item {
  min-height: 112px;
  padding: 12px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.review-item span:last-child {
  display: grid;
  gap: 6px;
}

.review-item strong {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.12;
}

.review-item small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.proof-strip {
  max-width: var(--max);
  margin: -32px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 3;
}

.page-proof {
  margin-top: -22px;
}

.proof-grid,
.category-grid,
.project-grid,
.mini-grid {
  display: grid;
  gap: 16px;
}

.proof-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
}

.proof-item {
  min-height: 108px;
  padding: 16px;
  background: rgba(16, 23, 34, 0.94);
}

.proof-value {
  display: block;
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 28px;
  line-height: 1.14;
  font-weight: 950;
}

.proof-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.section {
  padding-top: 74px;
  scroll-margin-top: 100px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.54fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 26px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.1;
}

.section-note {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}

.category-card,
.project-card,
.mini-card {
  border: 1px solid rgba(255,255,255,0.05); backdrop-filter: blur(24px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

.category-card {
  min-height: 360px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-visual {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d141e;
}

.category-visual img {
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.category-visual.ai img { object-position: center; }

.category-number {
  width: fit-content;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 7px;
  background: rgba(94, 234, 212, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.category-card h2,
.mini-card h3 {
  margin: 0;
  line-height: 1.14;
}

.category-card h2 { font-size: 25px; }

.category-card p,
.mini-card p,
.project-card p {
  margin: 0;
  color: var(--muted);
}

.category-card .button {
  margin-top: auto;
  width: fit-content;
}

.page-hero-inner {
  position: relative;
  padding-top: 78px;
  padding-bottom: 64px;
  display: grid;
  gap: 22px;
}

.theme-sites .page-hero {
  background:
    linear-gradient(90deg, rgba(7, 8, 7, 0.96), rgba(7, 8, 7, 0.76)),
    url("headphones-site.png") top right / min(760px, 62vw) auto no-repeat;
}

.theme-bots .page-hero {
  background:
    linear-gradient(90deg, rgba(8, 11, 15, 0.96), rgba(8, 11, 15, 0.68)),
    url("bot-pipeline.svg") center right / min(760px, 58vw) auto no-repeat,
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(23, 102, 91, 0.5)),
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: auto, min(760px, 58vw) auto, auto, 44px 44px, 44px 44px;
}

.theme-games .page-hero {
  background:
    linear-gradient(90deg, rgba(8, 11, 15, 0.96), rgba(8, 11, 15, 0.68)),
    linear-gradient(135deg, rgba(22, 17, 30, 0.92), rgba(89, 67, 36, 0.48)),
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
}

.theme-minimax .page-hero {
  background:
    linear-gradient(90deg, rgba(8, 11, 15, 0.96), rgba(8, 11, 15, 0.66)),
    linear-gradient(135deg, rgba(13, 25, 31, 0.94), rgba(105, 75, 35, 0.44)),
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
}

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

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.project-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--accent);
  box-shadow: none;
}

.category-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow), var(--shadow-md);
}

.project-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0d141e;
  border-bottom: 1px solid var(--line);
}

.project-visual img {
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Lazy loaded images and glassmorphism placeholders */
.lazy-img {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lazy-img.loaded {
  opacity: 1;
}

.project-visual.img-loading,
.editorial-visual.img-loading {
  background: rgba(255, 255, 255, 0.02) !important;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.project-visual.img-loading::before,
.editorial-visual.img-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(0, 229, 117, 0.05) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: lazy-shimmer 1.8s infinite linear;
  pointer-events: none;
  z-index: 2;
}

/* Light theme adjustments */
html[data-theme="light"] .project-visual.img-loading,
html[data-theme="light"] .editorial-visual.img-loading {
  background: rgba(0, 0, 0, 0.02) !important;
}

html[data-theme="light"] .project-visual.img-loading::before,
html[data-theme="light"] .editorial-visual.img-loading::before {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(22, 101, 52, 0.05) 50%,
    rgba(0, 0, 0, 0) 100%
  );
}

@keyframes lazy-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}


.project-visual.career img,
.project-visual.mini-shot img {
  object-fit: cover;
  object-position: top center;
}

.project-visual.career {
  background: #111719;
}

.project-visual.mini-shot {
  background: #f4efe5;
}

.project-visual.medic-shot {
  background: #dff3ef;
}

.project-visual.bot {
  display: grid;
  align-content: end;
  padding: 16px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(10, 21, 35, 0.95), rgba(23, 102, 91, 0.78)),
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
}

.project-visual.bot::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 54px;
  width: 126px;
  height: 86px;
  border: 1px solid rgba(94, 234, 212, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(94, 234, 212, 0.18) 1px, transparent 1px),
    linear-gradient(rgba(94, 234, 212, 0.14) 1px, transparent 1px),
    linear-gradient(135deg, rgba(94, 234, 212, 0.1), rgba(246, 200, 95, 0.1));
  background-size: 18px 18px, 18px 18px, auto;
}

.project-visual.bot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  transform: translateX(-100%);
  animation: scanLine 4.8s ease-in-out infinite;
}

.project-visual.news {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(62, 96, 163, 0.76)),
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
}

.project-visual.realty {
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(164, 94, 48, 0.74)),
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
}

.project-visual.brain {
  background:
    linear-gradient(135deg, rgba(18, 24, 28, 0.98), rgba(48, 88, 113, 0.74)),
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
}

.project-visual.hunter {
  background:
    linear-gradient(135deg, rgba(16, 18, 16, 0.98), rgba(83, 93, 48, 0.74)),
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
}

.project-visual.liarline,
.game-visual {
  background:
    linear-gradient(135deg, rgba(17, 18, 24, 0.98), rgba(106, 79, 42, 0.76)),
    radial-gradient(circle at 77% 28%, rgba(255, 216, 146, 0.24), transparent 31%),
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px, 28px 28px;
}

.game-visual {
  padding: 16px;
  display: grid;
  align-content: end;
}

.game-visual strong {
  color: var(--ink);
  font-size: 30px;
  line-height: 1.04;
}

.project-visual.medsearch {
  background:
    linear-gradient(135deg, rgba(10, 22, 30, 0.98), rgba(34, 123, 116, 0.78)),
    radial-gradient(circle at 78% 30%, rgba(120, 230, 214, 0.24), transparent 32%),
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px, 28px 28px;
}

.project-visual.belita {
  background:
    linear-gradient(135deg, rgba(31, 18, 28, 0.98), rgba(128, 66, 106, 0.75)),
    radial-gradient(circle at 78% 30%, rgba(255, 202, 219, 0.24), transparent 31%),
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px, 28px 28px;
}

.project-visual.lab {
  background:
    linear-gradient(135deg, rgba(25, 19, 35, 0.98), rgba(93, 70, 123, 0.72)),
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
}

.project-visual.minimax {
  display: grid;
  align-content: end;
  padding: 16px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(10, 23, 29, 0.98), rgba(110, 76, 34, 0.76)),
    radial-gradient(circle at 76% 28%, rgba(246, 200, 95, 0.24), transparent 32%),
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px, 28px 28px;
}

.project-visual.minimax::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.13), transparent);
  transform: translateX(-100%);
  animation: scanLine 5.2s ease-in-out infinite;
}

.project-visual.minimax::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 54px;
  width: 118px;
  height: 82px;
  border: 1px solid rgba(246, 200, 95, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(246, 200, 95, 0.18) 1px, transparent 1px),
    linear-gradient(rgba(94, 234, 212, 0.14) 1px, transparent 1px),
    linear-gradient(135deg, rgba(246, 200, 95, 0.1), rgba(94, 234, 212, 0.1));
  background-size: 18px 18px, 18px 18px, auto;
}

.terminal-line {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-weight: 750;
  font-size: 13px;
  color: rgba(244, 247, 251, 0.74);
}

.visual-title {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 270px;
  font-size: 30px;
  line-height: 1.04;
  font-weight: 950;
}

.badge-row {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 880;
  background: rgba(244, 247, 251, 0.92);
  color: #0a0f15;
}

.card-body {
  padding: 16px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
}

.card-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.16;
}

.role-row {
  color: var(--accent-2) !important;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.meta-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--soft);
  font-size: 14px;
}

.meta-list li {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.meta-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  margin-top: 7px;
  flex: 0 0 auto;
  background: var(--accent);
}

.card-footer {
  margin-top: auto;
  display: grid;
  gap: 16px;
}

.status {
  width: fit-content;
  border: 1px solid rgba(94, 234, 212, 0.28);
  background: rgba(94, 234, 212, 0.12);
  color: var(--accent);
  gap: 6px;
}

.status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 6px currentColor;
  animation: statusLedPulse 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes statusLedPulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
    box-shadow: 0 0 10px currentColor;
  }
}

.status-muted {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  color: var(--soft);
}

.status-review {
  border-color: rgba(246, 200, 95, 0.34);
  background: rgba(246, 200, 95, 0.12);
  color: #ffd892;
}

.status-win {
  border-color: rgba(94, 234, 212, 0.38);
  background: rgba(94, 234, 212, 0.15);
  color: #8ff4df;
}

.muted-button {
  cursor: default;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

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

.mini-card {
  min-height: 220px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mini-card a {
  margin-top: auto;
  color: var(--accent);
  font-weight: 850;
  font-size: 14px;
}

.archive-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 23, 34, 0.9);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.archive-row {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.archive-row:first-child { border-top: 0; }

.archive-title {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.archive-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.archive-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.archive-link {
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 850;
}

.archive-link:hover {
  border-color: rgba(94, 234, 212, 0.6);
  background: rgba(94, 234, 212, 0.1);
}

.note-box {
  padding: 16px;
  border: 1px dashed rgba(246, 200, 95, 0.34);
  border-radius: var(--radius);
  background: rgba(246, 200, 95, 0.06);
  color: var(--soft);
}

.contact {
  margin-top: 74px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.contact-inner {
  padding-top: 50px;
  padding-bottom: 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.contact h2 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.1;
}

.contact p {
  margin: 0;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--line);
  background: rgba(8, 11, 15, 0.9);
  color: var(--muted);
}

@keyframes fieldDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(48px, -48px, 0); }
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0) rotateX(0); }
  50% { transform: translateY(-8px) rotateX(2deg); }
}

@keyframes scanLine {
  0%, 45% { transform: translateX(-120%); }
  70%, 100% { transform: translateX(120%); }
}

.footer-inner {
  padding-top: 18px;
  padding-bottom: 26px;
  font-size: 13px;
}

@media (max-width: 980px) {
  h1 { font-size: 38px; }
  .page-hero h1 { font-size: 34px; }
  .hero-inner,
  .section-head,
  .contact-inner {
    grid-template-columns: 1fr;
  }
  .project-grid,
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-grid,
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { min-height: 0; }
  .route-choice { grid-template-columns: 48px minmax(0, 1fr) 128px; }
}

@media (max-width: 680px) {
  .topbar-inner {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .brand {
    flex-shrink: 0;
  }
  .nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    justify-content: flex-start;
    gap: 4px;
    width: auto;
    margin-left: 8px;
    flex: 1 1 auto;
  }
  .nav-link {
    flex-shrink: 0;
  }
  .nav-controls {
    flex-shrink: 0;
    margin-left: auto;
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
  .lang-switch {
    flex-shrink: 0;
  }
  .hero-inner {
    padding-top: 48px;
    padding-bottom: 52px;
  }
  .page-hero-inner {
    padding-top: 54px;
    padding-bottom: 48px;
  }
  h1,
  .page-hero h1 {
    font-size: 28px;
    line-height: 1.1;
  }
  .lead { font-size: 17px; }
  .proof-grid,
  .project-grid,
  .category-grid,
  .mini-grid { grid-template-columns: 1fr; }
  .route-board { padding: 12px; }
  .review-panel { padding: 12px; }
  .route-choice {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 0;
  }
  .review-item {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 0;
  }
  .route-preview {
    grid-column: 1 / -1;
    height: 150px;
  }
  .route-content strong { font-size: 19px; }
  .review-item strong { font-size: 18px; }
  .section { padding-top: 52px; }
  .section-title,
  .contact h2 { font-size: 24px; }
  .contact-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .contact-actions {
    justify-content: center;
    width: 100%;
  }
  .button {
    width: auto;
  }
  .actions,
  .card-actions,
  .contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .actions .button,
  .card-actions .button,
  .contact-actions .button {
    flex: 1 0 auto;
    justify-content: center;
  }
  .archive-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .archive-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (min-width: 1200px) {
  .theme-sites .page-hero {
    background-position: left top, right calc(50% - 590px) top;
  }
  .theme-bots .page-hero {
    background-position: left top, right calc(50% - 590px) center, left top, left top, left top;
  }
}

@media (max-width: 768px) {
  .theme-sites .page-hero,
  .theme-bots .page-hero {
    background-position: bottom right;
    background-size: min(280px, 45vw) auto;
    opacity: 0.2;
  }
}
/* Carousel Animations */
.carousel-slide {
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  opacity: 1;
  transform: translateY(0);
  will-change: opacity, transform;
}

.carousel-slide[aria-hidden="true"] {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  position: absolute;
}

.carousel-container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-slide {
    transition: none !important;
  }
}

/* Premium Horizontal Carousel for Desktop */
@media (min-width: 900px) {
  .carousel-container .project-card {
    flex-direction: row;
    height: 480px; /* Give it a nice featured height */
  }
  .carousel-container .project-visual {
    width: 55%;
    height: 100%;
    aspect-ratio: auto; /* override 16/10 */
  }
  .carousel-container .project-visual img {
    height: 100%;
    object-fit: cover;
  }
  .carousel-container .card-body {
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 48px; /* Bigger padding for featured card */
  }
  .carousel-container .card-title {
    font-size: 32px; /* Bigger title */
    margin-bottom: 24px;
  }
  .carousel-container .card-body p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
  }
}

/* Category grid overrides for 3-column layout */
@media (min-width: 981px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 980px) and (min-width: 681px) {
  .category-grid .category-card:nth-child(3) {
    grid-column: span 2;
  }
}

/* Global Focus Ring */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Category Visual Transitions */
#cat-sites-img,
#cat-bots-img,
#cat-games-visual {
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity;
}

/* ==========================================================================
   VIBE CODING REDESIGN COMPONENTS
   ========================================================================== */

/* Text Highlight */
.text-neon {
  color: var(--accent-2);
  text-shadow: 0 0 12px var(--accent-glow);
}

/* Hero Section Custom Styles */
.hero {
  border-bottom: 1px solid var(--line);
  padding: 40px 0 20px;
}
.hero-tag-wrapper {
  margin-bottom: 12px;
}
.hero-tag {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.hero-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 0 32px;
  line-height: 1.6;
}
.hero-social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.social-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s var(--ease-out);
}
.social-link:hover {
  border-color: var(--accent);
  background: rgba(0, 229, 117, 0.08);
  color: var(--accent);
}
.social-link svg {
  color: var(--accent);
}

/* Hologram Canvas and Nodes */
.hero-art-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hologram-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 440px;
}
#hologram-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.hologram-nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.node-btn {
  position: absolute;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
  z-index: 5;
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.node-btn:hover {
  transform: translate(-50%, -50%) translateY(-2px);
}
.node-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #00ff87;
  box-shadow: 0 0 10px rgba(0, 255, 135, 0.8);
  position: relative;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}
.node-dot::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 1px solid #00ff87;
  opacity: 0;
  animation: nodeDotPulse 2s cubic-bezier(0.25, 0, 0, 1) infinite;
}
@keyframes nodeDotPulse {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}
.node-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.node-title {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.8);
  transition: color 0.3s ease;
}
.node-desc {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #00ff87;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 5px rgba(0, 255, 135, 0.4);
  margin-top: 1px;
}
.node-btn:hover .node-dot {
  transform: scale(1.3);
}
.node-btn:hover .node-title {
  color: #00ff87;
}
.node-ai { top: 12%; left: 4%; }
.node-bots { top: 18%; right: -2%; }
.node-web { top: 48%; left: -6%; }
.node-games { bottom: 22%; left: 4%; }
.node-minimax { bottom: 15%; right: -2%; }

.hologram-instruction {
  position: absolute;
  bottom: 4%;
  right: 4%;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  background: var(--panel-2);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.05); backdrop-filter: blur(24px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transition: width 1s cubic-bezier(0.25, 1, 0.5, 1);
  animation: pulseGreen 1.5s infinite ease-in-out;
}
@keyframes pulseGreen {
  0%, 100% { opacity: 0.5; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Evidence Wall Styles */
.stats-strip {
  max-width: var(--max);
  margin: -50px auto 0;
  padding: 24px 20px;
  position: relative;
  z-index: 5;
}
.evidence-wall {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1px;
  background: rgba(0, 229, 117, 0.15);
  border: 1px solid rgba(0, 229, 117, 0.15);
  border-radius: 6px;
  overflow: hidden;
  width: 100%;
}
.wall-cell {
  background: var(--panel);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100px;
  box-sizing: border-box;
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.wall-cell:hover {
  background: rgba(0, 229, 117, 0.03);
}
#cell-uptime {
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 80px;
}
#cell-uptime .cost-col {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
#cell-uptime .cost-col .cell-title,
#cell-uptime .cost-col .cell-value-wrap {
  justify-content: flex-start;
}
#cell-uptime .brand-text {
  color: var(--brand, #00e575);
}
#cell-uptime .fw-800 {
  font-weight: 800;
}
.cell-ai-compute {
  grid-column: 1;
  grid-row: 1 / span 2;
  min-height: 216px;
  container-type: inline-size;
}
.cell-runtime {
  grid-column: 1 / span 2;
  min-height: auto;
  padding: 12px 16px;
}
.cell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}
.cell-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  opacity: 0.4;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-transform: uppercase;
}
.cell-value-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.cell-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wall-cell:not(.cell-ai-compute) .cell-value {
  font-size: 28px;
}
.cell-ai-compute .cell-value {
  font-size: clamp(4rem, 11cqi, 5.2rem) !important; /* Увеличено на 15-20% */
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 30%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  box-shadow: none;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.cell-main-metrics {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.cell-desc-main {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.9;
}

.cell-status-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-dot-flat {
  width: 6px;
  height: 6px;
  background-color: #10b981; /* Чистый Emerald-зеленый без свечения */
  border-radius: 50%;
  flex-shrink: 0;
}

.status-text-flat {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.5;
  color: var(--ink);
}

.cell-desc-footer {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  opacity: 0.6;
}
.cell-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  background: rgba(0, 229, 117, 0.1);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 229, 117, 0.2);
}
.cell-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.inline-sparkline {
  width: 85px;
  height: 16px;
  margin-left: 10px;
  display: inline-block;
  vertical-align: middle;
  opacity: 0.45;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cell-ai-compute:hover .inline-sparkline {
  opacity: 0.85;
}
.status-dot.green {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00e575;
  box-shadow: 0 0 8px #00e575;
  animation: statusDotPulse 2s infinite ease-in-out;
}
@keyframes statusDotPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.runtime-compact {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 6px;
}

/* Node Highlight and HUD Styles */
.node-btn-inner {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px 8px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out), border-color 0.3s ease;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
}
.node-btn.node-dimmed {
  opacity: 0.25 !important;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.node-btn.node-highlighted {
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1.25) !important;
  z-index: 10 !important;
}
.node-btn.node-wave-pulse {
  transform: translate(-50%, -50%) scale(1.15) !important;
}

/* Responsive bento grid overrides */
@media (max-width: 900px) {
  .evidence-wall {
    grid-template-columns: 1fr !important;
    gap: 15px;
    padding: 15px;
  }
  .bento-item-double {
    grid-column: span 1;
    flex-direction: column !important;
    align-items: stretch;
  }
}

/* Explorer (Catalog) Section */
.explorer-section {
  padding-bottom: 60px;
}
.section-title-block {
  display: flex;
  flex-direction: column;
}
.section-title-block h2 {
  font-family: var(--font-display);
  font-size: 32px;
  margin: 8px 0;
  color: var(--ink);
}
.sub-lead {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}
.search-box-container {
  display: flex;
  justify-content: flex-end;
}
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: min(280px, 100%);
  max-width: 100%;
  box-sizing: border-box;
  background: var(--panel-2);
  border: 1px solid rgba(0, 229, 117, 0.2);
  border-radius: 6px;
  padding: 8px 12px;
  transition: all 0.3s var(--ease-out);
}
.search-input-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 229, 117, 0.25);
}
.search-icon {
  color: var(--muted);
  margin-right: 8px;
  display: flex;
}
.search-input {
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 13px;
  width: 100%;
  outline: none;
}
.search-shortcut {
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--muted);
  margin-left: 8px;
  white-space: nowrap;
}

/* Explorer Layout */
.archive-container {
  width: 100%;
  margin-top: 32px;
}

/* Horizontal control bar */
.archive-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(0, 229, 117, 0.15);
  padding-bottom: 16px;
  flex-wrap: wrap;
}

.archive-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
}

.active-tab-pill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  border-radius: 6px;
  pointer-events: none;
  z-index: 0;
  will-change: transform, width;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.archive-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s var(--ease-out);
  position: relative;
  z-index: 1;
}

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

.archive-tab.active {
  color: var(--ink);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  font-weight: 600;
}

.archive-actions-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.archive-search-wrapper {
  position: relative;
  width: min(240px, 100%);
  max-width: 100%;
  box-sizing: border-box;
}

.archive-search-wrapper .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.archive-search-wrapper .search-input {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid rgba(0, 229, 117, 0.2);
  padding: 8px 12px 8px 34px;
  border-radius: 6px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13.5px;
  transition: all 0.3s var(--ease-out);
  outline: none;
}

.archive-search-wrapper .search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 229, 117, 0.25);
}

.archive-search-wrapper .search-shortcut {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  pointer-events: none;
}

.archive-search-wrapper .search-shortcut kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  padding: 1px 3px;
}

/* Advanced filters drawer */
.advanced-filters-drawer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease, margin-bottom 0.3s ease, padding 0.3s ease;
  opacity: 0;
  background: var(--panel-2);
  border: 1px solid transparent;
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin-bottom: 0;
}

.advanced-filters-drawer.active {
  max-height: 500px;
  opacity: 1;
  border: 1px solid rgba(0, 229, 117, 0.15);
  padding: 24px;
  margin-bottom: 24px;
}

.drawer-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.drawer-column {
  display: flex;
  flex-direction: column;
}

.drawer-column h4 {
  margin: 0 0 12px 0;
  font-family: var(--font-display);
  font-size: 14px;
  color: #fff;
  border-bottom: 1px solid rgba(0, 229, 117, 0.08);
  padding-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Custom checkbox inside drawer */
.checkbox-filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
  user-select: none;
  transition: color 0.2s ease;
  gap: 8px;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: relative;
  height: 16px;
  width: 16px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  transition: all 0.2s var(--ease-out);
  flex-shrink: 0;
}

.custom-checkbox:hover {
  color: var(--ink);
}

.custom-checkbox:hover .checkmark {
  border-color: rgba(0, 229, 117, 0.4);
  box-shadow: 0 0 6px rgba(0, 229, 117, 0.15);
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(0, 229, 117, 0.35);
}

.custom-checkbox input:checked ~ .label-text,
.custom-checkbox input:checked ~ span:not(.checkmark) {
  color: var(--ink);
}

.checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark::after {
  display: block;
}

/* Archive List View - Table styling */
.archive-list-view {
  width: 100%;
  overflow-x: auto;
}

.editorial-row {
  display: grid;
  grid-template-columns: 32fr 48fr 20fr;
  gap: 24px;
  padding: 24px;
  margin-bottom: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.025);
  box-shadow: var(--shadow-sm);
  background-color: var(--panel);
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 300ms cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
  cursor: pointer;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

.editorial-row:hover,
.editorial-row.focused {
  background-color: var(--panel-hover);
  border-color: rgba(16, 185, 129, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.editorial-visual {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.editorial-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 229, 117, 0.08), transparent 60%);
  mix-blend-mode: color;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
  z-index: 2;
}

.editorial-row:hover .editorial-visual::after,
.editorial-row.focused .editorial-visual::after {
  opacity: 0;
}

.editorial-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out), filter 0.5s;
  filter: grayscale(35%) brightness(0.85);
}

.editorial-row:hover .editorial-visual img,
.editorial-row.focused .editorial-visual img {
  transform: scale(1.02);
  filter: grayscale(0%) brightness(1);
}

.editorial-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.editorial-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.6;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.editorial-meta-top .category {
  color: var(--accent);
}

.meta-secondary {
  font-size: 11px;
  opacity: 0.6;
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
}

.editorial-content h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 12px 0;
  transition: color 0.3s var(--ease-out);
  line-height: 1.2;
}

.editorial-row:hover .editorial-content h3,
.editorial-row.focused .editorial-content h3 {
  color: var(--ink);
}

.editorial-desc {
  font-size: 14.5px;
  line-height: 1.55;
  opacity: 0.85;
  color: var(--muted);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.editorial-stats-pane {
  display: flex;
  flex-direction: column;
  gap: 13px;
  justify-content: center;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.editorial-stats-pane .stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-family: var(--font-mono);
}

.editorial-stats-pane .stat-row .stat-label {
  color: var(--muted);
  opacity: 1;
}

.editorial-stats-pane .stat-row .stat-value {
  color: var(--ink);
  font-weight: 500;
}

.editorial-stats-pane .stat-row.status-row .stat-value {
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
}

.editorial-meta-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: auto;
}

.editorial-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ccc;
}

.editorial-tag.accent-pill {
  background: rgba(0, 229, 117, 0.08);
  border-color: rgba(0, 229, 117, 0.15);
  color: var(--accent);
}

.editorial-status {
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

/* Adaptability for Archive page */
@media (max-width: 1024px) {
  .editorial-row {
    grid-template-columns: 40fr 60fr;
  }
  .editorial-stats-pane {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 16px;
  }
}

@media (max-width: 900px) {
  .drawer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .editorial-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }
  .editorial-visual {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .drawer-inner {
    grid-template-columns: 1fr;
  }
  .archive-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .archive-search-wrapper {
    width: 100%;
  }
}

.card-vibe-progress-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.progress-status-text {
  color: var(--muted);
}
.progress-val {
  font-family: var(--font-mono);
  color: var(--accent);
}
.progress-bar-vibe {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
.progress-bar-vibe.large {
  height: 6px;
  border-radius: 3px;
}
.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transition: width 1s cubic-bezier(0.25, 1, 0.5, 1);
  border-radius: 2px;
}

/* Git status log in dev slides */
.git-status-log {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 8px 16px;
  margin-bottom: 18px;
  width: 100%;
  box-sizing: border-box;
}

[data-theme="light"] .git-status-log {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

.git-branch-lbl, .git-commits-lbl, .git-time-lbl {
  display: inline-flex;
  align-items: center;
}

.git-branch, .git-commits, .git-time {
  color: var(--accent);
  font-weight: 600;
  margin-left: 4px;
}

/* In Development Carousel */
.in-dev-section {
  border-top: 1px solid var(--line);
  padding: 64px 0;
  position: relative;
}
.in-dev-carousel {
  position: relative;
  width: 100%;
  min-height: 380px;
}
.in-dev-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
.in-dev-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 2;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}
.nav-dot {
  width: 48px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  padding: 0;
}
.nav-dot:hover {
  background: rgba(255, 255, 255, 0.3);
}
.nav-dot.active {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transition: width 1s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Agent Studio Mockup */
.agent-studio-mockup {
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
}
.node-editor-body {
  position: relative;
  overflow: hidden;
  height: 260px;
}
.node-canvas {
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  position: relative;
}
.ai-node {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  position: absolute;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.input-node { top: 40px; left: 30px; border-color: rgba(0, 229, 117, 0.3); }
.process-node { top: 120px; left: 200px; border-color: rgba(0, 229, 117, 0.6); }
.output-node { top: 60px; left: 360px; border-color: rgba(56, 189, 248, 0.5); }
.node-edge {
  position: absolute;
  pointer-events: none;
}
.node-edge:nth-of-type(1) { top: 60px; left: 130px; width: 70px; height: 60px; }
.node-edge:nth-of-type(2) { top: 80px; left: 300px; width: 60px; height: 40px; }

/* Telegram Bot Mockup */
.tg-bot-mockup {
  width: 100%;
  max-width: 320px;
  height: auto;
  min-height: 380px;
  margin: 0 auto;
}
.tg-status {
  font-size: 11px;
  color: var(--accent);
  margin-left: auto;
  font-family: var(--font-mono);
  background: rgba(0, 229, 117, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}
.chat-body {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 16px;
  background: #0f172a;
  height: 100%;
  overflow: hidden;
}
.tg-message {
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
  max-width: 85%;
  font-family: var(--font-sans);
}
.tg-message.user {
  align-self: flex-end;
  background: var(--accent);
  color: #000;
  border-bottom-right-radius: 2px;
  font-weight: 500;
}
.tg-message.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-bottom-left-radius: 2px;
}
.typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 12px 14px;
}
.typing-dot {
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}
.vidflow-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 48px;
}
.vidflow-title {
  font-size: 36px;
  font-family: var(--font-display);
  margin: 8px 0 16px;
  color: var(--ink);
}
.vidflow-desc {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 24px;
  line-height: 1.55;
  max-width: 500px;
}
.vidflow-tech-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.vidflow-tech-tags span {
  font-family: var(--font-mono);
  background: rgba(0, 229, 117, 0.06);
  border: 1px solid rgba(0, 229, 117, 0.15);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}
.vidflow-progress-block {
  background: rgba(10, 12, 10, 0.5);
  border: 1px solid rgba(0, 229, 117, 0.12);
  padding: 16px 20px;
  border-radius: 8px;
  max-width: 440px;
}
.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
}
.progress-percent {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 700;
}
.vidflow-visuals {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: flex-end;
}
.vidflow-app-mockup {
  background: rgba(10, 12, 10, 0.65);
  border: 1px solid rgba(0, 229, 117, 0.2);
  border-radius: 12px;
  width: 500px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.7), 0 0 20px rgba(0, 229, 117, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
}

.app-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.app-dot.red { background: #ff5f56; }
.app-dot.yellow { background: #ffbd2e; }
.app-dot.green { background: #27c93f; }

.app-title {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--muted);
  margin-left: 8px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.app-body {
  display: flex;
  height: 260px;
}

.app-preview {
  flex: 1.2;
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.skeleton-video {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.skeleton-video::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.02), transparent);
  animation: skeletonShine 2s infinite linear;
}

@keyframes skeletonShine {
  to { left: 200%; }
}

.pulse-play-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 229, 117, 0.2);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  animation: playPulse 2s infinite;
  transition: transform 0.2s;
}

.pulse-play-button:hover {
  transform: scale(1.1);
}

.pulse-play-button::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent var(--accent);
  margin-left: 4px;
}

@keyframes playPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 229, 117, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(0, 229, 117, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 229, 117, 0); }
}

.app-sidebar {
  flex: 0.8;
  padding: 24px;
  background: rgba(0, 0, 0, 0.2);
}

.download-queue {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.queue-header {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.1em;
  font-weight: 700;
}

.queue-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px;
}

.queue-item-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
}

.item-name {
  color: var(--ink);
  font-weight: 500;
}

.item-percent {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
}

.queue-progress {
  height: 6px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}

.queue-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.striped-animated::after {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background-image: linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.2) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.2) 75%,
    transparent 75%,
    transparent
  );
  background-size: 20px 20px;
  animation: moveStripes 1s linear infinite;
}

@keyframes moveStripes {
  0% { background-position: 0 0; }
  100% { background-position: 20px 0; }
}

.queue-status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-2);
}

.blinking {
  animation: blinkText 1.5s infinite step-end;
}

@keyframes blinkText {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Horizontal Pipeline and Date inside Evidence Wall */
.cell-desc-main {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 4px;
}

.runtime-date {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.runtime-pipeline-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-top: 16px;
  font-family: var(--font-mono);
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  border: 1px solid var(--panel-border, rgba(0, 229, 117, 0.15));
  background: rgba(255, 255, 255, 0.01);
  padding: 8px 16px;
  border-radius: 4px;
  flex: 1;
  text-align: center;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.pipeline-step:hover {
  border-color: var(--accent);
  background: rgba(0, 229, 117, 0.03);
}

.pipeline-step .step-lbl {
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pipeline-step .step-sub {
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}

.pipeline-step.current {
  border-color: var(--accent);
  background: rgba(0, 229, 117, 0.05);
}

.pipeline-step.current .step-lbl {
  color: var(--accent);
}

.pipeline-step.current .step-sub {
  color: var(--accent);
  opacity: 0.85;
}

.pipeline-arrow {
  color: var(--muted);
  opacity: 0.6;
  font-size: 14px;
  user-select: none;
}

@media (max-width: 900px) {
  .runtime-pipeline-flow {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .pipeline-step {
    width: 100%;
    text-align: left;
    padding: 10px 16px;
  }
  .pipeline-arrow {
    text-align: center;
    transform: rotate(90deg);
    margin: -2px 0;
  }
  .vidflow-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* New Minimalist Contact Section */
.contact-section-new {
  border-top: 1px solid var(--line);
  padding: 140px 0; /* Увеличено для воздушности */
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-wrap-new {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.contact-title-new {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.contact-links-new {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-btn-new {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  transition: color 0.3s ease, transform 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.contact-btn-new:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.contact-btn-new::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.contact-btn-new:hover::after {
  transform: scaleX(1);
}

.contact-action-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--bg);
  background: var(--accent);
  padding: 14px 36px;
  border-radius: 30px;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 10px 30px rgba(0, 229, 117, 0.15);
}

.contact-action-new:hover {
  background: var(--accent-2);
  box-shadow: 0 15px 40px rgba(0, 229, 117, 0.3);
  transform: translateY(-2px);
}

/* kbd styling */
kbd {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  padding: 1px 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
}

/* Footer Section Vibe */
.footer-inner-vibe {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px; /* Увеличено для воздуха */
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.footer-right {
  display: flex;
  gap: 24px;
}
.footer-right a {
  transition: color 0.2s;
}
.footer-right a:hover {
  color: var(--accent);
}

/* Control Navigation elements spacing */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 16px;
}
.theme-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s;
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0, 229, 117, 0.06);
}

/* Responsive Overrides */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-copy {
    justify-items: center;
  }
  .hero-social {
    justify-content: center;
  }
  .hero-art-container {
    order: -1;
  }
  .hologram-container {
    max-width: 380px;
  }
  .evidence-wall {
    grid-template-columns: 1fr;
    gap: 1px;
  }
  .wall-cell {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  .projects-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .vidflow-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .vidflow-progress-block {
    max-width: 100%;
  }
  .vidflow-visuals {
    justify-content: center;
  }
  /* Cleaned up old contact styles */
}


@media (max-width: 680px) {
  .projects-catalog-grid {
    grid-template-columns: 1fr;
  }
  .vidflow-visuals {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .vidflow-app-mockup {
    width: 100%;
  }
  .app-body {
    flex-direction: column;
    height: auto;
  }
  .app-preview {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    height: 180px;
  }
  /* Cleaned up old contact styles */
  .footer-inner-vibe {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .cell-ai-compute .cell-value {
    font-size: 32px !important;
  }
  .wall-cell:not(.cell-ai-compute) .cell-value {
    font-size: 24px;
  }
}

/* Terminal typing cursor and blinking animation */
.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--accent);
  margin-left: 4px;
  animation: terminalBlink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes terminalBlink {
  from, to { background-color: transparent }
  50% { background-color: var(--accent) }
}

/* ==========================================================================
   PROJECT POPUP (GLASSMORPHISM & NEON GLOW)
   ========================================================================== */
.project-popup {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 5, 4, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
  border-radius: var(--radius);
  padding: 24px;
}
.project-popup.active {
  opacity: 1;
  pointer-events: auto;
}
.popup-content {
  background: var(--panel);
  border: 1.5px solid rgba(0, 229, 117, 0.2);
  border-radius: var(--radius);
  padding: 28px 24px;
  width: 100%;
  max-width: 380px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.project-popup.active .popup-content {
  transform: scale(1);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
}
.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s var(--ease-out);
}
.popup-close:hover {
  color: var(--accent);
  background: rgba(0, 229, 117, 0.08);
}
.popup-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.popup-tag.web { background: rgba(0, 229, 117, 0.1); color: var(--accent); }
.popup-tag.bots { background: rgba(0, 229, 117, 0.1); color: var(--accent); }
.popup-tag.games { background: rgba(255, 74, 74, 0.1); color: var(--danger); }
.popup-tag.minimax { background: rgba(240, 185, 92, 0.1); color: #f0b95c; }

.popup-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}
.popup-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 20px;
}
.popup-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.popup-tech span {
  font-size: 11px;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--muted);
}
.popup-link {
  width: 100%;
  text-align: center;
  justify-content: center;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Responsive media queries for Explorer page elements */
@media (max-width: 980px) {
  .explorer-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .explorer-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }
  .sidebar-block {
    flex: 1 1 200px;
  }
  .sidebar-block:not(:last-child) {
    border-bottom: none;
    padding-bottom: 0;
  }
  .projects-catalog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 680px) {
  .explorer-sidebar {
    padding: 16px;
    gap: 16px;
    flex-direction: column;
  }
  .explorer-sidebar .sidebar-block {
    flex: 1 1 auto;
    width: 100%;
  }
  .explorer-sidebar .sidebar-block:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
  }
  .explorer-topbar {
    padding: 12px;
    gap: 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .explorer-topbar .search-box-container {
    width: 100%;
  }
  .topbar-controls {
    justify-content: space-between;
    width: 100%;
  }
  .projects-catalog-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Status Dots and Tags */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.status-dot.green {
  background-color: #00e575;
  box-shadow: 0 0 8px #00e575;
}
.status-dot.yellow {
  background-color: #ffbd2e;
  box-shadow: 0 0 8px #ffbd2e;
}
.status-dot.purple {
  background-color: #b55fe6;
  box-shadow: 0 0 8px #b55fe6;
}

.card-vibe-tag.ai {
  background: rgba(0, 240, 255, 0.1);
  color: #00f0ff;
}

.card-vibe-link-btn {
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s var(--ease-out);
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.card-vibe-link-btn:hover {
  transform: translateX(3px);
}

.progress-bar-fill.dev {
  background: linear-gradient(90deg, #ffbd2e, #00e575);
}

/* Lab Invite Banner */
.lab-invite-banner {
  margin-top: 48px;
  padding: 32px;
  background: var(--panel-2);
  border: 1px solid rgba(0, 229, 117, 0.15);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

.lab-banner-content h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--ink);
}

.lab-banner-content p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

.lab-banner-btn {
  flex-shrink: 0;
}

/* Explorer Pagination */
.explorer-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pag-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--panel-2);
  color: var(--muted);
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
  padding: 0;
}

.pag-btn:hover:not(:disabled) {
  border-color: rgba(0, 229, 117, 0.4);
  color: var(--ink);
}

.pag-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #040504;
  box-shadow: 0 0 10px rgba(0, 229, 117, 0.3);
}

.pag-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.04);
}

/* Details Modal overlay & layout */
.project-modal-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 24px;
}

.project-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.project-modal {
  position: relative;
  background: var(--panel);
  border: 1.5px solid rgba(0, 229, 117, 0.24);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-modal-overlay.active .project-modal {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 32px;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  z-index: 10;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

.modal-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.modal-gallery-pane {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-mockup-panel {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-display {
  width: 100%;
  height: 100%;
}

.mockup-display img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mockup-placeholder {
  text-align: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.modal-carousel-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.carousel-control {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.carousel-control:hover {
  border-color: rgba(0, 229, 117, 0.4);
  color: var(--accent);
}

.modal-thumbnails-wrapper {
  flex: 1;
  overflow: hidden;
}

.modal-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.modal-thumbnails::-webkit-scrollbar {
  display: none;
}

.modal-thumb {
  width: 72px;
  height: 45px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  flex-shrink: 0;
  transition: all 0.2s;
}

.modal-thumb:hover, .modal-thumb.active {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 0 6px rgba(0, 229, 117, 0.3);
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-details-pane {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--ink);
  margin: 0;
}

.modal-description {
  font-size: 14px;
  color: var(--soft);
  line-height: 1.6;
}

.modal-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  background: var(--panel-2);
  border: 1px solid rgba(255,255,255,0.05); backdrop-filter: blur(24px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  padding: 16px;
  border-radius: 8px;
}

.m-stats-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.m-stats-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.m-stats-value {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  font-weight: 700;
}

.modal-features-section h4 {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
  margin: 0 0 10px;
}

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

.modal-features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.modal-features-list li::before {
  content: ">";
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
}

.modal-footer {
  margin-top: auto;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Modal Responsive */
@media (max-width: 900px) {
  .modal-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .project-modal {
    padding: 24px;
  }
}

@media (max-width: 980px) {
  .lab-invite-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  .lab-banner-btn {
    width: 100%;
    justify-content: center;
  }
}





/* ==========================================================================
   PROJECTS SWITCHER, TIMELINE & GRAPH OVERHAUL
   ========================================================================== */

/* View Switcher styling */
.view-switch {
  display: inline-flex;
  gap: 8px;
  background: var(--panel);
  border: 1px solid rgba(0, 229, 117, 0.15);
  padding: 4px;
  border-radius: 8px;
  backdrop-filter: blur(16px);
}

.switch-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #888;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.switch-btn svg {
  transition: transform 0.3s ease;
}

.switch-btn:hover {
  color: #fff;
  border-color: rgba(0, 229, 117, 0.3);
  background: rgba(0, 229, 117, 0.05);
}

.switch-btn:hover svg {
  transform: scale(1.1);
}

.switch-btn.active {
  color: var(--accent, #00e575);
  background: rgba(0, 229, 117, 0.12);
  border-color: var(--accent, #00e575);
  box-shadow: 0 0 10px rgba(0, 229, 117, 0.2);
  text-shadow: 0 0 8px rgba(0, 229, 117, 0.4);
}

/* Timeline Layout */
.projects-timeline {
  position: relative;
  max-width: 900px;
  margin: 40px auto;
  padding: 24px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(0, 229, 117, 0), var(--accent, #00e575) 15%, var(--accent, #00e575) 85%, rgba(0, 229, 117, 0));
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0, 229, 117, 0.3);
  z-index: 1;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 10px 40px;
  box-sizing: border-box;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  animation: timelineFadeIn 0.6s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes timelineFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-node {
  position: absolute;
  top: 25px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #040504;
  border: 3px solid var(--accent, #00e575);
  box-shadow: 0 0 10px var(--accent, #00e575);
  z-index: 10;
  cursor: pointer;
  transition: all 0.3s ease;
}

.timeline-node::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 1px solid var(--accent, #00e575);
  opacity: 0.5;
  animation: nodePulse 2s infinite ease-out;
}

@keyframes nodePulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.timeline-item:nth-child(even) .timeline-node {
  left: -8px;
}

.timeline-item:nth-child(odd) .timeline-node {
  right: -8px;
}

.timeline-node:hover {
  transform: scale(1.3);
  background: var(--accent, #00e575);
  box-shadow: 0 0 15px var(--accent, #00e575);
}

.timeline-card {
  background: var(--panel);
  border: 1px solid rgba(0, 229, 117, 0.15);
  border-radius: var(--radius, 12px);
  padding: 24px;
  backdrop-filter: blur(16px);
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
  position: relative;
  text-align: left;
}

.timeline-card:hover {
  border-color: var(--accent, #00e575);
  box-shadow: none;
  transform: translateY(-4px);
}

.timeline-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent, #00e575);
  margin-bottom: 8px;
  display: block;
}

.timeline-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  margin: 0 0 8px 0;
  color: var(--ink);
}

.timeline-desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  opacity: 0.8; color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.5;
}

.timeline-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline-tech span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--panel-2);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.05); backdrop-filter: blur(24px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Mobile Timeline Responsiveness */
@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 45px;
    padding-right: 0;
  }
  .timeline-item:nth-child(odd) {
    text-align: left;
    left: 0;
  }
  .timeline-item:nth-child(even) {
    left: 0;
  }
  .timeline-item:nth-child(odd) .timeline-node,
  .timeline-item:nth-child(even) .timeline-node {
    left: 12px;
    right: auto;
  }
}

/* 3D Graph Container Styling */
#projects-graph-container {
  width: 100%;
  height: 500px;
  position: relative;
  border: 1px solid rgba(0, 229, 117, 0.15);
  border-radius: 8px;
  overflow: hidden;
  background: #020302;
  margin: 20px 0;
}

/* Graph Tooltip styling */
.graph-tooltip {
  display: none;
  position: absolute;
  pointer-events: none;
  background: var(--panel);
  border: 1px solid var(--accent, #00e575);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  z-index: 100;
  box-shadow: 0 0 15px rgba(0, 229, 117, 0.2);
  color: #fff;
  min-width: 180px;
  font-family: 'JetBrains Mono', monospace;
}

.graph-tooltip-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--accent, #00e575);
}

.graph-tooltip-category {
  font-size: 10px;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: 0.8;
}

.graph-tooltip-stack {
  color: #aaa;
  margin-top: 6px;
  font-size: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 6px;
}

/* Featured Projects Grid & Rotator Animation Styles */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 980px) {
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
}

.featured-card {
  transition: opacity 0.5s ease, transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}

.featured-card.fade-out {
  opacity: 0;
}

/* Light Theme definitions */
html[data-theme="light"] .node-title {
  color: var(--ink);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 0 5px rgba(255, 255, 255, 0.8);
}
html[data-theme="light"] .node-desc {
  color: #00994d;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.9);
}
html[data-theme="light"] {
  --bg: #ebf2ee;                    /* Soft high-end tech-slate-mint background */
  --panel: rgba(255, 255, 255, 0.45); /* Glassmorphism panels: semi-transparent white */
  --panel-hover: rgba(255, 255, 255, 0.60); /* Slightly less transparent on hover */
  --panel-2: rgba(240, 245, 242, 0.50); /* Semi-transparent tech-slate-mint panel */
  --ink: #111d18;                   /* Rich deep forest slate charcoal (excellent contrast >14:1) */
  --muted: #3d4e46;                 /* Medium forest slate description (contrast >7.5:1) */
  --soft: #55695f;                  /* Soft forest slate metadata (contrast >5:1) */
  --line: rgba(22, 101, 52, 0.08);  /* Clean subtle green lines */
  --border: rgba(22, 101, 52, 0.1); /* Thin border with forest green touch */
  --panel-border: rgba(22, 101, 52, 0.1);
  --accent: #166534;                /* Deep forest green for links/actions/headings (emerald-800) */
  --accent-glow: rgba(22, 163, 74, 0.06); /* Soft green glow overlay */
  --accent-2: #15803d;              /* Emerald-700 for hovers */
  --shadow: 0 10px 30px rgba(22, 101, 52, 0.04);
  --shadow-sm: 0 2px 8px rgba(22, 101, 52, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 10px 25px rgba(22, 101, 52, 0.06), 0 2px 8px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 32px 80px rgba(22, 101, 52, 0.08), 0 4px 18px rgba(0, 0, 0, 0.03);
  --shadow-glow: 0 8px 24px rgba(22, 101, 52, 0.1); /* Soft, elegant emerald-green shadow glow */
  --shadow-inset: inset 0 2px 6px rgba(22, 101, 52, 0.04);
}

/* Light Theme Language Switcher & Controls Redesign */
html[data-theme="light"] .lang-switch {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(22, 101, 52, 0.1);
  box-shadow: 0 4px 12px rgba(22, 101, 52, 0.03), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

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

html[data-theme="light"] .lang-button:hover:not(.is-active) {
  background: rgba(22, 101, 52, 0.04);
}

html[data-theme="light"] .lang-button.is-active {
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(22, 101, 52, 0.15);
}

html[data-theme="light"] .theme-toggle {
  border: 1px solid rgba(22, 101, 52, 0.12);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.45);
}

html[data-theme="light"] .theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(22, 101, 52, 0.04);
}

html[data-theme="light"] .topbar {
  box-shadow: 0 4px 20px rgba(22, 101, 52, 0.04);
}

html[data-theme="light"] .status-dot.green {
  background-color: #166534;
  box-shadow: 0 0 6px rgba(22, 101, 52, 0.4);
}

html[data-theme="light"] .wall-cell {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

html[data-theme="light"] body::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(22, 163, 74, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(21, 128, 61, 0.06) 0%, transparent 60%),
    linear-gradient(rgba(22, 101, 52, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 101, 52, 0.04) 1px, transparent 1px);
}

html[data-theme="light"] .text-neon {
  color: var(--accent);
  text-shadow: none;
}
html[data-theme="light"] .progress-bar-vibe {
  background: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .progress-bar-fill {
  box-shadow: none;
}

html[data-theme="light"] .vidflow-progress-block {
  background: var(--panel-2);
  border: 1px solid rgba(255,255,255,0.05); backdrop-filter: blur(24px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

html[data-theme="light"] .vidflow-app-mockup {
  background: var(--panel);
  border: 1.5px solid var(--panel-border);
  box-shadow: var(--shadow-lg);
}

/* Cleaned up old light theme contact styles */

html[data-theme="light"] kbd {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--accent);
}

html[data-theme="light"] .button {
  background: var(--panel-2);
  border-color: rgba(11, 110, 63, 0.1);
}

html[data-theme="light"] .button:hover {
  background: rgba(11, 110, 63, 0.05);
  border-color: var(--accent);
}

html[data-theme="light"] .button.primary {
  color: #ffffff; /* White text on dark green */
  background: var(--accent);
  border-color: var(--accent);
}

html[data-theme="light"] .button.primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

/* Глубокие корректировки контрастности для светлой темы */

/* Приложение-мокап VidFlow */
html[data-theme="light"] .app-header {
  background: #f1f5f9;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .app-title {
  color: #475569;
}
html[data-theme="light"] .app-sidebar {
  background: #f8fafc;
  border-left: 1px solid rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .app-preview {
  border-right: none;
  background: #ffffff;
}
html[data-theme="light"] .queue-item {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
}
html[data-theme="light"] .skeleton-video {
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.06);
}
html[data-theme="light"] .pulse-play-button {
  background: rgba(22, 101, 52, 0.1);
  border-color: var(--accent);
}
html[data-theme="light"] .pulse-play-button::before {
  border-color: transparent transparent transparent var(--accent);
}
html[data-theme="light"] .queue-progress {
  background: #e2e8f0;
}
html[data-theme="light"] .queue-status {
  color: var(--accent);
}
html[data-theme="light"] .striped-animated::after {
  background-image: linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.4) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.4) 75%,
    transparent 75%,
    transparent
  );
}

/* Элементы фильтров и тегов */
html[data-theme="light"] .vidflow-tech-tags span {
  background: rgba(22, 101, 52, 0.05);
  border: 1px solid rgba(22, 101, 52, 0.12);
  color: var(--accent);
}
html[data-theme="light"] .timeline-tech span {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.08);
  color: #475569;
}
html[data-theme="light"] kbd,
html[data-theme="light"] .search-shortcut {
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  color: #334155;
}

/* 3D Граф и Тултипы */
html[data-theme="light"] .graph-tooltip {
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
html[data-theme="light"] .graph-tooltip-title {
  color: var(--accent);
}
html[data-theme="light"] .graph-tooltip-stack {
  color: var(--muted);
  border-top: 1px solid var(--line);
}
html[data-theme="light"] #projects-graph-container {
  border-color: var(--border);
  background: var(--panel-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Таймлайн */
html[data-theme="light"] .timeline-card {
  background: var(--panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}
html[data-theme="light"] .timeline-card:hover {
  border-color: var(--accent-2);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
html[data-theme="light"] .timeline-node {
  background: var(--panel);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
html[data-theme="light"] .timeline-node:hover {
  background: var(--accent);
  box-shadow: var(--shadow-glow);
}
html[data-theme="light"] .timeline-node::after {
  border-color: var(--accent);
}

/* Контакты и кнопки соцсетей */
/* Cleaned up old light theme contact styles */
html[data-theme="light"] .social-link {
  background: var(--panel-2);
  border-color: var(--border);
  color: var(--ink);
}
html[data-theme="light"] .social-link:hover {
  background: rgba(22, 101, 52, 0.06);
  border-color: var(--accent);
  color: var(--accent);
}

/* Пагинация и карусель */
html[data-theme="light"] .pag-btn {
  background: var(--panel);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: var(--border);
  color: var(--muted);
}
html[data-theme="light"] .pag-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
html[data-theme="light"] .pag-btn:hover:not(.active) {
  background: rgba(22, 101, 52, 0.04);
  border-color: var(--accent-2);
}
html[data-theme="light"] .carousel-control {
  background: var(--panel);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: var(--border);
  color: var(--muted);
}
html[data-theme="light"] .carousel-control:hover {
  background: rgba(22, 101, 52, 0.04);
  border-color: var(--accent-2);
  color: var(--accent-2);
}




/* ==========================================================================
   MULTI-LAYER BACKGROUND DEPTH SYSTEM
   ========================================================================== */
.bg-glow-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -4;
  pointer-events: none;
  overflow: hidden;
  filter: blur(130px);
  opacity: 0.55;
  transition: opacity 0.5s ease;
}
.blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
}
html[data-theme="light"] .bg-glow-blobs {
  opacity: 0.35;
}
html[data-theme="light"] .blob {
  mix-blend-mode: multiply;
}

.blob-1 {
  top: -15%;
  right: 15%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  animation: floatBlob1 22s infinite alternate ease-in-out;
}
.blob-2 {
  bottom: 5%;
  left: -10%;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.06) 0%, transparent 70%);
  animation: floatBlob2 28s infinite alternate ease-in-out;
}
html[data-theme="light"] .blob-2 {
  background: radial-gradient(circle, rgba(11, 110, 63, 0.06) 0%, transparent 70%);
}

@keyframes floatBlob1 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.35; }
  50% { opacity: 0.55; }
  100% { transform: translate(-60px, 80px) scale(1.12); opacity: 0.35; }
}
@keyframes floatBlob2 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.35; }
  50% { opacity: 0.55; }
  100% { transform: translate(80px, -70px) scale(0.92); opacity: 0.35; }
}

/* Film Grain Overlay */
.bg-grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  opacity: 0.024;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  transition: opacity 0.5s ease;
}
html[data-theme="light"] .bg-grain {
  opacity: 0.018;
}

/* Cursor Background Radial Spotlight */
.bg-cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 320px;
  margin-left: -160px;
  margin-top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  z-index: -3;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.6s ease;
  will-change: transform;
}

/* Cinematic letter-by-letter split reveal classes */
.char-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.1;
}

.char-inner {
  display: inline-block;
  will-change: transform;
}

.anim-word {
  display: inline-block;
  white-space: nowrap;
}

/* Initially disable interaction on hologram nodes until animation finishes */
.hologram-container {
  pointer-events: none;
}

.node-btn {
  pointer-events: none;
}

/* Widescreen Scaling (1400px, 1680px, 1920px+) */
@media (min-width: 1400px) {
  :root {
    --max: 1380px;
  }
  .hologram-container {
    max-width: 520px;
  }
}
@media (min-width: 1680px) {
  :root {
    --max: 1520px;
  }
  .hologram-container {
    max-width: 580px;
  }
}
@media (min-width: 1920px) {
  :root {
    --max: 1680px;
  }
  .hologram-container {
    max-width: 640px;
  }
}

/* Optimal Text Measure for readability on ultrawide monitors */
.lead,
.section-desc,
.project-desc,
.editorial-desc,
.timeline-card p,
.about-text p {
  max-width: 72ch;
}

/* Strict Hover Scale for Project & Editorial Visual Images */
.project-card .project-visual img,
.featured-card .project-visual img,
.editorial-row .editorial-visual img {
  transition: transform 0.4s var(--ease-out), filter 0.5s;
}

.project-card:hover .project-visual img,
.featured-card:hover .project-visual img {
  transform: scale(1.03);
}

.editorial-row:hover .editorial-visual img,
.editorial-row.focused .editorial-visual img {
  transform: scale(1.02);
}

/* Position relative & overflow hidden for cards to contain the bottom line */
.project-card,
.featured-card,
.editorial-row {
  position: relative;
  overflow: hidden;
}

/* 1px bottom border line on hover */
.project-card::after,
.featured-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s var(--ease-out);
  z-index: 2;
}

.editorial-row::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
  z-index: 2;
}

.project-card:hover::after,
.featured-card:hover::after,
.editorial-row:hover::after,
.editorial-row.focused::after {
  transform: scaleX(1);
}

/* Hover contrast/scale for technology badges */
.badge,
.editorial-tag,
.timeline-tech span {
  transition: transform 0.3s var(--ease-out), filter 0.3s var(--ease-out), opacity 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.project-card:hover .badge,
.timeline-card:hover .timeline-tech span {
  transform: scale(1.05);
  filter: contrast(1.2) brightness(1.2);
}

.editorial-row:hover .editorial-tag,
.editorial-row.focused .editorial-tag {
  transform: scale(1.05);
  filter: brightness(1.25) contrast(1.1);
  opacity: 1;
}

/* Bento Cells and Cards shadows in Light Theme */
html[data-theme="light"] .wall-cell,
html[data-theme="light"] .project-card,
html[data-theme="light"] .featured-card,
html[data-theme="light"] .editorial-row,
html[data-theme="light"] .editorial-row.focused,
html[data-theme="light"] .category-card,
html[data-theme="light"] .timeline-card {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .project-card:hover,
html[data-theme="light"] .featured-card:hover,
html[data-theme="light"] .timeline-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .editorial-row {
  border: 1px solid rgba(0, 0, 0, 0.025);
}

html[data-theme="light"] .editorial-row:hover,
html[data-theme="light"] .editorial-row.focused {
  box-shadow: 0 10px 25px rgba(26, 26, 24, 0.035);
}

html[data-theme="light"] .evidence-wall {
  background: rgba(0, 229, 117, 0.25);
  border-color: rgba(0, 229, 117, 0.25);
}

html[data-theme="light"] .contact-action-new {
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(22, 101, 52, 0.15);
}

html[data-theme="light"] .contact-action-new:hover {
  box-shadow: 0 15px 40px rgba(22, 101, 52, 0.3);
}

/* Skeleton loader for project detail modal mockup preview */
.main-mockup-panel.loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #09090b 25%, #18181b 50%, #09090b 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite linear;
  z-index: 2;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.mockup-display img {
  transition: opacity 250ms ease-in-out;
}

.mockup-display img.loading-img {
  opacity: 0;
}

/* ==========================================
   Currently Building (Сейчас в работе) styles
   ========================================== */

/* Theme variables */
:root {
  --ide-bg: #0b0c10;
  --ide-border: rgba(255, 255, 255, 0.08);
  --ide-text: #e2e8f0;
  --ide-muted: #64748b;
  --ide-accent: #00e575;
  --ide-accent-bg: rgba(0, 229, 117, 0.06);
  --ide-input-bg: rgba(255, 255, 255, 0.03);
  --ide-syntax-keyword: #c084fc;
  --ide-syntax-string: #34d399;
  --ide-syntax-comment: #6b7280;
  --ide-syntax-variable: #60a5fa;
  --ide-syntax-number: #f87171;
}

[data-theme="light"],
html[data-theme="light"] {
  --ide-bg: #edece8;
  --ide-border: rgba(0, 0, 0, 0.08);
  --ide-text: #0f172a;
  --ide-muted: #27272a;
  --ide-accent: #166534;
  --ide-accent-bg: rgba(22, 101, 52, 0.06);
  --ide-input-bg: rgba(0, 0, 0, 0.02);
  --ide-syntax-keyword: #1e1b4b;
  --ide-syntax-string: #065f46;
  --ide-syntax-comment: #4b5563;
  --ide-syntax-variable: #0f172a;
  --ide-syntax-number: #7f1d1d;
}

/* Повышение контрастности и читаемости статистики на светлой теме */
html[data-theme="light"] .cell-ai-compute .cell-value {
  background: linear-gradient(180deg, var(--ink) 30%, #575752 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
html[data-theme="light"] .cell-title {
  opacity: 0.85;
}
html[data-theme="light"] .cell-desc-footer {
  opacity: 0.95;
}
html[data-theme="light"] .status-text-flat {
  opacity: 0.9;
}
html[data-theme="light"] .editorial-tag {
  background: rgba(0, 0, 0, 0.045);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--muted) !important;
}
html[data-theme="light"] .runtime-compact {
  color: var(--muted) !important;
}

/* Все стили изолированы под классом .in-dev-pipeline-block */

/* Контейнер блока сборки */
.in-dev-pipeline-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  height: 100%;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
}

/* Пайплайн-лента */
.in-dev-pipeline-block .pipeline-flow-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--ide-input-bg);
  border: 1px solid var(--ide-border);
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}

.in-dev-pipeline-block .pipeline-node {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.in-dev-pipeline-block .pipeline-node.active {
  opacity: 1;
}

.in-dev-pipeline-block .node-status-led {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ide-muted);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.in-dev-pipeline-block .pipeline-node.active .node-status-led {
  background: var(--ide-accent);
  box-shadow: 0 0 8px var(--ide-accent);
}

.in-dev-pipeline-block .node-step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ide-text);
}

.in-dev-pipeline-block .pipeline-flow-line {
  flex-grow: 1;
  height: 1px;
  background: var(--ide-border);
  margin: 0 8px;
}

/* Split-экран */
.in-dev-pipeline-block .ide-split-container {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
  gap: 16px;
  flex-grow: 1;
  min-height: 280px;
}

/* Repository Tree */
.in-dev-pipeline-block .ide-repo-tree {
  background: var(--ide-bg);
  border: 1px solid var(--ide-border);
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-sizing: border-box;
  min-width: 0;
}

.in-dev-pipeline-block .tree-pane-header {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ide-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.in-dev-pipeline-block .tree-nodes-list {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.in-dev-pipeline-block .tree-item {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  color: var(--ide-text);
  opacity: 0.8;
  transition: opacity 0.2s, background-color 0.2s;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}

.in-dev-pipeline-block .tree-item:hover {
  opacity: 1;
  background: var(--ide-input-bg);
}

.in-dev-pipeline-block .tree-item.active-file {
  background: var(--ide-accent-bg);
  color: var(--ide-accent);
  opacity: 1;
}

/* Микро-грид для метаданных: Repository, Last commit, Runtime, Updated */
.in-dev-pipeline-block .ide-live-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ide-border);
}

.in-dev-pipeline-block .meta-grid-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.in-dev-pipeline-block .meta-grid-label {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--ide-muted);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}

.in-dev-pipeline-block .meta-grid-value {
  font-size: 11px;
  color: var(--ide-text);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Правая панель */
.in-dev-pipeline-block .ide-execution-pane {
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}

html[data-theme="light"] .in-dev-pipeline-block .ide-execution-pane {
  background: #0a0a0c !important;
  border-color: rgba(0,0,0,0.1) !important;
}

/* Инпут идеи */
.in-dev-pipeline-block .ide-prompt-row {
  display: flex;
  align-items: center;
  background: var(--ide-input-bg);
  border: 1px solid var(--ide-border);
  border-radius: 6px;
  padding: 4px 8px;
  gap: 8px;
  box-sizing: border-box;
}

.in-dev-pipeline-block .ide-prompt-symbol {
  font-family: 'JetBrains Mono', monospace;
  color: var(--ide-accent);
  font-weight: bold;
}

.in-dev-pipeline-block .ide-prompt-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ide-text);
}

.in-dev-pipeline-block .ide-prompt-run-btn {
  background: var(--ide-accent-bg);
  border: 1px solid var(--ide-border);
  color: var(--ide-accent);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.in-dev-pipeline-block .ide-prompt-run-btn:hover {
  background: var(--ide-accent);
  color: var(--ide-bg);
  border-color: var(--ide-accent);
}

/* Code Viewer */
.in-dev-pipeline-block .ide-code-viewer {
  background: var(--ide-bg);
  border: 1px solid var(--ide-border);
  border-radius: 6px;
  padding: 12px;
  position: relative;
  flex-grow: 1;
  overflow-y: auto;
  overflow-x: auto;
  height: 240px;
  max-height: 240px;
  box-sizing: border-box;
  max-width: 100%;
}

.in-dev-pipeline-block .ide-code-viewer pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: break-word;
  max-width: 100%;
}

.in-dev-pipeline-block .syntax-code-block {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ide-text);
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: break-word;
  margin: 0;
}

.in-dev-pipeline-block .editor-cursor-blinking {
  display: inline-block;
  width: 6px;
  height: 14px;
  background: var(--ide-accent);
  margin-left: 2px;
  vertical-align: middle;
  animation: blinkCursor 1s steps(2, start) infinite;
}

@keyframes blinkCursor {
  to { visibility: hidden; }
}

/* Ультракомпактный терминал высотой ровно 100px */
.in-dev-pipeline-block .ide-mini-terminal {
  height: 100px;
  min-height: 100px;
  max-height: 100px;
  background: #000000;
  border: 1px solid var(--ide-border);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  box-sizing: border-box;
}

.in-dev-pipeline-block .terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  background: #0d0d0d;
  border-bottom: 1px solid var(--ide-border);
}

.in-dev-pipeline-block .terminal-bar-title {
  font-size: 9px;
  font-weight: bold;
  color: var(--ide-muted);
}

.in-dev-pipeline-block .terminal-bar-indicator {
  font-size: 9px;
  font-weight: bold;
  color: var(--ide-accent);
}

.in-dev-pipeline-block .terminal-log-output {
  padding: 6px 8px;
  overflow-y: auto;
  flex-grow: 1;
  font-size: 11px;
  line-height: 1.4;
  color: #a3a3a3;
}

.in-dev-pipeline-block .log-row {
  margin-bottom: 2px;
}

.in-dev-pipeline-block .log-row.sys { color: #525252; }
.in-dev-pipeline-block .log-row.info { color: #60a5fa; }
.in-dev-pipeline-block .log-row.success { color: #22c55e; }
.in-dev-pipeline-block .log-row.warn { color: #eab308; }

/* Подсветка синтаксиса в Code Viewer */
.in-dev-pipeline-block .kw { color: var(--ide-syntax-keyword); font-weight: bold; }
.in-dev-pipeline-block .str { color: var(--ide-syntax-string); }
.in-dev-pipeline-block .cm { color: var(--ide-syntax-comment); font-style: italic; }
.in-dev-pipeline-block .var { color: var(--ide-syntax-variable); }
.in-dev-pipeline-block .num { color: var(--ide-syntax-number); }

/* Адаптивность для планшетов и мобильных устройств */
@media (max-width: 1024px) {
  .in-dev-pipeline-block .ide-split-container {
    grid-template-columns: minmax(0, 1fr);
  }
  .in-dev-pipeline-block .ide-repo-tree {
    display: none; /* Скрываем дерево файлов на планшетах/мобильных во избежание тесноты */
  }
}

@media (max-width: 768px) {
  .in-dev-pipeline-block .pipeline-flow-track {
    overflow-x: auto;
    justify-content: flex-start;
    gap: 16px;
  }
  .in-dev-pipeline-block .pipeline-flow-line {
    min-width: 20px;
    flex-grow: 0;
  }
  .in-dev-pipeline-block .node-step-title {
    font-size: 9px;
  }
}

/* ==========================================================================
   DEVELOPMENT INTERACTIVE SIMULATIONS (VidFlow, AI Agent Studio, Telegram Bot, Web Deploy)
   ========================================================================== */

/* Базовые контейнеры новых интерактивных режимов */
.in-dev-pipeline-block .media-pipeline-workspace,
.in-dev-pipeline-block .agent-graph-diagram,
.in-dev-pipeline-block .mock-tg-chat-window,
.in-dev-pipeline-block .web-deploy-diagram {
  flex-grow: 1;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .in-dev-pipeline-block .media-pipeline-workspace,
  .in-dev-pipeline-block .agent-graph-diagram,
  .in-dev-pipeline-block .mock-tg-chat-window,
  .in-dev-pipeline-block .web-deploy-diagram {
    display: flex !important; /* Гарантируем видимость на мобильных вместо скрываемого ide-repo-tree */
    min-height: 240px;
  }
}

/* ==========================================================================
   1. Медиа-конвейер (VidFlow)
   ========================================================================== */
.in-dev-pipeline-block .media-pipeline-workspace {
  gap: 8px;
}

.in-dev-pipeline-block .media-flow-diagram {
  background: var(--ide-bg);
  border: 1px solid var(--ide-border);
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.in-dev-pipeline-block .media-flow-diagram .flow-block {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ide-input-bg);
  border: 1px solid var(--ide-border);
  border-radius: 4px;
  padding: 6px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ide-text);
  transition: all 0.3s ease;
  position: relative;
}

.in-dev-pipeline-block .media-flow-diagram .flow-block.active {
  border-color: var(--ide-accent);
  background: var(--ide-accent-bg);
  box-shadow: 0 0 8px rgba(0, 229, 117, 0.1);
}

.in-dev-pipeline-block .media-flow-diagram .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ide-muted);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.in-dev-pipeline-block .media-flow-diagram .flow-block.active .status-dot {
  background: var(--ide-accent);
  box-shadow: 0 0 6px var(--ide-accent);
  animation: pulseLed 1.2s infinite alternate;
}


/* Имитация видеоокна */
.in-dev-pipeline-block .mock-video-preview {
  background: #050505;
  border: 1px solid var(--ide-border);
  border-radius: 6px;
  height: 120px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
}

.in-dev-pipeline-block .mock-video-preview .scanning-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(rgba(0, 0, 0, 0) 50%, rgba(0, 229, 117, 0.08) 50%),
    linear-gradient(90deg, rgba(0, 229, 117, 0.02) 1px, transparent 1px),
    linear-gradient(rgba(0, 229, 117, 0.02) 1px, transparent 1px);
  background-size: 100% 4px, 12px 12px, 12px 12px;
  pointer-events: none;
  z-index: 2;
  animation: scanningLines 8s linear infinite;
}

.in-dev-pipeline-block .mock-video-preview .video-playback-progress {
  height: 3px;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 3;
}

.in-dev-pipeline-block .mock-video-preview .video-playback-progress .progress-fill {
  height: 100%;
  width: 0%;
  background: var(--ide-accent);
  box-shadow: 0 0 6px var(--ide-accent);
  transition: width 0.3s ease;
}

.in-dev-pipeline-block .mock-video-preview .ffmpeg-log-overlay {
  position: absolute;
  top: 6px;
  left: 8px;
  right: 8px;
  bottom: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: rgba(0, 229, 117, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 1;
  line-height: 1.3;
}

.in-dev-pipeline-block .mock-video-preview .ffmpeg-log-row {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  animation: slideInUp 0.15s ease-out;
}


/* ==========================================================================
   2. Граф агентов (AI Agent Studio)
   ========================================================================== */
.in-dev-pipeline-block .agent-graph-diagram {
  background: var(--ide-bg);
  border: 1px solid var(--ide-border);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 14px 14px;
}

.in-dev-pipeline-block .agent-graph-diagram .agent-node {
  position: absolute;
  background: var(--ide-input-bg);
  border: 1px solid var(--ide-border);
  border-radius: 5px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--ide-text);
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.in-dev-pipeline-block .agent-graph-diagram .agent-node.active {
  border-color: var(--ide-accent);
  background: var(--ide-accent-bg);
  box-shadow: 0 0 10px rgba(0, 229, 117, 0.2);
  transform: translateY(-1px);
}

.in-dev-pipeline-block .agent-graph-diagram .agent-node .node-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ide-muted);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.in-dev-pipeline-block .agent-graph-diagram .agent-node.active .node-indicator {
  background: var(--ide-accent);
  box-shadow: 0 0 4px var(--ide-accent);
  animation: nodeLedGlow 0.8s infinite alternate;
}

/* Компактное позиционирование нод для высоты 280px */
.in-dev-pipeline-block .agent-graph-diagram .agent-node[data-node="input"] {
  top: 15px;
  left: 15px;
}
.in-dev-pipeline-block .agent-graph-diagram .agent-node[data-node="prompt"] {
  top: 75px;
  left: 30px;
}
.in-dev-pipeline-block .agent-graph-diagram .agent-node[data-node="plan"] {
  top: 35px;
  left: 140px;
}
.in-dev-pipeline-block .agent-graph-diagram .agent-node[data-node="tools"] {
  top: 125px;
  left: 130px;
}
.in-dev-pipeline-block .agent-graph-diagram .agent-node[data-node="execute"] {
  top: 80px;
  left: 235px;
}

/* Соединительные ребра */
.in-dev-pipeline-block .agent-graph-diagram .graph-edge {
  position: absolute;
  height: 1px;
  background: var(--ide-border);
  transform-origin: left center;
  z-index: 1;
}

.in-dev-pipeline-block .agent-graph-diagram .graph-edge::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 20px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--ide-accent), transparent);
  border-radius: 50%;
  opacity: 0;
}

.in-dev-pipeline-block .agent-graph-diagram .graph-edge.pulse::after {
  opacity: 1;
  animation: edgePulse 2s linear infinite;
}

/* Ребра соединений */
.in-dev-pipeline-block .agent-graph-diagram .graph-edge[data-edge="input-prompt"] {
  top: 31px;
  left: 45px;
  width: 48px;
  transform: rotate(70deg);
}
.in-dev-pipeline-block .agent-graph-diagram .graph-edge[data-edge="prompt-plan"] {
  top: 90px;
  left: 75px;
  width: 80px;
  transform: rotate(-25deg);
}
.in-dev-pipeline-block .agent-graph-diagram .graph-edge[data-edge="prompt-tools"] {
  top: 90px;
  left: 75px;
  width: 75px;
  transform: rotate(32deg);
}
.in-dev-pipeline-block .agent-graph-diagram .graph-edge[data-edge="plan-execute"] {
  top: 51px;
  left: 175px;
  width: 80px;
  transform: rotate(28deg);
}
.in-dev-pipeline-block .agent-graph-diagram .graph-edge[data-edge="tools-execute"] {
  top: 141px;
  left: 165px;
  width: 80px;
  transform: rotate(-30deg);
}


/* ==========================================================================
   3. Чат-окно (Telegram Bot Engine)
   ========================================================================== */
.in-dev-pipeline-block .mock-tg-chat-window {
  background: var(--ide-bg);
  border: 1px solid var(--ide-border);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.in-dev-pipeline-block .mock-tg-chat-window .webhook-status-bar {
  background: var(--ide-input-bg);
  border-bottom: 1px solid var(--ide-border);
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--ide-muted);
}

.in-dev-pipeline-block .mock-tg-chat-window .webhook-status-bar .webhook-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
}

.in-dev-pipeline-block .mock-tg-chat-window .webhook-status-bar .status-led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ide-accent);
  box-shadow: 0 0 4px var(--ide-accent);
}

.in-dev-pipeline-block .mock-tg-chat-window .webhook-status-bar .status-led.listening {
  animation: pulseLed 1.2s infinite alternate;
}

.in-dev-pipeline-block .mock-tg-chat-window .chat-messages-area {
  flex-grow: 1;
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.in-dev-pipeline-block .mock-tg-chat-window .chat-bubble {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  line-height: 1.4;
  word-wrap: break-word;
  animation: bubblePop 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.in-dev-pipeline-block .mock-tg-chat-window .chat-bubble.user {
  align-self: flex-end;
  background: var(--ide-accent);
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

/* Поддержка WCAG 2.2 контрастности для светлой темы */
[data-theme="light"] .in-dev-pipeline-block .mock-tg-chat-window .chat-bubble.user {
  color: #ffffff;
  background: var(--ide-accent);
}

.in-dev-pipeline-block .mock-tg-chat-window .chat-bubble.bot {
  align-self: flex-start;
  background: var(--ide-input-bg);
  border: 1px solid var(--ide-border);
  color: var(--ide-text);
  border-bottom-left-radius: 2px;
}

.in-dev-pipeline-block .mock-tg-chat-window .chat-bubble.system {
  align-self: center;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--ide-border);
  color: var(--ide-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  text-align: center;
  border-radius: 4px;
  padding: 4px 8px;
  max-width: 90%;
}

[data-theme="light"] .in-dev-pipeline-block .mock-tg-chat-window .chat-bubble.system {
  background: rgba(0, 0, 0, 0.03);
}

.in-dev-pipeline-block .mock-tg-chat-window .typing-indicator {
  display: flex;
  gap: 3px;
  padding: 4px 8px;
  align-items: center;
}

.in-dev-pipeline-block .mock-tg-chat-window .typing-dot {
  width: 4px;
  height: 4px;
  background: var(--ide-muted);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.in-dev-pipeline-block .mock-tg-chat-window .typing-dot:nth-child(1) { animation-delay: -0.32s; }
.in-dev-pipeline-block .mock-tg-chat-window .typing-dot:nth-child(2) { animation-delay: -0.16s; }


/* ==========================================================================
   ОБЩИЕ АНИМАЦИИ ДЛЯ СИМУЛЯЦИЙ
   ========================================================================== */
@keyframes pulseLed {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

@keyframes nodeLedGlow {
  0% { box-shadow: 0 0 3px var(--ide-accent); }
  100% { box-shadow: 0 0 8px var(--ide-accent); }
}

@keyframes scanningLines {
  0% { background-position: 0 0, 0 0, 0 0; }
  100% { background-position: 0 100px, 0 0, 0 0; }
}

@keyframes slideInUp {
  from {
    transform: translateY(4px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes edgePulse {
  0% {
    left: 0%;
    transform: scaleX(0.5);
  }
  80%, 100% {
    left: 100%;
    transform: scaleX(1);
  }
}

@keyframes bubblePop {
  from {
    transform: scale(0.95) translateY(5px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* ==========================================================================
   4. Схема веб-деплоя (Web Deploy Diagram)
   ========================================================================== */
.in-dev-pipeline-block .web-deploy-diagram {
  background: var(--ide-bg);
  border: 1px solid var(--ide-border);
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.in-dev-pipeline-block .web-deploy-diagram .flow-block {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ide-input-bg);
  border: 1px solid var(--ide-border);
  border-radius: 4px;
  padding: 6px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ide-text);
  transition: all 0.3s ease;
  position: relative;
}

.in-dev-pipeline-block .web-deploy-diagram .flow-block.active {
  border-color: var(--ide-accent);
  background: var(--ide-accent-bg);
  box-shadow: 0 0 8px rgba(0, 229, 117, 0.1);
}

.in-dev-pipeline-block .web-deploy-diagram .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ide-muted);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.in-dev-pipeline-block .web-deploy-diagram .flow-block.active .status-dot {
  background: var(--ide-accent);
  box-shadow: 0 0 6px var(--ide-accent);
  animation: pulseLed 1.2s infinite alternate;
}

.in-dev-pipeline-block .web-deploy-diagram .flow-arrow-line,
.in-dev-pipeline-block .media-flow-diagram .flow-arrow-line {
  position: relative;
  height: 20px;
  width: 2px;
  margin: 2px auto;
  background: var(--ide-border);
  overflow: hidden;
  border-radius: 1px;
}

.in-dev-pipeline-block .web-deploy-diagram .flow-arrow-line .pulse-beam,
.in-dev-pipeline-block .media-flow-diagram .flow-arrow-line .pulse-beam {
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
  background: linear-gradient(to bottom, transparent, var(--accent) 70%, var(--accent));
  animation: pulseBeamFlow 1.4s infinite linear;
}

@keyframes pulseBeamFlow {
  0% { top: -12px; }
  100% { top: 20px; }
}

/* ==========================================================================
   5. Кнопка симуляции и панель Auto Lab Mode
   ========================================================================== */
.in-dev-pipeline-block .ide-prompt-run-btn.sim-btn {
  background: transparent;
  border: 1px solid rgba(0, 229, 117, 0.4);
  color: var(--ide-accent);
  margin-left: 6px;
}

[data-theme="light"] .in-dev-pipeline-block .ide-prompt-run-btn.sim-btn {
  border-color: rgba(22, 101, 52, 0.4);
}

.in-dev-pipeline-block .ide-prompt-run-btn.sim-btn:hover {
  background: var(--ide-accent-bg);
  border-color: var(--ide-accent);
  color: var(--ide-accent);
}

.auto-lab-indicator-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--ide-border);
  border-radius: 6px;
  width: fit-content;
}

.lab-status-block {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lab-nav-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lab-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--ide-border);
  border-radius: 4px;
  color: var(--ide-muted);
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.lab-nav-btn:hover {
  border-color: var(--ide-accent);
  color: var(--ide-accent);
  box-shadow: 0 0 6px rgba(0, 229, 117, 0.3);
}

[data-theme="light"] .auto-lab-indicator-row {
  background: rgba(0, 0, 0, 0.02);
}

.auto-lab-indicator-row .pulse-status-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e575;
  box-shadow: 0 0 8px #00e575;
  animation: pulseLed 1.2s infinite alternate;
}

[data-theme="light"] .auto-lab-indicator-row .pulse-status-led {
  background: #166534;
  box-shadow: none;
}

.auto-lab-indicator-row .auto-lab-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ide-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}


/* Ghost Cards */
.editorial-row.ghost-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  pointer-events: none;
  opacity: 1;
  filter: grayscale(100%);
}

/* Floating Back-to-Filters Button (FAB) */
.fab-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.05); backdrop-filter: blur(24px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  box-shadow: var(--shadow-md);
}

.fab-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.fab-btn:hover {
  color: var(--accent-2);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow), var(--shadow-md);
  transform: translateY(-2px) scale(1.05);
}

.fab-btn:active {
  transform: translateY(1px) scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .fab-btn {
    transition: opacity 0.1s linear, transform 0.1s linear;
  }
}

/* ==========================================================================
   6. Mobile UX Polish (Optimized Tap Targets, Spacings & Typography)
   ========================================================================== */
@media (max-width: 600px) {
  /* Increase readability on mobile */
  body {
    font-size: 15px;
    line-height: 1.6;
  }
  
  /* Tap Target Improvements (WCAG 2.2 conforming) */
  .nav-link, 
  .lang-button, 
  .archive-tab,
  .theme-toggle,
  .carousel-control {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .pag-btn {
    min-height: 44px;
    min-width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .explorer-pagination {
    gap: 6px;
  }

  .theme-toggle {
    width: 44px;
    height: 44px;
  }

  /* Make sure modal close button stands out and is easy to hit on small viewports */
  .modal-close-btn {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    font-size: 32px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  }

  html[data-theme="light"] .modal-close-btn {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    color: #000000;
  }

  /* Form input tap target/spacing improvements to prevent iOS auto-zoom */
  .contact-input,
  .contact-textarea {
    padding: 16px;
    font-size: 16px !important;
  }

  /* Sliding filter active tab wrapper spacing fix */
  .active-tab-pill {
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                width 0.3s cubic-bezier(0.25, 1, 0.5, 1),
                height 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  }
  
  /* Horizontal scroll navigation indicator fade */
  .nav {
    mask-image: linear-gradient(to right, black 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 88%, transparent 100%);
    padding-right: 24px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  /* Touch feedbacks */
  .nav-link:active,
  .archive-tab:active,
  .button:active,
  .pag-btn:active {
    transform: scale(0.97);
    background: rgba(255, 255, 255, 0.12);
  }

  html[data-theme="light"] .nav-link:active,
  html[data-theme="light"] .archive-tab:active,
  html[data-theme="light"] .button:active,
  html[data-theme="light"] .pag-btn:active {
    background: rgba(0, 0, 0, 0.06);
  }

  /* Add extra padding for sections to give breathability on mobile */
  .section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .brand-text {
    font-size: 18px;
  }
  .brand-sub {
    display: none !important;
  }
  .brand-name {
    font-size: 15px;
  }
  .topbar-inner {
    padding-left: 12px;
    padding-right: 12px;
    gap: 8px;
  }
  .nav-controls {
    margin-left: 8px;
    gap: 8px;
  }
}

/* 3D Card Tilt & Glare Effect (Wow Feature) */
.wall-cell, .project-card, .featured-card, .editorial-row {
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.25s ease, background-color 0.25s ease;
  will-change: transform;
}

/* Glass shine overlay */
.wall-cell::after, .project-card::after, .featured-card::after, .editorial-row::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--sh-x, 50%) var(--sh-y, 50%), 
    rgba(255, 255, 255, 0.08), 
    transparent 50%
  );
  opacity: var(--sh-o, 0);
  transition: opacity 0.3s ease;
  z-index: 10;
}

html[data-theme="light"] .wall-cell::after, 
html[data-theme="light"] .project-card::after, 
html[data-theme="light"] .featured-card::after, 
html[data-theme="light"] .editorial-row::after {
  background: radial-gradient(
    circle at var(--sh-x, 50%) var(--sh-y, 50%), 
    rgba(255, 255, 255, 0.4), 
    transparent 50%
  );
}

@media (prefers-reduced-motion: reduce) {
  .wall-cell, .project-card, .featured-card, .editorial-row {
    transform: none !important;
    transition: none !important;
  }
  .wall-cell::after, .project-card::after, .featured-card::after, .editorial-row::after {
    display: none !important;
  }
}

/* ==========================================================================
   7. Custom Pipeline Visualizers & Animations (Interesting Projects)
   ========================================================================== */
.chihuahua-pipeline-workspace,
.tts-pipeline-workspace,
.spend-pipeline-workspace,
.aura-pipeline-workspace,
.barber-pipeline-workspace,
.stolarka-pipeline-workspace,
.travel-pipeline-workspace {
  width: 100%;
  height: 100%;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(10, 10, 15, 0.4);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  padding: 24px;
  box-sizing: border-box;
}

html[data-theme="light"] .chihuahua-pipeline-workspace,
html[data-theme="light"] .tts-pipeline-workspace,
html[data-theme="light"] .spend-pipeline-workspace,
html[data-theme="light"] .aura-pipeline-workspace,
html[data-theme="light"] .barber-pipeline-workspace,
html[data-theme="light"] .stolarka-pipeline-workspace,
html[data-theme="light"] .travel-pipeline-workspace {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.06);
}

/* Chihuahua AI Guide */
.chihuahua-visualizer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.paw-svg {
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 0 8px rgba(0, 255, 117, 0.2));
  transition: filter 0.3s ease;
}
.paw-pad {
  fill: rgba(255, 255, 255, 0.1);
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1.5;
  transition: fill 0.3s ease, stroke 0.3s ease, transform 0.3s ease;
  transform-origin: center;
}
html[data-theme="light"] .paw-pad {
  fill: rgba(0, 0, 0, 0.05);
  stroke: rgba(0, 0, 0, 0.1);
}
.paw-pad.active {
  fill: #00ff75;
  stroke: #00ff75;
}
html[data-theme="light"] .paw-pad.active {
  fill: #166534;
  stroke: #166534;
}
.paw-svg.fully-active {
  animation: paw-pulse-shake 1s infinite alternate;
}
@keyframes paw-pulse-shake {
  0% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(0, 255, 117, 0.3)); }
  100% { transform: scale(1.05); filter: drop-shadow(0 0 16px rgba(0, 255, 117, 0.7)); }
}
.paw-status {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--soft);
  font-family: var(--font-mono);
}

/* WasmTtsEngine Waveform */
.tts-waveform-visualizer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.waveform-svg {
  width: 80%;
  height: 100px;
  overflow: visible;
}
.wave-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  transform-origin: center;
  transition: stroke 0.3s ease;
}
.wave-primary {
  stroke: rgba(0, 255, 117, 0.6);
  animation: wave-breath 3s infinite ease-in-out;
}
.wave-secondary {
  stroke: rgba(56, 189, 248, 0.4);
  animation: wave-breath-reverse 4s infinite ease-in-out;
}
.wave-tertiary {
  stroke: rgba(168, 85, 247, 0.3);
  animation: wave-breath 5s infinite ease-in-out;
}
.wave-line.synthesizing {
  stroke-width: 3.5;
  animation: wave-agitated 0.15s infinite linear;
}
.wave-primary.synthesizing { stroke: #00ff75; }
.wave-secondary.synthesizing { stroke: #38bdf8; }
.wave-tertiary.synthesizing { stroke: #a855f7; }

@keyframes wave-breath {
  0%, 100% { transform: scaleY(0.4) rotate(0deg); }
  50% { transform: scaleY(1.2) rotate(1deg); }
}
@keyframes wave-breath-reverse {
  0%, 100% { transform: scaleY(1.1) rotate(0deg); }
  50% { transform: scaleY(0.3) rotate(-1deg); }
}
@keyframes wave-agitated {
  0% { transform: scaleY(0.5) translateY(-2px); }
  50% { transform: scaleY(1.6) translateY(2px); }
  100% { transform: scaleY(0.5) translateY(-2px); }
}
.waveform-playback-status {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--soft);
  font-family: var(--font-mono);
}

/* SaaS Spend Tracker */
.spend-tracker-visualizer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.chart-svg {
  width: 90%;
  max-height: 130px;
  overflow: visible;
}
.grid-line {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1;
}
html[data-theme="light"] .grid-line {
  stroke: rgba(0, 0, 0, 0.06);
}
.chart-path {
  fill: none;
  stroke: var(--ide-accent, #00ff75);
  stroke-width: 3;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 2s ease;
}
.chart-fill {
  opacity: 0;
  transition: opacity 2s ease;
}
.chart-path.active {
  stroke-dashoffset: 0;
}
.chart-fill.active {
  opacity: 1;
}
.chart-dot {
  fill: #0a0f15;
  stroke: var(--ide-accent, #00ff75);
  stroke-width: 2;
  opacity: 0;
  transform: scale(0);
  transform-origin: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
html[data-theme="light"] .chart-dot {
  fill: #ffffff;
}
.chart-dot.active {
  opacity: 1;
  transform: scale(1);
}
.chart-dot.optimizer-highlight.active {
  animation: dot-ping 1.5s infinite ease-in-out;
}
@keyframes dot-ping {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.chart-label {
  font-size: 8px;
  fill: var(--soft);
  font-family: var(--font-mono);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.chart-label.active {
  opacity: 1;
}
.chart-label.drop-label.active {
  fill: #38bdf8;
  font-weight: bold;
}
.spend-stats {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--soft);
  font-family: var(--font-mono);
}
.savings-value {
  color: #00ff75;
  font-weight: bold;
}
html[data-theme="light"] .savings-value {
  color: #166534;
}

/* Aura Visualizer */
.aura-visualizer {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  gap: 25px;
}
.aura-ball {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.8) 0%, rgba(59, 130, 246, 0.4) 40%, rgba(0,0,0,0) 70%);
  filter: blur(12px);
  animation: aura-glow-rotate 6s infinite linear;
  transition: transform 0.5s ease, background 0.5s ease;
  transform: scale(0.6);
}
.aura-ball.scanning {
  background: radial-gradient(circle, rgba(236, 72, 153, 0.8) 0%, rgba(139, 92, 246, 0.5) 45%, rgba(0,0,0,0) 70%);
  transform: scale(0.9);
}
.aura-ball.mapped {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.85) 0%, rgba(6, 182, 212, 0.5) 45%, rgba(0,0,0,0) 70%);
  transform: scale(1.1);
  animation: aura-glow-rotate-fast 4s infinite linear, aura-breathe 2s infinite ease-in-out alternate;
}
@keyframes aura-glow-rotate {
  0% { transform: scale(0.8) rotate(0deg); }
  50% { transform: scale(0.95) rotate(180deg); }
  100% { transform: scale(0.8) rotate(360deg); }
}
@keyframes aura-glow-rotate-fast {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes aura-breathe {
  0% { transform: scale(1); filter: blur(12px); }
  100% { transform: scale(1.15); filter: blur(18px); }
}
.aura-rings {
  position: absolute;
  top: 0;
  left: 0;
  width: 90px;
  height: 90px;
  pointer-events: none;
}
.aura-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  transform-origin: center;
}
html[data-theme="light"] .aura-ring {
  border-color: rgba(0, 0, 0, 0.08);
}
.aura-ring.ring-1 {
  animation: rotate-ring-clockwise 10s infinite linear;
}
.aura-ring.ring-2 {
  inset: -10px;
  animation: rotate-ring-counter 12s infinite linear;
}
@keyframes rotate-ring-clockwise {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes rotate-ring-counter {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}
.aura-status {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--soft);
  font-family: var(--font-mono);
}

/* BarberShop */
.barber-visualizer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.scissors-container {
  width: 80px;
  height: 80px;
  position: relative;
}
.scissors-svg {
  width: 100%;
  height: 100%;
}
.scissors-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 3;
}
html[data-theme="light"] .scissors-ring {
  stroke: rgba(0, 0, 0, 0.3);
}
.scissors-metal {
  fill: rgba(255, 255, 255, 0.7);
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 1;
}
html[data-theme="light"] .scissors-metal {
  fill: rgba(0, 0, 0, 0.6);
  stroke: rgba(0, 0, 0, 0.8);
}
.scissors-pivot {
  fill: var(--ide-accent, #00ff75);
}
.scissors-blade {
  transform-origin: 50px 50px;
  transition: transform 0.2s ease;
}
.scissors-blade.left-blade {
  transform: rotate(10deg);
}
.scissors-blade.right-blade {
  transform: rotate(-10deg);
}
.scissors-blade.left-blade.cutting {
  animation: cut-left 0.4s ease-in-out infinite alternate;
}
.scissors-blade.right-blade.cutting {
  animation: cut-right 0.4s ease-in-out infinite alternate;
}
@keyframes cut-left {
  0% { transform: rotate(18deg); }
  100% { transform: rotate(2deg); }
}
@keyframes cut-right {
  0% { transform: rotate(-18deg); }
  100% { transform: rotate(-2deg); }
}
.barber-checklist {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 80%;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--soft);
}
.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}
.check-item .box {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-block;
  position: relative;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
html[data-theme="light"] .check-item .box {
  border-color: rgba(0, 0, 0, 0.2);
}
.check-item.completed {
  color: var(--ink);
}
.check-item.completed .box {
  border-color: #00ff75;
  background-color: #00ff75;
}
html[data-theme="light"] .check-item.completed .box {
  border-color: #166534;
  background-color: #166534;
}
.check-item.completed .box::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 3px;
  width: 3px;
  height: 5px;
  border: solid #000;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
html[data-theme="light"] .check-item.completed .box::after {
  border-color: #fff;
}

/* Stolarka */
.stolarka-visualizer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.blueprint-grid {
  width: 140px;
  height: 140px;
  position: relative;
  background: radial-gradient(circle, rgba(14, 56, 122, 0.2) 0%, rgba(10, 10, 15, 0.6) 80%);
  border: 1.5px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 0 15px rgba(56, 189, 248, 0.1);
}
html[data-theme="light"] .blueprint-grid {
  background: radial-gradient(circle, rgba(224, 242, 254, 0.6) 0%, rgba(240, 249, 255, 0.8) 80%);
  border-color: rgba(14, 116, 144, 0.2);
}
.cad-svg {
  width: 100%;
  height: 100%;
  padding: 10px;
}
.cad-wood {
  fill: none;
  stroke: rgba(56, 189, 248, 0.3);
  stroke-width: 1.5;
  transition: stroke 0.3s ease;
}
.cad-line, .cad-circle, .cad-inner-rect {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1;
  stroke-dasharray: 2 2;
  transition: stroke 0.3s ease, stroke-width 0.3s ease;
}
html[data-theme="light"] .cad-line, 
html[data-theme="light"] .cad-circle, 
html[data-theme="light"] .cad-inner-rect {
  stroke: rgba(0, 0, 0, 0.15);
}
.laser-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0) 0%, rgba(239, 68, 68, 0.8) 50%, rgba(239, 68, 68, 0) 100%);
  box-shadow: 0 0 6px #ef4444;
  animation: laser-scan 2s infinite ease-in-out;
  opacity: 0;
}
.blueprint-grid.active .laser-scanline {
  opacity: 1;
}
.blueprint-grid.active .cad-wood {
  stroke: rgba(56, 189, 248, 0.8);
  stroke-width: 2;
}
.blueprint-grid.active .cad-circle,
.blueprint-grid.active .cad-inner-rect {
  stroke: rgba(0, 255, 117, 0.6);
  stroke-width: 1.5;
  stroke-dasharray: none;
}
@keyframes laser-scan {
  0%, 100% { top: 0%; }
  50% { top: 100%; }
}
.blueprint-status {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--soft);
  font-family: var(--font-mono);
}

/* TuristNikitka Travel Map */
.travel-visualizer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.travel-map-svg {
  width: 90%;
  max-height: 120px;
  overflow: visible;
}
.earth-curve {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}
html[data-theme="light"] .earth-curve {
  stroke: rgba(0, 0, 0, 0.08);
}
.map-city {
  fill: rgba(255, 255, 255, 0.3);
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 1.5;
  transition: fill 0.3s ease, stroke 0.3s ease;
}
html[data-theme="light"] .map-city {
  fill: rgba(0, 0, 0, 0.2);
  stroke: rgba(0, 0, 0, 0.3);
}
.map-city.departure.active {
  fill: #38bdf8;
  stroke: #38bdf8;
  filter: drop-shadow(0 0 3px #38bdf8);
}
.map-city.arrival.active {
  fill: #00ff75;
  stroke: #00ff75;
  filter: drop-shadow(0 0 3px #00ff75);
}
.map-city-name {
  font-size: 7px;
  fill: var(--soft);
  font-family: var(--font-mono);
  font-weight: 500;
}
.flight-arc {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  transition: stroke 0.3s ease;
}
.flight-arc.active {
  stroke: rgba(56, 189, 248, 0.6);
}
.plane-group {
  opacity: 0;
  offset-path: path('M 30,90 Q 100,20 170,50');
  offset-rotate: auto;
  transition: opacity 0.3s ease;
}
.plane-group.active {
  opacity: 1;
  animation: fly-plane 3s infinite linear;
}
.plane-icon {
  fill: #38bdf8;
}
@keyframes fly-plane {
  0% { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}
.travel-status {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--soft);
  font-family: var(--font-mono);
}

/* --- MOBILE BOTTOM TAB BAR & COMPRESSION SYSTEM --- */

/* Скрываем нижнюю навигацию по умолчанию на десктопах */
.bottom-nav {
  display: none !important;
}

@media (max-width: 600px) {
  .bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(10, 12, 10, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--panel-border);
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 229, 117, 0.05);
    transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  }

  /* Поддержка светлой темы */
  html[data-theme="light"] .bottom-nav {
    background: rgba(235, 242, 238, 0.85);
    border-top-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  }

  .bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    gap: 4px;
    flex: 1;
    height: 100%;
    transition: color 0.3s var(--ease-out), transform 0.2s var(--ease-out);
    position: relative;
  }

  .bottom-nav-link .nav-icon {
    stroke: var(--muted);
    transition: stroke 0.3s var(--ease-out), transform 0.2s var(--ease-out);
  }

  .bottom-nav-link:active {
    transform: scale(0.95);
  }

  .bottom-nav-link.active,
  .bottom-nav-link:hover {
    color: var(--accent);
  }

  .bottom-nav-link.active .nav-icon,
  .bottom-nav-link:hover .nav-icon {
    stroke: var(--accent);
    transform: translateY(-2px);
  }

  /* Точка-индикатор активного состояния */
  .bottom-nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 6px;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
  transition: width 1s cubic-bezier(0.25, 1, 0.5, 1);
  }

  /* Скрываем классическую верхнюю навигацию */
  .topbar .nav {
    display: none !important;
  }

  /* Смещаем body снизу для исключения перекрытия */
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom)) !important;
  }

  /* Сдвигаем плавающую кнопку фильтров FAB выше, чтобы она не перекрывала нижнее меню */
  .fab-btn {
    bottom: calc(80px + env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 450px) {
  /* Сжатие логотипа на очень узких мобильных устройствах */
  .brand-text {
    display: none !important;
  }
  .brand {
    margin-right: 0;
  }
  .topbar-inner {
    justify-content: space-between;
    gap: 4px;
  }
  .nav-controls {
    margin-left: auto;
  }
}




/* =======================================================================
   MOTION SYSTEM: SaaS Spend Tracker AI Visualizer
   Target: #in-dev-visualizer-container
   ======================================================================= */
#in-dev-visualizer-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: rgba(10, 12, 16, 0.4);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  font-family: 'JetBrains Mono', monospace;
}
.st-grid {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 229, 117, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 117, 0.07) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: center center;
  transform: scale(1.1);
  animation: gridPan 20s linear infinite;
}
@keyframes gridPan {
  0% { transform: translateY(0) translateX(0) scale(1.1); }
  100% { transform: translateY(20px) translateX(20px) scale(1.1); }
}
.st-lines {
  position: absolute;
  width: 100%; height: 100%;
  z-index: 1;
}
.st-path {
  fill: none;
  stroke: rgba(0, 229, 117, 0.15);
  stroke-width: 1.5;
  stroke-linecap: round;
}
.st-path-active {
  stroke: #00e575;
  stroke-width: 2;
  stroke-dasharray: 10 30;
  animation: dashMove 3s linear infinite;
}
.st-path-reverse {
  animation-direction: reverse;
  animation-duration: 4s;
}
@keyframes dashMove {
  from { stroke-dashoffset: 40; }
  to { stroke-dashoffset: 0; }
}
.st-nodes {
  position: absolute;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
}
.st-node {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #00e575;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(0, 229, 117, 0.8);
}
.st-node::after {
  content: '';
  position: absolute;
  top: -6px; left: -6px; right: -6px; bottom: -6px;
  border: 1px solid rgba(0, 229, 117, 0.6);
  border-radius: 50%;
  animation: pulseNode 2s ease-out infinite;
}
.st-node:nth-child(even)::after {
  animation-delay: 1s;
}
@keyframes pulseNode {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}
.st-scanner {
  position: absolute;
  top: 0; left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, #00e575, #00e575, transparent);
  box-shadow: 0 0 12px #00e575;
  z-index: 3;
  opacity: 0.5;
  pointer-events: none;
}
.st-tags {
  position: absolute;
  width: 100%; height: 100%;
  z-index: 4;
  pointer-events: none;
}
.st-tag {
  position: absolute;
  color: #00e575;
  font-size: 11px;
  background: rgba(4, 5, 4, 0.9);
  border: 1px solid rgba(0, 229, 117, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  transform: translate(-50%, -50%);
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .st-grid { animation: none; }
  .st-path-active { animation: none; stroke-dasharray: none; }
  .st-node::after { animation: none; opacity: 0; }
  .st-scanner { display: none; }
  .st-tag { opacity: 0.8 !important; transform: translate(-50%, -50%) !important; }
}

/* Incident flow visualizer */
.ir-flow-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px 20px;
  box-sizing: border-box;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 0%, rgba(249,115,22,0.12), transparent 55%),
              linear-gradient(160deg, #0b1220 0%, #111827 100%);
  font-family: 'Inter', sans-serif;
}
.ir-flow-kicker {
  color: #94a3b8;
  font-size: clamp(11px, 1.4vw, 13px);
  text-align: center;
  max-width: 320px;
  line-height: 1.45;
  z-index: 2;
}
.ir-flow-lines {
  position: absolute;
  width: 72%;
  height: 40%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
  z-index: 1;
  pointer-events: none;
}
.ir-path {
  fill: none;
  stroke: rgba(249,115,22,0.18);
  stroke-width: 2;
  stroke-linecap: round;
}
.ir-path-active {
  stroke: #f97316;
  stroke-dasharray: 8 24;
  animation: irDashMove 2.8s linear infinite;
}
@keyframes irDashMove {
  from { stroke-dashoffset: 32; }
  to { stroke-dashoffset: 0; }
}
.ir-flow-nodes {
  display: flex;
  justify-content: space-between;
  width: min(100%, 380px);
  gap: 8px;
  z-index: 3;
  position: relative;
}
.ir-node {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.45;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.ir-node.active {
  opacity: 1;
  transform: translateY(-4px);
}
.ir-node.done {
  opacity: 0.85;
}
.ir-node-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: rgba(15,23,42,0.85);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 0 rgba(249,115,22,0);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}
.ir-node.active .ir-node-icon {
  border-color: rgba(249,115,22,0.55);
  box-shadow: 0 0 18px rgba(249,115,22,0.45);
}
.ir-node.done .ir-node-icon {
  border-color: rgba(34,197,94,0.45);
  box-shadow: 0 0 12px rgba(34,197,94,0.25);
}
.ir-node-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #cbd5e1;
  text-align: center;
}
.ir-flow-status {
  z-index: 2;
  font-size: clamp(13px, 1.6vw, 15px);
  font-weight: 600;
  color: #f8fafc;
  text-align: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(15,23,42,0.7);
  border: 1px solid rgba(249,115,22,0.25);
}
.ir-flow-pulse {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
@media (prefers-reduced-motion: reduce) {
  .ir-path-active { animation: none; stroke-dasharray: none; }
  .ir-flow-pulse { display: none; }
}

/* FORCE TIMELINE ACTIVE STATES */
#in-dev-pipeline-flow .pipeline-node.active .node-status-led {
  background: #00ff75 !important;
  box-shadow: 0 0 10px #00ff75 !important;
  border-color: #00ff75 !important;
}
#in-dev-pipeline-flow .pipeline-node.active .node-step-title {
  color: #00ff75 !important;
  text-shadow: 0 0 8px rgba(0, 255, 117, 0.4) !important;
}


/* ==========================================================================
   IDE Active Project Bar (Mobile Visibility Fix)
   ========================================================================== */
.ide-active-project-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(10, 10, 12, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--muted);
  box-sizing: border-box;
  width: 100%;
}

[data-theme="light"] .ide-active-project-bar {
  background: rgba(235, 242, 238, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--muted);
}

.ide-project-status-dot {
  display: inline-block;
  font-size: 10px;
  line-height: 1;
}

.ide-project-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

.ide-project-type {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent);
  border-left: 1px solid var(--border);
  padding-left: 10px;
}

[data-theme="light"] .ide-project-type {
  border-left-color: rgba(0, 0, 0, 0.14);
}

.ide-project-stack {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.6;
  margin-left: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 600px) {
  .ide-active-project-bar {
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .ide-project-type {
    border-left: none;
    padding-left: 0;
  }
  .ide-project-stack {
    display: none;
  }
}

/* ==========================================================================
   Project Details Modal: Timeline & Changelog Styling
   ========================================================================== */
.modal-project-timeline-range {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.modal-changelog-wrapper {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.changelog-details {
  width: 100%;
}

.changelog-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  user-select: none;
  padding: 8px 0;
  outline: none;
}

.changelog-summary::-webkit-details-marker {
  display: none;
}

.changelog-chevron {
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  color: var(--accent);
}

.changelog-details[open] .changelog-chevron {
  transform: rotate(180deg);
}

.changelog-timeline {
  margin-top: 16px;
  border-left: 1px dashed var(--border);
  padding-left: 20px;
  margin-left: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-bottom: 4px;
}

.changelog-timeline::-webkit-scrollbar {
  width: 6px;
}

.changelog-timeline::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.changelog-item {
  position: relative;
  margin-bottom: 20px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
}

.changelog-item:last-child {
  margin-bottom: 0;
}

.changelog-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--panel);
}

.changelog-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.changelog-version {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--accent);
}

.changelog-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.changelog-desc {
  color: var(--muted);
  font-size: 13px;
}


/* Premium Golden Badge for Winners */
.badge.badge-gold {
  border: 1px solid rgba(246, 200, 95, 0.6);
  background: linear-gradient(135deg, rgba(246, 200, 95, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
  color: #ffd892;
  box-shadow: 0 0 12px rgba(246, 200, 95, 0.25), inset 0 0 8px rgba(246, 200, 95, 0.15);
  animation: goldBadgePulse 3s infinite alternate ease-in-out;
  text-shadow: 0 0 8px rgba(246, 200, 95, 0.5);
  font-weight: 900;
  letter-spacing: 0.02em;
}

@keyframes goldBadgePulse {
  0% {
    box-shadow: 0 0 12px rgba(246, 200, 95, 0.25), inset 0 0 8px rgba(246, 200, 95, 0.15);
    border-color: rgba(246, 200, 95, 0.5);
  }
  100% {
    box-shadow: 0 0 20px rgba(246, 200, 95, 0.45), inset 0 0 14px rgba(246, 200, 95, 0.25);
    border-color: rgba(246, 200, 95, 0.9);
  }
}

/* Neon Live Counter Badge */
.live-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 20px;
  box-shadow: 0 0 12px var(--accent-glow);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  backdrop-filter: blur(8px);
  margin-top: 8px;
}

.live-counter-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: livePulse 1.8s infinite ease-in-out;
}

.live-counter-badge .counter-label strong {
  color: var(--accent);
  font-weight: 700;
}

@keyframes livePulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 var(--accent-glow);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(0, 229, 117, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 229, 117, 0);
  }
}

/* =======================================================================
   EARLY STAGE & R&D PROJECTS (In-Row Version Animations)
   ======================================================================= */
@keyframes cyber-glitch-pulse {
  0% {
    opacity: 0.9;
    transform: scale(1) translateY(0);
    text-shadow: 0 0 10px rgba(0, 229, 117, 0.4), 
                 0 0 20px rgba(0, 229, 117, 0.2);
    filter: brightness(1);
  }
  20% {
    opacity: 1;
    transform: scale(1.02) translateY(-1px);
    text-shadow: 0 0 15px rgba(0, 229, 117, 0.6), 
                 0 0 30px rgba(0, 229, 117, 0.4), 
                 0 0 45px rgba(0, 229, 117, 0.2);
    filter: brightness(1.2);
  }
  25% {
    transform: scale(1.03) skewX(-4deg);
    text-shadow: -2px 0 rgba(255, 0, 85, 0.6), 
                 2px 0 rgba(0, 255, 255, 0.6), 
                 0 0 15px rgba(0, 229, 117, 0.8);
    filter: brightness(1.5) contrast(1.2);
  }
  27% {
    transform: scale(1.01) skewX(2deg);
    text-shadow: 2px 0 rgba(255, 0, 85, 0.4), 
                 -2px 0 rgba(0, 255, 255, 0.4);
    filter: brightness(0.9);
  }
  30% {
    transform: scale(1.02) translateY(-1px);
    text-shadow: 0 0 15px rgba(0, 229, 117, 0.6), 
                 0 0 30px rgba(0, 229, 117, 0.4);
    filter: brightness(1.1);
  }
  50% {
    opacity: 0.8;
    transform: scale(0.98) translateY(0);
    text-shadow: 0 0 8px rgba(0, 229, 117, 0.3);
    filter: brightness(0.9);
  }
  75% {
    opacity: 0.95;
    transform: scale(1) translateY(0);
    text-shadow: 0 0 12px rgba(0, 229, 117, 0.5), 
                 0 0 25px rgba(0, 229, 117, 0.2);
  }
  100% {
    opacity: 0.9;
    transform: scale(1) translateY(0);
    text-shadow: 0 0 10px rgba(0, 229, 117, 0.4), 
                 0 0 20px rgba(0, 229, 117, 0.2);
    filter: brightness(1);
  }
}

@keyframes cyber-scan-line {
  0% { transform: scaleX(0); opacity: 0; }
  50% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0); opacity: 0; }
}

.early-dev-col .cell-value-wrap {
  position: relative;
  display: inline-flex;
}

.early-dev-col .cell-value-wrap::before {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 117, 0.8), transparent);
  opacity: 0;
  animation: cyber-scan-line 3s cubic-bezier(0.25, 1, 0.5, 1) infinite;
  transform-origin: left center;
}

#early-dev-stats-value {
  color: var(--brand, #00e575);
  display: inline-block;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 28px;
  font-weight: 950;
  line-height: 1.14;
  letter-spacing: -0.02em;
  animation: cyber-glitch-pulse 4.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

#early-dev-stats-value:hover {
  animation: none;
  filter: brightness(1.5) contrast(1.2);
  text-shadow: 0 0 20px rgba(0, 229, 117, 0.9), 0 0 40px rgba(0, 229, 117, 0.5);
  transform: scale(1.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.early-dev-col .cell-desc {
  color: var(--text-muted, #A3B5AA);
  font-size: 13px;
  font-weight: 680;
  margin-top: 6px;
}

.early-dev-col .cell-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted, #A3B5AA);
  font-size: 13px;
  font-weight: 680;
  margin-bottom: 8px;
}

/* =========================================
   Mobile Viewport Fixes (July 2026 Audit)
   ========================================= */
@media (max-width: 768px) {
  /* Prevent background blobs and absolute elements from causing horizontal scroll */
  html, body {
    width: 100%;
    max-width: 100vw;
  }
  
  /* Fix Bento Wall grid cells pushing out to 466px */
  .stats-strip, .evidence-wall {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: hidden;
  }
  .wall-cell {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    padding: 16px 12px;
  }
  
  /* Fix specific cell that has gap: 80px causing overflow */
  #cell-uptime {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }

  /* Fix Pipeline Nodes pushing out to 492px */
  .runtime-pipeline-flow, .in-dev-pipeline-block .pipeline-flow-track {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .pipeline-step, .pipeline-node {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Force glow blobs to not overflow */
  .bg-glow-blobs, .blob, .blob-1, .blob-2 {
    max-width: 100vw;
    overflow: hidden;
  }
  
  main, .app-container {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
}
