/* Oasis v5 sobre o filme 3D. Paleta da marca; fundo continua o deserto. */
  .deserto-root {
    --cream: #f7eedb; --cream-deep: #ecdfc2; --peach: #f3c79b; --apricot: #e89968; --sand-warm: #faf4e3;
    --ink: #2a1410; --ink-soft: #4d2d22; --ink-mute: #8c7563;
    --dune-deep: #5a0e0e; --dune: #a8201a; --ember: #d6422a; --flame: #ff6b3f;
    --sand: var(--cream); --sand-dim: #c9b49a; --red: var(--ember); --red-hot: var(--flame);
    --line: rgba(247,238,219,.16);
    --radius-btn: 100px; --radius-card: 28px;
    --ease-oasis: cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-body), "DM Sans", system-ui, sans-serif;
  }
  html.deserto-html,
body.deserto-body {
  background: #1B0D08 !important;
  color: var(--cream);
}
  #sticky { background: #C98A63; }

  h1, h2 {
    font-family: var(--font-display), "Bricolage Grotesque", sans-serif;
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1;
    text-wrap: balance;
    font-variation-settings: "opsz" 88;
  }
  h1 { font-size: clamp(42px, 6.2vw, 96px); font-variation-settings: "opsz" 96; letter-spacing: -.04em; line-height: 0.96; }
  h2 { font-size: clamp(42px, 5.6vw, 88px); font-variation-settings: "opsz" 88; letter-spacing: -.035em; line-height: 1; }
  em {
    font-family: var(--font-serif), Newsreader, Georgia, serif;
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(120deg, var(--ember) 30%, var(--apricot) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: -.01em;
  }

  /* --- fusão do texto com a cena -----------------------------------------
     Nada de caixas. O véu é um foco largo e macio por baixo do texto, e o
     próprio texto ganha uma sombra difusa — assim lê-se em qualquer fundo
     (céu claro ao meio-dia, dunas escuras ao entardecer) sem se ver o truque. */
  .panel { position: relative; }
  /* Sem véu por trás do texto: um retângulo escurecido lia-se como autocolante
     em cima da paisagem. O contraste vem de um halo apertado no próprio texto,
     que acompanha as letras em vez de manchar o fundo. */
  .block {
    position: relative;
    isolation: isolate;
    text-shadow: 0 2px 18px rgba(16,7,3,.78);
    transition: opacity .45s cubic-bezier(.22,1,.36,1);
  }
  .block::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -18% -22%;
    pointer-events: none;
    background: radial-gradient(ellipse 68% 58% at 28% 46%,
      rgba(16,7,3,.78) 0%,
      rgba(16,7,3,.42) 46%,
      transparent 74%);
    filter: blur(22px);
  }
  .panel--right .block::before {
    background: radial-gradient(ellipse 68% 58% at 72% 46%,
      rgba(16,7,3,.78) 0%,
      rgba(16,7,3,.42) 46%,
      transparent 74%);
  }
  .block.is-off { opacity: 0; pointer-events: none; }
  [data-reveal] { opacity: 1; transform: none; }
  [data-reveal].is-off { opacity: 0; }
  .block h1, .block h2 {
    color: #FFF3E4;
    text-shadow: 0 2px 8px rgba(16,7,3,.92), 0 0 28px rgba(16,7,3,.72);
  }
  .block h1 em, .block h2 em {
    text-shadow: none;
    filter: drop-shadow(0 2px 10px rgba(16,7,3,.55));
  }
  /* Pílula ember (a de sempre — o canvas tirou-a a 25/09 e o Iuri quis-a de volta). */
  .eyebrow {
    font-family: var(--font-mono), "Geist Mono", ui-monospace, monospace;
    font-size: 11px; font-weight: 500;
    letter-spacing: .20em; text-transform: uppercase;
    color: var(--ember);
    display: inline-flex; align-items: center; gap: 10px;
    margin-bottom: 22px;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(214,66,42,.28);
    background: rgba(214,66,42,.12);
  }
  .eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: currentColor; }
  .lead {
    font-family: var(--font-body), "DM Sans", sans-serif;
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.55;
    color: #F4E8D6;
    text-shadow: 0 1px 2px rgba(16,7,3,.92), 0 0 16px rgba(16,7,3,.7);
  }
  .lead strong { color: #FFF6E8; font-weight: 500; }
  .deserto-root .cta {
    display: inline-flex; align-items: center; gap: 12px;
    margin-top: 40px; padding: 18px 30px;
    background: var(--cream); color: var(--ink);
    font-family: var(--font-body), "DM Sans", sans-serif; font-size: 15px; font-weight: 600;
    border: 0; border-radius: var(--radius-btn);
    box-shadow: 0 10px 30px rgba(42,20,16,.18);
    text-decoration: none;
    transition: background 300ms var(--ease-oasis), transform 300ms var(--ease-oasis), box-shadow 300ms var(--ease-oasis);
  }
  .deserto-root .cta:hover { background: var(--apricot); transform: translateY(-3px); }
  .deserto-root .cta .chip {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--ink); color: var(--cream);
    transition: transform 300ms var(--ease-oasis);
  }
  .deserto-root .cta:hover .chip { transform: rotate(-45deg); }
  .deserto-root .cta.ghost {
    background: var(--cream);
    border: 0;
    color: var(--ink);
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(42,20,16,.18);
    backdrop-filter: none;
  }
  .deserto-root .cta.ghost:hover { background: var(--apricot); color: var(--ink); }
  .deserto-root .cta.ghost .chip { background: var(--ink); color: var(--cream); }
  .deserto-root .cta + .cta { margin-left: 12px; }
  @media (max-width: 780px) {
    .chrome nav a {
      display: inline-flex; align-items: center;
      min-height: 44px; padding: 10px 8px;
    }
  }

  .list { background: none; border: 0; display: flex; flex-direction: column; gap: 14px; margin-top: 36px; width: max-content; max-width: 100%; }
  .list .svc {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    row-gap: 4px;
    align-items: start;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    background: rgba(247,238,219,.05);
    border: 1px solid rgba(247,238,219,.12);
    border-radius: 20px;
    padding: 18px 22px;
    color: #F2E7D8;
    text-decoration: none;
    transition: border-color 300ms var(--ease-oasis), background 300ms var(--ease-oasis), transform 300ms var(--ease-oasis);
  }
  .list .svc:hover {
    border-color: rgba(214,66,42,.55);
    background: rgba(247,238,219,.09);
    transform: translateY(-3px);
  }
  .list .svc span {
    grid-column: 1; grid-row: 1 / span 2;
    font-family: var(--font-mono), "Geist Mono", ui-monospace, monospace;
    color: var(--ember); letter-spacing: .12em; font-size: 11px; font-weight: 500;
    padding-top: 6px;
  }
  .list .svc b {
    grid-column: 2; grid-row: 1;
    font-family: var(--font-display), "Bricolage Grotesque", sans-serif;
    font-size: 20px; font-weight: 600; letter-spacing: -.02em;
    color: #FFF6E8; line-height: 1.2;
  }
  .list .svc small {
    grid-column: 2; grid-row: 2;
    font-size: 14px; color: var(--sand-dim); line-height: 1.45;
  }
  .panel--right .list { margin-left: auto; align-items: stretch; }
  /* .lead e .list são mais estreitos que o bloco (max-width: 46ch). Num painel
     alinhado à direita a caixa estreita encosta à esquerda e o texto deixa de
     bater certo com o título — daí o margin-left: auto. */
  .panel--right .lead { margin-left: auto; }
  .panel--right .list .svc {
    margin-left: 0;
    grid-template-columns: 1fr auto;
    text-align: right;
  }
  .panel--right .list .svc span {
    grid-column: 2; grid-row: 1 / span 2;
  }
  .panel--right .list .svc b,
  .panel--right .list .svc small {
    grid-column: 1;
  }
  .panel--right .list .svc b { grid-row: 1; }
  .panel--right .list .svc small { grid-row: 2; }
  .values {
    margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px; padding-top: 28px; border-top: 1px solid rgba(247,238,219,.16);
  }
  .values span {
    display: block;
    font-family: var(--font-mono), "Geist Mono", ui-monospace, monospace;
    font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
    color: var(--ember); margin-bottom: 8px;
  }
  .values b {
    display: block;
    font-family: var(--font-display), "Bricolage Grotesque", sans-serif;
    font-size: clamp(16px, 1.6vw, 20px); font-weight: 600; color: #FFF6E8;
  }

  .grain {
    position: fixed; inset: 0; z-index: 15; pointer-events: none; opacity: .11; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }
  .vignette { position: fixed; inset: 0; z-index: 14; pointer-events: none;
    background: radial-gradient(120% 90% at 50% 46%, transparent 42%, rgba(23,16,12,.55) 100%); }

  /* --- marca --------------------------------------------------------------
     Símbolo oficial (logo-mark.png, com transparência). O logótipo completo
     traz o lettering a preto, que desaparecia sobre o deserto — por isso o
     lettering é recomposto em DM Sans creme. */
  .dunemark { display: block; height: auto; }

  #logo {
    --logo-s: 1;
    position: fixed; z-index: 70; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    display: none; flex-direction: column; align-items: center;
    gap: calc(1px + 3px * var(--logo-s));
    text-align: center;
    color: var(--sand); text-decoration: none;
    opacity: var(--boot-o, .06);
    pointer-events: none;
    filter: drop-shadow(0 2px 10px rgba(16,7,3,.55));
  }
  #logo.is-ready { z-index: 22; pointer-events: auto; }
  #logo .dunemark {
    width: min(42vw, 280px); height: auto; display: block;
    object-fit: contain;
  }
  #logo .word { line-height: 1; text-align: center; margin-top: 0; }
  #logo .word b {
    display: block; font-family: var(--font-display), "Bricolage Grotesque", sans-serif;
    font-weight: 700; letter-spacing: .04em;
    font-size: calc(15px + 25px * var(--logo-s));
  }
  #logo .word span {
    display: block; font-family: var(--font-mono), "Geist Mono", ui-monospace, monospace;
    letter-spacing: .32em; color: rgba(247,238,219,.78);
    font-size: calc(8.5px + 3.5px * var(--logo-s));
    margin-top: calc(2px + 2px * var(--logo-s));
  }

  /* --- barra ------------------------------------------------------------- */
  .chrome {
    mix-blend-mode: normal; text-shadow: 0 2px 18px rgba(18,8,4,.8);
    font-family: var(--font-mono), "Geist Mono", ui-monospace, monospace;
    font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
    color: var(--cream);
  }
  .chrome nav { display: flex; gap: clamp(14px, 2vw, 28px); will-change: transform; align-items: center; }
  .chrome a { color: var(--cream); opacity: .85; text-decoration: none; }
  .chrome a:hover { opacity: 1; }
  .chrome .home { opacity: .6; }
  /* «Site estático»: botão-pílula, não link solto. */
  .chrome .classic {
    display: inline-flex; align-items: center; gap: 8px;
    border-radius: var(--radius-btn);
    border: 1px solid rgba(247,238,219,.3);
    padding: 8px 16px;
    font-family: var(--font-mono), "Geist Mono", ui-monospace, monospace;
    font-size: 11px; text-transform: uppercase; letter-spacing: .14em;
    color: var(--cream); opacity: 1;
    transition: border-color 300ms var(--ease-oasis), background 300ms var(--ease-oasis);
  }
  .chrome .classic:hover { border-color: rgba(247,238,219,.6); background: rgba(247,238,219,.08); }
  .chrome-lang { display: inline-flex; align-items: center; line-height: 0; }

  /* --- ecrã de carregamento ---------------------------------------------- */
  #boot {
    position: fixed; inset: 0; z-index: 60; background: #120C09;
    display: none;
    place-items: center;
    transition: opacity .9s ease .15s, visibility 0s linear 1.1s;
  }
  /* Só há filme (e portanto loading) em ecrã largo. */
  @media (min-width: 1024px) and (min-height: 600px) {
    #boot { display: grid; }
    #logo { display: flex; }
  }
  #boot.gone { opacity: 0; visibility: hidden; }
  #boot.instant { transition: opacity .2s linear, visibility 0s linear .2s; }
  #boot.instant .boot-in { opacity: 0; }
  html.deserto-warm #logo { --boot-o: 1; }
  html.deserto-warm #shell.is-ready #sticky::after,
  html.deserto-warm #sticky::after { opacity: 0; }
  .boot-in {
    position: absolute; left: 50%;
    top: calc(50% + min(16vw, 92px));
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center;
  }
  .boot-bar { width: min(320px, 62vw); height: 1px; background: rgba(246,234,220,.16); overflow: hidden; }
  .boot-bar i { display: block; height: 100%; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s ease; }
  .boot-pct { margin-top: 16px; font-size: 11px; letter-spacing: .3em; color: var(--sand-dim); font-variant-numeric: tabular-nums; }

  /* --- abertura: um ecrã só com a marca --------------------------------- */
  .panel--intro { min-height: 100vh; min-height: 100svh; }
  #falar { z-index: 4; }

  /* O progresso vive no risco do índice (.acts-fill, escrito pelo world.js), não
     numa barra no fundo — o canvas mudou-o a 25/09 e o Iuri quis-o de volta. */
  .progress { display: none; }

  .acts {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; z-index: 22; right: 18px; top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono), "Geist Mono", ui-monospace, monospace;
    font-size: 11px; letter-spacing: .16em;
    padding: 4px 0 4px 10px;
  }
  .acts::before {
    content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px;
    background: rgba(247,238,219,.22);
  }
  .acts-fill {
    position: absolute; left: 0; top: 8px; width: 2px; height: 0;
    background: var(--red); pointer-events: none;
    transform-origin: 0 0;
  }
  .acts a {
    text-decoration: none; opacity: .45; color: var(--sand);
    padding: 8px 0 8px 12px; position: relative;
    transition: color .25s ease, opacity .25s ease;
  }
  .acts a:hover, .acts a.is-on { opacity: 1; color: var(--red-hot); }

  /* --- portefólio --------------------------------------------------------- */
  .work { margin-top: 32px; display: grid; gap: 14px; }
  .work a { display: flex; align-items: baseline; gap: 16px; text-decoration: none; padding-bottom: 12px; border-bottom: 1px solid var(--line); transition: border-color .3s ease; }
  .work a:hover { border-color: var(--red-hot); }
  .work b { font-size: 19px; font-weight: 500; }
  .work small { color: var(--sand-dim); font-size: 13px; }
  .work i { margin-left: 14px; font-style: normal; color: var(--red-hot); font-size: 12px; letter-spacing: .14em; }
  .work a { width: fit-content; max-width: 100%; }
  /* Ato V: as vitrines vivem no lado direito do ecrã. A coluna de texto encolhe
     para nunca ficar por baixo delas. Abaixo dos 950 px o CSS base já dá a
     largura toda ao texto — aí a vitrine sobe (ver world.js) e o texto encosta
     ao fundo, para não se cruzarem. */
  #trabalho .block { max-width: min(520px, 44vw); }
  @media (max-width: 950px) {
    #trabalho { align-items: flex-end; padding-bottom: 12vh; }
    #trabalho .block { max-width: 100%; }
  }
  /* Rótulo que segue o rato quando passa sobre uma vitrine 3D. */
  #tip { position: fixed; z-index: 23; pointer-events: none; opacity: 0; transition: opacity .25s ease;
         padding: 8px 14px; background: var(--red); color: #fff; font-size: 12px; letter-spacing: .06em; border-radius: 2px; }
  #tip.on { opacity: 1; }

  @media (max-width: 900px) {
    /* O véu em degradê do CSS base desenhava uma sombra entre secções — lia-se
       como uma nódoa a subir e descer com o scroll. Fora com ele: em ecrã
       pequeno o contraste vem de um halo mais denso no próprio texto, que
       acompanha as letras e não mancha a paisagem. */
    .panel::before { display: none; }
    .block {
      text-shadow: 0 2px 20px rgba(16,7,3,.88);
    }
    .block h1, .block h2 {
      text-shadow: 0 2px 24px rgba(16,7,3,.9);
    }
    /* Mais claro: o creme-escuro sumia-se contra a areia ao meio-dia. */
    .lead { color: #F2E7D8; }
    .lead strong { color: #FFF6E8; }
    .stat small { color: #E8D9C4; }
    .list span { color: #FFB08A; }
    .list div { color: #FFF6E8; text-shadow: 0 2px 16px rgba(16,7,3,.88); }
  }
  @media (max-width: 720px) {
    /* Menos texto: as frases de expansão (.amp) saem e fica o essencial. */
    .amp { display: none; }
    .stats { margin-top: 24px; gap: 22px; }
    .stat b { font-size: 34px; }
    /* A vitrine ocupa o terço de cima. Para o texto do ato V não lhe subir ao
       encontro, encosta mais ao fundo e vem todo mais compacto — é a única
       secção com lista, e era ela que empurrava o bloco ecrã acima. */
    #trabalho { padding-bottom: 6vh; }
    #trabalho h2 { font-size: clamp(30px, 9vw, 44px); }
    #trabalho .lead { margin-top: 16px; font-size: 15px; line-height: 1.5; }
    #trabalho .work { margin-top: 20px; gap: 8px; }
    #trabalho .work a { padding-bottom: 9px; gap: 10px; }
    #trabalho .work b { font-size: 16px; }
    #trabalho .work small { font-size: 12px; }
    #trabalho .work i { font-size: 11px; }
  }
  @media (max-width: 780px) {
    /* Em ecrã estreito a barra guarda os links. No arranque o logo ainda está
       grande no meio do ecrã, por isso os links ficam centrados; à medida que
       o logo ancora na barra, deslizam para a direita e libertam o centro. */
    .chrome { justify-content: center; }
    /* Num ecrã alto e estreito a elipse da vinheta deixa metade do deserto de
       fora e escurece-o quase a preto. Aqui é mais larga e mais leve. */
    .vignette { background: radial-gradient(150% 78% at 50% 40%, transparent 56%, rgba(23,16,12,.40) 100%); }
    #logo .word span { letter-spacing: .3em; }
  }
  /* --- o leque: depois do filme, só o rodapé ------------------------------ */
  /* O bloco da IA que abria o leque saiu (2026-09-25, pedido do Iuri): a área
     continua no acto II. As margens laterais são as do .chrome (style.css:
     `clamp(24px, 6vw, 110px)`) e o rodapé já não leva max-width — tem a mesma
     largura que o cromo lá em cima. Sem padding em baixo: quem fecha a página
     é a .foot-copy, com a altura do cromo. */
  #leque {
    position: relative; z-index: 3;
    margin-top: 0;
    background: #140A06;
    border-top: 0;
    padding: clamp(56px, 10vh, 96px) clamp(24px, 6vw, 110px) 0;
  }
  .foot {
    font-size: 14px; color: var(--sand-dim);
  }
  .foot-grid {
    display: grid; gap: 36px 40px;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
  .foot-brand .dunemark { width: 44px; margin-bottom: 12px; }
  .foot-brand b {
    display: block; color: var(--cream);
    font-family: var(--font-display), "Bricolage Grotesque", sans-serif;
    font-size: 13px; font-weight: 700; letter-spacing: .14em;
  }
  .foot-brand p { margin-top: 12px; max-width: 34ch; line-height: 1.55; }
  .foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
  .foot-k {
    font-family: var(--font-mono), "Geist Mono", ui-monospace, monospace;
    font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
    color: var(--ember); margin-bottom: 10px;
  }
  .foot-col a, .foot-plain {
    color: var(--sand-dim); text-decoration: none;
    min-height: 36px; display: inline-flex; align-items: center;
    transition: color .2s ease;
  }
  .foot-col a:hover { color: var(--cream); }
  .foot-social { display: flex; gap: 10px; margin-top: 10px; }
  .foot-social a {
    min-height: 36px; width: 36px; justify-content: center;
    color: var(--sand-dim);
  }
  .foot-social a:hover { color: var(--ember); }
  /* A última faixa espelha o .chrome: mesmo mono 12px/.16em, © à esquerda e a
     microcopy à direita, e a mesma altura — 26px + linha de 35px (a do nav do
     cromo) + 26px = 87px por baixo da risca. content-box para a conta ser essa. */
  .foot-copy {
    box-sizing: content-box;
    margin-top: 40px; padding: 26px 0; min-height: 35px;
    border-top: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    font-family: var(--font-mono), "Geist Mono", ui-monospace, monospace;
    font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
    color: var(--ink-mute, #8c7563);
  }
  @media (max-width: 900px) {
    .foot-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 560px) {
    .foot-grid { grid-template-columns: 1fr; }
  }
  #logo { transition: opacity .4s ease; }
  .progress { transition: opacity .4s ease; }
  .chrome { transition: opacity .4s ease; }
  .deserto-root.no-acts #logo,
  .deserto-root.no-acts .chrome { opacity: 0; pointer-events: none; }
  .deserto-root.no-acts .acts { opacity: 0; pointer-events: none; }
  .scrollhint { transition: opacity .4s ease; }
  /* A dica pulsa por `animation` (style.css) e uma animação em curso ganha ao
     `opacity: 0` — sem o `animation: none` ficava por cima do rodapé. Some mal
     se começa a descer (.scrolled, posta pelo boot.js) e no rodapé (.no-acts). */
  .deserto-root.scrolled .scrollhint,
  .deserto-root.no-acts .scrollhint { animation: none; opacity: 0; pointer-events: none; }
  .deserto-root.no-acts .progress { opacity: 0; pointer-events: none; }
