
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --void: #020308;
    --aurora-blue: #4fc3f7;
    --aurora-purple: #b388ff;
    --aurora-pink: #f48fb1;
    --aurora-gold: #ffd54f;
    --menta: #3bd9b0;
    --eletrico: #5b8def;
    /* ================= CATEGORIAS DE TEXTO =================
       SEIS categorias, um jogo de controles por categoria, valendo para
       TODAS as ocorrências dela no site:
         TÍTULO   — todos os títulos (seções, nome do livro)
         FRASE    — as frases grandes soltas (tese, ponte)
         TEXTO    — todo texto no corpo da página (abertura + bio)
         AUXILIAR — texto dentro de caixas (cards, ficha do livro, selo)
         ETIQUETA — todas as linhas em maiúsculas (rótulos, botões, rodapé)
         NOME     — o nome do site (elemento único)
       Exceção pedida de propósito: COORDENADAS, com fonte/tamanho próprios. */

    /* ---- TAMANHOS: regulagem final do Fabiano (29/08/2026) ----
       Cada categoria vai de um valor pensado para celular (375px) até o valor
       que ele aprovou no desktop (1366px), interpolando sozinha no meio.
       Os tamanhos de celular NÃO são o desktop encolhido em proporção: texto
       pequeno tem piso (16px de leitura, 12px de etiqueta) e título grande
       encolhe mais que texto miúdo — senão a etiqueta some e a linha de
       leitura fica com 32 letras. */
    --t-nome:     clamp(2.125rem, 1.605rem + 2.220vw, 3.500rem);  /* 34   → 56   */
    --t-titulo:   clamp(1.688rem, 1.378rem + 1.322vw, 2.506rem);  /* 27   → 40,1 */
    --t-frase:    clamp(1.313rem, 1.097rem + 0.918vw, 1.881rem);  /* 21   → 30,1 */
    --t-texto:    clamp(1.156rem, 0.979rem + 0.757vw, 1.625rem);  /* 18,5 → 26   */
    --t-aux:      clamp(1.031rem, 0.948rem + 0.353vw, 1.250rem);  /* 16,5 → 20   */
    --t-etiqueta: clamp(0.844rem, 0.735rem + 0.464vw, 1.131rem);  /* 13,5 → 18,1 */
    --t-coord:    clamp(0.781rem, 0.722rem + 0.252vw, 0.938rem);  /* 12,5 → 15   */

    /* espessura por categoria */
    --w-titulo: 700; --w-frase: 300; --w-texto: 300; --w-aux: 400; --w-etiqueta: 600;

    /* espaço entre linhas por categoria */
    --lh-frase: 1.90; --lh-texto: 1.72; --lh-aux: 1.68;

    /* opacidade por categoria */
    --op-titulo: 1; --op-frase: .86; --op-texto: .80; --op-aux: .86; --op-etiqueta: .62;

    /* espaço entre letras por categoria */
    --ls-titulo: .02em; --ls-etiqueta: .18em; --ls-coord: .18em;

    /* fonte das coordenadas — a exceção */
    --fonte-coord: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;

    /* nomes antigos: todos apontam para a sua categoria (zero valor próprio) */
    --t-rotulo: var(--t-etiqueta); --t-apoio: var(--t-aux); --t-corpo: var(--t-texto);
    --t-lead: var(--t-frase); --t-abertura: var(--t-texto); --t-hero: var(--t-nome);
    --w-rotulo: var(--w-etiqueta); --w-apoio: var(--w-aux); --w-corpo: var(--w-texto);
    --w-lead: var(--w-frase); --w-atmosfera: var(--w-texto); --w-forte: 600;
    --lh-apoio: var(--lh-aux); --lh-corpo: var(--lh-texto);
    --lh-lead: var(--lh-frase); --lh-abertura: var(--lh-texto);
    --op-rotulo: var(--op-etiqueta); --op-apoio: var(--op-aux); --op-corpo: var(--op-texto);
    --op-lead: var(--op-frase); --op-atmosfera: var(--op-texto);
    --ls-rotulo: var(--ls-etiqueta);

    /* bases de cor (RGB puro, para a opacidade ser controlada à parte).
       Um branco só para todo o texto de leitura — inclusive a abertura. */
    --rgb-leitura: 228,222,245;
    --rgb-rotulo: 79,195,247;

    --tom-titulo: rgba(240,236,255, var(--op-titulo));
    --tom-leitura: rgba(var(--rgb-leitura), var(--op-texto));
    --tom-apagado: rgba(200,190,220, var(--op-etiqueta));

    /* a abertura É texto — mesma cor, mesmo tudo da categoria TEXTO */
    --tom-atmosfera: rgba(var(--rgb-leitura), var(--op-texto));

    /* nomes antigos mantidos: o hero herdado do site usa estes */
    --text-primary: var(--tom-titulo);
    --text-muted: rgba(220,210,240,0.72);
    --text-read: var(--tom-leitura);
    --card-border: rgba(179,136,255,0.18);
    --card-bg: rgba(10,6,28,0.55);

    /* fonte de display — trocável pelo seletor */
    --display: 'Chakra Petch', 'Segoe UI', sans-serif;
    --display-track: .16em;
    --h1-size: var(--t-hero);
    --h1-track: .02em;
  }

  html { scroll-behavior: smooth; }

  body {
    min-height: 100vh;
    background: var(--void);
    color: var(--text-primary);
    font-family: 'Crimson Pro', Georgia, serif;
    /* clip, nunca hidden: "hidden" transforma o body em área de rolagem
       própria, e aí o celular deixa de ancorar as camadas fixas na tela —
       elas passam a ser reposicionadas a cada quadro e escorregam atrás do
       dedo. "clip" corta o transbordo sem criar área de rolagem. */
    overflow-x: clip;
  }
  @supports not (overflow: clip) {
    body { overflow-x: hidden; }
  }


  /* Todas as camadas de fundo entram na GPU (translateZ) e avisam que só a
     opacidade/posição muda. Sem isso o celular repinta o fundo junto com a
     rolagem, e a imagem parece escorregar atrás do dedo. */
  .bg-image, .bg-overlay, .vignette, #stars {
    position: fixed; top: 0; left: 0; right: 0;
    height: 100vh; height: 100lvh;   /* lvh não muda quando a barra do navegador some */
    transform: translateZ(0);
    backface-visibility: hidden;
    pointer-events: none;
  }

  .bg-image {
    z-index: 0;
    /* imagem já entregue escura e saturada: o filtro em CSS era refeito a
       cada quadro numa camada de tela cheia, e era o que travava a rolagem */
    background-image: url('./bg-2.webp');
    background-size: cover;
    background-position: center 65%;
    background-repeat: no-repeat;
  }
  /* celular: imagem bem mais leve (52KB em vez de 177KB) — mesmo enquadramento */
  @media (max-width: 768px) {
    .bg-image { background-image: url('./bg-mobile-2.webp'); }
  }

  .bg-overlay {
    z-index: 1;
    background:
      radial-gradient(ellipse 100% 45% at 50% 0%,   rgba(2,3,8,.85) 0%, transparent 100%),
      radial-gradient(ellipse 40%  100% at 0%   50%, rgba(2,3,8,.65) 0%, transparent 100%),
      radial-gradient(ellipse 40%  100% at 100% 50%, rgba(2,3,8,.65) 0%, transparent 100%),
      radial-gradient(ellipse 100% 30% at 50% 100%,  rgba(2,3,8,.9)  0%, transparent 100%);
  }

  .vignette {
    z-index: 2;
    background: radial-gradient(ellipse 130% 130% at 50% 50%, transparent 25%, rgba(2,3,8,.65) 100%);
  }

  /* sem mix-blend-mode: misturar uma camada fixa com o que está embaixo
     obriga o navegador a redesenhar a pilha inteira a cada rolagem */
  #stars { z-index: 3; }

  /* escurece o fundo conforme a leitura desce — abertura fica intacta */
  .scrim {
    position: fixed; top: 0; left: 0; right: 0; z-index: 5;
    height: 100vh; height: 100lvh;
    background: #010206; opacity: 0;
    pointer-events: none;
    /* camada própria: sem isso o celular só repinta a opacidade
       quando o dedo solta, e o escurecimento parece não acontecer */
    will-change: opacity;
    transform: translateZ(0);
  }

  /* ============ ABERTURA ============ */
  .scene {
    position: relative; z-index: 10;
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 5rem 2rem 4rem;
    text-align: center;
  }

  /* Sem opacidade animada aqui de propósito: esconder o herói (a maior
     área de texto da tela inicial) atrás de opacity:0 confunde a métrica
     de Largest Contentful Paint dos navegadores — o texto só "existe" pra
     essa métrica quando fica visível, então a página parecia nunca pintar
     nada. O leve deslize pra cima continua, só não apaga o texto. */
  .content {
    max-width: 700px; width: 100%;
    animation: subida .7s cubic-bezier(.16,1,.3,1) forwards;
  }

  @keyframes subida {
    from { transform: translateY(28px); }
    to   { transform: translateY(0); }
  }

  .eyebrow {
    font-family: var(--fonte-coord);
    font-size: var(--t-coord); font-weight: var(--w-rotulo);
    letter-spacing: var(--ls-coord);
    color: rgba(var(--rgb-rotulo), var(--op-rotulo));
    text-transform: uppercase; margin-bottom: 1.2rem;
    font-variant-numeric: tabular-nums;
  }

  h1 {
    font-family: var(--display);
    font-size: var(--h1-size);
    letter-spacing: var(--h1-track);
    font-weight: 700; line-height: 1.15; margin-bottom: .2em;
    background: linear-gradient(135deg,
      #fff 0%, var(--aurora-blue) 25%,
      var(--aurora-purple) 55%, var(--aurora-pink) 80%,
      var(--aurora-gold) 100%
    );
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    filter: drop-shadow(0 0 40px rgba(179,136,255,.55));
  }

  .divider {
    width: 55px; height: 1px;
    background: linear-gradient(to right, transparent, rgba(179,136,255,.55), transparent);
    margin: 1.4rem auto 1.8rem;
  }

  .manifesto {
    font-size: var(--t-abertura);
    font-weight: var(--w-atmosfera); line-height: var(--lh-abertura);
    color: var(--tom-atmosfera); margin-bottom: 2.5rem;
  }
  .manifesto em     { color: rgba(244,143,177,.95); font-style: italic; }
  .manifesto strong { color: rgba(179,136,255,.95); font-weight: 400; }
  .manifesto p + p  { margin-top: 1.2em; }

  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6em;
    padding: .85em 2.2em;
    min-height: 44px;   /* alvo de toque confortável no celular */
    border: 1px solid rgba(179,136,255,.35); border-radius: 2px;
    font-family: var(--display);
    font-size: var(--t-rotulo); font-weight: var(--w-rotulo);
    letter-spacing: var(--ls-rotulo); text-transform: uppercase;
    text-decoration: none; color: rgba(200,185,255,.85);
    background: rgba(10,6,28,.45);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    transition: all .4s ease; position: relative; overflow: hidden;
    cursor: pointer;
  }
  .btn:hover {
    border-color: rgba(179,136,255,.75); color: #fff;
    box-shadow: 0 0 22px rgba(179,136,255,.2), 0 0 60px rgba(179,136,255,.06);
    transform: translateY(-2px);
  }
  .btn:focus-visible { outline: 2px solid var(--aurora-purple); outline-offset: 3px; }

  .btn.menta { border-color: rgba(59,217,176,.4); color: rgba(59,217,176,.95); }
  .btn.menta:hover {
    border-color: rgba(59,217,176,.85); color: #fff;
    box-shadow: 0 0 22px rgba(59,217,176,.25), 0 0 60px rgba(59,217,176,.08);
  }
  .btn-desativado { opacity: .55; cursor: default; pointer-events: none; }


  /* ============ FOTO DO AUTOR (seção "O morador") ============
     Medalhão circular centralizado, entre o título e a tese, seguindo
     a coluna única do site. Sombra escura para destacar do fundo
     ilustrado sem criar brilho claro. */
  .morador-foto {
    width: 240px; margin: 2.2rem auto 2.4rem;
  }
  .morador-foto img {
    width: 100%; height: 240px; display: block;
    object-fit: cover; object-position: 50% 26%;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 0 44px rgba(0,0,0,.55);
  }

  @media (max-width: 600px) {
    .morador-foto { width: 180px; margin: 1.8rem auto 2rem; }
    .morador-foto img { height: 180px; }
  }

  /* ============ SEÇÕES ============ */
  section {
    position: relative; z-index: 10;
    padding: 5.5rem 2rem;
  }
  .wrap { max-width: 700px; margin: 0 auto; }

  .sec-eyebrow {
    font-family: var(--display);
    font-size: var(--t-rotulo);
    font-weight: var(--w-rotulo);
    letter-spacing: var(--ls-rotulo); text-transform: uppercase;
    color: rgba(var(--rgb-rotulo), var(--op-rotulo));
    text-align: center; margin-bottom: 1.05rem;
  }

  h2 {
    font-family: var(--display);
    font-size: var(--t-titulo);
    letter-spacing: var(--ls-titulo);
    font-weight: var(--w-titulo); line-height: 1.35;
    text-align: center; color: var(--tom-titulo);
    text-wrap: balance;
  }

  .prose {
    font-size: var(--t-corpo);
    font-weight: var(--w-corpo); line-height: var(--lh-corpo);
    color: rgba(var(--rgb-leitura), var(--op-corpo));
  }
  .prose p + p { margin-top: 1.35em; }
  .prose strong { color: var(--tom-titulo); font-weight: var(--w-forte); }
  .prose--mt-lg { margin-top: 1.8rem; }
  .prose--mt-xl { margin-top: 2.2rem; }
  .destaque-titulo { color: var(--text-primary); }

  .reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 1.1s cubic-bezier(.16,1,.3,1), transform 1.1s cubic-bezier(.16,1,.3,1);
  }
  .reveal.on { opacity: 1; transform: translateY(0); }

  .tese {
    font-size: var(--t-lead);
    font-weight: var(--w-lead); line-height: var(--lh-lead);
    text-align: center; color: rgba(var(--rgb-leitura), var(--op-lead));
    margin-top: 1.6rem;
  }
  .tese em { font-style: italic; color: rgba(244,143,177,.95); }
  /* quebra que só existe no celular (ligada no media query lá embaixo) */
  .quebra-cel { display: none; }

  .mundos {
    display: flex; gap: 1.3rem; flex-wrap: wrap;
    margin: 2.4rem 0 0;
  }
  .mundo {
    flex: 1; min-width: 260px;
    border: 1px solid var(--card-border);
    border-radius: 3px;
    background: var(--card-bg);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    padding: 1.8rem 1.7rem;
  }
  .mundo h3 {
    font-family: var(--display);
    font-size: var(--t-rotulo); font-weight: var(--w-rotulo);
    letter-spacing: var(--ls-rotulo); text-transform: uppercase;
    margin-bottom: .9rem;
  }
  .mundo p { font-size: var(--t-apoio); font-weight: var(--w-apoio); line-height: var(--lh-apoio); color: rgba(var(--rgb-leitura), var(--op-apoio)); }
  .mundo.mente    { border-color: rgba(59,217,176,.3); }
  .mundo.mente h3 { color: var(--menta); }
  .mundo.maquinas    { border-color: rgba(91,141,239,.32); }
  .mundo.maquinas h3 { color: var(--eletrico); }

  .ponte {
    margin-top: 2.4rem;
    padding-left: 1.4rem;
    border-left: 1px solid rgba(179,136,255,.45);
    font-size: var(--t-lead);
    font-style: italic; font-weight: var(--w-lead); line-height: var(--lh-lead);
    color: var(--tom-titulo);
  }

  /* — livro — */
  .livro {
    display: flex; gap: 2.4rem; align-items: center; flex-wrap: wrap;
    justify-content: center;
    border: 1px solid var(--card-border);
    border-radius: 3px;
    background: var(--card-bg);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    padding: 2.6rem 2.2rem;
    margin-top: 2.6rem;
  }
  .livro img {
    display: block;
    width: 210px; height: auto; max-width: 62vw;
    aspect-ratio: 1720 / 2432;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 24px 60px rgba(0,0,0,.65), 0 0 45px rgba(59,217,176,.12);
  }
  .livro .info { flex: 1; min-width: 250px; }
  .livro .info .selo {
    font-family: var(--display);
    font-size: var(--t-rotulo); font-weight: var(--w-rotulo);
    letter-spacing: var(--ls-rotulo); text-transform: uppercase;
    color: var(--menta);
    margin-bottom: .8rem;
  }
  .livro .info p { font-size: var(--t-apoio); font-weight: var(--w-apoio); line-height: var(--lh-apoio); color: rgba(var(--rgb-leitura), var(--op-apoio)); }
  .livro .btn { margin-top: 1.6rem; }

  .mente-selo {
    /* bússola em cima, texto centralizado embaixo — conjunto alinhado à coluna */
    display: flex; flex-direction: column; align-items: center;
    gap: 1.1rem; text-align: center;
    margin-top: 3.2rem;
  }
  .mente-selo p { width: 100%; font-size: var(--t-apoio); font-weight: var(--w-apoio); line-height: var(--lh-apoio); color: rgba(var(--rgb-leitura), var(--op-apoio)); }
  .mente-selo a {
    color: var(--menta); text-decoration: none;
    border-bottom: 1px solid rgba(59,217,176,.35);
  }
  .mente-selo a:hover { border-bottom-color: var(--menta); }

  footer {
    position: relative; z-index: 10;
    padding: 3rem 2rem 3.4rem;
    text-align: center;
    font-family: var(--display);
    font-size: var(--t-rotulo); letter-spacing: .16em;
    color: var(--tom-apagado); text-transform: uppercase;
    line-height: 2.4;
  }
  footer a { color: rgba(200,190,220,.5); text-decoration: none; }
  footer a:hover { color: rgba(200,190,220,.75); }
  footer .aviso-meta {
    display: block; margin-top: 1.1rem;
    font-family: 'Crimson Pro', Georgia, serif; font-style: normal;
    font-size: 1.05rem; letter-spacing: .01em; text-transform: none;
    color: rgba(210,202,232,.62); line-height: 1.6;
    max-width: 920px; margin-left: auto; margin-right: auto;
  }

  .particle {
    position: fixed; border-radius: 50%;
    pointer-events: none; z-index: 4;
    animation: floatUp linear infinite;
  }
  @keyframes floatUp {
    0%   { transform: translateY(100vh) scale(0); opacity: 0; }
    5%   { opacity: 1; transform: translateY(95vh) scale(1); }
    95%  { opacity: .5; }
    100% { transform: translateY(-5vh) scale(.4); opacity: 0; }
  }

  @media (max-width: 600px) {
    .scene { padding: 4.5rem 1.5rem 3rem; }
    section { padding: 4rem 1.5rem; }
    .livro { padding: 2rem 1.4rem; }
    /* coordenadas: em vez de quebrar em qualquer palavra, duas linhas certas */
    .eyebrow .sep { display: none; }
    .eyebrow .local { display: block; }
    /* no celular o aviso flui livre, sem quebra forçada — a de desktop
       existe só pra caber em 3 linhas numa tela larga */
    footer .aviso-meta .quebra-fixa { display: none; }

    /* As quebras manuais do manifesto foram medidas pra tela larga. Em 375px
       cada uma delas quebra de novo e sobra meia linha solta ("o juízo.",
       "horário marcado."). No celular o texto flui como prosa, e o navegador
       equilibra as linhas pra nenhuma ficar com uma palavra só. */
    /* entrada mais curta: 1,1s numa tela pequena vira espaço em branco
       enquanto o dedo já passou do bloco */
    .reveal { transition-duration: .55s; }
    .manifesto br { display: none; }
    .manifesto p { text-wrap: balance; }
    /* a tese continua em verso, com duas quebras a mais: as duas linhas
       longas não cabem em 375px e sobrava "humana." / "outra." sozinha */
    .tese .quebra-cel { display: inline; }
  }

  @media (prefers-reduced-motion: reduce) {
    .content { animation: none; opacity: 1; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .particle { display: none; }
    html { scroll-behavior: auto; }
  }
