/* ============================================================
   ПОРТАЛ ПРОЕКТОВ СОЧИГУ — визуальная система
   ============================================================ */

/* ---------- tokens ---------- */
:root{
  --ink:        #03060f;
  --ink-2:      #050a18;
  --navy:       #071229;
  --navy-2:     #0a1a3a;
  --blue-deep:  #0d2a6b;
  --blue:       #1a52e0;
  --blue-brt:   #2f6bff;
  --sky:        #6fa8ff;
  --ice:        #cfe0ff;
  --white:      #f2f7ff;

  --line:       rgba(150,185,255,.14);
  --line-soft:  rgba(150,185,255,.08);
  --glass:      rgba(8,18,38,.55);

  --font-d: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-s: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease:   cubic-bezier(.16,1,.3,1);
  --ease-2: cubic-bezier(.65,0,.35,1);
  --ease-3: cubic-bezier(.22,.61,.36,1);

  --pad:  clamp(20px, 5vw, 88px);
  --hdr:  84px;
}

/* ---------- reset ---------- */
*,*::before,*::after{box-sizing:border-box}
html{ -webkit-text-size-adjust:100%; }
body,h1,h2,h3,h4,p,figure,ul,li{margin:0;padding:0}
ul{list-style:none}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0}
::selection{background:rgba(47,107,255,.35);color:#fff}

html{
  background:#03060f;
  scroll-behavior:smooth;
}
@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto} }

body{
  font-family:var(--font-s);
  font-weight:300;
  font-size:16px;
  line-height:1.6;
  color:var(--ice);
  background:var(--ink);
  overflow-x:hidden;
  overflow-x:clip;
  position:relative;
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
body.is-locked{overflow:hidden;height:100vh}

/* lenis */
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto!important}
.lenis.lenis-stopped{overflow:hidden}

/* thin custom scrollbar */
@supports selector(::-webkit-scrollbar){
  ::-webkit-scrollbar{width:9px}
  ::-webkit-scrollbar-track{background:#03060f}
  ::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#1d3b7a,#0e1d3c);border-radius:9px;border:2px solid #03060f}
  ::-webkit-scrollbar-thumb:hover{background:#2f6bff}
}

/* anchor for the "back to top" link — must be a static element,
   a fixed one would report top:0 at any scroll position */
.anchor-top{position:absolute; top:0; left:0; width:1px; height:1px; pointer-events:none; opacity:0}

/* ---------- helpers ---------- */
.wrap{width:min(1440px, 100%); margin-inline:auto; padding-inline:var(--pad); position:relative}
.eyebrow{
  display:flex; align-items:center; gap:14px;
  font-size:11px; font-weight:400; letter-spacing:.24em; text-transform:uppercase;
  color:rgba(207,224,255,.62);
}
.eyebrow__dash{width:38px;height:1px;background:linear-gradient(90deg,#2f6bff,rgba(47,107,255,0));flex:none}
.eyebrow--center{justify-content:center;text-align:center}
.eyebrow--center .eyebrow__dash{background:linear-gradient(90deg,rgba(47,107,255,0),#2f6bff)}

/* ============================================================
   BACKGROUND
   ============================================================ */
.bg{position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden}
.bg__canvas{position:absolute; inset:0; width:100%; height:100%; display:block; opacity:.9}
.bg__fallback{
  position:absolute; inset:0;
  background:
    radial-gradient(60% 55% at 50% 30%, rgba(40,96,220,.40), transparent 68%),
    radial-gradient(45% 40% at 16% 10%, rgba(30,74,190,.32), transparent 64%),
    radial-gradient(45% 42% at 86% 24%, rgba(52,110,255,.26), transparent 66%),
    radial-gradient(70% 60% at 50% 96%, rgba(11,34,84,.72), transparent 72%),
    linear-gradient(160deg,#071127 0%,#050c1d 42%,#08152f 100%);
}
.bg__vignette{
  position:absolute; inset:0;
  background:
    radial-gradient(115% 95% at 50% 42%, rgba(3,6,15,0) 34%, rgba(3,6,15,.40) 74%, rgba(3,6,15,.80) 100%),
    linear-gradient(180deg, rgba(3,6,15,.40) 0%, rgba(3,6,15,0) 18%, rgba(3,6,15,0) 82%, rgba(3,6,15,.55) 100%);
}
.grain{
  position:fixed; inset:0; z-index:70; pointer-events:none; opacity:.045;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='.55'/></svg>");
  background-repeat:repeat;
}

/* ============================================================
   LOADER
   ============================================================ */
.loader{
  position:fixed; inset:0; z-index:900; display:grid; place-items:center;
  background:radial-gradient(60% 60% at 50% 50%, #071229 0%, #03060f 70%);
  transition:opacity .8s var(--ease), visibility .8s;
}
.loader.is-done{opacity:0; visibility:hidden}
.loader__inner{display:flex; flex-direction:column; align-items:center; gap:26px}
.loader__mark{width:56px; opacity:0; animation:markIn 1s var(--ease) .1s forwards}
@keyframes markIn{from{opacity:0;transform:translateY(10px) scale(.94)}to{opacity:1;transform:none}}
.loader__bar{width:180px; height:1px; background:rgba(150,185,255,.16); overflow:hidden; position:relative}
.loader__bar i{position:absolute; inset:0; transform-origin:left; transform:scaleX(0); background:linear-gradient(90deg,#2f6bff,#cfe0ff); animation:barIn 1.5s var(--ease-2) .15s forwards}
@keyframes barIn{to{transform:scaleX(1)}}
.loader__word{font-size:10px; letter-spacing:.34em; text-transform:uppercase; color:rgba(207,224,255,.42)}

/* ============================================================
   PROGRESS + RAIL
   ============================================================ */
.progress{position:fixed; top:0; left:0; right:0; height:2px; z-index:120; background:rgba(150,185,255,.06)}
.progress i{display:block; height:100%; width:100%; transform-origin:0 50%; transform:scaleX(var(--p,0)); background:linear-gradient(90deg,#1a52e0,#4c86ff 55%,#dfeaff)}

.rail{
  position:fixed; right:26px; top:50%; transform:translateY(-50%); z-index:60;
  display:flex; flex-direction:column; gap:16px; align-items:flex-end;
  opacity:0; transition:opacity .8s var(--ease) .6s;
}
.rail.is-ready{opacity:1}
.rail__item{display:flex; align-items:center; gap:10px; height:10px}
.rail__num{
  font-size:9px; letter-spacing:.18em; color:rgba(207,224,255,.35);
  transition:color .4s;
}
.rail__label{
  font-size:9px; letter-spacing:.18em; text-transform:uppercase; color:rgba(207,224,255,.5);
  opacity:0; transform:translateX(6px); transition:opacity .4s var(--ease), transform .4s var(--ease);
  white-space:nowrap; order:-1;
}
.rail__item::after{
  content:""; width:16px; height:1px; background:rgba(150,185,255,.3);
  transition:width .4s var(--ease), background .4s;
}
.rail__item:hover .rail__label{opacity:1; transform:none}
.rail.is-hidden{opacity:0; pointer-events:none}
.rail__item:hover::after{width:26px; background:var(--sky)}
.rail__item.is-active::after{width:30px; background:linear-gradient(90deg,#2f6bff,#dfeaff)}
.rail__item.is-active .rail__num{color:#dfeaff}
@media (max-width:1280px){ .rail{display:none} }

/* ============================================================
   HEADER
   ============================================================ */
.hdr{
  position:fixed; top:0; left:0; right:0; z-index:80;
  transition:transform .6s var(--ease), background .5s, backdrop-filter .5s, border-color .5s;
  border-bottom:1px solid transparent;
}
.hdr__in{
  width:min(1760px,100%); margin-inline:auto; padding:0 clamp(18px,3.2vw,44px);
  height:var(--hdr); display:flex; align-items:center; gap:32px;
}
.hdr.is-stuck{
  background:linear-gradient(180deg, rgba(6,13,30,.94), rgba(5,11,26,.88));
  border-bottom-color:rgba(150,185,255,.10);
}
.hdr.is-hidden{transform:translateY(-100%)}

.brand{display:flex; align-items:center; gap:14px; flex:none}
.brand__mark{width:40px; height:auto; filter:drop-shadow(0 0 18px rgba(47,107,255,.45))}
.brand__txt{display:flex; flex-direction:column; line-height:1.15}
.brand__line1{font-size:9.5px; letter-spacing:.22em; text-transform:uppercase; color:rgba(207,224,255,.55)}
.brand__line2{font-size:15px; letter-spacing:.06em; color:var(--white); font-weight:400}

.hdr__nav{display:flex; gap:30px; margin-left:auto}
.hdr__nav a{
  font-size:12.5px; letter-spacing:.06em; color:rgba(207,224,255,.66);
  position:relative; padding:6px 0; transition:color .35s;
}
.hdr__nav a::after{
  content:""; position:absolute; left:0; bottom:0; height:1px; width:100%;
  background:linear-gradient(90deg,#4c86ff,#dfeaff); transform:scaleX(0); transform-origin:0 50%;
  transition:transform .5s var(--ease);
}
.hdr__nav a:hover{color:#fff}
.hdr__nav a:hover::after{transform:scaleX(1)}

.hdr__cta{
  display:inline-flex; align-items:center; gap:8px; flex:none;
  padding:10px 16px 10px 18px; border:1px solid rgba(150,185,255,.22); border-radius:100px;
  font-size:11.5px; letter-spacing:.06em; color:rgba(207,224,255,.8);
  transition:border-color .4s, color .4s, background .4s, box-shadow .5s;
}
.hdr__cta svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:transform .4s var(--ease)}
.hdr__cta:hover{border-color:rgba(207,224,255,.5); color:#fff; background:rgba(47,107,255,.10); box-shadow:0 0 30px rgba(47,107,255,.18)}
.hdr__cta:hover svg{transform:translate(2px,-2px)}

@media (max-width:1080px){ .hdr__nav{display:none} }
@media (max-width:640px){
  :root{--hdr:72px}
  .brand__mark{width:34px}
  .hdr__cta{padding:9px 14px; font-size:10.5px}
  .hdr__cta span{display:none}
  .hdr__in{gap:12px}
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn{
  position:relative; display:inline-flex; align-items:center; gap:12px;
  height:56px; padding:0 28px; border-radius:100px;
  font-size:13px; letter-spacing:.05em; font-weight:400;
  transition:color .4s, border-color .4s, box-shadow .6s, transform .6s var(--ease);
  will-change:transform;
}
.btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;transition:transform .5s var(--ease)}
.btn--primary{
  background:linear-gradient(120deg,#1a52e0,#2f6bff 48%,#1a52e0);
  color:#fff; border:1px solid rgba(207,224,255,.22);
  box-shadow:0 10px 40px -12px rgba(47,107,255,.6), inset 0 1px 0 rgba(255,255,255,.22);
  overflow:hidden;
}
.btn--primary::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(110deg,transparent 20%,rgba(255,255,255,.35) 48%,transparent 62%);
  transform:translateX(-120%); transition:transform .9s var(--ease);
}
.btn--primary:hover::before{transform:translateX(120%)}
.btn--primary:hover{box-shadow:0 16px 60px -10px rgba(47,107,255,.85), inset 0 1px 0 rgba(255,255,255,.3)}
.btn--primary:hover svg{transform:translateX(4px)}
.btn--ghost{border:1px solid rgba(150,185,255,.22); color:rgba(207,224,255,.85)}
.btn--ghost:hover{border-color:rgba(207,224,255,.55); color:#fff; background:rgba(47,107,255,.08)}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position:relative; min-height:100svh; display:flex; flex-direction:column; justify-content:center;
  padding-top:calc(var(--hdr) + 40px); padding-bottom:64px; overflow:hidden;
}
.hero__orbits{
  position:absolute; inset:0; z-index:0; display:grid; place-items:center; pointer-events:none;
  opacity:.5;
}
.hero__orbits svg{width:min(140vmin,1500px); height:auto}
.orbit circle{fill:none; stroke:rgba(150,185,255,.16); stroke-width:1}
.orbit--1 circle{stroke-dasharray:2 14}
.orbit--2 circle{stroke-dasharray:60 40; stroke:rgba(150,185,255,.12)}
.orbit--3 circle{stroke-dasharray:1 9; stroke:rgba(150,185,255,.2)}
.orbit{transform-box:view-box; transform-origin:50% 50%}
.orbit--1{animation:spin 120s linear infinite}
.orbit--2{animation:spin 80s linear infinite reverse}
.orbit--3{animation:spin 60s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

.hero__grid{
  display:grid; grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);
  gap:clamp(20px,3vw,56px); align-items:center; flex:1; width:100%;
  z-index:2;
}
.hero__left{max-width:720px; min-width:0}

.hero__title{
  font-family:var(--font-d); font-weight:300;
  font-size:clamp(38px, 5.35vw, 78px); line-height:1.06; letter-spacing:-.045em;
  color:var(--white); margin-top:26px;
  text-shadow:0 0 90px rgba(47,107,255,.22);
}
.hero__title-line{display:block; overflow:hidden}
.hero__title em{
  font-style:normal; font-weight:200;
  background:linear-gradient(100deg,#ffffff 0%,#cfe0ff 42%,#79aeff 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero__title .ch{display:inline-block; will-change:transform}
.hero__title .ch--sp{width:.26em}

.hero__lead{
  margin-top:30px; max-width:520px;
  font-size:clamp(14.5px,1.12vw,16.5px); line-height:1.72;
  color:rgba(207,224,255,.66);
}
.hero__actions{display:flex; gap:14px; margin-top:38px; flex-wrap:wrap}

.hero__meta{display:flex; align-items:center; gap:22px; margin-top:46px; padding-top:24px; border-top:1px solid var(--line-soft)}
.hero__meta-item{display:flex; align-items:baseline; gap:9px}
.hero__meta-item b{
  font-family:var(--font-d); font-weight:400; font-size:26px; line-height:1;
  background:linear-gradient(180deg,#fff,#8bb4ff); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero__meta-item span{font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:rgba(207,224,255,.45); max-width:110px; line-height:1.35}
.hero__meta-sep{width:1px; height:26px; background:var(--line)}

/* mascot */
.hero__right{display:flex; justify-content:center; align-items:center; position:relative}
.mascot{position:relative; width:clamp(260px, 30vw, 520px); aspect-ratio:1; transform-style:preserve-3d}
.mascot__img{position:relative; z-index:3; width:100%; height:auto; animation:floaty 7s ease-in-out infinite;
  filter:drop-shadow(0 24px 34px rgba(0,0,0,.5));}
@keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-16px)}}
.mascot__halo{
  position:absolute; inset:-22%; z-index:0; border-radius:50%;
  background:radial-gradient(circle at 50% 45%, rgba(47,107,255,.30), rgba(26,82,224,.14) 40%, rgba(26,82,224,.04) 62%, transparent 74%);
  animation:halo 9s ease-in-out infinite;
}
@keyframes halo{0%,100%{opacity:.75; transform:scale(1)}50%{opacity:1; transform:scale(1.06)}}
.mascot__ring{
  position:absolute; inset:2%; z-index:1; border-radius:50%;
  border:1px dashed rgba(150,185,255,.25);
  animation:spin 46s linear infinite;
}
.mascot__ring::after{
  content:""; position:absolute; top:-3px; left:50%; width:6px; height:6px; margin-left:-3px;
  border-radius:50%; background:#dfeaff; box-shadow:0 0 14px 2px rgba(223,234,255,.8);
}
.mascot__shadow{
  position:absolute; bottom:0; left:50%; width:68%; height:36px; transform:translateX(-50%);
  background:radial-gradient(ellipse at center, rgba(47,107,255,.5), rgba(47,107,255,.12) 45%, transparent 72%);
  filter:blur(12px); z-index:0;
}
.mascot__badge{
  position:absolute; right:-6%; bottom:14%; z-index:4;
  display:flex; align-items:center; gap:9px;
  padding:9px 15px; border-radius:100px;
  background:rgba(6,14,30,.62); border:1px solid rgba(150,185,255,.2);
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
  font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:rgba(207,224,255,.72);
  white-space:nowrap; box-shadow:0 20px 50px -20px rgba(0,0,0,.9);
}
.mascot__badge-dot{width:6px;height:6px;border-radius:50%;background:#37d67a;box-shadow:0 0 10px #37d67a;flex:none}
.mascot__badge i{font-style:normal; margin:0 6px; color:rgba(207,224,255,.3)}

.hero__foot{
  position:absolute; left:0; right:0; bottom:34px; z-index:3;
  display:flex; align-items:flex-end; justify-content:space-between;
}
.scrollhint{display:flex; align-items:center; gap:12px}
.scrollhint__line{width:1px; height:46px; background:rgba(150,185,255,.2); position:relative; overflow:hidden; display:block}
.scrollhint__line i{position:absolute; inset:0; background:linear-gradient(180deg,transparent,#dfeaff,#dfeaff); animation:scrollLine 2.4s var(--ease-2) infinite}
@keyframes scrollLine{0%{transform:translateY(-100%)}60%,100%{transform:translateY(100%)}}
.scrollhint__txt{font-size:9.5px; letter-spacing:.26em; text-transform:uppercase; color:rgba(207,224,255,.4)}
.hero__counter{display:flex; align-items:center; gap:10px; font-size:10px; letter-spacing:.2em; color:rgba(207,224,255,.4)}
.hero__counter i{width:36px; height:1px; background:rgba(150,185,255,.3); display:block}

@media (max-width:960px){
  .hero{justify-content:center; padding-top:calc(var(--hdr) + 14px); padding-bottom:26px; min-height:100svh}
  .hero__grid{grid-template-columns:1fr; gap:6px; align-content:center}
  .hero__right{order:-1; margin-bottom:0}
  .mascot{width:min(46vw,210px)}
  .mascot__badge{right:0; bottom:-2%; font-size:8.5px; padding:6px 10px}
  .hero__title{font-size:clamp(28px, 8.4vw, 46px); margin-top:12px}
  .hero__lead{margin-top:14px; font-size:13.4px; line-height:1.62; max-width:none}
  .hero__actions{margin-top:20px; gap:10px}
  .btn{height:48px; padding:0 22px; font-size:12px}
  .hero__meta{margin-top:22px; padding-top:14px; gap:10px; flex-wrap:nowrap}
  .hero__meta-item{gap:6px}
  .hero__meta-item b{font-size:20px}
  .hero__meta-item span{font-size:8.6px; max-width:72px; letter-spacing:.06em}
  .hero__meta-sep{height:20px}
  .hero__foot{display:none}
  .hero__orbits{opacity:.35}
  .eyebrow{font-size:9.5px; letter-spacing:.18em; gap:9px}
  .eyebrow__dash{width:22px}
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee{
  position:relative; z-index:2; overflow:hidden;
  padding:22px 0; border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft);
  background:rgba(5,10,24,.30);
  will-change:transform;
}
.marquee__track{display:flex; align-items:center; gap:34px; width:max-content; animation:marquee 52s linear infinite}
.marquee:hover .marquee__track{animation-play-state:paused}
@keyframes marquee{to{transform:translateX(-50%)}}
.marquee span{
  font-family:var(--font-d); font-size:clamp(15px,1.6vw,22px); font-weight:400; letter-spacing:.01em;
  color:rgba(207,224,255,.5); white-space:nowrap; transition:color .5s;
}
.marquee__dot{font-size:10px!important; color:rgba(47,107,255,.85)!important; transform:translateY(-2px)}

/* ============================================================
   ABOUT / MANIFESTO
   ============================================================ */
.about{position:relative; z-index:2; height:172vh; margin-top:0}
.about__sticky{
  position:sticky; top:0; height:100svh; display:grid; place-items:center; overflow:hidden;
}
.about__orbit{position:absolute; inset:0; display:grid; place-items:center; pointer-events:none; opacity:.55}
.about__orbit svg{width:min(150vmin,1400px); height:auto}
.ao{fill:none; stroke:rgba(150,185,255,.13); stroke-width:1; transform-box:view-box; transform-origin:50% 50%}
.ao-1{stroke-dasharray:2 18; animation:spin 160s linear infinite}
.ao-2{stroke-dasharray:80 60; stroke:rgba(150,185,255,.10); animation:spin 120s linear infinite reverse}
.ao-3{stroke-dasharray:1 12; animation:spin 90s linear infinite}
.ao-4{stroke:rgba(47,107,255,.22); stroke-dasharray:1 6; animation:spin 60s linear infinite reverse}

.about__inner{text-align:center; max-width:1120px; z-index:2}
.about__text{
  font-family:var(--font-d); font-weight:300;
  font-size:clamp(21px, 2.9vw, 42px); line-height:1.34; letter-spacing:-.022em;
  color:var(--white); margin-top:34px; text-wrap:balance;
}
.about__text .w{display:inline-block; transition:color .35s linear, opacity .35s linear; will-change:opacity}
.about__stats{
  display:flex; justify-content:center; gap:clamp(28px,6vw,90px); margin-top:clamp(36px,6vh,70px);
  padding-top:clamp(24px,4vh,40px); border-top:1px solid var(--line-soft); flex-wrap:wrap;
}
.stat{display:flex; flex-direction:column; align-items:center; gap:6px; min-width:120px}
.stat__num{
  font-family:var(--font-d); font-weight:300; font-size:clamp(34px,4vw,56px); line-height:.95;
  background:linear-gradient(180deg,#ffffff,#7fa9ff); -webkit-background-clip:text; background-clip:text; color:transparent;
  font-variant-numeric:tabular-nums;
}
.stat__lbl{font-size:10.5px; letter-spacing:.18em; text-transform:uppercase; color:rgba(207,224,255,.45); text-align:center}

@media (max-width:960px){
  .about{height:142vh}
  .about__text{font-size:clamp(17px, 4.6vw, 26px); line-height:1.42; margin-top:24px}
  .about__orbit{opacity:.35}
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects{position:relative; z-index:2; padding-top:clamp(40px,8vh,90px)}
.project{
  position:relative;
  display:grid; grid-template-columns:1fr 1fr;
  border-top:1px solid var(--line-soft);
}
.project__visual{
  position:sticky; top:0; height:100svh;
  display:flex; align-items:center; justify-content:center;
  padding:calc(var(--hdr) + 10px) clamp(10px,2vw,40px) 40px;
  align-self:start;
}
.project--rev .project__visual{order:2}
.project--rev .project__body{order:1}

.project__stage{
  position:relative; width:100%; height:100%; display:grid; place-items:center;
}
.project__num{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); z-index:0;
  font-family:var(--font-d); font-weight:200; letter-spacing:-.055em; line-height:1;
  font-size:clamp(120px, 21vw, 300px);
  background:linear-gradient(180deg, rgba(122,176,255,.30), rgba(47,107,255,.03) 84%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  will-change:transform; user-select:none;
}
.art-wrap{position:relative; z-index:2; width:min(88%, 540px); aspect-ratio:1}
.art-wrap::before{
  content:""; position:absolute; inset:10%; border-radius:50%;
  background:radial-gradient(circle, rgba(47,107,255,.16), rgba(13,42,107,.07) 42%, rgba(13,42,107,.02) 58%, transparent 72%);
  z-index:-1;
}
.art{width:100%; height:100%; overflow:visible}
.art--2{-webkit-mask-image:linear-gradient(180deg,#000 56%,transparent 98%); mask-image:linear-gradient(180deg,#000 56%,transparent 98%)}
.spin{transform-box:view-box; transform-origin:50% 50%; animation:spin var(--dur,60s) linear infinite}
.spin--rev{animation-direction:reverse}

.project__body{
  display:flex; flex-direction:column; justify-content:center;
  min-height:108svh; padding:calc(var(--hdr) + 24px) clamp(20px,4.4vw,80px) 12vh 0;
  max-width:640px;
}
.project--rev .project__body{padding:calc(var(--hdr) + 24px) 0 12vh clamp(20px,4.4vw,80px); margin-left:auto}

.project__eyebrow{
  display:flex; align-items:center; gap:14px;
  font-size:10.5px; letter-spacing:.22em; text-transform:uppercase; color:rgba(207,224,255,.55);
}
.project__idx{
  font-size:10.5px; letter-spacing:.1em; color:#dfeaff;
  display:inline-flex; align-items:center; justify-content:center;
  width:26px; height:26px; border:1px solid rgba(150,185,255,.3); border-radius:50%; flex:none;
  font-variant-numeric:tabular-nums;
}
.project__line{width:44px; height:1px; background:linear-gradient(90deg,#2f6bff,transparent); flex:none}

.project__title{
  font-family:var(--font-d); font-weight:300;
  font-size:clamp(28px, 3.35vw, 50px); line-height:1.1; letter-spacing:-.032em;
  color:var(--white); margin-top:24px;
  text-shadow:0 0 60px rgba(47,107,255,.18);
}
.project__title .ch{display:inline-block}

.project__lead{
  margin-top:26px; font-size:clamp(15px,1.15vw,17px); line-height:1.65;
  color:rgba(207,224,255,.8); max-width:520px;
}
.project__text{
  margin-top:16px; font-size:14.2px; line-height:1.72;
  color:rgba(207,224,255,.48); max-width:520px;
}
.project__tags{display:flex; flex-wrap:wrap; gap:8px; margin-top:28px}
.project__tags li{
  font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:rgba(207,224,255,.6);
  padding:7px 13px; border:1px solid rgba(150,185,255,.16); border-radius:100px;
  transition:border-color .4s, color .4s, background .4s;
}
.project__tags li:hover{border-color:rgba(150,185,255,.4); color:#dfeaff; background:rgba(47,107,255,.08)}

.project__cta{
  display:inline-flex; align-items:center; gap:14px; margin-top:38px; align-self:flex-start;
  font-size:13px; letter-spacing:.03em; color:var(--white);
  transition:color .4s, gap .5s var(--ease);
}
.project__cta-txt{position:relative}
.project__cta-txt::after{
  content:""; position:absolute; left:0; bottom:-4px; width:100%; height:1px;
  background:linear-gradient(90deg,#dfeaff,rgba(223,234,255,.2));
  transform:scaleX(0); transform-origin:0 50%; transition:transform .6s var(--ease);
}
.project__cta:hover .project__cta-txt::after{transform:scaleX(1)}
.project__cta-ic{
  width:42px; height:42px; border-radius:50%; flex:none;
  display:grid; place-items:center;
  border:1px solid rgba(150,185,255,.25); background:rgba(47,107,255,.06);
  transition:background .5s, border-color .5s, box-shadow .5s, transform .5s var(--ease);
}
.project__cta-ic svg{width:14px;height:14px;fill:none;stroke:#dfeaff;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.project__cta:hover .project__cta-ic{
  background:linear-gradient(120deg,#1a52e0,#2f6bff); border-color:rgba(223,234,255,.5);
  box-shadow:0 10px 34px -8px rgba(47,107,255,.8); transform:translate(2px,-2px);
}
.project__cta--soon{color:rgba(207,224,255,.42); cursor:default}
.project__cta--soon .project__cta-ic{border-style:dashed; background:none}
.project__cta--soon:hover .project__cta-txt::after{transform:scaleX(0)}
.pulse{width:7px;height:7px;border-radius:50%;background:#4c86ff;box-shadow:0 0 0 0 rgba(76,134,255,.6);animation:pulse 2.4s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(76,134,255,.55)}70%{box-shadow:0 0 0 12px rgba(76,134,255,0)}100%{box-shadow:0 0 0 0 rgba(76,134,255,0)}}

/* art entrance states */
.js .art-wrap{opacity:0; transform:scale(.94); transition:opacity 1.2s var(--ease), transform 1.4s var(--ease)}
.project.is-in .art-wrap{opacity:1; transform:none}
.js .a1-cards{opacity:0; transition:opacity 1s var(--ease) .25s}
.project.is-in .a1-cards{opacity:1}
.js .a1-nodes circle{opacity:0; transition:opacity .5s ease}
.project.is-in .a1-nodes circle{opacity:1}
.project.is-in .a1-nodes circle:nth-child(2){transition-delay:.12s}
.project.is-in .a1-nodes circle:nth-child(3){transition-delay:.2s}
.project.is-in .a1-nodes circle:nth-child(4){transition-delay:.28s}
.project.is-in .a1-nodes circle:nth-child(5){transition-delay:.36s}
.project.is-in .a1-nodes circle:nth-child(6){transition-delay:.44s}

.js .a3-bars rect{transform-box:fill-box; transform-origin:bottom; transform:scaleY(0); transition:transform .9s var(--ease)}
.project.is-in .a3-bars rect{transform:scaleY(1)}
.project.is-in .a3-bars rect:nth-child(2){transition-delay:.04s}
.project.is-in .a3-bars rect:nth-child(3){transition-delay:.08s}
.project.is-in .a3-bars rect:nth-child(4){transition-delay:.12s}
.project.is-in .a3-bars rect:nth-child(5){transition-delay:.16s}
.project.is-in .a3-bars rect:nth-child(6){transition-delay:.2s}
.project.is-in .a3-bars rect:nth-child(7){transition-delay:.24s}
.project.is-in .a3-bars rect:nth-child(8){transition-delay:.28s}
.project.is-in .a3-bars rect:nth-child(9){transition-delay:.32s}
.project.is-in .a3-bars rect:nth-child(10){transition-delay:.36s}
.project.is-in .a3-bars rect:nth-child(11){transition-delay:.4s}
.project.is-in .a3-bars rect:nth-child(12){transition-delay:.44s}

.js .a3-line{stroke-dasharray:1400; stroke-dashoffset:1400; transition:stroke-dashoffset 2.2s var(--ease) .3s}
.project.is-in .a3-line{stroke-dashoffset:0}

.js .a4-path path{stroke-dasharray:900; stroke-dashoffset:900; transition:stroke-dashoffset 2.4s var(--ease)}
.project.is-in .a4-path path{stroke-dashoffset:0}
.project.is-in .a4-path path:nth-child(2){transition-delay:.2s}
.project.is-in .a4-path path:nth-child(3){transition-delay:.4s}

.js .a5-layers polygon{opacity:0; transform:translateY(18px); transition:opacity 1s var(--ease), transform 1.2s var(--ease)}
.project.is-in .a5-layers polygon{opacity:1; transform:none}
.project.is-in .a5-layers polygon:nth-child(2){transition-delay:.14s}
.project.is-in .a5-layers polygon:nth-child(3){transition-delay:.28s}

.js .a2-layer{opacity:0; transition:opacity 1.4s var(--ease)}
.project.is-in .a2-layer{opacity:1}
.project.is-in .a2-layer:nth-child(4){transition-delay:.12s}

/* text reveal inside project */
.js .project__title .ln{display:block; overflow:hidden}
.js .project__title .ch{display:inline-block; transform:translateY(112%); transition:transform 1.05s var(--ease)}
.project__title.is-chars-in .ch{transform:none}

@media (max-width:960px){
  .project{grid-template-columns:1fr}
  .project--rev .project__visual{order:0}
  .project--rev .project__body{order:0}
  .project__visual{position:relative; top:auto; height:auto; min-height:auto; padding:calc(var(--hdr) + 30px) 0 10px; align-self:auto}
  .project__stage{height:auto; padding:10px 0}
  .art-wrap{width:min(74%,320px)}
  .project__num{font-size:clamp(120px,42vw,220px); top:50%; left:50%; transform:translate(-50%,-50%); opacity:.9}
  .project__body,.project--rev .project__body{
    padding:6px 0 12vh; min-height:auto; max-width:none; margin:0;
  }
  .project__title{font-size:clamp(24px, 6.4vw, 36px); margin-top:18px}
  .project__lead{margin-top:18px; font-size:14.5px}
  .project__text{font-size:13.4px}
  .project__cta{margin-top:28px}
}

/* ============================================================
   INDEX (все ресурсы)
   ============================================================ */
.index{position:relative; z-index:2; padding:clamp(54px,9vh,120px) 0 clamp(50px,8vh,110px)}
.index__head{max-width:780px}
.index__title{
  font-family:var(--font-d); font-weight:300;
  font-size:clamp(32px, 4.6vw, 70px); line-height:1.06; letter-spacing:-.036em;
  color:var(--white); margin-top:24px;
}
.index__title em{
  font-style:normal; font-weight:200;
  background:linear-gradient(100deg,#ffffff,#cfe0ff 45%,#79aeff);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.index__title .ln{display:block; overflow:hidden; padding-bottom:.04em}
.index__title .ln-in{display:block}
.js .index__title .ln-in{transform:translateY(105%); transition:transform 1.25s var(--ease)}
.index__title.is-in .ln-in{transform:none}
.index__title.is-in .ln:nth-child(2) .ln-in{transition-delay:.12s}
.index__sub{margin-top:24px; font-size:15px; line-height:1.7; color:rgba(207,224,255,.55); max-width:520px}

.index__list{margin-top:clamp(40px,7vh,80px); border-top:1px solid var(--line-soft)}
.row{border-bottom:1px solid var(--line-soft)}
.row__in{
  position:relative; display:grid;
  grid-template-columns:56px minmax(0,1fr) 220px 110px 46px;
  align-items:center; gap:18px;
  padding:clamp(20px,2.6vh,30px) 6px;
  transition:padding .6s var(--ease);
}
.row__in::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(90deg, rgba(47,107,255,.12), rgba(47,107,255,.02) 55%, transparent);
  opacity:0; transition:opacity .6s var(--ease);
}
.row:hover .row__in::before{opacity:1}
.row:hover .row__in{padding-left:18px}
.row__num{font-size:10.5px; letter-spacing:.12em; color:rgba(207,224,255,.35); font-variant-numeric:tabular-nums}
.row__name{
  font-family:var(--font-d); font-weight:400; font-size:clamp(18px,1.95vw,26px); line-height:1.2;
  color:rgba(242,247,255,.86); letter-spacing:-.018em;
  transition:color .5s, transform .6s var(--ease);
}
.row:hover .row__name{color:#fff}
.row__meta{font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:rgba(207,224,255,.35)}
.row__state{
  font-size:9.5px; letter-spacing:.16em; text-transform:uppercase; text-align:center;
  padding:6px 10px; border-radius:100px; border:1px solid rgba(150,185,255,.14);
  color:rgba(207,224,255,.4); justify-self:start;
}
.row__state--live{color:#8fe3b0; border-color:rgba(55,214,122,.28); background:rgba(55,214,122,.06)}
.row__arrow{
  width:40px; height:40px; border-radius:50%; display:grid; place-items:center;
  border:1px solid rgba(150,185,255,.16); justify-self:end;
  transition:background .5s, border-color .5s, transform .5s var(--ease);
}
.row__arrow svg{width:13px;height:13px;fill:none;stroke:rgba(207,224,255,.6);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:stroke .4s}
.row:hover .row__arrow{background:rgba(47,107,255,.9); border-color:rgba(223,234,255,.5); transform:translateX(4px)}
.row:hover .row__arrow svg{stroke:#fff}

@media (max-width:960px){
  .row__in{grid-template-columns:40px minmax(0,1fr) 40px; grid-template-areas:"n t a" "m m m"; gap:6px 12px; padding:18px 4px}
  .row__num{grid-area:n}
  .row__name{grid-area:t; font-size:clamp(18px,5vw,24px)}
  .row__meta{grid-area:m; font-size:9.5px; padding-left:0}
  .row__state{display:none}
  .row__arrow{grid-area:a; width:34px; height:34px}
  .row:hover .row__in{padding-left:4px}
}

/* ============================================================
   FOOTER
   ============================================================ */
.ftr{
  position:relative; z-index:2; overflow:hidden;
  padding-top:clamp(44px,7vh,92px);
  border-top:1px solid var(--line-soft);
  background:linear-gradient(180deg, rgba(3,6,15,0), rgba(4,10,24,.75) 40%, rgba(3,6,15,1));
}
.ftr__band{position:relative; z-index:1; margin-top:clamp(6px,2vh,26px); padding-bottom:clamp(4px,1vh,14px)}
.ftr__wm-clip{overflow:hidden; width:100%; padding:.06em 0}
.ftr__wordmark{
  font-family:var(--font-d); font-weight:200; font-size:clamp(48px,10.2vw,164px); line-height:1.04;
  letter-spacing:-.05em; white-space:nowrap; text-align:center; margin-bottom:0;
  background:linear-gradient(180deg, rgba(160,196,255,.32), rgba(47,107,255,.04) 88%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  pointer-events:none; user-select:none;
}
.ftr__mascot{
  position:absolute; right:clamp(16px,6vw,110px); bottom:clamp(4px,1vh,14px); width:clamp(92px,10vw,156px);
  filter:drop-shadow(0 16px 26px rgba(0,0,0,.6));
  animation:floaty 9s ease-in-out infinite; pointer-events:none;
}
.ftr__in{
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);
  gap:clamp(30px,5vw,80px); padding-bottom:clamp(40px,6vh,70px);
  position:relative; z-index:2;
}
.ftr__brand{position:relative; max-width:420px}
.brand--ftr .brand__mark{width:52px}
.brand--ftr .brand__line1{font-size:9.5px; color:rgba(207,224,255,.4)}
.brand--ftr .brand__line2{font-size:18px}
.ftr__addr{margin-top:26px; font-size:12.5px; line-height:1.85; color:rgba(207,224,255,.45)}
.ftr__contacts{display:flex; flex-direction:column; gap:6px; margin-top:20px}
.ftr__contacts a{font-size:14px; color:rgba(207,224,255,.8); transition:color .4s; width:fit-content}
.ftr__contacts a:hover{color:#fff}
.ftr__cols{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(18px,3vw,40px)}
.ftr__col{display:flex; flex-direction:column; gap:11px}
.ftr__col h3{
  font-size:9.5px; letter-spacing:.22em; text-transform:uppercase; font-weight:400;
  color:rgba(207,224,255,.35); margin-bottom:8px;
}
.ftr__col a{font-size:12.5px; line-height:1.5; color:rgba(207,224,255,.62); transition:color .35s, transform .45s var(--ease); width:fit-content}
.ftr__col a:hover{color:#fff; transform:translateX(3px)}
.ftr__col i{font-style:normal; font-size:9px; letter-spacing:.12em; text-transform:uppercase; color:rgba(47,107,255,.9); margin-left:6px}

.ftr__bottom{
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
  padding:26px 0 34px; border-top:1px solid var(--line-soft);
  position:relative; z-index:2;
}
.ftr__bottom p{font-size:11px; letter-spacing:.04em; color:rgba(207,224,255,.35)}
.ftr__note a{color:rgba(207,224,255,.6); transition:color .35s}
.ftr__note a:hover{color:#fff}
.ftr__up{display:inline-flex; align-items:center; gap:8px; font-size:10.5px; letter-spacing:.16em; text-transform:uppercase; color:rgba(207,224,255,.5); transition:color .4s}
.ftr__up svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:transform .5s var(--ease)}
.ftr__up:hover{color:#fff}
.ftr__up:hover svg{transform:translateY(-3px)}

@media (max-width:960px){
  .ftr__in{grid-template-columns:1fr; gap:40px}
  .ftr__cols{grid-template-columns:1fr 1fr; gap:28px 20px}
  .ftr__col:nth-child(3){grid-column:1/-1}
  .ftr__mascot{width:76px; right:14px; bottom:6px}
  .ftr__wordmark{font-size:clamp(38px, 11.5vw, 76px)}
  .ftr__bottom{flex-direction:column; align-items:flex-start; gap:10px}
}
@media (max-width:600px){
  .ftr__mascot{display:none}
}

/* ============================================================
   REVEAL
   ============================================================ */
.js .reveal{opacity:0; transform:translateY(26px); transition:opacity 1s var(--ease), transform 1.2s var(--ease)}
.js .reveal.is-in{opacity:1; transform:none}
.js .reveal[data-delay="1"]{transition-delay:.1s}
.js .reveal[data-delay="2"]{transition-delay:.2s}

/* hero entrance */
.js .hero__title .ch{transform:translateY(112%); transition:transform 1.15s var(--ease)}
.js .hero__title.is-chars-in .ch{transform:none}
.js .hero .reveal{opacity:0; transform:translateY(22px)}
.js .hero.is-ready .reveal{opacity:1; transform:none; transition:opacity 1.1s var(--ease), transform 1.3s var(--ease)}
.js .hero.is-ready .reveal:nth-of-type(1){transition-delay:.1s}
.js .art{transform-origin:center}

/* pause looping animations outside the viewport (big win on long pages) */
.hero:not(.is-visible) .orbit,
.about:not(.is-visible) .ao,
.project:not(.is-visible) .spin{animation-play-state:paused}

/* low-power fallback: static CSS background instead of the shader,
   and every continuous animation stops */
.low-power .bg__canvas{display:none}
.low-power .grain{display:none}
.low-power .mascot__halo,
.low-power .mascot__img{animation:none}
.low-power .orbit,
.low-power .ao,
.low-power .spin,
.low-power .mascot__ring,
.low-power .pulse,
.low-power .marquee__track{animation:none}

/* static / screenshot mode */
.static-mode .cursor{display:none!important}
.static-mode .grain{display:none}

@media (max-width:640px){
  .mascot__badge{display:none}
  .hero__right{margin-bottom:10px}
}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.001ms!important; animation-iteration-count:1!important; transition-duration:.001ms!important}
  .js .reveal,.js .hero .reveal{opacity:1!important; transform:none!important}
  .js .hero__title .ch{transform:none!important}
  .about{height:auto}
  .about__sticky{position:relative; height:auto; padding:14vh 0}
  .about__text .w{opacity:1!important}
  .grain{display:none}
}
