/* =========================================================
   DJ AUTUMN — Jazz House Landing Page
   ========================================================= */

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

:root {
  /* ---- paleta ---- */
  --sand: #d5b7a2;
  --umber: #83543a;
  --rust: #aa5e3e;

  --cream: #f8f1e7;
  --cream-soft: #efe2d2;
  --ink: #2b1a10;
  --dark: #241408;
  --dark-2: #1a0e05;

  /* ---- tipografia ---- */
  --font-display:
    "Branch", "Bodoni Moda", "Playfair Display", "Times New Roman", serif;
  --font-body: "Montserrat", -apple-system, sans-serif;

  /* ---- ritmo ---- */
  --section-pad: clamp(72px, 10vw, 140px);
  --edge: clamp(24px, 6vw, 96px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream-soft);
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
button {
  font-family: inherit;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- textura de grão ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- cursor glow ambiente ---------- */
.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(170, 94, 62, 0.1), transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  opacity: 0;
}
.cursor-glow.active {
  opacity: 1;
}

/* ==========================================================
   NAV
   ========================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 22px var(--edge);
  display: flex;
  transition:
    background 0.4s var(--ease),
    padding 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(248, 241, 231, 0.82);
  backdrop-filter: blur(10px);
  padding-block: 14px;
  box-shadow: 0 1px 0 rgba(43, 26, 16, 0.08);
}
.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.brand-mark span {
  color: var(--rust);
  font-style: italic;
}
.brand-mark.small {
  font-size: 1.6rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b7a71;
  position: relative;
  padding-bottom: 4px;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--rust);
  transition: right 0.35s var(--ease);
}
.nav-link:hover::after,
.nav-link.active::after {
  right: 0;
}
.nav-cta {
  border: 1px solid var(--umber);
  padding: 9px 20px;
  border-radius: 999px;
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease);
}
.nav-cta::after {
  display: none;
}
.nav-cta:hover {
  background: var(--umber);
  color: var(--cream);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: #8b7a71;
  transition:
    transform 0.3s var(--ease),
    opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---- header claro sobre a foto do hero (home e preview), antes de rolar ---- */
body.is-home .site-header:not(.scrolled) .nav-link,
body.is-mixes .site-header:not(.scrolled) .nav-link {
  color: rgba(248, 241, 231, 0.85);
}
body.is-home .site-header:not(.scrolled) .nav-link::after,
body.is-mixes .site-header:not(.scrolled) .nav-link::after {
  background: var(--cream);
}
body.is-home .site-header:not(.scrolled) .btn-line,
body.is-mixes .site-header:not(.scrolled) .btn-line {
  border-color: var(--cream);
  color: var(--cream);
}
body.is-home .site-header:not(.scrolled) .brand-mark img,
body.is-mixes .site-header:not(.scrolled) .brand-mark img {
  filter: brightness(0) invert(1);
}
body.is-home .site-header:not(.scrolled) .nav-toggle span,
body.is-mixes .site-header:not(.scrolled) .nav-toggle span {
  background: var(--cream);
}

/* ==========================================================
   DECORATIVE VECTORS (sax / dried branches)
   ========================================================== */
.deco {
  position: absolute;
  fill: none;
  stroke: var(--umber);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.16;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}
.deco circle,
.deco ellipse {
  fill: var(--umber);
  stroke: none;
}

.deco-sax--left {
  top: 8%;
  left: -40px;
  width: clamp(120px, 14vw, 220px);
}
.deco-branch--right {
  bottom: -6%;
  right: -30px;
  width: clamp(160px, 18vw, 280px);
  transform: scaleX(-1);
}
.deco-branch--about {
  top: -6%;
  right: 4%;
  width: clamp(110px, 12vw, 180px);
}
.deco-sax--sound {
  bottom: -10%;
  left: 2%;
  width: clamp(110px, 12vw, 180px);
  transform: scaleX(-1);
}
.deco-branch--mixes {
  top: -4%;
  left: -20px;
  width: clamp(150px, 16vw, 240px);
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 140px var(--edge) 100px;
  overflow: hidden;
  background: var(--dark);
}

.hero-preview {
  position: relative;
  min-height: 50svh;
  display: flex;
  align-items: flex-end;
  padding: 140px var(--edge) 100px;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #391a0cb5;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sand);
  font-weight: 600;
  margin: 0 0 22px;
}

.wordmark {
  margin: 0 0 6px;
  line-height: 0.82;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.wordmark img {
  filter: brightness(0) invert(1);
}
.wordmark-small {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--cream);
}
.wordmark-big {
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 10vw, 8.4rem);
  color: var(--rust);
  letter-spacing: -0.01em;
}

.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--cream);
  margin: 6px 0 26px;
}

.hero-copy {
  max-width: 44ch;
  font-size: 1.02rem;
  color: rgba(248, 241, 231, 0.85);
  margin-bottom: 38px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    transform 0.35s var(--ease),
    background 0.35s var(--ease),
    color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.btn-solid {
  background: var(--rust);
  color: var(--cream);
  box-shadow: 0 10px 24px -10px rgba(170, 94, 62, 0.65);
}
.btn-solid:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -12px rgba(170, 94, 62, 0.75);
}
.btn-line {
  border: 1px solid #8b7a71;
  color: #8b7a71;
}
.btn-line:hover {
  background: #83543a;
  color: #ffffff;
  transform: translateY(-3px);
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  filter: none;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(26, 14, 5, 0.85) 0%,
      rgba(26, 14, 5, 0.55) 35%,
      rgba(26, 14, 5, 0.05) 70%
    ),
    linear-gradient(0deg, rgba(26, 14, 5, 0.55) 0%, transparent 32%);
}

.reveal.reveal-photo {
  opacity: 0;
  transform: scale(1.06);
  filter: blur(10px);
  transition:
    opacity 1.15s var(--ease),
    transform 1.15s var(--ease),
    filter 1.15s var(--ease);
  transition-delay: 0.1s;
}
.reveal.reveal-photo.in-view {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

/* --- disco / vídeo em loop: widget fixo --- */
.vinyl-widget {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 200;
  width: clamp(76px, 9vw, 104px);
  aspect-ratio: 1;
  filter: drop-shadow(0 14px 26px rgba(36, 20, 8, 0.45));
  cursor: pointer;
  opacity: 0;
  transform: translateY(24px) scale(0.9);
  animation: vinylWidgetIn 0.8s var(--ease) 0.9s forwards;
}
@keyframes vinylWidgetIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.vinyl-widget-tag {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--dark-2);
  color: var(--cream);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.vinyl-widget:hover .vinyl-widget-tag,
.vinyl-widget:focus-within .vinyl-widget-tag {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.vinyl-ring {
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(
      circle at center,
      rgba(248, 241, 231, 0.16) 0 1px,
      transparent 1px 6px
    ),
    radial-gradient(
      circle at 38% 32%,
      rgba(248, 241, 231, 0.12),
      transparent 55%
    ),
    var(--dark-2);
  box-shadow: inset 0 0 0 2px rgba(248, 241, 231, 0.08);
  animation: spin 26s linear infinite;
}
.vinyl-video-mask {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 20px 40px -16px rgba(36, 20, 8, 0.5),
    0 0 0 6px var(--cream),
    0 0 0 7px rgba(131, 84, 58, 0.4);
  animation: spin 34s linear infinite;
}
.vinyl-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) sepia(0.12);
}
.vinyl-label {
  position: absolute;
  inset: 30% 30%;
  border-radius: 50%;
  background: var(--umber);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.25;
}
.vinyl-label::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cream);
}
.tonearm {
  position: absolute;
  top: -10%;
  right: -18%;
  width: 48%;
  height: 48%;
  border-top: 2.5px solid var(--umber);
  border-right: 2.5px solid var(--umber);
  border-radius: 0 100% 0 0;
  transform-origin: top right;
  transform: rotate(0deg);
  transition: transform 1.2s var(--ease);
}
.vinyl-widget.paused .tonearm {
  transform: rotate(-18deg);
}
.vinyl-widget.paused .vinyl-ring,
.vinyl-widget.paused .vinyl-video-mask {
  animation-play-state: paused;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.scroll-cue {
  position: absolute;
  left: var(--edge);
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
}
.scroll-cue-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--cream), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: var(--rust);
  animation: cueDrop 2.4s var(--ease) infinite;
}
@keyframes cueDrop {
  to {
    top: 100%;
  }
}
.scroll-cue-text {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

/* ==========================================================
   SECTIONS — shared
   ========================================================== */
.section {
  position: relative;
  padding: var(--section-pad) var(--edge);
  overflow: hidden;
}
.section-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin-inline: auto;
}

.kicker {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 600;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 46px;
  max-width: 16ch;
}

/* ---------- Sobre ---------- */
.about {
  background: var(--cream);
}
.about-grid {
  display: grid;
  grid-template-columns: 0.5fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-label {
  position: sticky;
  top: 120px;
}
.lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--umber);
  line-height: 1.45;
  margin: 0 0 26px;
}
.about-text p:not(.lead) {
  color: rgba(43, 26, 16, 0.78);
  max-width: 100ch;
}
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.tag {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--sand);
  color: var(--umber);
  padding: 8px 16px;
  border-radius: 999px;
}

/* ---------- O Som ---------- */
.sound {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-soft) 100%);
}
.sound-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.sound-card {
  background: var(--cream);
  border: 1px solid rgba(131, 84, 58, 0.18);
  border-radius: 18px;
  padding: 34px 28px;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.sound-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 40px -22px rgba(43, 26, 16, 0.25);
  border-color: var(--rust);
}
.sound-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--rust);
  margin: 0 0 12px;
}
.sound-card p {
  color: rgba(43, 26, 16, 0.72);
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Datas ---------- */
.dates {
  background: var(--dark);
  color: var(--cream);
}
body.is-dates {
  background: var(--dark);
}
.dates .kicker {
  color: var(--sand);
}
.dates .section-title {
  color: var(--cream);
}
.dates-list {
  border-top: 1px solid rgba(248, 241, 231, 0.15);
}
.date-row {
  display: grid;
  grid-template-columns: 90px 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 26px 4px;
  border-bottom: 1px solid rgba(248, 241, 231, 0.15);
  transition:
    padding-left 0.35s var(--ease),
    background 0.35s var(--ease);
}
.date-row:hover {
  padding-left: 16px;
  background: rgba(248, 241, 231, 0.04);
}
.date-day {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--sand);
  font-size: 1rem;
}
.date-venue {
  font-weight: 500;
}
.date-city {
  color: rgba(248, 241, 231, 0.55);
  font-size: 0.85rem;
}
.date-link {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust);
  white-space: nowrap;
}

/* ==========================================================
   MIXES (player com play/pause + barra de progresso)
   ========================================================== */
.mixes {
  background: var(--cream);
}
.mix-grid {
  display: grid;
  gap: 18px;
}
.mix-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 20px 26px;
  border: 1px solid rgba(131, 84, 58, 0.18);
  border-radius: 999px;
  background: var(--cream);
  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.mix-card:hover {
  background: var(--cream-soft);
  border-color: var(--rust);
}
/* o <audio> não tem controles visíveis */
.mix-card audio {
  display: none;
}

.mix-disc {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s var(--ease);
}
.mix-card:hover .mix-disc {
  transform: rotate(140deg);
}
.mix-disc span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sand);
}
.mix-info {
  min-width: 0;
}
.mix-info h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-weight: 600;
}
.mix-info p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(43, 26, 16, 0.6);
}

.mix-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rust);
  background: none;
  color: var(--rust);
  cursor: pointer;
  font-size: 0.8rem;
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.mix-play:hover {
  background: var(--rust);
  color: var(--cream);
  transform: scale(1.08);
}

/* --- estado "tocando" --- */
.mix-play.is-playing {
  background: var(--rust);
  color: var(--cream);
}
.mix-card.is-playing {
  background: var(--cream-soft);
  border-color: var(--rust);
}
.mix-card.is-playing .mix-disc {
  animation: spin 5s linear infinite;
}
.mix-card.is-playing:hover .mix-disc {
  transform: none;
}

/* --- barra de progresso --- */
.mix-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.mix-bar {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(131, 84, 58, 0.2);
  cursor: pointer;
  touch-action: none; /* arrastar a barra no celular não rola a página */
  transition: height 0.2s var(--ease);
}
/* área de clique maior, sem aumentar a barra visível */
.mix-bar::before {
  content: "";
  position: absolute;
  inset: -10px 0;
}
.mix-bar:hover,
.mix-bar:focus-visible {
  height: 6px;
  outline: none;
}
.mix-bar-fill {
  position: relative;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--rust);
}
.mix-bar-fill::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rust);
  transform: translateY(-50%) scale(0);
  transition: transform 0.2s var(--ease);
}
.mix-bar:hover .mix-bar-fill::after,
.mix-bar:focus-visible .mix-bar-fill::after,
.mix-card.is-playing .mix-bar-fill::after {
  transform: translateY(-50%) scale(1);
}
.mix-time {
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: rgba(43, 26, 16, 0.6);
  white-space: nowrap;
}

/* ---------- Galeria ---------- */
.gallery {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-soft) 100%);
}
.deco-sax--gallery {
  top: -4%;
  right: -20px;
  width: clamp(110px, 12vw, 180px);
}

.gallery-intro {
  max-width: 52ch;
  color: rgba(43, 26, 16, 0.72);
  margin: -22px 0 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 110px;
  gap: 18px;
}
.gallery-item {
  position: relative;
  grid-column: span 1;
  grid-row: span 2;
  border-radius: 16px;
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: default;
  background: var(--cream-soft);
}
.gallery-item--wide {
  grid-column: span 2;
}
.gallery-item--tall {
  grid-row: span 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform 0.6s var(--ease),
    filter 0.6s var(--ease);
}
button.gallery-item {
  cursor: pointer;
}
button.gallery-item:hover img {
  transform: scale(1.06);
}
button.gallery-item::after {
  content: "＋";
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(248, 241, 231, 0.92);
  color: var(--umber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}
button.gallery-item:hover::after,
button.gallery-item:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item.is-placeholder {
  border: 1px dashed rgba(131, 84, 58, 0.4);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(131, 84, 58, 0.06) 0 12px,
      transparent 12px 24px
    ),
    var(--cream-soft);
}
.gallery-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--umber);
  text-align: center;
  padding: 12px;
}
.gallery-placeholder svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.8;
}
.gallery-placeholder-label {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  opacity: 0.75;
}
.gallery-placeholder-label code {
  font-family: var(--font-body);
  font-size: 0.64rem;
  color: var(--rust);
}

/* --- lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(26, 14, 5, 0.88);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s var(--ease),
    visibility 0s linear 0.4s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.4s var(--ease),
    visibility 0s linear 0s;
}
.lightbox-figure {
  margin: 0;
  max-width: min(90vw, 720px);
  transform: scale(0.94);
  transition: transform 0.4s var(--ease);
}
.lightbox.is-open .lightbox-figure {
  transform: scale(1);
}
.lightbox-img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  user-select: none;
}
.lightbox-caption {
  margin-top: 14px;
  text-align: center;
  color: var(--cream);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(248, 241, 231, 0.4);
  background: transparent;
  color: var(--cream);
  font-size: 1rem;
  cursor: pointer;
  transition:
    background 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.lightbox-close:hover {
  background: rgba(248, 241, 231, 0.12);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(248, 241, 231, 0.4);
  background: rgba(26, 14, 5, 0.35);
  color: var(--cream);
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.3s var(--ease),
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.lightbox-nav:hover {
  background: var(--rust);
  border-color: var(--rust);
  transform: translateY(-50%) scale(1.06);
}
.lightbox-nav:active {
  transform: translateY(-50%) scale(0.96);
}
.lightbox-prev {
  left: 18px;
}
.lightbox-next {
  right: 18px;
}
.lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  color: rgba(248, 241, 231, 0.75);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }
  .lightbox-prev {
    left: 8px;
  }
  .lightbox-next {
    right: 8px;
  }
}

/* ---------- Contato ---------- */
.contact {
  background: linear-gradient(180deg, var(--cream-soft), var(--sand));
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}
.contact-copy p {
  max-width: 40ch;
  color: rgba(43, 26, 16, 0.75);
}
.socials {
  display: flex;
  gap: 22px;
  margin-top: 24px;
}
.social-link {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--umber);
  position: relative;
  padding-bottom: 3px;
}
.social-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.social-link:hover::after {
  transform: scaleX(1);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--cream);
  padding: 40px;
  border-radius: 22px;
  box-shadow: 0 30px 60px -30px rgba(43, 26, 16, 0.3);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--umber);
  font-weight: 600;
}
.field input,
.field textarea {
  border: none;
  border-bottom: 1px solid rgba(131, 84, 58, 0.35);
  background: transparent;
  padding: 10px 2px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.3s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--rust);
}
.contact-form .btn {
  align-self: flex-start;
  margin-top: 6px;
  border: none;
  cursor: pointer;
}
.form-note {
  font-size: 0.82rem;
  color: var(--rust);
  min-height: 1em;
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark-2);
  color: rgba(248, 241, 231, 0.7);
  padding: 56px var(--edge) 30px;
  width: 100%;
  margin-top: auto;
}
.footer-inner {
  max-width: 1180px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer-inner .brand-mark {
  color: var(--cream);
}
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--sand);
  margin: 0;
}
.footer-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 10px 0;
}
.footer-nav a {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-copy {
  font-size: 0.74rem;
  opacity: 0.55;
  margin: 10px 0 0;
}

/* ==========================================================
   SCROLL REVEAL (JS toggles .in-view)
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.about-tags.reveal,
.hero-actions.reveal {
  transition-delay: 0.1s;
}

/* .reveal (declarada acima) sobrescreveria o transition do card;
   aqui mantemos o reveal E o hover de fundo/borda funcionando juntos */
.mix-card.reveal {
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease),
    background 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

/* stagger dos itens dentro das grades */
.sound-grid .sound-card:nth-child(1) {
  transition-delay: 0.05s;
}
.sound-grid .sound-card:nth-child(2) {
  transition-delay: 0.15s;
}
.sound-grid .sound-card:nth-child(3) {
  transition-delay: 0.25s;
}
.mix-grid .mix-card:nth-child(1) {
  transition-delay: 0.05s;
}
.mix-grid .mix-card:nth-child(2) {
  transition-delay: 0.15s;
}
.mix-grid .mix-card:nth-child(3) {
  transition-delay: 0.25s;
}
.dates-list .date-row:nth-child(1) {
  transition-delay: 0.05s;
}
.dates-list .date-row:nth-child(2) {
  transition-delay: 0.15s;
}
.dates-list .date-row:nth-child(3) {
  transition-delay: 0.25s;
}
.gallery-grid .gallery-item:nth-child(1) {
  transition-delay: 0.05s;
}
.gallery-grid .gallery-item:nth-child(2) {
  transition-delay: 0.12s;
}
.gallery-grid .gallery-item:nth-child(3) {
  transition-delay: 0.19s;
}
.gallery-grid .gallery-item:nth-child(4) {
  transition-delay: 0.26s;
}
.gallery-grid .gallery-item:nth-child(5) {
  transition-delay: 0.33s;
}
.gallery-grid .gallery-item:nth-child(6) {
  transition-delay: 0.4s;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 980px) {
  .hero {
    padding-top: 108px;
    align-items: flex-end;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .about-label {
    position: static;
  }
  .sound-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 130px;
  }
  .date-row {
    grid-template-columns: 70px 1fr;
    row-gap: 6px;
  }
  .date-city,
  .date-link {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .hero-photo {
    object-position: center 12%;
  }
  .hero-scrim {
    background: linear-gradient(
      0deg,
      rgba(26, 14, 5, 0.9) 10%,
      rgba(26, 14, 5, 0.55) 45%,
      rgba(26, 14, 5, 0.15) 75%
    );
  }
  .vinyl-widget {
    right: 16px;
    bottom: 16px;
    width: 64px;
  }
  .vinyl-widget-tag {
    display: none;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 96px;
    gap: 12px;
  }
  .gallery-item--wide {
    grid-column: span 2;
  }
  .lightbox {
    padding: 20px;
  }
  .lightbox-close {
    top: 14px;
    right: 14px;
  }

  .nav-toggle[aria-expanded="true"] span {
    background-color: #ffffff;
  }
  .main-nav a {
    color: #ffffff;
  }
  .main-nav {
    position: fixed;
    inset: 0 0 auto auto;
    top: 0;
    right: 0;
    height: 100svh;
    width: min(78vw, 320px);
    background: #a25a3b;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.12);
  }
  .btn-line {
    color: #ffffff;
    border-color: #ffffff;
  }
  .main-nav.open {
    transform: translateX(0);
  }
  .nav-toggle {
    display: flex;
  }

  /* mixes no celular: sem disco, botão à esquerda, barra embaixo do título */
  .mix-card {
    grid-template-columns: auto 1fr;
    padding: 18px 20px;
    border-radius: 28px;
  }
  .mix-disc {
    display: none;
  }
  .mix-play {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  .mix-progress {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 12px;
  }
  /* em coluna, "flex: 1" controlaria a ALTURA e a barra sumia;
     por isso aqui ela ocupa a largura toda com altura fixa */
  .mix-bar {
    flex: none;
    width: 100%;
    height: 6px;
  }
  /* área de toque maior para o dedo */
  .mix-bar::before {
    inset: -16px 0;
  }
  /* sem hover no celular: a bolinha fica sempre visível */
  .mix-bar-fill::after {
    width: 14px;
    height: 14px;
    right: -7px;
    transform: translateY(-50%) scale(1);
  }
  .mix-time {
    text-align: right;
  }
}
