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

html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}

html.lenis,
html.lenis body {
  height: auto;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-silver);
  background: var(--bg-carbon);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-white);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  max-width: 62ch;
}

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

.section {
  position: relative;
  padding: var(--section-pad) 0;
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-emerald);
}

.section__eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald-glow);
}

.section__title {
  font-size: clamp(1.85rem, 4vw, 3rem);
  margin-bottom: 0.85rem;
  max-width: 18ch;
}

.section__lead {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-silver);
  margin-bottom: 2.5rem;
}

.section__header {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

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

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

::selection {
  background: var(--accent-emerald-dim);
  color: var(--text-white);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--accent-emerald);
  color: var(--bg-carbon);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

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

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Custom cursor (desktop) */
.cursor-dot,
.cursor-ring {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  z-index: 9998;
  opacity: 0;
  mix-blend-mode: difference;
  transition: opacity 0.3s var(--ease-soft);
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-emerald);
  transform: translate(-50%, -50%);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 255, 157, 0.55);
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, border-color 0.25s, opacity 0.3s;
}

body.has-custom-cursor .cursor-dot,
body.has-custom-cursor .cursor-ring {
  opacity: 1;
}

body.has-custom-cursor .cursor-ring.is-hover {
  width: 56px;
  height: 56px;
  border-color: var(--highlight-blue);
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}
