/* Custom properties */
:root {
  --color-bg: #0a0a0a;
  --color-text: #fafafa;
  --color-accent: #ea00ffcb;
  --color-muted: #555;
  --color-border: #1e1e1e;

  --font-headline: 'Archivo Black', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  --spacing-xxl: 12rem;

  --nav-height: 5rem;
  --max-width: 1400px;
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* Suppress native cursor everywhere — beats UA rules on all elements, states, and pseudo-classes */
*, *::before, *::after { cursor: none !important; }

/* Touch/stylus: restore native cursor and hide custom elements */
@media (hover: none) {
  *, *::before, *::after { cursor: auto !important; }
  .cursor, .cursor-follower { display: none; }
}

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

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

ul { list-style: none; }

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

input, select, textarea, [role="button"] {
  cursor: none;
}

html,
html *,
html *::before,
html *::after {
  cursor: none !important;
}

:active,
:hover,
:focus,
:focus-within,
:focus-visible,
:target,
:visited,
:link {
  cursor: none !important;
}

input,
textarea,
select,
button,
a,
label {
  cursor: none !important;
}

input:active,
input:hover,
input:focus,
textarea:active,
textarea:hover,
textarea:focus,
select:active,
select:hover,
select:focus,
button:active,
button:hover,
button:focus,
a:active,
a:hover,
a:focus {
  cursor: none !important;
}

:-webkit-any-link,
:-moz-any-link,
:any-link {
  cursor: none !important;
}

* {
  cursor: none !important;
}

*:active,
*:hover,
*:focus {
  cursor: none !important;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-headline);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

p {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(250, 250, 250, 0.75);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

section {
  padding: var(--spacing-xxl) var(--spacing-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 9999;
  animation: grain 0.5s steps(1) infinite;
}

/* Section header */
.section-header {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--color-border);
}

.section-number {
  color: var(--color-accent);
  font-size: 0.7rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md);
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-muted); border-radius: 2px; }

/* Selection */
::selection {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* Responsive */
@media (max-width: 768px) {
  section {
    padding: var(--spacing-xl) var(--spacing-sm);
  }
  .footer {
    flex-direction: column;
    gap: var(--spacing-xs);
    text-align: center;
  }
}
