/* ===== База ===== */
:root{
  --bg: #050505;
  --fg: #ffffff;
  --muted: rgba(255,255,255,.72);
  --line: rgba(255,255,255,.18);
  --radius: 18px;
  --font: "Inter", "SF Pro Display", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-display: "Montserrat", "Segoe UI", system-ui, Arial, sans-serif;
}

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

html{ scroll-behavior:smooth; }

body{
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* мягкое свечение по центру первого экрана */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 45% at 50% 30%, rgba(255,255,255,.055), transparent 70%),
    radial-gradient(70% 50% at 50% 100%, rgba(255,255,255,.03), transparent 70%);
  pointer-events:none;
  z-index: 0;
}

/* ===== Декоративные штрихи на фоне ===== */
.sparks{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.spark{
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent);
  border-radius: 1px;
  opacity: .18;
  animation: twinkle 7s ease-in-out infinite;
}
@keyframes twinkle{
  0%, 100% { opacity: .08; transform: translateY(0) rotate(var(--rot)); }
  50%      { opacity: .34; transform: translateY(-6px) rotate(var(--rot)); }
}

/* ===== Первый экран ===== */
.hero{
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 24px 120px;
}

.hero__inner{ max-width: 900px; }

.avatar{
  width: clamp(130px, 17vw, 176px);
  aspect-ratio: 1;
  margin: 0 auto clamp(38px, 6vw, 70px);
  border-radius: 50%;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 0 60px rgba(255,255,255,.09);
}
.avatar img{
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 28%;
  display: block;
}

.hero__title{
  font-size: clamp(2.6rem, 8.5vw, 6.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.02;
}

.hero__lead{
  margin-top: clamp(18px, 3vw, 30px);
  font-size: clamp(1rem, 1.85vw, 1.55rem);
  line-height: 1.5;
  color: var(--muted);
  font-weight: 400;
}

.scroll-hint{
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.scroll-hint span{
  width: 2px;
  height: 7px;
  background: rgba(255,255,255,.6);
  border-radius: 2px;
  animation: scrollDot 1.9s ease-in-out infinite;
}
@keyframes scrollDot{
  0%   { transform: translateY(0);    opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(13px); opacity: 0; }
}

/* ===== Работы ===== */
.works{
  position: relative;
  z-index: 1;
  padding: clamp(60px, 9vw, 110px) 24px clamp(70px, 10vw, 130px);
}

.section-title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4.6vw, 3.4rem);
  letter-spacing: -.01em;
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 76px);
}

.grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  max-width: 1120px;
  margin: 0 auto;
}

.card__frame{
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
  transition: transform .45s cubic-bezier(.2,.7,.3,1), box-shadow .45s ease;
}
.card__frame:hover{
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(0,0,0,.7);
}
.card__frame video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0d0d0d;
}

.play{
  position: absolute;
  inset: 0;
  margin: auto;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.9);
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .3s ease, background .3s ease, opacity .3s ease;
}
.play svg{ width: 30px; height: 30px; fill: currentColor; margin-left: 3px; }
.play:hover{ transform: scale(1.08); background: rgba(255,255,255,.16); }
.card.is-playing .play{ opacity: 0; pointer-events: none; }

/* ===== Подвал ===== */
.footer{
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px clamp(60px, 8vw, 100px);
}
.footer__text{
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  color: var(--muted);
  margin-bottom: 26px;
}
.cta{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.6);
  color: #fff;
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 600;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.cta svg{ width: 20px; height: 20px; fill: currentColor; }
.cta:hover{ background: #fff; color: #000; transform: translateY(-2px); }
.footer__copy{
  margin-top: 42px;
  font-size: .85rem;
  color: rgba(255,255,255,.35);
}

/* ===== Появление при скролле ===== */
.reveal{
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.3,1);
}
.reveal.is-visible{ opacity: 1; transform: none; }

/* ===== Адаптив ===== */
@media (max-width: 900px){
  .grid{ grid-template-columns: repeat(2, minmax(0,1fr)); max-width: 620px; }
}
@media (max-width: 560px){
  .grid{ grid-template-columns: minmax(0,1fr); max-width: 360px; }
  .play{ width: 62px; height: 62px; }
  .play svg{ width: 25px; height: 25px; }
  .scroll-hint{ display: none; }
}

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