:root {
  --ink: #121416;
  --charcoal: #1c2224;
  --charcoal-2: #283033;
  --stone: #f3f0ea;
  --paper: #fbfaf7;
  --line: rgba(18, 20, 22, 0.14);
  --steel: #7b8f98;
  --copper: #b77b49;
  --logo-gold: #d7aa46;
  --logo-blue: #9aabba;
  --sage: #67776a;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(18, 20, 22, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 18px clamp(20px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-active {
  background: rgba(251, 250, 247, 0.96);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--logo-gold);
  color: var(--logo-gold);
  font-size: 1.45rem;
  font-weight: 500;
}

.brand-wordmark {
  display: grid;
  gap: 1px;
  line-height: 1.05;
  white-space: nowrap;
  text-transform: uppercase;
}

.brand-name,
.brand-descriptor {
  display: block;
}

.brand-name {
  color: var(--white);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.brand-descriptor {
  color: var(--logo-blue);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.site-header.is-scrolled .brand-name,
.site-header.nav-active .brand-name {
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.3vw, 32px);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav a {
  text-decoration: none;
  opacity: 0.82;
}

.site-nav a:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 120px clamp(20px, 6vw, 76px) 84px;
  color: var(--white);
  overflow: hidden;
}

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

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(18, 20, 22, 0.9) 0%, rgba(18, 20, 22, 0.62) 42%, rgba(18, 20, 22, 0.16) 100%),
    linear-gradient(0deg, rgba(18, 20, 22, 0.6), rgba(18, 20, 22, 0.08) 52%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero h1 {
  margin: 0;
  max-width: 850px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 8vw, 7.6rem);
  line-height: 0.92;
  font-weight: 500;
}

.hero-copy {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.34rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.button.primary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.button.secondary {
  color: var(--white);
}

.hero-signal {
  position: absolute;
  right: clamp(20px, 5vw, 58px);
  bottom: clamp(22px, 5vw, 58px);
  z-index: 1;
  width: min(320px, calc(100% - 40px));
  padding: 22px;
  border-left: 2px solid var(--copper);
  background: rgba(18, 20, 22, 0.58);
  backdrop-filter: blur(14px);
}

.hero-signal span,
.metric-label,
.metric-note,
.contact-link span {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-signal strong {
  display: block;
  margin-top: 7px;
  font-size: 1.08rem;
}

.section {
  padding: clamp(76px, 10vw, 132px) clamp(20px, 6vw, 76px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: start;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4.5vw, 4.5rem);
  line-height: 1.02;
  font-weight: 500;
}

h3 {
  margin: 12px 0 10px;
  font-size: 1.1rem;
}

p {
  margin: 0;
}

.rich-copy p,
.pipeline-layout p,
.capability-grid > div p,
.contact-content p {
  color: rgba(18, 20, 22, 0.72);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.rich-copy p + p {
  margin-top: 22px;
}

.dark-band {
  background: var(--charcoal);
  color: var(--white);
}

.dark-band .section-kicker {
  color: #d39a69;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.capability-grid > div {
  grid-column: span 2;
  padding-right: clamp(8px, 4vw, 52px);
}

.capability-grid > div p {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.72);
}

.capability-card {
  min-height: 250px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
}

.capability-card span {
  color: var(--copper);
  font-weight: 900;
}

.capability-card p {
  color: rgba(255, 255, 255, 0.68);
}

.pipeline {
  background:
    linear-gradient(90deg, rgba(103, 119, 106, 0.14), rgba(255, 255, 255, 0)),
    var(--stone);
}

.pipeline-layout {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: center;
}

.metric-panel {
  min-height: 360px;
  display: grid;
  align-content: end;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(18, 20, 22, 0), rgba(18, 20, 22, 0.88)),
    url("assets/maxwell-hero.png");
  background-size: cover;
  background-position: 62% center;
  color: var(--white);
  box-shadow: var(--shadow);
}

.metric-panel strong {
  display: block;
  margin: 8px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.6rem;
  line-height: 0.9;
  font-weight: 500;
}

.metric-note {
  color: rgba(255, 255, 255, 0.74);
}

.pipeline-layout h2 {
  max-width: 790px;
}

.pipeline-layout p {
  max-width: 720px;
  margin-top: 24px;
}

.partnerships {
  background: var(--paper);
}

.contact-section {
  padding: clamp(76px, 10vw, 128px) clamp(20px, 6vw, 76px);
  background: var(--charcoal-2);
  color: var(--white);
}

.contact-content {
  max-width: 1020px;
}

.contact-content h2 {
  max-width: 740px;
}

.contact-content p {
  max-width: 680px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.74);
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.contact-link {
  min-height: 124px;
  display: grid;
  align-content: center;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

.contact-link:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

.contact-link strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-size: clamp(1.05rem, 2.2vw, 1.55rem);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 6vw, 76px);
  border-top: 1px solid var(--line);
  color: rgba(18, 20, 22, 0.66);
  font-size: 0.84rem;
}

@media (max-width: 980px) {
  .split,
  .pipeline-layout {
    grid-template-columns: 1fr;
  }

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

  .capability-grid > div {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
    padding: 12px 18px;
  }

  .brand {
    gap: 12px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
  }

  .brand-name {
    font-size: 0.88rem;
  }

  .brand-descriptor {
    font-size: 0.58rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    padding: 22px 18px 28px;
    background: rgba(251, 250, 247, 0.98);
    color: var(--ink);
    box-shadow: 0 18px 30px rgba(18, 20, 22, 0.12);
  }

  .site-nav.is-open {
    display: grid;
    gap: 18px;
  }

  .hero {
    min-height: 88vh;
    padding: 110px 20px 150px;
  }

  .hero h1 {
    font-size: clamp(3.05rem, 16vw, 5.4rem);
  }

  .hero-copy {
    font-size: 1.02rem;
  }

  .hero-signal {
    right: 20px;
    left: 20px;
    bottom: 22px;
    width: auto;
  }

  .capability-grid,
  .contact-actions {
    grid-template-columns: 1fr;
  }

  .capability-card {
    min-height: 0;
  }

  .metric-panel {
    min-height: 290px;
  }

  .metric-panel strong {
    font-size: 3.6rem;
  }

  .site-footer {
    display: grid;
  }
}

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