/*
 * design-system.css
 * jimthompsoncreative.com
 * Single source of truth — applies to ALL subpages
 * Last updated: 2026-05-16 — v2
 *
 * DO NOT override tokens or nav styles in page-level CSS.
 * Page CSS (visit-mum.css etc.) adds sections only.
 *
 * ADA compliance:
 *   Silver-bright on Steel:  9.20:1  ✓ AAA  — body copy standard
 *   Silver on Steel:         5.81:1  ✓ AA   — labels, nav, captions
 *   White on Steel:         13.19:1  ✓ AAA  — headlines only
 *   Chartreuse on Steel:     8.75:1  ✓ AAA  — eyebrows, CTAs
 *   --dim on Steel:          1.80:1  ✗ FAIL — NEVER use as text
 */

/* ============================================================
   GOOGLE FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=IBM+Plex+Mono:wght@200;300;400;500;600;700&family=Plus+Jakarta+Sans:wght@200;300;400;500&display=swap');


/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* Backgrounds */
  --steel:       #25282F;   /* universal page background — no exceptions */
  --barrel:      #2E3240;   /* secondary surface */
  --mid:         #1E2028;   /* borders, stat blocks, table cells */

  /* Text */
  --white:       #F1F2F6;   /* headlines, primary text only */
  --silver-bright: #C8CDD8; /* body copy — standard for all case study reading copy */
  --silver:      #9DA2B5;   /* labels, nav links, captions, eyebrows */
  --dim:         #4A4F5C;   /* decorative ONLY — NEVER use as text color (1.80:1 FAIL) */

  /* Accent */
  --chart:       #B8D400;   /* chartreuse — single accent color */
  --chart-hot:   #EBFAA0;   /* brighter chartreuse — signal arrow terminus / peak glow */

  /* Nav */
  --nav-height:  48px;
}


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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--steel);
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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


/* ============================================================
   TYPOGRAPHY SYSTEM
   All sizes confirmed against UX minimums (HANDOFF v5)
   ============================================================ */

/* Eyebrow — section labels — LOCKED SPEC: 14px/500/chartreuse/.28em everywhere */
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--chart);
  text-transform: uppercase;
  letter-spacing: .28em;
}

/* Section headline */
.section-headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(26px, 2.3vw, 36px);
  font-weight: 200;
  color: var(--white);
  line-height: 1.2;
}

/* Section subhead / support copy */
.support-copy {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 200;
  color: var(--white);
  line-height: 1.65;
}

/* Emphasis line — max one per section */
.emphasis {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  color: var(--white);
}

/* Body copy — silver-bright standard */
.body-copy {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 300;
  color: var(--silver-bright);
  line-height: 1.7;
}

/* Labels — chartreuse */
.label--chart {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  color: var(--chart);
  text-transform: uppercase;
  letter-spacing: .25em;
}

/* Node labels — ecosystem */
.label--node {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 300;
  color: var(--silver);
  text-transform: uppercase;
  margin-top: 12px;
}


/* ============================================================
   NAV
   Identical on every subpage.
   Homepage: hide .nav-name via homepage-specific override.
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
  background: transparent;
  transition: background 0.45s ease, backdrop-filter 0.45s ease;
}

/* Chartreuse top bar — animates in on load */
.nav::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--chart);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1) 0.2s;
}

.nav.bar-in::after {
  transform: scaleX(1);
}

/* Scrolled state */
.nav.scrolled {
  background: rgba(37,40,47,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Name — left side, subpages only */
.nav-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: var(--white);
  letter-spacing: .08em;
  text-decoration: none;
  white-space: nowrap;
}

/* Links — right side */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 300;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: .18em;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--white);
}

/* CTA — Let's Get Human → chartreuse only, no box */
.nav-links .nav-cta a {
  color: var(--chart);
}

.nav-links .nav-cta a:hover {
  color: var(--white);
}


/* ============================================================
   SCROLL HINT
   Fixed bottom-right. Fades in at 4s. Hides near page bottom.
   Reappears on scroll back up.
   ============================================================ */
.scroll-hint {
  position: fixed;
  bottom: 48px;
  right: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 0.6s ease 4s forwards;
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.5s ease;
}

.scroll-hint.hide {
  opacity: 0 !important;
  animation: none;
}

.scroll-hint__line {
  width: 1px;
  height: 36px;
  background: var(--chart);
  animation: scrollPulse 2s ease-in-out 4s infinite;
}

.scroll-hint__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 400;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: .3em;
}


/* ============================================================
   VIDEO OVERLAY
   Full screen. ESC or click outside closes.
   ============================================================ */
.video-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.video-overlay__label {
  position: absolute;
  top: 24px;
  left: 32px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: .25em;
}

.video-overlay__close {
  position: absolute;
  top: 20px;
  right: 32px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 20px;
  font-weight: 300;
  color: var(--silver);
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s ease;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.video-overlay__close:hover {
  color: var(--white);
}

.video-overlay__frame {
  width: 90vw;
  max-width: 1200px;
  aspect-ratio: 16/9;
  border: none;
}


/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.3; transform: scaleY(0.6); }
}


/* ============================================================
   UTILITY
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Section base — shared padding rhythm */
.section {
  width: 100%;
  padding: 120px 7vw;
}

.section--tight {
  padding: 80px 7vw;
}

/* Max content width */
.content-wrap {
  max-width: 1400px;
  margin: 0 auto;
}
