:root {
  --black: #050505;
  --near-black: #090909;
  --charcoal: #111111;
  --charcoal-2: #171717;
  --panel: rgba(18, 18, 18, 0.78);
  --panel-solid: #131313;
  --line: rgba(255, 255, 255, 0.12);
  --line-gold: rgba(193, 154, 86, 0.42);
  --gold: #c19a56;
  --gold-light: #e4c27b;
  --white: #f8f5ee;
  --muted: #b8b3aa;
  --soft: #827d74;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --max-width: 1180px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 0%, rgba(193, 154, 86, 0.13), transparent 34rem),
    linear-gradient(180deg, #050505 0%, #101010 42%, #070707 100%);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(193, 154, 86, 0.12);
  background: rgba(3, 3, 3, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(var(--max-width), calc(100% - 40px));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 246px;
  height: 54px;
  overflow: hidden;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  opacity: 0.92;
  filter: saturate(0.92) contrast(1.04);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2.2vw, 30px);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(248, 245, 238, 0.74);
}

.nav-links a {
  position: relative;
  padding: 28px 0;
  transition: color 180ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--gold);
  transition: transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: center;
  padding: 146px 0 110px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/northvale-hero.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.82) 34%, rgba(5, 5, 5, 0.36) 68%, rgba(5, 5, 5, 0.25) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.18) 0%, rgba(5, 5, 5, 0.22) 55%, rgba(5, 5, 5, 0.94) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: rgba(228, 194, 123, 0.82);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 0.98;
}

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(4.1rem, 8.6vw, 8.9rem);
}

h2 {
  max-width: 850px;
  margin-bottom: 0;
  font-size: clamp(2.35rem, 4.6vw, 5rem);
}

h3 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: clamp(1.04rem, 1.4vw, 1.24rem);
  line-height: 1.25;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 34px;
  color: rgba(248, 245, 238, 0.8);
  font-size: clamp(1.08rem, 1.9vw, 1.45rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #0b0b0b;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.button-secondary {
  border-color: rgba(248, 245, 238, 0.26);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.hero-metrics {
  position: absolute;
  right: max(20px, calc((100vw - var(--max-width)) / 2));
  bottom: 26px;
  left: max(20px, calc((100vw - var(--max-width)) / 2));
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-metrics div {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 22px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-metrics div:last-child {
  border-right: 0;
}

.hero-metrics span,
.capability-card span {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero-metrics strong {
  font-size: 0.92rem;
  line-height: 1.35;
  color: rgba(248, 245, 238, 0.86);
}

.section {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(78px, 10vw, 132px) 0;
}

.split,
.section-heading,
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: start;
}

.prose p,
.section-heading p,
.contact-panel p {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.8;
}

.prose p:last-child,
.contact-panel p:last-child {
  margin-bottom: 0;
}

.capabilities-section {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100vw - var(--max-width)) / 2));
  padding-left: max(20px, calc((100vw - var(--max-width)) / 2));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    #0c0c0c;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 54px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.capability-card {
  min-height: 262px;
  padding: clamp(22px, 2vw, 30px);
  background:
    linear-gradient(145deg, rgba(193, 154, 86, 0.07), transparent 38%),
    var(--panel-solid);
  transition: transform 180ms ease, background 180ms ease;
}

.capability-card:hover {
  transform: translateY(-4px);
  background:
    linear-gradient(145deg, rgba(193, 154, 86, 0.13), transparent 42%),
    #171717;
}

.capability-card h3 {
  margin-top: 26px;
}

.capability-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.differentiator-section {
  width: min(calc(var(--max-width) + 64px), calc(100% - 40px));
}

.differentiator-panel,
.contact-panel {
  padding: clamp(30px, 5vw, 64px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(135deg, rgba(193, 154, 86, 0.055), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
    var(--panel);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.32);
}

.differentiator-panel {
  border-top: 2px solid rgba(193, 154, 86, 0.34);
}

.differentiator-panel h2 {
  margin-bottom: 24px;
}

.differentiator-panel > p {
  max-width: 760px;
  color: rgba(248, 245, 238, 0.78);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
}

.differentiator-grid,
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 38px;
  background: rgba(255, 255, 255, 0.1);
}

.differentiator-grid div,
.results-grid div {
  min-height: 92px;
  display: flex;
  align-items: center;
  padding: 22px;
  background: rgba(5, 5, 5, 0.5);
  color: rgba(248, 245, 238, 0.86);
  font-weight: 650;
}

.clients-section {
  padding-top: 10px;
}

.client-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 46px;
}

.client-list span {
  min-height: 76px;
  display: flex;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(248, 245, 238, 0.86);
  font-weight: 700;
}

.results-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1fr);
  gap: clamp(32px, 6vw, 74px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.results-copy h2 {
  font-size: clamp(2.15rem, 3.8vw, 4.1rem);
}

.results-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.results-grid div {
  min-height: 116px;
  background:
    linear-gradient(145deg, rgba(193, 154, 86, 0.09), transparent 46%),
    rgba(19, 19, 19, 0.94);
}

.contact-section {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100vw - var(--max-width)) / 2));
  padding-left: max(20px, calc((100vw - var(--max-width)) / 2));
  background: #080808;
  border-top: 1px solid var(--line);
}

.contact-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  font-style: normal;
}

.contact-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 500;
}

.contact-card span {
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.75rem;
  font-weight: 800;
}

.contact-card a {
  overflow-wrap: anywhere;
  color: rgba(248, 245, 238, 0.86);
  transition: color 180ms ease;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  color: var(--gold-light);
}

.footer {
  width: min(var(--max-width), calc(100% - 40px));
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--soft);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 1100px) {
  .capability-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav {
    height: 74px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 74px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 10px 20px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 5, 5, 0.97);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 200ms ease, opacity 200ms ease;
  }

  body.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links a::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 126px;
    padding-bottom: 288px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(5, 5, 5, 0.94) 0%, rgba(5, 5, 5, 0.78) 55%, rgba(5, 5, 5, 0.42) 100%),
      linear-gradient(180deg, rgba(5, 5, 5, 0.08) 0%, rgba(5, 5, 5, 0.3) 48%, rgba(5, 5, 5, 0.96) 100%);
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-metrics div {
    min-height: 78px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero-metrics div:last-child {
    border-bottom: 0;
  }

  .split,
  .section-heading,
  .contact-panel,
  .results-section {
    grid-template-columns: 1fr;
  }

  .capability-grid,
  .client-list,
  .differentiator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .nav,
  .hero-content,
  .section,
  .footer {
    width: min(100% - 32px, var(--max-width));
  }

  .brand {
    width: 202px;
    height: 48px;
  }

  .hero {
    padding-bottom: 326px;
  }

  h1 {
    font-size: clamp(3.15rem, 15vw, 4.65rem);
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3.4rem);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    font-size: 0.74rem;
  }

  .capability-grid,
  .client-list,
  .differentiator-grid,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .capability-card {
    min-height: 220px;
  }

  .differentiator-panel,
  .contact-panel {
    padding: 28px 22px;
  }

  .contact-card {
    padding: 22px;
  }

  .footer {
    min-height: 108px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
