html {
  scroll-padding-top: 96px;
}

.home-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--brand-navy);
  color: #fffaf4;
}

.home-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 45%) minmax(0, 1fr);
  align-items: center;
  min-height: clamp(470px, 41vw, 625px);
  padding-block: clamp(48px, 5vw, 76px);
}

.home-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 6vw, 80px);
}

.home-intro-copy {
  position: relative;
  z-index: 1;
}

.home-intro-copy::before {
  display: block;
  width: 44px;
  height: 2px;
  margin-bottom: 24px;
  background: #c49a77;
  content: "";
}

.home-intro-copy h1 {
  max-width: 18ch;
  margin-bottom: 22px;
  font-size: clamp(2.55rem, 4.75vw, 4.75rem);
  line-height: 1.02;
}

.home-intro-copy h1 span,
.home-intro-copy h1 em {
  display: block;
  text-wrap: balance;
}

.home-intro-copy h1 em {
  background: none;
  color: #e0bd9b;
}

.home-intro-copy p,
.home-detail-layout p {
  max-width: 52ch;
  font-size: clamp(1rem, 1.45vw, 1.15rem);
  color: var(--text);
}

.home-intro-copy p {
  max-width: 45ch;
  color: #dce3ed;
}

.home-intro-routes {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.home-intro-routes p {
  margin: 0;
}

.home-intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
}

.home-intro-services-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #e0bd9b;
  font-size: .875rem;
  font-weight: 750;
  text-underline-offset: .25em;
}

.home-intro-services-link:hover {
  color: #fffaf4;
}

.home-intro-services-link:focus-visible {
  outline: 2px solid #e0bd9b;
  outline-offset: 4px;
}

.home-intro-copy .btn,
.home-contact-layout .btn {
  gap: 14px;
}

.home-intro-copy .btn {
  background: #fffaf4;
  color: var(--brand-navy);
}

.home-intro-copy .btn::after,
.home-contact-layout .btn::after {
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  content: "";
}

.home-intro-copy .btn:hover {
  background: #eee4d8;
  box-shadow: none;
}

.home-intro-copy .btn:focus-visible {
  outline: 2px solid #e0bd9b;
  outline-offset: 4px;
}

.home-intro-image {
  position: absolute;
  inset: 0 0 0 40%;
  background:
    linear-gradient(90deg, #121f35 0%, rgb(18 31 53 / 85%) 13%, transparent 54%),
    linear-gradient(0deg, rgb(18 31 53 / 34%), transparent 38%),
    url('/assets/hero-human-judgment.webp') 58% center / cover no-repeat;
}

.home-services,
.home-method,
.home-about,
.home-contact {
  padding-block: clamp(36px, 5vw, 72px);
}

.home-services h2,
.home-method h2,
.home-detail-layout h2,
.home-contact h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.1vw, 3.6rem);
  line-height: 1.03;
}

.home-services-intro {
  max-width: 64ch;
  margin: 12px 0 0;
  color: var(--text);
  font-size: clamp(1rem, 1.45vw, 1.15rem);
}

.home-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  margin-top: 30px;
}

.home-service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(20px, 2.5vw, 34px);
  border: 1px solid #d4d5d5;
  border-block-start: 3px solid var(--service-accent);
  border-radius: 8px;
  background-color: var(--service-bg);
  color: var(--brand-navy);
  text-decoration: none;
}

.home-service-grow {
  --service-bg: #e8dace;
  --service-hover: #e2d2c4;
  --service-accent: #794a37;
}

.home-service-build {
  --service-bg: #d9e1ea;
  --service-hover: #d0dae6;
  --service-accent: #435b76;
}

.home-service-flow {
  --service-bg: #d8e3dc;
  --service-hover: #cfdcd3;
  --service-accent: #395b51;
}

.home-service-name {
  color: var(--service-accent);
  font-size: .875rem;
  font-weight: 850;
  letter-spacing: .09em;
}

.home-service h3 {
  margin: 12px 0 8px;
  font-size: clamp(1.4rem, 2.15vw, 2.05rem);
  line-height: 1.06;
}

.home-service p {
  margin-bottom: 22px;
  color: #435060;
}

.home-service-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #cdd1d1;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: .22em;
}

.home-service-link::after {
  width: 9px;
  height: 9px;
  margin-right: 4px;
  color: var(--service-accent);
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  content: "";
}

.home-service:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  background-color: var(--service-hover);
}

@media (hover: hover) and (pointer: fine) {
  .home-service:hover {
    background-color: var(--service-hover);
    box-shadow: 0 9px 22px rgb(18 31 53 / 9%);
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .home-service {
    transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
  }

  .home-service-link::after {
    transition: transform .2s ease;
  }

  .home-service:hover {
    transform: translateY(-3px);
  }

  .home-service:hover .home-service-link::after {
    transform: translateX(3px) rotate(45deg);
  }
}

.home-method {
  background: #202f45;
  color: #fffaf4;
}

.home-method-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 20px;
  color: #ecd0b5;
  font-weight: 750;
  text-underline-offset: .3em;
}

.home-method-link:hover {
  color: #fffaf4;
}

.home-method-link:focus-visible {
  outline: 2px solid #ecd0b5;
  outline-offset: 4px;
}

.home-method-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.home-method-steps li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 16px;
  padding-inline-end: clamp(20px, 3vw, 40px);
}

.home-method-steps li:not(:last-child)::after {
  position: absolute;
  inset: 21px 10px auto 54px;
  border-top: 1px solid #65758b;
  content: "";
}

.home-method-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #c49a77;
  border-radius: 50%;
  color: #ecd0b5;
  font-size: .8rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.home-method-steps h3 {
  margin: 0 0 5px;
  font-size: clamp(1.25rem, 2.1vw, 1.65rem);
  line-height: 1.15;
}

.home-method-steps p {
  max-width: 34ch;
  margin: 0;
  color: #d6dfeb;
}

.home-detail-layout {
  align-items: start;
}

.home-detail-layout p {
  margin-bottom: 8px;
}

.home-detail-layout .home-locations {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 750;
}

.home-contact {
  padding-block: clamp(36px, 4vw, 56px);
  background: #e8ebee;
}

.home-contact-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 36px;
}

.home-contact p {
  margin: 12px 0 0;
}

.home-footer-nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: 16px;
  margin-top: 8px;
  color: #c2cfe0;
  font-size: .78rem;
}

.home-footer-nav a,
.home-footer-email {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  text-underline-offset: .22em;
}

.home-footer-nav a {
  text-decoration: none;
}

.home-footer-nav a:hover,
.home-footer-nav a:focus-visible {
  color: #fffaf4;
  text-decoration: underline;
}

.home-footer-nav a:focus-visible,
.home-footer-email:focus-visible {
  outline: 2px solid #ecd0b5;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .home-intro-layout,
  .home-detail-layout,
  .home-services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-contact-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-footer-nav a,
  .home-footer-email {
    min-height: 44px;
  }

  .home-privacy-slot .mm-privacy-choice {
    position: static;
    min-height: 44px;
    margin-top: 8px;
    border-color: #7a8da5;
    background: transparent;
    color: #fffaf4;
    box-shadow: none;
    font-size: .8rem;
  }

  body .mm-consent {
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
  }

  .home-method-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    margin-top: 26px;
  }

  .home-method-steps li {
    grid-template-columns: 42px minmax(0, 1fr);
    padding-inline-end: 0;
  }

  .home-method-steps li:not(:last-child)::after {
    inset: 49px auto -15px 21px;
    border-top: 0;
    border-left: 1px solid #65758b;
  }

  .home-intro-layout {
    min-height: 0;
    padding-block: 32px 0;
  }

  .home-intro-copy::before { margin-bottom: 18px; }

  .home-intro-copy h1 {
    font-size: clamp(2.15rem, 8.5vw, 3.7rem);
  }

  .home-intro-image {
    position: relative;
    inset: auto;
    height: clamp(190px, 47vw, 280px);
    margin: 14px calc((100% - 100vw) / 2) 0;
    background:
      linear-gradient(180deg, #121f35, transparent 30%),
      url('/assets/hero-human-judgment.webp') center 49% / cover no-repeat;
  }

  .home-detail-layout { gap: 12px; }
}
