/* =====================================================================
   OBELISCO · TEMA — a identidade visual (nasceu da ficha do Ordem 2)
   Fundo de ardósia azul-esverdeada quase preta, névoa e cinzas; texto cor de osso;
   títulos em letras pintadas (giz/pincel seco com escorridos) e a faixa de pincel clara
   como destaque. Sem dourado.
   Este arquivo é a base para o hub e, depois, para todos os sites do Obelisco.
   ===================================================================== */
@import url('fontes/fontes.css');

:root {
  --v-breu: #060a0c;       /* o fundo */
  --v-ardosia: #0c1418;    /* painéis */
  --v-fumo: #16232a;       /* o que sobe um nível (hover, campos) */
  --v-linha: rgba(var(--to2, 214,208,192),.12);
  --v-linha2: rgba(var(--to2, 214,208,192),.28);
  --v-nevoa: #8b979a;      /* texto de apoio */
  --v-osso: rgb(var(--to1, 236,229,212));       /* texto */
  --v-osso2: rgb(var(--to2, 214,208,192));
  --v-papel: rgb(var(--tpa, 242,236,223));      /* a faixa de pincel clara */
  --v-tinta: #0f151a;      /* texto sobre o papel */
  --v-sangue: #d65a62;     /* ao vivo / perigo (só isso) */
  --v-f-titulo: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --v-f-ui: 'Jost', 'Segoe UI', system-ui, sans-serif;
  --v-f-lema: 'Cormorant Garamond', Georgia, serif;   /* a frase em itálico debaixo dos títulos */
  --v-moldura: rgba(var(--tmo, 182,169,155),.3);              /* as linhas finas envelhecidas das molduras */
  /* compatibilidade: o que ainda usa os nomes antigos passa a sair nas cores novas */
  --lm-f-titulo: var(--v-f-titulo);
  --lm-f-ui: var(--v-f-ui);
  color-scheme: dark;
}

/* ---------- céu: textura, duas névoas e as cinzas (camada fixa atrás de tudo) ---------- */
.limiar-ceu { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: var(--v-breu); }
.limiar-ceu .tx { position: absolute; inset: -3%; background: url('hub/nevoa-pura.webp') center / cover no-repeat; opacity: .9;
  animation: limiar-deriva 60s ease-in-out infinite alternate; filter:var(--tom-img,none) }
.limiar-ceu .nv { position: absolute; inset: -40px; opacity: 0; transition: opacity 1.6s ease; overflow: hidden; --t: 900px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 50%, #000 15%, transparent 90%);
          mask-image: radial-gradient(ellipse 70% 70% at 60% 50%, #000 15%, transparent 90%); }
.limiar-ceu .nv::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(100% + var(--t));
  background: var(--nv) 0 0 / var(--t) auto repeat; will-change: transform; animation: limiar-nevoa 80s linear infinite; filter:var(--tom-nevoa,none) }
.limiar-ceu .nv.pronta { opacity: .2; }
.limiar-ceu .nv.b { --t: 1400px; }
.limiar-ceu .nv.b.pronta { opacity: .11; }
.limiar-ceu .nv.b::before { animation-duration: 170s; animation-direction: reverse; }
.limiar-ceu .vinheta { position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 85% at 55% 45%, transparent 35%, rgb(from rgba(4, 6, 8, .82) var(--tr, r) var(--tg, g) var(--tb, b) / alpha) 100%),
              linear-gradient(90deg, rgb(from rgba(5, 8, 10, .78) var(--tr, r) var(--tg, g) var(--tb, b) / alpha), rgb(from rgba(5, 8, 10, .25) var(--tr, r) var(--tg, g) var(--tb, b) / alpha) 46%, rgb(from rgba(5, 8, 10, 0) var(--tr, r) var(--tg, g) var(--tb, b) / alpha) 70%); }
.limiar-ceu canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* "Sem artes de IA" (app): o fundo vira a névoa feita só com código já na hora */
html:root .limiar-ceu .tx { background-image: url('hub/nevoa-pura.webp')}
@keyframes limiar-nevoa { to { transform: translate3d(calc(-1 * var(--t)), 0, 0); } }
@keyframes limiar-deriva { to { transform: scale(1.04) translate3d(-1%, -.6%, 0); } }

/* ---------- letras pintadas ---------- */
.limiar-pintado { margin: 0; line-height: 0; font-family: var(--v-f-titulo); font-weight: 700; color: var(--v-osso); }
.limiar-pintado canvas { display: block; max-width: 100%; height: auto !important; filter: var(--tom-f, none); }
.limiar-pintado canvas + canvas { margin-top: var(--junta, -.28em); }
/* antes de pintar (fonte carregando): as mesmas letras, limpas, no mesmo lugar */
.limiar-pintado .cru { display: block; line-height: 1.05; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- botões ---------- */
.vb { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--v-linha2); background: rgb(from rgba(8, 12, 15, .72) var(--tr, r) var(--tg, g) var(--tb, b) / alpha); color: var(--v-osso2); cursor: pointer;
  font: 500 13.5px var(--v-f-ui); letter-spacing: .01em; white-space: nowrap; transition: color .18s, border-color .18s, background .18s; }
.vb:hover { color: var(--v-papel); border-color: var(--v-osso2); }
.vb:focus-visible, .limiar-foco:focus-visible { outline: 2px solid var(--v-osso); outline-offset: 3px; }
.vb.mini { height: 28px; padding: 0 12px; font-size: 12.5px; }
.vb.ic { width: 38px; padding: 0; }
.vb.ic svg { width: 18px; height: 18px; }
.vb[hidden] { display: none; }
/* o destaque: a faixa de pincel clara (a imagem vem do pintor: --tira) */
.vb.tira { position: relative; isolation: isolate; border: 0; background: none; color: var(--v-tinta); height: 46px; padding: 0 30px;
  font: 700 14px var(--v-f-titulo); letter-spacing: .14em; text-transform: uppercase; }
.vb.tira::before { content: ""; position: absolute; inset: -4px -8px; z-index: -1; background: var(--tira, var(--v-papel)) center / 100% 100% no-repeat;
  filter: var(--tom-f,) drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.vb.tira:hover { color: #000; }
.vb.tira:hover::before { transform: scale(1.03, 1.08); }
.vb.perigo { border-color: rgba(214, 90, 98, .5); color: #f2a7ac; }
.vb.perigo:hover { background: rgba(214, 90, 98, .14); color: #ffd3d6; }

/* ---------- campos ---------- */
.limiar-campo { width: 100%; height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid #24333b; background: rgb(from rgba(5, 8, 10, .82) var(--tr, r) var(--tg, g) var(--tb, b) / alpha);
  color: var(--v-osso); font: 400 14.5px var(--v-f-ui); outline: none; transition: border-color .18s; }
.limiar-campo::placeholder { color: #66737a; }
.limiar-campo:focus { border-color: var(--v-osso2); }

@media (prefers-reduced-motion: reduce) {
  .limiar-ceu .tx, .limiar-ceu .nv::before { animation: none; }
}

/* ---------- letras pintadas soltas (como o nome do personagem no Ordem 2): cada letra flutua sozinha ---------- */
.limiar-letras { position: relative; display: block; line-height: 0; white-space: nowrap; filter: var(--tom-f,) drop-shadow(0 6px 18px rgba(0, 0, 0, .55)); }
.limiar-letras .ln { display: block; white-space: nowrap; line-height: 0; }
.limiar-letras .l { display: inline-block; vertical-align: top; line-height: 0; transform: translateY(var(--y, 0)) rotate(var(--r, 0deg));
  animation: limiar-letra var(--d, 6s) ease-in-out var(--a, 0s) infinite; will-change: transform; }
.limiar-letras .l canvas { display: block; }
.limiar-letras.entra .l canvas { animation: limiar-letra-entra 1s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes limiar-letra { 0%, 100% { transform: translateY(var(--y, 0)) rotate(var(--r, 0deg)); } 50% { transform: translateY(calc(var(--y, 0px) - 4px)) rotate(calc(var(--r, 0deg) + .9deg)); } }
@keyframes limiar-letra-entra { from { opacity: 0; transform: translateY(-26px) scale(1.08); filter: blur(10px); } }
@media (prefers-reduced-motion: reduce) { .limiar-letras .l, .limiar-letras.entra .l canvas { animation: none; } }

/* =====================================================================
   PEÇAS DOS SITES (as mesmas do Início): moldura com cantos, rótulo em faixa de pincel,
   título pintado, lema em itálico, a paisagem do topo, cartões com ilustração e a chegada em sequência.
   ===================================================================== */
:root { --v-canto: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' fill='none' stroke='%23b6a99b' stroke-opacity='.8' stroke-width='1.2'%3E%3Cpath d='M1 22V8l7-7h14'/%3E%3Cpath d='M5 13V9l4-4h4' stroke-opacity='.45'/%3E%3Cpath d='M1 1l3 3' stroke-opacity='.5'/%3E%3C/svg%3E"); }
.v-moldura { position: relative; border: 1px solid var(--v-moldura); }
.v-moldura::after { content: ""; position: absolute; inset: -1px; pointer-events: none; z-index: 3; background: var(--v-canto) left top / 26px no-repeat; }
.v-moldura > .v-cantos { position: absolute; inset: -1px; pointer-events: none; z-index: 3; }
.v-moldura > .v-cantos::before, .v-moldura > .v-cantos::after, .v-moldura > .v-cantos > i { content: ""; position: absolute; width: 26px; height: 26px; background: var(--v-canto) center / 26px no-repeat; }
.v-moldura > .v-cantos::before { right: 0; top: 0; transform: scaleX(-1); }
.v-moldura > .v-cantos::after { right: 0; bottom: 0; transform: scale(-1); }
.v-moldura > .v-cantos > i { left: 0; bottom: 0; transform: scaleY(-1); }
.v-moldura::after, .v-moldura > .v-cantos::before, .v-moldura > .v-cantos::after, .v-moldura > .v-cantos > i { opacity: .7; transition: opacity .35s, filter .35s; }
.v-acende:hover::after, .v-acende:hover > .v-cantos::before, .v-acende:hover > .v-cantos::after, .v-acende:hover > .v-cantos > i,
.v-acende:focus-visible::after { opacity: 1; filter: brightness(1.5); }

.v-rot { display: flex; align-items: center; gap: 22px; margin: 0; }
.v-rot > span { position: relative; isolation: isolate; padding: 7px 46px 6px 24px; font: 700 12.5px var(--v-f-titulo); letter-spacing: .22em; text-transform: uppercase; color: var(--v-tinta); white-space: nowrap; }
.v-rot > span::before { content: ""; position: absolute; inset: -3px -4px -3px -10px; z-index: -1; background: var(--tira, var(--v-papel)) center / 100% 100% no-repeat; filter: var(--tom-f,) drop-shadow(0 4px 8px rgba(0, 0, 0, .45)); }
.v-rot::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--v-moldura), transparent); }

.v-kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 8px 4px; font: 600 11.5px var(--v-f-titulo); letter-spacing: .42em; text-transform: uppercase; color: var(--v-osso2); }
.v-kicker::after { content: ""; width: 46px; height: 1px; background: var(--v-moldura); }
.v-titulo { margin: 0; min-height: 60px; font: 700 clamp(34px, 4.4vw, 64px) / 1.05 var(--v-f-titulo); letter-spacing: .04em; text-transform: uppercase; color: var(--v-osso); }
.v-lema { margin: -14px 0 0 6px; font: italic 500 clamp(18px, 1.5vw, 22px) var(--v-f-lema); color: var(--v-osso2); text-shadow: 0 2px 10px #000; }

.v-topo-arte::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 62% 85% at 34% 46%, rgb(from rgba(5, 9, 11, .88) var(--tr, r) var(--tg, g) var(--tb, b) / alpha), rgb(from rgba(5, 9, 11, .55) var(--tr, r) var(--tg, g) var(--tb, b) / alpha) 50%, rgb(from rgba(5, 9, 11, .12) var(--tr, r) var(--tg, g) var(--tb, b) / alpha) 82%), linear-gradient(0deg, rgb(from rgba(5, 9, 11, .6) var(--tr, r) var(--tg, g) var(--tb, b) / alpha), transparent 60%); }
.v-topo-arte { opacity: .8; position: absolute; right: -18px; top: -14px; width: min(1940px, calc(100% + 18px)); height: 394px; z-index: 0; pointer-events: none;
  background: var(--arte, none) right 28% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .22), #000 50%), linear-gradient(0deg, transparent, #000 45%); -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, rgba(0, 0, 0, .22), #000 50%), linear-gradient(0deg, transparent, #000 45%); mask-composite: intersect;
  transform: translate3d(calc(var(--mx, 0) * -14px), calc(var(--my, 0) * -6px), 0); transition: transform .9s cubic-bezier(.2, .8, .2, 1); filter:var(--tom-img,none) }

.v-surge { animation: v-surge .8s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--n, 0) * 60ms + 200ms); }
@keyframes v-surge { from { opacity: 0; transform: translateY(14px); } }
.limiar-estrela { display: block; }
@media (prefers-reduced-motion: reduce) { .v-surge { animation: none; } .v-topo-arte { transform: none !important; } }

/* "menos movimento" (Perfil → Neste computador): sem névoa andando, sem letras chegando */
html.limiar-calmo .limiar-ceu .nv, html.limiar-calmo .limiar-ceu .nv::before, html.limiar-calmo .limiar-ceu .nv::after { animation: none !important; }
html.limiar-calmo .limiar-letras .l, html.limiar-calmo .limiar-letras.entra .l canvas { animation: none !important; }
