/* CASA UMBRA · experiência conceitual da Kyber Tech (estudo digital 2026)
   Tradução do protótipo do Claude Design para HTML/CSS/JS puro.
   Um HTML só: as decisões de desktop e de mobile do protótipo viram media query
   no mesmo documento, e não duas páginas. Breakpoint em 900px. */

/* -- Fonte (Geist, OFL, self-hospedada) ----------------------------------- */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(fonts/Geist-var.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;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(fonts/Geist-var-ext.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;
}

/* -- Paleta e escala ------------------------------------------------------ */
:root {
  --void: #050505;
  --basalt: #10100f;
  --cloud: #d6d4ce;
  --paper: #f2efe8;
  --amber: #ff7a1a;
  --amber-light: #ff9a3d;
  --linha: rgba(214, 212, 206, 0.14);
  --margem: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 900px) {
  :root { --margem: clamp(48px, 5vw, 72px); }
}

/* -- Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--cloud);
  font-family: Geist, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
::selection { background: var(--amber); color: var(--void); }
a { color: var(--cloud); text-decoration: none; }
a:hover { color: var(--amber-light); }
a:focus-visible, button:focus-visible { outline: 1px solid var(--amber); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; text-wrap: pretty; }

.vis-oculto {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.micro {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(214, 212, 206, 0.66);
}

/* CTA de linha âmbar: a assinatura do projeto, nunca um botão preenchido */
.cta {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 6px 0;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--paper);
}
.cta .risco {
  display: inline-block; width: 24px; height: 1px; flex: none;
  background: var(--amber); box-shadow: 0 0 10px rgba(255, 122, 26, 0.55);
  transition: width 0.26s var(--ease);
}
.cta:hover .risco, .cta:focus-visible .risco { width: 46px; }
@media (min-width: 900px) {
  .cta { gap: 14px; font-size: 12px; }
  .cta .risco { width: 26px; }
}

.pular {
  position: fixed; left: 12px; top: -80px; z-index: 400;
  background: var(--basalt); color: var(--paper);
  padding: 14px 16px; font-size: 11px; letter-spacing: 0.14em;
  border: 1px solid rgba(255, 122, 26, 0.4);
}
.pular:focus { top: 12px; }

/* -- Cabeçalho fixo ------------------------------------------------------- */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px var(--margem);
  pointer-events: none;
}
/* Scrim do cabeçalho: a marca e o rótulo ficam sobre oito cenas diferentes, e a
   primeira delas tem céu claro. Um degradê curto garante leitura em todas sem
   desenhar caixa atrás do texto. */
.hud::before {
  content: '';
  position: absolute; inset: 0 0 auto; height: 110px; z-index: -1;
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.6), rgba(5, 5, 5, 0));
  pointer-events: none;
}
.hud a, .hud button { pointer-events: auto; }
/* O cabeçalho é o painel da visita, não do documento inteiro: acabada a jornada, ele
   sai. Fixo sobre o epílogo, "UMBRA / 01" caía em cima do nome do material e o rótulo
   da direita em cima do texto da materialidade. */
.hud { transition: opacity 0.32s var(--ease), visibility 0.32s; }
.hud-fora { opacity: 0; visibility: hidden; }
/* Sem o motor não há jornada para o painel acompanhar, então ele deixa de ser fixo e
   sai de cena rolando, junto com o resto da página. */
.sem-js .hud { position: absolute; }
.hud-marca { font-size: 11px; letter-spacing: 0.24em; color: var(--paper); }
.hud-marca span { color: var(--amber-light); }
.hud-cap {
  display: none;
  font-size: 10px; letter-spacing: 0.22em; white-space: nowrap;
  color: rgba(214, 212, 206, 0.68);
  transition: opacity 0.24s;
}
.hud-dir { display: flex; align-items: center; gap: 26px; }
.hud-tipo { font-size: 9px; letter-spacing: 0.2em; color: rgba(214, 212, 206, 0.55); }
.hud-menu {
  display: none; align-items: center; gap: 10px;
  background: none; border: none; padding: 10px 0; cursor: pointer;
  color: var(--paper); font-family: inherit; font-size: 11px; letter-spacing: 0.22em;
}
.hud-menu i { display: inline-flex; flex-direction: column; gap: 4px; font-style: normal; }
.hud-menu i::before, .hud-menu i::after { content: ''; width: 22px; height: 1px; }
.hud-menu i::before { background: var(--amber); }
.hud-menu i::after { background: rgba(242, 239, 232, 0.8); }
@media (min-width: 900px) {
  .hud { align-items: center; padding: 22px var(--margem); }
  .hud-cap, .hud-menu { display: flex; }
  .hud-tipo { font-size: 10px; letter-spacing: 0.22em; }
}

/* -- Menu lateral (só desktop, como no protótipo) ------------------------- */
.menu { position: fixed; inset: 0; z-index: 300; }
.menu[hidden] { display: none; }
.menu-fundo {
  position: absolute; inset: 0; background: rgba(5, 5, 5, 0.55);
  border: none; padding: 0; cursor: pointer;
}
.menu-painel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(420px, 88vw);
  background: rgba(10, 10, 9, 0.97);
  border-left: 1px solid rgba(214, 212, 206, 0.1);
  padding: 96px clamp(32px, 4vw, 56px) 40px;
  display: flex; flex-direction: column;
}
.menu-fechar {
  position: absolute; top: 20px; right: 24px; width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  color: rgba(214, 212, 206, 0.8); font-size: 20px; font-family: inherit;
}
.menu-titulo { margin-bottom: 28px; font-size: 10px; letter-spacing: 0.24em; color: var(--amber-light); }
.menu-lista { display: flex; flex-direction: column; }
.menu-lista a {
  padding: 16px 0; font-size: clamp(1.5rem, 2vw, 1.9rem); font-weight: 300;
  letter-spacing: -0.01em; color: var(--paper);
  border-top: 1px solid rgba(214, 212, 206, 0.12);
}
.menu-lista a:last-child { border-bottom: 1px solid rgba(214, 212, 206, 0.12); }
.menu-lista a span { color: var(--amber-light); }
.menu-nota {
  margin-top: auto; font-size: 11px; line-height: 1.7;
  color: rgba(214, 212, 206, 0.5); letter-spacing: 0;
}

/* -- Jornada -------------------------------------------------------------- */
.uj { position: relative; height: 600vh; background: var(--void); }
@media (min-width: 900px) { .uj { height: 740vh; } }

.uj-palco {
  position: sticky; top: 0; height: 100vh; max-height: 100svh;
  overflow: hidden; background: var(--void);
}
.uj-camada { position: absolute; inset: 0; opacity: 0; }
.uj-camada img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
/* z-index e enquadramento por cena: o object-position mobile é reescrito pelo motor,
   que faz a panorâmica lateral; o desktop fica no valor declarado aqui. */
.uj-camada[data-uj-layer="0"] { z-index: 10; opacity: 1; }
.uj-camada[data-uj-layer="1"] { z-index: 20; }
.uj-camada[data-uj-layer="2"] { z-index: 30; }
.uj-camada[data-uj-layer="3"] { z-index: 28; }
.uj-camada[data-uj-layer="4"] { z-index: 26; }
.uj-camada[data-uj-layer="5"] { z-index: 40; }
.uj-camada[data-uj-layer="6"] { z-index: 50; }
.uj-camada[data-uj-layer="7"] { z-index: 60; }

.uj-camada[data-uj-layer="0"] img { object-position: 62% 42%; transform-origin: 58% 50%; }
.uj-camada[data-uj-layer="1"] img { object-position: 68% 50%; transform-origin: 62% 48%; }
.uj-camada[data-uj-layer="2"] img { object-position: 50% 50%; transform-origin: 50% 48%; }
.uj-camada[data-uj-layer="3"] img { object-position: 56% 50%; transform-origin: 53% 50%; }
.uj-camada[data-uj-layer="4"] img { object-position: 55% 50%; transform-origin: 53% 50%; }
.uj-camada[data-uj-layer="5"] img { object-position: 64% 55%; transform-origin: 55% 52%; }
.uj-camada[data-uj-layer="6"] img { object-position: 50% 60%; transform-origin: 50% 55%; }
.uj-camada[data-uj-layer="7"] img { object-position: 42% 55%; transform-origin: 46% 52%; }
@media (min-width: 900px) {
  .uj-camada[data-uj-layer="0"] img { object-position: 50% 46%; transform-origin: 50% 55%; }
  .uj-camada[data-uj-layer="1"] img { object-position: 55% 50%; transform-origin: 62% 45%; }
  .uj-camada[data-uj-layer="2"] img { object-position: 50% 50%; transform-origin: 50% 47%; }
  .uj-camada[data-uj-layer="3"] img { object-position: 54% 50%; transform-origin: 54% 50%; }
  .uj-camada[data-uj-layer="4"] img { object-position: 53% 50%; transform-origin: 53% 50%; }
  .uj-camada[data-uj-layer="5"] img { object-position: 50% 55%; transform-origin: 50% 52%; }
  .uj-camada[data-uj-layer="6"] img { object-position: 50% 58%; transform-origin: 50% 55%; }
  .uj-camada[data-uj-layer="7"] img { object-position: 46% 52%; transform-origin: 50% 50%; }
}

/* Scrims: contraste local para a copy, sem achatar a fotografia */
.uj-scrim {
  position: absolute; inset: 0; z-index: 62; pointer-events: none;
  background:
    linear-gradient(to top, rgba(5, 5, 5, 0.5) 0%, rgba(5, 5, 5, 0) 30%),
    linear-gradient(to bottom, rgba(5, 5, 5, 0.4) 0%, rgba(5, 5, 5, 0) 20%);
}
@media (min-width: 900px) {
  .uj-scrim {
    background:
      linear-gradient(to top, rgba(5, 5, 5, 0.44) 0%, rgba(5, 5, 5, 0) 26%),
      linear-gradient(to bottom, rgba(5, 5, 5, 0.32) 0%, rgba(5, 5, 5, 0) 16%),
      radial-gradient(80% 78% at 4% 86%, rgba(5, 5, 5, 0.52), rgba(5, 5, 5, 0) 68%);
  }
}
.uj-sombra {
  position: absolute; inset: 0; z-index: 65; pointer-events: none;
  background: #020202; opacity: 0;
}
.uj-azul {
  position: absolute; inset: 0; z-index: 66; pointer-events: none;
  background: linear-gradient(to bottom, #0b1830, #050505 78%); opacity: 0;
}
.uj-grao {
  position: absolute; inset: 0; z-index: 72; pointer-events: none;
  opacity: 0.024; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='140'%20height='140'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.85'%20numOctaves='2'%20stitchTiles='stitch'/%3E%3C/filter%3E%3Crect%20width='140'%20height='140'%20filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (min-width: 900px) { .uj-grao { opacity: 0.028; } }

/* Linhas âmbar de passagem */
.uj-linha-a {
  position: absolute; left: 50%; top: 55%; width: 78%; height: 1px;
  z-index: 70; pointer-events: none; opacity: 0; transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(255, 122, 26, 0) 0%, var(--amber-light) 18%, var(--amber) 82%, rgba(255, 122, 26, 0) 100%);
  box-shadow: 0 0 14px 1px rgba(255, 122, 26, 0.65);
}
.uj-linha-b {
  position: absolute; left: 50%; top: 57.5%; width: 62%; height: 2px;
  z-index: 70; pointer-events: none; opacity: 0; transform: translate(-50%, -50%);
}
@media (min-width: 900px) {
  .uj-linha-a { width: 46%; }
  .uj-linha-b { width: 34%; }
}
.uj-linha-b span { position: absolute; left: 0; right: 0; height: 1px; }
.uj-linha-b span:first-child {
  top: 0;
  background: linear-gradient(90deg, rgba(255, 122, 26, 0), var(--amber) 30%, var(--amber) 70%, rgba(255, 122, 26, 0));
  box-shadow: 0 0 10px rgba(255, 122, 26, 0.5);
}
.uj-linha-b span:last-child {
  bottom: 0;
  background: linear-gradient(90deg, rgba(255, 122, 26, 0), rgba(255, 154, 61, 0.7) 30%, rgba(255, 154, 61, 0.7) 70%, rgba(255, 122, 26, 0));
  box-shadow: 0 0 10px rgba(255, 122, 26, 0.35);
}

/* Abertura */
.uj-hero {
  position: absolute; left: var(--margem); right: var(--margem);
  bottom: clamp(88px, 15vh, 150px); z-index: 80; pointer-events: none;
}
.uj-hero > div { animation: ujSobe 0.7s var(--ease) 0.12s both; }
/* O microtexto é a linha mais fina da página e cai justamente sobre a área de céu
   claro do primeiro quadro. A sombra difusa segura a leitura sem caixa nem barra. */
.uj-hero .micro {
  font-size: 10px; letter-spacing: 0.2em; color: rgba(242, 239, 232, 0.94);
  text-shadow: 0 0 4px rgba(5, 5, 5, 0.9), 0 1px 18px rgba(5, 5, 5, 0.85);
}
.uj-hero h1, .uj-hero .conceito { text-shadow: 0 2px 28px rgba(5, 5, 5, 0.45); }
.uj-hero h1 {
  margin-top: 14px;
  font-size: clamp(2.9rem, 13.5vw, 4.6rem); font-weight: 350;
  letter-spacing: -0.04em; line-height: 0.98; color: var(--paper);
}
.uj-hero .conceito {
  margin-top: 16px; font-size: 1.02rem; font-weight: 300;
  letter-spacing: 0.01em; color: rgba(242, 239, 232, 0.92);
}
.uj-hero .cta { margin-top: 22px; pointer-events: auto; }
.uj-hero h1 .quebra { display: block; }
@media (min-width: 900px) {
  .uj-hero { bottom: clamp(56px, 11vh, 120px); }
  .uj-hero .micro { margin-bottom: 18px; font-size: 11px; letter-spacing: 0.22em; }
  .uj-hero h1 {
    margin-top: 0;
    font-size: clamp(4.8rem, 10vw, 10rem); letter-spacing: -0.045em;
  }
  .uj-hero h1 .quebra { display: inline; }
  .uj-hero .conceito { margin-top: 20px; font-size: clamp(1.05rem, 1.4vw, 1.35rem); }
  .uj-hero .cta { margin-top: 32px; }
}

.uj-cue {
  position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 79; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.uj-cue i {
  display: block; width: 1px; height: 26px; font-style: normal;
  background: linear-gradient(var(--amber), rgba(255, 122, 26, 0));
  transform-origin: top; animation: ujPulso 2.4s var(--ease) infinite;
}
.uj-cue span { font-size: 9px; letter-spacing: 0.24em; color: rgba(214, 212, 206, 0.6); }
@media (min-width: 900px) {
  .uj-cue { bottom: 26px; gap: 10px; }
  .uj-cue i { height: 32px; }
  .uj-cue span { font-size: 10px; }
}

/* Capítulos: posição própria por cena, para não cobrir o que a arquitetura tem de bom */
.uj-cap {
  position: absolute; left: var(--margem); right: 16vw;
  z-index: 78; opacity: 0; visibility: hidden; pointer-events: none;
}
.uj-cap-topo { display: flex; align-items: center; gap: 12px; }
.uj-cap-topo b {
  font-size: 10px; letter-spacing: 0.2em; font-weight: 400;
  color: var(--amber-light); font-variant-numeric: tabular-nums;
}
.uj-cap-topo i {
  width: 28px; height: 1px; flex: none;
  background: linear-gradient(90deg, var(--amber), rgba(255, 122, 26, 0));
}
.uj-cap-topo em {
  font-size: 10px; letter-spacing: 0.18em; font-style: normal;
  color: rgba(214, 212, 206, 0.78);
}
.uj-cap p {
  margin-top: 12px; max-width: 26ch;
  font-size: 1.12rem; font-weight: 300; line-height: 1.45; color: var(--paper);
}
.uj-cap[data-uj-chapter="1"] { bottom: 18%; }
.uj-cap[data-uj-chapter="2"] { top: 15%; }
.uj-cap[data-uj-chapter="3"] { bottom: 16%; }
.uj-cap[data-uj-chapter="4"] { top: 13%; }
.uj-cap[data-uj-chapter="5"] { top: 13%; }
@media (min-width: 900px) {
  .uj-cap { right: auto; max-width: 36rem; }
  .uj-cap-topo { gap: 14px; }
  .uj-cap-topo b, .uj-cap-topo em { font-size: 11px; letter-spacing: 0.2em; }
  .uj-cap-topo i { width: 34px; }
  .uj-cap p {
    margin-top: 14px; max-width: 30ch;
    font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  }
  .uj-cap[data-uj-chapter="1"] { bottom: 15%; }
  .uj-cap[data-uj-chapter="1"] p { max-width: 34ch; }
  /* O limiar vai para a direita: no desktop a moldura escura ocupa o eixo central */
  .uj-cap[data-uj-chapter="2"] {
    top: auto; bottom: 16%; left: auto; right: var(--margem);
    text-align: right; display: flex; flex-direction: column; align-items: flex-end;
  }
  .uj-cap[data-uj-chapter="2"] .uj-cap-topo { flex-direction: row-reverse; }
  .uj-cap[data-uj-chapter="2"] .uj-cap-topo i { background: linear-gradient(270deg, var(--amber), rgba(255, 122, 26, 0)); }
  .uj-cap[data-uj-chapter="3"] { bottom: 12%; }
  .uj-cap[data-uj-chapter="4"] { top: auto; bottom: 13%; }
  .uj-cap[data-uj-chapter="4"] p { max-width: 33ch; }
  .uj-cap[data-uj-chapter="5"] { top: 14%; }
}

/* Indicador mínimo, enquanto a imagem trabalha sozinha */
.uj-mini {
  position: absolute; left: var(--margem); bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 76; display: flex; align-items: center; gap: 10px;
  opacity: 0; visibility: hidden; pointer-events: none;
}
.uj-mini b {
  font-size: 11px; letter-spacing: 0.18em; font-weight: 400;
  color: var(--amber-light); font-variant-numeric: tabular-nums;
}
.uj-mini i { width: 22px; height: 1px; background: var(--amber); opacity: 0.8; }
.uj-mini em {
  font-size: 9px; letter-spacing: 0.2em; font-style: normal;
  color: rgba(214, 212, 206, 0.62);
}
@media (min-width: 900px) {
  .uj-mini { bottom: 26px; gap: 12px; }
  .uj-mini b { font-size: 12px; }
  .uj-mini i { width: 26px; }
  .uj-mini em { font-size: 10px; letter-spacing: 0.22em; }
}

/* Fechamento dentro do palco */
.uj-final {
  position: absolute; left: var(--margem); right: var(--margem); bottom: 14%;
  z-index: 82; opacity: 0; visibility: hidden; pointer-events: none;
}
.uj-final h2 {
  font-size: clamp(1.65rem, 7vw, 2.4rem); font-weight: 320;
  letter-spacing: -0.025em; line-height: 1.16; color: var(--paper);
}
.uj-final h2 { text-shadow: 0 2px 28px rgba(5, 5, 5, 0.45); }
.uj-final .assinatura {
  margin-top: 20px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(242, 239, 232, 0.94);
  text-shadow: 0 0 4px rgba(5, 5, 5, 0.9), 0 1px 18px rgba(5, 5, 5, 0.85);
}
.uj-final .cta { margin-top: 14px; }
@media (min-width: 900px) {
  .uj-final { right: auto; bottom: 16%; max-width: 46rem; }
  .uj-final h2 { font-size: clamp(2.2rem, 4.6vw, 4.6rem); letter-spacing: -0.03em; line-height: 1.1; }
  .uj-final .assinatura { margin-top: 26px; font-size: 11px; letter-spacing: 0.22em; }
  .uj-final .cta { margin-top: 22px; }
}

/* Trilho de progresso */
.uj-trilho {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  height: 26vh; width: 1px; z-index: 90; opacity: 0.22;
}
@media (min-width: 900px) { .uj-trilho { right: 28px; height: 34vh; } }
.uj-trilho > i { position: absolute; inset: 0; background: rgba(214, 212, 206, 0.18); }
.uj-trilho-fill {
  position: absolute; inset: 0;
  background: linear-gradient(var(--amber-light), var(--amber));
  transform: scaleY(0); transform-origin: top;
  box-shadow: 0 0 10px rgba(255, 122, 26, 0.55);
}
.uj-trilho-ponto {
  position: absolute; left: 50%; top: 0; width: 3px; height: 3px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--amber-light); box-shadow: 0 0 8px rgba(255, 122, 26, 0.9);
}
.uj-trilho button {
  display: none;
  position: absolute; left: 50%; transform: translate(-50%, -50%);
  width: 22px; height: 22px; padding: 0; margin: 0;
  background: none; border: none; cursor: pointer;
  align-items: center; justify-content: center;
}
.uj-trilho button i { display: block; width: 3px; height: 3px; border-radius: 50%; background: rgba(214, 212, 206, 0.55); }
.uj-trilho button:hover i { background: var(--amber-light); }
@media (min-width: 900px) { .uj-trilho button { display: flex; } }

@keyframes ujSobe { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ujPulso { 0%, 100% { transform: scaleY(0.35); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* -- Modo editorial ---------------------------------------------------------
   O mesmo percurso sem animação: é o que aparece sem JavaScript e para quem
   pediu movimento reduzido. Some quando o motor assume. */
.editorial { padding: 92px var(--margem) 32px; }
.editorial > .micro { font-size: 10px; letter-spacing: 0.2em; }
.editorial .ed-titulo {
  margin-top: 14px;
  font-size: clamp(2.6rem, 12vw, 4rem); font-weight: 350;
  letter-spacing: -0.04em; line-height: 0.98; color: var(--paper);
}
.editorial .conceito {
  margin-top: 14px; font-size: 1rem; font-weight: 300; color: rgba(242, 239, 232, 0.92);
}
.editorial figure { margin: 56px 0 0; padding: 0; }
.editorial figure img { width: 100%; height: auto; }
.editorial figcaption { margin-top: 16px; }
.editorial figcaption p {
  margin-top: 10px; font-size: 1.06rem; font-weight: 300; line-height: 1.5; color: var(--paper);
}
.editorial-fim { margin-top: 72px; }
.editorial-fim h2 {
  font-size: clamp(1.5rem, 6.4vw, 2.1rem); font-weight: 320;
  letter-spacing: -0.02em; line-height: 1.2; color: var(--paper);
}
.editorial-fim .assinatura {
  margin-top: 18px; font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(214, 212, 206, 0.66);
}
.editorial-fim .cta { margin-top: 10px; }
@media (min-width: 900px) {
  .editorial { padding: 110px clamp(48px, 6vw, 96px) 40px; max-width: 1200px; margin: 0 auto; }
  .editorial > .micro { font-size: 11px; letter-spacing: 0.22em; }
  .editorial .ed-titulo { margin-top: 0; font-size: clamp(3rem, 8vw, 7rem); letter-spacing: -0.045em; }
  .editorial .conceito { margin-top: 18px; font-size: clamp(1.05rem, 1.4vw, 1.35rem); }
  .editorial figure { margin-top: 84px; }
  .editorial figcaption { margin-top: 20px; }
  .editorial figcaption p { margin-top: 12px; font-size: clamp(1.1rem, 1.6vw, 1.45rem); max-width: 44ch; }
  .editorial-fim { margin-top: 96px; }
  .editorial-fim h2 { font-size: clamp(1.8rem, 3.6vw, 3.2rem); letter-spacing: -0.03em; line-height: 1.15; }
  .editorial-fim .assinatura { margin-top: 22px; font-size: 11px; letter-spacing: 0.22em; }
  .editorial-fim .cta { margin-top: 20px; }
}

/* Alternância entre os dois modos. O HTML nasce com class="sem-js" no <html>:
   sem JavaScript o editorial é o que fica de pé. */
.editorial { display: none; }
.sem-js .uj, .movimento-reduzido .uj { display: none; }
.sem-js .editorial, .movimento-reduzido .editorial { display: block; }
.sem-js .hud-cap, .sem-js .hud-menu { display: none; }

/* -- Epílogo -------------------------------------------------------------- */
.epilogo {
  position: relative; background: var(--void);
  padding: clamp(88px, 14vh, 140px) var(--margem) 0;
}
@media (min-width: 900px) { .epilogo { padding: clamp(110px, 16vh, 180px) clamp(48px, 6vw, 96px) 0; } }

.materia-titulo {
  margin-bottom: 26px; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--amber-light);
}
.materia-titulo span { color: rgba(214, 212, 206, 0.4); }
.materia-item {
  display: flex; align-items: baseline; gap: 16px;
  padding: 18px 0; border-top: 1px solid var(--linha);
}
.materia-item:last-of-type { border-bottom: 1px solid var(--linha); }
.materia-item b {
  font-size: 10px; letter-spacing: 0.16em; font-weight: 400;
  color: rgba(214, 212, 206, 0.45); font-variant-numeric: tabular-nums;
}
.materia-item h3 {
  font-size: 1.5rem; font-weight: 300; letter-spacing: -0.015em; color: var(--paper);
}
.materia-item.amber h3 { color: var(--amber-light); }
.materia-nota { margin-top: 34px; }
.materia-nota i { display: block; width: 34px; height: 1px; background: var(--amber); margin-bottom: 18px; }
.materia-nota p {
  font-size: 1.15rem; font-weight: 300; line-height: 1.5;
  color: rgba(242, 239, 232, 0.92); max-width: 26ch;
}
@media (min-width: 900px) {
  .materia { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 3vw, 48px); }
  .materia-lista { grid-column: 1 / span 7; }
  .materia-titulo { margin-bottom: 34px; font-size: 11px; letter-spacing: 0.26em; }
  .materia-item { gap: 22px; padding: 24px 0; }
  .materia-item b { font-size: 11px; letter-spacing: 0.18em; }
  .materia-item h3 { font-size: clamp(1.9rem, 3.2vw, 3.1rem); letter-spacing: -0.02em; }
  .materia-nota { grid-column: 9 / span 4; align-self: end; margin-top: 0; }
  .materia-nota i { margin-bottom: 22px; }
  .materia-nota p { font-size: clamp(1.2rem, 1.8vw, 1.6rem); }
}

.fecho { padding: clamp(96px, 16vh, 160px) 0 clamp(72px, 11vh, 110px); max-width: 60rem; }
.fecho h2 {
  font-size: clamp(1.9rem, 8vw, 2.8rem); font-weight: 320;
  letter-spacing: -0.03em; line-height: 1.08; color: var(--paper);
}
.fecho .cta { margin-top: 28px; }
@media (min-width: 900px) {
  .fecho { padding: clamp(140px, 20vh, 220px) 0 clamp(100px, 14vh, 150px); }
  .fecho h2 { font-size: clamp(2.6rem, 5vw, 5rem); letter-spacing: -0.035em; line-height: 1.06; }
  .fecho .cta { margin-top: 40px; }
}

.rodape {
  border-top: 1px solid rgba(214, 212, 206, 0.12);
  padding: 34px 0 calc(44px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; gap: 16px 48px;
  align-items: baseline; justify-content: space-between;
}
.rodape .selo { font-size: 11px; letter-spacing: 0.2em; color: rgba(214, 212, 206, 0.55); }
.rodape .transparencia {
  font-size: 12px; line-height: 1.7; color: rgba(214, 212, 206, 0.55); max-width: 52ch;
}
.rodape .volta {
  font-size: 12px; letter-spacing: 0.14em; color: rgba(242, 239, 232, 0.85);
  border-bottom: 1px solid rgba(255, 122, 26, 0.5); padding-bottom: 3px;
}

/* -- Movimento reduzido --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
