/* ============================================================
   ФОРМА — core stylesheet
   Ultra-dark immersive manifesto site
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --bg:        #080808;
  --bg-2:      #0c0c0c;
  --bg-3:      #111110;
  --ink:       #E8E8E0;   /* cold white */
  --ink-dim:   #9a9a92;
  --ink-faint: #767670;
  --line:      rgba(232, 232, 224, 0.10);
  --line-2:    rgba(232, 232, 224, 0.18);
  --amber:     #F5A623;   /* electric amber */
  --amber-deep:#c97f10;
  --teal:      #0D4F4F;   /* deep teal */
  --teal-lit:  #16807f;

  --serif: "Instrument Serif", Georgia, serif;
  --grotesk: "Space Grotesk", "Segoe UI", system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --gutter: clamp(20px, 5vw, 80px);
  --maxw: 1500px;
}

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

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--grotesk);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* hide the system cursor ONLY after JS has built the custom one
   (set via html.cursor-custom). If JS never runs, the normal cursor stays. */
html.cursor-custom,
html.cursor-custom * { cursor: none; }

/* film grain + subtle vignette over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  background:
    radial-gradient(130% 100% at 50% 0%, transparent 55%, rgba(0,0,0,0.55) 100%);
  mix-blend-mode: multiply;
}

::selection {
  background: var(--amber);
  color: #080808;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

/* ---------- utility ---------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--grotesk);
  font-size: clamp(11px, 0.85vw, 13px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-weight: 500;
}

.amber { color: var(--amber); }
.serif { font-family: var(--serif); }

/* big section index numeral */
.sect-index {
  font-family: var(--grotesk);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.8;
  font-size: clamp(64px, 13vw, 200px);
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
  user-select: none;
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 10000;
  border-radius: 50%;
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--ink);
  margin: -3px 0 0 -3px;
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(232,232,224,0.55);
  margin: -19px 0 0 -19px;
  transition: width .28s var(--ease), height .28s var(--ease),
              background .28s var(--ease), border-color .28s var(--ease), opacity .28s;
}
.cursor-ring.is-hover {
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  background: rgba(245,166,35,0.12);
  border-color: var(--amber);
}
.cursor-ring.is-down { width: 28px; height: 28px; margin:-14px 0 0 -14px; }

@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  button, a { cursor: pointer; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(18px, 2.4vw, 30px) var(--gutter);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease),
              border-color .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,8,8,0.72);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line);
  padding-block: clamp(12px, 1.6vw, 18px);
}
.nav__logo {
  font-family: var(--grotesk);
  font-weight: 700;
  font-size: clamp(18px, 1.5vw, 22px);
  letter-spacing: 0.18em;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.nav__logo .mark {
  display: inline-block;
  width: 9px; height: 9px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 14px 1px rgba(245,166,35,0.8);
  animation: pulse-dot 3.5s var(--ease-io) infinite;
}
@keyframes pulse-dot {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.55); opacity: 0.55; }
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 38px);
}
.nav__link {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  position: relative;
  padding: 4px 0;
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__link--cta {
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 9px 20px;
  transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: var(--amber); color: #080808; border-color: var(--amber); }

.nav__burger { display: none; }
.nav__links.mobile { display: none; }

@media (max-width: 860px) {
  .nav__links:not(.mobile) { display: none; }
  .nav__burger {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; padding: 8px;
  }
  .nav__burger span { width: 26px; height: 2px; background: var(--ink); transition: .3s var(--ease); }
  .nav.menu-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav__links.mobile {
    display: flex;
    position: fixed;
    inset: 0;
    top: 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    padding: var(--gutter);
    background: rgba(8,8,8,0.97);
    backdrop-filter: blur(20px);
    transform: translateY(-100%);
    transition: transform .5s var(--ease);
    z-index: -1;
  }
  .nav.menu-open .nav__links.mobile { transform: translateY(0); }
  .nav__links.mobile .nav__link { font-size: clamp(30px, 8vw, 46px); font-family: var(--serif); color: var(--ink); }
  .nav__links.mobile .nav__link--cta { border: none; padding: 0; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
#field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}
/* CSS fallback animated gradient if canvas fails */
.hero__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background:
    radial-gradient(60% 60% at 20% 30%, rgba(13,79,79,0.35), transparent 60%),
    radial-gradient(50% 50% at 80% 70%, rgba(245,166,35,0.12), transparent 60%),
    #080808;
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { background-position: 0% 0%, 100% 100%; }
  100% { background-position: 20% 20%, 80% 60%; }
}
.no-canvas .hero__fallback { opacity: 1; }

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero__eyebrow {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: clamp(20px, 3vw, 38px);
}
.hero__eyebrow .ln { height: 1px; width: clamp(40px, 8vw, 120px); background: var(--line-2); display: inline-block; }

.hero__title {
  font-family: var(--grotesk);
  font-weight: 500;
  font-size: clamp(46px, 8.2vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line:nth-child(2) { color: var(--ink-dim); }
.hero__title .word {
  display: inline-block;
  white-space: nowrap;
}
.hero__title .char {
  display: inline-block;
}
@keyframes char-rise {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.hero__sub {
  font-family: var(--serif);
  font-size: clamp(19px, 2.3vw, 30px);
  line-height: 1.35;
  color: var(--ink-dim);
  max-width: 30ch;
  margin-top: clamp(26px, 3.5vw, 44px);
}
.hero__sub em { color: var(--ink); font-style: italic; }

@media (max-width: 640px) {
  .hero__title { font-size: clamp(40px, 12.5vw, 84px); }
  .hero__title .word { white-space: normal; }
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(34px, 4vw, 56px);
  flex-wrap: wrap;
}

@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* entrance states apply ONLY once JS confirms a live animation frame
   (html.anim-ready); base state stays visible so content never depends
   on an animation that may not run. */
@media (prefers-reduced-motion: no-preference) {
  .anim-ready .hero.anim .hero__title .char {
    transform: translateY(110%);
    opacity: 0;
    animation: char-rise .7s var(--ease) forwards;
    animation-delay: inherit;
  }
  .anim-ready .hero.anim .hero__sub { opacity: 0; animation: fade-up .7s var(--ease) .55s forwards; }
  .anim-ready .hero.anim .hero__actions { opacity: 0; animation: fade-up .7s var(--ease) .7s forwards; }
  /* opacity-only so the scroll-cue keeps its translateX(-50%) centering */
  .anim-ready .hero.anim .scroll-cue { opacity: 0; animation: fade-in .7s var(--ease) .9s forwards; }
}

/* SAFETY NET — guarantees the hero reaches its visible end-state even if the
   animation timeline is throttled/frozen (rAF fires but the clock never
   advances). Added by JS via animationend OR a setTimeout fallback. */
.hero.shown .hero__title .char,
.hero.shown .hero__sub,
.hero.shown .hero__actions {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.hero.shown .scroll-cue {
  opacity: 1 !important;
  animation: none !important;
  transition: opacity .5s var(--ease);
}

/* magnetic button */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--grotesk);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 17px 30px;
  border-radius: 100px;
  border: 1px solid var(--amber);
  color: #080808;
  background: var(--amber);
  overflow: hidden;
  will-change: transform;
  transition: transform .2s var(--ease);
}
.btn__label { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 12px; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .45s var(--ease);
  z-index: 1;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover .btn__label { color: #080808; }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--ink);
}
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover .btn__label { color: #080808; }

.hero__ghostlink {
  font-size: 15px;
  color: var(--ink-dim);
  display: inline-flex; align-items: center; gap: 10px;
  transition: color .3s var(--ease);
}
.hero__ghostlink:hover { color: var(--ink); }
.hero__ghostlink .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-lit); }

/* scroll indicator */
.scroll-cue {
  position: absolute;
  bottom: clamp(22px, 3vw, 40px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.scroll-cue__label {
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-faint);
  writing-mode: vertical-rl;
}
.scroll-cue__track {
  width: 1px; height: 56px;
  background: var(--line-2);
  position: relative;
  overflow: hidden;
}
.scroll-cue__track::after {
  content: "";
  position: absolute;
  top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--amber);
  animation: scroll-run 2.2s var(--ease-io) infinite;
}
@keyframes scroll-run {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(300%); }
}

/* ============================================================
   GENERIC SECTION
   ============================================================ */
.section { position: relative; padding-block: clamp(90px, 13vw, 200px); }
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(48px, 7vw, 100px);
  flex-wrap: wrap;
}
.section__tag {
  display: flex; align-items: baseline; gap: 16px;
}
.section__tag .n { font-family: var(--grotesk); font-weight: 600; color: var(--amber); font-size: 14px; letter-spacing: 0.1em; }
.section__tag .t { font-size: 14px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-dim); }

/* reveal base — hidden state applies ONLY when JS confirmed a live frame
   (html.anim-ready). Otherwise content is visible by default. */
.anim-ready [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0ms);
}
.anim-ready [data-reveal].in { opacity: 1; transform: none; }

/* ============================================================
   01 — МАНИФЕСТ
   ============================================================ */
.manifest { background: var(--bg); border-top: 1px solid var(--line); overflow-x: clip; }
.manifest__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 4vw, 40px);
  margin-bottom: clamp(40px, 6vw, 80px);
}
.manifest__lead {
  font-family: var(--serif);
  font-size: clamp(34px, 6.5vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.manifest__lead em { color: var(--amber); font-style: italic; }

.thesis { border-top: 1px solid var(--line); }
.thesis__item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: clamp(16px, 4vw, 60px);
  align-items: center;
  padding: clamp(26px, 3.4vw, 46px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background .5s var(--ease);
}
.thesis__item::before {
  content: "";
  position: absolute;
  left: -100vw; right: -100vw; top: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(245,166,35,0.05), transparent);
  opacity: 0;
  transition: opacity .5s var(--ease);
  z-index: -1;
}
.thesis__item:hover::before { opacity: 1; }
.thesis__n {
  font-family: var(--grotesk);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  transition: color .4s var(--ease);
}
.thesis__item:hover .thesis__n { color: var(--amber); }
.thesis__text {
  font-family: var(--grotesk);
  font-weight: 400;
  font-size: clamp(22px, 3.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  transition: transform .5s var(--ease);
}
.thesis__item:hover .thesis__text { transform: translateX(12px); }
.thesis__text b { font-weight: 500; color: var(--ink); }
.thesis__meta {
  font-family: var(--serif);
  font-size: clamp(15px, 1.5vw, 19px);
  font-style: italic;
  color: var(--ink-dim);
  max-width: 22ch;
  text-align: right;
}

@media (max-width: 760px) {
  .thesis__item { grid-template-columns: 44px 1fr; gap: 16px; }
  .thesis__meta { display: none; }
}

/* ============================================================
   02 — ПРОЕКТЫ
   ============================================================ */
.projects { background: var(--bg-2); border-top: 1px solid var(--line); }
.proj-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}
.card {
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(26px, 2.4vw, 40px);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color .5s var(--ease), background .5s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at var(--mx,50%) var(--my,0%), rgba(245,166,35,0.16), transparent 55%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--line-2); }
.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card__idx { font-size: 13px; letter-spacing: 0.1em; color: var(--ink-faint); font-weight: 500; }
.card__kind {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal-lit);
  border: 1px solid rgba(22,128,127,0.4);
  padding: 5px 10px; border-radius: 100px;
}
.card__body { margin-top: auto; }
.card__name {
  font-family: var(--grotesk);
  font-weight: 500;
  font-size: clamp(24px, 2.3vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 12px;
}
.card__desc {
  font-family: var(--serif);
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-dim);
  line-height: 1.4;
  max-width: 34ch;
}
.card__arrow {
  margin-top: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  color: var(--ink);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.card:hover .card__arrow { background: var(--amber); color: #080808; border-color: var(--amber); transform: translate(4px,-4px); }

/* asymmetric spans — 4 projects: 7|5 over 6|6 */
.card--a { grid-column: span 7; min-height: 360px; }
.card--b { grid-column: span 5; min-height: 360px; }
.card--c { grid-column: span 6; min-height: 300px; }
.card--d { grid-column: span 6; min-height: 300px; }

@media (max-width: 900px) {
  .card--a, .card--b, .card--c, .card--d { grid-column: span 12; min-height: 280px; }
}

/* честная подпись секции */
.section__note {
  font-family: var(--serif);
  font-size: clamp(15px, 1.6vw, 20px);
  color: var(--ink-dim);
  max-width: 44ch;
  margin: clamp(-20px, -2vw, -10px) 0 clamp(36px, 5vw, 60px);
}

/* демо-работы */
.demo-head {
  margin-top: clamp(50px, 8vw, 100px);
  margin-bottom: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: clamp(36px, 5vw, 60px);
}
.demo-kicker {
  font-family: var(--grotesk);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
}
.demo-note {
  font-family: var(--serif);
  font-size: clamp(15px, 1.5vw, 19px);
  color: var(--ink-dim);
  max-width: 46ch;
}
.demo-grid .card--demo { grid-column: span 4; min-height: 230px; }
@media (max-width: 900px) { .demo-grid .card--demo { grid-column: span 6; } }
@media (max-width: 620px) { .demo-grid .card--demo { grid-column: span 12; } }

/* кнопка «все работы» */
.proj-cta {
  margin-top: clamp(36px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.works-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--grotesk);
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 34px);
  letter-spacing: -0.02em;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid var(--line-2);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.works-link:hover { color: var(--amber); border-color: var(--amber); }
.works-link__arr {
  display: inline-grid;
  place-items: center;
  width: clamp(40px, 4vw, 56px);
  height: clamp(40px, 4vw, 56px);
  border: 1px solid var(--line-2);
  border-radius: 50%;
  font-size: 0.7em;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.works-link:hover .works-link__arr { background: var(--amber); color: #080808; border-color: var(--amber); transform: translate(4px, -4px); }
.works-link__note { font-family: var(--serif); font-size: clamp(14px, 1.4vw, 17px); color: var(--ink-dim); }

/* ============================================================
   03 — ТИЗЕР
   ============================================================ */
.teaser {
  position: relative;
  background: var(--bg);
  border-top: 1px solid var(--line);
  overflow: hidden;
  text-align: center;
}
.teaser__glow {
  position: absolute;
  left: 50%; top: 42%;
  width: min(70vw, 720px); aspect-ratio: 1;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,79,79,0.55), rgba(245,166,35,0.10) 45%, transparent 70%);
  filter: blur(28px);
  animation: breathe 7s var(--ease-io) infinite;
  z-index: 0;
  pointer-events: none;
}
@keyframes breathe {
  0%,100% { transform: translate(-50%,-50%) scale(1); opacity: 0.85; }
  50% { transform: translate(-50%,-50%) scale(1.18); opacity: 1; }
}
.teaser__ring {
  position: absolute;
  left: 50%; top: 42%;
  width: min(46vw, 460px); aspect-ratio: 1;
  transform: translate(-50%,-50%);
  border: 1px solid rgba(232,232,224,0.12);
  border-radius: 50%;
  z-index: 0;
  animation: spin 26s linear infinite;
}
.teaser__ring::after {
  content: ""; position: absolute; inset: 22%;
  border: 1px solid rgba(245,166,35,0.18); border-radius: 50%;
}
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

.teaser__inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.teaser__head { margin-bottom: clamp(30px, 4vw, 50px); justify-content: center; display: flex; }
.teaser__title {
  font-family: var(--grotesk);
  font-weight: 500;
  font-size: clamp(30px, 5.5vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.teaser__title em { font-family: var(--serif); font-style: italic; color: var(--amber); font-weight: 400; }
.teaser__form {
  margin-top: clamp(34px, 4vw, 52px);
  display: flex;
  gap: 10px;
  max-width: 540px;
  margin-inline: auto;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 7px 7px 7px 24px;
  background: rgba(255,255,255,0.02);
  transition: border-color .3s var(--ease);
}
.teaser__form:focus-within { border-color: var(--amber); }
.teaser__form input {
  flex: 1;
  background: none; border: none; outline: none;
  color: var(--ink); font-size: 16px;
}
.teaser__form input::placeholder { color: var(--ink-faint); }
.teaser__tg {
  margin-top: 22px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink-dim);
  transition: color .3s var(--ease);
}
.teaser__tg:hover { color: var(--ink); }
.teaser__note { margin-top: 14px; font-size: 13px; color: var(--ink-faint); min-height: 18px; transition: color .3s; }
.teaser__note.ok { color: var(--teal-lit); }
.teaser__note.err { color: #d9743f; }

@media (max-width: 540px) {
  .teaser__form { flex-direction: column; border-radius: 20px; padding: 12px; }
  .teaser__form .btn { justify-content: center; }
}

/* ============================================================
   04 — КОЛЛЕКТИВ
   ============================================================ */
.collective { background: var(--bg-2); border-top: 1px solid var(--line); }
.collective__lead {
  font-family: var(--serif);
  font-size: clamp(26px, 4.4vw, 60px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 22ch;
  margin-bottom: clamp(60px, 9vw, 130px);
}
.collective__lead .mute { color: var(--ink-dim); }
.collective__lead .hi { color: var(--ink); }
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 50px);
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 5vw, 70px);
}
.pillar__n { font-size: 13px; letter-spacing: 0.2em; color: var(--amber); margin-bottom: 22px; font-weight: 500; }
.pillar__word {
  font-family: var(--grotesk);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.pillar__word span { display: inline; }
.pillar__word .b { color: var(--ink-faint); }
.pillar__desc { font-family: var(--serif); font-size: clamp(16px, 1.5vw, 20px); color: var(--ink-dim); line-height: 1.45; max-width: 30ch; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; gap: 40px; } }

/* founder */
.founder {
  margin-top: clamp(60px, 9vw, 130px);
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 5vw, 70px);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}
.founder__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(245,166,35,0.10), transparent 60%),
    var(--bg-3);
}
.founder__media img { width: 100%; height: 100%; object-fit: cover; }
.founder__avatar {
  font-family: var(--grotesk);
  font-weight: 500;
  font-size: clamp(90px, 12vw, 170px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--amber);
  user-select: none;
}
.founder__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 1.6vw, 20px);
  color: var(--ink-dim);
}
.founder__eyebrow { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.founder__eyebrow .ln { height: 1px; width: 46px; background: var(--line-2); display: inline-block; }
.founder__name {
  font-family: var(--grotesk);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 88px);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 24px;
}
.founder__lead {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 40px);
  line-height: 1.2;
  color: var(--ink);
  max-width: 22ch;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.founder__lead em { font-style: italic; color: var(--amber); }
.founder__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.5vw, 36px);
}
.founder__cols p {
  font-family: var(--serif);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.5;
  color: var(--ink-dim);
}
@media (max-width: 820px) {
  .founder { grid-template-columns: 1fr; }
  .founder__media { aspect-ratio: 16 / 10; max-height: 320px; }
  .founder__cols { grid-template-columns: 1fr; }
}

/* ============================================================
   05 — ВСТУПИТЬ
   ============================================================ */
.join { background: var(--bg); border-top: 1px solid var(--line); }
.join__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 100px);
}
.join__pitch-title {
  font-family: var(--grotesk);
  font-weight: 500;
  font-size: clamp(38px, 5.5vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.join__pitch-title em { font-family: var(--serif); font-style: italic; text-transform: none; color: var(--amber); font-weight: 400; }
.join__pitch-sub { font-family: var(--serif); font-size: clamp(18px, 2vw, 24px); color: var(--ink-dim); line-height: 1.4; margin-top: 28px; max-width: 28ch; }
.join__avail { margin-top: clamp(30px, 4vw, 50px); display: flex; flex-direction: column; gap: 14px; }
.join__avail-row { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-dim); }
.join__avail-row .led { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-lit); box-shadow: 0 0 10px var(--teal-lit); }

.form { display: grid; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 9px; position: relative; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field label {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim);
}
.field label .req { color: var(--amber); }
.field input, .field textarea {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px 16px;
  color: var(--ink);
  font-size: 16px;
  outline: none;
  transition: border-color .3s var(--ease), background .3s var(--ease);
  resize: vertical;
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus { border-color: var(--amber); background: rgba(245,166,35,0.03); }
.field textarea { min-height: 96px; line-height: 1.4; }
.field.invalid input, .field.invalid textarea { border-color: #d9743f; }
.field__err { font-size: 12px; color: #d9743f; opacity: 0; transform: translateY(-4px); transition: .25s var(--ease); height: 0; }
.field.invalid .field__err { opacity: 1; transform: none; height: auto; }

.form__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form .btn { width: auto; }
.form__hint { font-size: 13px; color: var(--ink-faint); }
.form__error { font-size: 13px; color: #d9743f; flex-basis: 100%; }

.btn[disabled] { opacity: 0.6; pointer-events: none; }
.btn.loading .btn__label { opacity: 0; }
.btn .spinner {
  position: absolute; inset: 0; margin: auto; width: 18px; height: 18px;
  border: 2px solid rgba(8,8,8,0.3); border-top-color: #080808; border-radius: 50%;
  opacity: 0; z-index: 3;
}
.btn.loading .spinner { opacity: 1; animation: spin360 .7s linear infinite; }
@keyframes spin360 { to { transform: rotate(360deg); } }

/* success overlay */
.form-success {
  display: none;
  text-align: center;
  padding: clamp(30px, 5vw, 60px) 0;
}
.form-success.show { display: block; animation: fade-up .7s var(--ease); }
.form-success__check {
  width: 72px; height: 72px; margin: 0 auto 26px;
  border-radius: 50%; border: 1px solid var(--amber);
  display: grid; place-items: center; color: var(--amber);
}
.form-success__check svg { width: 30px; height: 30px; }
.form-success__check svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.6s var(--ease) .15s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success h3 { font-family: var(--grotesk); font-weight: 500; font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.02em; margin-bottom: 14px; }
.form-success p { font-family: var(--serif); font-size: clamp(17px, 1.7vw, 21px); color: var(--ink-dim); max-width: 32ch; margin: 0 auto; }

@media (max-width: 820px) {
  .join__grid { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding-block: clamp(50px, 6vw, 90px); }
.footer__big {
  font-family: var(--grotesk);
  font-weight: 700;
  font-size: clamp(64px, 22vw, 340px);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 80px);
  user-select: none;
}
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 30px; }
.footer__col { display: flex; gap: clamp(18px, 2.4vw, 36px); flex-wrap: wrap; }
.footer__col a, .footer__copy { font-size: 13px; color: var(--ink-dim); letter-spacing: 0.04em; transition: color .3s var(--ease); }
.footer__col a:hover { color: var(--amber); }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .hero__title .char { transform: none; opacity: 1; }
  .hero__sub, .hero__actions, .scroll-cue { opacity: 1; transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
}
