/* High Caliber Agencies — shared tokens + primitives */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,300..900&family=IBM+Plex+Mono:wght@400;500;600&family=Cormorant+Garamond:wght@600;700&display=swap');

:root {
  /* palette: night sky black, brushed gold from the badge */
  --ink-950: #07070a;
  --ink-900: #0c0c10;
  --ink-850: #111116;
  --ink-800: #16161c;
  --ink-700: #22222a;
  --ink-600: #2f2f38;
  --ink-500: #4a4a55;
  --ink-400: #74747f;
  --ink-300: #a3a3ad;
  --ink-200: #cfcfd6;
  --ink-100: #ececf0;
  --white: #ffffff;

  --gold-600: #a8801f;
  --gold-500: #c9a23a;
  --gold-400: #dcb553;
  --gold-300: #ebce80;
  --gold-200: #f5e3b0;
  --gold-grad: linear-gradient(115deg, #b8892a 0%, #f3dc93 38%, #cf9f37 62%, #f7e19a 100%);

  --ember: #e0782e;
  --success: #4fbf7f;
  --warn: #e7b14a;
  --danger: #e25a50;
  --info: #6fa4e8;

  --bg: var(--ink-950);
  --surface: var(--ink-900);
  --surface-2: var(--ink-850);
  --surface-3: var(--ink-800);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: var(--ink-100);
  --text-muted: var(--ink-300);
  --text-dim: var(--ink-400);
  --accent: var(--gold-400);
  --on-accent: #0b0905;

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Archivo', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --font-serif: 'Cormorant Garamond', Georgia, serif;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-variation-settings: 'wdth' 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-400); color: var(--on-accent); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* type */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-300);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.display {
  font-family: var(--font-display);
  font-weight: 850;
  font-variation-settings: 'wdth' 112;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin: 0;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: 'wdth' 108;
  text-transform: uppercase;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(17px, 1.4vw, 19px); color: var(--text-muted); max-width: 56ch; font-weight: 350; }
.mono { font-family: var(--font-mono); }

/* buttons — pill + mono label like the references */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h);
  padding: 0 28px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out), transform .25s var(--ease-out);
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; transition: transform .25s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn-light { background: var(--white); color: var(--ink-950); }
.btn-light:hover { background: var(--gold-200); }
.btn-gold { background: var(--gold-grad); color: var(--on-accent); background-size: 160% 100%; }
.btn-gold:hover { background-position: 100% 0; }
.btn-ghost { border-color: var(--line-strong); color: var(--white); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--gold-300); color: var(--gold-200); }
.btn-sm { --h: 40px; padding: 0 18px; font-size: 12px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  white-space: nowrap;
}

@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; }
}

/* gold glow that follows the mouse (assets/js/cursor-glow.js) */
.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 9999;
  width: 420px; height: 420px; margin: -210px 0 0 -210px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(236, 196, 96, .22) 0%, rgba(220, 181, 83, .10) 30%, rgba(220, 181, 83, 0) 65%);
  mix-blend-mode: screen;
  opacity: 0; transition: opacity .4s ease, width .3s ease, height .3s ease, margin .3s ease;
  will-change: transform;
}
.cursor-glow.on { opacity: 1; }
.cursor-glow.hot { background: radial-gradient(circle, rgba(245, 214, 130, .32) 0%, rgba(220, 181, 83, .14) 30%, rgba(220, 181, 83, 0) 65%); }

/* the hidden attribute always wins over component display rules (e.g. the demo role switch in live mode) */
[hidden] { display: none !important; }
