/* =============================================================
   NITRO ADVISORY — SHARED DESIGN SYSTEM
   Restrained, serious, confident — boutique financial firm feel.
   ============================================================= */

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

:root {
  /* ---- BRAND ---- */
  --nitro-black: #031C26;
  --nitro-night: #031C26;           /* alias used by section backgrounds (credentials, subscribe) */
  --nitro-gold: #F4A900;
  --nitro-gold-rgb: 244, 169, 0;
  --nitro-sepia: #593B02;
  --nitro-bistre: #261901;
  --nitro-smoke: #F4F2EE;           /* warmer, more editorial than flat grey */
  --nitro-paper: #FAF8F4;

  /* ---- ACCENT INTENSITY (tweakable) ---- */
  --accent-intensity: 1;            /* 0 = subtle, 1 = assertive */

  /* ---- FONT STACK (tweakable via Tweaks) ---- */
  --font-sans: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --serif-emph-weight: 400;
  --serif-emph-style: italic;

  /* ---- SURFACES — dark elevation ladder ---- */
  --surface-0: #031C26;
  --surface-1: #062735;
  --surface-2: #093345;
  --surface-3: #0C3F54;

  /* ---- TEXT — on dark ---- */
  --text-primary: rgba(255, 255, 255, 0.94);
  --text-secondary: rgba(255, 255, 255, 0.66);
  --text-tertiary: rgba(255, 255, 255, 0.42);
  --text-quaternary: rgba(255, 255, 255, 0.22);
  --text-on-gold: #0a1a24;

  /* ---- TEXT — on light ---- */
  --text-dark: #0a1a24;
  --text-dark-secondary: #3a5060;
  --text-dark-tertiary: #7a8a96;
  --text-dark-quaternary: #b5bfc7;

  /* ---- BORDERS ---- */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.12);
  --border-gold: rgba(244, 169, 0, 0.22);
  --border-light: rgba(10, 26, 36, 0.08);
  --border-light-strong: rgba(10, 26, 36, 0.16);

  /* ---- MOTION ---- */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* ---- SPACING ---- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;
  --sp-32: 128px;

  --section-pad-y: clamp(96px, 11vw, 160px);
  --section-pad-x: clamp(24px, 5vw, 80px);
  --container: 1240px;
  --container-narrow: 960px;
  --container-wide: 1400px;

  /* ---- TYPE SCALE ---- */
  --text-xxs: 10.5px;
  --text-xs: clamp(11px, 10.5px + 0.1vw, 12px);
  --text-sm: clamp(13px, 12.5px + 0.2vw, 14px);
  --text-base: clamp(15px, 14px + 0.25vw, 16.5px);
  --text-lg: clamp(17px, 15px + 0.4vw, 20px);
  --text-xl: clamp(20px, 17px + 0.6vw, 24px);
  --text-2xl: clamp(24px, 19px + 1vw, 32px);
  --text-3xl: clamp(32px, 24px + 1.5vw, 44px);
  --text-4xl: clamp(40px, 28px + 2.5vw, 64px);
  --text-5xl: clamp(52px, 32px + 3.5vw, 88px);
  --text-6xl: clamp(64px, 36px + 5vw, 120px);

  /* ---- RADII ---- */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* ---- SHADOWS ---- */
  --shadow-sm: 0 1px 2px rgba(10, 26, 36, 0.04), 0 2px 6px rgba(10, 26, 36, 0.04);
  --shadow-md: 0 2px 4px rgba(10, 26, 36, 0.05), 0 8px 24px rgba(10, 26, 36, 0.06);
  --shadow-lg: 0 4px 8px rgba(10, 26, 36, 0.06), 0 16px 48px rgba(10, 26, 36, 0.08);
  --shadow-gold: 0 4px 16px rgba(var(--nitro-gold-rgb), 0.15), 0 1px 3px rgba(var(--nitro-gold-rgb), 0.08);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-feature-settings: 'ss01', 'cv11';
  background: var(--surface-0);
  color: var(--text-primary);
  line-height: 1.55;
  overflow-x: hidden;
  font-size: 16px;
}

/* No widows: paragraphs and display text avoid 1–2-word hanging last lines */
p, .lede, .lede--dark, h1, h2, h3, figcaption {
  text-wrap: pretty;
}

/* =============================================================
   GRAIN OVERLAY — subtle fixed texture
   ============================================================= */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  mix-blend-mode: overlay;
}

/* =============================================================
   UTILITY — CONTAINERS
   ============================================================= */
.container     { max-width: var(--container); margin: 0 auto; padding-inline: var(--section-pad-x); }
.container-n   { max-width: var(--container-narrow); margin: 0 auto; padding-inline: var(--section-pad-x); }
.container-w   { max-width: var(--container-wide); margin: 0 auto; padding-inline: var(--section-pad-x); }

/* =============================================================
   TYPE PRIMITIVES
   ============================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--text-xxs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nitro-gold);
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--nitro-gold);
  opacity: calc(0.6 + 0.4 * var(--accent-intensity));
}
.eyebrow--dark { color: var(--nitro-sepia); }
.eyebrow--muted { color: var(--text-tertiary); }
.eyebrow--muted::before { background: currentColor; opacity: 0.4; }
.eyebrow--dark-muted { color: var(--text-dark-tertiary); }
.eyebrow--dark-muted::before { background: currentColor; opacity: 0.4; }

.display {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.display-lg { font-size: var(--text-5xl); }
.display-xl { font-size: var(--text-6xl); }
.heading-xl { font-size: var(--text-4xl); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
.heading-lg { font-size: var(--text-3xl); font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; }
.heading-md { font-size: var(--text-2xl); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.heading-sm { font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }

.lede {
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: -0.005em;
  color: var(--text-secondary);
  text-wrap: pretty;
}
.lede--dark { color: var(--text-dark-secondary); }

.body { font-size: var(--text-base); font-weight: 400; line-height: 1.7; color: var(--text-secondary); }
.body--dark { color: var(--text-dark-secondary); }

.mono {
  font-family: var(--font-mono);
  font-feature-settings: 'ss01';
}

.serif {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.015em;
}

.gold { color: var(--nitro-gold); }

/* Serif "emphasis swap" — elegant italic inside a heading */
.display em, .heading-xl em, .heading-lg em, .heading-md em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* =============================================================
   BUTTONS — restrained, architectural
   One system. Three variants.
   ============================================================= */
.btn {
  --btn-bg: var(--nitro-gold);
  --btn-fg: var(--text-on-gold);
  --btn-border: transparent;
  --btn-hover-bg: #FFB918;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 100px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-border);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.25s var(--ease-smooth),
    color 0.25s var(--ease-smooth),
    border-color 0.25s var(--ease-smooth),
    transform 0.25s var(--ease-spring),
    box-shadow 0.25s var(--ease-smooth);
  box-shadow: var(--shadow-gold);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover {
  background: var(--btn-hover-bg);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(var(--nitro-gold-rgb), 0.2), 0 1px 3px rgba(var(--nitro-gold-rgb), 0.1);
}
.btn:active { transform: translateY(0); transition-duration: 0.08s; }

.btn svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease-spring); flex-shrink: 0; }
.btn:hover svg { transform: translateX(3px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text-primary);
  --btn-border: var(--border-default);
  --btn-hover-bg: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}
.btn--ghost:hover {
  color: var(--nitro-gold);
  border-color: var(--border-gold);
  box-shadow: none;
}

.btn--ghost-dark {
  --btn-bg: transparent;
  --btn-fg: var(--text-dark);
  --btn-border: var(--border-light-strong);
  --btn-hover-bg: rgba(10, 26, 36, 0.03);
  box-shadow: none;
}
.btn--ghost-dark:hover {
  color: var(--nitro-sepia);
  border-color: var(--nitro-sepia);
  box-shadow: none;
}

.btn--sm { padding: 10px 18px; font-size: var(--text-xs); letter-spacing: 0.04em; }
.btn--lg { padding: 18px 30px; font-size: var(--text-base); }

/* Magnetic pull handled by JS — this class enables the translation */
.btn--magnetic { will-change: transform; }

/* Text link with animated underline */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--nitro-gold);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-sm);
  position: relative;
  transition: gap 0.3s var(--ease-spring);
}
.tlink::after {
  content: '';
  position: absolute;
  left: 0;
  right: 18px;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-spring);
}
.tlink:hover { gap: 10px; }
.tlink:hover::after { transform: scaleX(1); }
.tlink svg { width: 12px; height: 12px; transition: transform 0.3s var(--ease-spring); }
.tlink:hover svg { transform: translateX(2px); }

/* =============================================================
   REVEAL — scroll-triggered entrances
   ============================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}
[data-reveal].is-in { opacity: 1; transform: translateY(0); }

[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="left"].is-in { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="right"].is-in { transform: translateX(0); }
[data-reveal="scale"] { transform: scale(0.96); }
[data-reveal="scale"].is-in { transform: scale(1); }

[data-reveal-delay="1"] { transition-delay: 80ms; }
[data-reveal-delay="2"] { transition-delay: 160ms; }
[data-reveal-delay="3"] { transition-delay: 240ms; }
[data-reveal-delay="4"] { transition-delay: 320ms; }
[data-reveal-delay="5"] { transition-delay: 400ms; }
[data-reveal-delay="6"] { transition-delay: 480ms; }

/* Character reveal for headings */
.char-reveal .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.char-reveal.is-in .char { opacity: 1; transform: translateY(0); }

/* =============================================================
   SITE NAV (top, sticky)
   ============================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 18px var(--section-pad-x);
  transition: background 0.35s var(--ease-smooth), backdrop-filter 0.35s, padding 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(3, 28, 38, 0.78);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  backdrop-filter: blur(20px) saturate(120%);
  border-bottom-color: var(--border-subtle);
  padding-top: 12px;
  padding-bottom: 12px;
}
.nav--light {
  /* Used on pages where hero is smoke/light — fallback state */
}
.nav__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.015em;
  transition: opacity 0.2s;
}
.nav__brand:hover { opacity: 0.85; }
.nav__brand-mark {
  display: inline-block;
  width: 22px;
  height: 22px;
  background: #0A1A24 url("logo-sm.png") center/contain no-repeat;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}
.nav__brand-sub {
  /* One wordmark: "Advisory" set identically to "Nitro" */
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
  color: inherit;
  margin-left: 0;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav__link {
  padding: 10px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.005em;
  border-radius: 100px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.nav__link:hover { color: var(--text-primary); }
.nav__link.is-active {
  color: var(--nitro-gold);
}
.nav__link.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--nitro-gold);
  transform: translateX(-50%);
}
.nav__cta {
  margin-left: 8px;
}
.nav__burger {
  display: none;
  background: none;
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 100px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.nav__burger:hover { border-color: var(--border-gold); color: var(--nitro-gold); }
.nav__burger svg { width: 18px; height: 18px; }

/* Page progress bar (below nav) */
.nav__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: transparent;
}
.nav__progress-bar {
  height: 100%;
  width: 0%;
  background: var(--nitro-gold);
  box-shadow: 0 0 8px rgba(var(--nitro-gold-rgb), 0.4);
  transition: width 0.1s linear;
}

/* Mobile menu sheet */
.nav__mobile {
  position: fixed;
  inset: 0;
  background: rgba(3, 28, 38, 0.96);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  z-index: 190;
  display: flex;
  flex-direction: column;
  padding: 88px var(--section-pad-x) var(--sp-12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-smooth);
}
.nav__mobile.is-open { opacity: 1; pointer-events: auto; }
.nav__mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: var(--sp-8);
}
.nav__mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  font-weight: 500;
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.2s, padding-left 0.25s var(--ease-spring);
}
.nav__mobile-link:hover { color: var(--nitro-gold); padding-left: 8px; }
.nav__mobile-link-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.12em;
}
.nav__mobile-cta { margin-top: auto; display: flex; gap: 12px; }
.nav__mobile-cta .btn { flex: 1; justify-content: center; }

@media (max-width: 880px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
}

/* =============================================================
   SITE FOOTER
   ============================================================= */
.footer {
  position: relative;
  padding: var(--sp-20) var(--section-pad-x) var(--sp-8);
  background: var(--surface-0);
  border-top: 1px solid var(--border-subtle);
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--nitro-gold-rgb), 0.3), transparent);
}
.footer__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid var(--border-subtle);
}
.footer__brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}
.footer__tagline {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--sp-6);
  font-weight: 400;
  max-width: 300px;
  line-height: 1.6;
}
.footer__credential {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.footer__credential::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}
.footer__col-heading {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--sp-5);
}
.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__links a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.25s var(--ease-spring);
  display: inline-block;
}
.footer__links a:hover { color: var(--nitro-gold); padding-left: 4px; }
.footer__contact {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 400;
}
.footer__contact a { color: var(--text-secondary); text-decoration: none; border-bottom: 1px solid var(--border-subtle); transition: color 0.2s, border-color 0.2s; }
.footer__contact a:hover { color: var(--nitro-gold); border-color: var(--nitro-gold); }

.footer__bottom {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding-top: var(--sp-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  flex-wrap: wrap;
  gap: 16px;
}
.footer__legal { display: flex; gap: 18px; align-items: center; }
.footer__legal a { color: inherit; text-decoration: none; transition: color 0.2s; }
.footer__legal a:hover { color: var(--nitro-gold); }
.footer__social { display: flex; gap: 12px; align-items: center; }
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-tertiary);
  transition: all 0.2s;
}
.footer__social a:hover { color: var(--nitro-gold); border-color: var(--border-gold); transform: translateY(-1px); }
.footer__social svg { width: 14px; height: 14px; }

@media (max-width: 880px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }
  .footer__brand-cell { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* =============================================================
   UNIFIED CARD SYSTEM
   ============================================================= */
.card {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-spring), box-shadow 0.3s;
  overflow: hidden;
}
.card:hover {
  border-color: rgba(var(--nitro-gold-rgb), 0.2);
  background: var(--surface-2);
}
.card--interactive:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.card--light {
  background: #ffffff;
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}
.card--light:hover {
  border-color: rgba(var(--nitro-gold-rgb), 0.22);
  box-shadow: var(--shadow-md);
}

/* Gold accent strip on left edge */
.card--accent { border-left: 2px solid var(--nitro-gold); }

/* Magnetic cursor glow */
.card--glow { --gx: 50%; --gy: 50%; }
.card--glow::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--gx) var(--gy), rgba(var(--nitro-gold-rgb), calc(0.05 * var(--accent-intensity))), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.card--glow:hover::after { opacity: 1; }

/* =============================================================
   SECTIONS — light / dark / warm
   ============================================================= */
.section {
  position: relative;
  padding: var(--section-pad-y) var(--section-pad-x);
  overflow: hidden;
}
.section--dark  { background: var(--surface-0); color: var(--text-primary); }
.section--darker { background: var(--nitro-black); color: var(--text-primary); }
.section--light { background: var(--nitro-smoke); color: var(--text-dark); }
.section--paper { background: var(--nitro-paper); color: var(--text-dark); }

/* Transition strip when going dark -> light */
.transition-to-light::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, var(--surface-0), transparent);
  pointer-events: none;
  z-index: 1;
}
.transition-to-dark::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, var(--nitro-smoke), transparent);
  pointer-events: none;
  z-index: 1;
}

/* Hairline rule */
.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
  margin: 0;
  border: 0;
}
.hairline--gold {
  background: linear-gradient(90deg, transparent, rgba(var(--nitro-gold-rgb), 0.3), transparent);
}
.hairline--dark {
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

/* Ambient orb (reusable bg element) */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  opacity: 0;
  animation: orbIn 2s ease 0.5s forwards;
}
.orb--gold {
  background: radial-gradient(circle, rgba(var(--nitro-gold-rgb), calc(0.07 * var(--accent-intensity))) 0%, transparent 70%);
}
.orb--teal {
  background: radial-gradient(circle, rgba(14, 100, 140, 0.1) 0%, transparent 70%);
}
@keyframes orbIn { to { opacity: 1; } }

/* =============================================================
   COUNT-UP NUMBERS
   ============================================================= */
.countup {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

/* =============================================================
   ACCESSIBLE FOCUS
   ============================================================= */
:focus-visible {
  outline: 2px solid var(--nitro-gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* =============================================================
   REDUCED MOTION
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .char-reveal .char { opacity: 1 !important; transform: none !important; }
}

/* =============================================================
   SMALL HELPERS
   ============================================================= */
.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;
}
.nowrap { white-space: nowrap; }
.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* =============================================================
   PRINT
   ============================================================= */
@media print {
  .grain, .orb, .nav, .nav__mobile, .hero__scroll, video { display: none !important; }
  body, .section, .section--dark, .section--darker { background: #fff !important; color: #111 !important; }
  .section { padding: 24px 0 !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  a { color: #111 !important; text-decoration: underline; }
}

/* v3.2 — brand seal in footer */
.footer__seal { display: block; width: 129px; height: 129px; border-radius: 50%; margin: 0 0 16px; opacity: 0.9; }
