/* ============================================================
   МАРСЕЛЬ — ПОРТФОЛИО ИНФОГРАФИКИ
   Система: тёмный кинематографичный фон + кислотный лайм
   ============================================================ */

/* Self-hosted: футуристичный шрифт акцента заголовка */
@font-face {
  font-family: "Advaken Sans";
  src: url("advaken-sans.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Self-hosted: каллиграфический шрифт акцента (Graphic Pear, кириллица) */
@font-face {
  font-family: "Christopher";
  src: url("christopher.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Self-hosted: шрифт акцента Jikharev (кириллица) */
@font-face {
  font-family: "Jikharev";
  src: url("jikharev.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* — Палитра — */
  --bg:        #08090a;
  --bg-2:      #0d0f10;
  --panel:     #121517;
  --panel-2:   #171a1c;
  --line:      rgba(255,255,255,.09);
  --line-2:    rgba(255,255,255,.16);

  --ink:       #f4f6f1;
  --muted:     #e8ebe6;
  --muted-2:   #b8bfb6;

  --acid:      #c8f23a;
  --acid-deep: #a6d617;
  --acid-glow: rgba(200,242,58,.45);

  /* — Типографика — */
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body:    "Manrope", system-ui, sans-serif;
  --script:  "Caveat", cursive;

  /* — Метрики — */
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 80px);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

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

/* — Кинематографичное зерно поверх всего —
   Без mix-blend-mode: screen — иначе браузер пересчитывал блендинг всего
   экрана на каждый кадр играющего видео-фона (сильный фриз на десктопе). */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--acid); color: #0a0a0a; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ============================================================
   ТИПОГРАФИЧЕСКИЕ ПРИМИТИВЫ
   ============================================================ */
.kicker {
  font-family: var(--body);
  font-weight: 700;
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--acid);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--acid);
  opacity: .7;
}

.display {
  font-family: var(--display);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 0;
}

.script {
  font-family: var(--script);
  color: var(--acid);
  text-transform: none;
  font-weight: 700;
  letter-spacing: 0;
}

.lead {
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  max-width: 52ch;
}

/* — Тонкие «уголковые» чипы как на референсе — */
.chip {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 20px;
  background: rgba(18,21,23,.55);
  backdrop-filter: blur(6px);
  font-size: 15px;
  line-height: 1.3;
}
.chip::before, .chip::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 2px solid var(--acid);
}
.chip::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.chip::after  { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.chip b { color: var(--ink); font-weight: 800; }
.chip span { color: var(--muted); }

/* ============================================================
   КНОПКИ
   ============================================================ */
.btn {
  --pad-y: 16px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: var(--pad-y) 26px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .01em;
  cursor: pointer;
  border: 0;
  border-radius: 100px;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, color .25s;
  will-change: transform;
}
.btn-primary {
  background: var(--acid);
  color: #0a0d05;
  box-shadow: 0 0 0 0 var(--acid-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -8px var(--acid-glow);
}
.btn-primary .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #0a0d05;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--acid); color: var(--acid); }

/* ============================================================
   НАВИГАЦИЯ
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 800;
  padding: 18px 0;
  transition: background .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
/* содержимое шапки по сетке основного контента (как .wrap) */
.nav-inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav.scrolled {
  background: rgba(8,9,10,.72);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
  padding-block: 12px;
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.brand .mk {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px;
  background: var(--acid); color: #0a0d05;
  border-radius: 8px; font-size: 18px;
  transform: rotate(-6deg);
}
/* Логотип-локап: подпись (картинка) + слово DESIGNS (текст).
   Базовая высота подписи была 76px; «весь логотип −15%» → 76*0.85≈65px.
   DESIGNS: базово ~0.13 от высоты, «+15%» → 0.13*1.15≈0.15 от высоты. */
.logo-lockup { position: relative; display: inline-block; line-height: 0; --logo-h: 65px; }
.logo-lockup--foot { --logo-h: 44px; }
.brand-sign { height: var(--logo-h); width: auto; display: block; }
.brand-sub {
  position: absolute;
  right: 0.5%;
  bottom: 7%;
  font-family: "Manrope", var(--body);
  font-weight: 300;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  letter-spacing: 0.30em;
  text-indent: 0.30em;
  font-size: calc(var(--logo-h) * 0.15);
  pointer-events: none;
}
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 600; color: var(--muted);
  letter-spacing: .02em; transition: color .2s; position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content:""; position:absolute; left:0; bottom:-6px; height:2px; width:0;
  background: var(--acid); transition: width .25s;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a.btn-primary { color: #0a0d05; }
.nav-links a.btn-primary::after { display: none; }

/* — Бургер (только мобайл) — */
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  padding: 0; margin: 0;
  border: 0; background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 810;
}
.nav-burger span {
  position: absolute; left: 10px; right: 10px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.nav-burger span:nth-child(1) { top: 15px; }
.nav-burger span:nth-child(2) { top: 21px; }
.nav-burger span:nth-child(3) { top: 27px; }
.nav.open .nav-burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 820px){
  .nav-burger { display: block; }

  /* выпадающее меню-шторка */
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 84px var(--gutter) 24px;
    background: rgba(8,9,10,.96);
    backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 50px -20px rgba(0,0,0,.8);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .3s;
    z-index: 790;
  }
  .nav.open .nav-links { transform: translateY(0); opacity: 1; pointer-events: auto; }

  .nav-links .nlink {
    display: block;
    font-size: 18px; color: var(--ink);
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links .nlink::after { display: none; }
  .nav-links a.btn-primary {
    margin-top: 16px;
    justify-content: center;
    padding-block: 15px !important;
    font-size: 16px !important;
  }
}


[hidden] { display: none !important; }

/* ============================================================
   СЕКЦИИ
   ============================================================ */
section { position: relative; }
.section-pad { padding-block: clamp(40px, 6vw, 80px); }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.sec-head h2 {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(38px, 6vw, 84px);
  line-height: .95;
  letter-spacing: -.01em;
  margin: 14px 0 0;
}
.sec-head .idx {
  font-family: var(--display);
  color: var(--muted-2);
  font-size: clamp(38px,6vw,84px);
  line-height: .95;
}

/* ============================================================
   ОБЩЕЕ: свечение-блоб
   ============================================================ */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  background: radial-gradient(circle, var(--acid-glow), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   АНИМАЦИИ ПОЯВЛЕНИЯ
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay:.08s } .reveal[data-d="2"]{ transition-delay:.16s }
.reveal[data-d="3"]{ transition-delay:.24s } .reveal[data-d="4"]{ transition-delay:.32s }
.reveal[data-d="5"]{ transition-delay:.4s }  .reveal[data-d="6"]{ transition-delay:.48s }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
