/* ============================================================
   VAERELLE — shared design system
   Concept: physical photocard sleeve. Paper-pearl background,
   foil-edge accents, condensed poster type for the group's
   "brand voice", each member carries her own spine color.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Work+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #faf6f1;
  --bg-raised: #ffffff;
  --ink: #1a171c;
  --ink-soft: #56505a;
  --line: #e4dcd3;

  --corae: #3d1b3f;
  --harper: #a63d2e;
  --tessara: #a9812f;
  --zalia: #b23fa0;

  --foil-a: #d7c7e8;
  --foil-b: #f4d9c6;
  --foil-c: #c9e3e0;

  --display: 'Bebas Neue', sans-serif;
  --body: 'Work Sans', sans-serif;
  --mono: 'JetBrains Mono', monospace;

  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(0,0,0,0.035) 1px, transparent 1px);
  background-size: 3px 3px;
  z-index: 0;
}

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

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 241, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding: 4px 0;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: linear-gradient(90deg, var(--corae), var(--harper), var(--tessara), var(--zalia));
}

.nav-tiktok {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 8px 16px !important;
  color: var(--ink) !important;
}
.nav-tiktok:hover { background: var(--ink); color: var(--bg) !important; }

.nav-toggle { display: none; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 120px;
  padding: 40px 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Eyebrow / labels ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: currentColor;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { transform: translateY(-2px); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  padding: 96px 0 64px;
  overflow: hidden;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(64px, 13vw, 168px);
  line-height: 0.86;
  letter-spacing: 0.01em;
  margin: 18px 0 0;
}

.hero-sub {
  max-width: 520px;
  margin: 28px 0 0;
  font-size: 18px;
  color: var(--ink-soft);
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-image {
  margin-top: 56px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 70px rgba(61, 27, 63, 0.35);
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(26,23,28,0.55) 100%);
  pointer-events: none;
}

.hero-image img {
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.spine-row {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  border-radius: 14px;
  overflow: hidden;
}

.spine {
  height: 120px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  transition: flex-grow 0.4s ease;
}
.spine span { position: relative; z-index: 1; }
.spine-corae { background: var(--corae); }
.spine-harper { background: var(--harper); }
.spine-tessara { background: var(--tessara); }
.spine-zalia { background: var(--zalia); }

/* ---------- Section shell ---------- */

.section {
  padding: 90px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(38px, 6vw, 58px);
  margin: 8px 0 0;
}

.section-note {
  max-width: 340px;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- Home: teaser grid ---------- */

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.teaser-card {
  border-radius: 16px;
  padding: 22px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.teaser-card .role {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.teaser-card .name {
  font-family: var(--display);
  font-size: 42px;
  letter-spacing: 0.02em;
}
.teaser-card img.teaser-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 0;
}
.teaser-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,10,20,0.05) 0%, rgba(20,10,20,0.2) 45%, rgba(20,10,20,0.85) 100%);
  z-index: 1;
}
.teaser-card .role, .teaser-card .name {
  position: relative;
  z-index: 2;
}
.tc-corae { background: linear-gradient(160deg, var(--corae), #1a0c1c); }
.tc-harper { background: linear-gradient(160deg, var(--harper), #4d180f); }
.tc-tessara { background: linear-gradient(160deg, var(--tessara), #5c440e); }
.tc-zalia { background: linear-gradient(160deg, var(--zalia), #4a0f42); }

/* ---------- About / group dynamic ---------- */

.about-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about-block p {
  font-size: 17px;
  color: var(--ink-soft);
}

.about-photo {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(61,27,63,0.25);
}
.about-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.big-quote {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(26,23,28,0.18);
  aspect-ratio: 4/5;
}
.gallery-grid .wide {
  grid-column: span 2;
  aspect-ratio: 16/8.4;
}

@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .wide { grid-column: span 1; }
}

/* ============================================================
   MEMBERS PAGE — holofoil photocards
   ============================================================ */

.member-intro {
  max-width: 620px;
  margin-bottom: 56px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.pcard {
  position: relative;
  height: 480px;
  border-radius: 20px;
  perspective: 1400px;
  cursor: pointer;
}

.pcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
}

.pcard.flipped .pcard-inner { transform: rotateY(180deg); }

.pcard-face {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  backface-visibility: hidden;
  overflow: hidden;
  padding: 26px;
  display: flex;
  flex-direction: column;
  color: #fff;
}

.pcard-front {
  justify-content: space-between;
}

.pcard-back {
  transform: rotateY(180deg);
  background: var(--bg-raised);
  color: var(--ink);
  border: 1px solid var(--line);
  justify-content: flex-start;
  overflow-y: auto;
}

.pc-corae .pcard-front { background: linear-gradient(155deg, var(--corae), #150913); }
.pc-harper .pcard-front { background: linear-gradient(155deg, var(--harper), #351007); }
.pc-tessara .pcard-front { background: linear-gradient(155deg, var(--tessara), #46330a); }
.pc-zalia .pcard-front { background: linear-gradient(155deg, var(--zalia), #380a32); }

.pcard-front::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--shine-opacity, 0);
  background: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 50%),
    rgba(255,255,255,0.55), rgba(255,255,255,0.08) 45%, transparent 70%);
  transition: opacity 0.25s ease;
  mix-blend-mode: overlay;
  z-index: 3;
}
.pcard:hover .pcard-front::after { --shine-opacity: 1; }

.pcard-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  z-index: 0;
}

.pcard-front.has-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,10,20,0.05) 0%, rgba(20,10,20,0.15) 45%, rgba(20,10,20,0.82) 100%);
  z-index: 1;
}

.pcard-front.has-photo > *:not(.pcard-photo) {
  position: relative;
  z-index: 2;
}

.pc-index {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.pc-name {
  font-family: var(--display);
  font-size: 52px;
  line-height: 0.95;
}

.pc-role {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-top: 6px;
}

.pc-flip-hint {
  align-self: flex-end;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  padding: 6px 12px;
}

.pcard-back h3 {
  font-family: var(--display);
  font-size: 30px;
  margin: 0 0 4px;
}
.pcard-back .pc-back-role {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.pcard-back p { font-size: 14px; color: var(--ink-soft); margin: 0 0 14px; }
.pcard-back ul { margin: 0 0 14px; padding-left: 18px; font-size: 13.5px; color: var(--ink-soft); }
.pcard-back li { margin-bottom: 6px; }
.pcard-back .pc-quote {
  font-family: var(--body);
  font-style: italic;
  font-size: 14px;
  color: var(--ink);
  border-left: 2px solid var(--line);
  padding-left: 12px;
}

/* ============================================================
   MUSIC PAGE
   ============================================================ */

.music-hero {
  padding: 90px 0 40px;
}

.era-card {
  border-radius: 20px;
  padding: 48px;
  background: linear-gradient(135deg, var(--corae), var(--harper), var(--tessara), var(--zalia));
  background-size: 300% 300%;
  animation: era-shift 12s ease infinite;
  color: #fff;
  margin-bottom: 56px;
}
@keyframes era-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.era-card .eyebrow { color: rgba(255,255,255,0.85); }
.era-title {
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 76px);
  margin: 10px 0 16px;
}
.era-card p { max-width: 520px; color: rgba(255,255,255,0.92); }

.era-covers {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.era-covers img {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  border: 2px solid rgba(255,255,255,0.35);
}

.track-list { border-top: 1px solid var(--line); }
.track-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 6px 20px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.track-cover {
  grid-row: span 2;
  width: 84px;
  height: 84px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.track-num { font-family: var(--mono); color: var(--ink-soft); font-size: 13px; }
.track-name { font-family: var(--display); font-size: 30px; }
.track-tag {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}
.track-meta {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.track-duration {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
}
.track-row audio {
  grid-column: 2;
  width: 100%;
  max-width: 480px;
  margin-top: 10px;
  height: 34px;
}
/* Give the native player a touch of brand color without fighting the browser's own chrome */
.track-row audio::-webkit-media-controls-panel {
  background-color: var(--bg);
}

@media (max-width: 560px) {
  .track-row { grid-template-columns: 60px 1fr; }
  .track-cover { width: 60px; height: 60px; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: block;
    font-family: var(--mono);
    font-size: 12px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    padding: 8px 14px;
    background: none;
  }
  .spine-row { grid-template-columns: repeat(2, 1fr); }
  .teaser-grid { grid-template-columns: repeat(2, 1fr); }
  .about-block { grid-template-columns: 1fr; gap: 32px; }
  .card-grid { grid-template-columns: 1fr; }
  .pcard { height: 440px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .era-card { animation: none; }
  .pcard-inner { transition: none; }
}

:focus-visible {
  outline: 2px solid var(--zalia);
  outline-offset: 3px;
}
