/* leandro.tv - geometria glitch + meio-tom. Sem fontes remotas, sem estilo inline. */
:root {
  color-scheme: dark;
  --bg: #060607;
  --fg: #f6f6f4;
  --dim: #cfd0d2;
  --mut: #aeb0b3;
  --ln: rgba(255, 255, 255, .26);
  --ln2: rgba(255, 255, 255, .12);
  --a: #3dffc0;
  --pad: clamp(16px, 3.4vw, 52px);
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: "Arial Black", "Helvetica Neue", Arial, "Segoe UI", Roboto, system-ui, sans-serif;
  --txt: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  min-height: 100%;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  overflow-x: hidden;
  color: var(--fg);
  font-family: var(--txt);
  -webkit-font-smoothing: antialiased;
}

/* ---------- camadas de fundo ---------- */
.fundo, #arte, .veu { position: fixed; inset: 0; width: 100%; pointer-events: none; }
.fundo {
  z-index: 0; overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--bg);
}
.fundo i { position: absolute; display: block; }
.f-anel { width: min(86dvh, 70vw); aspect-ratio: 1; right: -12vw; top: -10dvh; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); }
.f-disco {
  width: min(62dvh, 50vw); aspect-ratio: 1; right: 6vw; top: 8dvh; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .5) 1.2px, transparent 1.8px) 0 0 / 9px 9px;
  -webkit-mask-image: radial-gradient(circle at 30% 28%, #000 0, transparent 72%);
  mask-image: radial-gradient(circle at 30% 28%, #000 0, transparent 72%);
}
.f-faixa { right: 0; bottom: 34dvh; width: 44vw; height: 56px; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .3) 0 1px, transparent 1px 8px); }
.f-faixa.b { right: auto; left: 0; bottom: auto; top: 14dvh; width: 26vw; height: 30px; }
.f-x {
  width: 44px; height: 44px; right: 26vw; top: 24dvh;
  background:
    linear-gradient(45deg, transparent 42%, rgba(255, 255, 255, .78) 42% 58%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, rgba(255, 255, 255, .78) 42% 58%, transparent 58%);
}
#arte { z-index: 0; height: 100dvh; display: block; opacity: 0; }
html.pronto #arte { opacity: 1; transition: opacity .5s linear; }
html.pronto .fundo { opacity: 0; transition: opacity .5s linear; }

/* gradientes verde (menta) e roxo, sutis, por cima do canvas (que e opaco) e sob o veu escuro.
   So transform: a deriva lenta roda no compositor e quase nao custa bateria. */
.degrade {
  position: fixed; inset: -22%; z-index: 0; pointer-events: none; will-change: transform;
  background:
    radial-gradient(56% 50% at 94% 4%, rgba(109, 61, 255, .56), transparent 72%),
    radial-gradient(50% 46% at 2% 64%, rgba(61, 255, 192, .46), transparent 72%),
    radial-gradient(38% 34% at 90% 74%, rgba(61, 255, 192, .26), transparent 72%),
    radial-gradient(44% 38% at 42% 6%, rgba(109, 61, 255, .26), transparent 72%),
    radial-gradient(40% 32% at 60% 52%, rgba(61, 255, 192, .13), transparent 72%);
  animation: deriva 32s ease-in-out infinite alternate;
}
@keyframes deriva {
  from { transform: translate3d(2.5%, -1.5%, 0) scale(1); }
  to   { transform: translate3d(-2.5%, 2%, 0) scale(1.08); }
}

/* escurecimento sob o texto (so onde ha texto) + vinheta */
.veu {
  z-index: 1; height: 100dvh;
  background:
    linear-gradient(to top, rgba(5, 5, 6, .9) 0, rgba(5, 5, 6, .55) 16%, rgba(5, 5, 6, 0) 36%),
    radial-gradient(ellipse at 62% 38%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .5) 100%);
}
.veu::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(5, 5, 6, .88) 0, rgba(5, 5, 6, .74) 34%, rgba(5, 5, 6, .55) 58%, rgba(5, 5, 6, .2) 74%, rgba(5, 5, 6, 0) 88%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 8%, #000 26%);
  mask-image: linear-gradient(to bottom, transparent 8%, #000 26%);
}
@media (max-aspect-ratio: 5/6) {
  .veu {
    background:
      linear-gradient(to top, rgba(5, 5, 6, .93) 0, rgba(5, 5, 6, .84) 34%, rgba(5, 5, 6, .5) 52%, rgba(5, 5, 6, 0) 70%),
      radial-gradient(ellipse at 60% 30%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .5) 100%);
  }
  .veu::before { display: none; }
}

/* texto vertical contornado (decoracao) */
.vert {
  display: none; position: fixed; z-index: 1; pointer-events: none;
  right: calc(var(--pad) * .6); top: 50%; transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font: 900 clamp(40px, 7dvh, 76px) / 1 var(--sans); letter-spacing: -.01em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .42); white-space: nowrap;
}

/* ---------- conteudo ---------- */
.topo, .nucleo, .pe { position: relative; z-index: 3; }
.topo {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 16px; padding: calc(var(--pad) * .85) var(--pad) 0;
}
.rotulo, .selo {
  display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 12px;
  font: 700 13px / 1 var(--mono); letter-spacing: .1em;
  background: rgba(6, 6, 7, .78); border: 1px solid var(--ln);
}
.rotulo::before { content: ""; width: 8px; height: 8px; background: var(--a); }
.selo { font-weight: 400; letter-spacing: .04em; color: var(--dim); }
.selo i { width: 7px; height: 7px; border-radius: 50%; background: var(--a); animation: pisca 1.6s steps(1, end) infinite; }

.nucleo {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(36px, 8dvh, 120px) var(--pad) clamp(16px, 3.2dvh, 36px);
}
h1 {
  font-family: var(--sans); font-weight: 900;
  font-size: 17vw;
  font-size: min(17.6vw, max(2.6rem, min(27dvh, calc(42dvh - 150px), 13.5rem)));
  line-height: .86; letter-spacing: -.045em; color: var(--fg);
}
/* cada linha do titulo ganha uma tarja escura translucida: garante contraste sobre a arte */
h1 span {
  display: block; width: fit-content; margin-left: -.06em; padding: .03em .06em 0;
  background: rgba(5, 5, 6, .62); -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
h1 .ponto { display: inline; width: auto; margin: 0; padding: 0; background: none; }
.vazado { letter-spacing: -.012em; padding-bottom: .17em; }
@supports (-webkit-text-stroke: 1px #fff) {
  .vazado { color: transparent; -webkit-text-stroke: 2px #fff; -webkit-text-stroke: max(1.5px, .012em) #fff; paint-order: stroke fill; }
}
.vazado .ponto { display: inline; color: var(--a); -webkit-text-stroke: 0; }
.lead {
  margin-top: clamp(18px, 3.4dvh, 36px); max-width: 34ch;
  font-size: clamp(1.08rem, .55rem + 1.5vw, 1.4rem); line-height: 1.45; color: var(--dim);
}
@media (max-height: 420px) { .lead { width: fit-content; padding: .2em .4em; margin-left: -.4em; background: rgba(5, 5, 6, .8); } }
.acoes { margin-top: clamp(18px, 3dvh, 30px); }
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; min-width: 44px; padding: 0 24px;
  background: var(--fg); color: #060607; text-decoration: none;
  font: 700 1.05rem / 1 var(--mono); letter-spacing: .04em;
  transition: transform .15s steps(2, end), box-shadow .15s steps(2, end), background-color .15s steps(2, end);
}
.botao svg { width: 16px; height: 16px; flex: none; }
.botao:hover { background: var(--a); transform: translate(-3px, -3px); box-shadow: 4px 4px 0 rgba(255, 255, 255, .9); }
.botao:focus-visible, .botao:active { background: var(--a); }
.botao:focus-visible { outline: 2px solid var(--a); outline-offset: 5px; }

.pe {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px;
  margin: 0 var(--pad); padding: 14px 0 var(--pad) 0; border-top: 1px solid var(--ln2);
  font: 12px / 1.4 var(--mono); letter-spacing: .06em; color: var(--mut);
}
.hud { display: flex; flex-wrap: wrap; gap: 4px 18px; text-transform: uppercase; }
.hud span { white-space: nowrap; }

@keyframes pisca { 50% { opacity: .15; } }
@keyframes entra { from { opacity: 0; transform: translateY(12px); } }
.topo, h1, .lead, .acoes { animation: entra .7s cubic-bezier(.2, .7, .2, 1) both; }
h1 { animation-delay: .08s; } .lead { animation-delay: .2s; } .acoes { animation-delay: .3s; }

/* ---------- telas largas ---------- */
@media (min-width: 900px) {
  .vert { display: block; }
}
@media (max-width: 560px) {
  .opc { display: none; }
  .selo { letter-spacing: .02em; }
}
@media (max-height: 460px) and (orientation: landscape) {
  h1 { font-size: max(2rem, min(8.4vw, 24dvh)); line-height: 1.02; }
  h1 span { display: inline; margin-left: 0; }
  .vazado { padding-bottom: 0; }
  .nucleo { padding-top: 14px; }
  .lead { margin-top: 12px; }
  .acoes { margin-top: 14px; }
}

/* ---------- movimento reduzido / quadro congelado ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
html.quieto *, html.quieto *::before, html.quieto *::after { animation: none !important; transition: none !important; }

/* celular: a fonte do sistema tem contornos sobrepostos e o traco vazado mostra as linhas internas.
   Preenche com a cor do fundo e deixa so o contorno externo; mais respiro entre as linhas. */
@media (max-width: 699px) {
  h1 { line-height: .98; }
  .vazado { letter-spacing: .02em; padding-bottom: .12em; color: #060607; -webkit-text-stroke: 0; text-shadow: 0 -.016em 0 #fff, .016em -.016em 0 #fff, .016em 0 0 #fff, .016em .016em 0 #fff, 0 .016em 0 #fff, -.016em .016em 0 #fff, -.016em 0 0 #fff, -.016em -.016em 0 #fff; }
}

/* ---------- menu em tela cheia (interface provisoria) ---------- */
.menu-btn { cursor: pointer; border: 0; }
.acoes { display: flex; flex-wrap: wrap; gap: 10px; }
html.menu-aberto { overflow: hidden; }
.menu[hidden] { display: none; }
.menu {
  position: fixed; inset: 0; z-index: 50; display: flex; overflow-y: auto; overscroll-behavior: contain;
  height: 100dvh; padding: calc(var(--pad) * .9) var(--pad);
  background:
    radial-gradient(56% 50% at 94% 4%, rgba(109,61,255,.42), transparent 72%),
    radial-gradient(50% 46% at 2% 70%, rgba(61,255,192,.30), transparent 72%),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 56px 56px,
    rgba(6,6,7,.985);
  clip-path: inset(0 0 0 100%); transition: clip-path .42s cubic-bezier(.7,0,.2,1);
}
.menu.aberto { clip-path: inset(0 0 0 0); }
.menu-caixa { min-width: 0; width: min(100%, 860px); margin: auto; }
.menu-topo { margin: 0 0 clamp(18px, 4dvh, 40px); display: flex; justify-content: space-between; align-items: center; gap: 16px; font: 700 .8rem/1 var(--mono); letter-spacing: .1em; color: var(--dim); }
.menu-topo span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; background: var(--a); }
.menu-x {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; cursor: pointer;
  border: 1px solid var(--ln); background: rgba(6,6,7,.78); color: var(--fg); font: 700 .8rem/1 var(--mono); letter-spacing: .1em;
}
.menu-x i { width: 14px; height: 14px; background: linear-gradient(45deg, transparent 42%, #fff 42% 58%, transparent 58%), linear-gradient(-45deg, transparent 42%, #fff 42% 58%, transparent 58%); }
.menu-x:hover, .menu-x:focus-visible { background: var(--a); color: #060607; }
.menu-x:hover i, .menu-x:focus-visible i { filter: invert(1); }
.menu-lista { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ln); }
.menu-lista li { border-bottom: 1px solid var(--ln); }
.menu-item {
  width: 100%; display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 64px; padding: 10px 4px; text-align: left; text-decoration: none; cursor: pointer;
  background: transparent; border: 0; color: var(--fg); font: 900 clamp(1.5rem, .8rem + 4.4vw, 3.4rem)/1 var(--sans); letter-spacing: -.035em;
  transition: background-color .15s steps(2, end), color .15s steps(2, end), padding-left .15s steps(2, end);
}
.menu-item b { font: 700 .8rem/1 var(--mono); letter-spacing: .08em; color: var(--a); }
.menu-item em { white-space: nowrap; font: 400 .72rem/1 var(--mono); letter-spacing: .08em; font-style: normal; color: var(--dim); border: 1px solid var(--ln); padding: 6px 8px; }
.menu-item:disabled { cursor: default; color: rgba(246,246,244,.5); }
a.menu-item:hover, a.menu-item:focus-visible { background: var(--a); color: #060607; padding-left: 14px; }
a.menu-item:hover b, a.menu-item:hover em, a.menu-item:focus-visible b, a.menu-item:focus-visible em { color: #060607; border-color: #060607; }
.menu-nota { margin: 18px 0 0; font: 400 .72rem/1.3 var(--mono); letter-spacing: .08em; color: var(--dim); opacity: .8; }
.menu-lista li, .menu-topo, .menu-nota { opacity: 0; translate: 24px 0; transition: opacity .35s ease, translate .35s ease; }
.menu.aberto .menu-lista li, .menu.aberto .menu-topo, .menu.aberto .menu-nota { opacity: 1; translate: 0 0; }
.menu.aberto .menu-lista li:nth-child(1) { transition-delay: .16s; } .menu.aberto .menu-lista li:nth-child(2) { transition-delay: .23s; }
.menu.aberto .menu-lista li:nth-child(3) { transition-delay: .30s; } .menu.aberto .menu-lista li:nth-child(4) { transition-delay: .37s; } .menu.aberto .menu-nota { transition-delay: .44s; }
@media (max-width: 699px) { .menu-item { grid-template-columns: 2.2rem minmax(0, 1fr) auto; min-height: 58px; } }
@media (prefers-reduced-motion: reduce) { .menu, .menu * { transition: none !important; } .menu { clip-path: none; } .menu-lista li, .menu-topo, .menu-nota { opacity: 1; translate: 0 0; } }
