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

[hidden] {
  display: none !important;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 20rem;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 80% 0%, rgba(105, 175, 232, 0.06), transparent 32rem),
    radial-gradient(circle at 20% 40%, rgba(255, 255, 255, 0.015), transparent 24rem);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.96rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

p,
h1,
h2,
h3,
h4 {
  margin-top: 0;
}

p {
  color: var(--text-soft);
  line-height: 1.65;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  font-weight: 550;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

::selection {
  background: var(--accent);
  color: #061018;
}

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

.container {
  width: var(--page);
  margin-inline: auto;
}

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

.section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.display {
  max-width: 14ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.8rem, 6.5vw, 5.8rem);
  font-weight: 550;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.section-title {
  max-width: 18ch;
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 4.8vw, 4.2rem);
  font-weight: 550;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.section-lead {
  max-width: 38rem;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: clamp(0.98rem, 1.3vw, 1.12rem);
  line-height: 1.6;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.2rem, 4vw, 3.8rem);
}

.section-heading > :first-child {
  max-width: 52rem;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.6rem 1rem;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--bg);
  font-weight: 500;
  font-size: 0.85rem;
}

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

.reveal {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
