/* G&G Music Studios A.I — Direção Cinematográfica Silenciosa */

/* ─── Tokens ──────────────────────────────────────────────── */
:root {
  --ink:       #0a0908;
  --ink-2:     #141210;
  --ink-3:     #1f1a15;
  --paper:     #f4f0e8;
  --paper-2:   rgba(244,240,232,0.65);
  --paper-3:   rgba(244,240,232,0.4);
  --paper-4:   rgba(244,240,232,0.12);
  --gold:      #c9a84c;
  --gold-dim:  rgba(201,168,76,0.4);
  --rule:      rgba(244,240,232,0.1);
  --rule-gold: rgba(201,168,76,0.25);
  --gold-intensity: 1;
  --hero-scale: 1;
}

/* ─── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body { min-height: 100vh; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── Tipografia ──────────────────────────────────────────── */
.serif   { font-family: 'Fraunces', Georgia, serif; font-weight: 300; font-style: italic; }
.serif-n { font-family: 'Fraunces', Georgia, serif; font-weight: 400; font-style: normal; }
.mono    { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.gold    { color: var(--gold); }
.muted   { color: var(--paper-3); }
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─── Layout ──────────────────────────────────────────────── */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 48px; }
hr    { border: 0; height: 1px; background: var(--rule); }

/* ─── Photo placeholder ───────────────────────────────────── */
.photo {
  position: relative; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--ink-2), var(--ink-3));
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.photo::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    45deg, transparent, transparent 10px,
    rgba(201,168,76,0.05) 10px, rgba(201,168,76,0.05) 11px
  );
}
.photo-letter {
  position: relative;
  font-family: 'Fraunces', serif; font-weight: 300; font-style: italic;
  color: var(--gold); line-height: 1; letter-spacing: -0.04em;
  opacity: calc(0.9 * var(--gold-intensity));
  user-select: none;
}
.photo-cap {
  position: absolute; bottom: 12px; left: 14px; right: 14px;
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  color: var(--paper-3); letter-spacing: 0.18em; text-transform: uppercase;
  display: flex; justify-content: space-between;
}

/* ─── Cursor customizado ──────────────────────────────────── */
.cursor {
  position: fixed; pointer-events: none; z-index: 10000;
  width: 10px; height: 10px; border: 1px solid var(--gold);
  border-radius: 50%; transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s;
  mix-blend-mode: difference;
}
.cursor.hover { width: 40px; height: 40px; background: rgba(201,168,76,0.15); }
@media (pointer: coarse) { .cursor { display: none; } body { cursor: auto; } }
body.has-cursor { cursor: none; }
body.has-cursor a, body.has-cursor button { cursor: none; }

/* ─── Reveal on scroll ────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.3,1), transform 0.9s cubic-bezier(.2,.7,.3,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ─── Hero ────────────────────────────────────────────────── */
#home {
  position: relative; min-height: 100vh;
  background: var(--ink); overflow: hidden;
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s; }
.hero-slide.on { opacity: 1; }

@keyframes heroTitleIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.hero-title {
  font-size: calc(clamp(72px, 12vw, 160px) * var(--hero-scale));
  animation: heroTitleIn 1.1s cubic-bezier(.2,.7,.3,1) both;
}

/* Progress bar */
.pbar { height: 1px; background: var(--paper-4); position: relative; }
.pbar::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--p, 0%); background: var(--gold); transition: width 0.2s linear;
}

/* ─── Nav ─────────────────────────────────────────────────── */
#gg-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
}
#nav-inner {
  padding: 18px 36px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-family: 'Inter', sans-serif; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav-link {
  opacity: 0.65;
  transition: opacity 0.2s, color 0.2s;
  font-size: 11px;
}
.nav-link:hover { opacity: 1; color: var(--gold); }
.nav-link.active { opacity: 1; color: var(--gold); }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px; border: 1px solid var(--gold); color: var(--gold);
  font-family: 'Inter', sans-serif; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
}
.btn:hover { background: var(--gold); color: var(--ink); }
.btn-ghost { border-color: var(--paper-4); color: var(--paper); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.iconbtn {
  width: 44px; height: 44px; border-radius: 22px;
  border: 1px solid var(--paper-4); color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.iconbtn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ─── Artistas grid ───────────────────────────────────────── */
.artist-card {
  position: relative; overflow: hidden;
  background: var(--ink-2); cursor: pointer;
  border: none; text-align: left;
  transition: transform 0.4s cubic-bezier(.2,.7,.3,1);
}
.artist-card .card-photo {
  position: absolute; inset: 0;
  transition: transform 0.8s cubic-bezier(.2,.7,.3,1);
}
.artist-card:hover .card-photo { transform: scale(1.08); }
.artist-card .card-arrow {
  opacity: 0; transition: opacity 0.25s;
}
.artist-card:hover .card-arrow { opacity: 1; }

/* ─── Platform pills ──────────────────────────────────────── */
.plat-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--paper-4);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--paper); transition: border-color 0.2s, color 0.2s;
}
.plat-pill:hover { border-color: var(--gold); color: var(--gold); }
.plat-pill.inline { padding: 6px 12px; }

/* ─── Modal (Hub) ─────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0;
  background: rgba(10,9,8,0.82); backdrop-filter: blur(14px);
  z-index: 500; opacity: 0; pointer-events: none; transition: opacity 0.35s;
}
.overlay.on { opacity: 1; pointer-events: auto; }

.modal {
  position: fixed; inset: 0; z-index: 600;
  pointer-events: none;
  display: flex; align-items: stretch; justify-content: center;
}
.modal.on { pointer-events: auto; }
.modal-panel {
  background: var(--ink); color: var(--paper);
  width: 100%; max-width: 100%; height: 100%;
  overflow-y: auto; overflow-x: hidden;
  transform: translateY(60px); opacity: 0;
  transition: transform 0.5s cubic-bezier(.2,.7,.3,1), opacity 0.4s;
}
.modal.on .modal-panel { transform: none; opacity: 1; }

/* Hub track row */
.hub-track {
  width: 100%; text-align: left;
  display: grid; grid-template-columns: 32px 1fr auto auto; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--rule);
  align-items: center; cursor: pointer;
  transition: color 0.2s; color: var(--paper);
}
.hub-track:hover { color: var(--gold); }
.hub-track.playing { color: var(--gold); }

/* ─── Drawer ──────────────────────────────────────────────── */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(520px, 94vw); background: var(--ink-2);
  z-index: 650; color: var(--paper);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(.2,.7,.3,1);
  overflow-y: auto; border-left: 1px solid var(--rule-gold);
}
.drawer.on { transform: none; }
.drawer-track {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--rule);
  cursor: pointer; transition: color 0.2s; color: var(--paper);
}
.drawer-track:hover { color: var(--gold); }

/* ─── Marquee ─────────────────────────────────────────────── */
#gg-marquee {
  background: var(--ink); padding: 60px 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.mtrack { display: flex; animation: mscroll 80s linear infinite; }
@keyframes mscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── Stats ───────────────────────────────────────────────── */
#gg-stats { background: var(--ink-2); padding: 64px 48px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.stat-cell {
  padding: 36px 28px;
  border-right: 1px solid var(--rule);
}
.stat-cell:last-child { border-right: none; }

/* ─── Footer ──────────────────────────────────────────────── */
#gg-footer {
  background: var(--ink-2); color: var(--paper);
  padding: 80px 48px 40px;
  border-top: 1px solid var(--rule-gold);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 60px;
}

/* ─── Misc ────────────────────────────────────────────────── */
.noscroll::-webkit-scrollbar { display: none; }
.noscroll { scrollbar-width: none; }

.filter-chip {
  padding: 8px 14px; border: 1px solid var(--rule);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--paper-2); background: transparent;
  transition: all 0.2s; cursor: pointer;
}
.filter-chip:hover { border-color: var(--gold-dim); color: var(--paper); }
.filter-chip.on {
  background: var(--gold); color: var(--ink);
  border-color: var(--gold);
}

/* ─── Utilitários ─────────────────────────────────────────── */
.hide-mobile  { display: initial; }
.hide-desktop { display: none; }

/* ─── Mobile Nav Menu (hamburger) ────────────────────────── */
.ham-bar {
  display: block; width: 20px; height: 1.5px;
  background: var(--paper);
  transition: transform 0.32s cubic-bezier(.2,.7,.3,1),
              opacity 0.2s;
}
#nav-hamburger {
  display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer; padding: 0; flex-shrink: 0;
}
#nav-mobile-menu {
  position: fixed; inset: 0; z-index: 490;
  background: var(--ink);
  display: flex; flex-direction: column;
  padding: 20px 28px 40px;
  overflow-y: auto;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.35s cubic-bezier(.2,.7,.3,1),
              transform 0.35s cubic-bezier(.2,.7,.3,1);
}
#nav-mobile-menu.on { opacity: 1; pointer-events: auto; transform: none; }
.mob-nav-link {
  display: block;
  font-family: Fraunces, serif; font-style: italic; font-weight: 300;
  font-size: clamp(28px, 9vw, 44px);
  color: var(--paper); letter-spacing: -0.02em; line-height: 1.2;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: color 0.2s;
}
.mob-nav-link:hover, .mob-nav-link:active { color: var(--gold); }
.mob-loja-link {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--gold); color: var(--ink);
  padding: 8px 18px; text-decoration: none;
  transition: opacity 0.2s;
}
.mob-loja-link:hover { opacity: 0.85; }

/* ─── Botão Loja — pulso dourado ────────────────────────── */
@keyframes loja-breathe {
  0%, 100% { box-shadow: 0 0 0 0px rgba(201,168,76,0); }
  50%       { box-shadow: 0 0 10px 3px rgba(201,168,76,0.35); }
}
@media (prefers-reduced-motion: no-preference) {
  .nav-loja { animation: loja-breathe 3s ease-in-out infinite; }
}

/* ─── Nota Musical Animada ──────────────────────────────── */
@keyframes note-spin {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}
@keyframes note-pause {
  0%, 100% { transform: rotate(0deg) scale(1); }
  40%      { transform: rotate(360deg) scale(1.12); }
  60%, 90% { transform: rotate(360deg) scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .note-icon {
    animation: note-pause 3s ease-in-out infinite;
    transform-origin: center;
  }
  #nav-drawer-btn:hover .note-icon,
  #mob-drawer-btn:hover .note-icon {
    animation: note-spin 0.6s cubic-bezier(.4,0,.2,1) forwards;
  }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE  ≤ 768px
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Layout base */
  .wrap         { padding: 0 18px; }
  .hide-mobile  { display: none !important; }
  .hide-desktop { display: initial !important; }

  /* Nav */
  #nav-inner {
    padding: 14px 18px;
    grid-template-columns: auto 1fr auto;
  }
  #nav-hamburger { display: flex; }

  /* ── Hero ── */

  /* Esconde elementos decorativos que quebram o layout estreito */
  #hero-side-label  { display: none !important; }
  #hero-scroll-hint { display: none !important; }
  #hero-pause-wrap  { display: none !important; }

  /* Hero bottom: padding reduzido */
  #home .hero-bottom { padding: 0 18px 16px !important; }

  /* Grid 3 colunas → coluna única empilhada */
  #hero-bottom-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
  }

  /* Esconde coluna esquerda (decorativa em mobile) */
  #hero-left { display: none !important; }

  /* Coluna central: alinha à esquerda */
  #hero-center { text-align: left !important; }

  /* Título: permite quebra de linha e fonte responsiva */
  .hero-title {
    white-space: normal !important;
    font-size: clamp(44px, 13vw, 72px) !important;
    line-height: 0.9 !important;
  }

  /* Bio: tamanho menor, sem margem central */
  #hero-bio {
    font-size: 13px !important;
    margin-top: 10px !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
  }

  /* Botão: alinha à esquerda */
  #hero-right {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
  }

  /* Progress strip: esconde rótulos de texto, mantém só as barras */
  #hero-progress-strip .hero-prog-btn > div:last-child { display: none !important; }
  #hero-progress-strip { margin-top: 4px !important; }

  /* Marquee: reduz fonte e corrige velocidade proporcional ao tamanho menor */
  .mtrack { animation-duration: 42s !important; }
  .mtrack span { font-size: 52px !important; padding: 0 24px !important; }

  /* ── AI Colab ── */

  /* Padding da seção */
  #aicolab { padding: 56px 18px !important; }

  /* Intro 2 colunas → 1 coluna */
  #aicolab-intro {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-bottom: 40px !important;
  }

  /* Steps: remove padding lateral do wrapper */
  #aicolab-steps-wrap { padding: 0 !important; }

  /* Steps grid: 1 coluna */
  #aicolab .steps-grid { grid-template-columns: 1fr !important; }

  /* ── Artistas section ── */

  /* Padding da seção */
  #artistas { padding: 56px 0 40px !important; }

  /* Header da seção: empilha título + chips */
  #artistas > div:first-child {
    grid-template-columns: 1fr !important;
    padding: 0 18px !important;
    margin-bottom: 28px !important;
    gap: 20px !important;
  }
  #genre-chips {
    justify-content: flex-start !important;
    max-width: 100% !important;
  }

  /* Grid de artistas: 2 colunas uniformes */
  #artists-grid-inner {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-rows: 180px !important;
    gap: 8px !important;
    padding: 0 18px !important;
  }
  #artists-grid-inner .artist-card {
    grid-column: span 1 !important;
    grid-row:    span 1 !important;
  }
  #artists-grid-inner .artist-card h3 {
    font-size: 16px !important;
  }

  /* ── Hub Modal ── */
  .hub-cover { height: 56vw !important; min-height: 260px !important; max-height: 420px !important; }

  /* Top bar do hub: menos padding, botões menores */
  .hub-cover > div:nth-child(2) { padding: 14px 18px !important; font-size: 9px !important; }
  .hub-cover > div:last-child   { padding: 0 18px 22px !important; }
  .hub-cover h1                 { font-size: clamp(44px, 12vw, 96px) !important; }

  /* Banner A.I. Colab */
  .hub-aicolab { padding: 12px 18px !important; flex-direction: column !important; gap: 6px !important; }

  /* Corpo 3 colunas → 1 coluna */
  .hub-body {
    grid-template-columns: 1fr !important;
    padding: 28px 18px !important;
    gap: 32px !important;
  }

  /* Platform pills no hub: menor */
  .plat-pill { padding: 6px 10px !important; font-size: 9px !important; }

  /* ── Stats ── */
  #gg-stats { padding: 40px 18px !important; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(4) { border-right: none; }

  /* ── Footer ── */
  #gg-footer   { padding: 48px 18px 32px !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }

  /* ── Sobre & Literatura ── */
  #sobre      { padding: 60px 18px !important; }
  #sobre .wrap > div      { grid-template-columns: 1fr !important; }
  #literatura .wrap > div { grid-template-columns: 1fr !important; }
}
