/* 01 — landing.
   A black panel where everything is a bit: off is hollow, grey and upright;
   on is solid white and leans 18° like the mark. Glow lives in the canvas.
   One colour: the buttons that take an action are a cold, bright blue, and they alone
   glow outside the canvas — nothing else on the page competes for "press here". */

:root {
  --on: #fff;
  --body: #c8c8c8;
  --soft: #b9b9b9; /* the quieter half of a sentence: still easy to read on a phone in daylight */
  --off: #8c8c8c;
  --dim: #5c5c5c;
  --hair: rgba(255, 255, 255, 0.16);

  /* the owner's reference button (matched by eye from his screenshot, 2026-11-26) */
  --blue: #1556ff; /* action buttons; white text on it is 5.5:1 */
  --blue-hi: #2e6bff; /* under the cursor */
  --blue-lo: #0e44d6; /* pressed */
  --blue-line: #5a8cff; /* the same blue as a thin line on black */
  --blue-glow: 21, 86, 255; /* its r, g, b — for the glow */

  --slant: -18deg; /* the mark's lean — the page's only diagonal */
  --k: 0.3249; /* tan(18°) */

  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --text: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --m: 20px; /* side margin */
  --max: 1240px;
  --pad-y: 96px; /* section padding */
  --row-y: 22px;

  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --inout: cubic-bezier(0.65, 0, 0.35, 1);
  --snap: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Phones are read outdoors, at arm's length, over a moving background: the two greys step up
   (8.6:1 and 4.6:1 on black). "On" is still more than twice as bright, and it leans. */
@media (max-width: 599.98px) {
  :root {
    --off: #a6a6a6;
    --dim: #757575;
  }
}

@media (min-width: 600px) {
  :root {
    --m: 32px;
    --pad-y: 120px;
    --row-y: 28px;
  }
}

@media (min-width: 1024px) {
  :root {
    --m: 48px;
    --pad-y: 160px;
    --row-y: 34px;
  }
}

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

html {
  background: #000;
  color: var(--on);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: #2a2a2a #000;
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #000;
  font: 400 17px/1.55 var(--text);
  color: var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

@media (min-width: 1024px) {
  body {
    font-size: 18px;
  }
}

h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
  padding: 0;
  font-weight: inherit;
}

ol,
ul {
  list-style: none;
}

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

svg {
  display: block;
}

b {
  font-weight: inherit;
}

::selection {
  background: #fff;
  color: #000;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.defs {
  position: absolute;
}

.mark {
  width: 100%;
  height: 100%;
  fill: currentColor;
  overflow: visible;
}

.nw {
  white-space: nowrap; /* compounds like «бизнес-модель» never break at the hyphen */
}

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

.skip {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 50;
  padding: 10px 14px;
  background: #fff;
  color: #000;
  font: 500 12px/1 var(--mono);
  transform: translateY(-300%);
}

.skip:focus {
  transform: none;
}

/* ───────── canvas ───────── */

.scene {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  display: block;
  opacity: 0;
  transition: opacity 480ms linear;
  pointer-events: none;
}

.scene.is-live {
  opacity: 1;
}

.scene-fallback {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.2) 1px, transparent 1.4px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(200deg, #000, transparent 55%);
  mask-image: linear-gradient(200deg, #000, transparent 55%);
}

.no-gl .scene {
  display: none;
}

/* shown when there is no WebGL, no JavaScript, or the graphics context has been lost */
.no-gl .scene-fallback,
.no-js .scene-fallback,
.gl-lost .scene-fallback {
  display: block;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

/* ───────── type ───────── */

.label {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 13px/1.2 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.label::before {
  content: '';
  width: 9px;
  height: 8px;
  flex: none;
  background: #fff;
  border-radius: 1.5px;
  transform: skewX(var(--slant));
}

/* the heading of a list or a block, not a section's small rubric: it has to be read */
.label--lg {
  gap: 13px;
  font-size: clamp(16px, 4.8vw, 22px);
  letter-spacing: 0.09em;
}

.label--lg::before {
  width: 14px;
  height: 13px;
  border-radius: 2.5px;
}


/* Display headings are fixed lines whose left edges run along the mark's 18° lean:
   each line is pushed right by tan(18°) × its distance from the bottom of the block. */
.stagger {
  --lh: 1.08;
  font-family: var(--display);
  font-weight: 500;
  line-height: var(--lh);
  letter-spacing: -0.02em;
  color: #fff;
}

.stagger .ln {
  display: block;
  width: max-content;
  max-width: none;
  margin-left: calc(var(--n, 0) * var(--k) * var(--lh) * 1em);
  white-space: nowrap;
  overflow: hidden;
  /* room for descenders and accents inside the mask */
  padding: 0.12em 0.06em 0.2em 0;
  margin-top: -0.12em;
  margin-bottom: -0.2em;
}

.stagger .ln > span {
  display: inline-block;
}

.js .stagger .ln > span {
  transition: transform 720ms var(--out);
  transition-delay: calc(var(--i, 0) * 60ms);
}

.js .stagger:not(.is-in) .ln > span {
  transform: translateY(125%);
}

.h2 {
  margin-top: 20px;
  font-size: clamp(28px, 8.4vw, 64px);
}

@media (min-width: 600px) {
  .h2 {
    margin-top: 24px;
  }
}

.lead {
  max-width: 22em;
  font: 500 clamp(20px, 5.4vw, 30px) / 1.32 var(--text);
  letter-spacing: -0.01em;
  color: var(--soft);
  text-wrap: pretty;
}

.lead b {
  color: #fff;
}

/* the line that follows the 128 px number: it has to carry the screen, not whisper */
.lead--xl {
  max-width: 26em;
  font-size: clamp(20px, 5.4vw, 44px);
  line-height: 1.22;
  letter-spacing: -0.015em;
}

/* Phones: text runs the full width and travels over the wave, so the scene's calm zone —
   fixed to the screen — cannot follow it. Each block of running text carries its own shade
   instead (like the hollow button's fill): the wave shows between blocks, not through words. */
@media (max-width: 599.98px) {
  .lead--xl {
    line-height: 1.32;
  }

  .pair,
  .lead,
  .list,
  .ways {
    position: relative;
    isolation: isolate;
  }

  .pair::before,
  .lead::before,
  .list::before,
  .ways::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -28px calc(var(--m) * -1);
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.58) 28px, rgba(0, 0, 0, 0.58) calc(100% - 28px), rgba(0, 0, 0, 0));
    pointer-events: none;
  }

  /* labels that stand outside a shade keep a dark edge of their own */
  .label {
    text-shadow:
      0 0 8px #000,
      0 0 2px #000;
  }
}

/* Blocks fade in as they are reached. With a mouse they also rise a little; under a thumb they
   only fade: a moving element's layer may overlap anything, so the browser lifts everything
   painted after it into new layers for the length of the move — on a phone that is a hitch at
   the very moment the block scrolls into view. A fade has known bounds and disturbs nothing. */
.js [data-reveal] {
  opacity: 0;
  transition: opacity 320ms linear;
  transition-delay: calc(var(--i, 0) * 60ms);
}

.js [data-reveal].is-in {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .js [data-reveal] {
    transform: translateY(12px);
    transition:
      opacity 320ms linear,
      transform 520ms var(--out);
    transition-delay: calc(var(--i, 0) * 60ms);
  }

  .js [data-reveal].is-in {
    transform: none;
  }
}

/* ───────── bit cells ───────── */

.bits {
  --bit: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
}

.bits i {
  width: var(--bit);
  height: var(--bit);
  border: 1.5px solid currentColor;
  border-radius: calc(var(--bit) * 0.23);
  transform: skewX(var(--slant));
}

.bits i.on {
  background: currentColor;
}

.bits b {
  margin-left: 6px;
  font: 500 11px/1 var(--display);
  letter-spacing: 0.06em;
}

@media (min-width: 1024px) {
  .bits {
    --bit: 22px;
    gap: 6px;
  }

  .bits b {
    margin-left: 10px;
    font-size: 12px;
  }
}

/* bits set themselves a beat after their row appears — a switch, not a fade */
.bits i:nth-child(2) {
  --b: 1;
}

.bits i:nth-child(3) {
  --b: 2;
}

.bits i:nth-child(4) {
  --b: 3;
}

.js [data-reveal] .bits i.on {
  background: transparent;
  transition: background-color 0s linear calc(280ms + var(--b, 0) * 90ms);
}

.js [data-reveal].is-in .bits i.on {
  background: currentColor;
}

.js .label[data-reveal]::before,
.js [data-reveal] .label::before {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px #fff;
  transition: background-color 0s linear 240ms;
}

.js .label[data-reveal].is-in::before,
.js [data-reveal].is-in .label::before {
  background: #fff;
}

/* the scroll position as an 8-bit register in the left margin (desktop) */
.meter {
  position: fixed;
  left: 19px;
  top: 50%;
  z-index: 15;
  display: none;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-50%);
  color: var(--dim);
  pointer-events: none;
}

.meter i {
  width: 9px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  transform: skewX(var(--slant));
}

.meter i.on {
  background: #fff;
  border-color: #fff;
}

@media (min-width: 1024px) {
  .js .meter {
    display: flex;
  }
}

/* ───────── buttons: the mark's zero, closed ───────── */

.btn {
  --h: 56px;
  --over: calc(var(--h) * 0.1625); /* how far the lean overhangs on each side */
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: var(--h);
  padding: 0 calc(var(--over) + 30px);
  font: 500 13px/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0 var(--over);
  z-index: -1;
  border: 1.5px solid #fff;
  border-radius: calc(var(--h) * 0.23);
  background: rgba(0, 0, 0, 0.8); /* keeps a hollow button readable when a bright crest passes behind it */
  transform: skewX(var(--slant));
}
.btn--solid {
  color: #fff;
}

/* The fill: the owner's blue with a little depth (lighter at the top, a hairline of light on
   the upper edge) — and every few seconds a band of light crosses it, along the lean.

   Nothing on a button runs by itself. A phone scrolls smoothly only while the page is left
   alone: an endless animation here meant repainting buttons on every frame of every scroll,
   and their blurred glows were layers the browser had to juggle. So the fill and the glow are
   painted once, and main.js sends the light across (`is-shining`) only on the buttons in view
   and only while the page rests. */
.btn--solid::before {
  border: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.42) 50%, rgba(255, 255, 255, 0) 62%) 150% 0 / 220% 100% no-repeat,
    linear-gradient(180deg, var(--blue-hi), var(--blue) 56%, var(--blue-lo) 140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn.is-shining::before {
  animation: btn-shine 940ms linear both;
}

@keyframes btn-shine {
  from {
    background-position:
      150% 0,
      0 0;
  }
  to {
    background-position:
      -50% 0,
      0 0;
  }
}

/* Its glow: the halo a blurred, sheared copy of the button would leave — made of two plain
   shadows instead. The box is the upper half of the lit core, nudged right; its second shadow
   is the lower half, nudged left; blurred together (2 × the softness --g) they are the leaning
   bar. Nothing here is transformed, filtered or animated: a shadow of an upright box is the
   cheapest soft thing a browser can paint, it is painted once into the page's own layer, it
   has no seams, and it never widens the page. (The $30M plate's glow is built the same way.) */
.btn--solid::after {
  --g: 16px; /* softness */
  --gy: 5px; /* the lit core sits a little inside the button: top and bottom… */
  --gx: 8px; /* …and at the ends */
  --ga: 0.78; /* strength */
  --half: calc((var(--h) - var(--gy) * 2) / 2); /* half the core's height */
  --lean: calc(var(--half) * var(--k) / 2); /* how far each half sits off the middle */
  content: '';
  position: absolute;
  z-index: -2;
  top: var(--gy);
  height: var(--half);
  left: calc(var(--over) + var(--gx) + var(--lean));
  right: calc(var(--over) + var(--gx) - var(--lean));
  border-radius: calc(var(--h) * 0.23);
  box-shadow:
    0 0 calc(var(--g) * 2) rgba(var(--blue-glow), var(--ga)),
    calc(var(--lean) * -2) var(--half) calc(var(--g) * 2) rgba(var(--blue-glow), var(--ga));
  pointer-events: none;
}

/* the second action beside a solid one: the same blue as a lit outline; the light that
   crossed the first button crosses this one a beat later */
.btn--cool::before {
  border: 2px solid var(--blue-line);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 38%, rgba(150, 185, 255, 0.34) 50%, rgba(255, 255, 255, 0) 62%) 150% 0 / 220% 100% no-repeat,
    rgba(0, 2, 12, 0.84);
  box-shadow:
    0 0 16px rgba(var(--blue-glow), 0.5),
    inset 0 0 14px rgba(var(--blue-glow), 0.24);
}

.btn--cool.is-shining::before {
  animation-delay: 240ms;
}

/* A mouse means a computer, and a computer has frames to spare: there the glow is the blurred
   copy it has always been, breathing slowly, and the arrow leans forward as the light passes.
   (The breathing is an animation of opacity — which a phone's browser cannot apply to a soft
   shadow without drawing seams through it; hence two ways to make one glow.) */
@media (hover: hover) and (pointer: fine) {
  .btn--solid::after {
    left: calc(var(--over) + var(--gx));
    right: calc(var(--over) + var(--gx));
    bottom: var(--gy);
    height: auto;
    background: var(--blue);
    box-shadow: none;
    transform: skewX(var(--slant));
    filter: blur(var(--g));
    opacity: 0.55;
    animation: btn-glow 3.6s ease-in-out infinite;
  }

  .btn--solid.is-shining .btn__arrow {
    animation: btn-nudge 1250ms var(--inout) both;
  }
}

@keyframes btn-glow {
  50% {
    opacity: 0.95;
  }
}

@keyframes btn-nudge {
  0%,
  8% {
    transform: none;
  }
  50% {
    transform: translateX(5px);
  }
  100% {
    transform: none;
  }
}

/* without JavaScript nobody conducts the light: it simply comes round */
.no-js .btn--solid::before,
.no-js .btn--cool::before {
  animation: btn-shine-loop 5.2s linear infinite;
}

@keyframes btn-shine-loop {
  0%,
  70% {
    background-position:
      150% 0,
      0 0;
  }
  88%,
  100% {
    background-position:
      -50% 0,
      0 0;
  }
}

.btn--sm {
  --h: 40px;
  padding: 0 calc(var(--over) + 20px);
  font-size: 11px;
}

.btn--sm.btn--solid::after {
  --g: 10px;
  --gy: 4px;
  --gx: 6px;
}

.btn__label {
  display: inline-block;
  transition: transform 120ms linear;
}

.btn__arrow {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 120ms linear;
}

.btn:active {
  transform: translateY(1px);
}

.btn--ring:not(.btn--cool):active {
  color: #000;
}

.btn--ring:not(.btn--cool):active::before {
  background: var(--body);
  border-color: var(--body);
}

.btn--solid:active::before {
  filter: brightness(0.84);
}

.btn--cool:active::before {
  background: var(--blue-lo);
  border-color: var(--blue-lo);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn__label {
    transform: skewX(var(--slant));
  }

  .btn:hover .btn__arrow {
    transform: translateX(4px);
    animation: none;
  }

  .btn--ring:not(.btn--cool):hover {
    color: #000;
  }

  .btn--ring:not(.btn--cool):hover::before {
    background: #fff;
  }

  .btn--solid:hover::before {
    filter: brightness(1.14);
  }

  .btn--solid:hover::after {
    opacity: 1;
    animation: none;
  }

  .btn--cool:hover::before {
    background: var(--blue);
    border-color: var(--blue);
    animation: none;
  }
}

/* the narrowest phones (320 px): the longest button, with its arrow, still fits the column */
@media (max-width: 359.98px) {
  .btn {
    gap: 10px;
    padding: 0 calc(var(--over) + 20px);
    font-size: 12px;
  }
}

@media (min-width: 1024px) {
  .btn {
    font-size: 14px;
  }

  .btn--sm {
    font-size: 11px;
  }

  .btn--lg {
    --h: 64px;
  }
}

/* ───────── nav (desktop) and dock (phones) ───────── */

.nav {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 20;
  display: none;
  align-items: center;
  gap: 36px;
  height: 72px;
  padding: 0 var(--m);
}

.nav::before {
  content: '';
  position: absolute;
  inset: 0 0 -40px;
  z-index: -1;
  background: linear-gradient(180deg, #000 36%, rgba(0, 0, 0, 0));
  opacity: 0;
  transition: opacity 240ms linear;
  pointer-events: none;
}

.is-scrolled .nav::before {
  opacity: 1;
}

.nav__logo {
  box-sizing: content-box;
  width: 67px;
  height: 24px;
  padding: 10px 0;
  flex: none;
  color: #fff;
  transition: opacity 160ms linear;
}

/* one mark on screen at a time */
.hero-on .nav__logo,
.stage-on .nav__logo {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 160ms linear,
    visibility 0s linear 160ms;
}

.nav__links {
  display: flex;
  gap: 36px;
  margin-left: auto;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav__links a,
.footer__top {
  position: relative;
  padding: 12px 0;
  color: var(--body);
}

.nav__links a::after,
.footer__top::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms var(--out);
}

@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover,
  .footer__top:hover {
    color: #fff;
  }

  .nav__links a:hover::after,
  .footer__top:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }
}

/* the two actions, always within reach in the bar */
.nav__cta {
  display: flex;
  flex: none;
  margin-right: -6px;
}

.nav__cta .btn + .btn {
  margin-left: -4px; /* the two sheared ends sit one gap apart */
}

@media (min-width: 1024px) and (max-width: 1239.98px) {
  .nav,
  .nav__links {
    gap: 24px;
  }

  .nav__cta .btn {
    padding: 0 calc(var(--over) + 14px);
  }
}

/* phones: the same two actions as a bar along the bottom edge; a shade under it keeps the
   page's text from running into the buttons */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  padding: 28px calc(12px - 8px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) calc(12px - 8px + env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.86) 52%);
  /* Hidden by fading, never by `visibility`: the bar keeps its own layer all along, so sliding
     in and out is the compositor's work alone — nothing is built, painted or thrown away in
     the middle of a scroll. (main.js sets `inert` while it is out of sight.) */
  opacity: 0;
  transform: translateY(14px);
  will-change: transform, opacity;
  pointer-events: none; /* the shade never takes a tap meant for the page */
  transition:
    opacity 160ms linear,
    transform 280ms var(--out);
}

.dock .btn {
  --h: 52px;
  min-width: 0;
  padding: 0 calc(var(--over) + 8px);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  line-height: 1.22;
  text-align: center;
  white-space: normal;
}

.dock .btn + .btn {
  margin-left: -9px; /* the two sheared ends sit one gap apart */
}

.dock-on .dock {
  opacity: 1;
  transform: none;
}

.dock-on .dock .btn {
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .dock {
    display: none;
  }
}

/* ───────── hero ───────── */

.hero {
  --p: 0;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: max(600px, 100svh);
  padding: 0 var(--m);
}

.hero__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 0 max(28px, env(safe-area-inset-bottom) + 20px);
}

.hero__block {
  --lh: 1.06;
  /* Five lines. Sized so the longest («для талантливых»), with its stair offset, fits a
     phone's column — and tied to the viewport's height as well, so the buttons stay above
     the fold on short laptops. */
  font-size: clamp(23px, min(7.5vw, 7.4vh), 72px);
  font-size: clamp(23px, min(7.5vw, 7.4svh), 72px);
  will-change: opacity; /* main.js fades it with the scroll… */
}

@media (hover: hover) and (pointer: fine) {
  .hero__block {
    will-change: transform, opacity; /* …and, with a mouse, lets it drift up as well */
  }
}

/* «01 — точка роста…»: the mark is the sentence's first word and line zero of the stair;
   the sheared bar after it is the dash */
.hero__mark {
  display: flex;
  align-items: center;
  gap: 0.36em;
  width: max-content;
  height: 2.1em;
  margin-left: calc((5 * var(--lh) + 0.4) * var(--k) * 1em);
  margin-bottom: 0.4em;
  color: #fff;
}

.hero__mark .mark {
  flex: none;
  width: auto;
  height: 100%;
  aspect-ratio: 335 / 120;
}

.hero__dash {
  width: 0.96em;
  height: 0.22em;
  background: currentColor;
  border-radius: 0.04em;
  transform: skewX(var(--slant));
}

/* the narrowest phones: a touch smaller, so the longest line keeps inside the margin */
@media (max-width: 339.98px) {
  .hero__block {
    font-size: 7.25vw;
  }
}

.hero__title {
  --lh: 1.06;
  font-size: 1em;
}

.js .hero .stagger .ln > span {
  transform: none;
}

.hero__foot {
  display: grid;
  gap: 24px;
  margin-top: clamp(22px, 4vh, 40px);
  margin-top: clamp(22px, 4svh, 40px);
  will-change: opacity;
}

/* scrolled away and faded out: no longer tappable (main.js also makes it inert). Not hidden
   with `visibility` — that would tear its layers down and rebuild them at every pass */
.hero-out .hero__inner {
  pointer-events: none;
}

.hero__lead {
  max-width: 27em;
  color: #e2e2e2;
  text-wrap: pretty;
}

.hero__lead a {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.hero__cta {
  display: grid;
  gap: 10px;
}

@media (min-width: 600px) {
  .hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 8px;
    margin-left: calc(var(--over, 9px) * -1);
  }
}

@media (min-width: 1024px) {
  .hero {
    align-items: center;
  }

  .hero__inner {
    padding: 104px 0 56px;
    padding: clamp(84px, 11.5svh, 104px) 0 clamp(28px, 5svh, 56px); /* tighter on short laptops */
  }

  .hero__mark {
    height: 1.7em;
  }

  .hero__foot {
    grid-template-columns: minmax(0, 26em) auto;
    align-items: center;
    justify-content: start;
    gap: 24px 56px;
    margin-top: clamp(28px, 5vh, 56px);
    margin-top: clamp(28px, 5svh, 56px);
  }

  .hero__cta {
    flex-wrap: nowrap;
    margin-left: 0;
  }
}

/* narrow desktops: give the text column back some of the width the two buttons take */
@media (min-width: 1024px) and (max-width: 1199px) {
  .hero__foot {
    gap: 24px 28px;
  }

  .hero__cta .btn {
    padding: 0 calc(var(--over) + 20px);
  }
}

/* opening sequence — first visit only; timings mirror main.js */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes rise {
  from {
    transform: translateY(125%);
  }
}

@keyframes lock {
  0% {
    opacity: 0;
    transform: scale(1.04);
  }
  25% {
    opacity: 1;
  }
}

.intro .nav {
  animation: fade-down 480ms var(--out) 100ms backwards;
}

.intro .hero__mark .mark {
  transform-origin: 30% 60%;
  animation: lock 480ms var(--out) 1050ms backwards;
}

.intro.intro-late .hero__mark .mark {
  animation-delay: 150ms;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.intro .hero__dash {
  animation: fade 320ms linear 1300ms backwards; /* (opacity only: its transform is the shear) */
}

.intro.intro-late .hero__dash {
  animation-delay: 400ms;
}

.intro .hero .stagger .ln > span {
  animation: rise 800ms var(--out) calc(400ms + var(--i, 0) * 60ms) backwards;
}

.intro .hero__lead {
  animation: fade-up 480ms var(--out) 620ms backwards;
}

.intro .hero__cta .btn:nth-child(1) {
  animation: fade-up 480ms var(--out) 700ms backwards;
}

.intro .hero__cta .btn:nth-child(2) {
  animation: fade-up 480ms var(--out) 790ms backwards;
}

/* ───────── sections ───────── */

.section,
.support__body {
  position: relative;
  max-width: calc(var(--max) + var(--m) * 2);
  margin: 0 auto;
  padding: var(--pad-y) var(--m);
}

/* who: the list is a program counter — the row at the reading line is the lit one */

.skills {
  margin-top: 40px;
}

.skill {
  display: grid;
  gap: 14px;
  padding: var(--row-y) 0;
  border-top: 1px solid var(--hair);
  color: #fff;
}

.skill:last-child {
  border-bottom: 1px solid var(--hair);
}

.skill__title {
  font: 500 clamp(17px, 5.6vw, 32px) / 1.14 var(--display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* The lit row leans — a bit that is set. With a mouse it eases over; under a thumb it simply
   switches: the row changes as the page scrolls past, and a transition there lifts the line
   into its own layer in the middle of the scroll. */
.skill__title > span {
  display: inline-block;
  transform-origin: 0 100%;
}

@media (hover: hover) and (pointer: fine) {
  .skill__title > span {
    transition: transform 120ms linear;
  }
}

.js .skill {
  color: var(--soft); /* every row can be read at once; the lit one is white and leans */
}

.js .skill .bits {
  color: var(--off);
}

.js .skill.is-on {
  color: #fff;
  border-top-color: #fff;
}

.js .skill.is-on .bits {
  color: #fff;
}

.js .skill.is-on .skill__title > span {
  transform: skewX(var(--slant));
}

@media (min-width: 600px) {
  .skills {
    margin-top: 56px;
  }
}

@media (min-width: 1024px) {
  .skills {
    margin-top: 64px;
  }

  .skill {
    grid-template-columns: minmax(0, 2fr) minmax(0, 10fr);
    align-items: center;
    gap: 24px;
  }
}

/* solo or team: one bit against a four-bit word */

.pair {
  display: grid;
  gap: 20px;
  margin-top: 56px;
}

.pair__items {
  display: grid;
  gap: 12px;
}

.bracket {
  position: relative;
  display: grid;
  gap: 14px;
  align-content: center;
  min-height: 92px;
  padding: 18px 34px;
  font: 500 clamp(17px, 4.6vw, 22px) / 1.2 var(--display);
  letter-spacing: -0.02em;
  color: #fff;
}

.bracket::before,
.bracket::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 16px;
  border: 1.5px solid #fff;
  transform: skewX(var(--slant));
}

.bracket::before {
  left: 15px;
  border-right: 0;
  border-radius: 12px 0 0 12px;
}

.bracket::after {
  right: 15px;
  border-left: 0;
  border-radius: 0 12px 12px 0;
}

/* stacked (below desktop): the cells and the two lines of text follow the bracket's lean */
@media (max-width: 1023.98px) {
  .bracket .bits {
    margin-left: calc(var(--k) * (2.4em + 14px));
  }

  .bracket__text {
    text-indent: calc(var(--k) * 1.2em);
  }
}

@media (min-width: 600px) {
  .pair__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .pair__items {
    gap: 24px;
  }

  .bracket {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    min-height: 104px;
    padding: 18px 44px;
  }
}

/* marquee */

.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: clamp(16px, 2.2vw, 30px) 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  user-select: none;
}

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee__list {
  display: flex;
  flex: none;
  align-items: center;
}

/* the read head: two ticks on the rules, in the middle of the strip */
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  left: 50%;
  z-index: 1;
  width: 9px;
  height: 8px;
  margin-left: -4px;
  background: #fff;
  border-radius: 1.5px;
  transform: skewX(var(--slant));
}

.marquee::before {
  top: 0;
}

.marquee::after {
  bottom: 0;
}

/* every word is an unlit bit until it passes under the read head */
.marquee__list li {
  display: flex;
  align-items: center;
  font: 500 clamp(30px, 6vw, 88px) / 1 var(--display);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--dim);
}

.marquee__list li > span {
  display: inline-block;
  transform-origin: 50% 50%; /* lean about the middle so the word stays clear of both separators */
}

@media (hover: hover) and (pointer: fine) {
  .marquee__list li > span {
    transition: transform 120ms linear;
  }
}

.marquee__list li::after {
  content: '';
  width: 0.14em;
  height: 0.66em;
  margin: 0 0.5em;
  background: currentColor;
  border-radius: 0.03em;
  transform: skewX(var(--slant));
}

.marquee__list li.is-on {
  color: #fff;
}

.marquee__list li.is-on > span {
  transform: skewX(var(--slant));
}

.no-js .marquee__track {
  animation: marquee 60s linear infinite;
}

.no-js .marquee__list li:nth-child(3n + 1) {
  color: #fff;
}

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

/* give */

@media (max-width: 599.98px) {
  .give {
    padding-bottom: 56px; /* the stage's own breathing room follows straight after */
  }
}

.give__head {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* three cells beside the label: one sets for each thing the sentence names */
.give__head .bits {
  --bit: 11px;
  gap: 3px;
  color: var(--dim);
}

.give__head .bits i.on {
  color: #fff; /* the cell's border and fill both follow currentColor */
}

.js .give__head .bits i.on {
  transition: none;
}

.statement {
  margin-top: 28px;
  font: 300 clamp(26px, 7.2vw, 80px) / 1.1 var(--display);
  letter-spacing: -0.035em;
  color: #fff;
  text-wrap: balance;
}

.statement em {
  font-style: normal;
  font-weight: 500;
}

/* Not yet lit, but already readable. main.js sets each word's colour as the sentence is
   scrolled through and eases it itself: a CSS transition here restarted on every frame of a
   scroll, and each restart lifted the word into a layer of its own for a moment. */
.js .sw {
  color: rgba(255, 255, 255, 0.4);
}

.give__foot,
.support__close {
  display: grid;
  gap: 32px;
  justify-items: start;
  margin-top: 56px;
}

.give__foot .btn,
.support__close .btn {
  margin-left: calc(var(--over) * -1);
}

@media (min-width: 1024px) {
  .statement {
    margin-top: 36px;
  }

  .give__foot,
  .support__close {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 56px;
    margin-top: 88px;
  }
}

/* ───────── project support ───────── */

.support {
  position: relative;
}

.support__pin {
  height: 190vh;
  height: 190svh;
}

/* Everything on the stage is sized in em off this one font-size, which follows the
   viewport's height — so on a short screen the stack shrinks instead of sliding down
   into the planet. */
.support__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px var(--m) 36vh;
  padding-bottom: 36svh;
  font-size: clamp(11px, 1.9vh, 16px);
  font-size: clamp(11px, 1.9svh, 16px);
  --gap: clamp(12px, 2.3vh, 20px);
  will-change: opacity; /* main.js fades it as it leaves: a layer of its own, so the fade repaints nothing */
  /* the figure's ring opens with transforms (see .frame__end): while it is closed its parts are
     parked off to the sides, and nothing parked may widen the page */
  overflow: hidden;
  overflow: clip;
}

.support__mark {
  width: 7.7em;
  height: 2.75em;
  flex: none;
  color: #fff;
}

.support__title {
  margin-top: var(--gap);
  font: 300 min(6.4vw, 3.25em) / 1.1 var(--display);
  letter-spacing: -0.03em;
  color: #fff;
}

.support__rule {
  width: 40px;
  height: 1px;
  margin-top: var(--gap);
  background: rgba(255, 255, 255, 0.5);
}

/* the owner's sentence leads into the number: «За нашими плечами опыт привлечения в проекты — до $30 млн» */
.support__caption {
  max-width: 16em;
  margin-top: var(--gap);
  font: 500 clamp(15px, 1.25em, 22px) / 1.3 var(--text);
  color: #fff;
  text-wrap: balance;
}

/* the frame is the mark's zero, opened: two sheared ends that start as one closed ring */
.frame {
  display: inline-grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  margin-top: calc(var(--gap) * 0.8);
  color: #fff;
}

.frame__end {
  width: 24px;
  border: 1.5px solid #fff;
  transform: skewX(var(--slant));
}

.frame__end--l {
  border-right: 0;
  border-radius: 16px 0 0 16px;
}

.frame__end--r {
  border-left: 0;
  border-radius: 0 16px 16px 0;
}

.frame__body {
  min-width: 0;
  overflow: hidden;
}

.frame__clip {
  display: block;
  overflow: hidden;
}

.frame__inner {
  display: grid;
  justify-items: start;
  padding: 0.3em 0.1em 0.28em;
  font: 700 min(16vw, 4.5em) / 0.98 var(--display);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.frame__pre {
  margin-bottom: 0.3em;
  font: 400 max(15px, 0.3em) / 1 var(--display);
  letter-spacing: 0;
  text-transform: none;
}

/* The figure is the page's one number, so it gets the page's one colour: when it has
   decoded, the frame closes into a solid blue plate — the brackets become its lit edges —
   and a band of light crosses it once. */
.frame {
  position: relative;
  isolation: isolate;
}

.frame::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 16px;
  opacity: 0;
  transform: skewX(var(--slant));
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 60%) 150% 0 / 220% 100% no-repeat,
    linear-gradient(180deg, var(--blue-hi), var(--blue) 62%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: opacity 120ms linear;
}

/* the plate's glow: two plain shadows, like the buttons' (see .btn--solid::after), wider and
   softer. A shadow's offset cannot be a percentage, so main.js measures the plate (--plate-h).
   It comes on by its own colour, never by `opacity`: Safari on a phone draws seams — thin lines
   fanning out round the plate — through a soft shadow on an element that is not fully opaque. */
.frame::after {
  --half: calc(var(--plate-h, 11.4em) * 0.4); /* half the lit core: the core is 80% of the plate's height */
  --lean: calc(var(--half) * var(--k) / 2);
  --lit: 0;
  content: '';
  position: absolute;
  z-index: -2;
  top: 10%;
  height: 40%;
  left: calc(5% + var(--lean));
  right: calc(5% - var(--lean));
  border-radius: 16px;
  box-shadow:
    0 0 76px rgba(var(--blue-glow), var(--lit)),
    calc(var(--lean) * -2) var(--half) 76px rgba(var(--blue-glow), var(--lit));
  pointer-events: none;
  transition: box-shadow 600ms linear;
}

.frame.is-lit::before {
  opacity: 1;
  animation: plate-shine 1100ms linear 160ms 1 both;
}

@keyframes plate-shine {
  from {
    background-position:
      150% 0,
      0 0;
  }
  to {
    background-position:
      -50% 0,
      0 0;
  }
}

.frame.is-lit::after {
  --lit: 0.85;
}

/* with a mouse: the blurred copy it has always been there, breathing like the buttons' */
@media (hover: hover) and (pointer: fine) {
  .frame::after {
    inset: 10% 5%;
    height: auto;
    background: var(--blue);
    box-shadow: none;
    transform: skewX(var(--slant));
    filter: blur(38px);
    opacity: 0;
    transition: opacity 600ms linear;
  }

  .frame.is-lit::after {
    opacity: 0.75;
    animation: btn-glow 3.6s ease-in-out 600ms infinite;
  }
}

.frame.is-lit .frame__end {
  border-color: var(--blue-line);
}

.no-js .frame::before {
  opacity: 1;
}

.no-js .frame::after {
  --lit: 0.75;
}

@media (hover: hover) and (pointer: fine) {
  .no-js .frame::after {
    opacity: 0.75;
  }
}

/* while the figure decodes, each character sits in a cell of its final width and shows
   as a bit cell — hollow or solid — until it locks */
.frame .cell {
  position: relative;
  display: inline-block;
  text-align: center;
}

.frame .cell.bit {
  color: transparent;
}

.frame .cell.bit::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.5em;
  height: 0.58em;
  margin: -0.29em 0 0 -0.25em;
  border: 0.055em solid #fff;
  border-radius: 0.12em;
  transform: skewX(var(--slant));
}

.frame .cell.bit.on::before {
  background: #fff;
}

/* on a phone the figure stacks — and the stack leans with the frame, like every other
   display block on the page */
@media (max-width: 599.98px) {
  .frame__inner {
    padding: 0.3em 0.48em 0.28em 0.1em;
  }

  .frame__num {
    margin-left: calc(var(--k) * 0.98em);
  }

  .frame__pre {
    margin-left: calc(var(--k) * 6.83em);
  }
}

@media (min-width: 600px) {
  .frame__end {
    width: 40px;
  }

  .frame__inner {
    display: flex;
    align-items: baseline;
    gap: 0.2em;
    padding: 0.24em 0.2em 0.22em;
    font-size: min(9.6vw, 8em);
  }

  .frame__pre {
    margin: 0 0.15em 0 0;
    transform: translateY(-0.5em);
  }

  .support__rule {
    width: 56px;
  }
}

@media (min-width: 1024px) {
  .support__pin {
    height: 210vh;
    height: 210svh;
  }

  .support__stage {
    padding-top: 72px;
    padding-bottom: 36vh;
    padding-bottom: 36svh;
    font-size: clamp(11px, 1.78vh, 16px);
    font-size: clamp(11px, 1.78svh, 16px);
  }

  /* as on the poster, the mark is the largest thing above the number */
  .support__mark {
    width: 11em;
    height: 3.94em;
  }
}

/* the stage's cue: everything steps in, then the ring splits and the number shows */
.js .support__mark,
.js .support__title,
.js .support__rule,
.js .support__caption,
.js .frame__end {
  opacity: 0;
  transition: opacity 240ms linear;
}

.js .support__stage.is-live .support__mark {
  opacity: 1;
}

.js .support__stage.is-live .support__title {
  opacity: 1;
  transition-delay: 90ms;
}

.js .support__stage.is-live .support__rule {
  opacity: 1;
  transition-delay: 180ms;
}

.js .support__stage.is-live .support__caption {
  opacity: 1;
  transition-delay: 240ms;
}

/* The ring opens with transforms alone — nothing is laid out or painted again while it moves.
   The frame has its final width from the start. Closed, its two ends sit together in the
   middle (each shifted by half the body's width, --open, which main.js measures) and the
   figure is behind two clips that overlap nowhere. Opening, the ends travel apart and the
   clips slide over each other: the outer one bares the figure's left edge, the inner one its
   right, and the figure rides with the left end — exactly what stretching the grid track used
   to show, at the price of a layout on every frame. */
.js .frame__end {
  transition:
    opacity 240ms linear,
    transform 560ms var(--snap);
}

.js .frame__end--l {
  transform: translateX(calc(var(--open, 0px) / 2)) skewX(var(--slant));
}

.js .frame__end--r {
  transform: translateX(calc(var(--open, 0px) / -2)) skewX(var(--slant));
}

.js .frame__body,
.js .frame__clip,
.js .frame__inner {
  transition: transform 560ms var(--snap);
}

.js .frame__body {
  transform: translateX(50%);
}

.js .frame__clip {
  transform: translateX(-100%);
}

.js .frame__inner {
  transform: translateX(100%);
}

.js .support__stage.is-live .frame__end {
  opacity: 1;
  transform: translateX(0) skewX(var(--slant));
  transition-delay: 300ms, 620ms;
}

.js .support__stage.is-live .frame__body,
.js .support__stage.is-live .frame__clip,
.js .support__stage.is-live .frame__inner {
  transform: none;
  transition-delay: 620ms;
}

/* after the stage */

.support__body {
  padding-top: 24px;
}

/* phones: a shorter hold on the number, and the text that follows comes up while the number
   is still fading — never a screen with nothing on it but the horizon */
@media (max-width: 599.98px) {
  .js .support__pin {
    height: 160vh;
    height: 160svh;
  }

  .js .support__body {
    margin-top: -14vh;
    margin-top: -14svh;
  }
}

.lists {
  display: grid;
  gap: 64px;
  margin-top: 72px;
}

.rows {
  margin-top: 20px;
}

.rows li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: var(--row-y) 0;
  border-top: 1px solid var(--hair);
  font: 500 clamp(17px, 4.6vw, 22px) / 1.2 var(--display);
  letter-spacing: -0.02em;
  color: #fff;
}

.rows li:last-child {
  border-bottom: 1px solid var(--hair);
}

.plus {
  width: 14px;
  flex: none;
  font: 300 22px/0.6 var(--display);
  text-align: center;
  color: var(--off);
}

@media (min-width: 1024px) {
  .lists {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 96px;
  }

  .rows li {
    padding: 26px 0;
  }

  .plus {
    width: 22px;
    font-size: 28px;
  }
}

/* ───────── contact ───────── */

.contact {
  position: relative;
  max-width: calc(var(--max) + var(--m) * 2);
  margin: 0 auto;
  padding: 0 var(--m) 56px;
  min-height: 100vh;
  min-height: max(640px, 100svh);
  display: grid;
  grid-template-rows: minmax(38vh, 1fr) auto;
  grid-template-rows: minmax(38svh, 1fr) auto;
}

.contact__mark {
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(78vw, 420px);
  aspect-ratio: 335 / 120;
  color: #fff;
}

/* The particles draw the mark here, in a canvas of its own (scene.js, createMark): it lies in
   the page, so it scrolls with the text around it — exactly, at any speed. It is a little
   larger than the mark, for the particles on their way in; never wider than the screen. */
.contact__canvas {
  position: absolute;
  left: -10%;
  top: -48px;
  width: 120%;
  height: calc(100% + 96px);
  pointer-events: none;
}

/* …and the drawn mark is the stand-in when they cannot */
.contact__mark .mark {
  display: none;
}

.contact__mark.is-static .mark,
.no-gl .contact__mark .mark,
.no-js .contact__mark .mark {
  display: block;
}

.contact__mark.is-static .contact__canvas,
.no-gl .contact__canvas,
.no-js .contact__canvas {
  display: none;
}

/* «Связаться» jumps here rather than to the section top, so both buttons are in view
   even in a short in-app browser */
.contact__body {
  scroll-margin-top: 20px;
}

@media (min-width: 1024px) {
  .contact__body {
    scroll-margin-top: 104px; /* clear of the fixed nav */
  }
}

.contact__title {
  --lh: 1.06;
  margin-top: 20px;
  font-size: clamp(28px, min(8.4vw, 9vh), 64px);
  font-size: clamp(28px, min(8.4vw, 9svh), 64px);
}

.ways {
  display: grid;
  gap: 28px;
  margin-top: 36px;
}

.way {
  display: grid;
  gap: 8px;
}

.way__who {
  font: 500 clamp(15px, 4.2vw, 18px) / 1.2 var(--display);
  letter-spacing: -0.02em;
  color: #fff;
}

.way__text {
  max-width: 28em;
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
}

.way .btn {
  justify-content: space-between;
  margin: 10px calc(var(--over) * -1) 0;
}

@media (min-width: 600px) {
  .ways {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .way {
    grid-template-rows: auto 1fr auto;
  }
}

@media (min-width: 1024px) {
  .contact {
    grid-template-rows: none;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: 48px;
    padding-top: 96px;
    padding-bottom: 72px;
  }

  .contact__mark {
    order: 2;
    width: min(100%, 520px);
    justify-self: end;
  }

  .contact__canvas {
    left: -12%; /* (the mark sits against the right margin here) */
  }

  .contact__title {
    margin-top: 24px;
  }

  /* full width of the column, so «Специалистам и командам» sets on one line and the two
     ways line up row for row */
  .ways {
    margin-top: 56px;
  }

  .way__text {
    font-size: 16px;
  }
}

/* ───────── footer ───────── */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  max-width: calc(var(--max) + var(--m) * 2);
  margin: 0 auto;
  padding: 27px var(--m) calc(27px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hair);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__logo {
  box-sizing: content-box;
  width: 50px;
  height: 18px;
  padding: 13px 0; /* a 44 px tap target around an 18 px mark */
  flex: none;
  color: #fff;
}

.footer__top {
  padding: 15px 0;
}

.footer__top::after {
  bottom: 9px;
}

.footer__bytes {
  font: 500 11px/1 var(--display);
  letter-spacing: 0.16em;
  color: var(--dim);
}

.footer__top {
  margin-left: auto;
}

/* ───────── application form ─────────
   The owner's mock-up: a few short steps; every answer is a card with an icon and a tick;
   «Далее» moves on. It opens over the page from every «Стать частью 01» button. The sea
   keeps moving behind a heavy veil, so nothing competes with the fields; when the form is
   sent the veil thins and the particles assemble the mark. Without JavaScript it is a plain
   section of the page and all the steps simply follow one another. */

.join {
  position: relative;
  z-index: 1;
}

.js .join {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-padding: 88px 0 132px; /* a focused field hides neither under the bar nor under «Далее» */
}

.js .join.is-open {
  display: block;
}

.join-open,
.join-open body {
  overflow: hidden; /* the page behind holds still */
}

/* …and steps out of sight, so only the sea is left behind the form */
.js main,
.js .footer {
  transition: opacity 240ms linear;
}

.join-open main,
.join-open .footer,
.join-open .nav,
.join-open .meter {
  opacity: 0;
}

/* one form, two kinds: the markup carries both wordings and the layer shows one */
.join[data-kind='team'] [data-only='project'],
.join[data-kind='project'] [data-only='team'] {
  display: none;
}

.join__veil {
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0.92;
  pointer-events: none;
  transition: opacity 600ms linear;
}

.join.is-done .join__veil {
  opacity: 0.4; /* thin enough for the mark the particles draw to read as white */
}

.join__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 600px;
  min-height: 100%;
  margin: 0 auto;
  padding: 0 var(--m);
  outline: none;
}

@keyframes join-veil {
  from {
    opacity: 0;
  }
}

@keyframes join-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

.join.is-open .join__veil {
  animation: join-veil 240ms linear backwards;
}

.join.is-open .join__panel {
  animation: join-rise 480ms var(--out) 60ms backwards;
}

.join.is-closing {
  opacity: 0;
  transition: opacity 160ms linear;
}

/* line icons (the symbols are in index.html): drawn with the current colour */
.ico {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* bar: the mark and the way out */
.join__bar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: calc(64px + env(safe-area-inset-top));
  margin: 0 calc(var(--m) * -1);
  padding: env(safe-area-inset-top) var(--m) 0;
  background: linear-gradient(180deg, #000 68%, rgba(0, 0, 0, 0));
}

.join__logo {
  width: 56px;
  height: 20px;
  flex: none;
  color: #fff;
}

.join__close {
  appearance: none;
  margin: 0 -8px 0 0;
  padding: 16px 8px;
  border: 0;
  background: none;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--body);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.join__close:active {
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .join__close:hover {
    color: #fff;
  }
}

.join__form {
  display: flex;
  flex: 1;
  flex-direction: column;
}

/* «Шаг 1 из 3» and one segment per step */
.join__progress {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.join__stepno {
  font-size: 14px;
  line-height: 1.2;
  color: var(--body);
}

.join__segs {
  display: flex;
  gap: 7px;
  padding: 0 2px;
}

.join__segs i {
  flex: 1;
  height: 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  transform: skewX(var(--slant));
  transition:
    background-color 240ms linear,
    box-shadow 240ms linear;
}

.join__segs i.on {
  background: var(--blue);
  box-shadow: 0 0 10px rgba(var(--blue-glow), 0.85);
}

.join__off {
  display: none;
  margin-top: 20px;
  padding: 12px 14px;
  border: 1.5px dashed rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
}

.join__form[data-apply='off'] .join__off {
  display: block;
}

/* a step */
.step {
  padding: 28px 0 12px;
}

.step[hidden] {
  display: none;
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
}

@keyframes step-back {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
}

.js .step.is-in {
  animation: step-in 380ms var(--out) backwards;
}

.js .step.is-in.is-back {
  animation-name: step-back;
}

.step__title {
  --lh: 1.08;
  display: block;
  padding: 0;
  font-size: clamp(26px, 7.6vw, 40px);
}

.js .join .stagger .ln > span {
  transform: none; /* the step's own entrance carries the heading */
  transition: none;
}

.step__title--q {
  margin-bottom: 22px; /* a legend sits outside its fieldset's grid */
}

.step__lead {
  max-width: 24em;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  text-wrap: pretty;
}

/* one question */
.q {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 32px 0 0; /* (a margin, not padding: a fieldset's legend sits above its padding) */
  padding: 0;
  border: 0;
}

.q--first {
  margin-top: 28px;
}

.step > .q--first:first-child {
  margin-top: 0;
}

.q__label {
  display: block;
  padding: 0;
  font: 500 clamp(15px, 4.2vw, 17px) / 1.26 var(--display);
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}

.q__label--lg {
  font-size: clamp(18px, 5.3vw, 22px);
  line-height: 1.2;
}

fieldset.q > .q__label {
  margin-bottom: 12px;
}

/* the hint and the error sit between the question and its field: under the field a phone's
   keyboard would cover them */
.q__hint {
  margin-top: -5px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--off);
}

.q__error {
  display: none;
  align-items: baseline;
  gap: 9px;
  font: 500 14px/1.4 var(--text);
  color: #fff;
}

/* an empty cell: the bit that is not set yet */
.q__error::before {
  content: '';
  width: 10px;
  height: 9px;
  flex: none;
  border: 1.5px solid #fff;
  border-radius: 2px;
  transform: skewX(var(--slant));
}

.q.is-bad .q__error {
  display: flex;
}

fieldset.q > .q__error {
  margin-bottom: 12px;
}

fieldset.q > .q__hint + .q__error {
  margin-top: 8px;
}

/* text fields: 17 px (an iPhone zooms the page in on anything under 16) */
.field {
  appearance: none;
  display: block;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 15px 16px;
  font: 400 17px/1.4 var(--text);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  outline: none;
  transition:
    border-color 120ms linear,
    background-color 120ms linear,
    box-shadow 200ms linear;
}

.field::placeholder {
  color: var(--off);
  opacity: 1;
}

/* empty → filled → in use: the outline steps up each time */
.field:not(:placeholder-shown) {
  border-color: var(--off);
}

.field:focus {
  border-color: var(--blue-line);
  background: rgba(var(--blue-glow), 0.08);
  box-shadow:
    0 0 0 1px var(--blue),
    0 0 20px rgba(var(--blue-glow), 0.28);
}

.field--area {
  min-height: 132px;
  resize: none;
}

.field--short {
  min-height: 92px;
}

.q.is-bad .field {
  border-color: #fff;
  border-style: dashed;
  box-shadow: none;
}

.field:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  box-shadow: inset 0 0 0 100px #161616;
}

@media (hover: hover) and (pointer: fine) {
  .field:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.55);
  }
}

/* an answer: a card with an icon on the left and a tick on the right. Chosen, it lights
   up in the page's blue — outline, glow, icon and tick. */
.opts {
  display: grid;
  gap: 8px;
}

.opt {
  position: relative;
  display: block;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.opt input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.opt__box {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 10px 14px 10px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--body);
  transition:
    border-color 120ms linear,
    background-color 120ms linear,
    color 120ms linear,
    box-shadow 220ms linear;
}

.opt__text {
  flex: 1;
  min-width: 0;
  font: 500 16px/1.25 var(--text);
  color: #e6e6e6;
}

.opt__check {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--dim);
  border-radius: 6px;
  color: transparent;
  transition:
    background-color 120ms linear,
    border-color 120ms linear;
}

.opt__check .ico {
  width: 15px;
  height: 15px;
  stroke-width: 2.6;
}

.opt input:checked ~ .opt__box {
  border-color: var(--blue-line);
  background: rgba(var(--blue-glow), 0.14);
  box-shadow:
    0 0 0 1px var(--blue),
    0 0 22px rgba(var(--blue-glow), 0.36);
  color: var(--blue-line);
}

.opt input:checked ~ .opt__box .opt__text {
  color: #fff;
}

.opt input:checked ~ .opt__box .opt__check {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.opt input:focus-visible ~ .opt__box {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.opt:active .opt__box {
  border-color: rgba(255, 255, 255, 0.55);
}

@media (hover: hover) and (pointer: fine) {
  .opt:hover input:not(:checked) ~ .opt__box {
    border-color: rgba(255, 255, 255, 0.5);
  }
}

/* the two ways of working: the same card, taller */
.opts--lg {
  gap: 12px;
}

.opts--lg .opt__box {
  min-height: 70px;
  padding: 14px 16px 14px 20px;
  border-radius: 14px;
}

.opts--lg .opt__box > .ico {
  width: 26px;
  height: 26px;
}

.opts--lg .opt__text {
  font-size: 17px;
}

.q__more {
  display: none;
}

.q.has-other .q__more,
.q:has(input[value='other']:checked) .q__more {
  display: block;
}

/* the owner's note under the contact fields */
.join__note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  font-size: 15px;
  line-height: 1.45;
  color: var(--body);
}

.join__note .ico {
  width: 24px;
  height: 24px;
  color: var(--off);
}

.join__note span {
  padding-left: 16px;
  border-left: 1px solid var(--hair);
}

.join__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* «Далее», the way back, and at the end «Отправить анкету»: they hold to the bottom of the
   screen — except while someone types, when the keyboard needs that room */
.join__nav {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 12px;
  margin: auto calc(var(--m) * -1) 0;
  padding: 22px var(--m) calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), #000 36%);
}

.join__form.is-typing .join__nav {
  position: static;
}

.join__navrow {
  display: flex;
  align-items: center;
  margin: 0 -9px; /* the sheared ends reach the page margin */
}

.join__nav [hidden] {
  display: none;
}

.join__status {
  font: 500 15px/1.4 var(--text);
  color: #fff;
}

.join__status:empty {
  display: none;
}

.join__status a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

button.btn {
  appearance: none;
  border: 0;
  background: none;
  -webkit-tap-highlight-color: transparent;
}

.join__prev {
  flex: none;
  width: 66px;
  padding: 0;
}

.join__prev .btn__arrow {
  transform: rotate(180deg);
}

.join__prev + .join__next,
.join__prev + .join__next + .join__submit,
.join__prev + .join__submit {
  margin-left: -8px; /* the two sheared ends sit one gap apart */
}

.join__next,
.join__submit {
  flex: 1;
  justify-content: center;
  gap: 14px;
  min-width: 0;
}

.join__submit .btn__arrow {
  stroke-width: 1.8;
}

/* every required answer is in: the button's own bit is set, and its word leans */
.join__submit.is-ready .btn__label {
  transform: skewX(var(--slant));
}

@media (hover: hover) and (pointer: fine) {
  .join__prev:hover .btn__arrow {
    transform: rotate(180deg) translateX(4px);
  }
}

.join__done .btn {
  margin: 8px 0 0 calc(var(--over) * -1);
}

/* while sending, the icon gives way to three bits counting */
.join__busy {
  display: none;
  gap: 4px;
}

.join__busy i {
  width: 10px;
  height: 9px;
  border: 1.5px solid #fff;
  border-radius: 2px;
  transform: skewX(var(--slant));
}

@keyframes busy-bit {
  0%,
  33% {
    background: #fff;
  }
  34%,
  100% {
    background: transparent;
  }
}

.join__submit.is-busy {
  pointer-events: none;
}

.join__submit.is-busy .btn__arrow {
  display: none;
}

.join__submit.is-busy .join__busy {
  display: flex;
}

.join__submit.is-busy .join__busy i {
  animation: busy-bit 720ms steps(1, end) infinite;
}

.join__submit.is-busy .join__busy i:nth-child(2) {
  animation-delay: 240ms;
}

.join__submit.is-busy .join__busy i:nth-child(3) {
  animation-delay: 480ms;
}

/* sent */
.join__done {
  display: none;
}

.join.is-done .join__form {
  display: none;
}

.join.is-done .join__done {
  display: grid;
  flex: 1;
  justify-items: start;
  align-content: center;
  gap: 20px;
  padding-bottom: calc(48px + env(safe-area-inset-bottom));
  outline: none;
}

.join__done-mark {
  width: min(72vw, 340px);
  aspect-ratio: 335 / 120;
  margin-bottom: 12px;
  color: #fff;
}

/* the particles draw the mark here; the drawn one is the stand-in when they cannot */
.join__done-mark .mark {
  display: none;
}

.no-gl .join__done-mark .mark,
.gl-lost .join__done-mark .mark {
  display: block;
}

.join__done-title {
  --lh: 1.06;
  font-size: clamp(28px, 8.4vw, 52px);
}

.join__done-text {
  max-width: 24em;
  font: 500 clamp(18px, 4.8vw, 22px) / 1.35 var(--text);
  color: #e2e2e2;
}

.join__done-contact {
  display: grid;
  justify-items: start;
  gap: 2px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--body);
}

.join__done-contact b {
  font-weight: 500;
  color: #fff;
  overflow-wrap: anywhere;
}

.join__done-contact.is-empty {
  display: none;
}

.join__fix {
  appearance: none;
  margin: 0;
  padding: 10px 0;
  border: 0;
  background: none;
  font: inherit;
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* phones: the eight directions and «Далее» should nearly fit one screen */
@media (max-width: 599.98px) {
  .step {
    padding-top: 22px;
  }

  .step__lead {
    margin-top: 12px;
  }

  .q--first {
    margin-top: 24px;
  }

  .opts:not(.opts--lg) {
    gap: 7px;
  }

  .opts:not(.opts--lg) .opt__box {
    min-height: 50px;
    padding: 8px 12px 8px 14px;
  }
}

/* wider screens: the same column, set as a card over the sea */
@media (min-width: 760px) {
  .join__panel {
    max-width: 664px;
  }

  .join__form {
    margin: 4px 0 40px;
    padding: 28px 40px 0;
    border: 1px solid var(--hair);
    border-radius: 28px;
    background: rgba(0, 0, 0, 0.6);
  }

  .join__nav {
    margin: auto -40px 0;
    padding: 24px 40px 30px;
    border-radius: 0 0 28px 28px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.92) 36%);
  }

  .step {
    padding-top: 32px;
  }

  .opt__box {
    min-height: 58px;
  }

  .join__done-mark {
    width: 400px;
  }
}

/* without JavaScript: a section like any other — every step in turn, posted the plain way */
.no-js .join {
  max-width: calc(var(--max) + var(--m) * 2);
  margin: 0 auto;
  padding: var(--pad-y) 0 56px;
}

.no-js .join__veil,
.no-js .join__bar,
.no-js .join__progress,
.no-js .join__prev,
.no-js .join__next,
.no-js .join__done {
  display: none;
}

.no-js .join__panel {
  margin: 0;
}

.no-js .join__nav {
  position: static;
  background: none;
}

/* ───────── reduced motion ───────── */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js [data-reveal],
  .js .stagger:not(.is-in) .ln > span {
    opacity: 1;
    transform: none;
  }

  .js .skill {
    color: #fff;
  }

  .js .skill .bits {
    color: #fff;
  }

  .js .skill.is-on .skill__title > span {
    transform: none;
  }

  .hero__block {
    transform: none;
  }

  .js .sw {
    color: inherit;
  }

  /* nothing waits for a scroll cue: every state is final from the start */
  .js .support__mark,
  .js .support__title,
  .js .support__rule,
  .js .support__caption,
  .js .frame__end {
    opacity: 1;
  }

  .js .frame__end {
    transform: skewX(var(--slant));
  }

  .js .frame__body,
  .js .frame__clip,
  .js .frame__inner {
    transform: none;
  }
}

/* ───────── without JavaScript ───────── */

.no-js .nav::before {
  opacity: 1;
}

.no-js .support__pin {
  height: auto;
}

.no-js .support__stage {
  position: static;
  height: auto;
  padding: var(--pad-y) var(--m);
}
