/* ==========================================================================
   TUPÃ TRANCE — ANHANGÁ 2026
   Design system: mystical forest-guardian meets bioluminescent psytrance.
   ========================================================================== */

/* Fonts are loaded via <link> in the HTML head (parallel with this CSS) —
   an @import here would only start downloading after the CSS itself arrives. */

:root {
  /* Colors */
  --bg: #130906;
  --bg-elevated: #1d0e09;
  --bg-card: #2a160f;
  --bg-card-hover: #392418;
  --fg: #fdf1cf;
  --fg-muted: #c19a7d;
  --fg-faint: #a97b60;

  --primary: #e95722;
  --primary-dim: #8f332f;
  --secondary: #c61c1a;
  --gold: #ffc814;
  --danger: #e23d2d;

  /* Legacy token names retained to avoid selector refactors; values are warm. */
  --magenta: #ea2018;
  --cyan: #ec6a44;
  --spore: #f39767;

  --border: rgba(253, 241, 207, 0.12);
  --border-strong: rgba(233, 87, 34, 0.42);
  --scrim: rgba(19, 9, 6, 0.82);

  --glow-primary: 0 0 24px rgba(233, 87, 34, 0.32);
  --glow-gold: 0 0 24px rgba(255, 200, 20, 0.26);
  --glow-secondary: 0 0 24px rgba(198, 28, 26, 0.28);
  --glow-magenta: 0 0 24px rgba(234, 32, 24, 0.3);
  --glow-cyan: 0 0 24px rgba(236, 106, 68, 0.3);

  /* Type */
  --font-display: 'Cinzel', serif;
  --font-accent: 'Bebas Neue', sans-serif;
  --font-body: 'Manrope', sans-serif;

  /* Spacing (standard density) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --space-9: 128px;

  /* Layout */
  --container: 1240px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur-base: 300ms;
  --dur-slow: 600ms;

  --z-nav: 100;
  --z-overlay: 200;
  --z-preloader: 300;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }

::selection { background: var(--primary); color: var(--bg); }

/* Focus visibility (a11y) */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.section { padding-block: var(--space-8); position: relative; }
@media (max-width: 900px) { .section { padding-block: var(--space-7); } }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-accent);
  line-height: 1;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.section-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--primary);
  box-shadow: var(--glow-primary);
}

.section-title {
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.section-sub {
  color: var(--fg-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: var(--space-6);
}

.section-head { margin-bottom: var(--space-6); }

/* ---------- Psychedelic overlays & motifs ---------- */
.section { isolation: isolate; }
.section > .container { position: relative; z-index: 1; }

/* Mycelium filaments — tickets section only. Three hand-placed variants (not a
   repeating tile) so no two corners read identically; dimmed for comfortable
   reading over the ticket copy. */
.ticket-myco {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.ticket-myco svg { position: absolute; mix-blend-mode: screen; }
.ticket-myco .myco-a {
  top: -34px; left: -26px;
  width: 260px; height: 260px;
  opacity: 0.2;
  color: var(--secondary);
  transform: rotate(-7deg);
}
.ticket-myco .myco-b {
  bottom: -54px; right: -36px;
  width: 300px; height: 300px;
  opacity: 0.15;
  color: var(--primary);
  transform: rotate(12deg) scaleX(-1);
}
.ticket-myco .myco-c {
  top: 38%; right: 6%;
  width: 160px; height: 160px;
  opacity: 0.13;
  color: var(--gold);
  transform: rotate(28deg);
}
@media (max-width: 640px) {
  .ticket-myco .myco-a { width: 200px; height: 200px; opacity: 0.16; }
  .ticket-myco .myco-b { width: 220px; height: 220px; opacity: 0.12; }
  .ticket-myco .myco-c { display: none; }
}

/* Guardian creatures — spectral fauna from the Anhangá key-art, placed behind
   section content (sections isolate + .container sits at z-index 1). Saturation
   is pulled down slightly so their cyan auras sit inside the site's palette. */
.guardian {
  position: absolute;
  z-index: 0;
  height: auto;
  pointer-events: none;
  user-select: none;
  filter: sepia(0.5) saturate(1.15) hue-rotate(330deg) brightness(0.82) drop-shadow(0 0 34px rgba(233, 87, 34, 0.18));
}
.guardian-coruja {
  top: 44px;
  right: max(-24px, calc((100vw - var(--container)) / 2 - 160px));
  width: clamp(180px, 22vw, 330px);
  opacity: 0.42;
}
.guardian-onca {
  bottom: 7%;
  left: max(-40px, calc((100vw - var(--container)) / 2 - 190px));
  width: clamp(160px, 18vw, 280px);
  opacity: 0.34;
  transform: scaleX(-1) rotate(-4deg);
}
.guardian-cobra {
  bottom: 26px;
  right: 3%;
  width: clamp(150px, 16vw, 260px);
  opacity: 0.4;
}
@media (prefers-reduced-motion: no-preference) {
  .guardian { animation: guardian-float 11s var(--ease-in-out) infinite; }
  .guardian-onca { animation: guardian-float-flip 13s var(--ease-in-out) infinite; }
}
@keyframes guardian-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes guardian-float-flip {
  0%, 100% { transform: scaleX(-1) rotate(-4deg) translateY(0); }
  50% { transform: scaleX(-1) rotate(-4deg) translateY(-10px); }
}
@media (max-width: 900px) {
  .guardian-coruja { width: 150px; opacity: 0.26; top: 20px; right: -18px; }
  .guardian-onca { display: none; }
  .guardian-cobra { width: 130px; opacity: 0.28; bottom: 10px; right: -8px; }
}

/* Mushroom-cap ornament used sparingly as a section-to-section transition */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding-block: var(--space-4);
}
.section-divider .divider-line {
  height: 1px;
  width: clamp(40px, 14vw, 160px);
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0.4;
}
.section-divider { color: var(--secondary); }
.section-divider .divider-mushroom {
  width: 30px; height: 30px;
  color: var(--gold);
  filter: drop-shadow(0 0 8px rgba(255, 200, 20, 0.45));
  flex-shrink: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .section-divider .divider-mushroom { animation: mushroom-pulse 5s var(--ease-in-out) infinite; }
}
/* Pulse via transform/opacity only — the static drop-shadow above is cached,
   while animating it forced a filter re-render every frame. */
@keyframes mushroom-pulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.js-off .reveal { opacity: 1; transform: none; }

/* Stagger children delays applied via JS inline style --d */
.reveal { transition-delay: var(--d, 0ms); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  min-height: 48px;
  border-radius: 999px;
  font-family: var(--font-accent);
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background var(--dur-base);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--primary);
  color: var(--bg);
  box-shadow: var(--glow-primary);
}
.btn-primary:hover { background: #f06b34; box-shadow: 0 0 36px rgba(233, 87, 34, 0.5); transform: translateY(-2px); }

.btn-ghost {
  border: 1.5px solid var(--border-strong);
  color: var(--fg);
  background: rgba(253, 241, 207, 0.03);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-gold {
  background: var(--gold);
  color: var(--bg);
  box-shadow: var(--glow-gold);
}
.btn-gold:hover { box-shadow: 0 0 36px rgba(255, 200, 20, 0.5); transform: translateY(-2px); }

.btn[disabled], .btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none !important;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  transition: all var(--dur-base) var(--ease-out);
}
.btn-icon:hover { color: var(--primary); border-color: var(--primary); box-shadow: var(--glow-primary); }
.btn-icon svg { width: 18px; height: 18px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: var(--z-nav);
  padding-block: var(--space-3);
  transition: background var(--dur-base) var(--ease-out), padding var(--dur-base), border-color var(--dur-base);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(19, 9, 6, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
  padding-block: var(--space-2);
}
/* On mobile, backdrop blur on a fixed bar re-blurs on every scroll frame — the
   single worst scroll cost. A slightly more opaque bar reads the same. */
@media (max-width: 900px) {
  .nav.is-scrolled {
    background: rgba(19, 9, 6, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.nav-logo span { color: var(--primary); }
.nav .nav-logo-image {
  width: auto;
  height: 36px;
  max-width: none;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}
.nav-links a {
  position: relative;
  padding-block: 4px;
  color: var(--fg-muted);
  transition: color var(--dur-base);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--primary);
  box-shadow: var(--glow-primary);
  transition: width var(--dur-base) var(--ease-out);
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--fg); }
.nav-links a:hover::after, .nav-links a:focus-visible::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: var(--space-3); }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: '';
  display: block;
  width: 20px; height: 1.5px;
  background: var(--fg);
  position: relative;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base);
}
.nav-toggle::before { position: absolute; transform: translateY(-6px); }
.nav-toggle::after { position: absolute; transform: translateY(6px); }
.nav-toggle.is-open span { opacity: 0; }
.nav-toggle.is-open::before { transform: rotate(45deg); }
.nav-toggle.is-open::after { transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 0;
    top: 0;
    flex-direction: column;
    justify-content: center;
    background: rgba(19, 9, 6, 0.99);
    font-size: 1.5rem;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    gap: var(--space-5);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--dur-slow) var(--ease-in-out), opacity var(--dur-base);
  }
  .nav-links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: inline-flex; z-index: 2; }
  .nav-cta .btn-primary { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 90px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 90% at 50% 45%, rgba(19, 9, 6, 0.08) 28%, rgba(19, 9, 6, 0.5) 68%, rgba(19, 9, 6, 0.96) 100%),
    linear-gradient(180deg, rgba(19, 9, 6, 0.68) 0%, rgba(19, 9, 6, 0.05) 28%, rgba(19, 9, 6, 0.18) 66%, rgba(29, 14, 9, 0.94) 100%),
    radial-gradient(75% 55% at 50% 78%, rgba(233, 87, 34, 0.2), transparent 72%),
    url('../img/design/fundo-mata-em-brasa-desktop.png') center center / cover no-repeat,
    var(--bg);
}
@media (max-width: 900px) {
  .hero-bg {
    background:
      radial-gradient(120% 90% at 50% 45%, rgba(19, 9, 6, 0.08) 28%, rgba(19, 9, 6, 0.5) 68%, rgba(19, 9, 6, 0.96) 100%),
      linear-gradient(180deg, rgba(19, 9, 6, 0.68) 0%, rgba(19, 9, 6, 0.05) 28%, rgba(19, 9, 6, 0.18) 66%, rgba(29, 14, 9, 0.94) 100%),
      radial-gradient(75% 55% at 50% 78%, rgba(233, 87, 34, 0.2), transparent 72%),
      url('../img/design/fundo-mata-em-brasa.png') center center / auto 100% no-repeat,
      url('../img/design/fundo-mata-em-brasa.png') center center / cover no-repeat,
      var(--bg);
  }
}
/* Signature element: slow bioluminescent mycelial terrain, WebGL-rendered.
   Masked so it glows at the horizon and fades before it reaches the headline. */
.hero-gl {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.35) 38%, black 68%, black 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.35) 38%, black 68%, black 100%);
}
.hero-eye {
  display: none;
  animation: none;
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  width: min(60vw, 640px);
  height: auto;
  aspect-ratio: 1;
  color: var(--gold);
  opacity: 0.07;
  filter: blur(1px);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-eye { animation: none; }
}
@keyframes eye-breathe {
  0%, 100% { opacity: 0.05; transform: translateX(-50%) scale(0.99); }
  50% { opacity: 0.11; transform: translateX(-50%) scale(1.02); }
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 84%, var(--bg-elevated) 100%),
    radial-gradient(120% 90% at 50% 40%, transparent 40%, var(--bg) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.hero-kicker {
  font-family: var(--font-accent);
  letter-spacing: 0.35em;
  color: var(--gold);
  text-shadow: var(--glow-gold);
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  text-transform: uppercase;
}
/* Hero title art — official Anhangá lockup (branches + embers). The ember palette
   is welcomed by the gold "fire-eye" accent already in the system; a soft gold
   drop-shadow anchors it to the page instead of the artwork's original red. */
.hero-title-art {
  position: relative;
  margin-inline: auto;
  line-height: 0;
}
.hero-title-art img {
  /* Static drop-shadow: rendered once and cached. Animating the filter itself
     (the old ember-breathe) re-rendered the shadow every frame. */
  width: min(88vw, 600px);
  height: auto;
  filter: drop-shadow(0 10px 28px rgba(103, 32, 17, 0.35));
}
/* The breathing ember glow lives on a gradient layer whose only animated
   property is opacity — GPU-composited, near-zero cost, same look. */
.hero-title-art::before {
  content: '';
  position: absolute;
  inset: -60px -80px;
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 52%, rgba(255, 200, 20, 0.14), rgba(233, 87, 34, 0.08) 55%, transparent 75%);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-title-art::before { animation: ember-breathe 8s var(--ease-in-out) infinite; }
}
@keyframes ember-breathe {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-5);
  color: var(--fg-muted);
  text-shadow: 0 2px 10px rgba(19, 9, 6, 0.95);
  font-size: 0.98rem;
  margin-top: var(--space-2);
}
.hero-meta div { display: flex; align-items: center; gap: var(--space-2); }
.hero-meta svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

/* Countdown */
.countdown {
  display: grid;
  grid-auto-flow: column;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 76px;
  padding: var(--space-3) var(--space-2);
  /* No backdrop-filter here: blurring the two animating hero canvases behind
     these cards forced a re-blur every frame. Opaque-ish bg looks the same. */
  background: rgba(42, 22, 15, 0.88);
  border: 1px solid rgba(143, 51, 47, 0.55);
  border-radius: var(--radius-md);
}
.countdown-num {
  font-family: var(--font-accent);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--primary);
  text-shadow: var(--glow-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
@media (max-width: 480px) {
  .countdown { gap: var(--space-2); }
  .countdown-unit { min-width: 60px; padding: var(--space-2); }
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
  padding-block: var(--space-3);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
  gap: var(--space-6);
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  font-family: var(--font-accent);
  letter-spacing: 0.1em;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
}
.marquee-item .dot { color: var(--gold); }
.marquee-item strong { color: var(--fg); }

/* ---------- Videos ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 900px) { .video-grid { grid-template-columns: 1fr; } }

.video-card {
  position: relative;
  z-index: 0;
  aspect-ratio: 9 / 14;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(198, 28, 26, 0.2), transparent 60%),
    radial-gradient(120% 80% at 90% 100%, rgba(233, 87, 34, 0.18), transparent 60%),
    var(--bg-card);
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base);
}
.video-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.video-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(19, 9, 6, 0.35) 0%, rgba(19, 9, 6, 0.12) 45%, rgba(19, 9, 6, 0.82) 100%),
    radial-gradient(120% 80% at 20% 0%, rgba(198, 28, 26, 0.16), transparent 60%),
    radial-gradient(120% 80% at 90% 100%, rgba(233, 87, 34, 0.14), transparent 60%);
}
.video-thumb {
  position: absolute;
  inset: -12px;
  z-index: -1;
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(0.6) saturate(1.05);
  transition: filter var(--dur-base) var(--ease-out);
}
.video-card:hover .video-thumb { filter: blur(14px) brightness(0.68) saturate(1.1); }
.video-card iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1;
}
.video-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.video-play-btn {
  width: 66px; height: 66px;
  border-radius: 999px;
  background: rgba(19, 9, 6, 0.62);
  border: 1.5px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  box-shadow: var(--glow-primary);
  transition: transform var(--dur-base) var(--ease-out);
}
.video-card:hover .video-play-btn { transform: scale(1.1); }
.video-play-btn svg { width: 24px; height: 24px; margin-left: 3px; }
.video-caption {
  position: relative;
  z-index: 1;
  padding: var(--space-4);
  width: 100%;
  background: linear-gradient(0deg, rgba(19,9,6,0.88), transparent);
}
.video-caption h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-transform: none;
}
.video-caption p { font-size: 0.85rem; color: var(--fg-muted); margin-top: 2px; }

/* ---------- Lineup ---------- */
.lineup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
@media (max-width: 1024px) { .lineup-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lineup-grid { grid-template-columns: 1fr; } }

.artist-card {
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  transition: border-color var(--dur-base), background var(--dur-base), transform var(--dur-base) var(--ease-out);
}
.artist-card:hover { border-color: var(--primary); background: var(--bg-card-hover); transform: translateY(-3px); }
.artist-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.artist-flag { margin-left: var(--space-1); font-size: 0.9em; }
.artist-socials { display: flex; gap: var(--space-2); flex-shrink: 0; }
.artist-socials .btn-icon { width: 38px; height: 38px; }
.artist-socials .btn-icon svg { width: 16px; height: 16px; }

.lineup-note {
  margin-top: var(--space-4);
  font-size: 0.85rem;
  color: var(--fg-faint);
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  max-width: 720px;
}
.lineup-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--gold); }

/* ---------- Timeline (2025 schedule) ---------- */
.tl-event-card {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  margin-bottom: var(--space-5);
}
.tl-event-card h3 { font-size: 1.3rem; text-transform: none; margin-bottom: 4px; }
.tl-event-card p { color: var(--fg-muted); font-size: 0.92rem; }

/* Each day gets its own connector line, inset from the group's own top/bottom
   edge by half a row's height so it starts and ends exactly on the first and
   last dot — it never bleeds into the day-label gap between groups. */
.timeline {
  /* Skip rendering the 28-row schedule until it approaches the viewport. */
  content-visibility: auto;
  contain-intrinsic-size: auto 1600px;
}
.tl-day-group {
  position: relative;
  padding-left: 28px;
  --tl-row-half: 23px;
}
.tl-day-group::before {
  content: '';
  position: absolute;
  left: 4px;
  top: var(--tl-row-half);
  bottom: var(--tl-row-half);
  width: 1px;
  background: linear-gradient(var(--primary), var(--secondary) 50%, var(--gold));
  opacity: 0.4;
}
.tl-row {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: background var(--dur-base);
}
.tl-row:hover { background: rgba(253, 241, 207, 0.03); }
.tl-row::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 50%;
  transform: translateY(-50%);
  width: 9px; height: 9px;
  border-radius: 999px;
  background: var(--bg);
  border: 2px solid var(--primary);
}
.tl-time {
  font-family: var(--font-accent);
  font-size: 1.05rem;
  color: var(--primary);
  letter-spacing: 0.04em;
}
.tl-artist { font-weight: 600; font-size: 0.98rem; }
.tl-artist .tl-flag { color: var(--fg-muted); font-weight: 400; margin-left: 4px; }
.tl-tag {
  justify-self: end;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--fg-muted);
  white-space: nowrap;
}
.tl-day-label {
  font-family: var(--font-accent);
  letter-spacing: 0.12em;
  color: var(--gold);
  text-shadow: var(--glow-gold);
  font-size: 1.1rem;
  margin: var(--space-5) 0 var(--space-2);
  text-transform: uppercase;
}
.timeline .tl-day-label:first-child { margin-top: 0; }

@media (max-width: 560px) {
  .tl-row { grid-template-columns: 60px 1fr; }
  .tl-tag { grid-column: 1 / -1; justify-self: start; margin-top: 2px; }
  .tl-day-group { --tl-row-half: 45px; }
}

/* ---------- Tickets ---------- */
.ticket-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.ticket-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ticket-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .ticket-grid, .ticket-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ticket-grid, .ticket-grid-2, .ticket-grid-3 { grid-template-columns: 1fr; } }

.ticket-subhead {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  margin: var(--space-6) 0 var(--space-4);
}
.ticket-subhead span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--fg-muted);
  margin-top: 2px;
}

.ticket-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-5) var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  position: relative;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base);
}
.ticket-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.ticket-card.is-featured {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(255, 200, 20, 0.25), var(--glow-gold);
}
.ticket-badge {
  position: absolute;
  top: -13px; left: var(--space-4);
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-accent);
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  padding: 4px 14px;
  border-radius: 999px;
}
.ticket-tier { font-family: var(--font-accent); font-size: 1.3rem; letter-spacing: 0.06em; text-transform: uppercase; }
.ticket-desc { color: var(--fg-muted); font-size: 0.85rem; margin-top: 4px; min-height: 40px; }
.ticket-price {
  margin-top: var(--space-4);
  font-family: var(--font-accent);
  font-size: 2rem;
  color: var(--primary);
}
.ticket-price span { font-size: 0.9rem; color: var(--fg-faint); font-family: var(--font-body); }
.ticket-card .btn { margin-top: var(--space-4); width: 100%; }
/* Ember date lockup from the key-art, restating date + venue at the point of
   conversion. Slightly desaturated so the fire tones read as an accent. */
.ticket-head { position: relative; }
.ticket-date-art {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(3deg);
  width: clamp(180px, 20vw, 280px);
  height: auto;
  filter: drop-shadow(0 6px 22px rgba(143, 51, 47, 0.3));
}
@media (max-width: 900px) {
  .ticket-date-art {
    position: static;
    transform: rotate(-2deg);
    width: 200px;
    margin-top: var(--space-3);
  }
}

.ticket-note {
  margin-top: var(--space-6);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--fg-muted);
  font-size: 0.9rem;
}
.ticket-note svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--gold); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  /* Skip layout/paint of the 24 tiles until the section approaches the viewport. */
  content-visibility: auto;
  contain-intrinsic-size: auto 1400px;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.gallery-tile {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-tile:nth-child(4n+1) { background: radial-gradient(120% 100% at 20% 10%, rgba(233,87,34,0.26), transparent 65%), var(--bg-card); }
.gallery-tile:nth-child(4n+2) { background: radial-gradient(120% 100% at 80% 20%, rgba(198,28,26,0.26), transparent 65%), var(--bg-card); }
.gallery-tile:nth-child(4n+3) { background: radial-gradient(120% 100% at 30% 90%, rgba(255,200,20,0.22), transparent 65%), var(--bg-card); }
.gallery-tile:nth-child(4n+4) { background: radial-gradient(120% 100% at 90% 90%, rgba(143,51,47,0.24), transparent 65%), var(--bg-card); }
.gallery-tile:nth-child(3n) { aspect-ratio: 4/5; }
.gallery-tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(19,9,6,0.72));
}
.gallery-tile-label {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: var(--fg-faint);
  text-align: center;
  padding: var(--space-3);
  transition: color var(--dur-base);
}
.gallery-tile-label svg { width: 26px; height: 26px; opacity: 0.7; }
.gallery-tile-label span { font-size: 0.78rem; letter-spacing: 0.03em; }
.gallery-tile:hover { transform: none; }
.gallery-tile:hover .gallery-tile-label { color: var(--primary); }
.gallery-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform var(--dur-base);
}
.gallery-tile:hover img { transform: scale(1.06); }

/* ---------- About teaser (home) ---------- */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
}
@media (max-width: 900px) { .about-teaser { grid-template-columns: 1fr; gap: var(--space-5); } }
.about-visual {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(90% 70% at 30% 20%, rgba(198,28,26,0.28), transparent 60%),
    radial-gradient(90% 70% at 80% 90%, rgba(233,87,34,0.26), transparent 60%),
    var(--bg-card);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.about-visual svg { width: 34%; color: var(--gold); opacity: 0.85; filter: drop-shadow(0 0 30px rgba(240,184,61,0.35)); }
/* Key-art composition: dark forest plate + spectral deer guardian. */
.about-visual-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.55) saturate(1.35) hue-rotate(330deg) brightness(0.72);
}
.about-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 80% at 50% 45%, transparent 40%, rgba(19, 9, 6, 0.62) 100%);
  pointer-events: none;
}
.about-visual-cervo {
  position: relative;
  z-index: 1;
  width: 52%;
  height: auto;
  filter: sepia(0.45) saturate(1.12) hue-rotate(330deg) brightness(0.88) drop-shadow(0 18px 40px rgba(19, 9, 6, 0.68)) drop-shadow(0 0 38px rgba(233, 87, 34, 0.16));
}
@media (prefers-reduced-motion: no-preference) {
  .about-visual-cervo { animation: guardian-float 12s var(--ease-in-out) infinite; }
}
.about-copy p { color: var(--fg-muted); margin-bottom: var(--space-3); max-width: 54ch; }
.about-copy .btn { margin-top: var(--space-2); }
/* Pull-quote line inside the Anhangá legend copy — the myth's moral, singled out. */
.about-copy .legend-highlight {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold);
  text-shadow: var(--glow-gold);
  max-width: 46ch;
  margin-block: var(--space-4);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: var(--space-6);
  background: var(--bg-elevated);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
}
.footer-brand { max-width: 320px; }
.footer-brand .nav-logo { margin-bottom: var(--space-3); }
.footer-brand p { color: var(--fg-muted); font-size: 0.9rem; }
.footer-socials { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.footer-cols { display: flex; gap: var(--space-7); flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: var(--space-3);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col a { color: var(--fg-muted); font-size: 0.92rem; transition: color var(--dur-base); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  color: var(--fg-faint);
  font-size: 0.82rem;
}

/* ---------- About page (sobre.html) specific ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 160px;
  padding-bottom: var(--space-7);
  text-align: center;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(233, 87, 34, 0.14), transparent 70%),
    linear-gradient(180deg, #130906 0%, #1d0e09 100%);
}
/* Dark-forest key-art plate under the page-hero copy, faded into the base bg. */
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.5;
  filter: sepia(0.6) saturate(1.3) hue-rotate(330deg) brightness(0.62);
  -webkit-mask-image: linear-gradient(180deg, black 45%, transparent 100%);
  mask-image: linear-gradient(180deg, black 45%, transparent 100%);
}

/* One continuous forest plate behind the WHOLE Sobre page.
   The old .page-hero was a self-contained image that ended abruptly where the
   next .section (base bg) began — that seam is the visible horizontal line.
   Here the single fundo-floresta.webp is moved to a body-level layer that spans
   from the top of the page down through the first content sections, then fades
   over a wide band into the solid --bg well before the footer. The per-hero
   copy is hidden so there is never a second, differently-framed image. */
.page-sobre { position: relative; }
/* The photo — the only visible copy of fundo-floresta.webp on this page. */
.page-sobre::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: max(1200px, 165vw);
  z-index: -2;
  background: url("../img/design/fundo-floresta.webp") top center / cover no-repeat;
  filter: sepia(0.6) saturate(1.3) hue-rotate(330deg) brightness(0.62);
  /* Fade the photo out over a wide band so it dissolves into --bg with no seam
     and no edge landing on a section boundary. */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 94%);
  mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 94%);
  pointer-events: none;
}
/* Continuous brown-charcoal overlay for text legibility, fading with the photo. */
.page-sobre::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: max(1200px, 165vw);
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(19, 9, 6, 0.42) 0%,
    rgba(19, 9, 6, 0.42) 45%,
    rgba(19, 9, 6, 0) 90%);
  pointer-events: none;
}
/* Retire the per-hero image (no second copy) and let the hero sit transparent
   over the page-wide plate, keeping only its ember glow. */
.page-sobre .page-hero-bg { display: none; }
.page-sobre .page-hero {
  background: radial-gradient(60% 60% at 50% 0%, rgba(233, 87, 34, 0.14), transparent 70%);
}
/* Red-forest variant of the legend card: dimmed + partially desaturated so the
   ember red reads as Anhangá's fire, not as a palette break. */
.about-visual-lenda .about-visual-bg { filter: saturate(0.82) brightness(0.72); }
.about-visual-lenda::after {
  background: radial-gradient(90% 80% at 50% 45%, transparent 35%, rgba(19, 9, 6, 0.68) 100%);
}
.page-hero .hero-kicker { margin-bottom: var(--space-3); }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); text-transform: uppercase; }

.placeholder-block {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  color: var(--fg-faint);
  font-size: 0.95rem;
  line-height: 1.75;
}
.placeholder-block strong { color: var(--fg-muted); }

/* Plain prose flow for finished long-form copy (as opposed to the dashed
   placeholder-block used for still-unwritten sections). */
.prose-block { max-width: 74ch; }
.prose-block p { color: var(--fg-muted); font-size: 1rem; line-height: 1.75; margin-bottom: var(--space-3); }
.prose-block p:last-child { margin-bottom: 0; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid-item {
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.about-grid-item svg { width: 28px; height: 28px; color: var(--primary); margin-bottom: var(--space-3); }
.about-grid-item h3 { font-size: 1.05rem; text-transform: none; font-family: var(--font-body); font-weight: 700; margin-bottom: var(--space-2); }
.about-grid-item p { color: var(--fg-muted); font-size: 0.92rem; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-preloader);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--dur-slow) var(--ease-out), visibility var(--dur-slow);
}
.preloader svg {
  width: 64px; height: 64px;
  color: var(--primary);
  animation: pulse-glow 1.6s var(--ease-in-out) infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; filter: drop-shadow(0 0 6px rgba(233,87,34,0.3)); transform: scale(0.94); }
  50% { opacity: 1; filter: drop-shadow(0 0 22px rgba(233,87,34,0.6)); transform: scale(1); }
}
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.js-off .preloader { display: none; }

/* Skip link */
.skip-link {
  position: fixed;
  top: -100px;
  left: var(--space-3);
  z-index: 1000;
  background: var(--primary);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: top var(--dur-base);
}
.skip-link:focus { top: var(--space-3); }
