@font-face {
  font-family: 'Anton';
  src: url('fonts/Anton-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0e0b16;
  --surface:  #1a1224;
  --ink:      #050308;
  --accent:   #7c6bff;
  --accent-dim: #382f6e;
  --hot:      #ff4d33;
  --hot-dim:  #7a271a;
  --text:     #ece9f5;
  --muted:    #a29cb8;
  --line:     rgba(255, 255, 255, 0.1);
  --font:     'Segoe UI', system-ui, -apple-system, sans-serif;
  --display:  'Anton', var(--font);
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}

::selection { background: var(--hot); color: #fff; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: #fff; }

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== TOP NAV: solid bar, always present, no blur/slide gimmick ===== */
#topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.5rem;
  background: var(--ink);
  border-bottom: 3px solid var(--hot);
}

.nav-logo {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-left: 1.6rem;
  transition: color 0.15s;
}

.nav-links a:hover { color: #fff; }

.nav-links a.nav-cta {
  color: var(--hot);
}

.nav-links a.nav-cta:hover { color: #fff; }

#lang-toggle {
  background: var(--hot);
  border: none;
  border-radius: 2px;
  padding: 0.3rem 0.6rem;
  margin-left: 1.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s;
}

#lang-toggle:hover { opacity: 0.8; }

/* ===== HERO ===== */
#hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--bg);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('img/hero-band.webp');
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  background-color: var(--ink);
  opacity: 0;
  animation: fadeIn 1.4s 0.3s ease forwards;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 77, 51, 0.22) 0%, transparent 55%),
    linear-gradient(to bottom, rgba(5, 3, 8, 0.3) 0%, rgba(5, 3, 8, 0.5) 55%, var(--ink) 100%);
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 1;
  padding: 0 1.5rem 5rem;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 9vw, 4.6rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 0.95;
  color: #fff;
  text-shadow: 0 3px 0 var(--hot), 0 3px 24px rgba(0,0,0,0.7);
  opacity: 0;
  animation: slam 0.5s 0.35s cubic-bezier(.2,.8,.3,1.2) forwards;
}

@keyframes slam {
  0%   { opacity: 0; transform: scale(1.4); }
  100% { opacity: 1; transform: scale(1); }
}

.tagline {
  margin-top: 0.9rem;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #f0eff7;
  text-shadow: 0 0 16px rgba(0,0,0,0.8);
  opacity: 0;
  animation: fadeIn 0.8s 0.75s ease forwards;
}

.cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.85rem 2.4rem;
  background: var(--hot);
  color: #fff;
  font-family: var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.05rem;
  border: none;
  transform: skewX(-8deg);
  box-shadow: 5px 5px 0 var(--ink), 5px 5px 0 1px rgba(255,255,255,0.08);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  opacity: 0;
  animation: fadeIn 0.8s 1.05s ease forwards;
}

.cta span, .cta {
  display: inline-block;
}

.cta:hover {
  background: #fff;
  color: var(--ink);
  transform: skewX(-8deg) translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--hot);
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.hero-lang-btn {
  display: block;
  margin: 1.3rem auto 0;
  background: none;
  border: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(236, 233, 245, 0.55);
  cursor: pointer;
  padding: 0.15rem 0.2rem;
  opacity: 0;
  animation: fadeIn 0.8s 1.3s ease forwards;
  transition: color 0.2s;
}

@media (hover: hover) {
  .hero-lang-btn:hover { color: var(--hot); }
}

.scroll-hint {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  opacity: 0;
  z-index: 1;
  transition: opacity 0.4s ease;
}

/* ===== SECTIONS ===== */
section {
  padding: 5rem 0 4.5rem;
  position: relative;
}

#about { background: var(--bg); }

#members {
  background: var(--surface);
  clip-path: polygon(0 3%, 100% 0, 100% 100%, 0 97%);
  margin-top: -3vw;
  padding-top: calc(5rem + 3vw);
}

#repertoire {
  background: var(--bg);
  clip-path: polygon(0 3%, 100% 0, 100% 100%, 0 97%);
  margin-top: -3vw;
  padding-top: calc(5rem + 3vw);
}

#contact {
  background: var(--surface);
  clip-path: polygon(0 3%, 100% 0, 100% 100%, 0 100%);
  margin-top: -3vw;
  padding-top: calc(5rem + 3vw);
  padding-bottom: 6rem;
}

h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 1.3rem;
  color: #fff;
  position: relative;
  padding-bottom: 0.7rem;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 4.5rem;
  height: 6px;
  background: var(--accent);
}

.section-sub {
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 640px;
}

#about > .container > p {
  color: var(--muted);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  max-width: 640px;
}

/* ===== MEMBERS ===== */
.member-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem 1.2rem;
}

@media (min-width: 700px) {
  .member-grid { grid-template-columns: repeat(4, 1fr); }
}

.member-card {
  position: relative;
  overflow: visible;
  aspect-ratio: 3/4;
  transition: transform 0.2s;
}

.member-card:hover { transform: translateY(-4px); }

.member-card picture,
.member-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 3px solid var(--ink);
  filter: grayscale(0.15) contrast(1.05);
}

.member-name {
  position: absolute;
  left: -0.4rem;
  bottom: -0.9rem;
  padding: 0.3rem 0.7rem;
  background: var(--hot);
  color: #fff;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transform: rotate(-4deg);
  box-shadow: 3px 3px 0 var(--ink);
}

/* ===== REPERTOIRE: ticket stubs ===== */
#repertoire > .container > p {
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  max-width: 640px;
}

.era-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

@media (min-width: 700px) {
  .era-grid { grid-template-columns: repeat(3, 1fr); }
}

.era-card {
  position: relative;
  background: var(--surface);
  border: 2px dashed var(--line);
  border-radius: 4px;
  padding: 1.7rem 1.5rem;
}

.era-range {
  display: block;
  font-family: var(--display);
  font-size: 1.9rem;
  color: var(--hot);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.era-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ===== CONTACT ===== */
#contact-form-wrap {
  max-width: 480px;
  margin-top: 2rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.4rem;
}

.form-row label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.form-row input,
.form-row textarea {
  background: var(--ink);
  border: 2px solid var(--line);
  border-radius: 3px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.6rem 0.7rem;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--hot);
}

.form-error {
  color: #ff8f80;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

#contact-thanks {
  padding: 2.5rem 0;
}

.thanks-msg {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

#contact-form .cta {
  cursor: pointer;
  opacity: 1;
  animation: none;
  font-size: 1rem;
  padding: 0.75rem 2rem;
}

#contact-form .cta:disabled {
  opacity: 0.5;
  cursor: default;
  transform: skewX(-8deg);
  box-shadow: 5px 5px 0 var(--ink);
}

.cf-turnstile { margin-bottom: 1rem; }

.form-row-checkbox { margin-bottom: 1.2rem; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--hot);
  flex-shrink: 0;
}

/* ===== FOOTER ===== */
footer {
  background: var(--ink);
  border-top: 3px solid var(--accent);
  text-align: center;
  padding: 1.6rem 1.5rem 1.3rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.footer-email {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.footer-email:hover { color: #fff; }

.footer-credit {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
}

.footer-credit a {
  color: var(--muted);
}

.footer-credit a:hover { color: #fff; }

.footer-legal { margin: 0; }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg, .hero-title, .tagline, .cta {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .nav-logo { font-size: 0.95rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-links a.nav-cta { margin-left: 0; }
  #lang-toggle { margin-left: 0.8rem; }
}

@media (max-width: 600px) {
  section { padding: 4rem 0 3.5rem; }
  .member-grid { grid-template-columns: repeat(2, 1fr); }
  #hero { height: 82vh; align-items: center; }
  .hero-bg {
    background-size: contain;
    background-position: top center;
  }
  .hero-content { padding-bottom: 1.5rem; }
  #members, #repertoire, #contact { margin-top: -6vw; padding-top: calc(4rem + 6vw); }
}
