:root {
  --cr-shell-max: 80rem;
  --cr-hero-image: none;
  --cr-hero-position: center center;
  --cr-hero-overlay: linear-gradient(180deg, rgba(9, 19, 21, 0.48) 0%, rgba(9, 19, 21, 0.78) 100%);
  --cr-hero-accent: rgba(242, 164, 31, 0.18);
  --cr-hero-title-max: 12ch;
  --cr-hero-copy-max: 42rem;
}

body[class*="page-"] nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(221, 230, 225, 0.92);
}

body[class*="page-"] nav .max-w-7xl {
  max-width: 80rem;
}

body[class*="page-"] nav .heading-font.text-xl {
  font-size: 1.05rem;
}

body[class*="page-"] .nav-link {
  letter-spacing: 0.01em;
}

.cr-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(100svh - 74px);
  padding-block: clamp(5.5rem, 9vw, 8.5rem);
  background-image: var(--cr-hero-image) !important;
  background-size: cover !important;
  background-position: var(--cr-hero-position) !important;
  background-repeat: no-repeat !important;
  overflow: hidden;
  isolation: isolate;
}

.cr-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cr-hero-overlay);
  z-index: 0;
}

.cr-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 32%;
  background:
    linear-gradient(180deg, rgba(8, 18, 18, 0) 0%, rgba(8, 18, 18, 0.54) 100%);
  z-index: 0;
}

.cr-hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--cr-shell-max), calc(100% - 3rem));
}

.cr-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(244, 248, 246, 0.82) !important;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cr-hero-title {
  max-width: var(--cr-hero-title-max);
  color: #ffffff !important;
  letter-spacing: -0.045em;
  text-wrap: balance;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.2);
}

.cr-hero-copy {
  max-width: var(--cr-hero-copy-max);
  color: rgba(242, 247, 244, 0.82) !important;
  font-size: clamp(1.04rem, 1.15vw, 1.2rem);
  line-height: 1.7;
  text-wrap: pretty;
}

.cr-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.cr-hero-actions a {
  min-width: 13.5rem;
  padding: 0.95rem 1.6rem !important;
  border-radius: 999px !important;
  font-size: 0.985rem !important;
  font-weight: 650 !important;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease !important;
}

.cr-hero-actions a:hover {
  transform: translateY(-1px);
}

.cr-hero-actions a:first-child {
  background: #ffffff !important;
  color: #10251d !important;
  border: 1px solid rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 14px 34px rgba(7, 20, 18, 0.16);
}

.cr-hero-actions a:last-child {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
}

.cr-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.5rem;
  color: rgba(243, 247, 245, 0.74) !important;
}

.cr-hero-meta > * {
  padding-top: 0.15rem;
}

.cr-hero-meta i {
  color: #7ee0b2 !important;
}

.cr-stat-strip {
  background: #f8fbf9 !important;
  border-top: 1px solid #e3ece6 !important;
  border-bottom: 1px solid #e3ece6 !important;
  padding-block: clamp(2.8rem, 4.6vw, 4.25rem) !important;
}

.cr-stat-grid {
  gap: 1rem !important;
}

.cr-stat-grid > div {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e0e9e3;
  border-radius: 1.35rem;
  padding: 1.3rem 1rem;
  box-shadow: 0 10px 30px rgba(10, 35, 20, 0.05);
}

.cr-stat-grid > div .heading-font {
  letter-spacing: -0.04em;
}

.cr-stat-grid > div .text-cr-mist {
  color: #718177 !important;
}

.page-home {
  --cr-hero-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=2000&q=80');
  --cr-hero-position: center center;
  --cr-hero-overlay:
    linear-gradient(180deg, rgba(8, 19, 22, 0.54) 0%, rgba(8, 19, 22, 0.82) 100%),
    linear-gradient(120deg, rgba(9, 18, 26, 0.6) 10%, rgba(15, 77, 44, 0.48) 60%, rgba(242, 164, 31, 0.12) 100%);
  --cr-hero-title-max: 13ch;
  --cr-hero-copy-max: 46rem;
}

.page-lending {
  --cr-hero-image: url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=2000&q=80');
  --cr-hero-position: center center;
  --cr-hero-overlay:
    linear-gradient(180deg, rgba(16, 20, 25, 0.58) 0%, rgba(11, 17, 21, 0.84) 100%),
    linear-gradient(110deg, rgba(18, 22, 28, 0.76) 4%, rgba(15, 77, 44, 0.34) 64%, rgba(242, 164, 31, 0.14) 100%);
  --cr-hero-title-max: 10ch;
  --cr-hero-copy-max: 34rem;
}

.page-real-estate {
  --cr-hero-image: url('https://images.unsplash.com/photo-1460317442991-0ec209397118?auto=format&fit=crop&w=2000&q=80');
  --cr-hero-position: center center;
  --cr-hero-overlay:
    linear-gradient(180deg, rgba(19, 20, 24, 0.42) 0%, rgba(12, 19, 17, 0.8) 100%),
    linear-gradient(120deg, rgba(30, 23, 18, 0.48) 0%, rgba(18, 67, 48, 0.28) 64%, rgba(242, 164, 31, 0.12) 100%);
  --cr-hero-title-max: 12ch;
  --cr-hero-copy-max: 38rem;
}

.page-energy {
  --cr-hero-image: url('https://images.unsplash.com/photo-1466611653911-95081537e5b7?auto=format&fit=crop&w=2000&q=80');
  --cr-hero-position: center center;
  --cr-hero-overlay:
    linear-gradient(180deg, rgba(10, 18, 16, 0.48) 0%, rgba(8, 16, 14, 0.82) 100%),
    linear-gradient(120deg, rgba(18, 34, 29, 0.56) 0%, rgba(15, 77, 44, 0.34) 58%, rgba(119, 196, 135, 0.14) 100%);
  --cr-hero-title-max: 11ch;
  --cr-hero-copy-max: 38rem;
}

.page-labs {
  --cr-hero-image: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=2000&q=80');
  --cr-hero-position: center center;
  --cr-hero-overlay:
    linear-gradient(180deg, rgba(8, 18, 24, 0.58) 0%, rgba(8, 15, 18, 0.82) 100%),
    linear-gradient(112deg, rgba(10, 24, 28, 0.74) 2%, rgba(14, 68, 51, 0.4) 68%, rgba(47, 111, 237, 0.15) 100%);
  --cr-hero-title-max: 10ch;
  --cr-hero-copy-max: 37rem;
}

.page-consulting {
  --cr-hero-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=2000&q=80');
  --cr-hero-position: center center;
  --cr-hero-overlay:
    linear-gradient(180deg, rgba(16, 17, 20, 0.5) 0%, rgba(11, 14, 17, 0.82) 100%),
    linear-gradient(120deg, rgba(24, 22, 18, 0.54) 0%, rgba(15, 77, 44, 0.28) 62%, rgba(242, 164, 31, 0.14) 100%);
  --cr-hero-title-max: 12ch;
  --cr-hero-copy-max: 39rem;
}

.page-portfolio {
  --cr-hero-image: url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=2000&q=80');
  --cr-hero-position: center center;
  --cr-hero-overlay:
    linear-gradient(180deg, rgba(8, 17, 18, 0.52) 0%, rgba(8, 17, 18, 0.8) 100%),
    linear-gradient(120deg, rgba(12, 22, 28, 0.58) 0%, rgba(14, 61, 47, 0.34) 60%, rgba(242, 164, 31, 0.1) 100%);
  --cr-hero-title-max: 12ch;
  --cr-hero-copy-max: 41rem;
}

.page-about {
  --cr-hero-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=2000&q=80');
  --cr-hero-position: center center;
  --cr-hero-overlay:
    linear-gradient(180deg, rgba(9, 16, 19, 0.44) 0%, rgba(9, 16, 19, 0.76) 100%),
    linear-gradient(120deg, rgba(18, 22, 20, 0.52) 0%, rgba(15, 77, 44, 0.28) 66%, rgba(255, 255, 255, 0.06) 100%);
  --cr-hero-title-max: 11ch;
  --cr-hero-copy-max: 42rem;
}

.page-contact {
  --cr-hero-image: url('https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?auto=format&fit=crop&w=2000&q=80');
  --cr-hero-position: center center;
  --cr-hero-overlay:
    linear-gradient(180deg, rgba(8, 16, 18, 0.48) 0%, rgba(8, 16, 18, 0.76) 100%),
    linear-gradient(120deg, rgba(16, 24, 20, 0.5) 0%, rgba(15, 77, 44, 0.28) 66%, rgba(242, 164, 31, 0.08) 100%);
  --cr-hero-title-max: 11ch;
  --cr-hero-copy-max: 40rem;
}

.page-usda {
  --cr-hero-image: url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=2000&q=80');
  --cr-hero-position: center center;
  --cr-hero-overlay:
    linear-gradient(180deg, rgba(9, 18, 16, 0.52) 0%, rgba(9, 18, 16, 0.82) 100%),
    linear-gradient(118deg, rgba(17, 23, 18, 0.64) 0%, rgba(15, 77, 44, 0.34) 62%, rgba(242, 164, 31, 0.1) 100%);
  --cr-hero-title-max: 10.5ch;
  --cr-hero-copy-max: 38rem;
}

.page-home .cr-hero-inner,
.page-portfolio .cr-hero-inner,
.page-about .cr-hero-inner,
.page-contact .cr-hero-inner {
  margin-inline: auto;
  text-align: center;
}

.page-home .cr-hero-copy,
.page-portfolio .cr-hero-copy,
.page-about .cr-hero-copy,
.page-contact .cr-hero-copy {
  margin-inline: auto;
}

.page-home .cr-hero-actions,
.page-home .cr-hero-meta,
.page-portfolio .cr-hero-actions,
.page-portfolio .cr-hero-meta,
.page-about .cr-hero-actions,
.page-about .cr-hero-meta,
.page-contact .cr-hero-actions,
.page-contact .cr-hero-meta {
  justify-content: center;
}

.page-lending .cr-hero-inner,
.page-real-estate .cr-hero-inner,
.page-energy .cr-hero-inner,
.page-labs .cr-hero-inner,
.page-consulting .cr-hero-inner,
.page-usda .cr-hero-inner {
  margin-inline: max(1.5rem, 3vw) auto;
  text-align: left;
}

.page-lending .cr-hero-copy,
.page-real-estate .cr-hero-copy,
.page-energy .cr-hero-copy,
.page-labs .cr-hero-copy,
.page-consulting .cr-hero-copy,
.page-usda .cr-hero-copy {
  margin-inline: 0;
}

.page-lending .cr-hero-actions,
.page-lending .cr-hero-meta,
.page-real-estate .cr-hero-actions,
.page-real-estate .cr-hero-meta,
.page-energy .cr-hero-actions,
.page-energy .cr-hero-meta,
.page-labs .cr-hero-actions,
.page-labs .cr-hero-meta,
.page-consulting .cr-hero-actions,
.page-consulting .cr-hero-meta,
.page-usda .cr-hero-actions,
.page-usda .cr-hero-meta {
  justify-content: flex-start;
}

.page-labs .cr-hero {
  min-height: calc(84svh - 74px);
}

.page-about .cr-hero,
.page-contact .cr-hero {
  min-height: calc(72svh - 74px);
}

@media (max-width: 1024px) {
  .cr-hero {
    min-height: auto;
    padding-block: 5.25rem 4.5rem;
    align-items: flex-end;
  }

  .cr-hero-inner {
    width: min(var(--cr-shell-max), calc(100% - 2rem));
  }

  .page-lending .cr-hero-inner,
  .page-real-estate .cr-hero-inner,
  .page-energy .cr-hero-inner,
  .page-labs .cr-hero-inner,
  .page-consulting .cr-hero-inner,
  .page-usda .cr-hero-inner {
    margin-inline: auto;
    text-align: center;
  }

  .page-lending .cr-hero-copy,
  .page-real-estate .cr-hero-copy,
  .page-energy .cr-hero-copy,
  .page-labs .cr-hero-copy,
  .page-consulting .cr-hero-copy,
  .page-usda .cr-hero-copy {
    margin-inline: auto;
  }

  .page-lending .cr-hero-actions,
  .page-lending .cr-hero-meta,
  .page-real-estate .cr-hero-actions,
  .page-real-estate .cr-hero-meta,
  .page-energy .cr-hero-actions,
  .page-energy .cr-hero-meta,
  .page-labs .cr-hero-actions,
  .page-labs .cr-hero-meta,
  .page-consulting .cr-hero-actions,
  .page-consulting .cr-hero-meta,
  .page-usda .cr-hero-actions,
  .page-usda .cr-hero-meta {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .cr-hero {
    padding-block: 4.75rem 3.5rem;
  }

  .cr-hero-title {
    font-size: clamp(2.6rem, 13vw, 4rem) !important;
    max-width: 12ch;
  }

  .cr-hero-copy {
    font-size: 1rem;
  }

  .cr-hero-actions a {
    width: 100%;
    min-width: 0;
  }

  .cr-hero-meta {
    gap: 0.75rem 1rem;
    justify-content: center;
  }
}
