/* ============================================================
   OVERMUSIC — style.css
   ------------------------------------------------------------
   Conceito: a página inteira é uma partitura.
   • Cada seção abre com uma faixa de pauta (5 linhas)
   • O número do movimento é uma "letra de ensaio" (caixa)
   • Os serviços são notas sentadas nas linhas da pauta
   • As seções claras são o papel de partitura; as verdes, o neon aceso

   Índice
    1. Tokens
    2. Base
    3. Utilitários e acessibilidade
    4. Elementos globais (barra, cursor, grão, régua de dinâmica)
    5. Header
    6. Botões, tags e títulos
    7. Hero
    8. Marquee
    9. Manifesto
   10. Diferença
   11. Serviços (a pauta)
   12. Processo (compassos)
   13. Solução Over
   14. Sobre
   15. Perguntas
   16. Contato
   17. Rodapé
   18. Comparador antes/depois (desativado no HTML)
   19. Responsivo
   20. Movimento reduzido
   ============================================================ */

/* ------------------------------------------------------------
   1. TOKENS
   Dentro de .light e .hot os tokens de cor INVERTEM: todo
   componente que usa --bg, --fg, --mut, --line e --ac se adapta
   sozinho ao papel claro ou ao verde neon.
   ------------------------------------------------------------ */
:root {
  --bg: #070c09;
  --fg: #f3f0e8;
  --mut: rgba(243, 240, 232, .62);
  --line: rgba(243, 240, 232, .14);
  --line-2: rgba(243, 240, 232, .34);

  --music: #19e276;
  --glow: rgba(25, 226, 118, .55);
  --ink: #04120a;
  --paper: #f3f0e8;
  --err: #ff5a4d;

  --ac: var(--music);          /* cor de destaque do contexto */
  --tempo: var(--music);       /* cor das indicações de andamento */

  --dyn: .6;                   /* 0 a 1, escrito pelo JS conforme a dinâmica da seção */

  --f-d: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --f-s: 'Instrument Serif', 'Times New Roman', serif;
  --f-m: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --f-n: 'Noto Music', 'Segoe UI Symbol', 'Apple Symbols', serif;

  --gut: clamp(20px, 4vw, 56px);
  --w: min(1360px, 100% - var(--gut) * 2);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --back: cubic-bezier(.34, 1.56, .64, 1);
}

.light {
  --bg: var(--paper);
  --fg: var(--ink);
  --mut: rgba(4, 18, 10, .66);
  --line: rgba(4, 18, 10, .14);
  --line-2: rgba(4, 18, 10, .42);
  --ac: var(--ink);
  --tempo: #0b7d3e;
  --glow: rgba(4, 18, 10, 0);
  background: var(--bg);
  color: var(--fg);
}

.hot {
  --bg: var(--music);
  --fg: var(--ink);
  --mut: rgba(4, 18, 10, .72);
  --line: rgba(4, 18, 10, .2);
  --line-2: rgba(4, 18, 10, .5);
  --ac: var(--ink);
  --tempo: var(--ink);
  --glow: rgba(4, 18, 10, 0);
  background: var(--bg);
  color: var(--fg);
}

/* ------------------------------------------------------------
   2. BASE
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--music) var(--bg);
}
/* Regras exigidas pelo Lenis (rolagem suave) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.5 var(--f-d);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
svg, canvas { display: block; }
::selection { background: var(--music); color: var(--ink); }

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

/* ------------------------------------------------------------
   3. UTILITÁRIOS E ACESSIBILIDADE
   ------------------------------------------------------------ */
.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed; left: 12px; top: -80px; z-index: 400;
  padding: 12px 18px;
  background: var(--music); color: var(--ink);
  font: 700 .8rem var(--f-m);
  transition: top .2s;
}
.skip:focus { top: 12px; }

[aria-disabled="true"] { opacity: .55; pointer-events: none; }

.wrap { width: var(--w); margin-inline: auto; }

/* Revelação ao rolar: só esconde quando o JS está ativo (html.ready) */
.ready .rv:not(.in) { opacity: 0; transform: translateY(44px); }
.rv { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.vs .vr:nth-child(2) { transition-delay: .06s; }
.vs .vr:nth-child(3) { transition-delay: .12s; }
.vs .vr:nth-child(4) { transition-delay: .18s; }
.steps li:nth-child(3n + 2) { transition-delay: .08s; }
.steps li:nth-child(3n) { transition-delay: .16s; }

/* ------------------------------------------------------------
   4. ELEMENTOS GLOBAIS
   ------------------------------------------------------------ */

/* Barra de progresso: um "hairpin" de crescendo (<) que se abre conforme a rolagem */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 110;
  height: 9px;
  background: var(--music);
  transform: scaleX(0); transform-origin: 0 50%;
  clip-path: polygon(0 46%, 100% 0, 100% 100%, 0 54%);
  pointer-events: none;
}

/* Grão de filme: dá a textura "suja" de estúdio (SVG estático, quase sem custo) */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 250;
  pointer-events: none;
  opacity: .075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* Cursor customizado: só com mouse e sem preferência por menos movimento */
.cur { display: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .ready, .ready a, .ready button, .ready summary, .ready label { cursor: none; }
  .cur {
    display: block;
    position: fixed; top: 0; left: 0; z-index: 300;
    width: 18px; height: 18px; margin: -9px 0 0 -9px;
    border-radius: 50%;
    background: #fff;
    mix-blend-mode: difference;
    pointer-events: none;
    transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease);
  }
  .cur.h { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
}

/* Régua de dinâmica (pp … ff): a marca acesa mostra "o volume" da seção atual */
.dyn {
  position: fixed; right: clamp(10px, 1.3vw, 22px); top: 50%; z-index: 90;
  display: flex; flex-direction: column; gap: 11px;
  transform: translateY(-50%);
  color: #fff;
  pointer-events: none;
  font: italic 600 .95rem/1 var(--f-s);
  transition: color .35s;
}
.dyn[data-tone="light"], .dyn[data-tone="hot"] { color: var(--ink); }
.dyn span {
  display: block; text-align: right;
  opacity: .28;
  transition: opacity .4s, transform .5s var(--ease);
}
.dyn span.on { opacity: 1; transform: translateX(-8px) scale(1.55); }
.dyn span::after {
  content: ''; display: block;
  width: 0; height: 1px; margin: 4px 0 0 auto;
  background: currentColor;
  transition: width .5s var(--ease);
}
.dyn span.on::after { width: 100%; }

/* ------------------------------------------------------------
   5. HEADER
   ------------------------------------------------------------ */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--gut);
  --hc: #fff;            /* cor do texto do header (muda com o fundo) */
  --hbg: var(--bg);      /* cor do fundo sob o header, usada nos botões cheios */
  color: var(--hc);
  transition: transform .5s var(--ease), color .35s;
}
header[data-tone="light"] { --hc: var(--ink); --hbg: var(--paper); }
header[data-tone="hot"] { --hc: var(--ink); --hbg: var(--music); }
header.off { transform: translateY(-110%); }

.brand {
  display: inline-flex; align-items: center; gap: .32em;
  font: 800 1.3rem/1 var(--f-d); font-stretch: 75%;
  letter-spacing: -.02em;
}
.brand .mk { flex: none; }
.brand b {
  font: italic 400 1.45em/1 var(--f-s);
  letter-spacing: 0; text-transform: lowercase;
}

header nav { display: flex; gap: clamp(18px, 2.6vw, 38px); }
header nav a {
  position: relative;
  font: 400 .74rem/1 var(--f-m);
  letter-spacing: .1em; text-transform: uppercase;
  opacity: .72;
  transition: opacity .25s;
}
header nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .45s var(--ease);
}
header nav a:hover, header nav a[aria-current] { opacity: 1; }
header nav a:hover::after, header nav a[aria-current]::after { transform: scaleX(1); }

.hd-r { display: flex; align-items: center; gap: 10px; }

.pill, .snd {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border: 1.5px solid currentColor; border-radius: 99px;
  font: 700 .72rem/1 var(--f-m);
  letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
  transition: background .25s, color .25s;
}
.pill { background: var(--hc); color: var(--hbg); border-color: var(--hc); }
.pill:hover { background: transparent; color: var(--hc); }
.snd:hover, .snd.on { background: var(--hc); color: var(--hbg); }

/* Botão Som: as barrinhas são um medidor de nível ligado ao áudio real (--h vem do JS) */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i {
  display: block; width: 3px;
  height: calc(var(--h, var(--d, .4)) * 14px);
  background: currentColor; border-radius: 1px;
  transition: height .09s linear;
}
.eq i:nth-child(1) { --d: .35; }
.eq i:nth-child(2) { --d: .85; }
.eq i:nth-child(3) { --d: .55; }
.eq i:nth-child(4) { --d: .95; }
.snd.load .eq i { animation: eqload .7s ease-in-out infinite alternate; }
.snd.load .eq i:nth-child(2) { animation-delay: .12s; }
.snd.load .eq i:nth-child(3) { animation-delay: .24s; }
.snd.load .eq i:nth-child(4) { animation-delay: .36s; }
.snd.err { animation: shake .35s; }
@keyframes eqload { from { height: 3px; } to { height: 14px; } }
@keyframes shake {
  25% { transform: translateX(-4px); } 75% { transform: translateX(4px); }
}

/* ------------------------------------------------------------
   6. BOTÕES, TAGS E TÍTULOS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 17px 30px;
  border: 2px solid currentColor; border-radius: 99px;
  font: 700 .8rem/1 var(--f-m);
  letter-spacing: .07em; text-transform: uppercase;
  white-space: nowrap;
  transition: transform .3s var(--back), background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn.a { background: var(--music); color: var(--ink); border-color: var(--music); }
.btn.a:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn.k { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.k:hover { background: transparent; color: var(--ink); }
.hot .btn.k:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.emp .btn.k { background: transparent; color: var(--music); border-color: var(--music); }
.emp .btn.k:hover { background: var(--music); color: var(--ink); }

/* Tag de seção: letra de ensaio (caixa com o número do movimento) + nome + andamento */
.tag {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: clamp(26px, 4vw, 52px);
  font: 400 .82rem/1 var(--f-m);
  color: var(--mut);
}
.tag::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.mov {
  display: inline-grid; place-items: center;
  min-width: 2.7em; height: 2.3em; padding: 0 .7em;
  border: 1.5px solid var(--fg);
  font: 700 .82rem/1 var(--f-m);
  color: var(--fg);
}
.tag i {
  font: italic 400 1.55rem/1 var(--f-s);
  color: var(--tempo);
}

/* Títulos: condensado, caixa-alta, com o contraponto em serifa itálica */
.big, .huge, h1, .fm {
  font-family: var(--f-d); font-weight: 800; font-stretch: 75%;
  text-transform: uppercase;
  letter-spacing: -.025em; line-height: .9;
  text-wrap: balance;
}
.big { font-size: clamp(2.5rem, 7vw, 7rem); }
.huge { font-size: clamp(3.2rem, 12.4vw, 13rem); line-height: .84; }
.big em, .huge em, h1 em {
  font-family: var(--f-s); font-style: italic; font-weight: 400; font-stretch: 100%;
  text-transform: none; letter-spacing: -.01em;
  font-size: 1.1em;
  color: var(--ac);
}
.big em, .huge em { text-shadow: 0 0 calc(var(--dyn) * 46px) var(--glow); }
.light .big em, .light .huge em {
  color: var(--ink);
  background: linear-gradient(transparent 60%, var(--music) 60% 91%, transparent 91%);
  padding-inline: .06em;
}

.lede {
  max-width: 52ch; margin-top: 28px;
  font: 400 clamp(1.1rem, 1.6vw, 1.42rem)/1.45 var(--f-d);
  color: var(--mut);
}

/* Cada seção abre com uma faixa de pauta: 5 linhas, como o início de um sistema */
.sec, .mani { position: relative; padding: clamp(110px, 15vw, 210px) 0 clamp(90px, 12vw, 170px); }
.sec::before, .mani::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 41px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 10px);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 55%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 0, #000 55%, transparent 100%);
  pointer-events: none;
}

/* ------------------------------------------------------------
   7. HERO
   ------------------------------------------------------------
   --pt: topo da pauta   --ph: altura da pauta
   As linhas ficam a 10%, 30%, 50%, 70% e 90% da altura do SVG;
   por isso cada meio-tom (--p) sobe 10% de --ph.
   Se a clave de sol ficar torta com a fonte, ajuste --cy e --cs.
   ------------------------------------------------------------ */
.hero {
  --pt: clamp(84px, 10.5vh, 120px);
  --ph: clamp(160px, 15.8vw, 250px);
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: max(100svh, 800px);
  padding: 120px 0 clamp(36px, 5vw, 64px);
  overflow: hidden;
}
/* Luz de neon vazando pela sala */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(55% 46% at 80% 36%, rgba(25, 226, 118, calc(.1 + var(--dyn) * .12)), transparent 70%),
    radial-gradient(42% 42% at 6% 92%, rgba(25, 226, 118, .08), transparent 70%);
}

.stage { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
#fx { position: absolute; inset: 0; width: 100%; height: 100%; }

.pauta {
  position: absolute; left: 0; top: var(--pt);
  width: 100%; height: var(--ph);
  color: rgba(243, 240, 232, .2);
}
.lin { stroke-width: 2; transition: stroke-opacity .3s; }
.lin.on {
  color: var(--music);
  stroke-opacity: calc(.55 + var(--a, 0) * .45);
  filter: drop-shadow(0 0 5px var(--music));
}

.clef {
  --cs: .62;   /* tamanho da clave em relação à pauta */
  --cy: .52;   /* posição vertical (0 = topo da pauta, 1 = base) */
  position: absolute;
  left: calc(var(--gut) - 6px);
  top: calc(var(--pt) + var(--ph) * var(--cy));
  translate: 0 -50%;
  font: 400 calc(var(--ph) * var(--cs))/1 var(--f-n);
  color: var(--music);
  text-shadow: 0 0 calc(var(--ph) * .1) var(--glow);
  user-select: none;
}

/* Notas: cabeça achatada em neon; a haste sobe nas graves e desce nas agudas */
.nt {
  --s: calc(var(--ph) * .15);
  position: absolute;
  left: var(--x);
  top: calc(var(--pt) + var(--ph) * (.9 - .1 * var(--p)));
  width: calc(var(--s) * 1.3); height: var(--s);
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--music);
  box-shadow: 0 0 calc(var(--ph) * .08) var(--glow);
}
.nt::after {
  content: '';
  position: absolute; width: 2px; height: calc(var(--s) * 3);
  background: var(--music);
  left: 0; top: 50%;
}
.nt[data-note="G4"]::after, .nt[data-note="A4"]::after { left: calc(100% - 2px); top: auto; bottom: 50%; }
.nt.hit { animation: pop .7s var(--ease); }
@keyframes pop {
  0% { scale: 1.9; box-shadow: 0 0 calc(var(--ph) * .3) var(--music); }
  100% { scale: 1; }
}

.hero .tag {
  position: absolute; z-index: 2;
  top: calc(var(--pt) - 27px); right: var(--gut);
  margin: 0;
}
.hero .tag::after { display: none; }

.hero h1 {
  font-size: clamp(2.7rem, 8.3vw, 10rem);
  line-height: .87;
}
.ln { display: block; overflow: hidden; padding: .2em .35em; margin: -.2em -.35em; }
.ln i {
  display: block; font-style: normal;
  animation: rise 1.2s var(--ease) both;
}
.ln:nth-child(2) i { animation-delay: .12s; }
.ln:nth-child(3) i { animation-delay: .24s; }
.ln.s i { color: var(--bg); -webkit-text-stroke: 3px var(--fg); paint-order: stroke fill; }
.ln.o i { color: var(--music); text-shadow: 0 0 .2em var(--glow); }
@keyframes rise { from { transform: translateY(170%); } }

.hero-b {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 32px;
  margin-top: clamp(30px, 4.5vw, 60px);
  animation: fade 1.2s .55s var(--ease) both;
}
.hero-b p {
  max-width: 46ch;
  font: 400 clamp(1.05rem, 1.45vw, 1.3rem)/1.45 var(--f-d);
  color: rgba(243, 240, 232, .86);
}
.acts { display: flex; flex-wrap: wrap; gap: 12px; }
@keyframes fade { from { opacity: 0; transform: translateY(24px); } }

/* Andamento: indicação escrita acima do primeiro compasso, como na partitura */
.tempo {
  position: absolute; z-index: 2;
  top: calc(var(--pt) - 34px);
  left: calc(var(--gut) + clamp(70px, 11vw, 190px));
  display: flex; align-items: baseline; gap: 14px;
  font: 400 .78rem/1 var(--f-m); color: var(--mut);
}
.tempo i { font: italic 400 1.7rem/1 var(--f-s); color: var(--music); }
.tempo span { font-family: var(--f-n), var(--f-m); }

/* ------------------------------------------------------------
   8. MARQUEE
   ------------------------------------------------------------ */
.mq {
  display: flex; overflow: hidden; white-space: nowrap;
  border-block: 2px solid var(--ink);
  user-select: none;
}
.mq > div {
  display: flex; flex: none; align-items: center; justify-content: space-around;
  min-width: 100%;
  animation: mq 38s linear infinite;
}
.mq span { padding: 14px clamp(14px, 2vw, 30px); }
@keyframes mq { to { transform: translateX(-100%); } }

.mq.hot {
  font: 800 clamp(1.4rem, 3.1vw, 2.8rem)/1 var(--f-d); font-stretch: 75%;
  text-transform: uppercase; letter-spacing: -.01em;
}
.mq.hot span:nth-child(even) { font-family: var(--f-n); font-weight: 400; font-size: .95em; }

/* ------------------------------------------------------------
   9. MANIFESTO
   ------------------------------------------------------------ */
.quote {
  font: 700 clamp(1.9rem, 5.3vw, 5.5rem)/1.04 var(--f-d); font-stretch: 80%;
  letter-spacing: -.025em;
  text-wrap: pretty;
}
.quote .w { opacity: .17; transition: opacity .35s, color .35s, text-shadow .35s; }
.quote .w.on { opacity: 1; }
/* A última palavra acesa é a cabeça de leitura: acende em neon */
.quote .w.on:not(:has(~ .w.on)) {
  color: var(--music);
  text-shadow: 0 0 .5em var(--glow);
}
.mani .foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  margin-top: clamp(56px, 8vw, 110px); padding-top: 22px;
  border-top: 1px solid var(--line-2);
  font: 400 .8rem/1.3 var(--f-m); color: var(--mut);
}

/* ------------------------------------------------------------
   10. DIFERENÇA — dois "contrapontos": a voz de todo mundo e a nossa
   ------------------------------------------------------------ */
.vs { margin-top: clamp(48px, 7vw, 96px); }
.vr {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
  align-items: baseline; gap: 12px clamp(20px, 4vw, 72px);
  padding: clamp(22px, 3vw, 38px) 0;
  border-top: 1px solid var(--line-2);
}
.vr:last-child { border-bottom: 1px solid var(--line-2); }
.vr s {
  font: italic 400 clamp(1.3rem, 2.4vw, 2.2rem)/1.1 var(--f-s);
  color: var(--mut);
  text-decoration-thickness: 2px; text-decoration-color: var(--music);
}
.vr b {
  font: 700 clamp(1.5rem, 3.1vw, 3rem)/1.05 var(--f-d); font-stretch: 80%;
  letter-spacing: -.02em;
  transition: color .3s, transform .5s var(--ease);
}
.vr b::before {
  content: '♪'; font: 400 .8em var(--f-n);
  color: var(--music); margin-right: .45em;
}
.vr:hover b { color: var(--music); transform: translateX(14px); }
.note {
  max-width: 34ch; margin-top: clamp(40px, 6vw, 80px);
  font: italic 400 clamp(1.5rem, 2.8vw, 2.6rem)/1.18 var(--f-s);
}

/* ------------------------------------------------------------
   11. SERVIÇOS — cinco linhas da pauta, cinco notas
   A borda superior de cada linha É a linha da pauta; a nota
   (semibreve vazada) senta nela e acende no hover e na melodia.
   ------------------------------------------------------------ */
.melo { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 36px; }
#melodia-st { min-height: 1.4em; font: 400 .8rem/1.4 var(--f-m); color: var(--mut); }

.cos { margin: clamp(52px, 7vw, 100px) 0 0; padding: 0; }
.co {
  position: relative;
  display: grid;
  grid-template-columns: clamp(64px, 9.5vw, 138px) minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0 clamp(16px, 3vw, 48px);
  padding: clamp(40px, 5vw, 66px) max(var(--gut), calc((100% - 1360px) / 2)) clamp(32px, 4.2vw, 54px);
  border-top: 1px solid var(--line-2);
  transition: background .4s var(--ease);
}
.co:nth-child(1) { --nx: 14%; }
.co:nth-child(2) { --nx: 31%; }
.co:nth-child(3) { --nx: 48%; }
.co:nth-child(4) { --nx: 65%; }
.co:nth-child(5) { --nx: 82%; }

.nh {
  position: absolute; top: 0; left: var(--nx); z-index: 1;
  width: 38px; height: 24px; translate: -50% -50%;
  border: 3px solid var(--music); border-radius: 50%;
  background: var(--bg);
  rotate: -16deg;
  transition: background .3s, box-shadow .3s, scale .45s var(--back);
}
.co .n { font: italic 400 clamp(2.1rem, 4.6vw, 4.2rem)/1 var(--f-s); color: var(--music); }
.co .h small { display: block; margin-bottom: 14px; font: 400 .76rem/1.3 var(--f-m); color: var(--mut); }
.co h3 {
  font: 800 clamp(1.7rem, 3.8vw, 3.7rem)/.95 var(--f-d); font-stretch: 75%;
  text-transform: uppercase; letter-spacing: -.02em;
  text-wrap: balance;
  transition: color .3s;
}
.co .d p { max-width: 46ch; font: 400 1.02rem/1.55 var(--f-d); color: var(--mut); }
.co .d .sv { margin-top: 16px; font: 400 .74rem/1.55 var(--f-m); color: var(--music); }

:is(.co:hover, .co.on, .co.tocando) { background: rgba(25, 226, 118, .06); }
:is(.co:hover, .co.on, .co.tocando) h3 { color: var(--music); }
:is(.co:hover, .co.on, .co.tocando) .nh {
  background: var(--music); scale: 1.3;
  box-shadow: 0 0 26px var(--music);
}

/* ------------------------------------------------------------
   12. PROCESSO — seis compassos, com barra dupla no final
   ------------------------------------------------------------ */
.steps {
  --p: 0;
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(64px, 8vw, 110px);
  counter-reset: compasso;
}
/* "Playhead" do processo */
.steps::before {
  content: ''; position: absolute; left: 0; top: -22px;
  height: 3px; width: calc(var(--p) * 100%);
  background: var(--music); box-shadow: 0 0 14px var(--music);
}
.steps li {
  position: relative;
  padding: 92px clamp(20px, 2.4vw, 36px) 44px;
  border-left: 2px solid var(--fg);
  counter-increment: compasso;
}
.steps li:nth-child(n + 4) { margin-top: 24px; }
.steps li::before {
  content: ''; position: absolute; left: 0; right: 0; top: 30px; height: 41px;
  background: repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 10px);
  opacity: .22;
  transition: opacity .6s, color .6s;
}
.steps li::after {
  content: counter(compasso);
  position: absolute; left: clamp(20px, 2.4vw, 36px); top: 2px;
  font: italic 400 1.35rem/1 var(--f-s); color: var(--tempo);
}
.steps li:nth-child(3n) { border-right: 2px solid var(--fg); }
.steps li:last-child {
  background: linear-gradient(90deg, transparent calc(100% - 11px), var(--fg) calc(100% - 11px) calc(100% - 9px), transparent calc(100% - 9px) calc(100% - 6px), var(--fg) calc(100% - 6px));
}
.ready .steps li:not(.on) { opacity: .4; }
.steps li.on::before { opacity: .6; color: var(--music); }
.steps h3 {
  font: 800 clamp(1.6rem, 2.7vw, 2.5rem)/.95 var(--f-d); font-stretch: 75%;
  text-transform: uppercase; letter-spacing: -.02em;
}
.steps p { margin-top: 16px; max-width: 34ch; font: 400 1rem/1.55 var(--f-d); color: var(--mut); }
.steps li.rv { transition: opacity .8s var(--ease), transform .9s var(--ease); }

/* ------------------------------------------------------------
   13. SOLUÇÃO OVER — tutti: a orquestra inteira em neon
   ------------------------------------------------------------ */
.bundle { padding-bottom: 0; }
.bundle::before { --line: rgba(4, 18, 10, .26); }
.bundle .big { max-width: 17em; }
.bund {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .5fr);
  align-items: end; gap: 40px;
  margin-top: clamp(40px, 6vw, 80px);
}
.bund p {
  max-width: 48ch;
  font: 400 clamp(1.2rem, 2vw, 1.8rem)/1.3 var(--f-d); font-stretch: 90%;
}
.bund .btn { justify-self: end; }
.hot .btn.a { background: var(--ink); color: var(--music); border-color: var(--ink); }

.naipes { display: flex; flex-wrap: wrap; gap: 12px; margin: clamp(44px, 6vw, 80px) 0 clamp(70px, 9vw, 130px); }
.naipes a, .naipes li > span {
  display: inline-flex; align-items: baseline; gap: 10px;
  padding: 14px 24px;
  border: 2px solid var(--ink); border-radius: 99px;
  font: 700 .8rem/1 var(--f-m); letter-spacing: .07em; text-transform: uppercase;
  transition: background .25s, color .25s;
}
.naipes a:hover { background: var(--ink); color: var(--music); }
.naipes [aria-current] span { background: var(--ink); color: var(--music); }
.naipes small { font: italic 400 1.15em/1 var(--f-s); letter-spacing: 0; text-transform: none; opacity: .85; }

.mq.giant { background: var(--ink); color: var(--music); border-block: 0; }
.mq.giant span {
  padding: 4px clamp(20px, 3vw, 54px) 0;
  font: 800 clamp(5rem, 15vw, 14rem)/.95 var(--f-d); font-stretch: 75%;
  letter-spacing: -.03em;
  color: var(--ink); -webkit-text-stroke: 3px var(--music); paint-order: stroke fill;
}
.mq.giant span:nth-child(even) {
  font: 400 clamp(4rem, 12vw, 11rem)/1 var(--f-n);
  color: var(--music); -webkit-text-stroke: 0; paint-order: normal;
}
.mq.giant > div { animation-duration: 50s; animation-direction: reverse; }

/* ------------------------------------------------------------
   14. SOBRE
   ------------------------------------------------------------ */
.ab { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.cp { margin-top: clamp(34px, 5vw, 64px); }
.cp p { max-width: 58ch; font: 400 clamp(1.05rem, 1.35vw, 1.2rem)/1.6 var(--f-d); color: rgba(243, 240, 232, .86); }
.cp p + p { margin-top: 1.2em; color: var(--mut); }
.mv {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(40px, 5vw, 70px); padding-top: 30px;
  border-top: 1px solid var(--line-2);
}
.mv small { display: block; margin-bottom: 14px; font: 400 .76rem/1.3 var(--f-m); color: var(--music); }
.mv p { font: italic 400 clamp(1.25rem, 1.8vw, 1.6rem)/1.25 var(--f-s); }

.abr { position: sticky; top: 110px; }
.abr .tag { margin-bottom: 20px; }
.vals li {
  padding: .16em 0;
  border-bottom: 1px solid var(--line);
  font: 800 clamp(1.8rem, 4.2vw, 4rem)/1 var(--f-d); font-stretch: 75%;
  text-transform: uppercase; letter-spacing: -.02em;
  transition: transform .5s var(--ease), color .3s, padding .4s var(--ease);
}
.vals li:hover { color: var(--music); padding-left: .3em; }
.vals .q { color: var(--music); }

/* ------------------------------------------------------------
   15. PERGUNTAS — papel de partitura
   ------------------------------------------------------------ */
.fq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(36px, 6vw, 110px); align-items: start; }
.fq > div:first-child { position: sticky; top: 110px; }

.fl details { border-top: 2px solid var(--fg); interpolate-size: allow-keywords; }
.fl details:last-child { border-bottom: 2px solid var(--fg); }
.fl summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 26px 64px 26px 0;
  font: 700 clamp(1.15rem, 2vw, 1.7rem)/1.15 var(--f-d); font-stretch: 85%;
  letter-spacing: -.01em;
  transition: padding .4s var(--ease);
}
.fl summary::-webkit-details-marker { display: none; }
.fl summary::after {
  content: '+';
  position: absolute; right: 4px; top: 50%;
  display: grid; place-items: center;
  width: 36px; height: 36px; margin-top: -18px;
  border: 2px solid var(--fg); border-radius: 50%;
  font: 400 1.3rem/1 var(--f-m);
  transition: transform .45s var(--ease), background .25s, color .25s;
}
.fl summary:hover { padding-left: 14px; }
.fl summary:hover::after { background: var(--fg); color: var(--bg); }
.fl details[open] summary::after { transform: rotate(135deg); background: var(--music); color: var(--ink); border-color: var(--ink); }
.fl details p {
  max-width: 58ch; padding: 0 64px 30px 0;
  font: 400 1.05rem/1.6 var(--f-d); color: var(--mut);
}
.fl details::details-content {
  height: 0; overflow: clip;
  transition: height .45s var(--ease), content-visibility .45s allow-discrete;
}
.fl details[open]::details-content { height: auto; }

/* ------------------------------------------------------------
   16. CONTATO — fortíssimo
   ------------------------------------------------------------ */
.huge { margin-bottom: clamp(48px, 7vw, 100px); }
.ct { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.dir { display: flex; flex-direction: column; margin-top: 44px; }
.dir a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0;
  border-bottom: 2px solid var(--line-2);
  font: 700 clamp(1.1rem, 2.2vw, 1.9rem)/1.1 var(--f-d); font-stretch: 85%;
  transition: color .25s, padding .4s var(--ease), border-color .25s;
}
.dir a:first-child { border-top: 2px solid var(--line-2); }
.dir a:hover { color: var(--music); border-color: var(--music); padding-left: 12px; }

form fieldset { min-width: 0; margin: 0 0 34px; padding: 0; border: 0; }
form legend { margin-bottom: 14px; padding: 0; font: 400 .78rem/1.3 var(--f-m); color: var(--mut); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: 11px 18px;
  border: 1.5px solid var(--line-2); border-radius: 99px;
  font: 400 .78rem/1.1 var(--f-m);
  transition: background .25s, color .25s, border-color .25s, transform .3s var(--back);
}
.chips label:hover span { border-color: var(--music); }
.chips input:checked + span { background: var(--music); color: var(--ink); border-color: var(--music); }
.chips input:focus-visible + span { outline: 2px solid var(--music); outline-offset: 3px; }

.f { margin-bottom: 26px; }
.f label { display: block; margin-bottom: 4px; font: 400 .76rem/1.3 var(--f-m); color: var(--mut); }
.f input, .f textarea {
  display: block; width: 100%;
  padding: 10px 0 12px;
  background: transparent; border: 0; border-bottom: 2px solid var(--line-2); border-radius: 0;
  font: 500 clamp(1.1rem, 1.7vw, 1.4rem)/1.3 var(--f-d);
  transition: border-color .3s, box-shadow .3s;
}
.f textarea { min-height: 110px; resize: vertical; }
.f input::placeholder, .f textarea::placeholder { color: rgba(243, 240, 232, .32); font-weight: 400; }
.f input:focus, .f textarea:focus {
  outline: none; border-bottom-color: var(--music);
  box-shadow: 0 14px 22px -18px var(--music);
}
.f [aria-invalid="true"] { border-bottom-color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ff { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px 24px; margin-top: 8px; }
#st { flex: 1 1 220px; min-height: 1.4em; font: 400 .8rem/1.4 var(--f-m); color: var(--mut); }

/* ------------------------------------------------------------
   17. RODAPÉ
   ------------------------------------------------------------ */
footer { position: relative; overflow: hidden; padding-top: clamp(70px, 9vw, 130px); border-top: 1px solid var(--line-2); }
.ft { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.ft > p { max-width: 20ch; font: italic 400 clamp(1.6rem, 2.7vw, 2.5rem)/1.12 var(--f-s); }
.ft h4 { margin-bottom: 18px; font: 400 .74rem/1 var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.ft a { display: block; width: fit-content; padding: 5px 0; font: 500 1.05rem/1.2 var(--f-d); transition: color .25s, transform .4s var(--ease); }
.ft a:hover { color: var(--music); transform: translateX(6px); }
.fb {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px;
  margin-top: clamp(56px, 8vw, 110px); padding: 20px 0;
  border-top: 1px solid var(--line);
  font: 400 .76rem/1.3 var(--f-m); color: var(--mut);
}
.dacapo { color: var(--music); font: italic 400 1.2rem/1 var(--f-s); transition: transform .4s var(--ease); }
.dacapo:hover { transform: translateY(-3px); }
.fm {
  margin: -.02em 0 -.2em; text-align: center; white-space: nowrap;
  font-size: clamp(4.2rem, 21.6vw, 30rem); line-height: .8;
  color: var(--bg); -webkit-text-stroke: 3px rgba(25, 226, 118, .8); paint-order: stroke fill;
  user-select: none;
}

/* ------------------------------------------------------------
   18. COMPARADOR ANTES/DEPOIS
   (a seção está comentada no HTML; este bloco já deixa tudo pronto)
   ------------------------------------------------------------ */
.mix {
  --wave-a: #8c8c88; --wave-b: var(--music); --wave-rest: #6b6b66;
  margin-top: clamp(40px, 6vw, 80px); padding: clamp(18px, 3vw, 34px);
  border: 2px solid var(--ink); background: var(--ink); color: var(--paper);
}
.wave { width: 100%; height: clamp(130px, 18vw, 210px); cursor: pointer; }
.mix-ctl { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 22px; }
.mix .btn.k { background: var(--music); color: var(--ink); border-color: var(--music); }
.sw { display: inline-flex; padding: 4px; border: 2px solid var(--line-2); border-radius: 99px; }
.sw button {
  padding: 11px 22px; border-radius: 99px;
  font: 700 .76rem/1 var(--f-m); letter-spacing: .07em; text-transform: uppercase;
  transition: background .25s, color .25s;
}
.sw button[aria-pressed="true"] { background: var(--music); color: var(--ink); }
.mix output { margin-left: auto; font: 400 .85rem var(--f-m); color: rgba(243, 240, 232, .7); }
.seek { display: block; margin-top: 18px; }
.seek input { width: 100%; accent-color: var(--music); }
.mix-n { margin-top: 16px; font: 400 .78rem/1.4 var(--f-m); color: rgba(243, 240, 232, .6); }
.mix[data-state="missing"] { opacity: .6; }

/* ------------------------------------------------------------
   19. RESPONSIVO
   ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .dyn { display: none; }
}

@media (max-width: 900px) {
  header nav { display: none; }
  .ab, .fq, .ct, .bund { grid-template-columns: 1fr; }
  .bund .btn { justify-self: start; }
  .abr, .fq > div:first-child { position: static; }
  .ft { grid-template-columns: 1fr 1fr; }
  .ft > p { grid-column: 1 / -1; max-width: 26ch; }
  .vr { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; }
  .steps li { border-right: 2px solid var(--fg); }
  .steps li:nth-child(n + 4) { margin-top: 0; }
  .steps li + li { margin-top: 18px; }
  .steps li:last-child { background: none; border-right: 7px double var(--fg); }

  .tempo { display: none; }
}

@media (max-width: 720px) {
  .co { grid-template-columns: 56px minmax(0, 1fr); gap: 0 16px; }
  .co .d { grid-column: 2; margin-top: 18px; }
  .co:nth-child(1) { --nx: 12%; }
  .co:nth-child(2) { --nx: 30%; }
  .co:nth-child(3) { --nx: 48%; }
  .co:nth-child(4) { --nx: 66%; }
  .co:nth-child(5) { --nx: 84%; }
  .nh { width: 30px; height: 19px; border-width: 2.5px; }
  .mv { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .pill { display: none; }
}

@media (max-width: 560px) {
  header { gap: 10px; }
  .hd-r { gap: 8px; }
  .snd-t { display: none; }
  .snd { padding: 9px 12px; }
  .pill { padding: 9px 13px; font-size: .6rem; letter-spacing: .05em; }
  .brand { font-size: 1.05rem; }
  .nt:nth-of-type(1) { display: none; }   /* a 1ª nota cairia em cima da clave */
  .hero { min-height: 100svh; padding-top: 100px; }
  .hero h1 { font-size: clamp(2.6rem, 14vw, 4.4rem); }
  .btn { padding: 15px 22px; font-size: .74rem; }
  .acts { width: 100%; }
  .acts .btn { flex: 1 1 auto; }
  .ft { grid-template-columns: 1fr; }
  .tag i { font-size: 1.3rem; }
  .wave { height: 120px; }
  .fm { -webkit-text-stroke-width: 2px; }
}

/* ------------------------------------------------------------
   20. MOVIMENTO REDUZIDO
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .ready .rv:not(.in) { opacity: 1; transform: none; }
  .ready .steps li:not(.on) { opacity: 1; }   /* sem esmaecer os compassos que o playhead ainda não alcançou */
  .mq > div { animation: none; }
  .quote .w { opacity: 1; }
}
