/* ============================================================
   PERSON HÉLICES — BASE
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--s-3);
  line-height: var(--leading-tight);
  font-weight: 600;
  text-wrap: balance;
}

/* Display só em H1 e H2 — Sweet Gothic: sempre caixa alta, tracking .06–.08em */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
}
h1 { font-size: var(--text-display); }
h2 { font-size: var(--text-h2); }
/* H3 em diante: Montserrat SemiBold (subtítulos e destaques) */
h3 { font-size: var(--text-h3); font-weight: 600; }

h1, h2, h3 { color: var(--ink-strong); }
.is-deep :is(h1, h2, h3, h4),
.is-abyss :is(h1, h2, h3, h4) { color: var(--ink-inverse); }

p, ul, ol { margin: 0 0 var(--s-3); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a {
  color: inherit;
  text-decoration-color: var(--bronze);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--t-micro);
}
a:hover { text-decoration-color: currentColor; }

img, svg, video { max-width: 100%; height: auto; display: block; }

button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--navy-brand); color: var(--cream); }

/* Utilitários */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--s-2);
  z-index: 200;
  padding: var(--s-1) var(--s-2);
  background: var(--navy);
  color: var(--ink-inverse);
  border-radius: var(--radius);
}
.skip-link:focus { top: var(--s-2); }

/* Eyebrow — Montserrat SemiBold caps.
   Navy sobre claro; dourado só sobre navy (regra do brandbook). */
.eyebrow {
  display: block;
  margin-bottom: var(--s-2);
  font-family: var(--font-body);
  font-size: var(--text-mono);
  font-weight: 600;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--navy-brand);
}

/* Contexto escuro (a partir da linha d'água) */
.is-deep {
  --bg: var(--navy);
  --ink: var(--ink-inverse);
  --ink-soft: var(--ink-inverse-soft);
  --line: var(--line-inverse);
  --focus: var(--gold-light);
  background: var(--bg);
  color: var(--ink);
}
.is-abyss {
  --bg: var(--abyss);
  --ink: var(--ink-inverse);
  --ink-soft: var(--ink-inverse-soft);
  --line: var(--line-inverse);
  --focus: var(--gold-light);
  background: var(--bg);
  color: var(--ink);
}
/* Dourado sobre navy — a única combinação permitida para o acento */
.is-deep .eyebrow, .is-abyss .eyebrow { color: var(--gold-light); }

/* Gelo — apoio frio, áreas de descanso visual */
.is-gelo {
  --bg: var(--gelo);
  --line: rgba(0, 48, 87, 0.18);
  background: var(--bg);
}

/* Seções */
.section { padding-block: var(--section-gap); }

/* Reveals: começam visíveis; JS adiciona a classe que arma a animação */
.reveal { opacity: 1; transform: none; }
.js-motion .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-reveal), transform var(--t-reveal);
}
.js-motion .reveal.is-in { opacity: 1; transform: none; }

@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;
  }
  .js-motion .reveal { opacity: 1; transform: none; }
}
