/* ==========================================================================
   SECTION: SCOPE — the 10-point checklist that ticks itself off on scroll.
   .is-checked is added per item by js/motion.js, staggered.
   The photo now sits behind the whole section rather than in a panel.
   ========================================================================== */

.scope {
  position: relative;
  isolation: isolate;
  background: var(--c-base);
  overflow: hidden;
}

/* Background photo — now clearly visible rather than a faint texture. */
.scope::before {
  content: '';
  position: absolute; inset: 0;
  z-index: -2;
  background: url('../../images/photos/scope.jpg') center/cover no-repeat;
  opacity: 0.65;
}
/* Lighter scrim: enough to hold the copy on the left, thin enough on the right
   that the photo actually reads. */
.scope::after {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(11,31,23,0.86) 0%, rgba(11,31,23,0.55) 50%, rgba(11,31,23,0.30) 100%),
    linear-gradient(to bottom, var(--c-base) 0%, rgba(11,31,23,0) 16%, rgba(11,31,23,0) 84%, var(--c-base) 100%);
}

/* The section sits on the dark base, but .t-h2 defaults to dark ink — which
   rendered this heading invisible against it. */
.scope__intro .t-h2 { color: var(--c-surface); }

.scope__layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--sp-16);
  align-items: start;
}

.scope__intro { position: sticky; top: calc(var(--nav-h) + var(--sp-8)); }
.scope__intro p { color: var(--c-muted-d); }

/* No italics on this site. The emphasis on "not" still has to land, so it
   carries through weight and colour instead of a slant. */
.scope__intro em {
  font-style: normal;
  font-weight: var(--w-bold);
  color: var(--c-surface);
}

.scope__closer {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-line-d);
  font-size: var(--fs-small);
  font-weight: var(--w-bold);
  color: var(--c-energy);
}

/* --- The checklist: one column, hairline-separated (the original pattern) ---
   One list, not two. Most of the scope is identical for a house and a plant,
   so splitting it duplicated seven lines to isolate five. The handful that
   genuinely differ carry a tag instead.
   --------------------------------------------------------------------------- */

.scope__list { display: grid; gap: 1px; background: var(--c-line-d); }

/* Translucent, so the background photo still reads through the list instead of
   being boxed out by it. */
.scope__item {
  display: flex; align-items: flex-start; gap: var(--sp-4);
  background: rgba(11,31,23,0.78);
  padding: var(--sp-5) var(--sp-4);
  transition: background-color 240ms var(--ease);
}
.scope__item:hover { background: rgba(18,46,34,0.92); }

/* The tick box */
.scope__check {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border: 1.5px solid rgba(247,245,240,0.28);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
  transition: background-color 320ms var(--ease), border-color 320ms var(--ease);
}
.scope__check svg { width: 13px; height: 13px; }
.scope__check path {
  fill: none; stroke: var(--c-base); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 24; stroke-dashoffset: 24;
  transition: stroke-dashoffset 380ms var(--ease);
}

.scope__item.is-checked .scope__check {
  background: var(--c-energy);
  border-color: var(--c-energy);
}
.scope__item.is-checked .scope__check path { stroke-dashoffset: 0; }

.scope__text {
  font-size: var(--fs-body);
  line-height: 1.5;
  color: rgba(247,245,240,0.68);
  transition: color 320ms var(--ease);
}
.scope__item.is-checked .scope__text { color: var(--c-surface); }

/* Applicability tag. Only on the lines that DON'T apply to everyone — an
   untagged line is included for every customer, which keeps the list reading
   as one scope rather than two merged ones. */
.scope__tag {
  flex-shrink: 0;
  margin-left: auto;
  align-self: center;
  padding: 3px 9px;
  border: 1px solid currentColor;
  border-radius: 20px;
  font-size: 10px;
  font-weight: var(--w-bold);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  opacity: 0.85;
}
/* --c-primary is too dark to read on this section's background, so the homes
   tag uses a lightened green. Amber matches the industry accent used in the
   solutions band, so the pairing stays consistent across the page. */
.scope__tag--home     { color: #6FC493; }
.scope__tag--industry { color: var(--c-energy); }

@media (max-width: 900px) {
  .scope__layout { grid-template-columns: 1fr; gap: var(--sp-10); }
  .scope__intro { position: static; }
}

/* Narrow phones: the tag stops fitting beside the text, so let it drop under. */
@media (max-width: 480px) {
  .scope__item { flex-wrap: wrap; }
  .scope__tag { margin-left: calc(24px + var(--sp-4)); }
}
