/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  /* Page background matches the design: deep teal base (#001C29) with soft
     ambient teal glows for depth. Fixed so it stays put while scrolling. */
  background-color: var(--color-deep-29);
  background-image:
    radial-gradient(900px 540px at -8% 48%, rgba(32,103,117,0.22), transparent 62%),
    radial-gradient(1100px 680px at 106% 70%, rgba(32,103,117,0.15), transparent 60%),
    radial-gradient(900px 600px at -5% 95%, rgba(32,103,117,0.18), transparent 62%);
  background-repeat: no-repeat;
  color: var(--text-on-dark);
  line-height: 1.4;
  /* the off-canvas mobile nav is parked just past the right edge
     (transform: translateX(100%)); clip horizontal overflow so it can't
     create a horizontal scrollbar / widen the layout on small screens */
  overflow-x: hidden;
}

/* Type styles — see design-spec.md § Type styles.
   Now using the original design fonts (self-hosted): Helvetica Neue LT Pro
   (Extended) for display headings and Helvetica Neue for body — see the
   @font-face block and font tokens in tokens.css. */

.details {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 10px;
  line-height: 11px;
  letter-spacing: 0;
  color: var(--text-on-dark);
}

.body-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  line-height: 23px;
  letter-spacing: 0;
  color: var(--text-on-dark);
}

.big-headline-green {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 55px;
  line-height: 70px;
  letter-spacing: 0;
  color: var(--accent-green);
  text-transform: uppercase;
}

.big-headline-slides {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 35px;
  line-height: 50px;
  letter-spacing: 0;
  color: var(--text-on-dark);
  text-transform: uppercase;
}

.sub-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 40px;
  letter-spacing: 0;
  color: var(--accent-mint);
}

.small-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 0.9px;
  color: var(--accent-green);
  text-transform: uppercase;
}

/* ============================================================
   Motion system — page-load fade + scroll reveal
   Hidden states are gated behind html.js (added by an inline head script
   before paint), so if JS is disabled/fails, all content stays visible.
   Only opacity + transform animate (GPU-friendly, no layout thrash).
   ============================================================ */

/* gentle whole-page fade-in so navigating between pages never snaps */
.js body { animation: page-fade var(--dur-slow) var(--ease-out) both; }
@keyframes page-fade { from { opacity: 0; } to { opacity: 1; } }

/* scroll reveal: fade + rise as elements enter/leave the viewport */
.js .reveal {
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(16px);
}
.js .reveal:not(.is-visible)[data-dir="up"] { transform: translateY(-16px); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* lighter travel on small screens */
@media (max-width: 768px) {
  .js .reveal:not(.is-visible) { transform: translateY(10px); }
  .js .reveal:not(.is-visible)[data-dir="up"] { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .js body { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
