/* ═══════════════════════════════════════════════════════════════
   BASE — Reset + Typography + Utilities
   ═══════════════════════════════════════════════════════════════ */

/* ── FONTS ─────────────────────────────────────────────────────── */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@200,300,400,500,600,700&f[]=jakarta@300,400,500,600,700,800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500&display=swap');

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'cv01', 'cv11';
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

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

ul, ol { list-style: none; }

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

/* Focus visible (a11y) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-2);
}

/* ── TYPOGRAPHY ────────────────────────────────────────────────── */
.display, h1.display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tighter);
}

h1, .h1 {
  font-family: var(--font-display);
  font-size: var(--fs-6xl);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tighter);
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: var(--fs-5xl);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

h3, .h3 {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 500;
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
}

h4, .h4 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  line-height: var(--lh-snug);
}

p, .body {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--fg-muted);
  max-width: 65ch;
}

.lead {
  font-size: var(--fs-xl);
  line-height: var(--lh-relaxed);
  color: var(--fg-muted);
  max-width: 60ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent-deep);
  border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
}

.theme-deep .eyebrow {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--color-vert-300);
  border-color: color-mix(in srgb, var(--accent) 24%, transparent);
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum';
}

/* ── LAYOUT ────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-x);
}

.section {
  padding-block: var(--section-py);
}

/* ── UTILITIES ─────────────────────────────────────────────────── */
.text-accent { color: var(--accent); }
.text-muted  { color: var(--fg-muted); }
.text-subtle { color: var(--fg-subtle); }
.text-center { text-align: center; }

.bg-deep { background: var(--bg-deep); color: var(--fg-on-deep); }

.divider {
  width: 100%;
  height: 1px;
  background: var(--line);
  border: 0;
}

/* Subtle film grain overlay (Editorial Luxury) */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-noise);
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll reveal — base state */
[data-reveal] {
  opacity: 0;
  transform: translateY(2rem);
  filter: blur(8px);
  transition:
    opacity var(--dur-slow) var(--ease-out-soft),
    transform var(--dur-slow) var(--ease-out-soft),
    filter var(--dur-slow) var(--ease-out-soft);
  will-change: transform, opacity;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
[data-reveal-delay="100"].is-visible { transition-delay: 100ms; }
[data-reveal-delay="200"].is-visible { transition-delay: 200ms; }
[data-reveal-delay="300"].is-visible { transition-delay: 300ms; }
[data-reveal-delay="400"].is-visible { transition-delay: 400ms; }
[data-reveal-delay="500"].is-visible { transition-delay: 500ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
}

/* Responsive helpers */
.only-desktop { display: block; }
.only-mobile { display: none; }
@media (max-width: 768px) {
  .only-desktop { display: none; }
  .only-mobile { display: block; }
}
