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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  background-color: var(--navy-950);
}

body {
  margin: 0;
  min-height: 100vh;
  padding-top: var(--header-h);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--white);
  background: transparent;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient background (fixed, behind everything) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--dark-bg);
}

main { background: transparent; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: var(--tracking-heading);
  line-height: 1.02;
}

/* Gradient text on main page titles */
.hero-copy h1,
.home-hero-copy h1,
.page-hero-copy h1,
.partner-hero h1 {
  background: linear-gradient(120deg, #ffffff 30%, var(--turquoise-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

.icon { width: 1.05em; height: 1.05em; flex: none; }

/* Accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--orange);
  color: #fff;
  border-radius: 0 0 0.35rem 0;
}
.skip-link:focus { left: 0; }

/* Scroll-reveal animation (add class "reveal" in PHP, toggle "is-visible" with JS) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--ease-reveal), transform var(--ease-reveal);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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