/* =========================================
   Reset + Base
   ========================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-900);
  background: var(--surface-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: var(--lh-snug);
  margin: 0;
  color: var(--ink-900);
}

p { margin: 0; }

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

/* Selection */
::selection { background: var(--brand-200); color: var(--ink-900); }

/* Containers */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.container-narrow {
  max-width: var(--container-narrow);
}

/* Section base */
.section {
  position: relative;
  padding-block: clamp(48px, 6vw, 88px);
}

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-700);
  background: var(--brand-50);
  padding: 6px 12px;
  border-radius: var(--r-full);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--brand-600);
  border-radius: var(--r-full);
}

/* Section heading helper */
.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-6);
}
.section-heading h2 {
  font-size: var(--fs-h1);
  margin-top: var(--space-3);
}
.section-heading p {
  font-size: var(--fs-lead);
  color: var(--ink-500);
  margin-top: var(--space-4);
}

/* Decorative blue circles motif */
.decor-circle {
  position: absolute;
  border-radius: var(--r-full);
  background: var(--brand-100);
  opacity: .55;
  filter: blur(.5px);
  z-index: var(--z-decor);
  pointer-events: none;
}

/* Utility */
.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Reveal animation defaults (paired with main.js).
   Only hides elements when JS has flagged the html element with `.js`,
   so no-JS / SSR / screenshot rendering still shows the content. */
.reveal {
  transition: opacity var(--t-xslow) var(--ease-out),
              transform var(--t-xslow) var(--ease-out);
  will-change: opacity, transform;
}
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal[data-stagger="1"] { transition-delay: 60ms; }
.reveal[data-stagger="2"] { transition-delay: 120ms; }
.reveal[data-stagger="3"] { transition-delay: 180ms; }
.reveal[data-stagger="4"] { transition-delay: 240ms; }
.reveal[data-stagger="5"] { transition-delay: 300ms; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .parallax { transform: none !important; }
}
