@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/golos-text-400-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/golos-text-400-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrains-mono-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrains-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ground: #0e0f0e;
  --ink: #ebe8e1;
  --quiet: #8f8c85;
  --accent: #3fbfa9;
  --margin: clamp(20px, 3vw, 40px);
  --sans: 'Golos Text', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html, body { height: 100%; }

body {
  background: var(--ground);
  color: var(--ink);
  font: 400 18px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.field {
  --dot: #2b2f2d;
  --dot-hot: #3fbfa9;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.bar, .card { position: relative; z-index: 1; }

.bar {
  display: flex;
  justify-content: space-between;
  padding: var(--margin);
  font: 400 14px/1 var(--mono);
  color: var(--quiet);
}
.bar a { transition: color .2s; }
.bar a:hover { color: var(--accent); }

.card {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 48px;
  padding: 0 var(--margin) var(--margin);
}

.who { grid-column: 1 / span 8; }

h1 {
  font-weight: 600;
  font-size: clamp(52px, 9.2vw, 156px);
  line-height: .9;
  letter-spacing: -.045em;
  white-space: nowrap;
}

.who p {
  margin-top: 28px;
  max-width: 30ch;
  font-size: clamp(19px, 1.7vw, 26px);
  line-height: 1.35;
}

.links {
  grid-column: 9 / span 4;
  align-self: end;
  list-style: none;
  font: 400 15px/1 var(--mono);
}
.links a {
  display: grid;
  grid-template-columns: 10.5ch 1fr auto;
  align-items: baseline;
  padding: 14px 0;
  transition: color .2s;
}
.links a::after {
  content: '→';
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s, transform .2s;
}
.links a:hover, .links a:focus-visible { color: var(--accent); }
.links a:hover::after, .links a:focus-visible::after { opacity: 1; transform: none; }
.k { color: var(--quiet); }
.links a:hover .k { color: inherit; }

/* появление */
.who h1, .who p, .links li {
  animation: rise .9s cubic-bezier(.2, .7, .2, 1) both;
}
.who p { animation-delay: .08s; }
.links li:nth-child(1) { animation-delay: .16s; }
.links li:nth-child(2) { animation-delay: .22s; }
.links li:nth-child(3) { animation-delay: .28s; }
.links li:nth-child(4) { animation-delay: .34s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

@media (max-width: 900px) {
  .who, .links { grid-column: 1 / -1; }
  .card { row-gap: 40px; }
  h1 { white-space: normal; font-size: clamp(52px, 15vw, 96px); }
  .links a { padding: 13px 0; }
}

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