/* Service chapters: an image-led opening and a compact, readable contents rail. */
.detail-hero, .accounting-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.detail-hero-photo, .accounting-hero-photo {
  position: absolute;
  z-index: -1;
  inset-block: 0;
  inset-inline-start: auto;
  inset-inline-end: 0;
  width: 45%;
  overflow: hidden;
}
.detail-hero-photo::after, .accounting-hero-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(38,30,45,.16), transparent 32%);
  content: '';
  pointer-events: none;
}
.detail-hero-photo img, .accounting-hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.detail-investment .detail-hero-photo img { object-position: 43% center; }
.detail-tax .detail-hero-photo img { object-position: 45% center; }
.accounting-hero-photo img { object-position: 42% center; }

/* Each service opens with its own visual composition. */
@media (min-width: 701px) {
  .detail-investment .detail-hero { background: #261e2d; }
  .detail-investment .detail-hero-photo { width: 100%; }
  .detail-investment .detail-hero-photo::after {
    background: linear-gradient(270deg, rgba(38,30,45,.96) 0%, rgba(38,30,45,.83) 43%, rgba(38,30,45,.12) 100%);
  }
  .detail-investment .detail-hero h1 { color: #faf7f2; }
  .detail-investment .detail-hero-lead { color: #e8e1e8; }
  .detail-investment .detail-hero .detail-kicker { color: #a5bbaa; }
  .detail-investment .detail-hero .detail-booking { background: #faf7f2; color: #261e2d; }

  .detail-tax .detail-hero-photo {
    inset-block: 34px 170px;
    inset-inline-end: var(--site-gutter);
    width: 39%;
    border: 10px solid #faf7f2;
    box-shadow: 0 26px 65px rgba(38,30,45,.13);
  }
  .detail-tax .detail-hero-photo::after { display: none; }
}

.detail-hero-inner, .accounting-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .83fr);
  grid-template-rows: minmax(450px, auto) auto;
  gap: 0;
  align-items: stretch;
  min-height: 0;
  padding-block: 32px 0;
}
.detail-hero-copy, .accounting-hero-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  padding: 42px clamp(28px, 5vw, 76px) 55px 0;
}
.detail-hero h1, .detail-investment .detail-hero h1, .detail-tax .detail-hero h1,
.accounting-hero h1 {
  max-width: 690px;
  font-size: clamp(49px, 4.5vw, 68px);
  line-height: 1.54;
}
.detail-hero-lead, .accounting-hero-lead { max-width: 620px; }
.detail-hero-index, .accounting-hero-index {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 0;
  margin: 0;
  padding: 0;
  background: #261e2d;
  color: #faf7f2;
  counter-reset: chapter-link;
}
.accounting-hero-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.detail-hero-index a, .accounting-hero-index a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 137px;
  padding: 19px 23px 21px;
  border: 0;
  border-inline-end: 1px solid rgba(250,247,242,.2);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.6;
  transition: background .25s ease, color .25s ease;
  counter-increment: chapter-link;
}
.detail-hero-index a:first-child, .accounting-hero-index a:first-child { border-top: 0; }
.detail-hero-index a:last-child, .accounting-hero-index a:last-child { border-inline-end: 0; }
.detail-hero-index a::before, .accounting-hero-index a::before {
  content: '0' counter(chapter-link);
  color: #a5bbaa;
  font: 500 13px/1.3 var(--display);
  direction: ltr;
}
.detail-hero-index a:hover, .accounting-hero-index a:hover {
  padding-inline: 23px;
  background: #3d3144;
  color: #fff;
  opacity: 1;
}
.detail-hero-index svg, .accounting-hero-index svg {
  position: absolute;
  inset-inline-end: 18px;
  inset-block-start: 18px;
  width: 17px;
  height: 17px;
  color: #a5bbaa;
}
.detail-about, .accounting-intro { padding-block-start: 105px; }

/* Give the supporting proof and process different silhouettes from the scope list. */
.detail-benefits-list, .accounting-benefits-grid { gap: 12px; }
.detail-benefits-list article, .accounting-benefits-grid article {
  min-height: 235px;
  padding: 27px 32px 35px;
  border: 1px solid rgba(38,30,45,.19);
  background: rgba(250,247,242,.53);
}
.detail-benefits-list article:nth-child(2), .accounting-benefits-grid article:nth-child(2),
.detail-benefits-list article:nth-child(3), .accounting-benefits-grid article:nth-child(3) {
  background: rgba(250,247,242,.22);
}
.detail-benefits-list h3, .accounting-benefits-grid h3 { margin-top: 24px; }
.detail-process-list, .accounting-process-steps { gap: 12px; }
.detail-process-list article, .accounting-process-steps article {
  min-height: 230px;
  padding: 30px;
  border: 1px solid currentColor;
}
.detail-process-list p { max-width: 580px; }
.accounting-process-steps article::before { display: none; }
.accounting-process-steps h3 { margin-top: 30px; }

@media (max-width: 1050px) {
  .detail-hero-inner, .accounting-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, .7fr);
    grid-template-rows: minmax(430px, auto) auto;
    gap: 0;
  }
  .detail-hero-copy, .accounting-hero-copy { padding-inline-end: 28px; }
  .detail-hero h1, .detail-investment .detail-hero h1, .detail-tax .detail-hero h1,
  .accounting-hero h1 { font-size: clamp(43px, 5vw, 57px); }
  .detail-hero-index a, .accounting-hero-index a { min-height: 135px; padding-inline: 16px; }
  .detail-hero-index a:hover, .accounting-hero-index a:hover { padding-inline: 16px; }
}

@media (max-width: 700px) {
  .detail-hero-photo, .accounting-hero-photo {
    inset: 0 0 auto;
    width: 100%;
    height: 235px;
  }
  .detail-hero-photo::after, .accounting-hero-photo::after { display: none; }
  .detail-hero-photo img, .accounting-hero-photo img { object-position: center 53%; }
  .detail-hero-inner, .accounting-hero-inner {
    display: block;
    min-height: 0;
    padding-block: 235px 0;
  }
  .detail-hero-copy, .accounting-hero-copy { padding: 48px 0 53px; }
  .detail-hero h1, .detail-investment .detail-hero h1, .detail-tax .detail-hero h1,
  .accounting-hero h1 { font-size: clamp(38px, 7.5vw, 52px); }
  .detail-hero-index, .accounting-hero-index {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-inline: calc(-1 * var(--site-gutter));
    padding-inline: var(--site-gutter);
  }
  .detail-hero-index a, .accounting-hero-index a {
    min-height: 115px;
    padding: 17px 12px 18px;
    border-bottom: 1px solid rgba(250,247,242,.2);
    font-size: 15px;
  }
  .detail-hero-index a:nth-child(2n), .accounting-hero-index a:nth-child(2n) { border-inline-end: 0; }
  .detail-hero-index a:hover, .accounting-hero-index a:hover { padding-inline: 12px; }
  .detail-hero-index svg, .accounting-hero-index svg { inset-inline-end: 9px; }
  .detail-benefits-list, .accounting-benefits-grid,
  .detail-process-list, .accounting-process-steps { gap: 8px; }
  .detail-benefits-list article, .accounting-benefits-grid article,
  .detail-process-list article, .accounting-process-steps article { min-height: 0; padding: 25px 23px 32px; }
  .detail-process-list article { grid-template-columns: 35px minmax(0, 1fr); gap: 8px 14px; }
}

@media (max-width: 380px) {
  .detail-hero-index a, .accounting-hero-index a { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .detail-hero-index a, .accounting-hero-index a { transition: none; }
}
