/* ==========================================================================
   Lih Carvalho · base visual (tokens, reset, tipografia, componentes globais,
   cabeçalho, menu em folha, rodapé, abertura, som). Dono: FRONT-BASE.
   Identidade própria de escola de piercing / joalheria. Fundos e textos NEUTROS
   (preto, grafite, cinza, branco); ouro SÓ como metal (logo, CTA, joias, detalhes).
   TODAS as cores vêm de variáveis. Paletas: [data-paleta=noir|champanhe|platina]
   no <html> (padrão: noir). Referência viva de cada classe: /_componentes.html
   ========================================================================== */

/* ---------- fonte local (Plus Jakarta Sans variável 200–800) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("/assets/fonts/plus-jakarta-sans-latin-ext-wght-normal.38e3b8fd80.woff2") format("woff2-variations"),
       url("/assets/fonts/plus-jakarta-sans-latin-ext-wght-normal.38e3b8fd80.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "Plus Jakarta Sans";
  font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("/assets/fonts/plus-jakarta-sans-latin-wght-normal.153fc85b70.woff2") format("woff2-variations"),
       url("/assets/fonts/plus-jakarta-sans-latin-wght-normal.153fc85b70.woff2") format("woff2");
  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;
}

/* ---------- PALETAS (valores do bloco de prototipo/comunidade.html) ---------- */
:root, [data-paleta="noir"] {
  --bg: #08080a; --bg-2: #111113; --bg-3: #18181b;
  --s1: rgba(24, 24, 27, .82); --s2: rgba(14, 14, 16, .78);
  --ink: #f5f5f4; --ink-2: #a1a1aa; --ink-3: #6b6b73;
  --gold: #C8A85E; --gold-2: #E6D3A3; --gold-deep: #8C6D2C; --gold-rgb: 200, 168, 94; --tint: 255, 255, 255;
  --metal: linear-gradient(135deg, #7d6128 0%, #c8a85e 24%, #efe0b8 42%, #fffdf6 50%, #d6bb7d 60%, #8c6d2c 82%, #c8a85e 100%);
  --m0: #7d6128; --m1: #c8a85e; --m2: #efe0b8; --m3: #fffdf6; --m4: #d6bb7d; --m5: #8c6d2c; --m6: #c8a85e;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(200, 168, 94, .34);
  --veludo-1: #17171a; --veludo-2: #09090b; --capa-1: #26262b; --capa-2: #0c0c0e;
  --sobre-metal: #17130c;
}
[data-paleta="champanhe"] {
  --bg: #09090a; --bg-2: #121213; --bg-3: #1a191a;
  --s1: rgba(26, 25, 26, .82); --s2: rgba(15, 15, 16, .78);
  --ink: #f7f4f2; --ink-2: #aaa4a2; --ink-3: #716b69;
  --gold: #D8B4A0; --gold-2: #F0DCCF; --gold-deep: #9a6f5c; --gold-rgb: 216, 180, 160; --tint: 255, 250, 248;
  --metal: linear-gradient(135deg, #8a5e4c 0%, #d8b4a0 24%, #f6e4d8 42%, #fffaf7 50%, #e0bfab 60%, #9a6f5c 82%, #d8b4a0 100%);
  --m0: #8a5e4c; --m1: #d8b4a0; --m2: #f6e4d8; --m3: #fffaf7; --m4: #e0bfab; --m5: #9a6f5c; --m6: #d8b4a0;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(216, 180, 160, .34);
  --veludo-1: #1a1718; --veludo-2: #0a090a; --capa-1: #2a2426; --capa-2: #0d0c0c;
  --sobre-metal: #1f1411;
}
[data-paleta="platina"] {
  --bg: #070809; --bg-2: #101113; --bg-3: #17191c;
  --s1: rgba(23, 25, 28, .82); --s2: rgba(13, 14, 16, .78);
  --ink: #f4f6f8; --ink-2: #a3a9b1; --ink-3: #69707a;
  --gold: #C9A85C; --gold-2: #E9DDBE; --gold-deep: #8a6d2e; --gold-rgb: 201, 168, 92; --tint: 235, 242, 250;
  --metal: linear-gradient(135deg, #6f757d 0%, #c3c9d0 22%, #f4f6f9 42%, #ffffff 50%, #d2b77a 62%, #8a6d2e 82%, #c9a85c 100%);
  --m0: #6f757d; --m1: #c3c9d0; --m2: #f4f6f9; --m3: #ffffff; --m4: #d2b77a; --m5: #8a6d2e; --m6: #c9a85c;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(200, 206, 214, .3);
  --veludo-1: #15171a; --veludo-2: #08090a; --capa-1: #22262b; --capa-2: #0b0c0e;
  --sobre-metal: #141619;
}

/* ---------- tokens comuns ---------- */
:root {
  --ok: #7fd49b; --aviso: #E8C877; --erro: #ef8a7a;
  --raio: 18px; --raio-p: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fio-ouro: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), .7), transparent);
  --perola: radial-gradient(circle at 34% 30%, var(--m3), var(--m2) 28%, var(--m1) 58%, var(--m5));
  --sombra: 0 30px 70px -34px rgba(0, 0, 0, .9);

  /* escala fluida (390 → 1440) */
  --t-hero: clamp(2.45rem, 1.55rem + 3.9vw, 5rem);
  --t-h2: clamp(1.95rem, 1.35rem + 2.5vw, 3.4rem);
  --t-h3: clamp(1.2rem, 1.08rem + .5vw, 1.55rem);
  --t-lead: clamp(1.05rem, .98rem + .35vw, 1.25rem);
  --t-corpo: clamp(.98rem, .95rem + .15vw, 1.0625rem);
  --t-peq: .875rem;
  --t-mini: .75rem;

  /* luz do metal: 0..1, mexida pelo reflexo.js (cursor no PC, rolagem no celular) */
  --luz-x: .5; --luz-y: .3;

  --topo-h: 68px;
  --gutter: 16px;
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --gutter: 28px; --topo-h: 72px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topo-h) + 16px); background: var(--bg); }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  background-color: var(--bg);
  background-image:
    radial-gradient(90% 55% at 50% -12%, rgba(var(--tint), .045), transparent 62%),
    radial-gradient(70% 45% at 50% 115%, rgba(var(--tint), .025), transparent 70%);
  background-attachment: fixed;
  color: var(--ink); font-family: var(--font); font-size: var(--t-corpo); line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
:where(ol[role="list"], ul[role="list"]) { list-style: none; padding: 0; }
[hidden] { display: none !important; }
::selection { background: rgba(var(--gold-rgb), .35); color: var(--ink); }

:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }

.so-leitor { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pular-conteudo { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none; transition: top .3s var(--ease); }
.pular-conteudo:focus { top: 12px; }

/* ---------- tipografia ---------- */
h1, h2, h3, h4, .titulo { font-weight: 800; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
h1, .t-hero { font-size: var(--t-hero); letter-spacing: -.045em; line-height: 1.0; }
h2, .t-h2 { font-size: var(--t-h2); }
h3, .t-h3 { font-size: var(--t-h3); letter-spacing: -.02em; line-height: 1.2; }
p { text-wrap: pretty; }
.lead { font-size: var(--t-lead); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.texto-2 { color: var(--ink-2); }
.texto-3 { color: var(--ink-3); }
.peq { font-size: var(--t-peq); }
.mini { font-size: var(--t-mini); }

/* .ouro — trecho do título em ouro metálico; o reflexo anda com o cursor e um brilho passa de tempos em tempos */
.ouro {
  background: var(--metal); background-size: 240% 100%;
  background-position: calc(8% + var(--luz-x) * 56%) 50%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent;
}
.ouro-liso { color: var(--gold-2); }

/* ---------- layout ---------- */
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-largo { width: min(1360px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-estreito { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.secao { position: relative; padding-block: clamp(72px, 4rem + 6vw, 150px); overflow-x: clip; container-type: inline-size; }
.secao-cab { display: grid; gap: 16px; margin-bottom: clamp(32px, 2rem + 2vw, 64px); max-width: 760px; }
.secao-cab.centro { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- .etiqueta — etiqueta de joia (furinho com argola + texto espaçado) ---------- */
.etiqueta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; line-height: 1.2;
  color: var(--gold-2);
}
.etiqueta::before {
  content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid var(--gold); box-shadow: 0 0 0 3px rgba(var(--gold-rgb), .08);
}
.etiqueta.sem-argola::before { display: none; }

/* ---------- .fio — linha fina de agulha que se desenha, com captive bead na ponta ---------- */
.fio { position: relative; display: block; height: 1px; width: 100%; }
.fio::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--gold-rgb), 0), rgba(var(--gold-rgb), .65) 30%, rgba(var(--tint), .12)); transform-origin: left; transform: scaleX(var(--fio, 1)); transition: transform 1.4s var(--ease); }
.fio::after { content: ""; position: absolute; top: -3px; left: calc(var(--fio, 1) * 100% - 7px); width: 7px; height: 7px; border-radius: 50%; background: var(--perola); box-shadow: 0 0 10px rgba(var(--gold-rgb), .5); transition: left 1.4s var(--ease), opacity .4s; }
html.rv .fio[data-revelar]:not(.visto), html.rv [data-revelar]:not(.visto) .fio { --fio: 0; }
html.rv .fio[data-revelar]:not(.visto)::after, html.rv [data-revelar]:not(.visto) .fio::after { opacity: 0; }
.divisor { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, rgba(var(--tint), .14), transparent); }

/* ---------- botões ---------- */
.btn {
  --h: 50px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px; border-radius: var(--raio-p);
  font-size: 15px; font-weight: 700; letter-spacing: -.005em; line-height: 1; text-decoration: none; white-space: nowrap;
  color: var(--ink); background: rgba(var(--tint), .02);
  border: 1px solid rgba(var(--tint), .18);
  transition: border-color .35s var(--ease), background-color .35s var(--ease), transform .35s var(--ease), color .35s, box-shadow .35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { border-color: var(--line-2); background: rgba(var(--tint), .06); }
.btn:active { transform: scale(.97); transition-duration: .1s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-p { --h: 42px; padding: 0 16px; font-size: 14px; }
.btn-g { --h: 58px; padding: 0 30px; font-size: 16px; }
.btn-bloco { width: 100%; }

/* .btn-ouro — único lugar com ouro em FUNDO (CTA principal) */
.btn-ouro {
  color: var(--sobre-metal); border-color: transparent; overflow: hidden; isolation: isolate;
  background: var(--metal); background-size: 240% 100%; background-position: calc(var(--luz-x) * 100%) 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(0, 0, 0, .25), 0 12px 30px -14px rgba(var(--gold-rgb), .6);
}
.btn-ouro::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(var(--tint), .7) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn-ouro:hover { border-color: transparent; background: var(--metal); background-size: 240% 100%; background-position: calc(var(--luz-x) * 100%) 50%; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 18px 38px -16px rgba(var(--gold-rgb), .7); }
.btn-ouro:hover::after { transform: translateX(120%); }
.btn-ouro:active { transform: scale(.97); }
.btn-ouro:focus-visible { outline-color: var(--ink); }

.link-seta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--gold-2); text-decoration: none; }
.link-seta i { font-style: normal; transition: transform .4s var(--ease); }
.link-seta:hover i { transform: translateX(5px); }

/* ---------- .vidro — receita limpa (cabeçalho, folha, avisos) ---------- */
.vidro {
  background: linear-gradient(170deg, var(--s1), var(--s2));
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(130%); backdrop-filter: blur(14px) saturate(130%);
  box-shadow: var(--sombra), inset 0 1px 0 rgba(var(--tint), .07);
}

/* ---------- .cartela — estojo de joia: veludo escuro, cantos marcados em metal ---------- */
.cartela {
  --canto: 14px; --canto-a: .5;
  position: relative; border-radius: var(--raio); padding: clamp(22px, 1rem + 1.6vw, 36px);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(var(--tint), .04), transparent 60%),
    linear-gradient(180deg, var(--veludo-1), var(--veludo-2));
  border: 1px solid var(--line);
  box-shadow: var(--sombra), inset 0 1px 0 rgba(var(--tint), .06);
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease), transform .6s var(--ease);
}
.cartela::before {
  content: ""; position: absolute; inset: 12px; pointer-events: none; opacity: var(--canto-a);
  background:
    linear-gradient(var(--gold), var(--gold)) top left / var(--canto) 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top left / 1px var(--canto) no-repeat,
    linear-gradient(var(--gold), var(--gold)) top right / var(--canto) 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top right / 1px var(--canto) no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom left / var(--canto) 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom left / 1px var(--canto) no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / var(--canto) 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 1px var(--canto) no-repeat;
  transition: opacity .5s var(--ease), inset .6s var(--ease);
}
.cartela::after { content: ""; position: absolute; left: 20%; right: 20%; top: -1px; height: 1px; background: var(--fio-ouro); opacity: .5; pointer-events: none; }
a.cartela, .cartela.viva { text-decoration: none; color: inherit; }
a.cartela:hover, .cartela.viva:hover, a.cartela:focus-visible { --canto-a: 1; border-color: var(--line-2); transform: translateY(-4px); box-shadow: 0 50px 90px -46px rgba(var(--gold-rgb), .3), inset 0 1px 0 rgba(var(--tint), .1); }
a.cartela:hover::before, .cartela.viva:hover::before { inset: 9px; }
/* papel claro (certificado) */
.cartela-clara { background: linear-gradient(180deg, var(--ink), color-mix(in srgb, var(--ink) 86%, var(--ink-2))); color: var(--bg); border-color: rgba(var(--gold-rgb), .4); }

/* ---------- .selo — selo em relevo que "carimba" ao aparecer ---------- */
.selo { position: relative; width: var(--selo, 140px); aspect-ratio: 1; flex: none; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); }
.selo svg { width: 100%; height: 100%; overflow: visible; }
.selo .selo-metal { fill: url(#lih-metal); }
.selo .selo-friso { fill: none; stroke: var(--sobre-metal); stroke-opacity: .35; }
.selo .selo-luz { fill: none; stroke: rgba(255, 255, 255, .55); }
.selo .selo-anel { transform-origin: 50% 50%; transform-box: view-box; animation: selo-gira 40s linear infinite; }
.selo text { font-family: var(--font); font-weight: 700; font-size: 8.6px; letter-spacing: .2em; text-transform: uppercase; fill: var(--sobre-metal); fill-opacity: .85; }
.selo .selo-centro { font-weight: 800; letter-spacing: -.03em; font-size: 30px; fill-opacity: 1; }
.selo .selo-centro-peq { font-weight: 700; font-size: 8px; letter-spacing: .2em; }
.selo .selo-check { fill: none; stroke: var(--sobre-metal); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
html.rv .selo[data-revelar]:not(.visto) { opacity: 0; transform: scale(1.5) rotate(-14deg); }
html.rv .selo[data-revelar]:not(.visto) .selo-check { stroke-dashoffset: 1; }
html.rv .selo[data-revelar].visto { opacity: 1; transform: none; transition: opacity .35s ease, transform .55s cubic-bezier(.3, 1.6, .5, 1); }
html.rv .selo[data-revelar].visto .selo-check { transition: stroke-dashoffset .7s .45s var(--ease); }
.selo-marca { position: absolute; inset: -10%; border-radius: 50%; pointer-events: none; border: 1px solid rgba(var(--gold-rgb), .5); opacity: 0; }
html.rv .selo.visto .selo-marca { animation: selo-onda .9s .4s var(--ease) both; }
@keyframes selo-gira { to { transform: rotate(360deg); } }
@keyframes selo-onda { from { opacity: .9; transform: scale(.8); } to { opacity: 0; transform: scale(1.35); } }

/* ---------- .mini-argola — joia pequena decorativa em SVG (gradiente #lih-metal) ---------- */
/* svg.argola = nome antigo (compatibilidade); use .mini-argola em código novo */
.mini-argola, svg.argola { width: var(--mini-argola, var(--argola, 64px)); height: auto; overflow: visible; }
.mini-argola .aro, svg.argola .aro { fill: none; stroke: url(#lih-metal); stroke-linecap: round; }
.mini-argola .bead, svg.argola .bead { fill: url(#lih-perola); }
.mini-argola .sombra, svg.argola .sombra { fill: none; stroke: rgba(0, 0, 0, .5); }

/* ==========================================================================
   .argola — INSTRUMENTO DE JOALHERIA (argola.js). Camadas com velocidade e sentido próprios:
   coroa de precisão (horário, 90 s) · anel pontilhado (anti-horário, 60 s) · aro de ouro com reflexo correndo
   ao contrário da bead · captive bead orbitando (horário, 14 s) · brilhos em órbitas · microtexto (anti-horário).
   Tamanhos: data-tamanho="hero" | "entrar" | "medio" | "mini" (ou --argola-tam). Conteúdo: .argola-miolo/.argola-cena
   ou data-conteudo="logo|joia|selo|orelha".
   ========================================================================== */
.argola:not(svg) { --argola-tam: min(560px, 90vw); --tx: 0deg; --ty: 0deg; position: relative; width: var(--argola-tam); aspect-ratio: 1; margin-inline: auto; perspective: 1400px; -webkit-tap-highlight-color: transparent; }
/* sem JS (ou antes de montar) a argola não aparece: nunca cobre conteúdo */
.argola:not(svg):not(.arg-pronta) { visibility: hidden; }
.argola:not(svg):not(.arg-pronta) * { visibility: hidden !important; }
.argola[data-tamanho="hero"] { --argola-tam: min(84vw, 460px); }
@media (min-width: 1024px) { .argola[data-tamanho="hero"] { --argola-tam: min(40vw, 580px, calc(100vh - var(--topo-h) - 120px)); } }
.argola[data-tamanho="roteiro"] { --argola-tam: min(94vw, 62svh, 560px); }
@media (min-width: 900px) { .argola[data-tamanho="roteiro"] { --argola-tam: min(62vw, calc(100vh - var(--topo-h) - 40px), 900px); } }
.argola[data-tamanho="entrar"] { --argola-tam: min(90vw, 760px); }
@media (min-width: 1000px) { .argola[data-tamanho="entrar"] { --argola-tam: min(46vw, 86vh, 820px); } }
.argola[data-tamanho="medio"] { --argola-tam: min(86vw, 440px); }
.argola[data-tamanho="mini"] { --argola-tam: 120px; }
.arg-3d { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--tx)) rotateY(var(--ty)); will-change: transform; }
.arg-3d > * { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.arg-3d svg { overflow: visible; }
.arg-gira { will-change: transform; }
.arg-l-fundo { transform: translateZ(-70px) scale(1.06); }
.arg-l-fundo circle { fill: none; stroke: rgb(var(--tint)); stroke-width: 1; }
.arg-l-coroa { transform: translateZ(-30px); }
.arg-l-coroa path, .arg-l-coroa circle { fill: none; stroke: var(--gold); }
.arg-l-coroa .arg-marco { fill: var(--gold-2); stroke: none; }
.arg-l-pontos { transform: translateZ(-14px); }
.arg-l-pontos circle { fill: none; stroke: var(--gold-2); stroke-opacity: .45; stroke-width: 2.4; stroke-linecap: round; }
.arg-l-aro { transform: translateZ(0); filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .55)); }
.arg-l-aro .arg-aro-sombra { fill: none; stroke: #000; stroke-opacity: .5; }
.arg-l-aro .arg-chanfro { fill: none; stroke: var(--m3); stroke-opacity: .35; stroke-width: 1.5; }
.arg-l-aro .arg-borda { fill: none; stroke: #000; stroke-opacity: .35; stroke-width: 1.2; }
.arg-l-aro stop.m0 { stop-color: var(--m0); } .arg-l-aro stop.m1 { stop-color: var(--m1); } .arg-l-aro stop.m2 { stop-color: var(--m2); }
.arg-l-aro stop.m3 { stop-color: var(--m3); } .arg-l-aro stop.m4 { stop-color: var(--m4); } .arg-l-aro stop.m5 { stop-color: var(--m5); }
/* anel do aro (para reflexos e rastro): R = 36% da largura, espessura 3,4% */
.arg-anel { -webkit-mask: radial-gradient(circle closest-side, transparent 68.3%, #000 68.9%, #000 75.1%, transparent 75.7%); mask: radial-gradient(circle closest-side, transparent 68.3%, #000 68.9%, #000 75.1%, transparent 75.7%); }
.arg-l-reflexo { transform: translateZ(1px); mix-blend-mode: screen; background: conic-gradient(from 0deg, transparent 0deg, rgba(var(--tint), 0) 18deg, rgba(var(--tint), .62) 36deg, rgba(var(--tint), 0) 56deg, transparent 150deg, rgba(var(--tint), 0) 196deg, rgba(var(--tint), .32) 214deg, rgba(var(--tint), 0) 236deg, transparent 360deg); }
.arg-l-luz { transform: translateZ(2px); mix-blend-mode: screen; background: conic-gradient(from -40deg, transparent 0deg, rgba(var(--tint), .5) 40deg, transparent 80deg, transparent 360deg); opacity: .85; }
.arg-l-orbita { transform: translateZ(0); }
.arg-rastro { position: absolute; inset: 0; background: conic-gradient(from 0deg, transparent 0deg, transparent 280deg, rgba(var(--tint), 0) 292deg, rgba(var(--tint), .55) 356deg, transparent 360deg); mix-blend-mode: screen; }
.arg-bead-pos { position: absolute; left: 50%; top: 14%; width: 10.4%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.arg-bead { position: absolute; inset: 0; will-change: transform; }
.arg-bead svg { position: absolute; inset: -40%; width: 180%; height: 180%; overflow: visible; }
.arg-bead stop.m1 { stop-color: var(--m1); } .arg-bead stop.m2 { stop-color: var(--m2); } .arg-bead stop.m3 { stop-color: var(--m3); } .arg-bead stop.m5 { stop-color: var(--m5); }
.arg-bead .arg-sombra-a { stop-color: #000; stop-opacity: .55; } .arg-bead .arg-sombra-b { stop-color: #000; stop-opacity: 0; }
.arg-bead .arg-bead-luz { fill: var(--m3); fill-opacity: .8; }
.arg-l-aro .arg-bisel-a { stop-color: var(--m3); stop-opacity: .85; } .arg-l-aro .arg-bisel-b { stop-color: var(--m3); stop-opacity: 0; }
.arg-l-aro .arg-bisel-c { stop-color: #000; stop-opacity: 0; } .arg-l-aro .arg-bisel-d { stop-color: #000; stop-opacity: .55; }
.arg-l-aro .arg-chanfro2 { mix-blend-mode: normal; }
.arg-bead .arg-bead-ao { fill: none; stroke: #000; stroke-opacity: .28; stroke-width: 5; }
.arg-bead .arg-bead-reflexo { fill: none; stroke: var(--m2); stroke-opacity: .55; stroke-width: 2.5; stroke-linecap: round; }
.arg-bead .arg-bead-borda { fill: none; stroke: var(--m5); stroke-opacity: .6; stroke-width: 1; }.argola.faisca .arg-bead svg { animation: arg-faisca .9s var(--ease); }
@keyframes arg-faisca { 30% { filter: brightness(1.6) drop-shadow(0 0 18px rgba(var(--gold-rgb), .9)); } }
.arg-l-brilhos { transform: translateZ(30px); }
.arg-orb { position: absolute; inset: 0; will-change: transform; }
.arg-orb i { position: absolute; left: 50%; width: var(--e, 3%); aspect-ratio: 1; transform: translate(-50%, -50%); top: var(--top, 4%); }
.arg-orb i svg { width: 100%; height: 100%; fill: var(--m3); animation: arg-cintila var(--dur, 3.6s) ease-in-out infinite; animation-delay: var(--atraso, 0s); transform-origin: center; }
@keyframes arg-cintila { 0%, 100% { transform: scale(.2) rotate(0deg); opacity: .15; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
.arg-l-texto { transform: translateZ(4px); }
.arg-l-texto text { font-family: var(--font); font-size: 15.5px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; fill: var(--gold-2); fill-opacity: .55; }
.arg-l-numeral { transform: translateZ(-40px); }
.arg-l-numeral text { font-family: var(--font); font-weight: 800; font-size: 300px; letter-spacing: -.04em; fill: none; stroke: rgb(var(--tint)); stroke-opacity: .09; stroke-width: 1.5; }
.arg-traco-escuro { stroke: var(--sobre-metal); stroke-width: 16; }
.arg-3d > .argola-miolo { position: absolute; inset: 21%; width: auto; height: auto; border-radius: 50%; overflow: hidden; pointer-events: auto; transform: translateZ(22px); background: radial-gradient(circle at 50% 38%, rgba(var(--tint), .055), transparent 68%), radial-gradient(circle, var(--bg-2), var(--bg)); box-shadow: inset 0 0 50px rgba(0, 0, 0, .85), 0 0 0 1px rgba(var(--tint), .04); }
.argola-cena { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: scale(.92); filter: blur(8px); transition: opacity .7s var(--ease), transform 1s var(--ease), filter .7s var(--ease), visibility 0s linear .7s; }
.argola-cena.ativa { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: .18s, .18s, .18s, 0s; }
.argola-cena > svg, .argola-cena > img { width: 100%; height: 100%; overflow: visible; }
.argola-cena > img.arg-logo { width: 74%; height: auto; }
.argola.faisca .argola-miolo { animation: arg-clarao .9s var(--ease); }
@keyframes arg-clarao { 30% { box-shadow: inset 0 0 50px rgba(0, 0, 0, .85), 0 0 60px rgba(var(--gold-rgb), .35); } }
/* traços finos dentro das cenas embutidas (joia, selo) */
.arg-traco { fill: none; stroke: var(--gold-2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.argola-cena.ativa .arg-traco { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s .3s var(--ease); }
.arg-metal { fill: url(#lih-metal); }
/* modo roteiro (roteiro.js): cada camada entra no seu tempo pelas variáveis --q-* (0 → 1) */
.argola[data-modo="roteiro"] .arg-desenha { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--q-coroa, 1)); }
.argola[data-modo="roteiro"] .arg-l-coroa .arg-marco, .argola[data-modo="roteiro"] .arg-l-fundo, .argola[data-modo="roteiro"] .arg-l-pontos { opacity: var(--q-coroa, 1); }
.argola[data-modo="roteiro"] .arg-forma { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--q-aro, 1)); }
.argola[data-modo="roteiro"].aro-pronto .arg-forma, .argola[data-modo="roteiro"].coroa-pronta .arg-desenha { stroke-dasharray: none; }
.argola[data-modo="roteiro"] .arg-chanfro, .argola[data-modo="roteiro"] .arg-borda, .argola[data-modo="roteiro"] .arg-chanfro2 { opacity: var(--q-aro, 1); }
.argola[data-modo="roteiro"] .arg-l-reflexo { opacity: var(--q-reflexo, 1); }
.argola[data-modo="roteiro"] .arg-l-luz { opacity: calc(.85 * var(--q-reflexo, 1)); }
.argola[data-modo="roteiro"] .arg-3d > .argola-miolo { opacity: var(--q-miolo, 1); }
.argola[data-modo="roteiro"] .arg-l-orbita { opacity: var(--q-bead, 1); }
.argola[data-modo="roteiro"] .arg-bead-pos { transform: translate(-50%, -50%) scale(calc(.3 + .7 * var(--q-bead, 1))); }
.argola[data-modo="roteiro"] .arg-l-brilhos { opacity: var(--q-brilhos, 1); }
.argola[data-modo="roteiro"] .arg-l-texto { opacity: var(--q-texto, 1); }
.argola[data-modo="roteiro"] .arg-l-numeral { opacity: var(--q-num, 1); }
.arg-perola { fill: url(#lih-perola); }
/* gradientes compartilhados (criados pelo reflexo.js) */
.lih-defs .m0 { stop-color: var(--m0); } .lih-defs .m1 { stop-color: var(--m1); } .lih-defs .m2 { stop-color: var(--m2); }
.lih-defs .m3 { stop-color: var(--m3); } .lih-defs .m4 { stop-color: var(--m4); } .lih-defs .m5 { stop-color: var(--m5); } .lih-defs .m6 { stop-color: var(--m6); }

/* ---------- parallax (parallax.js) ---------- */
[data-parallax] { will-change: transform; transform: translate3d(0, var(--py, 0px), 0) rotate(var(--pr, 0deg)); }

/* ---------- formulários (.campo-form) ---------- */
.campo-form { display: grid; gap: 8px; }
.campo-form > label, .campo-form > .rotulo-form { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.campo-form input, .campo-form select, .campo-form textarea {
  width: 100%; min-height: 50px; padding: 14px 16px; border-radius: var(--raio-p);
  background: var(--s2); border: 1px solid rgba(var(--tint), .12); color: var(--ink);
  font-size: 16px; font-weight: 500; transition: border-color .25s, box-shadow .25s;
}
.campo-form textarea { min-height: 120px; resize: vertical; }
.campo-form input::placeholder, .campo-form textarea::placeholder { color: var(--ink-3); }
.campo-form input:focus, .campo-form select:focus, .campo-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--gold-rgb), .2); }
.campo-form .ajuda { font-size: 13px; color: var(--ink-3); }
.campo-form .erro-campo { font-size: 13px; color: var(--erro); min-height: 1em; }
.campo-form[data-erro] input, .campo-form[data-erro] select, .campo-form[data-erro] textarea { border-color: var(--erro); }
.isca { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aviso-form { padding: 12px 14px; border-radius: 12px; font-size: 14px; border: 1px solid var(--line); }
.aviso-form.erro { color: var(--erro); border-color: color-mix(in srgb, var(--erro) 45%, transparent); background: color-mix(in srgb, var(--erro) 8%, transparent); }
.aviso-form.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 8%, transparent); }

/* ---------- .trilho — vitrine horizontal com setas (estilo Netflix) ---------- */
.trilho { position: relative; }
.trilho-cab { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.trilho-cab .secao-cab { margin-bottom: 0; flex: 1 1 320px; }
.trilho-setas { display: none; gap: 8px; flex: none; }
@media (hover: hover) and (pointer: fine) { .trilho-setas { display: flex; } }
.trilho-seta {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(var(--tint), .02); color: var(--ink);
  transition: border-color .3s, background .3s, opacity .3s, transform .2s;
}
.trilho-seta:hover { border-color: var(--line-2); background: rgba(var(--tint), .06); }
.trilho-seta:active { transform: scale(.94); }
.trilho-seta[disabled] { opacity: .3; cursor: default; }
.trilho-seta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trilho-faixa {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 64vw, 270px); gap: clamp(14px, 1.4vw, 22px);
  /* a faixa sangra até a borda da tela, alinhada ao .wrap */
  --borda: max(var(--gutter), calc(50cqw - 600px));
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--borda);
  padding: 10px var(--borda) 30px; margin: 0 calc(50% - 50cqw);
  scrollbar-width: none; list-style: none;
}
.trilho-faixa::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) { .trilho-faixa { cursor: grab; } }
.trilho-faixa.arrastando { cursor: grabbing; scroll-snap-type: none; user-select: none; -webkit-user-select: none; }
.trilho-faixa.arrastando * { pointer-events: none; }
.trilho-faixa > * { scroll-snap-align: start; }

/* ---------- .poster — peça da vitrine (módulo, e-book, produto) ---------- */
.poster {
  position: relative; display: flex; flex-direction: column; height: 100%; min-height: 360px; padding: 22px 20px 20px; border-radius: var(--raio); overflow: hidden;
  background:
    radial-gradient(90% 50% at 50% 34%, rgba(var(--tint), .06), transparent 70%),
    linear-gradient(180deg, var(--capa-1), var(--capa-2));
  border: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: transform .6s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.poster:hover, .poster:focus-visible { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 40px 70px -42px rgba(var(--gold-rgb), .4); }
.poster-num { font-size: 60px; font-weight: 800; letter-spacing: -.05em; line-height: .9; color: transparent; -webkit-text-stroke: 1px rgba(var(--gold-rgb), .6); }
.poster-arte { flex: 1; display: grid; place-items: center; padding: 14px 0; }
.poster-arte svg { width: 58%; max-width: 140px; height: auto; overflow: visible; }
.poster-arte .traco { fill: none; stroke: var(--gold-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease); }
.poster-arte .traco-2 { stroke: rgba(var(--tint), .35); }
.poster-arte .escala .traco { stroke-width: 7; }
.poster-arte .brilho { fill: url(#lih-perola); }
html.rv [data-revelar]:not(.visto) .poster .traco, html.rv .poster[data-revelar]:not(.visto) .traco { stroke-dashoffset: 1; }
.poster:hover .traco { animation: redesenha 1.4s var(--ease); }
@keyframes redesenha { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
.poster h3 { font-size: 19px; line-height: 1.15; }
.poster p { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
/* ---------- .arte-foto — imagem gerada (artes.js): <picture> WebP + JPG, vinheta escura, zoom e parallax leves ---------- */
.arte-foto { position: absolute; inset: 0; z-index: 0; display: block; overflow: hidden; pointer-events: none; background: var(--bg-2); }
.arte-foto img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--foco, 50% 50%);
  opacity: 0; scale: 1.02;
  translate: calc(var(--px, 0) * -14px) calc(var(--py, 0) * -10px + var(--rol, 0) * 70px);
  transition: opacity 1s var(--ease), scale 1.4s var(--ease), translate 1.1s var(--ease);
}
.arte-foto.carregada img { opacity: 1; }
.arte-foto.falhou { display: none; }
/* vinheta: bordas escuras e base quase preta para o texto do pôster ficar legível */
.arte-foto::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(125% 90% at 50% 38%, transparent 42%, color-mix(in srgb, var(--bg) 72%, transparent) 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 58%, transparent) 0%, transparent 24%, transparent 44%, color-mix(in srgb, var(--bg) 88%, transparent) 72%, var(--bg) 100%);
}
.com-foto:hover .arte-foto img, :is(a, button):hover .com-foto .arte-foto img, :is(a, button):focus-visible .com-foto .arte-foto img, .com-foto:focus-visible .arte-foto img { scale: 1.07; }
@media (prefers-reduced-motion: reduce) { .arte-foto img { transition: opacity .3s; translate: none; } .com-foto:hover .arte-foto img, :is(a, button):hover .com-foto .arte-foto img { scale: 1.02; } }
/* pôster público com foto: a foto ocupa o cartão inteiro; numeral e texto por cima */
.poster.com-foto { background: var(--bg-2); }
.poster.com-foto > :not(.arte-foto):not(.poster-faixa) { position: relative; z-index: 1; }
.poster.com-foto .poster-arte svg { display: none; }
.poster.com-foto .poster-num { -webkit-text-stroke: 1px rgba(var(--tint), .72); filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .6)); }
.poster.com-foto p, .poster.com-foto .poster-r { color: color-mix(in srgb, var(--ink) 78%, transparent); }
.poster-faixa { z-index: 2; }
/* capa elaborada (capa-*, ferramentas/gerar_capas_modulos.mjs): a arte já traz título, numeral, moldura e degradê,
   então sem vinheta por cima, sem deslocar com o cursor (a moldura não corta) e zoom bem curto */
.arte-capa::after { display: none; }
.arte-capa img { translate: none; object-position: 50% 50%; }
.com-foto:hover .arte-capa img, :is(a, button):hover .com-foto .arte-capa img, :is(a, button):focus-visible .com-foto .arte-capa img, .com-foto:focus-visible .arte-capa img { scale: 1.035; }
/* pôster público com capa: a capa inteira (2:3) em cima e só o resumo embaixo; numeral, título e faixa ficam só para leitor de tela */
.poster.com-capa { padding: 0; min-height: 0; }
.poster.com-capa::before { content: ""; display: block; flex: none; aspect-ratio: 2 / 3; }
.poster.com-capa > .arte-foto { inset: 0 0 auto 0; height: auto; aspect-ratio: 2 / 3; }
.poster.com-capa .poster-num, .poster.com-capa .poster-arte, .poster.com-capa .poster-faixa { display: none; }
.poster.com-capa h3, .poster.com-capa .poster-t { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.poster.com-capa p, .poster.com-capa .poster-r { margin: 0; padding: 14px 18px 18px; color: var(--ink-2); }
/* produto da loja com foto (loja-arte.js) */
.arte-produto { position: relative; display: block; width: 100%; height: 100%; align-self: stretch; justify-self: stretch; border-radius: inherit; overflow: hidden; }
.arte-produto .arte-foto::after { background: radial-gradient(120% 90% at 50% 45%, transparent 52%, color-mix(in srgb, var(--bg) 60%, transparent)); }
.poster-faixa { position: absolute; top: 18px; right: 16px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sobre-metal); background: var(--metal); background-size: 240% 100%; padding: 5px 9px; border-radius: 7px; }

/* imagem provisória (marcar sempre) */
.provisorio { position: relative; }
.provisorio::after { content: "imagem provisória"; position: absolute; left: 10px; bottom: 10px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); background: color-mix(in srgb, var(--bg) 80%, transparent); border: 1px solid var(--line); padding: 4px 8px; border-radius: 6px; }
.marca-prov { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); border: 1px dashed rgba(var(--tint), .2); border-radius: 6px; padding: 3px 7px; vertical-align: middle; white-space: nowrap; }

/* ---------- vagas (vagas.js — número real ou "—") ---------- */
.vagas { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.vagas b { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.vagas-luz { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
[data-estado="aberta"] .vagas-luz { background: var(--gold-2); animation: vagas-pulso 2.4s var(--ease) infinite; }
[data-estado="esgotada"] .vagas-luz, [data-estado="encerrada"] .vagas-luz { background: var(--erro); }
@keyframes vagas-pulso { 0% { box-shadow: 0 0 0 0 rgba(var(--gold-rgb), .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(var(--gold-rgb), 0); } }

/* lugares: uma argola por vaga (livre = metal aceso; ocupada = apagada) */
.lugares { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 2vw, 16px); }
.lugar { aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(var(--tint), .12); position: relative; transition: border-color .8s var(--ease), box-shadow .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.lugar::after { content: ""; position: absolute; width: 26%; height: 26%; right: -5%; top: 37%; border-radius: 50%; background: rgba(var(--tint), .1); transition: background .8s var(--ease); transition-delay: inherit; }
.lugares.pronto .lugar.livre { border-color: var(--gold); box-shadow: 0 0 18px -4px rgba(var(--gold-rgb), .7), inset 0 0 8px rgba(var(--gold-rgb), .25); transform: scale(1.04); }
.lugares.pronto .lugar.livre::after { background: var(--perola); }

/* ---------- .esqueleto — carregamento com brilho de metal ---------- */
.esqueleto { position: relative; overflow: hidden; border-radius: 8px; background: rgba(var(--tint), .05); color: transparent !important; min-height: 1em; display: inline-block; min-width: 6ch; }
.esqueleto::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), .16), rgba(var(--tint), .16), rgba(var(--gold-rgb), .16), transparent); animation: esqueleto 1.6s var(--ease) infinite; }
.esqueleto-linha { display: block; height: 12px; margin: 8px 0; }
.esqueleto-linha.curta { width: 55%; }
@keyframes esqueleto { to { transform: translateX(100%); } }

/* ---------- entrada em cascata (revelar.js) ---------- */
html.rv [data-revelar]:not(.fio):not(.selo):not([data-revelar="cascata"]) { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
html.rv [data-revelar].visto:not(.fio):not(.selo):not([data-revelar="cascata"]) { opacity: 1; transform: none; }
html.rv [data-revelar="cascata"] > * { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
html.rv [data-revelar="cascata"].visto > * { opacity: 1; transform: none; }
[data-revelar="cascata"] > :nth-child(2) { transition-delay: .1s; }
[data-revelar="cascata"] > :nth-child(3) { transition-delay: .2s; }
[data-revelar="cascata"] > :nth-child(4) { transition-delay: .3s; }
[data-revelar="cascata"] > :nth-child(5) { transition-delay: .42s; }
[data-revelar="cascata"] > :nth-child(6) { transition-delay: .52s; }
[data-revelar="cascata"] > :nth-child(7) { transition-delay: .62s; }
[data-revelar="cascata"] > :nth-child(n+8) { transition-delay: .7s; }

/* ==========================================================================
   CABEÇALHO — barra de vidro de ponta a ponta (nada de pílula)
   ========================================================================== */
.topo {
  position: sticky; top: 0; z-index: 50; height: var(--topo-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease);
}
.topo::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--fio-ouro); opacity: 0; transition: opacity .6s var(--ease); }
.topo.rolou { background: color-mix(in srgb, var(--bg) 90%, transparent); }
.topo.rolou::after { opacity: .4; }
.topo-in { height: 100%; display: flex; align-items: center; gap: 10px; width: min(1360px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.topo-logo { display: block; flex: none; margin-right: auto; border-radius: 8px; }
.topo-logo img { height: 38px; width: auto; }
@media (min-width: 768px) { .topo-logo img { height: 46px; } }
.topo-nav { display: none; }
.topo-nav a { position: relative; font-size: 14.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; padding: 8px 2px; transition: color .25s; }
.topo-nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 2px; height: 1px; background: var(--gold); transition: left .45s var(--ease), right .45s var(--ease); }
.topo-nav a:hover { color: var(--ink); }
.topo-nav a:hover::after, .topo-nav a[aria-current="page"]::after { left: 0; right: 0; }
.topo-nav a[aria-current="page"] { color: var(--ink); }
.topo-acoes { display: none; align-items: center; gap: 10px; }
.topo-menu {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 16px; border-radius: 12px;
  background: transparent; border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink);
  transition: border-color .3s, transform .2s;
}
.topo-menu:active { transform: scale(.96); }
.topo-menu .linhas { position: relative; width: 18px; height: 10px; }
.topo-menu .linhas::before, .topo-menu .linhas::after { content: ""; position: absolute; left: 0; height: 1.5px; border-radius: 2px; background: currentColor; transition: width .4s var(--ease), left .4s var(--ease); }
.topo-menu .linhas::before { top: 0; width: 18px; }
.topo-menu .linhas::after { bottom: 0; width: 12px; left: 6px; }
.topo-menu:hover { border-color: var(--line-2); }
.topo-menu:hover .linhas::after { width: 18px; left: 0; }
@media (min-width: 1100px) {
  .topo-in { gap: 24px; }
  .topo-nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 30px); margin-inline: auto; }
  .topo-acoes { display: flex; }
  .topo-menu { display: none; }
  .topo-logo { margin-right: 0; }
}
/* carrinho no topo com contador (some quando o carrinho está vazio; compra.js) */
.topo-carrinho { position: relative; }
.topo-carrinho-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 2px; border-radius: 10px; font-size: 11px; font-weight: 800; color: var(--sobre-metal); background: var(--metal); background-size: 200% 100%; font-variant-numeric: tabular-nums; }
.topo-carrinho-n[hidden] { display: none; }
@media (max-width: 1100px) { .topo-carrinho-t { display: none; } }

/* ---------- botão de som (som.js) ---------- */
.som-botao {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-3); transition: border-color .3s, color .3s, transform .2s;
}
.som-botao:hover { border-color: var(--line-2); color: var(--ink); }
.som-botao:active { transform: scale(.94); }
.som-ondas { display: flex; align-items: center; gap: 2.5px; height: 16px; }
.som-ondas i { display: block; width: 2px; height: 5px; border-radius: 2px; background: currentColor; }
.som-ondas i:nth-child(2) { height: 10px; } .som-ondas i:nth-child(3) { height: 7px; } .som-ondas i:nth-child(4) { height: 12px; }
.som-botao[aria-pressed="true"] { color: var(--gold-2); border-color: var(--line-2); }
.som-botao[aria-pressed="true"] .som-ondas i { animation: som-onda 1.1s ease-in-out infinite; }
.som-botao[aria-pressed="true"] .som-ondas i:nth-child(2) { animation-delay: .15s; }
.som-botao[aria-pressed="true"] .som-ondas i:nth-child(3) { animation-delay: .3s; }
.som-botao[aria-pressed="true"] .som-ondas i:nth-child(4) { animation-delay: .45s; }
@keyframes som-onda { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.som-convite {
  position: absolute; top: calc(100% + 10px); right: -8px; white-space: nowrap; pointer-events: none;
  padding: 8px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: var(--ink);
  background: var(--bg-3); border: 1px solid var(--line-2); box-shadow: var(--sombra);
  opacity: 0; transform: translateY(-4px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.som-convite::before { content: ""; position: absolute; right: 22px; top: -5px; width: 8px; height: 8px; transform: rotate(45deg); background: var(--bg-3); border-left: 1px solid var(--line-2); border-top: 1px solid var(--line-2); }
.som-convite.visivel { opacity: 1; transform: none; }

/* ---------- menu em folha (celular/tablet): sobe de baixo ---------- */
.folha { position: fixed; inset: 0; z-index: 80; visibility: hidden; transition: visibility 0s linear .6s; }
.folha.aberta { visibility: visible; transition: none; }
.folha-fundo { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .5s var(--ease); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.folha.aberta .folha-fundo { opacity: 1; }
.folha-painel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px var(--gutter) calc(20px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0; border-bottom: 0;
  transform: translateY(104%); transition: transform .6s var(--ease);
}
@media (min-width: 700px) { .folha-painel { left: auto; right: 16px; bottom: 16px; width: 420px; border-radius: 24px; border-bottom: 1px solid var(--line); max-height: calc(100dvh - 32px); } }
.folha.aberta .folha-painel { transform: none; }
.folha-painel::before { content: ""; display: block; width: 42px; height: 4px; border-radius: 4px; margin: 0 auto 6px; background: rgba(var(--tint), .18); flex: none; }
.folha-cab { display: flex; align-items: center; justify-content: space-between; padding-bottom: 6px; }
.folha-cab img { height: 32px; width: auto; }
.folha-fechar { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; background: transparent; border: 0; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.folha-fechar:hover { color: var(--ink); }
.folha-fechar .x { position: relative; width: 16px; height: 16px; }
.folha-fechar .x::before, .folha-fechar .x::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px; transform: rotate(45deg); }
.folha-fechar .x::after { transform: rotate(-45deg); }
.folha-nav { display: grid; }
.folha-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 2px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; text-decoration: none;
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .6s var(--ease), color .2s;
}
.folha-nav a i { font-style: normal; font-size: 16px; font-weight: 600; color: var(--ink-3); transition: transform .4s var(--ease), color .3s; }
.folha-nav a:hover i, .folha-nav a[aria-current="page"] i { color: var(--gold-2); transform: translateX(4px); }
.folha-nav a[aria-current="page"] { color: var(--gold-2); }
.folha.aberta .folha-nav a { opacity: 1; transform: none; }
.folha.aberta .folha-nav a:nth-child(1) { transition-delay: .08s; }
.folha.aberta .folha-nav a:nth-child(2) { transition-delay: .13s; }
.folha.aberta .folha-nav a:nth-child(3) { transition-delay: .18s; }
.folha.aberta .folha-nav a:nth-child(4) { transition-delay: .23s; }
.folha.aberta .folha-nav a:nth-child(5) { transition-delay: .28s; }
.folha-acoes { display: grid; gap: 10px; padding-top: 16px; }
body.travado { overflow: hidden; }

/* ==========================================================================
   RODAPÉ — compacto
   ========================================================================== */
.rodape { position: relative; border-top: 1px solid var(--line); padding: 36px 0 calc(22px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--ink-2); }
.rodape::before { content: ""; position: absolute; left: 30%; right: 30%; top: -1px; height: 1px; background: var(--fio-ouro); opacity: .45; }
.rodape-in { display: grid; gap: 26px; }
.rodape-marca img { height: 42px; width: auto; }
.rodape-marca p { margin-top: 10px; max-width: 34ch; font-size: 13.5px; }
.rodape-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.rodape-links a, .rodape-contato a { text-decoration: none; transition: color .2s; }
.rodape-links a:hover, .rodape-contato a:hover { color: var(--ink); }
.rodape-contato { display: grid; gap: 6px; }
.rodape-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.rodape-base a { color: var(--ink-3); text-decoration: none; }
.rodape-base a:hover { color: var(--ink-2); }
@media (min-width: 900px) {
  .rodape-in { grid-template-columns: auto 1fr auto; align-items: start; gap: 48px; }
  .rodape-links { justify-content: center; max-width: 520px; margin-inline: auto; }
  .rodape-contato { text-align: right; }
}
@media (max-width: 599px) { .rodape { text-align: center; } .rodape-marca img { margin-inline: auto; } .rodape-marca p { margin-inline: auto; } .rodape-links { justify-content: center; } .rodape-base { justify-content: center; text-align: center; } }

/* ==========================================================================
   ABERTURA (intro.js) — fio de agulha + logo se desenhando + brilho do metal
   ========================================================================== */
html.intro-on body { overflow: hidden; }
html.intro-on::before { content: ""; position: fixed; inset: 0; z-index: 9998; background: var(--bg); }
#lih-intro {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; overflow: hidden; cursor: pointer;
  background: radial-gradient(55% 40% at 50% 50%, rgba(var(--tint), .05), transparent 70%), var(--bg);
  transition: opacity .5s ease, transform .5s var(--ease);
}
#lih-intro.sai { opacity: 0; transform: scale(1.04); pointer-events: none; }
.li-palco { position: relative; width: min(240px, 56vw); display: grid; place-items: center; }
.li-fio { position: absolute; left: -40vw; right: -40vw; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), .8) 45%, var(--m3) 50%, rgba(var(--gold-rgb), .8) 55%, transparent); transform: scaleX(0); animation: li-fio 1.1s var(--ease) forwards, li-some .5s .95s ease forwards; }
.li-logo { position: relative; width: 100%; }
.li-logo svg { width: 100%; height: auto; overflow: visible; }
.li-logo svg [data-traco] { stroke: var(--gold-2); fill-opacity: 0; stroke-dasharray: 1; stroke-dashoffset: 1; animation: li-traco 1.15s var(--ease) forwards, li-preenche .6s ease forwards; }
.li-brilho { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(var(--tint), .95) 50%, transparent 62%); background-size: 300% 100%; background-position: 120% 0; -webkit-mask: var(--li-mask) center / contain no-repeat; mask: var(--li-mask) center / contain no-repeat; animation: li-brilho .9s 1.4s var(--ease) forwards; mix-blend-mode: soft-light; }
.li-pular { position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 60%, transparent); color: var(--ink-2); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.li-pular:hover { color: var(--ink); border-color: var(--line-2); }
.li-logo svg [data-traco-linha] { stroke-dasharray: 1; stroke-dashoffset: 1; animation: li-traco 1.3s var(--ease) forwards; }
#lih-intro.calmo .li-logo svg [data-traco-linha] { animation: none; stroke-dashoffset: 0; }
#lih-intro.calmo .li-fio, #lih-intro.calmo .li-brilho { display: none; }
#lih-intro.calmo .li-logo svg [data-traco] { animation: none; stroke-dashoffset: 0; fill-opacity: 1; stroke: none; }
@keyframes li-fio { to { transform: scaleX(1); } }
@keyframes li-some { to { opacity: 0; } }
@keyframes li-traco { to { stroke-dashoffset: 0; } }
@keyframes li-preenche { to { fill-opacity: 1; stroke-opacity: .2; } }
@keyframes li-brilho { to { background-position: -20% 0; } }

/* ==========================================================================
   Reduzir movimento: tudo no estado final, nada se mexe
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.rv [data-revelar], html.rv [data-revelar="cascata"] > * { opacity: 1 !important; transform: none !important; }
  .fio { --fio: 1 !important; }
  .poster .traco, .selo .selo-check, .arg-traco { stroke-dashoffset: 0 !important; }
  [data-parallax] { transform: none !important; }
}

/* idiomas (assets/js/base/i18n.js): Escola/SSO esperam o dicionário antes de aparecer (no máximo 1,5 s) */
html.i18n-espera body { visibility: hidden; }
/* build de produção: <picture> não muda o layout da <img> */
picture{display:contents}
