@font-face {
  font-family: 'Unbounded';
  src: url('assets/fonts/unbounded-latin.woff2') format('woff2');
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2122;
}
@font-face {
  font-family: 'Unbounded';
  src: url('assets/fonts/unbounded-cyrillic.woff2') format('woff2');
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/manrope-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2122;
}
@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/manrope-cyrillic.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+2116;
}

:root {
  --bg: #0a0a0a;
  --ink: #f2ede4;
  --muted: rgba(242, 237, 228, 0.52);
  --line: rgba(242, 237, 228, 0.14);
  --gold: #d9a84e;
  --gold-dim: rgba(217, 168, 78, 0.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { background: var(--bg); }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  overflow-x: hidden;
}

.nav {
  position: relative;
  z-index: 5;
}

a { color: inherit; }

/* ===== Nav ===== */
.nav {
  display: flex;
  justify-content: center;
  padding: 34px 24px 0;
}
.nav-badge {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  opacity: 0;
  animation: rise 900ms var(--ease) 0.1s forwards;
}

/* ===== Hero: sticky-сцена, слитки разлетаются по скроллу ===== */
.hero {
  position: relative;
  height: 260vh;
}

.hero-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 12vh 8vw;
  gap: 28px;
}

.ingots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ingot {
  position: absolute;
  width: var(--iw, 70px);
  height: var(--ih, 40px);
  border-radius: 7px;
  background: linear-gradient(135deg, #f3d08a 0%, var(--gold) 45%, #9c701f 100%);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.6);
  top: var(--top, 50%);
  left: var(--left, 50%);
  opacity: 0.32;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
}
.ig-1 { --iw: 76px; --ih: 42px; --top: 42%; --left: 78%; }
.ig-2 { --iw: 54px; --ih: 30px; --top: 55%; --left: 88%; }
.ig-3 { --iw: 64px; --ih: 36px; --top: 62%; --left: 68%; }
.ig-4 { --iw: 46px; --ih: 26px; --top: 38%; --left: 92%; }
.ig-5 { --iw: 58px; --ih: 32px; --top: 70%; --left: 82%; }
.ig-6 { --iw: 40px; --ih: 22px; --top: 48%; --left: 62%; }

.mark {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 10px;
  align-items: flex-end;
  height: 84px;
  opacity: 0;
  animation: rise 1100ms var(--ease) 0.32s forwards;
}
.bar {
  display: block;
  width: 26px;
  background: linear-gradient(180deg, var(--gold) 0%, #a97a2c 100%);
  clip-path: polygon(0 100%, 100% 100%, 60% 0, 40% 0);
}
.bar-1 { height: 52px; }
.bar-2 { height: 84px; }
.bar-3 { height: 66px; }

.wordmark {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 14px;
  opacity: 0;
  animation: rise 1100ms var(--ease) 0.5s forwards;
}

.scroll-hint {
  position: relative;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: rise 900ms var(--ease) 0.9s forwards, fade-hint 600ms ease 2.4s forwards;
}
@keyframes fade-hint {
  to { opacity: 0; visibility: hidden; }
}
.word {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: 0.01em;
}
.sub {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--muted);
}

@keyframes rise {
  from { opacity: 0; translate: 0 16px; }
  to { opacity: 1; translate: 0 0; }
}

/* ===== Footer ===== */
.site-footer {
  padding: 64px 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact a {
  text-decoration: underline;
  text-decoration-color: var(--gold-dim);
  text-underline-offset: 4px;
  font-size: 15px;
}
.contact a:first-child {
  font-family: 'Unbounded', sans-serif;
  font-weight: 500;
  font-size: 17px;
}
.contact a:hover { text-decoration-color: var(--gold); }

.portfolio {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.portfolio a {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  font-size: 13.5px;
  color: var(--muted);
  transition: color 200ms;
}
.portfolio a:hover { color: var(--ink); text-decoration-color: var(--gold-dim); }

.credit {
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.credit-badge {
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  padding: 5px 12px;
}
.credit p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

/* ===== Motion-off ===== */
@media (prefers-reduced-motion: reduce) {
  .nav-badge, .mark, .wordmark, .scroll-hint { animation: none; opacity: 1; }
  .hero { height: auto; }
  .hero-inner { position: relative; height: 100vh; }
  .ingot { opacity: 0.22; }
  .scroll-hint { display: none; }
}

/* ===== Адаптив ===== */
@media (max-width: 720px) {
  .hero-inner {
    align-items: center;
    padding: 14vh 8vw 10vh;
    gap: 22px;
  }
  .mark { height: 64px; }
  .bar-1 { height: 40px; }
  .bar-2 { height: 64px; }
  .bar-3 { height: 50px; }
  .bar { width: 20px; }
  .wordmark { flex-direction: column; align-items: center; gap: 4px; }
  .word { font-size: 34px; }
  .ig-1, .ig-2, .ig-3, .ig-4, .ig-5, .ig-6 {
    --iw: calc(var(--iw) * 0.6);
    --ih: calc(var(--ih) * 0.6);
  }
}
