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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  border: 0;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

::selection {
  background: var(--color-primary);
  color: var(--color-black);
}

:focus-visible {
  outline: 3px solid var(--color-black);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--color-primary);
}

.container {
  width: min(calc(100% - (var(--gutter-desktop) * 2)), var(--container-width));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

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

.section--dark {
  background: var(--color-dark);
  color: var(--color-text-light);
}

.section__eyebrow,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
}

.section__eyebrow::before,
.eyebrow::before {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-primary);
  content: "";
  flex: 0 0 auto;
}

.section--dark .section__eyebrow,
.section--dark .eyebrow {
  color: rgba(255, 255, 255, 0.65);
}

.display-title {
  margin-bottom: 1.75rem;
  font-size: clamp(3.4rem, 7vw, 7.2rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.section-title {
  margin-bottom: 1.5rem;
  font-size: clamp(2.7rem, 5vw, 5.5rem);
  font-weight: 620;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.section-title--standard {
  font-size: clamp(2rem, 3.5vw, 3.8rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.text-accent {
  color: var(--color-primary-hover);
}

.section--dark .text-accent {
  color: var(--color-primary);
}

.lede {
  max-width: 62ch;
  color: var(--color-text-muted);
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  line-height: 1.7;
}

.section--dark .lede {
  color: rgba(255, 255, 255, 0.68);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: var(--color-black);
  font-weight: 750;
  transform: translateY(-160%);
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-delay-1 { transition-delay: 90ms; }
.reveal-delay-2 { transition-delay: 180ms; }
.reveal-delay-3 { transition-delay: 270ms; }

.wordmark__logo {
  width: 180px;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Mobile */
.mobile-nav .wordmark__logo {
  width: 150px;
  height: auto;
}

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

/* Final quality-control refinements */
section[id],
main[id] {
  scroll-margin-top: calc(var(--header-height) + 28px);
}

[hidden] {
  display: none !important;
}


/* Global wide-screen reading safeguards for the 95% outer container. */
@media (min-width: 1600px) {
  .lede {
    max-width: 60ch;
  }
}
