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

html {
  background-color: #f1f6fb; /* matches --sky-top-tint blue */
  background-color: var(--sky-top-tint);
  min-height: 100%;
  color-scheme: only light;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  font-family: var(--font-sans);
  overscroll-behavior-y: none;
}

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



body {
  font-family: var(--font-sans);
  color: var(--text);
  /* iOS Safari uses body's background for the area behind its bottom toolbar.
     'transparent' or no background → Safari renders white there.
     This sky-blue matches the cloudscape; in the viewport the cloudscape
     (position:fixed, z-index:-1) paints over it, so clouds still show. */
  background-color: #f1f6fb; /* matches --sky-top-tint blue */
  background-color: var(--sky-top-tint);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

body.lenis,
body.lenis-smooth {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}



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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-soft);
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10000;
  padding: 0.6rem 1rem;
  background: var(--text);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 1rem;
}

.content-layer {
  position: relative;
  z-index: 2;
  /* Use dynamic viewport height so the bottom of the page (footer) aligns perfectly
     with the top of the mobile Safari toolbar, rather than hiding behind it. */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
}

.wrap--wide {
  max-width: 1320px;
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-soft);
  opacity: 0.85;
}

.lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.section-pad {
  padding-top: clamp(4rem, 10vw, 7rem);
  padding-bottom: clamp(4rem, 10vw, 7rem);
}

.haze-divider {
  height: clamp(4rem, 12vw, 8rem);
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, calc(var(--haze-opacity) * 0.6)),
    transparent
  );
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

