/* Reset & base ------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--color-off-white);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

::selection {
  background: var(--color-saffron);
  color: var(--color-ink);
}

/* Focus ---------------------------------------------------------------- */

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

/* Layout primitives ------------------------------------------------------ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

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

.skip-link {
  position: absolute;
  top: -3rem;
  left: var(--space-sm);
  z-index: 100;
  background: var(--color-saffron);
  color: var(--color-ink);
  padding: 0.6em 1em;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  top: var(--space-sm);
}

/* Section theming ------------------------------------------------------- */

.section {
  position: relative;
  padding-block: var(--space-2xl);
}

.section--dark {
  background: var(--color-ink);
  color: var(--color-off-white);
  --text-secondary: var(--color-muted-cream);
  --divider: var(--color-hairline-dark);
}

.section--light {
  background: var(--color-off-white);
  color: var(--color-ink);
  --text-secondary: var(--color-warm-gray);
  --divider: var(--color-hairline);
}

/* Secondary / connective sections get less vertical weight than
   landmark moments (hero, the two statements, capabilities, why latam,
   final CTA) — intentional variation instead of one uniform rhythm. */
.section--tight {
  padding-block: var(--space-xl);
}

/* A quiet seam where a light section follows a dark one, so the cut
   reads as one continuous environment rather than a stacked slide. */
.section--seam-top::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: clamp(3rem, 7vw, 6.5rem);
  background: linear-gradient(var(--color-ink), transparent);
  opacity: 0.3;
  pointer-events: none;
}

.section--paper {
  background: var(--color-paper);
}

.section-secondary {
  color: var(--text-secondary, var(--color-warm-gray));
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-saffron);
  margin-bottom: var(--space-sm);
}

.hr {
  border: 0;
  border-top: 1px solid var(--divider, var(--color-hairline));
  margin: 0;
}

/* Reveal-on-scroll -------------------------------------------------------- */
/*
  .reveal is the base entrance: a quiet rise. Apply it to whole components
  (a card, a list item, a section header) — never to individual paragraphs
  within a component. .reveal--left and .reveal--scale are the two
  directional variants reserved for section headers and the two editorial
  "statement" moments, so they read as a deliberate signature rather than
  a repeated tic.
*/

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--duration-reveal) var(--ease-premium),
    transform var(--duration-reveal) var(--ease-premium);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal--left {
  transform: translateX(-20px);
}

.reveal--scale {
  transform: scale(0.97);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal--left,
  .reveal--scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
