/* ============================================================
   vesnavoseny — EPK
   Палітра з артів Насті: нічне небо, кислотна зелень, гарячий
   рожевий, бузковий. Товсті контури + жорсткі тіні = стиль анімації.
   ============================================================ */

:root {
  --sky:       #272053;
  --sky-deep:  #1c1740;
  --panel:     #201a49;
  --panel-2:   #2d2660;
  --ink:       #0e0b22;
  --text:      #f4f1ff;
  --muted:     #b9b1dd;
  --pink:      #ff3ea5;
  --pink-soft: #ff7cc3;
  --green:     #b6e623;
  --lilac:     #c18ce0;
  --shadow:    rgba(10, 7, 28, .55);

  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
}

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

/* Без CSS scroll-behavior: smooth — він ламає відновлення позиції скролу
   та ScrollTrigger.refresh() з пінами. Плавні якорі робить JS (scrollIntoView). */
html {
  -webkit-text-size-adjust: 100%;
}

.section[id] { scroll-margin-top: 3.5rem; }

body {
  margin: 0;
  background: var(--sky);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  overflow-x: clip;
}

::selection { background: var(--pink); color: var(--ink); }

a { color: var(--pink-soft); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: #fff; }

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 4px;
}

img { max-width: 100%; height: auto; display: block; }

.wrap  { width: min(1160px, 94vw); margin-inline: auto; }
.strip { width: min(720px, 92vw); margin-inline: auto; }

/* ---------- Небо (канвас за всім) ---------- */

#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--sky);
}

/* ---------- Лоадер ---------- */

/* Той самий градієнт, що малює канвас, — перехід оверлей → небо безшовний */
#loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: linear-gradient(#272053, #211b4b);
  transition: opacity .45s ease;
}

#loader.is-done {
  opacity: 0;
  pointer-events: none;
}

.loader__logo {
  width: clamp(180px, 38vw, 320px);
  animation: loader-pulse 1.6s ease-in-out infinite;
}

@keyframes loader-pulse {
  0%, 100% { opacity: .5; transform: scale(.97); }
  50%      { opacity: 1;  transform: scale(1); }
}

/* Контент прихований, поки триває завантаження; проявляється плавно */
.site { transition: opacity .7s ease; }
html.is-loading .site { opacity: 0; }
html.is-loading { cursor: progress; }

@media (prefers-reduced-motion: reduce) {
  .loader__logo { animation: none; opacity: .9; }
}

/* ---------- Навігація ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transform: translateY(-110%);
  transition: transform .35s ease;
  background: color-mix(in srgb, var(--sky-deep) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}

.nav.is-visible { transform: translateY(0); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .55rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo img {
  width: clamp(128px, 18vw, 170px);
  height: auto;
}

.nav__links {
  display: flex;
  gap: clamp(.4rem, 2vw, 1.4rem);
  overflow-x: auto;
  scrollbar-width: none;
}
.nav__links::-webkit-scrollbar { display: none; }

.nav__links a {
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .04em;
  color: var(--text);
  text-decoration: none;
  padding: .4em .2em;
  white-space: nowrap;
}

.nav__links a:hover,
.nav__links a.is-active { color: var(--pink-soft); }

/* Бургер: видимий лише на мобілці. Смужки позиціоновані абсолютно від центру,
   при відкритті вся кнопка докручується на 90°, а смужки складаються в хрест */
.nav__burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .4s cubic-bezier(.22, .9, .3, 1.2);
}

.nav__burger span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2.5px;
  margin: -1.25px 0 0 -11px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .32s cubic-bezier(.4, 0, .2, 1), opacity .18s ease;
}

.nav__burger span:nth-child(1) { transform: translateY(-7px); }
.nav__burger span:nth-child(3) { transform: translateY(7px); }

.menu-open .nav__burger { transform: rotate(90deg); }
.menu-open .nav__burger span:nth-child(1) { transform: rotate(45deg); }
.menu-open .nav__burger span:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.menu-open .nav__burger span:nth-child(3) { transform: rotate(-45deg); }

@media (max-width: 767px) {
  .nav__burger { display: block; }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: .5rem 5vw 1rem;
    background: color-mix(in srgb, var(--sky-deep) 94%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--ink);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    overflow: visible;
  }

  .menu-open .nav__links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav__links a {
    font-size: 1.05rem;
    padding: .8em .2em;
    border-bottom: 1px solid rgba(244, 241, 255, .08);
  }

  .nav__links a:last-child { border-bottom: 0; }
}

/* ---------- Хедер ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
  position: relative;
}

/* Арт зшивається з канвас-небом по краях — тягнемо на всю ширину без відступів.
   Висота арту = 61.17vw (пропорція 2337/3820); коли він вищий за вʼюпорт,
   підтягуємо вгору на половину різниці: верх іде трохи за край екрана,
   а героїня з назвою лишаються по центру першого екрана. */
.hero__art {
  width: 100%;
  margin-top: min(0px, calc((100svh - 61.17vw) / 2));
  will-change: transform;
}

/* width примусово: max-width сам по собі не розтягне картинку понад її CSS-ширину */
.hero__art img {
  width: 100%;
  height: auto;
}

.hero__titles {
  text-align: center;
  padding-inline: 4vw;
  margin-top: clamp(1rem, 4vh, 3rem);
}

/* Мобілка: герой не тягнеться на весь вʼюпорт (арт+тайтли невисокі,
   100svh давав пустелю перед біо), тайтли одразу під артом без накладання */
@media (max-width: 900px) {
  .hero { min-height: auto; padding-bottom: 0; }
  .hero__titles { margin-top: .5rem; }
}

.hero__name {
  font-family: var(--font-display);
  font-weight: 900;
  /* фолбек: 7.2vw — щоб 11 літер Unbounded 900 влазили в рядок на будь-якій мобілці */
  font-size: clamp(1.8rem, 7.2vw, 6.4rem);
  line-height: 1.05;
  letter-spacing: .01em;
  white-space: nowrap;
  margin: 0;
  text-transform: lowercase;
  color: var(--text);
  text-shadow: 0 4px 0 rgba(10, 7, 28, .35);
}

/* Сучасні браузери: розмір від фактичної ширини контейнера (container units),
   а не вʼюпорта — стійкіше до скролбарів і паддінгів. Справжнього auto-fit
   у CSS ще нема, тож ratio під 11 літер Unbounded 900 + nowrap як гарантія. */
@supports (font-size: 1cqi) {
  /* width: 100% обовʼязково: у флекс-айтема з inline-size containment
     ширина не може залежати від контенту і без явного розміру схлопується в 0 */
  .hero__titles { width: 100%; container-type: inline-size; }
  .hero__name { font-size: clamp(1.8rem, 7.8cqi, 6.4rem); }
}

.hero__name .ch { display: inline-block; }

.hero__genres {
  margin: clamp(.9rem, 2.5vh, 1.6rem) 0 0;
  font-weight: 600;
  font-size: clamp(.72rem, 2.3vw, 1rem);
  letter-spacing: .22em;
  color: var(--lilac);
}

/* ---------- Секції та типографіка ---------- */

.section { padding-block: clamp(1.8rem, 4.5vh, 3rem); }

.section > * + * { margin-top: clamp(2.2rem, 5.5vh, 3.6rem); }

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.4vw, 1.9rem);
  line-height: 1.25;
  margin: 0 0 1.4rem;
  color: var(--text);
}

.h2--center {
  text-align: center;
  font-size: clamp(1.7rem, 4.4vw, 2.5rem);
  margin-bottom: clamp(2rem, 5vh, 3.2rem);
}

.prose p {
  margin: 0 0 1.2em;
  font-size: clamp(1.02rem, 1.9vw, 1.15rem);
}
.prose p:last-child { margin-bottom: 0; }

.prose--muted p { color: var(--muted); }

.sep { color: var(--pink); font-weight: 400; padding-inline: .18em; }

/* ---------- Зображення ---------- */

/* Тільки inline-центрування: блочні відступи задає .section > * + * */
.figure {
  margin-inline: auto;
}

.figure img {
  width: 100%;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 10px 10px 0 var(--shadow);
}

.figure--square { width: min(720px, 92vw); }
.figure--wide   { width: min(940px, 94vw); }

/* ---------- Концертна галерея (пін + горизонтальний скрол на десктопі) ---------- */

.gallery__item {
  margin: 0;
}

.gallery__item img {
  width: 100%;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 10px 10px 0 var(--shadow);
}

@media (min-width: 768px) {
  .gallery { overflow: hidden; }

  .gallery__track {
    display: flex;
    align-items: center;
    gap: clamp(1.4rem, 3vw, 2.5rem);
    width: max-content;
    /* стартова позиція: перше фото по центру вʼюпорта;
       вертикальний паддінг — щоб overflow не зрізав жорсткі тіні під картками */
    padding: 4px calc(50vw - 31vh) 16px;
    will-change: transform;
  }

  .gallery__item {
    flex: none;
    width: 62vh;
  }
}

@media (max-width: 767px) {
  /* мобайл: нативна свайп-карусель — картка вужча за екран,
     наступна визирає справа, скрол пальцем зі снепом */
  .gallery {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }

  .gallery__track {
    display: flex;
    gap: .9rem;
    width: max-content;
    /* нижній паддінг — щоб скрол-контейнер не зрізав тіні під картками */
    padding: 4px 4vw 12px;
  }

  .gallery__item {
    flex: none;
    width: 82vw;
    scroll-snap-align: center;
  }
}

/* ---------- Відео ---------- */

.videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 94vw), 1fr));
  gap: clamp(1.6rem, 4vw, 2.6rem);
  justify-items: center;
}

.video { width: 100%; max-width: 560px; }

.video__facade {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 3px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: var(--sky-deep);
  box-shadow: 10px 10px 0 var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.video__facade:hover { transform: translate(-2px, -2px); box-shadow: 12px 12px 0 var(--shadow); }

.video__facade img { width: 100%; }

.video__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--pink);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(10, 7, 28, .45);
  transition: transform .2s ease;
}

.video__play::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0; height: 0;
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent var(--ink);
  translate: 3px 0;
}

.video__facade:hover .video__play { transform: scale(1.08); }

.video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 3px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 10px 10px 0 var(--shadow);
  background: var(--ink);
}

.video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(.98rem, 2.4vw, 1.15rem);
  text-align: center;
  margin: 1.1rem 0 0;
}

/* ---------- Учасники ---------- */

.members {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  display: grid;
  gap: .9rem;
}

.members li {
  background: var(--panel);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  padding: .9rem 1.2rem;
  box-shadow: 6px 6px 0 var(--shadow);
  font-size: 1.05rem;
}

.members strong { color: var(--pink-soft); font-weight: 800; }

/* ---------- Релізи ---------- */

.releases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 86vw), 1fr));
  gap: clamp(1.4rem, 3.4vw, 2.4rem);
  align-items: start;
}

.release {
  background: var(--panel);
  border: 2.5px solid var(--ink);
  border-radius: 20px;
  padding: 1.1rem;
  text-align: center;
  box-shadow: 8px 8px 0 var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.release:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--shadow); }

.release__coverlink { display: block; }

.release__cover {
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  transition: transform .25s ease;
}

.release:hover .release__cover { transform: scale(1.02) rotate(-.6deg); }

.release__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.6vw, 1.22rem);
  line-height: 1.4;
  margin: 1.1rem 0 1.2rem;
  min-height: 2.6em;
  display: grid;
  place-content: center;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .03em;
  color: var(--ink);
  background: var(--pink);
  text-decoration: none;
  padding: .62em 1.5em;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: 5px 5px 0 var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover {
  color: var(--ink);
  background: var(--pink-soft);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--shadow);
}

.btn:active { transform: translate(1px, 1px); box-shadow: 3px 3px 0 var(--shadow); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--lilac);
  box-shadow: 5px 5px 0 rgba(10, 7, 28, .3);
}

.btn--ghost:hover {
  background: var(--lilac);
  color: var(--ink);
  border-color: var(--ink);
}

/* ---------- Преса ---------- */

.quote {
  margin: 0 0 2.2rem;
  padding: 1.4rem 1.6rem;
  background: var(--panel);
  border: 2.5px solid var(--ink);
  border-left: 8px solid var(--pink);
  border-radius: 16px;
  box-shadow: 8px 8px 0 var(--shadow);
  display: grid;
  grid-template-columns: minmax(150px, 180px) 1fr;
  gap: 1.3rem;
  align-items: start;
}

.quote--noimg { display: block; }

.quote__thumb { display: block; }

.quote__thumb img {
  width: 100%;
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  transition: transform .2s ease;
}

.quote__thumb:hover img { transform: scale(1.03) rotate(-.5deg); }

@media (max-width: 620px) {
  .quote { grid-template-columns: 1fr; gap: 1rem; }
  .quote__thumb { max-width: 320px; }
}

.quote p {
  margin: 0 0 .8rem;
  font-size: clamp(1.04rem, 2vw, 1.18rem);
  line-height: 1.65;
}

.quote cite {
  font-style: normal;
  font-size: .95rem;
  color: var(--muted);
}

/* ---------- Лінки / контакти ---------- */

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-bottom: 2rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
  text-decoration: none;
  padding: .5em 1.1em;
  background: var(--panel-2);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--shadow);
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.pill svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.pill:hover {
  background: var(--green);
  color: var(--ink);
  transform: translate(-2px, -2px);
}

.riders {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-bottom: 2.6rem;
}

.contact {
  background: var(--panel);
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  padding: 1.3rem 1.5rem;
  box-shadow: 8px 8px 0 var(--shadow);
}

.contact__who { margin: 0 0 .6rem; }
.contact__who strong { color: var(--green); }

.contact__lines {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.4rem;
}

.contact__lines a { font-weight: 700; }

/* ---------- Футер ---------- */

.footer {
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  font-size: .95rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  text-align: center;
}

.footer p { margin: 0; }

.footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
}

.footer__dev a { font-weight: 700; }

/* ---------- Анімаційні стани (JS додає рух, CSS — кінцевий стан) ---------- */

.reveal, .reveal-img, .reveal-card, .reveal-quote { opacity: 1; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Мобільні уточнення ---------- */

@media (max-width: 640px) {
  .figure img, .video__facade, .video__frame, .release, .quote, .contact {
    box-shadow: 6px 6px 0 var(--shadow);
  }
  .hero__genres { letter-spacing: .14em; }
  .members li { padding: .8rem 1rem; }
}
