/* ==========================================================================
   BASE — design tokens, reset, typography
   ========================================================================== */

:root {
  /* Palette: charcoal → soft grey. No pure black, no pure white. */
  --bg:          #1c1d1f;   /* page base */
  --bg-raised:   #222326;   /* slightly lifted sections */
  --bg-light:    #2a2b2e;   /* lightest section (About) */
  --bg-frame:    #2e2f33;   /* empty media frames */

  --fg:          #ebe9e4;   /* primary text, warm off-white */
  --fg-muted:    #a3a29e;   /* body copy */
  --fg-dim:      #858481;   /* labels, meta (4.5:1 on --bg: the smallest words stay readable) */

  --line:        rgba(235, 233, 228, 0.1);
  --line-strong: rgba(235, 233, 228, 0.24);

  /* Type */
  --font: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Spacing */
  --gutter:    clamp(20px, 4.5vw, 72px);
  --max-width: 1640px;
  --section-y: clamp(112px, 15vw, 224px);
  --grid-gap:  clamp(16px, 2.2vw, 36px);

  /* Motion */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-slow:    1.4s;
  --dur:         0.9s;
  --dur-fast:    0.4s;

  --header-h: 76px;
}

/* ---------- Reset ---------- */

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

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Page doesn't reflow (or shift position) when the video player locks scrolling */
  scrollbar-gutter: stable;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  font-feature-settings: "kern", "calt", "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;      /* like hidden, but doesn't break position: sticky (the globe stage) */
}

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

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

ul, ol { list-style: none; }

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

::selection { background: var(--fg); color: var(--bg); }

:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 4px;
}

/* ---------- Typography ---------- */

/* Small uppercase credit-style label */
.label {
  font-size: 0.6875rem;          /* 11px */
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--fg-dim);
}

.section-title {
  font-size: clamp(2.5rem, 6.2vw, 6rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--fg);
}

.lead {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.42;
  color: var(--fg);
}

p { color: var(--fg-muted); max-width: 62ch; }

/* ---------- Utilities ---------- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
