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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--void);
  color: var(--chalk);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

body.no-cursor { cursor: auto; }

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

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

ul { list-style: none; }

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

/* Grid overlay background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(240, 237, 232, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 237, 232, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

/* Noise texture */
body::after {
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
  z-index: var(--z-base);
}

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

/* Skip link for accessibility */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  background: var(--chalk);
  color: var(--void);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  z-index: calc(var(--z-cursor) + 1);
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* Reveal animation base */
.reveal {
  opacity: 0;
  transform: translateY(32px);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
}
.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Section label style */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chalk-ghost);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--chalk-ghost);
}

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background: var(--glass-border);
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--chalk-faint); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--chalk-ghost); }
