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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

html[data-motion="reduced"] {
  scroll-behavior: auto;
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  animation: pageIn 420ms var(--ease-out);
}

body.scroll-lock {
  overflow: hidden;
}

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

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

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

button {
  border: 0;
  background: none;
  cursor: pointer;
}

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

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

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 10000;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--background);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) body {
    animation: none;
  }
}

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

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.container-wide {
  width: min(calc(100% - 40px), var(--container-wide));
  margin-inline: auto;
}

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-4);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

.section-lead {
  max-width: 42rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

html[data-cursor="on"] body.custom-cursor-enabled,
html[data-cursor="on"] body.custom-cursor-enabled a,
html[data-cursor="on"] body.custom-cursor-enabled button {
  cursor: none;
}

@media (max-width: 768px), (pointer: coarse) {
  html[data-cursor="on"] body.custom-cursor-enabled,
  html[data-cursor="on"] body.custom-cursor-enabled a,
  html[data-cursor="on"] body.custom-cursor-enabled button {
    cursor: auto;
  }
}
