:root {
  /* Brand scale (50 → 900) */
  --brand-50:  hsl(221 100% 97%);
  --brand-100: hsl(221 95% 92%);
  --brand-200: hsl(221 92% 85%);
  --brand-300: hsl(221 90% 74%);
  --brand-400: hsl(221 85% 63%);
  --brand-500: hsl(221 83% 53%);
  --brand-600: hsl(221 83% 48%);
  --brand-700: hsl(221 78% 41%);
  --brand-800: hsl(221 72% 35%);
  --brand-900: hsl(221 70% 28%);

  /* Neutral scale (50 → 900) */
  --neutral-50:  hsl(210 20% 98%);  /* = surface */
  --neutral-100: hsl(210 16% 96%);  /* = elev-1 */
  --neutral-200: hsl(210 16% 93%);  /* = elev-2 */
  --neutral-300: hsl(214 32% 91%);  /* = border */
  --neutral-400: hsl(215 16% 70%);
  --neutral-500: hsl(215 16% 55%);
  --neutral-600: hsl(215 16% 45%);  /* = muted */
  --neutral-700: hsl(215 20% 33%);
  --neutral-800: hsl(222 47% 20%);
  --neutral-900: hsl(222 47% 11%);  /* = text */

   /* Accent (base) */
  --accent-gold-wing: #C19149;  /* Gold Wing */
  --accent-horizon:   #36B6FF;  /* Horizon */
  --accent-oxford-sky:#0A1F44;  /* Oxford Sky  */
  /* Optional aliases */
  --accent-1: var(--accent-gold-wing);
  --accent-2: var(--accent-horizon);
  --accent-3: var(--accent-oxford-sky);
  /* Optional 500 anchors if you’re using 50→900 scales elsewhere */
  --accent-gold-wing-500: var(--accent-gold-wing);
  --accent-horizon-500:    var(--accent-horizon);
  --accent-oxford-sky-500: var(--accent-oxford-sky);

  /* Alert palettes (50 → 900) */
  --info-50:   hsl(199 100% 97%);
  --info-100:  hsl(199 95% 92%);
  --info-200:  hsl(199 94% 86%);
  --info-300:  hsl(199 92% 74%);
  --info-400:  hsl(199 90% 60%);
  --info-500:  hsl(199 88% 52%);
  --info-600:  hsl(199 88% 46%);
  --info-700:  hsl(199 90% 40%);
  --info-800:  hsl(199 92% 34%);
  --info-900:  hsl(199 95% 28%);

  --success-50:  hsl(142 76% 97%);
  --success-100: hsl(142 76% 93%);
  --success-200: hsl(142 65% 85%);
  --success-300: hsl(142 61% 72%);
  --success-400: hsl(142 62% 56%);
  --success-500: hsl(142 70% 45%);
  --success-600: hsl(142 71% 40%);
  --success-700: hsl(142 72% 33%);
  --success-800: hsl(142 75% 27%);
  --success-900: hsl(142 84% 22%);

  --warning-50:  hsl(38 100% 97%);
  --warning-100: hsl(38 96% 90%);
  --warning-200: hsl(38 94% 82%);
  --warning-300: hsl(38 92% 70%);
  --warning-400: hsl(38 92% 58%);
  --warning-500: hsl(38 92% 50%);
  --warning-600: hsl(38 92% 46%);
  --warning-700: hsl(38 92% 40%);
  --warning-800: hsl(38 92% 32%);
  --warning-900: hsl(38 85% 25%);

  --danger-50:  hsl(0 100% 97%);
  --danger-100: hsl(0 95% 92%);
  --danger-200: hsl(0 94% 86%);
  --danger-300: hsl(0 90% 74%);
  --danger-400: hsl(0 88% 60%);
  --danger-500: hsl(0 84% 53%);
  --danger-600: hsl(0 84% 46%);
  --danger-700: hsl(0 86% 40%);
  --danger-800: hsl(0 88% 34%);
  --danger-900: hsl(0 90% 28%);

  /* Map legacy tokens to the scales */
  --bg: hsl(0 0% 100%);
  --surface: var(--neutral-50);
  --elev-1: var(--neutral-100);
  --elev-2: var(--neutral-200);
  --text: var(--neutral-900);
  --muted: var(--neutral-600);
  --border: var(--neutral-300);

  /* Effects */
  --shadow-1: 0 1px 2px rgba(0,0,0,.06), 0 1px 1px rgba(0,0,0,.04);
  --shadow-2: 0 10px 30px rgba(2, 6, 23, .08);

  /* Type & rhythm */
  --font-headline: "Exo", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";

  /* Font weights */
  --font-thin: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-black: 900;

  /* Font sizes */
  --fs-display: clamp(2.25rem, 1.2rem + 3.8vw, 4rem);
  --fs-h1: clamp(1.75rem, 1rem + 2.2vw, 2.5rem);
  --fs-h2: clamp(1.25rem, .8rem + 1.4vw, 1.75rem);
  --fs-h3: clamp(1.125rem, .75rem + 1vw, 1.5rem);
  --fs-body: 1rem;
/* Line heights */
  --lh-tight: 1.1;
  --lh-body: 1.65;

/* Border radius */
  --radius: 12px;
  --radius-lg: 16px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 56px;
  --space-10: 72px;
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: var(--lh-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.display,
.brand-name,
.section-head h2,
.heading-h3 h3 {
  font-family: var(--font-headline);
  letter-spacing: -0.01em;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 var(--space-6);
  margin: 0 auto;
}

.display {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}
.lead { font-size: 1.125rem; color: var(--muted); max-width: 64ch; }
.text-intro { font-weight: var(--font-medium); color: var(--accent-gold-wing); }

/* Accessibility helpers */
.skip-link { position: absolute; left: -999px; top: -999px; }
.skip-link:focus {
  left: var(--space-6); top: var(--space-6); z-index: 1000;
  background: var(--bg); padding: var(--space-3) var(--space-4); border-radius: 6px;
  box-shadow: var(--shadow-1);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, white 8%);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--space-6);
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: var(--space-3); }
.brand-name { font-weight: 700; letter-spacing: -0.01em;font-size: 1.5rem; }
.brand-logo {
  --logo-size: 40px;
  width: var(--logo-size); height: var(--logo-size);
  -webkit-mask-image: var(--logo-url);
  mask-image: var(--logo-url);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  background: var(--text);
  display: inline-block;
}
.brand-logo.on-dark { background: white; }
.brand-logo.on-brand { background: white; }
.brand-logo.lg { --logo-size: 132px; }
.nav ul { display: flex; gap: var(--space-5); list-style: none; padding: 0; margin: 0; }
.nav a { color: var(--text); font-weight: 500; }
.header-cta .btn { white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; letter-spacing: .01em;
  box-shadow: var(--shadow-1); transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }
.btn-primary { background: var(--brand-600); color: white; }
.btn-primary:hover { background: var(--brand-700); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-lg { height: 52px; padding: 0 22px; border-radius: 12px; }

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 80% -10%, color-mix(in srgb, var(--brand-500), white 70%), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--surface));
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: var(--space-9);
  padding: var(--space-10) 0;
}
.hero-content .actions { margin-top: var(--space-6); display: flex; gap: var(--space-4); flex-wrap: wrap; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4);
  margin-top: var(--space-7);
}
.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow-1);
}
.stat-value { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; }
.stat-label { color: var(--muted); margin-top: 6px; }
.hero-media {
  aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-2); background: var(--elev-1);
}

/* Partners / Coalition */
.partners { padding: var(--space-10) 0 var(--space-9); }
.section-head { margin-bottom: var(--space-7); }
.section-head h2 { font-size: var(--fs-h1); margin: 0 0 var(--space-2); }
.section-head h3 { font-size: var(--fs-h3); margin: 0 0 var(--space-2); }
.section-head p { margin: 0; color: var(--muted); max-width: 64ch; }
.logo-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-6); align-items: center;
}
.logo-grid img {
  filter: grayscale(1) contrast(1.1); opacity: .9; max-height: 42px; margin-inline: auto;
}

/* Color */
.color { padding: var(--space-10) 0; }

/* Quick swatches */
.swatches {
  display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)); gap: var(--space-4);
}
.swatch {
  aspect-ratio: 4/3; border-radius: var(--radius); background: var(--swatch);
  display: grid; place-items: end start; color: rgba(255,255,255,.92);
  padding: var(--space-4); font-weight: 600; letter-spacing: .01em; box-shadow: var(--shadow-1);
  position: relative; cursor: copy;
}
.swatch:nth-child(n+6) { color: var(--text); }
.swatch.copied::after {
  content: "Copied";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: currentColor;
  background: color-mix(in srgb, currentColor 12%, transparent);
  border-radius: inherit;
  font-weight: 700;
  opacity: 1; animation: copied 900ms ease;
}

/* Full scales */
.color-scales { display: grid; gap: var(--space-7); margin-top: var(--space-7); }
.scale-head { display: flex; align-items: baseline; gap: var(--space-4); margin-bottom: var(--space-4); }
.scale-head h3 { margin: 0; }
.scale-head code { color: var(--muted); font-size: .9rem; }

.chips {
  display: grid;
  grid-template-columns: repeat(10, minmax(84px, 1fr));
  gap: var(--space-3);
}

.chip {
  --chip-fg: #0f172a;
  position: relative;
  display: grid;
  align-content: end;
  gap: 6px;
  width: 100%;
  aspect-ratio: 3/2;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--chip-bg) 20%, var(--border));
  background: var(--chip-bg);
  color: var(--chip-fg);
  padding: var(--space-4);
  font: inherit;
  text-align: left;
  box-shadow: var(--shadow-1);
  cursor: copy;
}

.chip .chip-scale { font-weight: 700; letter-spacing: .01em; opacity: .95; }
.chip .chip-hex {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .9rem;
  opacity: .9;
}

.chip:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }

.chip.copied::after {
  content: "Copied";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--chip-fg);
  background: color-mix(in srgb, var(--chip-fg) 14%, transparent);
  border-radius: inherit;
  font-weight: 800;
  opacity: 1; animation: copied 900ms ease;
}

@keyframes copied {
  0% { opacity: 0; transform: scale(.98); }
  15% { opacity: 1; transform: scale(1); }
  85% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(.98); }
}

/* Type */
.type { padding: var(--space-10) 0; }
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.type-sample { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-6); }
.type-sample .label { font-size: .85rem; color: var(--muted); margin-bottom: var(--space-3); }
.type-sample .display { font-size: var(--fs-h1); line-height: var(--lh-tight); }
.type-sample .h1 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.01em; }
.type-sample .body { font-size: var(--fs-body); }

/* Logo usage */
.logo { padding: var(--space-10) 0; }
.logo-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.tile {
  border-radius: var(--radius-lg); padding: var(--space-7);
  display: grid; place-items: center; gap: var(--space-4);
  min-height: 220px; box-shadow: var(--shadow-1); border: 1px solid var(--border);
}
.tile-light { background: var(--bg); }
.tile-dark { background: hsl(222 47% 11%); color: white; }
.tile-brand { background: var(--brand-600); color: white; }
.tile-caption { font-size: .9rem; color: inherit; opacity: .9; }

.heading-h3 { margin: var(--space-8) 0 var(--space-4); }
.heading-h3 p { margin: var(--space-2) 0 0; color: var(--muted); max-width: 72ch; }

.logo-guidelines {
  margin: var(--space-6) 0 var(--space-7);
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: var(--space-4) var(--space-7);
  padding: 0;
}
.logo-guidelines li { list-style: none; margin: 0; display: grid; gap: 4px; }
.logo-guidelines strong { font-weight: 700; }

/* Imagery */
.imagery { padding: var(--space-10) 0; }
.image-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.image-card {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-2);
  background: var(--elev-1); aspect-ratio: 4/3;
}
.img-cover { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.duotone { filter: saturate(0.95) contrast(1.05); }
.duotone::selection { background: color-mix(in srgb, var(--brand-500), white 70%); }

/* Components */
.components { padding: var(--space-10) 0; }
.component-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.card, .callout, .banner {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow-1);
}
.callout { background: linear-gradient(180deg, var(--surface), var(--bg)); }
.banner {
  background: color-mix(in srgb, var(--brand-600) 6%, var(--bg));
  border-color: color-mix(in srgb, var(--brand-600) 14%, var(--border));
}

/* CTA */
.cta {
  padding: var(--space-10) 0;
  background: linear-gradient(180deg, var(--surface), var(--bg));
  border-top: 1px solid var(--border);
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  padding: var(--space-7); border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg); box-shadow: var(--shadow-1);
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  padding: var(--space-7) 0;
}
.site-footer a { color: var(--muted); font-weight: 500; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .type-grid, .logo-tiles, .component-grid, .image-grid, .swatches {
    grid-template-columns: 1fr 1fr;
  }
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .stats { grid-template-columns: 1fr; }
  .type-grid, .logo-tiles, .component-grid, .image-grid, .swatches {
    grid-template-columns: 1fr;
  }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .chips { grid-template-columns: repeat(5, 1fr); }
}