:root {
  --bg: #0a0a0f;
  --bg-soft: #121119;
  --surface: #16151f;
  --surface-2: #1d1b29;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f3f8;
  --muted: #a9a6bd;
  --purple: #a36bff;
  --purple-bright: #c89dff;
  --purple-deep: #6a2fd6;
  --radius: 18px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .nav__brand { font-family: 'Syne', sans-serif; letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .85rem 1.6rem;
  border-radius: 999px; font-weight: 600; font-size: .95rem;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(120deg, var(--purple), var(--purple-deep));
  color: #fff; box-shadow: 0 8px 30px rgba(123, 60, 220, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(123, 60, 220, 0.5); }
.btn--ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,0.02); }
.btn--ghost:hover { border-color: var(--purple); color: var(--purple-bright); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 15, 0.78);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; letter-spacing: .12em; }
.nav__mark { width: 28px; height: 28px; color: var(--purple-bright); }
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a { font-size: .92rem; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  color: var(--text) !important; border: 1px solid var(--purple);
  padding: .5rem 1.1rem; border-radius: 999px;
}
.nav__cta:hover { background: var(--purple); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 7rem 1.5rem 5rem; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 120vw; height: 90vh;
  background: radial-gradient(closest-side, rgba(123, 60, 220, 0.32), transparent 70%);
  filter: blur(20px); animation: pulse 8s ease-in-out infinite;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  opacity: .5;
}
@keyframes pulse { 0%,100%{opacity:.7;transform:translateX(-50%) scale(1);} 50%{opacity:1;transform:translateX(-50%) scale(1.08);} }

.hero__heron { position: relative; z-index: 1; width: min(380px, 62vw); opacity: .95; margin-bottom: clamp(.5rem, 3vw, 1.5rem); }
.heron { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 18px 40px rgba(123,60,220,.45)); animation: float 6s ease-in-out infinite; }
.heron__body { transform-origin: 200px 170px; }
.heron__wing { transform-origin: 175px 150px; animation: flap 2.4s ease-in-out infinite; }
.heron__neck, .heron__leg { animation: sway 6s ease-in-out infinite; transform-origin: 230px 130px; }
.heron__leg { stroke: #fff; stroke-width: 5; stroke-linecap: round; fill: none; }
@keyframes flap {
  0%,100% { transform: rotate(0deg) translateY(0); }
  45%     { transform: rotate(-26deg) translateY(-6px); }
  55%     { transform: rotate(-26deg) translateY(-6px); }
}
@keyframes float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-14px);} }
@keyframes sway { 0%,100%{transform:rotate(0);} 50%{transform:rotate(2deg);} }

.hero__content { position: relative; z-index: 2; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .42em; font-size: .72rem; color: var(--purple-bright); margin-bottom: 1rem; }
.hero__title {
  /* "KEZURYA" in Syne ExtraBold is ~8.2em wide, so the vw coefficient is kept low
     enough that the word always fits the viewport (incl. side padding) at every size. */
  font-size: clamp(2.2rem, 10vw, 9rem); font-weight: 800; line-height: .9;
  letter-spacing: .01em; max-width: 100%;
  background: linear-gradient(180deg, #fff 35%, var(--purple-bright));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__tag { color: var(--muted); max-width: 30ch; margin: 1.2rem auto 0; font-size: clamp(1rem, 2.4vw, 1.2rem); }
.hero__actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.hero__scroll { position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%); z-index: 2; color: var(--muted); font-size: 1.4rem; animation: bob 2s infinite; }
@keyframes bob { 0%,100%{transform:translate(-50%,0);} 50%{transform:translate(-50%,8px);} }

/* ===== SECTIONS ===== */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(4rem, 9vw, 7rem) clamp(1.2rem, 4vw, 3rem); }
.section__head { margin-bottom: 2.6rem; }
.kicker { color: var(--purple); font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 600; }
.section__head h2 { font-size: clamp(2rem, 6vw, 3.4rem); margin-top: .4rem; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== ABOUT ===== */
.about__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem 3rem; align-items: start; }
.about__lead { font-size: clamp(1.15rem, 2.6vw, 1.5rem); line-height: 1.5; }
.about__lead strong { color: var(--purple-bright); }
.about__body { color: var(--muted); }
.about__stats { grid-column: 1 / -1; display: flex; gap: clamp(1.5rem, 5vw, 4rem); flex-wrap: wrap; margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 1.8rem; list-style: none; }
.about__stats li { display: flex; flex-direction: column; color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; }
.about__stats span { font-family: 'Syne'; font-size: clamp(2.2rem, 6vw, 3rem); color: var(--text); font-weight: 800; }

/* ===== MEMBERS ===== */
.members__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; }
.member {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.member::before {
  content: ''; position: absolute; inset: 0; opacity: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 0%, rgba(123,60,220,.22), transparent 60%);
  transition: opacity .35s;
}
.member:hover { transform: translateY(-6px); border-color: rgba(163,107,255,.5); box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.member:hover::before { opacity: 1; }
.member__photo {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.member:hover .member__photo img { transform: scale(1.05); }
.member__initials { font-family: 'Syne'; font-size: clamp(3rem, 8vw, 4rem); font-weight: 800; color: #fff; letter-spacing: .04em; opacity: .92; }
.member__info { position: relative; z-index: 1; padding: 1.3rem 1.5rem 1.6rem; }
.member__name { position: relative; z-index: 1; font-size: 1.3rem; }
.member__role { position: relative; z-index: 1; color: var(--purple-bright); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin: .15rem 0 .8rem; }
.member__bio { position: relative; z-index: 1; color: var(--muted); font-size: .92rem; }
.member__fact { position: relative; z-index: 1; margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.member__fact b { color: var(--text); font-weight: 600; }

/* ===== MUSIC ===== */
.music__layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.4rem; align-items: start; }
.tracklist { list-style: none; counter-reset: track; }
.track {
  display: flex; align-items: center; gap: 1rem; padding: 1rem .6rem;
  border-bottom: 1px solid var(--line); counter-increment: track;
  transition: background .25s, padding-left .25s;
}
.track::before { content: counter(track, decimal-leading-zero); font-family: 'Syne'; color: var(--purple); font-weight: 700; width: 2.4ch; }
.track:hover { background: var(--surface); padding-left: 1.1rem; border-radius: 12px; }
.track__info { flex: 1; min-width: 0; }
.track__title { font-weight: 600; }
.track__meta { color: var(--muted); font-size: .82rem; }
.track__play { color: var(--purple-bright); font-size: .85rem; opacity: 0; transition: opacity .25s; white-space: nowrap; }
.track:hover .track__play { opacity: 1; }
.music__embed { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.music__embed iframe { border-radius: 12px; display: block; margin-bottom: 1rem; }

/* ===== EVENTS ===== */
.events__list { display: flex; flex-direction: column; gap: 1rem; }
.events__empty { color: var(--muted); padding: 1.4rem 1.6rem; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.event {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.6rem; transition: border-color .3s, transform .3s;
}
.event:hover { border-color: rgba(163,107,255,.45); transform: translateX(4px); }
.event__date { text-align: center; min-width: 64px; }
.event__date .d { font-family: 'Syne'; font-size: 1.8rem; font-weight: 800; line-height: 1; display: block; }
.event__date .m { color: var(--purple-bright); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.event__main h3 { font-size: 1.12rem; }
.event__main p { color: var(--muted); font-size: .88rem; }
.event__tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.event__tag.is-release { color: var(--purple-bright); border-color: rgba(163,107,255,.5); }
.event__cta { font-size: .85rem; color: var(--purple-bright); white-space: nowrap; }

/* ===== GALLERY ===== */
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .9rem; margin-bottom: 1.5rem; }
.gallery-tile {
  position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); display: grid; place-items: center;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  color: var(--muted); font-size: 2rem; transition: transform .3s;
}
.gallery-tile:hover { transform: scale(1.03); }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; }
.gallery-tile__overlay {
  position: absolute; inset: 0; background: rgba(10,10,15,.55); opacity: 0;
  display: grid; place-items: center; color: #fff; font-size: 1.4rem; transition: opacity .3s;
}
.gallery-tile:hover .gallery-tile__overlay { opacity: 1; }
.gallery__note { color: var(--muted); font-size: .8rem; margin-top: 1.2rem; text-align: center; }
.gallery__note code { background: var(--surface); padding: .1rem .4rem; border-radius: 6px; color: var(--purple-bright); }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 5vmin;
  background: rgba(6, 6, 10, .9); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: min(1100px, 94vw); max-height: 88vh; width: auto; height: auto;
  border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  transform: scale(.96); transition: transform .25s var(--ease);
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__close {
  position: absolute; top: 1.2rem; right: 1.4rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--line);
  color: var(--text); font-size: 1.2rem; cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s, border-color .2s;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .16); border-color: var(--purple); }

/* ===== CONTACT ===== */
.contact__layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .4rem; letter-spacing: .03em; }
.field input, .field textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: .85rem 1rem; font: inherit; resize: vertical;
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(163,107,255,.18); }
.field input.invalid, .field textarea.invalid { border-color: #ff6b81; }
.contact__status { margin-top: 1rem; font-size: .9rem; min-height: 1.2em; }
.contact__status.ok { color: #6be3a2; }
.contact__status.err { color: #ff8a9b; }
.contact__aside h3 { font-size: 1rem; margin-bottom: .3rem; }
.contact__aside h3:not(:first-child) { margin-top: 1.6rem; }
.contact__aside a { color: var(--purple-bright); }
.social { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }
.social a { border: 1px solid var(--line); padding: .4rem .9rem; border-radius: 999px; font-size: .85rem; transition: border-color .25s, color .25s; }
.social a:hover { border-color: var(--purple); color: var(--purple-bright); }

/* ===== FOOTER ===== */
.footer { text-align: center; padding: 3rem 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer__mark { width: 40px; height: 40px; color: var(--purple); margin-bottom: .6rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.8rem; padding: 2rem 2.4rem;
    background: var(--bg-soft); border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform .35s var(--ease);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { font-size: 1.2rem; }
  .nav__toggle { display: flex; z-index: 101; }
  .about__grid, .music__layout, .contact__layout { grid-template-columns: 1fr; }
  .event { grid-template-columns: auto 1fr; }
  .event__cta { grid-column: 2; justify-self: start; }
}
@media (max-width: 480px) {
  .hero { padding: 6rem 1rem 4.5rem; }
  .hero__heron { width: min(260px, 56vw); margin-bottom: .25rem; }
  .hero__eyebrow { letter-spacing: .24em; font-size: .62rem; }
  .hero__tag { font-size: 1rem; }
  .event__tag { display: none; }
}

/* Short / landscape phones: shrink the heron so the title + buttons stay visible */
@media (max-height: 560px) {
  .hero { min-height: auto; padding-top: 6rem; }
  .hero__heron { width: min(180px, 30vw); }
}

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