@font-face {
  font-family: "BastardusSans";
  src: url("../fonts/BastardusSans.ttf") format("truetype");
  font-display: swap;
}

:root {
  --nx-red: #d51928;
  --nx-red-hover: #be1523;
  --nx-red-deep: #9c1018;
  --nx-red-glow: rgba(213, 25, 40, 0.35);
  --nx-gold: #c8973e;
  --nx-gold-deep: #a67b2e;
  --nx-gold-text-light: #8a6622;
  --nx-carbon: #141416;
  --nx-carbon-warm: #1a1918;
  --nx-carbon-mid: #222120;
  --nx-carbon-light: #2c2a28;
  --nx-carbon-lighter: #3a3836;
  --nx-cream: #faf8f5;
  --nx-cream-warm: #f5f2ed;
  --nx-white: #ffffff;
  --nx-grey-900: #1e1d1c;
  --nx-grey-800: #33312f;
  --nx-grey-700: #4a4744;
  --nx-grey-600: #5f5c58;
  --nx-grey-500: #7a7672;
  --nx-grey-400: #9e9a96;
  --nx-grey-200: #d4d0cc;
  --nx-grey-100: #e8e5e2;
  --font-brand: "BastardusSans", "Source Sans 3", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
  --font-tagline: "Fraunces", Georgia, serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.25), 0 8px 16px rgba(0, 0, 0, 0.12);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms;
  --dur-normal: 250ms;
  --dur-slow: 400ms;
  --clip-card: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--nx-grey-800);
  background: var(--nx-carbon);
  overflow-x: hidden;
}

::selection {
  background: var(--nx-red);
  color: var(--nx-white);
}

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

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

.defs {
  position: absolute;
  width: 0;
  height: 0;
}

.wrap {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--nx-carbon-warm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--dur-normal) var(--ease-out), box-shadow var(--dur-normal) var(--ease-out);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--nx-red) 20%, var(--nx-red) 80%, transparent 100%);
  opacity: 0.55;
  transition: opacity var(--dur-normal) var(--ease-out);
}

.site-header.scrolled {
  background: rgba(20, 22, 24, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.site-header.scrolled::after {
  opacity: 1;
}

.nav-wrap {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 22px;
  height: 22px;
  fill: var(--nx-red);
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(213, 25, 40, 0.4));
}

.brand-copy {
  display: grid;
  gap: 0;
}

.brand-name {
  font-family: var(--font-brand);
  font-size: 0.9375rem;
  line-height: 1;
  color: var(--nx-white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-tag {
  font-family: var(--font-tagline);
  font-size: 0.8125rem;
  color: var(--nx-grey-500);
}

.primary-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: color var(--dur-fast), background var(--dur-fast);
}

.nav-item-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  opacity: 0.9;
}

.primary-nav a:hover {
  color: var(--nx-white);
  background: rgba(255, 255, 255, 0.06);
}

.primary-nav a.active {
  color: var(--nx-red);
}

.primary-nav a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: var(--nx-red);
  border-radius: 1px;
}

.phone-link {
  color: var(--nx-gold) !important;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: var(--nx-white);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}

.menu-toggle:hover {
  border-color: var(--nx-red);
  background: rgba(213, 25, 40, 0.1);
}

.site-main {
  padding-top: 56px;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--nx-carbon);
}

.hero {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  width: 800px;
  height: 800px;
  right: -200px;
  top: -100px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(213, 25, 40, 0.08) 0%, rgba(200, 151, 62, 0.04) 30%, transparent 65%);
  pointer-events: none;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 80px, rgba(213, 25, 40, 0.015) 80px, rgba(213, 25, 40, 0.015) 81px);
  pointer-events: none;
}

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

.hero {
  padding: 5rem 0 4rem;
}

.page-hero {
  padding: 4.5rem 0 3rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 1.5rem;
  color: var(--nx-gold);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero h1,
.page-hero h1 {
  max-width: 11ch;
  color: var(--nx-white);
}

.hero h1 {
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.95;
}

.page-hero h1 {
  font-size: clamp(3rem, 7vw, 5rem);
}

.lede {
  max-width: 660px;
  margin-top: 1.25rem;
  color: var(--nx-grey-400);
  font-size: 1.25rem;
  line-height: 1.7;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: transform var(--dur-fast), box-shadow var(--dur-normal), background var(--dur-normal), border-color var(--dur-normal);
}

.button:hover {
  transform: translateY(-1px);
}

.button-solid {
  color: var(--nx-white);
  background: linear-gradient(135deg, var(--nx-red) 0%, var(--nx-red-deep) 100%);
  box-shadow: 0 4px 20px rgba(213, 25, 40, 0.3);
}

.button-solid:hover {
  background: linear-gradient(135deg, var(--nx-red-hover) 0%, var(--nx-red-deep) 100%);
}

.button-ghost {
  color: var(--nx-white);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.hero-grid,
.split-grid,
.card-grid,
.quote-grid,
.contact-grid,
.policy-grid,
.cta-grid,
.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.panel,
.metric,
.card,
.quote-card,
.download-card,
.contact-card,
.policy-card,
.article-shell {
  position: relative;
}

.panel,
.metric,
.card,
.quote-card,
.download-card,
.contact-card,
.policy-card {
  clip-path: var(--clip-card);
}

.panel {
  padding: 1.4rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)), linear-gradient(145deg, rgba(213, 25, 40, 0.92), rgba(26, 25, 24, 0.35) 65%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-xl);
}

.panel img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
}

.panel-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--nx-grey-300);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.25rem;
}

.metric {
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-brand);
  font-size: 2rem;
  line-height: 1;
  color: var(--nx-red);
}

.metric span {
  display: block;
  color: var(--nx-grey-400);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-section {
  position: relative;
  padding: 5rem 0 4rem;
}

.panel-section::before,
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--nx-carbon) 0%, var(--nx-red-deep) 15%, var(--nx-red) 40%, var(--nx-gold) 70%, var(--nx-red) 85%, var(--nx-carbon) 100%);
}

.panel-light {
  background: var(--nx-cream);
  color: var(--nx-grey-800);
}

.panel-dark {
  background: var(--nx-carbon-warm);
  color: var(--nx-grey-200);
}

.panel-dark h2,
.panel-dark h3 {
  color: var(--nx-white);
}

.panel-light h2,
.panel-light h3 {
  color: var(--nx-grey-900);
}

.panel-light .eyebrow {
  color: var(--nx-red);
}

.panel-light .eyebrow::before {
  background: var(--nx-red);
}

.panel-dark .eyebrow {
  color: var(--nx-red);
}

.split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.split-grid img {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
}

.section-copy,
.article-body,
.policy-card p,
.contact-card p,
.card p,
.download-card p,
.quote-card p {
  font-size: 1.0625rem;
  line-height: 1.78;
}

.section-copy p,
.article-body p,
.policy-card p,
.contact-card p,
.card p,
.download-card p,
.quote-card p {
  margin: 1rem 0 0;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.quote-card,
.download-card,
.contact-card,
.policy-card {
  overflow: hidden;
  padding: 1.5rem;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-normal) var(--ease-out), border-color var(--dur-normal) var(--ease-out);
}

.card::before,
.quote-card::before,
.download-card::before,
.contact-card::before,
.policy-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--nx-red) 0%, var(--nx-gold) 100%);
  opacity: 0;
  transition: opacity var(--dur-normal) var(--ease-out);
}

.card:hover,
.quote-card:hover,
.download-card:hover,
.contact-card:hover,
.policy-card:hover {
  transform: translateY(-2px);
}

.card:hover::before,
.quote-card:hover::before,
.download-card:hover::before,
.contact-card:hover::before,
.policy-card:hover::before {
  opacity: 1;
}

.panel-dark .card,
.panel-dark .quote-card,
.panel-dark .contact-card {
  background: var(--nx-carbon-mid);
  border: 1px solid var(--nx-carbon-lighter);
  box-shadow: var(--shadow-md);
}

.panel-light .card,
.panel-light .quote-card,
.panel-light .download-card,
.panel-light .policy-card {
  background: var(--nx-white);
  border: 1px solid var(--nx-grey-100);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-card,
.policy-card {
  height: 100%;
}

.card h3,
.quote-card h3,
.download-card h3,
.contact-card h3,
.policy-card h3,
.cta-band h2,
.related-links h3 {
  font-size: clamp(1.625rem, 4vw, 2.5rem);
  line-height: 1.06;
}

blockquote {
  margin: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--nx-red);
  font-family: var(--font-tagline);
  font-size: 1.25rem;
  line-height: 1.65;
}

.quote-card p {
  margin-top: 1rem;
}

.article-shell {
  overflow: hidden;
  background: var(--nx-white);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--nx-grey-100);
}

.article-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.article-body {
  padding: 2rem;
  color: var(--nx-grey-800);
}

.article-body h3 {
  margin-top: 2rem;
  color: var(--nx-grey-900);
  font-size: 2rem;
}

.article-body ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.article-body a,
.site-footer a,
.policy-card a,
.contact-card a,
.related-links a {
  color: var(--nx-red);
}

.related-links {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(213, 25, 40, 0.18);
}

.related-links ul,
.footer-links {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.related-links li,
.footer-links li {
  margin-top: 0.5rem;
}

.quote-grid,
.contact-grid,
.policy-grid,
.cta-grid,
.footer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.policy-grid .policy-grid {
  grid-template-columns: 1fr;
}

.cta-band {
  position: relative;
  padding: 3.5rem 0;
  background: linear-gradient(135deg, rgba(213, 25, 40, 0.96), rgba(156, 16, 24, 0.92) 62%, rgba(200, 151, 62, 0.62));
  color: var(--nx-white);
}

.cta-band h2 {
  color: var(--nx-white);
}

.cta-band p:last-child {
  margin: 1rem 0 0;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.86);
}

.site-footer {
  background: var(--nx-slate-menu, #141618);
  color: var(--nx-grey-400);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer h3 {
  color: var(--nx-white);
  font-size: 1.375rem;
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-brand .brand-icon {
  width: 28px;
  height: 28px;
}

.footer-brand .brand-name {
  font-size: 1.125rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .split-grid,
  .cta-grid,
  .footer-grid,
  .quote-grid,
  .contact-grid,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    background: rgba(20, 22, 24, 0.98);
    padding: 0 1rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .primary-nav.open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-nav a {
    width: 100%;
    min-height: 44px;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
  }

  .primary-nav a span {
    flex: 1 1 auto;
  }
}

@media (max-width: 720px) {
  .hero,
  .page-hero {
    padding: 4rem 0 3rem;
  }

  .panel-section,
  .cta-band {
    padding: 3rem 0;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .lede {
    font-size: 1.1rem;
  }

  .card-grid,
  .metrics,
  .quote-grid,
  .contact-grid,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .article-body {
    padding: 1.25rem;
  }
}
