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

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

body {
  background: var(--k-black);
  color: var(--k-white);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Noise texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: var(--z-overlay);
  opacity: 0.5;
}

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

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

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font-family: inherit;
}

/* === LAYOUT === */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s5);
}

.container--sm {
  max-width: var(--container-sm);
}

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

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(42px, 7vw, 88px); }
h2 { font-size: clamp(32px, 5vw, 56px); }
h3 { font-size: clamp(22px, 3vw, 32px); }
h4 { font-size: clamp(18px, 2.5vw, 24px); }

.label-mono {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--k-grey-500);
}

.label-mono--teal {
  color: var(--k-teal);
}

/* === DIVIDER === */
.divider {
  height: 1px;
  background: var(--k-grey-200);
}

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--duration-lg) var(--ease-out),
    transform var(--duration-lg) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* === FOCUS === */
:focus-visible {
  outline: 2px solid var(--k-teal);
  outline-offset: 3px;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* === SELECTION === */
::selection {
  background: var(--k-teal-dim-md);
  color: var(--k-white);
}

/* === SKIP LINK === */
.skip-link {
  position: absolute;
  top: -40px;
  left: var(--s4);
  padding: var(--s2) var(--s4);
  background: var(--k-teal);
  color: var(--k-black);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: var(--s4);
}
