/* ==========================================================================
   Hope Music Bar · base comum (home e páginas de evento)
   Conceito: "Luz de palco no Centro". A página é a Hope às 23h: luz da casa
   apagada, palco lavado de vermelho, o H aceso atrás da banda.
   Cores da própria marca: vermelho #A40D17 e mostarda #D39D22 (capa do destaque
   CASA) e marinho #1B3A6B (destaques DRINKS/AGENDA/SHOWS).
   ========================================================================== */

@font-face {
  font-family: 'Big Shoulders';
  src: url('/assets/fonts/bigshoulders-latin.woff2') format('woff2');
  font-weight: 500 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Big Shoulders';
  src: url('/assets/fonts/bigshoulders-latin-ext.woff2') format('woff2');
  font-weight: 500 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Big Shoulders Stencil';
  src: url('/assets/fonts/bigshoulders-stencil-latin.woff2') format('woff2');
  font-weight: 700 900;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-latin-ext.woff2') format('woff2');
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-italic-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
/* reservas com métrica parecida, para o texto não pular quando a fonte chega */
@font-face { font-family: 'Archivo Reserva'; src: local('Arial'), local('Helvetica'); size-adjust: 101%; ascent-override: 88%; descent-override: 22%; }
@font-face { font-family: 'Big Shoulders Reserva'; src: local('Arial Narrow'), local('Arial'); size-adjust: 78%; ascent-override: 118%; descent-override: 28%; }

:root {
  /* cor (sRGB da marca; o OKLCH aproximado no comentário) */
  --breu: #120b0c;          /* oklch(.16 .012 18)  fundo da noite */
  --breu-2: #1c1314;        /* oklch(.2 .015 18)   superfícies */
  --breu-3: #2a1c1e;        /* oklch(.25 .02 18)   superfícies elevadas */
  --sangue: #a40d17;        /* oklch(.47 .18 25)   vermelho da marca */
  --sangue-2: #7e0a12;      /* oklch(.39 .15 25) */
  --sangue-3: #4f070c;      /* oklch(.29 .11 25) */
  --brasa: #e3262e;         /* oklch(.6 .21 26)    luz de palco, foco */
  --ouro: #d39d22;          /* oklch(.74 .14 78)   mostarda do H */
  --ouro-2: #f2c14e;        /* oklch(.84 .14 85) */
  --ouro-3: #8f6812;        /* oklch(.54 .11 78) */
  --marinho: #1b3a6b;       /* oklch(.36 .09 258)  destaques do Instagram */
  --marinho-2: #12284c;     /* oklch(.28 .07 258) */
  --giz: #f6f0ed;           /* texto principal */
  --giz-2: #cfc3bf;         /* texto de apoio, 11:1 sobre --breu */
  --giz-3: #a1918d;         /* legendas, 6,6:1 sobre --breu */
  --linha: rgb(246 240 237 / 0.14);
  --linha-forte: rgb(246 240 237 / 0.28);

  /* tipo */
  --f-cartaz: 'Big Shoulders', 'Big Shoulders Reserva', 'Arial Narrow', sans-serif;
  --f-stencil: 'Big Shoulders Stencil', 'Big Shoulders', 'Big Shoulders Reserva', 'Arial Narrow', sans-serif;
  --f-texto: 'Archivo', 'Archivo Reserva', system-ui, sans-serif;
  --t-display: clamp(3.4rem, 1.6rem + 7.6vw, 7.5rem);
  --t-h2: clamp(2.5rem, 1.5rem + 4.2vw, 5rem);
  --t-h3: clamp(1.6rem, 1.25rem + 1.3vw, 2.25rem);
  --t-lead: clamp(1.125rem, 1.04rem + 0.4vw, 1.375rem);
  --t-corpo: 1.0625rem;
  --t-menor: 0.9375rem;

  /* ritmo */
  --gutter: clamp(18px, 4.2vw, 56px);
  /* 72 px entre seções no celular (a home tem 13 seções), 176 px no desktop */
  --secao: clamp(72px, 10vw + 32px, 176px);
  --max: 1280px;
  --max-texto: 40rem;
  --r: 3px;
  --header-h: 72px;

  /* movimento */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* camadas */
  --z-midia: 1;
  --z-conteudo: 2;
  --z-header: 20;
  --z-barra: 25;
  --z-menu: 35;
  --z-grao: 40;

  color-scheme: dark;
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--breu);
  color: var(--giz);
  font: 400 var(--t-corpo) / 1.62 var(--f-texto);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
::selection { background: var(--ouro); color: var(--breu); }
:focus-visible { outline: 2px solid var(--ouro-2); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

/* grão de filme: unifica as fontes de 720p e 1080p do Instagram */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  z-index: var(--z-grao);
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' 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 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- tipo */
.cartaz, h1, h2 {
  font-family: var(--f-cartaz);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.9;
  text-wrap: balance;
}
h1 { font-size: var(--t-display); }
h2 { font-size: var(--t-h2); line-height: 0.92; max-width: 16ch; }
h3 {
  font-family: var(--f-cartaz);
  font-weight: 800;
  font-size: var(--t-h3);
  line-height: 1;
  text-transform: uppercase;
  text-wrap: balance;
}
p { text-wrap: pretty; max-width: 65ch; }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--giz-2); max-width: var(--max-texto); }
.lead strong, p strong { color: var(--giz); font-weight: 600; }
.ouro { color: var(--ouro); }
.stencil { font-family: var(--f-stencil); font-weight: 800; letter-spacing: 0.01em; }
.meta {
  font-family: var(--f-texto);
  font-stretch: 78%;
  font-weight: 650;
  font-size: var(--t-menor);
  letter-spacing: 0.02em;
  color: var(--giz-2);
}
.nota { font-size: var(--t-menor); color: var(--giz-3); line-height: 1.5; }

/* ---------------------------------------------------------------- layout */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.secao { padding-block: var(--secao); position: relative; }
.secao__cabeca { display: grid; gap: clamp(18px, 2.4vw, 28px); margin-bottom: clamp(40px, 6vw, 80px); }
.pular {
  position: absolute; left: var(--gutter); top: -100px; z-index: calc(var(--z-menu) + 1);
  background: var(--ouro); color: var(--breu); padding: 12px 18px; font-weight: 700; text-decoration: none;
}
.pular:focus { top: max(12px, env(safe-area-inset-top)); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- ícones */
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico--cheio { fill: currentColor; stroke: none; }
.marca-h { width: 1em; height: auto; fill: currentColor; }

/* ---------------------------------------------------------------- botões */
.btn {
  --bg: transparent; --fg: var(--giz); --bd: var(--linha-forte);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0.85em 1.35em;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd); border-radius: var(--r);
  font-family: var(--f-texto); font-stretch: 78%; font-weight: 750; font-size: 1rem; letter-spacing: 0.035em;
  text-transform: uppercase; text-decoration: none; line-height: 1.1; cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.35s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn--ouro { --bg: var(--ouro); --fg: var(--breu); --bd: var(--ouro); }
.btn--sangue { --bg: var(--sangue); --fg: var(--giz); --bd: var(--sangue); }
.btn--linha { --bd: var(--linha-forte); }
.btn--pequeno { min-height: 44px; padding: 0.6em 1em; font-size: 0.9375rem; }
@media (hover: hover) and (pointer: fine) {
  .btn--ouro:hover { --bg: var(--ouro-2); --bd: var(--ouro-2); box-shadow: 0 10px 40px -12px rgb(242 193 78 / 0.55); transform: translateY(-1px); }
  .btn--sangue:hover { --bg: var(--brasa); --bd: var(--brasa); box-shadow: 0 10px 40px -12px rgb(227 38 46 / 0.6); transform: translateY(-1px); }
  .btn--linha:hover { --bg: var(--giz); --fg: var(--breu); --bd: var(--giz); }
}
.link {
  display: inline-flex; align-items: center; gap: 0.45em; min-height: 44px; color: var(--ouro); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em;
  text-decoration-color: rgb(211 157 34 / 0.45); transition: text-decoration-color 0.2s, color 0.2s;
}
.link:hover { color: var(--ouro-2); text-decoration-color: currentColor; }
.link .ico { transition: transform 0.3s var(--ease-out); }
.link:hover .ico { transform: translateX(3px); }
/* no celular, cada botão de ação ocupa a largura toda: alvo grande e na linha do polegar */
.acoes { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.acoes > .btn { flex: 1 1 100%; }
@media (min-width: 600px) { .acoes > .btn { flex: 0 1 auto; } }

/* ---------------------------------------------------------------- cabeçalho */
.topo {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  height: calc(var(--header-h) + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top);
  transition: background-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), transform 0.5s var(--ease-expo);
}
.topo::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgb(18 11 12 / 0.75), rgb(18 11 12 / 0));
  transition: opacity 0.4s;
}
.topo.is-solido { background: rgb(18 11 12 / 0.94); box-shadow: 0 1px 0 var(--linha); }
.topo.is-solido::before { opacity: 0; }
.topo__barra { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; text-decoration: none; color: var(--giz); margin-right: auto; }
.logo .marca-h { width: 30px; color: var(--ouro); filter: drop-shadow(0 0 14px rgb(211 157 34 / 0.35)); }
.logo__nome { display: grid; line-height: 0.82; }
.logo__nome b { font-family: var(--f-cartaz); font-weight: 900; font-size: 1.7rem; letter-spacing: 0.02em; }
.logo__nome span { font-family: var(--f-texto); font-stretch: 78%; font-weight: 650; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--giz-2); }
.nav { display: none; }
.nav a {
  position: relative; padding: 10px 2px; text-decoration: none; color: var(--giz-2);
  font-stretch: 85%; font-weight: 600; font-size: 0.98rem; letter-spacing: 0.01em; transition: color 0.2s;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--ouro);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease-out);
}
.nav a:hover, .nav a[aria-current='true'] { color: var(--giz); }
.nav a:hover::after, .nav a[aria-current='true']::after { transform: scaleX(1); }
.topo .btn { min-height: 44px; white-space: nowrap; }
.logo__nome span, .logo__nome b { white-space: nowrap; }
@media (max-width: 400px) { .topo .btn { padding-inline: 0.8em; font-size: 0.875rem; } .topo__barra { gap: 12px; } }
.topo__cta-curto { display: inline; }
.topo__cta-longo { display: none; }
.menu-botao {
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-right: -8px;
  background: none; border: 0; cursor: pointer; color: var(--giz);
}
.menu-botao span, .menu-botao span::before, .menu-botao span::after {
  display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: transform 0.35s var(--ease-out), opacity 0.2s;
}
.menu-botao span::before, .menu-botao span::after { content: ''; position: absolute; left: 0; }
.menu-botao span::before { top: -7px; }
.menu-botao span::after { top: 7px; }
@media (min-width: 1080px) {
  .nav { display: flex; gap: clamp(16px, 1.8vw, 30px); margin-right: 8px; }
  .menu-botao { display: none; }
  .topo__cta-curto { display: none; }
  .topo__cta-longo { display: inline; }
}

/* menu de tela cheia (celular) */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  display: grid; grid-template-rows: auto 1fr auto;
  padding: calc(env(safe-area-inset-top) + 12px) var(--gutter) calc(env(safe-area-inset-bottom) + 24px);
  background: radial-gradient(120% 70% at 85% 0%, var(--sangue-3), transparent 60%), var(--breu);
  visibility: hidden; opacity: 0; transition: opacity 0.35s var(--ease-out), visibility 0s linear 0.35s;
}
.menu.is-aberto { visibility: visible; opacity: 1; transition: opacity 0.35s var(--ease-out); }
.menu__topo { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.menu__fechar { width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 0; color: var(--giz); cursor: pointer; margin-right: -8px; }
.menu__lista { align-self: center; display: grid; gap: 4px; }
.menu__lista a {
  display: flex; align-items: baseline; gap: 14px; padding: 6px 0; text-decoration: none;
  font-family: var(--f-cartaz); font-weight: 900; font-size: clamp(2.4rem, 11vw, 3.6rem); line-height: 1; text-transform: uppercase;
  transform: translateY(14px); opacity: 0; transition: transform 0.6s var(--ease-expo), opacity 0.5s var(--ease-out), color 0.2s;
}
.menu__lista a:hover { color: var(--ouro); }
.menu.is-aberto .menu__lista a { transform: none; opacity: 1; }
.menu.is-aberto .menu__lista li:nth-child(2) a { transition-delay: 0.04s; }
.menu.is-aberto .menu__lista li:nth-child(3) a { transition-delay: 0.08s; }
.menu.is-aberto .menu__lista li:nth-child(4) a { transition-delay: 0.12s; }
.menu.is-aberto .menu__lista li:nth-child(5) a { transition-delay: 0.16s; }
.menu.is-aberto .menu__lista li:nth-child(6) a { transition-delay: 0.2s; }
.menu.is-aberto .menu__lista li:nth-child(7) a { transition-delay: 0.24s; }
.menu__rodape { display: grid; gap: 14px; }
.menu__rodape .btn { width: 100%; }

/* ---------------------------------------------------------------- mídia */
.midia { position: relative; overflow: hidden; background: var(--breu-2); }
.midia img, .midia video { width: 100%; height: 100%; object-fit: cover; }
.midia video { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s var(--ease-out); }
.midia video.is-tocando { opacity: 1; }
.legenda { margin-top: 10px; font-size: 0.875rem; color: var(--giz-3); line-height: 1.4; }
.janela {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--r); overflow: hidden; background: var(--breu-2);
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.8), 0 0 0 1px var(--linha);
}
.janela img, .janela video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.janela video { opacity: 0; transition: opacity 0.9s var(--ease-out); }
.janela video.is-tocando { opacity: 1; }

/* ---------------------------------------------------------------- letreiro (faixa de nomes) */
.letreiro { overflow: hidden; border-block: 1px solid var(--linha); background: var(--breu); padding-block: clamp(14px, 2vw, 22px); }
.letreiro__trilho { display: flex; width: max-content; animation: letreiro 60s linear infinite; }
.letreiro ul { display: flex; align-items: center; gap: clamp(22px, 3vw, 44px); padding-right: clamp(22px, 3vw, 44px); }
.letreiro li {
  display: flex; align-items: center; gap: clamp(22px, 3vw, 44px); white-space: nowrap;
  font-family: var(--f-cartaz); font-weight: 900; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.75rem); text-transform: uppercase; line-height: 1;
}
.letreiro li:nth-child(even) { color: transparent; -webkit-text-stroke: 1.2px var(--giz-2); }
.letreiro li::after { content: ''; width: 0.5em; height: 0.55em; background: var(--ouro); clip-path: polygon(0 0, 24% 16%, 32% 26%, 32% 49%, 68% 49%, 68% 26%, 76% 16%, 100% 0, 100% 66%, 88% 88%, 68% 100%, 68% 61%, 32% 61%, 32% 100%, 12% 88%, 0 66%); }
@keyframes letreiro { to { transform: translateX(-50%); } }
.is-pausado .letreiro__trilho { animation-play-state: paused; }

/* ---------------------------------------------------------------- perguntas */
.perguntas { display: grid; border-top: 1px solid var(--linha); }
.perguntas details { border-bottom: 1px solid var(--linha); }
.perguntas summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 22px 0; font-weight: 600; font-size: 1.125rem; line-height: 1.35;
}
.perguntas summary::-webkit-details-marker { display: none; }
.perguntas summary::after {
  content: ''; flex: none; width: 14px; height: 14px; border-right: 2px solid var(--ouro); border-bottom: 2px solid var(--ouro);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.35s var(--ease-out);
}
.perguntas details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.perguntas summary:hover { color: var(--ouro-2); }
.perguntas .resposta { padding: 0 0 24px; color: var(--giz-2); max-width: 62ch; }
.perguntas .resposta p + p { margin-top: 0.8em; }

/* ---------------------------------------------------------------- rodapé */
.rodape { position: relative; overflow: hidden; padding: clamp(72px, 10vw, 130px) 0 calc(28px + env(safe-area-inset-bottom)); background: var(--breu); border-top: 1px solid var(--linha); }
.rodape__h { position: absolute; right: -6vw; bottom: -14vw; width: min(60vw, 720px); color: var(--sangue-3); opacity: 0.55; pointer-events: none; }
.rodape__grade { position: relative; display: grid; gap: 44px; }
.rodape__assinatura { font-family: var(--f-cartaz); font-weight: 900; text-transform: uppercase; font-size: clamp(3rem, 2rem + 5vw, 6rem); line-height: 0.88; }
.rodape__assinatura span { color: var(--ouro); }
.rodape__colunas { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.rodape h3 { font-family: var(--f-texto); font-stretch: 78%; font-weight: 700; font-size: 0.875rem; letter-spacing: 0.08em; color: var(--giz-3); margin-bottom: 14px; }
.rodape address { font-style: normal; }
.rodape ul { display: grid; gap: 8px; }
.rodape ul:has(a) { gap: 0; }
.rodape a { text-decoration: none; color: var(--giz-2); transition: color 0.2s; }
.rodape li > a { display: inline-flex; align-items: center; min-height: 44px; }
.rodape a:hover { color: var(--ouro); }
.rodape__base { position: relative; margin-top: clamp(56px, 7vw, 90px); padding-top: 24px; border-top: 1px solid var(--linha); display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; font-size: 0.875rem; color: var(--giz-3); }
.pausar {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; min-height: 44px;
  background: none; border: 1px solid var(--linha); border-radius: var(--r); color: var(--giz-2); cursor: pointer; font-size: 0.875rem;
}
.pausar:hover { border-color: var(--linha-forte); color: var(--giz); }
@media (min-width: 900px) { .rodape__grade { grid-template-columns: 1.1fr 1.4fr; align-items: end; } }

/* ---------------------------------------------------------------- barra fixa (celular, home e show)
   Entra quando os botões principais da página saem da tela (core.js). Enquanto ela aparece,
   o botão do topo sai de cena para não haver dois iguais na tela. */
.barra {
  position: fixed; inset: auto 0 0; z-index: var(--z-barra); display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgb(18 11 12 / 0.96); border-top: 1px solid var(--linha);
  transform: translateY(110%); transition: transform 0.45s var(--ease-expo);
}
.barra.is-visivel { transform: none; }
.barra .btn { min-height: 50px; padding-inline: 0.8em; font-size: 0.95rem; }
.barra:has(> :only-child) { grid-template-columns: 1fr; }
.topo .btn { transition: opacity 0.3s var(--ease-out), visibility 0.3s, background-color 0.25s var(--ease-out); }
@media (max-width: 899px) { .barra-ativa .topo .btn { opacity: 0; visibility: hidden; } }
@media (min-width: 900px) { .barra { display: none; } }
.is-show-encerrado .barra { display: none; }

/* ---------------------------------------------------------------- revelações
   O conteúdo é visível por padrão. Só com JS (html.js) e sem movimento reduzido
   o elemento começa escondido; o fusível no <head> revela tudo se o JS falhar. */
.js .anima [data-revela] { opacity: 0; transform: translateY(28px); }
.js .anima [data-revela='mascara'] { transform: none; clip-path: inset(0 0 100% 0); }
.js .anima [data-revela].is-visto {
  opacity: 1; transform: none; clip-path: inset(0 0 0 0);
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-expo), clip-path 1.2s var(--ease-expo);
  transition-delay: var(--atraso, 0s);
}

/* ---------------------------------------------------------------- revisão (?revisao=1) */
.revisao [data-validar] { outline: 2px dashed #ff8a00; outline-offset: 4px; position: relative; }
.revisao [data-validar]::before {
  content: 'a validar: ' attr(data-validar); position: absolute; top: -12px; left: 6px; z-index: 5;
  background: #ff8a00; color: #000; font: 700 11px/1.2 var(--f-texto); padding: 3px 6px; border-radius: 2px; white-space: nowrap;
}

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