/* ============================================================
   NSIG Design System — Version 1
   North Star Investment Group
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@400;500;600&family=Manrope:wght@400;500;600;700;800&display=swap');

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand Colors */
  --nsig-deep-navy: #0D2B4E;
  --nsig-steel-blue: #1E5F8E;
  --nsig-sky-blue: #5B8DB8;
  --nsig-antique-gold: #C8A84B;
  --nsig-champagne-gold: #E8D5A3;
  --nsig-slate-teal: #2E7D8C;
  --nsig-charcoal: #2C3E50;
  --nsig-cool-silver: #BEC8D1;
  --nsig-off-white: #F4F6F8;
  --nsig-white: #FFFFFF;

  /* Semantic Colors */
  --color-bg-primary: var(--nsig-off-white);
  --color-bg-dark: var(--nsig-deep-navy);
  --color-bg-darker: var(--nsig-charcoal);
  --color-text-primary: var(--nsig-charcoal);
  --color-text-heading: var(--nsig-deep-navy);
  --color-text-light: var(--nsig-off-white);
  --color-text-muted: #6B7B8D;
  --color-accent: var(--nsig-steel-blue);
  --color-accent-hover: var(--nsig-sky-blue);
  --color-gold: var(--nsig-antique-gold);
  --color-gold-soft: var(--nsig-champagne-gold);
  --color-teal: var(--nsig-slate-teal);
  --color-divider: var(--nsig-cool-silver);
  --color-divider-dark: rgba(190, 200, 209, 0.2);

  /* Typography */
  --font-display: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Type Scale */
  --text-h1: clamp(3.4rem, 7vw, 7.5rem);
  --text-h2: clamp(2.25rem, 4vw, 4.75rem);
  --text-h3: clamp(1.4rem, 2.5vw, 2rem);
  --text-h4: clamp(1.15rem, 1.8vw, 1.5rem);
  --text-body: clamp(1rem, 1.2vw, 1.125rem);
  --text-body-sm: 0.9375rem;
  --text-eyebrow: clamp(0.7rem, 0.9vw, 0.8rem);
  --text-caption: 0.8125rem;

  /* Spacing (8px system) */
  --space-1: 0.5rem;   /* 8px */
  --space-2: 1rem;     /* 16px */
  --space-3: 1.5rem;   /* 24px */
  --space-4: 2rem;     /* 32px */
  --space-5: 2.5rem;   /* 40px */
  --space-6: 3rem;     /* 48px */
  --space-7: 4rem;     /* 64px */
  --space-8: 5rem;     /* 80px */
  --space-9: 6rem;     /* 96px */
  --space-10: 8rem;    /* 128px */
  --space-11: 10rem;   /* 160px */
  --space-12: 12rem;   /* 192px */

  /* Layout */
  --max-width: 1440px;
  --gutter: clamp(1.5rem, 4vw, 4rem);
  --content-width: calc(var(--max-width) - var(--gutter) * 2);

  /* Corners */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-card: 4px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 200ms;
  --duration-mid: 350ms;
  --duration-slow: 650ms;
  --duration-reveal: 750ms;

  /* Header */
  --header-height: 80px;
  --header-height-scrolled: 64px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@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;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text-heading);
  letter-spacing: -0.02em;
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  padding: var(--space-1) var(--space-2);
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  font-size: var(--text-caption);
  font-family: var(--font-mono);
  z-index: 10000;
  border-radius: var(--radius-md);
  transition: top var(--duration-fast) var(--ease-out);
}
.skip-link:focus {
  top: var(--space-2);
}

/* ============================================================
   3. TYPOGRAPHY UTILITIES
   ============================================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--color-gold);
  flex-shrink: 0;
}

.eyebrow--light {
  color: var(--color-gold-soft);
}
.eyebrow--light::before {
  background: var(--color-gold-soft);
}

.text-h1 { font-size: var(--text-h1); }
.text-h2 { font-size: var(--text-h2); }
.text-h3 { font-size: var(--text-h3); }
.text-h4 { font-size: var(--text-h4); }
.text-body { font-size: var(--text-body); }
.text-body-sm { font-size: var(--text-body-sm); }

.text-muted { color: var(--color-text-muted); }
.text-light { color: var(--color-text-light); }
.text-gold { color: var(--color-gold); }

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.06em;
}

/* ============================================================
   4. LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container--narrow {
  max-width: 960px;
}

.container--wide {
  max-width: 1600px;
}

.grid {
  display: grid;
  gap: var(--space-4);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2-1 { grid-template-columns: 2fr 1fr; }
.grid--1-2 { grid-template-columns: 1fr 2fr; }
.grid--7-5 { grid-template-columns: 7fr 5fr; }
.grid--5-7 { grid-template-columns: 5fr 7fr; }

@media (max-width: 1024px) {
  .grid--2, .grid--3, .grid--4,
  .grid--2-1, .grid--1-2,
  .grid--7-5, .grid--5-7 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

.section {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

.section--sm {
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}

.section--lg {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-text-light);
}

.section--charcoal {
  background-color: var(--color-bg-darker);
  color: var(--color-text-light);
}
.section--charcoal h1,
.section--charcoal h2,
.section--charcoal h3,
.section--charcoal h4 {
  color: var(--color-text-light);
}

.section--white {
  background-color: var(--nsig-white);
}

.divider {
  height: 1px;
  background: var(--color-divider);
  border: none;
  margin: 0;
}

.divider--dark {
  background: var(--color-divider-dark);
}

.divider--gold {
  background: var(--color-gold);
  opacity: 0.3;
}

/* ============================================================
   5. HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition:
    height var(--duration-mid) var(--ease-out),
    background-color var(--duration-mid) var(--ease-out),
    backdrop-filter var(--duration-mid) var(--ease-out),
    box-shadow var(--duration-mid) var(--ease-out);
}

.site-header--transparent {
  background-color: transparent;
}

.site-header--scrolled {
  height: var(--header-height-scrolled);
  background-color: rgba(244, 246, 248, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--color-divider);
}

.site-header--dark.site-header--scrolled {
  background-color: rgba(13, 43, 78, 0.95);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
  z-index: 1001;
}

.header-logo img {
  height: 36px;
  width: auto;
  transition: height var(--duration-mid) var(--ease-out);
}

.site-header--scrolled .header-logo img {
  height: 28px;
}

.header-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--nsig-white);
  white-space: nowrap;
}

.site-header--scrolled:not(.site-header--dark) .header-logo-text {
  color: var(--color-text-heading);
}

/* Desktop Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  padding: var(--space-1) 0;
  transition: color var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-gold);
  transition: width var(--duration-mid) var(--ease-out);
}

.nav-link:hover,
.nav-link--active {
  color: var(--nsig-white);
}

.nav-link:hover::after,
.nav-link--active::after {
  width: 100%;
}

.site-header--scrolled:not(.site-header--dark) .nav-link {
  color: var(--color-text-muted);
}

.site-header--scrolled:not(.site-header--dark) .nav-link:hover,
.site-header--scrolled:not(.site-header--dark) .nav-link--active {
  color: var(--color-text-heading);
}

.nav-cta {
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--nsig-white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  transition:
    border-color var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.nav-cta:hover {
  border-color: var(--nsig-white);
  background-color: rgba(255, 255, 255, 0.08);
}

.site-header--scrolled:not(.site-header--dark) .nav-cta {
  color: var(--color-text-heading);
  border-color: var(--color-text-heading);
}

.site-header--scrolled:not(.site-header--dark) .nav-cta:hover {
  background-color: var(--color-bg-dark);
  color: var(--nsig-white);
  border-color: var(--color-bg-dark);
}

.nav-contact {
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.nav-contact:hover {
  color: var(--nsig-white);
}

.site-header--scrolled:not(.site-header--dark) .nav-contact {
  color: var(--color-text-muted);
}

.site-header--scrolled:not(.site-header--dark) .nav-contact:hover {
  color: var(--color-text-heading);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 1001;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--nsig-white);
  transition:
    transform var(--duration-mid) var(--ease-out),
    opacity var(--duration-fast) var(--ease-out);
}

.site-header--scrolled:not(.site-header--dark) .menu-toggle span {
  background: var(--color-text-heading);
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile menu is always white lines when active */
.menu-toggle.is-active span {
  background: var(--nsig-white);
}

@media (max-width: 1024px) {
  .header-nav { display: none; }
  .menu-toggle { display: flex; }
}

/* ============================================================
   6. MOBILE NAVIGATION
   ============================================================ */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--color-bg-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-10) var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--duration-mid) var(--ease-out),
    visibility var(--duration-mid) var(--ease-out);
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
}

/* Subtle grid motif background */
.mobile-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(91, 141, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 141, 184, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 600;
  color: var(--nsig-white);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.mobile-nav.is-open .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal */
.mobile-nav.is-open .mobile-nav-link:nth-child(1) { transition-delay: 100ms; }
.mobile-nav.is-open .mobile-nav-link:nth-child(2) { transition-delay: 150ms; }
.mobile-nav.is-open .mobile-nav-link:nth-child(3) { transition-delay: 200ms; }
.mobile-nav.is-open .mobile-nav-link:nth-child(4) { transition-delay: 250ms; }
.mobile-nav.is-open .mobile-nav-link:nth-child(5) { transition-delay: 300ms; }
.mobile-nav.is-open .mobile-nav-link:nth-child(6) { transition-delay: 350ms; }
.mobile-nav.is-open .mobile-nav-link:nth-child(7) { transition-delay: 400ms; }
.mobile-nav.is-open .mobile-nav-link:nth-child(8) { transition-delay: 450ms; }

.mobile-nav-link:hover {
  color: var(--color-gold);
}

.mobile-nav-link:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.mobile-nav-footer {
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out) 500ms;
}

.mobile-nav.is-open .mobile-nav-footer {
  opacity: 1;
}

.mobile-nav-footer p {
  font-size: var(--text-body-sm);
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  max-width: 420px;
}

/* ============================================================
   7. PAGE HERO
   ============================================================ */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-height) + var(--space-10));
  padding-bottom: var(--space-9);
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  overflow: hidden;
}

.page-hero--tall {
  min-height: 70vh;
}

.page-hero--full {
  min-height: 100vh;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero__eyebrow {
  margin-bottom: var(--space-3);
}

.page-hero__title {
  font-size: clamp(2rem, 3.5vw, 3.8rem);
  color: var(--nsig-white);
  max-width: 18ch;
  margin-bottom: var(--space-3);
  line-height: 1.15;
}

.page-hero__subtitle {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  max-width: 56ch;
  line-height: 1.55;
  margin-bottom: var(--space-4);
}

.page-hero__body {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  color: rgba(255, 255, 255, 0.55);
  max-width: 60ch;
  line-height: 1.7;
}

/* Hero background decoration */
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.page-hero__bg canvas {
  width: 100%;
  height: 100%;
}

/* Thin accent line at hero bottom */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    var(--color-gold) 30%,
    var(--color-gold) 70%,
    transparent
  );
  opacity: 0.25;
  z-index: 3;
}

/* ============================================================
   8. HOMEPAGE HERO (special)
   ============================================================ */
.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  overflow: hidden;
}

/* Iframe-based hero: the standalone hero.html fills the entire section */
.home-hero--iframe {
  padding: 0;
  display: block;
}

.home-hero--iframe > iframe {
  display: block;
  width: 100%;
  height: 100vh;
  border: none;
  background-color: var(--color-bg-dark);
}

.home-hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.home-hero__canvas canvas {
  width: 100%;
  height: 100%;
}

.home-hero .container {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-height) + var(--space-8));
  padding-bottom: var(--space-8);
}

/* Split layout: text left, globe right */
.home-hero__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-5);
  min-height: calc(100vh - var(--header-height) - var(--space-8) * 2);
}

.home-hero__content {
  max-width: 620px;
}

.home-hero__eyebrow {
  margin-bottom: var(--space-4);
}

.home-hero__title {
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
  color: var(--nsig-white);
  margin-bottom: var(--space-4);
  line-height: 1.1;
}

/* Globe iframe container */
.home-hero__globe {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 600px;
  justify-self: end;
  border-radius: 50%;
  overflow: hidden;
}

.home-hero__globe iframe {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  border: none;
  pointer-events: none;
  border-radius: 0;
  background: transparent;
}

@media (max-width: 1024px) {
  .home-hero__split {
    grid-template-columns: 1fr;
    text-align: left;
    gap: var(--space-4);
  }

  .home-hero__globe {
    max-width: 400px;
    justify-self: center;
    margin-top: var(--space-4);
  }

  .home-hero__title {
    font-size: clamp(2rem, 6vw, 3.5rem);
  }
}

@media (max-width: 640px) {
  .home-hero__globe {
    max-width: 280px;
  }

  .home-hero__title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
}

/* Globe fade-in animation */
@keyframes globe-appear {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.home-hero__globe {
  animation: globe-appear 1.8s var(--ease-out) 0.6s both;
}

/* Subtle glow behind the globe */
.home-hero__globe::before {
  content: '';
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(91, 141, 184, 0.12) 0%,
    rgba(30, 95, 142, 0.06) 40%,
    transparent 70%
  );
  z-index: -1;
  pointer-events: none;
}

/* Masked line-by-line reveal containers */
.reveal-line {
  overflow: hidden;
  display: block;
}

.reveal-line__inner {
  display: block;
  transform: translateY(105%);
  transition: transform var(--duration-reveal) var(--ease-out);
}

.is-revealed .reveal-line__inner {
  transform: translateY(0);
}

.home-hero__body {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: rgba(255, 255, 255, 0.65);
  max-width: 56ch;
  line-height: 1.7;
  margin-bottom: var(--space-6);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--duration-slow) var(--ease-out) 400ms,
    transform var(--duration-slow) var(--ease-out) 400ms;
}

.is-revealed .home-hero__body {
  opacity: 1;
  transform: translateY(0);
}

.home-hero__cta {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--duration-slow) var(--ease-out) 600ms,
    transform var(--duration-slow) var(--ease-out) 600ms;
}

.is-revealed .home-hero__cta {
  opacity: 1;
  transform: translateY(0);
}

/* Hero accent line at bottom */
.home-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    var(--color-gold) 30%,
    var(--color-gold) 70%,
    transparent
  );
  opacity: 0.2;
  z-index: 3;
}

/* ============================================================
   9. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-body-sm);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  transition:
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
}

.btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* Primary: outlined on dark */
.btn--primary {
  color: var(--nsig-white);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: transparent;
}

.btn--primary:hover {
  border-color: var(--nsig-white);
  background: rgba(255, 255, 255, 0.06);
}

/* Primary dark: solid navy */
.btn--primary-dark {
  color: var(--nsig-white);
  background: var(--color-bg-dark);
  border: 1.5px solid var(--color-bg-dark);
}

.btn--primary-dark:hover {
  background: var(--nsig-steel-blue);
  border-color: var(--nsig-steel-blue);
}

/* Secondary: outlined on light */
.btn--secondary {
  color: var(--color-text-heading);
  border: 1.5px solid var(--color-text-heading);
  background: transparent;
}

.btn--secondary:hover {
  background: var(--color-bg-dark);
  color: var(--nsig-white);
  border-color: var(--color-bg-dark);
}

/* Ghost */
.btn--ghost {
  color: var(--color-text-heading);
  border: 1.5px solid transparent;
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}

.btn--ghost:hover {
  color: var(--nsig-steel-blue);
}

/* Arrow icon in buttons */
.btn__arrow {
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease-out);
  font-size: 1.1em;
  line-height: 1;
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ============================================================
   10. SECTION HEADINGS
   ============================================================ */
.section-heading {
  margin-bottom: var(--space-7);
}

.section-heading__eyebrow {
  margin-bottom: var(--space-2);
}

.section-heading__title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  max-width: 20ch;
}

.section-heading__body {
  font-size: var(--text-body);
  color: var(--color-text-muted);
  max-width: 56ch;
  margin-top: var(--space-3);
  line-height: 1.7;
}

.section--dark .section-heading__body,
.section--charcoal .section-heading__body {
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   11. CARDS
   ============================================================ */
/* Capability Panel */
.capability-panel {
  padding: var(--space-5);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-card);
  background: var(--nsig-white);
  position: relative;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.capability-panel:hover {
  border-color: var(--nsig-steel-blue);
  box-shadow: 0 2px 16px rgba(13, 43, 78, 0.06);
}

.capability-panel__number {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  color: var(--color-gold);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

.capability-panel__title {
  font-size: var(--text-h4);
  margin-bottom: var(--space-2);
}

.capability-panel__subtitle {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: var(--space-3);
}

.capability-panel__body {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Gold accent line at top */
.capability-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--space-5);
  right: var(--space-5);
  height: 1px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.capability-panel:hover::before {
  opacity: 0.5;
}

/* Sector Card */
.sector-card {
  padding: var(--space-6) var(--space-5);
  border-left: 2px solid var(--color-divider);
  position: relative;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.sector-card:hover {
  border-color: var(--color-gold);
}

.sector-card__label {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  color: var(--color-teal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.sector-card__title {
  font-size: var(--text-h3);
  margin-bottom: var(--space-3);
}

.sector-card__body {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-3);
}

.sector-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.sector-card__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-text-muted);
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
}

/* Market Access Card */
.market-card {
  padding: var(--space-5);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-card);
  background: var(--nsig-white);
  transition:
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
  position: relative;
}

.market-card:hover {
  border-color: var(--nsig-steel-blue);
  box-shadow: 0 2px 12px rgba(13, 43, 78, 0.06);
}

.market-card__access {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.market-card__access--primary {
  color: var(--color-gold);
}

.market-card__access--selective {
  color: var(--color-teal);
}

.market-card__name {
  font-size: var(--text-h3);
  margin-bottom: var(--space-2);
}

.market-card__body {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-3);
}

.market-card__areas-title {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.market-card__areas {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.market-card__area {
  font-size: var(--text-body-sm);
  color: var(--color-text-primary);
  padding-left: var(--space-2);
  position: relative;
}

.market-card__area::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 1px;
  background: var(--color-gold);
}

/* Insight Card Shell */
.insight-card {
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-card);
  background: var(--nsig-white);
  overflow: hidden;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.insight-card:hover {
  border-color: var(--nsig-steel-blue);
  box-shadow: 0 2px 12px rgba(13, 43, 78, 0.06);
}

.insight-card__image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--nsig-steel-blue) 100%);
  position: relative;
}

.insight-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 30px 30px;
}

.insight-card__content {
  padding: var(--space-4);
}

.insight-card__category {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  color: var(--color-teal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.insight-card__title {
  font-size: var(--text-h4);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.insight-card__excerpt {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.insight-card__date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  letter-spacing: 0.04em;
}

/* ============================================================
   12. PROCESS RAIL
   ============================================================ */
.process-rail {
  position: relative;
  padding-left: var(--space-7);
}

.process-rail__line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-divider);
}

.process-rail__progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--color-gold);
  transition: height 0.1s linear;
}

.process-step {
  padding: var(--space-7) 0;
  position: relative;
}

.process-step + .process-step {
  border-top: 1px solid var(--color-divider);
}

.process-step__number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  color: var(--color-bg-dark);
  opacity: 0.08;
  position: absolute;
  right: 0;
  top: var(--space-7);
  line-height: 1;
  user-select: none;
}

.process-step__label {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  color: var(--color-gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.process-step__title {
  font-size: var(--text-h3);
  margin-bottom: var(--space-2);
}

.process-step__subtitle {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: var(--space-3);
}

.process-step__body {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 60ch;
  margin-bottom: var(--space-3);
}

.process-step__list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.process-step__list-item {
  font-size: var(--text-body-sm);
  color: var(--color-text-primary);
  padding-left: var(--space-3);
  position: relative;
}

.process-step__list-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 10px;
  height: 1px;
  background: var(--color-gold);
}

/* ============================================================
   13. CTA SECTIONS
   ============================================================ */
.cta-section {
  position: relative;
  padding: var(--space-10) 0;
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    var(--color-gold) 30%,
    var(--color-gold) 70%,
    transparent
  );
  opacity: 0.25;
}

.cta-section__content {
  max-width: 680px;
}

.cta-section__title {
  font-size: var(--text-h2);
  color: var(--nsig-white);
  margin-bottom: var(--space-3);
}

.cta-section__body {
  font-size: var(--text-body);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: var(--space-5);
  max-width: 56ch;
}

/* ============================================================
   14. CONTACT FORM
   ============================================================ */
.contact-form {
  display: grid;
  gap: var(--space-3);
}

.contact-form--2col {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
  .contact-form--2col {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-label {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-input,
.form-select,
.form-textarea {
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  background: var(--nsig-white);
  color: var(--color-text-primary);
  transition: border-color var(--duration-fast) var(--ease-out);
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--nsig-steel-blue);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7B8D' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-fine-print {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
  line-height: 1.5;
  grid-column: 1 / -1;
}

/* ============================================================
   15. FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.6);
  padding-top: var(--space-9);
  padding-bottom: var(--space-6);
}

.footer-upper {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1024px) {
  .footer-upper {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-upper {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  max-width: 360px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.footer-logo img {
  height: 32px;
  width: auto;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--nsig-white);
}

.footer-positioning {
  font-size: var(--text-body-sm);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer-link {
  font-size: var(--text-body-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-link:hover {
  color: var(--nsig-white);
}

.footer-lower {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  padding-top: var(--space-4);
  flex-wrap: wrap;
}

.footer-legal {
  font-size: var(--text-caption);
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.5;
  max-width: 600px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ============================================================
   16. DISCLOSURE STRIP
   ============================================================ */
.disclosure-strip {
  background: var(--color-bg-darker);
  padding: var(--space-2) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.disclosure-strip p {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1.5;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* ============================================================
   17. LEGAL PAGE LAYOUT
   ============================================================ */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: var(--text-h3);
  margin-top: var(--space-7);
  margin-bottom: var(--space-3);
}

.legal-content h3 {
  font-size: var(--text-h4);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

.legal-content p {
  margin-bottom: var(--space-2);
  color: var(--color-text-muted);
  line-height: 1.75;
}

.legal-content ul {
  margin-bottom: var(--space-3);
  padding-left: var(--space-3);
}

.legal-content li {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 0.375rem;
  position: relative;
  padding-left: var(--space-2);
}

.legal-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 1px;
  background: var(--color-gold);
}

.legal-last-updated {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   18. SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--duration-reveal) var(--ease-out),
    transform var(--duration-reveal) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--duration-reveal) var(--ease-out),
    transform var(--duration-reveal) var(--ease-out);
}

.reveal-stagger.is-visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 320ms; }
.reveal-stagger.is-visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 400ms; }

/* Masked heading reveal */
.heading-reveal {
  overflow: hidden;
}

.heading-reveal__line {
  display: block;
  transform: translateY(105%);
  transition: transform var(--duration-reveal) var(--ease-out);
}

.heading-reveal.is-visible .heading-reveal__line {
  transform: translateY(0);
}

.heading-reveal.is-visible .heading-reveal__line:nth-child(2) {
  transition-delay: 80ms;
}

.heading-reveal.is-visible .heading-reveal__line:nth-child(3) {
  transition-delay: 160ms;
}

/* ============================================================
   19. EDITORIAL SPLIT SECTION
   ============================================================ */
.split-section {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-7);
  align-items: start;
}

.split-section--reverse {
  grid-template-columns: 7fr 5fr;
}

@media (max-width: 1024px) {
  .split-section,
  .split-section--reverse {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

.split-section__label {
  position: sticky;
  top: calc(var(--header-height) + var(--space-4));
}

/* ============================================================
   20. EDITORIAL GRID
   ============================================================ */
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

@media (max-width: 768px) {
  .editorial-grid {
    grid-template-columns: 1fr;
  }
}

.editorial-panel {
  padding: var(--space-5);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-card);
  background: var(--nsig-white);
}

.editorial-panel__title {
  font-size: var(--text-h4);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.editorial-panel__body {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ============================================================
   21. EVALUATION CRITERIA (For Capital Partners)
   ============================================================ */
.eval-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}

.eval-item {
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}

.eval-item__title {
  font-size: var(--text-h4);
  margin-bottom: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.eval-item__body {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================================
   22. 404 PAGE
   ============================================================ */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--gutter);
  background: var(--color-bg-dark);
  color: var(--color-text-light);
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.error-page__title {
  font-size: var(--text-h3);
  color: var(--nsig-white);
  margin-bottom: var(--space-2);
}

.error-page__body {
  font-size: var(--text-body);
  color: rgba(255, 255, 255, 0.5);
  max-width: 40ch;
  margin-bottom: var(--space-5);
}

/* ============================================================
   23. INSIGHTS PAGE
   ============================================================ */
.filter-bar {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.filter-tag {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.375rem 1rem;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
}

.filter-tag:hover,
.filter-tag--active {
  border-color: var(--color-bg-dark);
  color: var(--color-text-heading);
}

.filter-tag--active {
  background: var(--color-bg-dark);
  color: var(--nsig-white);
}

.empty-state {
  text-align: center;
  padding: var(--space-10) var(--space-4);
  border: 1px dashed var(--color-divider);
  border-radius: var(--radius-card);
}

.empty-state__title {
  font-size: var(--text-h4);
  margin-bottom: var(--space-2);
}

.empty-state__body {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
}

/* ============================================================
   24. LIST STYLES (for What We Do, etc.)
   ============================================================ */
.content-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-top: var(--space-2);
}

.content-list__item {
  font-size: var(--text-body-sm);
  color: var(--color-text-primary);
  padding-left: var(--space-3);
  position: relative;
  line-height: 1.6;
}

.content-list__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 10px;
  height: 1px;
  background: var(--color-gold);
}

.section--dark .content-list__item,
.section--charcoal .content-list__item {
  color: rgba(255, 255, 255, 0.7);
}

.section--dark .content-list__item::before,
.section--charcoal .content-list__item::before {
  background: var(--color-gold-soft);
}

/* ============================================================
   25. UTILITIES
   ============================================================ */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mt-8 { margin-top: var(--space-8); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-7 { margin-bottom: var(--space-7); }
.mb-8 { margin-bottom: var(--space-8); }

.max-w-prose { max-width: 60ch; }
.max-w-narrow { max-width: 480px; }
.max-w-medium { max-width: 680px; }

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

/* ============================================================
   26. RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --space-10: 5rem;
    --space-11: 6rem;
    --space-12: 7rem;
  }

  .section {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }

  .page-hero {
    min-height: 45vh;
    padding-top: calc(var(--header-height) + var(--space-7));
    padding-bottom: var(--space-7);
  }

  .page-hero__title {
    max-width: none;
  }

  .home-hero {
    min-height: 90vh;
    align-items: flex-end;
  }

  .home-hero .container {
    padding-bottom: var(--space-7);
  }

  .process-rail {
    padding-left: var(--space-5);
  }

  .process-step__number {
    font-size: 3rem;
    opacity: 0.05;
  }

  .footer-upper {
    gap: var(--space-5);
  }
}

@media (max-width: 480px) {
  .home-hero__title {
    font-size: clamp(2.5rem, 10vw, 3.4rem);
  }
}

/* ============================================================
   27. PAGE TRANSITIONS
   ============================================================ */
.page-transition {
  opacity: 0;
  animation: pageIn 400ms var(--ease-out) forwards;
}

@keyframes pageIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================================================
   28. GEOGRAPHIC VISUAL SYSTEM
   ============================================================ */
.geo-access-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.geo-access-bar__label {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.geo-access-bar__track {
  flex: 1;
  height: 3px;
  background: var(--color-divider);
  border-radius: 2px;
  overflow: hidden;
}

.geo-access-bar__fill {
  height: 100%;
  border-radius: 2px;
  transition: width var(--duration-slow) var(--ease-out);
}

.geo-access-bar__fill--primary {
  background: var(--color-gold);
}

.geo-access-bar__fill--selective {
  background: var(--color-teal);
}

/* ============================================================
   29. ADDITIONAL DARK SECTION UTILITY CLASSES
   ============================================================ */
.section--dark .capability-panel {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.section--dark .capability-panel:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.section--dark .capability-panel__body {
  color: rgba(255, 255, 255, 0.55);
}

.section--dark .capability-panel__title {
  color: var(--nsig-white);
}

/* Bullet list in dark sections */
.bullet-list {
  list-style: none;
  padding: 0;
}

.bullet-list li {
  padding-left: var(--space-3);
  position: relative;
  margin-bottom: 0.375rem;
  font-size: var(--text-body-sm);
  line-height: 1.6;
}

.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 1px;
  background: var(--color-gold);
}

/* ============================================================
   30. PREMIUM VISUAL ENHANCEMENTS
   ============================================================ */

/* --- Subtle noise texture overlay on light sections --- */
.section::before,
.section--white::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.section,
.section--white {
  position: relative;
}

.section > .container,
.section--white > .container {
  position: relative;
  z-index: 1;
}

/* --- Enhanced card lift + shadow on hover --- */
.capability-panel,
.market-card,
.editorial-panel,
.insight-card {
  transition:
    border-color var(--duration-mid) var(--ease-out),
    box-shadow var(--duration-mid) var(--ease-out),
    transform var(--duration-mid) var(--ease-out);
}

.capability-panel:hover,
.editorial-panel:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 24px rgba(13, 43, 78, 0.06),
    0 1px 4px rgba(13, 43, 78, 0.04);
}

.market-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 32px rgba(13, 43, 78, 0.08),
    0 2px 8px rgba(13, 43, 78, 0.04);
}

.insight-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 32px rgba(13, 43, 78, 0.08),
    0 2px 8px rgba(13, 43, 78, 0.04);
}

.insight-card:hover .insight-card__title {
  color: var(--nsig-steel-blue);
}

/* --- Gold accent line animation on card hover --- */
.capability-panel::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--space-5);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-soft));
  transition: width var(--duration-mid) var(--ease-out);
  border-radius: 1px;
}

.capability-panel:hover::after {
  width: calc(100% - var(--space-5) * 2);
}

/* --- Premium CTA sections with gradient mesh --- */
.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(30, 95, 142, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(200, 168, 75, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.cta-section > .container {
  position: relative;
  z-index: 1;
}

/* --- Enhanced section dividers with fade --- */
.divider {
  background: linear-gradient(90deg,
    transparent,
    var(--color-divider) 15%,
    var(--color-divider) 85%,
    transparent
  );
}

/* --- Focus states (premium gold ring) --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --- Page hero subtle gradient overlay --- */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 43, 78, 0.3) 0%, transparent 30%),
    linear-gradient(180deg, transparent 60%, rgba(13, 43, 78, 0.4) 100%);
  z-index: 1;
  pointer-events: none;
}

/* --- Home hero vignette --- */
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, transparent 30%, rgba(13, 43, 78, 0.3) 100%);
  z-index: 2;
  pointer-events: none;
}

/* --- Scrolling gold accent bar on process rail steps --- */
.process-step::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-7));
  top: var(--space-7);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-divider);
  border: 2px solid var(--nsig-white);
  transition: background var(--duration-mid) var(--ease-out);
  z-index: 1;
}

.process-step.is-visible::before {
  background: var(--color-gold);
}

@media (max-width: 768px) {
  .process-step::before {
    left: calc(-1 * var(--space-5));
  }
}

/* --- Enhanced eval-item styling --- */
.eval-item {
  transition:
    border-color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
  border-radius: var(--radius-card);
  border: 1px solid transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.eval-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

/* --- Editorial panel number accent --- */
.editorial-panel__title .capability-panel__number,
.editorial-panel__title span[class*="text-gold"] {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  color: var(--color-gold);
  letter-spacing: 0.08em;
}

/* --- Enhanced form styling --- */
.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--nsig-sky-blue);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--nsig-steel-blue);
  box-shadow: 0 0 0 3px rgba(30, 95, 142, 0.08);
  outline: none;
}

/* --- Market card area items animation --- */
.market-card__area {
  transition: padding-left var(--duration-fast) var(--ease-out);
}

.market-card:hover .market-card__area {
  padding-left: calc(var(--space-2) + 4px);
}

/* --- Sector card enhanced hover --- */
.sector-card {
  transition:
    border-color var(--duration-mid) var(--ease-out),
    padding-left var(--duration-mid) var(--ease-out);
}

.sector-card:hover {
  padding-left: calc(var(--space-5) + 4px);
}

/* --- Geo access bar animation on scroll --- */
.geo-access-bar__fill {
  width: 0 !important;
  transition: width 1.2s var(--ease-out);
}

.reveal.is-visible .geo-access-bar__fill,
.reveal-stagger.is-visible .geo-access-bar__fill {
  width: var(--fill-width, 50%) !important;
}

/* --- Filter tag enhanced active state --- */
.filter-tag--active {
  background: var(--color-bg-dark);
  color: var(--nsig-white);
  border-color: var(--color-bg-dark);
}

.filter-tag:hover:not(.filter-tag--active) {
  background: rgba(13, 43, 78, 0.04);
}

/* --- Insight card image gradient enhancement --- */
.insight-card__image {
  background:
    linear-gradient(135deg,
      var(--color-bg-dark) 0%,
      rgba(30, 95, 142, 0.8) 40%,
      rgba(46, 125, 140, 0.6) 70%,
      rgba(200, 168, 75, 0.3) 100%
    );
  transition: opacity var(--duration-mid) var(--ease-out);
}

.insight-card:hover .insight-card__image {
  opacity: 0.9;
}

.insight-card__image::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* --- Enhanced header glassmorphism --- */
.site-header--scrolled {
  background-color: rgba(244, 246, 248, 0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

.site-header--dark.site-header--scrolled {
  background-color: rgba(13, 43, 78, 0.92);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

/* --- Smooth body transition for menu --- */
body.menu-open {
  overflow: hidden;
}

/* --- Premium mobile menu enhancements --- */
.mobile-nav {
  background:
    linear-gradient(135deg, var(--color-bg-dark) 0%, rgba(13, 43, 78, 0.98) 100%);
}

/* --- Error page background enhancement --- */
.error-page {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(30, 95, 142, 0.15) 0%, transparent 60%),
    var(--color-bg-dark);
}

.error-page__code {
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Legal content enhanced readability --- */
.legal-content h2 {
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
}

.legal-content h2:first-of-type {
  padding-top: 0;
  border-top: none;
}

/* --- Footer enhanced bottom glow --- */
.site-footer {
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(200, 168, 75, 0.15) 30%,
    rgba(200, 168, 75, 0.15) 70%,
    transparent
  );
}

/* --- Stat/number styling (future use) --- */
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-text-heading);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* --- Selection styling --- */
::selection {
  background-color: rgba(30, 95, 142, 0.2);
  color: var(--color-text-heading);
}

.section--dark ::selection,
.cta-section ::selection,
.page-hero ::selection,
.home-hero ::selection {
  background-color: rgba(200, 168, 75, 0.3);
  color: var(--nsig-white);
}

/* --- Smooth link underline animation --- */
.legal-content a,
.footer-link {
  position: relative;
}

.legal-content a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.legal-content a:hover::after {
  opacity: 0.7;
}

/* --- Contact form submit button enhanced state --- */
.btn--primary-dark {
  position: relative;
  overflow: hidden;
}

.btn--primary-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out);
}

.btn--primary-dark:hover::before {
  transform: translateX(100%);
}

/* --- Enhanced section transitions for dark backgrounds --- */
.section--dark {
  position: relative;
}

.section--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 85%, rgba(30, 95, 142, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 15%, rgba(200, 168, 75, 0.04) 0%, transparent 40%);
  pointer-events: none;
}

.section--dark > .container {
  position: relative;
  z-index: 1;
}

/* --- Charcoal section texture --- */
.section--charcoal {
  position: relative;
}

.section--charcoal::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(30, 95, 142, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.section--charcoal > .container {
  position: relative;
  z-index: 1;
}

/* --- Premium pull-quote style --- */
.pull-quote {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text-heading);
  border-left: 2px solid var(--color-gold);
  padding-left: var(--space-4);
  margin: var(--space-6) 0;
}

/* --- Enhanced responsive breakpoints --- */
@media (max-width: 480px) {
  .page-hero__title {
    font-size: clamp(2rem, 8vw, 3rem);
    max-width: none;
  }

  .section-heading__title {
    font-size: clamp(1.8rem, 7vw, 2.25rem);
  }

  .capability-panel {
    padding: var(--space-4);
  }

  .market-card {
    padding: var(--space-4);
  }

  .process-step__number {
    display: none;
  }

  .cta-section__title {
    font-size: clamp(1.8rem, 7vw, 2.25rem);
  }
}

/* --- Print styles --- */
@media print {
  .site-header,
  .mobile-nav,
  .menu-toggle,
  .disclosure-strip,
  .cta-section,
  .home-hero__canvas,
  .skip-link {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .page-hero,
  .home-hero {
    background: white !important;
    color: black !important;
    min-height: auto;
    padding: 2cm 0;
  }

  .page-hero * ,
  .home-hero * {
    color: black !important;
  }

  .section--dark,
  .section--charcoal {
    background: white !important;
    color: black !important;
  }

  .section--dark *,
  .section--charcoal * {
    color: black !important;
  }

  a::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #666;
  }
}
