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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4 {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

p {
  line-height: 1.65;
  color: var(--muted);
}

.shell {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(2.75rem, 5vw, 4.25rem) 0;
  overflow: hidden;
}

.section--fog {
  background: var(--fog);
}

.section--navy {
  background: linear-gradient(165deg, var(--navy-deep), var(--navy) 55%, #16356e);
  color: #fff;
}

.section--navy p {
  color: rgba(255, 255, 255, 0.78);
}

.eyebrow {
  display: block;
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--singel);
}

.section--navy .eyebrow {
  color: #8ec0ff;
}

.lead {
  font-size: 1.08rem;
  max-width: 42rem;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.section-head .eyebrow {
  display: block;
  margin-bottom: 0.75rem;
}

.section-head h2,
.section-head .title-split {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem) !important;
  line-height: 1.15;
  margin: 0 0 0.75rem !important;
  color: var(--ink);
}

.section-head .lead,
.section-head > p {
  margin: 0;
  max-width: 40rem;
}

.section--navy .section-head h2,
.section--navy .section-head .title-split {
  color: #fff;
}

/* h2 de conteúdo (fora de section-head) no mesmo padrão */
.split h2,
.split .title-split,
.section > .shell > h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  line-height: 1.15;
  margin: 0 0 0.85rem;
  color: var(--ink);
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--singel), #4d94ff, var(--power));
  box-shadow: 0 0 12px var(--singel-glow);
  pointer-events: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
