/* ------------------------------------------------------------------
   base · reset contido, tipografia, utilidades
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--nevoa); }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, picture, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--petroleo); color: var(--nevoa); }

/* — display: grotesca leve, tracking fechado; peso é o que muda, não a família.
   O negrito é mais largo, então fecha menos que o leve para não encostar. — */
.display, h1, h2, h3 {
  font-weight: 300;
  letter-spacing: -.034em;
  line-height: var(--lh-display);
  text-wrap: balance;
}
h1 strong, h2 strong, h3 strong, .display strong { font-weight: 560; letter-spacing: -.022em; }

/* rótulo: caixa alta, levemente condensado */
.label {
  font-size: var(--fs-label);
  font-weight: 500;
  font-stretch: 88%;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  line-height: 1.45;
  color: var(--muted);
}
.label span { opacity: .55; }
.label--accent { color: var(--accent); }

.num { font-variant-numeric: tabular-nums lining-nums; }
.lede { font-size: var(--fs-lede); line-height: 1.45; color: var(--fg-soft); text-wrap: pretty; }

.section-no { display: flex; gap: .8em; align-items: baseline; }

/* — foco visível — */
:focus { outline: none; }
:focus-visible { outline: 1.5px solid var(--petroleo); outline-offset: 4px; }
[data-theme="accent"] :focus-visible, [data-theme="dark"] :focus-visible { outline-color: var(--menta); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: fixed; top: .75rem; left: .75rem; z-index: 100;
  padding: .6rem 1rem; background: var(--petroleo); color: var(--nevoa);
  font-size: var(--fs-small);
  transform: translateY(-200%);
  transition: transform var(--m-fast) var(--ease-standard);
}
.skip:focus-visible { transform: none; }

/* — grão bem leve: aqui a superfície é limpa, quase de laboratório — */
.grain {
  position: fixed; inset: -50%; z-index: var(--z-grain);
  pointer-events: none; opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

/* — imagem de banco em duotone petróleo (o filtro SVG está no index.html) — */
.duo { filter: url(#duo-petroleo); }

/* — escala milimetrada: traço a cada 0,1 e traço longo a cada 0,5 — */
.ticks-v {
  background:
    repeating-linear-gradient(to top, currentColor 0 1px, transparent 1px calc(100% / 4)) left / 100% 100% no-repeat,
    repeating-linear-gradient(to top, currentColor 0 1px, transparent 1px calc(100% / 20)) left / 45% 100% no-repeat;
}

/* máscara de linha do SplitText: folga para acentos e descendentes */
.rv-mask-line-mask { padding: .1em .14em .18em; margin: -.1em -.14em -.18em; }

/* — estados iniciais controlados por JS (evita flash) — */
.js [data-reveal="lines"],
.js [data-reveal="fade"] { visibility: hidden; }
.js [data-reveal="mask"] { clip-path: inset(100% 0 0 0); }
.js [data-reveal="mask"] img { transform: scale(1.1); }

.reduced [data-reveal] { visibility: visible !important; clip-path: none !important; }
.reduced [data-reveal="mask"] img { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: smooth; }
  .js [data-reveal] { visibility: visible !important; clip-path: none !important; }
  .js [data-reveal="mask"] img { transform: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
