/* Services page only — hero contour + inverted Our Approach.
   Linked exclusively from services.html; does not alter shared tokens. */

/* -------------------------------------------------------------------------- */
/* Section 01 — Services hero abstract ceramic treatment                      */
/* -------------------------------------------------------------------------- */

#services {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Soft warm/cool accent washes — max ~6% opacity, right-weighted */
#services::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 58% at 86% 38%, rgba(194, 82, 22, 0.055), transparent 68%),
    radial-gradient(ellipse 36% 48% at 92% 72%, rgba(8, 31, 50, 0.045), transparent 70%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 42%, #000 58%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 42%, #000 58%, #000 100%);
}

/* Engraved ceramic contour — concentrated in the rightmost ~55% */
#services::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    url("/artwork/services-hero-contour.svg") right center / min(62vw, 760px) auto no-repeat;
  opacity: 0.17;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 38%, rgba(0, 0, 0, 0.35) 48%, #000 58%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 38%, rgba(0, 0, 0, 0.35) 48%, #000 58%, #000 100%);
}

@media (max-width: 1100px) {
  #services::before {
    background:
      radial-gradient(ellipse 40% 54% at 88% 36%, rgba(194, 82, 22, 0.04), transparent 68%),
      radial-gradient(ellipse 34% 46% at 94% 70%, rgba(8, 31, 50, 0.035), transparent 70%);
    mask-image: linear-gradient(90deg, transparent 0%, transparent 48%, #000 62%, #000 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 48%, #000 62%, #000 100%);
  }

  #services::after {
    background-size: min(52vw, 620px) auto;
    opacity: 0.11;
    mask-image: linear-gradient(90deg, transparent 0%, transparent 48%, rgba(0, 0, 0, 0.3) 56%, #000 68%, #000 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 48%, rgba(0, 0, 0, 0.3) 56%, #000 68%, #000 100%);
  }
}

@media (max-width: 900px) {
  #services::before {
    opacity: 0.7;
    mask-image: linear-gradient(90deg, transparent 0%, transparent 52%, #000 70%, #000 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 52%, #000 70%, #000 100%);
  }

  #services::after {
    background-size: min(48vw, 520px) auto;
    opacity: 0.105;
    mask-image: linear-gradient(90deg, transparent 0%, transparent 52%, rgba(0, 0, 0, 0.28) 60%, #000 74%, #000 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 52%, rgba(0, 0, 0, 0.28) 60%, #000 74%, #000 100%);
  }
}

@media (max-width: 700px) {
  /* Upper-right concentration; suppress colour accents for readability */
  #services::before {
    background: none;
  }

  #services::after {
    background-position: 118% -8%;
    background-size: min(78vw, 420px) auto;
    opacity: 0.07;
    mask-image: linear-gradient(135deg, transparent 0%, transparent 42%, rgba(0, 0, 0, 0.25) 58%, #000 78%);
    -webkit-mask-image: linear-gradient(135deg, transparent 0%, transparent 42%, rgba(0, 0, 0, 0.25) 58%, #000 78%);
  }
}

/* -------------------------------------------------------------------------- */
/* Section 03 — Our Approach inverted dark composition                        */
/* Colour treatment only; layout, typography sizes and accordion logic intact */
/* -------------------------------------------------------------------------- */

/* Match/exceed shared porcelain selector specificity */
main > section.steps#approach:not(.hero-track):not(#about):not(#stewardship) {
  background: #101116;
  box-shadow: none;
  color: #f5f5f7;
  position: relative;
  isolation: isolate;
}

/* Subtle surface grain ≤ 3% */
#approach::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  background: url("/artwork/porcelain-grain.png") 0 0 / 128px 128px repeat;
}

#approach > * {
  position: relative;
  z-index: 1;
}

#approach .eyebrow {
  color: #b8bbc3;
}

#approach h2 {
  color: #f5f5f7;
}

#approach div.steps {
  border-top-color: #34363e;
}

#approach details {
  border-bottom-color: #34363e;
}

#approach summary {
  color: #f5f5f7;
}

#approach summary:after {
  color: #b8bbc3;
}

#approach details p,
main > section#approach details p {
  color: #b8bbc3;
}

/* Vertical timeline */
#approach details:before {
  border-left-color: #50535d;
}

/* Inactive markers */
#approach details:after {
  border-color: #9296a1;
  background: transparent;
}

/* Active / expanded marker */
#approach details[open]:after {
  background: #e28b52;
  border-color: #e28b52;
}

#approach summary:focus-visible {
  outline-color: #e28b52;
}
