/* LADLABS — dark HFT theme (Wunder Fund–inspired) */

:root {
  --bg-deep: #06060a;
  --bg-raised: #0e0e14;
  --bg-card: #14141c;
  --bg-card-hover: #1a1a24;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8e8ed;
  --text-muted: #8b8b9a;
  --accent: #5eead4;
  --accent-dim: rgba(94, 234, 212, 0.15);
  --accent-glow: rgba(94, 234, 212, 0.35);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 12px;
  --header-h: 72px;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* На главной навигационные ссылки скрываются при ширине viewport меньше 870px */
  --bp-mobile: 869px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease), opacity 0.2s;
}

a:hover {
  color: #7ff5e0;
}

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

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 600;
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

/* Background grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-dim), transparent),
    linear-gradient(var(--bg-deep) 0%, transparent 40%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 80px,
      rgba(255, 255, 255, 0.02) 80px,
      rgba(255, 255, 255, 0.02) 81px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 80px,
      rgba(255, 255, 255, 0.02) 80px,
      rgba(255, 255, 255, 0.02) 81px
    );
  pointer-events: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(6, 6, 10, 0.75);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.logo img {
  height: 34px;
  width: 34px;
  display: block;
  object-fit: contain;
  filter: brightness(1.06);
}

.logo__mark {
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent);
  border-radius: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  transform: rotate(-6deg);
}

@media (max-width: 520px) {
  .logo img {
    height: 28px;
    width: 28px;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
}

/* Главная: при ширине меньше 870px в шапке остаётся кнопка «Ищем сотрудников» */
@media (max-width: 869px) {
  .page-home .nav > a:not(.btn) {
    display: none;
  }

  .page-home .nav .btn--primary {
    margin-left: auto;
  }
}

@media (max-width: 730px) {
  .site-header__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .logo {
    flex-shrink: 0;
  }

  .nav {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
    gap: 8px 12px;
  }

  .nav .btn--primary {
    width: auto;
    max-width: min(100%, 220px);
    margin: 0;
    padding: 8px 14px;
    font-size: 12px;
    line-height: 1.25;
    min-height: 40px;
  }

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

.nav a:not(.btn) {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.nav a:not(.btn):hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg-deep);
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn--primary:hover {
  color: var(--bg-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
  width: 100%;
}

section {
  padding: clamp(56px, 10vw, 88px) 0;
}

section:first-of-type {
  padding-top: clamp(32px, 6vw, 48px);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
}

.lead {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--text-muted);
  max-width: 640px;
}

/* Hero */
.hero {
  padding-top: 56px;
  padding-bottom: 80px;
  text-align: center;
}

.hero h1 {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero .lead {
  margin-left: auto;
  margin-right: auto;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 48px auto 0;
}

.stat {
  padding: 20px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--accent);
}

.stat__label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.scroll-hint {
  margin-top: 48px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 13px;
}

.scroll-hint__label {
  letter-spacing: 0.04em;
}

/* Высококонтрастная кнопка на тёмном фоне героя */
.scroll-hint__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  border-radius: 50%;
  background: #f4fffb;
  color: #06060a;
  border: 2px solid #0d3d36;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 8px 28px rgba(0, 0, 0, 0.45);
  animation: float 2.4s ease-in-out infinite;
  transition:
    background 0.2s var(--ease),
    color 0.2s,
    transform 0.2s var(--ease),
    box-shadow 0.2s;
}

.scroll-hint__btn:hover {
  background: #ffffff;
  color: #022c26;
  transform: translateY(2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 12px 36px rgba(94, 234, 212, 0.25);
}

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

.scroll-hint__icon {
  flex-shrink: 0;
}

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

section[id],
.partner-spotlight-anchor {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

/* Partner spotlight: quant researchers with own algos */
.partner-spotlight-anchor {
  position: relative;
  z-index: 20;
  margin-top: -40px;
  padding-bottom: clamp(20px, 4vw, 36px);
  pointer-events: none;
}

#about {
  position: relative;
  z-index: 1;
}

.partner-spotlight-anchor .wrap {
  pointer-events: auto;
}

.partner-spotlight {
  position: relative;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(22px, 4vw, 30px) clamp(20px, 4vw, 32px);
  text-align: center;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(94, 234, 212, 0.42);
  background: linear-gradient(155deg, rgba(20, 20, 28, 0.97), rgba(10, 14, 18, 0.98));
  box-shadow:
    0 0 0 1px rgba(94, 234, 212, 0.06),
    0 20px 50px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(94, 234, 212, 0.14);
  overflow: hidden;
  isolation: isolate;
  animation: partner-levitate 4.8s ease-in-out infinite, partner-border-glow 3.2s ease-in-out infinite;
}

.partner-spotlight__halo {
  position: absolute;
  inset: -40%;
  z-index: -1;
  background: radial-gradient(ellipse 50% 45% at 50% 35%, rgba(94, 234, 212, 0.2), transparent 65%);
  animation: partner-halo-breathe 5s ease-in-out infinite;
  pointer-events: none;
}

.partner-spotlight__sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

.partner-spotlight__sheen::after {
  content: "";
  position: absolute;
  top: 0;
  left: -55%;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.07) 45%,
    transparent 90%
  );
  animation: partner-sheen-sweep 6s ease-in-out infinite;
}

.partner-spotlight__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 6px 14px 6px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.35);
  background: rgba(94, 234, 212, 0.08);
  animation: partner-badge-glow 2.4s ease-in-out infinite;
}

.partner-spotlight__badge-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
  animation: partner-dot-pulse 1.8s ease-in-out infinite;
}

.partner-spotlight__heading {
  font-size: clamp(1.2rem, 3.2vw, 1.65rem);
  margin: 0 0 14px;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.partner-spotlight__lead {
  margin: 0 auto 22px;
  max-width: 560px;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  line-height: 1.55;
  color: var(--text-muted);
}

.partner-spotlight__btn {
  position: relative;
  z-index: 1;
  animation: partner-cta-pulse 2.8s ease-in-out infinite;
}

@keyframes partner-levitate {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes partner-border-glow {
  0%,
  100% {
    border-color: rgba(94, 234, 212, 0.35);
    box-shadow:
      0 0 0 1px rgba(94, 234, 212, 0.05),
      0 18px 44px rgba(0, 0, 0, 0.5),
      0 0 48px rgba(94, 234, 212, 0.12);
  }
  50% {
    border-color: rgba(94, 234, 212, 0.65);
    box-shadow:
      0 0 0 1px rgba(94, 234, 212, 0.12),
      0 26px 60px rgba(0, 0, 0, 0.58),
      0 0 72px rgba(94, 234, 212, 0.22);
  }
}

@keyframes partner-halo-breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.05);
  }
}

@keyframes partner-sheen-sweep {
  0%,
  65% {
    transform: translateX(0);
    opacity: 0;
  }
  68% {
    opacity: 1;
  }
  100% {
    transform: translateX(320%);
    opacity: 0;
  }
}

@keyframes partner-badge-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(94, 234, 212, 0);
  }
  50% {
    box-shadow: 0 0 24px rgba(94, 234, 212, 0.12);
  }
}

@keyframes partner-dot-pulse {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes partner-cta-pulse {
  0%,
  100% {
    filter: brightness(1);
    box-shadow: 0 0 0 0 rgba(94, 234, 212, 0);
  }
  50% {
    filter: brightness(1.06);
    box-shadow: 0 0 28px rgba(94, 234, 212, 0.35);
  }
}

.partnership-prose {
  margin-top: 8px;
}

.partnership-list {
  margin-top: 20px;
  max-width: 720px;
}

.partnership-cta {
  margin: 28px 0 0;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.partnership-cta a {
  font-weight: 600;
}

/* Sections alternating */
.section--tight {
  padding: 64px 0;
}

.section--dim {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.prose p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Principles */
.principles-grid {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.principle-card {
  padding: clamp(20px, 4vw, 28px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}

.principle-card:hover {
  border-color: rgba(94, 234, 212, 0.25);
  background: var(--bg-card-hover);
}

.principle-card h3 {
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.principle-card h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  flex-shrink: 0;
}

.principle-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* Production cycle: three stepped cards */
.process-steps {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

@media (min-width: 900px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.process-card {
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 3vw, 24px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.process-card:hover {
  border-color: rgba(94, 234, 212, 0.22);
  background: var(--bg-card-hover);
}

.process-card__top {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 16px;
}

.process-card__order {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  border: 2px solid rgba(94, 234, 212, 0.45);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--accent-dim);
  background: var(--bg-deep);
}

.process-card__viz {
  flex: 1;
  min-height: 76px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-deep);
  overflow: hidden;
}

.process-card__viz--research {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 5px;
  padding: 10px 12px;
  align-content: center;
  background-image:
    linear-gradient(rgba(94, 234, 212, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, 0.04) 1px, transparent 1px);
  background-size: 12px 12px;
}

.process-card__viz--research span {
  display: block;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(94, 234, 212, 0.45), rgba(94, 234, 212, 0.08));
  min-height: 8px;
  animation: process-research-cell 2.6s ease-in-out infinite;
  transform-origin: center bottom;
}

.process-card__viz--research span:nth-child(3n) {
  animation-duration: 2s;
}

.process-card__viz--research span:nth-child(3n + 1) {
  animation-duration: 3.1s;
}

.process-card__viz--research span:nth-child(5n) {
  animation-delay: -0.5s;
}

.process-card__viz--research span:nth-child(7n) {
  animation-delay: -1.1s;
}

.process-card__viz--research span:nth-child(2n) {
  animation-delay: -0.25s;
}

.process-viz-pipeline {
  position: relative;
  height: 100%;
  min-height: 76px;
}

.process-viz-pipeline__track {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 1px;
  background: linear-gradient(
    90deg,
    rgba(94, 234, 212, 0.08),
    rgba(94, 234, 212, 0.22) 50%,
    rgba(94, 234, 212, 0.08)
  );
  box-shadow: 0 0 12px rgba(94, 234, 212, 0.12);
}

.process-viz-pipeline__node {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
  animation: process-pipeline-node 2.8s ease-in-out infinite;
}

.process-card__viz--risk {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px 12px 12px;
  gap: 10px;
}

.process-viz-risk__limit {
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.5) 20%, rgba(94, 234, 212, 0.5) 80%, transparent);
  box-shadow: 0 0 10px rgba(94, 234, 212, 0.2);
  animation: process-risk-limit 2.4s ease-in-out infinite;
}

.process-viz-risk__bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 44px;
}

.process-viz-risk__bars span {
  flex: 1;
  max-width: 14px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--accent), rgba(94, 234, 212, 0.12));
  transform-origin: bottom;
  animation: process-risk-bar 1.35s ease-in-out infinite alternate;
}

.process-viz-risk__bars span:nth-child(2) {
  animation-delay: -0.2s;
  animation-duration: 1.1s;
}

.process-viz-risk__bars span:nth-child(3) {
  animation-delay: -0.45s;
}

.process-viz-risk__bars span:nth-child(4) {
  animation-delay: -0.65s;
  animation-duration: 1.5s;
}

.process-viz-risk__bars span:nth-child(5) {
  animation-delay: -0.3s;
}

.process-viz-risk__bars span:nth-child(6) {
  animation-delay: -0.55s;
  animation-duration: 1.2s;
}

.process-card__title {
  font-size: 1.15rem;
  color: var(--text);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.process-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

@keyframes process-research-cell {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.45);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes process-pipeline-node {
  0%,
  100% {
    left: 18%;
    opacity: 0.65;
    transform: scale(1);
  }
  50% {
    left: 82%;
    opacity: 1;
    transform: scale(1.15);
  }
}

@keyframes process-risk-bar {
  0% {
    height: 22%;
    opacity: 0.45;
  }
  100% {
    height: 72%;
    opacity: 0.95;
  }
}

@keyframes process-risk-limit {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

.figure-wrap {
  margin-top: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.figure-wrap img {
  width: 100%;
}

/* HFT abstract visualization (replaces hero / section imagery) */
.hft-viz {
  margin-top: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-deep);
}

.hft-viz__panel {
  position: relative;
  min-height: min(320px, 52vw);
  padding: 24px;
  overflow: hidden;
}

.hft-viz__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(94, 234, 212, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.85;
}

.hft-viz__midline {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
  margin-top: -1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(94, 234, 212, 0.25) 15%,
    rgba(94, 234, 212, 0.45) 50%,
    rgba(94, 234, 212, 0.25) 85%,
    transparent
  );
  transform-origin: center;
  animation: hft-mid-pulse 3.2s ease-in-out infinite;
}

.hft-viz__sweep {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  margin-left: -24px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(94, 234, 212, 0.12),
    rgba(94, 234, 212, 0.35),
    rgba(94, 234, 212, 0.12),
    transparent
  );
  filter: blur(4px);
  animation: hft-sweep 4.5s linear infinite;
  pointer-events: none;
}

.hft-viz__bars {
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 42%;
  max-height: 140px;
}

.hft-viz__bars span {
  display: block;
  width: 5px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(94, 234, 212, 0.25));
  transform-origin: bottom;
  animation: hft-bar 1.1s ease-in-out infinite alternate;
  opacity: 0.65;
}

.hft-viz__bars span:nth-child(3n) {
  animation-duration: 0.85s;
}

.hft-viz__bars span:nth-child(3n + 1) {
  animation-duration: 1.35s;
}

.hft-viz__bars span:nth-child(5n) {
  animation-delay: -0.4s;
}

.hft-viz__bars span:nth-child(7n) {
  animation-delay: -0.7s;
}

.hft-viz__bars span:nth-child(2n) {
  background: linear-gradient(180deg, rgba(94, 234, 212, 0.55), rgba(94, 234, 212, 0.12));
}

.hft-viz__hud {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 20px;
  font-family: var(--font-mono);
}

.hft-viz__hud-key {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hft-viz__hud-val {
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
  animation: hft-hud-glow 2.8s ease-in-out infinite;
}

.hft-viz__unit {
  font-size: 0.65em;
  margin-left: 2px;
  opacity: 0.85;
}

.hft-viz__caption {
  margin: 0;
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  text-align: center;
}

@keyframes hft-sweep {
  0% {
    left: -10%;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    left: 110%;
    opacity: 0;
  }
}

@keyframes hft-mid-pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scaleX(0.92);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes hft-bar {
  0% {
    height: 18%;
    opacity: 0.35;
  }
  100% {
    height: 100%;
    opacity: 0.95;
  }
}

@keyframes hft-hud-glow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.15);
  }
}

/* Contact block: network graph */
.network-viz {
  margin-top: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-deep);
}

.network-viz__panel {
  position: relative;
  min-height: min(280px, 48vw);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 20px;
}

.network-viz__svg {
  width: 100%;
  height: auto;
  max-height: 220px;
}

.network-viz__path {
  stroke: rgba(94, 234, 212, 0.35);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 6 14;
  animation: net-dash 4s linear infinite;
}

.network-viz__path--b {
  animation-duration: 5.5s;
  animation-direction: reverse;
  stroke-opacity: 0.65;
}

.network-viz__node {
  fill: var(--accent);
  opacity: 0.85;
}

.network-viz__node--pulse {
  transform-origin: center;
  transform-box: fill-box;
  animation: net-node 2.2s ease-in-out infinite;
}

.network-viz__tag {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.network-viz__tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: net-dot 1.6s ease-in-out infinite;
}

@keyframes net-dash {
  to {
    stroke-dashoffset: -120;
  }
}

@keyframes net-node {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.45);
  }
}

@keyframes net-dot {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hft-viz__sweep,
  .hft-viz__midline,
  .hft-viz__bars span,
  .hft-viz__hud-val,
  .network-viz__path,
  .network-viz__node--pulse,
  .network-viz__tag-dot {
    animation: none !important;
  }

  .hft-viz__bars span {
    height: 55%;
    opacity: 0.7;
  }

  .network-viz__node--pulse {
    opacity: 0.9;
    transform: none;
  }

  .process-card__viz--research span,
  .process-viz-pipeline__node,
  .process-viz-risk__limit,
  .process-viz-risk__bars span {
    animation: none !important;
  }

  .process-card__viz--research span {
    opacity: 0.65;
    transform: scaleY(0.75);
  }

  .process-viz-pipeline__node {
    left: 50%;
    opacity: 0.9;
    transform: none;
  }

  .process-viz-risk__bars span {
    height: 48%;
    opacity: 0.75;
  }

  .partner-spotlight,
  .partner-spotlight__halo,
  .partner-spotlight__sheen::after,
  .partner-spotlight__badge,
  .partner-spotlight__badge-dot,
  .partner-spotlight__btn {
    animation: none !important;
  }

  .partner-spotlight {
    transform: none;
    border-color: rgba(94, 234, 212, 0.4);
    box-shadow:
      0 0 0 1px rgba(94, 234, 212, 0.08),
      0 20px 48px rgba(0, 0, 0, 0.5),
      0 0 48px rgba(94, 234, 212, 0.15);
  }

  .partner-spotlight__btn {
    filter: none;
    box-shadow: none;
  }
}

/* CTA strip */
.cta-strip {
  text-align: center;
  padding: clamp(36px, 8vw, 56px) clamp(16px, 4vw, 24px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--bg-card), var(--bg-raised));
}

.cta-strip p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 24px;
}

.contact-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: center;
  align-items: center;
}

.contact-inline a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}

.contact-inline a:hover {
  color: var(--accent);
}

.contact-inline svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  opacity: 0.85;
}

/* IT / stack lists */
.info-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.info-list li {
  margin-bottom: 0.75em;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.stack-tags span {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
}

/* Vacancy cards */
.vacancies-intro {
  margin-bottom: 32px;
}

.contact-intro {
  margin-top: 4px;
  margin-bottom: 36px;
  max-width: 680px;
}

.contact-block {
  text-align: center;
}

.contact-block h2 {
  margin-left: auto;
  margin-right: auto;
}

.contact-block .contact-intro {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
}

.contact-inline--below-intro {
  margin-top: 4px;
  justify-content: center;
}

.job-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .job-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.job-card {
  text-align: left;
  padding: clamp(20px, 4vw, 32px);
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}

.job-card:hover {
  border-color: rgba(94, 234, 212, 0.35);
  transform: translateY(-2px);
}

.job-card h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  text-wrap: balance;
}

.job-card .job-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
}

.job-card .preview {
  font-size: 14px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-card .more {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.resume-actions {
  margin-top: 40px;
  text-align: center;
}

/* Company block */
.company-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 900px) {
  .company-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.company-card {
  padding: clamp(20px, 4vw, 32px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.company-card p {
  margin: 0 0 0.75em;
  color: var(--text-muted);
  font-size: 15px;
}

.company-card strong {
  color: var(--text);
}

.company-links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.company-links a {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.company-links a:hover {
  color: var(--accent);
}

/* Footer */
.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.site-footer__copy {
  display: block;
}

.footer-legal-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(139, 139, 154, 0.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(94, 234, 212, 0.12);
  padding-bottom: 1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-legal-link:hover {
  color: var(--accent);
  border-bottom-color: rgba(94, 234, 212, 0.35);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}

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

.modal {
  width: 100%;
  max-width: 640px;
  margin: auto 0;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s var(--ease);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.modal__close:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

.modal h2 {
  font-size: 1.35rem;
  padding-right: 48px;
  margin-bottom: 20px;
}

.modal h3 {
  font-size: 1rem;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--accent);
}

.modal ul {
  margin: 0 0 16px;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.modal ul li {
  margin-bottom: 0.5em;
}

.modal .modal-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  color: var(--text);
}

.modal .modal-footer a {
  font-weight: 600;
}

/* Page: vacancies */
.page-hero {
  padding-top: 40px;
  padding-bottom: 48px;
}

.page-hero--legal {
  padding-bottom: 12px;
}

.section--legal-follow {
  padding-top: 28px;
}

.page-hero h1 {
  margin-bottom: 16px;
}

.hh-link {
  margin-top: 48px;
  text-align: center;
}

.hh-link__text {
  margin: 0 auto 12px;
  text-align: center;
  max-width: 36rem;
}

.hh-link a {
  display: inline-block;
  font-weight: 600;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  text-align: center;
}

.hh-link a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

body.modal-open {
  overflow: hidden;
}
