/* ============================================================
   NIMO — Núcleo de Ideias em Movimento
   Design tokens
   ============================================================ */
:root {
  --bg: #0b0b0d;
  --bg-alt: #131316;
  --bg-panel: #17171b;
  --text: #f3efe7;
  --text-muted: #9c968f;
  --text-faint: #6b6660;
  --accent: #c6a15b;
  --accent-soft: rgba(198, 161, 91, .14);
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --space-section: 128px;
  --space-block: 56px;
  --space-element: 24px;
  --radius: 2px;
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #0b0b0d; }

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

.kicker {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-block;
  margin-bottom: 18px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
  letter-spacing: .01em;
}

.section-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: var(--space-block);
}

.section-head {
  margin-bottom: var(--space-block);
  max-width: 640px;
}
.section-head.center { max-width: 680px; margin-left: auto; margin-right: auto; text-align: center; }

.section {
  padding: var(--space-section) 0;
  position: relative;
}
.section-alt { background: var(--bg-alt); }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.rule-short {
  width: 64px;
  height: 1px;
  background: var(--accent);
  margin: 22px auto 0;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 11, 13, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: .34em;
  color: var(--text);
}
.logo span {
  display: block;
  font-family: var(--font-sans);
  font-size: 9.5px;
  letter-spacing: .22em;
  color: var(--accent);
  margin-top: 4px;
  font-weight: 500;
}
.nav-links {
  display: none;
  gap: 40px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.nav-links a { transition: color .2s; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav-links a:hover { color: var(--accent); border-color: var(--accent); }

.menu-btn {
  background: none;
  border: 1px solid var(--border-strong);
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
}
.menu-btn svg { width: 18px; height: 18px; }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .3s ease, transform .3s ease;
}
.mobile-nav.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text);
}
.mobile-nav a:hover { color: var(--accent); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: saturate(1.02);
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,8,9,.55) 0%, rgba(8,8,9,.25) 30%, rgba(8,8,9,.55) 68%, rgba(8,8,9,.94) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 32px 96px;
  text-align: center;
}
.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(3.4rem, 11vw, 7.5rem);
  letter-spacing: .12em;
  color: #fff;
}
.hero-sub {
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.6vw, 14px);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 18px;
}
/* ============================================================
   Stats
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  color: var(--accent);
  font-weight: 500;
}
.stat-label {
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 10px;
}
@media (min-width: 700px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   Repertorio
   ============================================================ */
.rep-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 1px;
  grid-auto-flow: row dense;
  column-gap: 28px;
}
@media (min-width: 700px) {
  .rep-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .rep-grid { grid-template-columns: repeat(3, 1fr); }
}
.rep-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  line-height: 0;
}
.rep-card img {
  display: block;
  width: 100%; height: auto;
  transition: transform .7s cubic-bezier(.16,.8,.24,1), filter .7s;
}
.rep-card:hover img { transform: scale(1.06); filter: brightness(1.04); }
.rep-card .rep-fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6,6,7,.85) 100%);
  pointer-events: none;
}

/* ============================================================
   Artistas
   ============================================================ */
.artist-intro {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-bottom: var(--space-block);
}
.artist-intro img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.artist-intro::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,9,.15), rgba(8,8,9,.75));
}
.artist-intro-txt {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 36px;
  z-index: 2;
}
.artist-intro-txt h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.artist-intro-txt .and { color: var(--text-muted); }

.artist-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 56px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
}
.artist-block:last-child { margin-bottom: 0; }
@media (min-width: 860px) {
  .artist-block { grid-template-columns: 1fr 1.25fr; align-items: stretch; }
  .artist-block.reverse { direction: rtl; }
  .artist-block.reverse > * { direction: ltr; }
}
.artist-photo { position: relative; min-height: 220px; }
.artist-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.artist-copy { padding: 36px 36px 40px; }
.artist-copy p { color: var(--text-muted); margin: 0 0 16px; font-size: 15.5px; }
.artist-copy p b, .artist-copy p strong { color: var(--text); font-weight: 600; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tag {
  border: 1px solid var(--border-strong);
  padding: 7px 14px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--text-muted);
}

/* ============================================================
   Galeria
   ============================================================ */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn {
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: all .2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--text); }
.filter-btn.active { color: #0b0b0d; background: var(--accent); border-color: var(--accent); }

/* Mobile: horizontal scroll strip (avoids one long, tiring vertical stack) */
.gallery-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 14px;
  margin: 0 -4px;
  scrollbar-width: none;
}
.gallery-grid::-webkit-scrollbar { display: none; }
.gal-item {
  flex: 0 0 auto;
  width: 72vw;
  max-width: 300px;
  height: 360px;
  margin: 0;
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid var(--border);
  opacity: 1;
  transition: opacity .3s, transform .3s;
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gal-item:hover img { transform: scale(1.05); }
.gal-item.hidden-item { display: none; }

/* Desktop / tablet: switch to the packed masonry columns */
@media (min-width: 640px) {
  .gallery-grid {
    display: block;
    columns: 2;
    column-gap: 18px;
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
    margin: 0;
  }
  .gal-item {
    width: auto;
    max-width: none;
    height: auto;
    break-inside: avoid;
    margin-bottom: 18px;
  }
  .gal-item img { height: auto; object-fit: initial; }
}
@media (min-width: 1000px) { .gallery-grid { columns: 3; } }

.gallery-empty {
  text-align: center;
  color: var(--text-faint);
  font-family: var(--font-sans);
  font-size: 12.5px;
  letter-spacing: .08em;
  padding: 40px 0 4px;
}

/* ============================================================
   Imprensa
   ============================================================ */
.press-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 800px) {
  .press-grid { grid-template-columns: repeat(2, 1fr); }
}
.press-quote {
  border-left: 1px solid var(--accent);
  padding-left: 28px;
}
.press-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 22px;
}
.press-src { font-family: var(--font-sans); font-size: 12.5px; color: var(--accent); letter-spacing: .04em; }
.press-pub { font-family: var(--font-sans); font-size: 11px; color: var(--text-faint); letter-spacing: .16em; text-transform: uppercase; margin-top: 4px; }

/* ============================================================
   Videos
   ============================================================ */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 760px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
.video-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid var(--border);
}
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.video-card:hover img { transform: scale(1.05); }
.video-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6,6,7,.82) 100%);
}
.play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  background: rgba(11,11,13,.25);
  transition: background .2s, border-color .2s, transform .2s;
}
.video-card:hover .play-btn { border-color: var(--accent); transform: translate(-50%, -50%) scale(1.06); }
.play-btn svg { width: 16px; height: 16px; fill: #fff; margin-left: 3px; }
.video-title {
  position: absolute; left: 20px; bottom: 18px; z-index: 2;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
}

/* video modal */
.modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6,6,7,.92);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  max-width: 440px;
  padding: 44px 36px;
  text-align: center;
}
.modal-box h3 { font-size: 1.6rem; margin-bottom: 14px; }
.modal-box p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 26px; }
.modal-close {
  border: 1px solid var(--border-strong);
  background: none;
  color: var(--text);
  padding: 10px 22px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.modal-close:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   Contacto
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 700px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-card {
  border: 1px solid var(--border);
  padding: 36px;
  background: var(--bg-panel);
}
.contact-name { font-family: var(--font-sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); }
.contact-role { font-family: var(--font-display); font-size: 1.6rem; color: var(--accent); margin: 8px 0 18px; }
.contact-line {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-muted);
  transition: color .2s;
}
.contact-line:first-of-type { border-top: none; }
a.contact-line:hover { color: var(--accent); }
.contact-line svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--accent); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: 64px 0 40px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: .3em;
}
.footer-tag {
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 8px;
}
.footer-copy {
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 26px;
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* focus states */
a:focus-visible, button:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}
