/* ============================================================
   global.css — design tokens, resets, utilities
   Load order: global.css → components.css → [page].css
   No CSS vars are redeclared outside this file.
   ============================================================ */

:root {
  /* Surfaces */
  --bg:        #050505;
  --bg2:       #0B0B0D;
  --bg3:       #111111;

  /* Borders */
  --border:    rgba(255,255,255,0.08);
  --border-md: rgba(255,255,255,0.13);
  --border-hi: rgba(255,255,255,0.22);

  /* Text */
  --text:      #F5F5F0;
  --text2:     #A1A1A1;
  --text3:     #6F6F6F;

  /* Layout */
  --max:       1200px;
  --nav-h:     58px;

  /* Type stack — system only, no Google Fonts */
  --ff: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;          /* belt + suspenders with body — prevents
                                  any rogue overflow from triggering
                                  horizontal page scroll on mobile */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
  opacity: 0;
  transition: opacity .2s ease;
}
body.ready { opacity: 1; }

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

button { font-family: inherit; }

/* ============================================================
   Utilities
   ============================================================ */

.inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}

.lbl {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 18px;
  display: block;
}

.s-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.04;
  color: var(--text);
  margin-bottom: 20px;
}

.s-body {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.75;
  font-weight: 300;
  max-width: 580px;
}

.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}
.alt { background: var(--bg2); }

/* Buttons */
.btn {
  padding: 13px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  display: inline-block;
  letter-spacing: .01em;
}
.btn-w { background: var(--text); color: var(--bg); }
.btn-w:hover { opacity: .87; }
.btn-g {
  border: 1px solid var(--border-md);
  color: var(--text2);
}
.btn-g:hover {
  border-color: var(--border-hi);
  color: var(--text);
  background: rgba(255,255,255,.03);
}

/* ============================================================
   Reveal — IntersectionObserver-driven (no scroll listeners)
   Renamed from .r in source for clarity.
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.on {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Reduced motion — disables all non-essential animation
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { transition: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ============================================================
   Mobile breakpoints — utility-level only
   Component-level rules live in components.css / [page].css
   ============================================================ */
@media (max-width: 960px) {
  .inner { padding: 0 24px; }
  .section { padding: 72px 0; }
}
@media (max-width: 540px) {
  .s-title { font-size: clamp(28px, 7vw, 40px); }
}
