/* ==========================================================================
   LKP CONSTRUCTION LTD | Services page extensions
   Scoped additions only. Everything here is prefixed .sx- so css/style.css
   stays untouched. Same world: asphalt-black + hi-vis amber, setting-out lines.
   ========================================================================== */

/* ---- Page head ------------------------------------------------------------ */
/* the shared .lead caps at 40ch, which leaves this page's longer intro
   stacked into a narrow column beside a lot of empty measure */
.page-head .lead { max-width: 54ch; }

/* ---- Approach strip (sits under the page-head lead) ---------------------- */
.sx-approach {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: clamp(2rem, 5vw, 2.9rem);
}
.sx-approach > div {
  background: var(--bg);
  padding: 1.25rem 1.35rem;
  min-width: 0;
}
.sx-approach dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}
.sx-approach dd {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.55;
}
@media (min-width: 760px) {
  .sx-approach { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- Sector jump chips ---------------------------------------------------- */
.sx-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-block: clamp(1.4rem, 4vw, 2rem);
}
.sx-jump a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.55rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  transition: border-color .3s ease, color .3s ease, background-color .3s ease;
}
.sx-jump a i {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--amber);
}
.sx-jump a:hover { border-color: var(--amber); color: var(--amber); background: var(--amber-glow); }

/* ---- Named crews band ----------------------------------------------------- */
.sx-crews { background: var(--bg-deep); border-block: 1px solid var(--line); }
.sx-crews-head { max-width: 46rem; }
.sx-crews-head p { margin-top: 1rem; color: var(--ink-soft); }
.sx-crew-grid {
  display: grid;
  gap: 1rem;
  margin-top: clamp(1.7rem, 4vw, 2.6rem);
}
@media (min-width: 760px) {
  .sx-crew-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.sx-crew {
  position: relative;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3.5vw, 1.9rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color .3s ease, transform .4s var(--ease-out), background-color .3s ease;
}
/* surveyor setting-out corner marks, the same device as the hero frame */
.sx-crew::before,
.sx-crew::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--amber);
  opacity: 0.75;
  pointer-events: none;
  transition: opacity .3s ease;
}
.sx-crew::before {
  top: -1px; left: -1px;
  border-right: 0; border-bottom: 0;
  border-radius: var(--radius-lg) 0 0 0;
}
.sx-crew::after {
  bottom: -1px; right: -1px;
  border-left: 0; border-top: 0;
  border-radius: 0 0 var(--radius-lg) 0;
}
.sx-crew:hover { border-color: var(--amber); background: var(--surface-2); transform: translateY(-3px); }
.sx-crew:hover::before, .sx-crew:hover::after { opacity: 1; }
.sx-crew-ico { width: 30px; height: 30px; color: var(--amber); }
.sx-crew h3 { font-size: clamp(1.2rem, 1.02rem + 0.7vw, 1.45rem); }
.sx-crew p.sx-crew-meta {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: -0.45rem;
}
.sx-crew p.sx-crew-meta .tick { color: var(--amber); }
.sx-crew p { color: var(--ink-soft); font-size: 0.94rem; line-height: 1.6; }
.sx-crew p.sx-crew-kit {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: var(--amber);
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  margin-top: auto;
}

/* ---- Sector head (two-column on desktop) ---------------------------------- */
.sx-shead { display: grid; gap: 1rem; }
.sx-shead .sx-num {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--amber);
  margin-bottom: 0.8rem;
}
.sx-shead h2 { font-size: clamp(2rem, 1.3rem + 3.4vw, 3.4rem); }
.sx-shead p { color: var(--ink-soft); max-width: 56ch; }
.sx-shead p + p { margin-top: 0.9rem; }
@media (min-width: 900px) {
  .sx-shead {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
  }
}

/* ---- Capability groups ---------------------------------------------------- */
.sx-groups {
  display: grid;
  gap: 0.9rem;
  margin-top: clamp(1.7rem, 4vw, 2.3rem);
}
@media (min-width: 680px) { .sx-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) {
  .sx-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* the two longest lists fill the tail of their row rather than leaving a hole */
  .sx-group--wide { grid-column: span 3; }
  .sx-group--wide .sx-list { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2rem; }
  .sx-group--wide2 { grid-column: span 2; }
  .sx-group--wide2 .sx-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
}

.sx-group {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem 1.4rem;
  transition: border-color .3s ease, background-color .3s ease;
}
.sx-group:hover { border-color: var(--line-soft); background: var(--surface-2); }
.sx-group h3 {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--ink);
}
.sx-group h3 .n {
  flex: none;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--amber);
}

.sx-list { margin-top: 0.95rem; display: grid; gap: 0.5rem; }
.sx-list li {
  position: relative;
  padding-left: 1.05rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
  min-width: 0;
  overflow-wrap: break-word;
}
.sx-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--amber);
}
.sx-list li b { color: var(--ink); font-weight: 600; }
.sx-tag {
  display: inline-block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid color-mix(in oklch, var(--amber) 42%, transparent);
  border-radius: 100px;
  padding: 0.1rem 0.5rem;
  margin-left: 0.35rem;
  white-space: nowrap;
}

/* ---- Solar panel ---------------------------------------------------------- */
.sx-solar {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4.5vw, 2.8rem);
  margin-top: clamp(1.7rem, 4vw, 2.3rem);
}
.sx-solar-rules { position: absolute; inset: 0; pointer-events: none; }
.sx-solar-rules svg { width: 100%; height: 100%; }
.sx-solar-rules path { stroke: var(--amber); stroke-width: 1; fill: none; opacity: 0.14; }
.sx-solar-inner { position: relative; z-index: 2; }
.sx-solar h3 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.1rem); }
.sx-solar-inner > p { margin-top: 0.9rem; color: var(--ink-soft); max-width: 62ch; }
.sx-solar .sx-list { margin-top: 1.4rem; }
.sx-solar .svc-cta { margin-top: 1.6rem; }
@media (min-width: 780px) {
  .sx-solar .sx-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem 2rem; }
}

/* ---- Rail note ------------------------------------------------------------ */
.sx-rail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2.1rem);
  margin-top: clamp(1.7rem, 4vw, 2.3rem);
}
.sx-rail .sx-rail-meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sx-rail .sx-rail-meta .tick { color: var(--amber); }
.sx-rail h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
.sx-rail p { margin-top: 0.85rem; color: var(--ink-soft); max-width: 62ch; }
.sx-rail .svc-cta { margin-top: 1.4rem; }

/* ---- Partnership route ---------------------------------------------------- */
.sx-partner {
  display: grid;
  gap: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4.5vw, 3rem);
}
.sx-partner h2 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); max-width: 20ch; }
.sx-partner p { margin-top: 0.9rem; color: var(--ink-soft); max-width: 52ch; }
.sx-partner-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-self: end; }
@media (min-width: 900px) {
  .sx-partner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
  }
  .sx-partner-actions { justify-content: flex-end; }
}

/* ---- Sector block spacing (page-local) ------------------------------------ */
.sx-block {
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.6rem, 6vw, 4.2rem);
  scroll-margin-top: 96px;
}
.sx-block:last-of-type { border-bottom: 0; }
.sx-block .svc-cta { margin-top: 1.5rem; }

/* ==========================================================================
   EVIDENCE LAYER
   Added because the page was previously a wall of unevidenced bullets: no
   photograph, no credential, no number. Everything below is either a real
   LKP photograph from their own project gallery, or an openly empty slot.
   ========================================================================== */

/* ---- The prequalification pack -------------------------------------------
   Replaces the old .sx-creds / .sx-cred credentials card and its collapsed
   "six things this page does not claim" accordion.

   The old block named the checklist a QS runs and then left every box empty
   behind a plus-toggle, so its best structural idea read as an inventory of
   missing evidence. This version puts every line of the pack on the page, in
   one open datasheet, with three honest states:

     .pq--fact   answered here, value plus its source
     .pq--ask    a document that lives on a certificate: the row says what to
                 ask for, and its checkbox feeds the copy-the-list tool
     .pq--none   verified as not published, stated on the row

   Companies House is demoted from a headline group to a per-row source tag
   plus one source strip at the foot.
   -------------------------------------------------------------------------- */
.sx-pqq {
  position: relative;
  isolation: isolate;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: clamp(1.8rem, 4.5vw, 2.6rem);
}
/* setting-out rules, the same survey grid the rest of the site uses */
.sx-pqq-rules {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.55;
  pointer-events: none;
}
.sx-pqq-rules svg { width: 100%; height: 100%; display: block; }
.sx-pqq-rules path {
  fill: none;
  stroke: var(--line-soft);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.sx-pqq-head {
  padding: clamp(1.2rem, 3.5vw, 1.85rem) clamp(1.15rem, 3.5vw, 1.9rem);
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
}
.sx-pqq-head h2 {
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.7rem);
  line-height: 1.15;
  color: var(--ink);
}
.sx-pqq-lead {
  margin-top: 0.8rem;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.62;
  max-width: 72ch;
  overflow-wrap: break-word;
}
/* the argument, not an ornament: a vertical rule, never a leading dash */
.sx-pqq-lead--point {
  margin-top: 1rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--amber);
  color: var(--ink);
  font-weight: 500;
}

.sx-pqq-tally {
  margin-top: clamp(1.1rem, 3vw, 1.5rem);
  display: grid;
  gap: 0.5rem 1rem;
  border-top: 1px solid var(--line);
  padding-top: clamp(0.9rem, 2.5vw, 1.15rem);
}
.sx-pqq-tally li {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  min-width: 0;
}
.sx-pqq-tally b {
  font-family: var(--mono);
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
  font-weight: 700;
  line-height: 1;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
  flex: none;
  min-width: 1.7em;
}
.sx-pqq-tally span {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--muted);
  min-width: 0;
}
@media (min-width: 620px) {
  .sx-pqq-tally { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sx-pqq-tally li { display: block; }
  .sx-pqq-tally b { min-width: 0; }
  .sx-pqq-tally span { display: block; margin-top: 0.3rem; }
}

.sx-pqq-body {
  padding: clamp(1.15rem, 3.5vw, 1.7rem);
  display: grid;
  gap: clamp(1.4rem, 4vw, 2rem);
}
.pq-group { min-width: 0; }
.pq-group-h {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 1.02rem;
  line-height: 1.2;
  color: var(--ink);
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}
.pq-group-h .n {
  flex: none;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--amber);
}

.pq-list { margin-top: 0.85rem; display: grid; gap: 0.5rem; }

/* one row of the datasheet */
.pq {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.3rem 0.65rem;
  padding: 0.68rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  min-width: 0;
}
.pq-pick   { grid-column: 1; grid-row: 1; }
.pq-name   { grid-column: 2; grid-row: 1; }
.pq-state  { grid-column: 3; grid-row: 1; }
.pq-body   { grid-column: 2 / -1; grid-row: 2; display: grid; gap: 0.3rem; min-width: 0; }

@media (min-width: 900px) {
  .pq {
    grid-template-columns: 26px minmax(180px, 232px) minmax(0, 1fr) auto;
    gap: 0.3rem 1rem;
    padding: 0.72rem 1rem;
  }
  .pq-body  { grid-column: 3; grid-row: 1; }
  .pq-state { grid-column: 4; grid-row: 1; }
}

.pq--fact { border-color: color-mix(in oklch, var(--amber) 26%, transparent); }
.pq--ask  { border-style: dashed; }
.pq--none { border-color: var(--line); background: var(--bg-deep); }

.pq-name {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: break-word;
}
.pq-value {
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: break-word;
}
.pq--none .pq-value { color: var(--muted); }
.pq-note {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 72ch;
  min-width: 0;
  overflow-wrap: break-word;
}
.pq-note a { color: var(--ink-soft); border-bottom: 1px solid color-mix(in oklch, var(--amber) 55%, transparent); }
.pq-note a:hover { color: var(--amber); border-color: var(--amber); }
.pq-src {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 0;
  overflow-wrap: break-word;
}

.pq-state {
  justify-self: end;
  font-family: var(--mono);
  font-size: 0.57rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 100px;
  padding: 0.16rem 0.52rem;
  margin-top: 0.06rem;
}
.pq--fact .pq-state { color: var(--amber); border: 1px solid color-mix(in oklch, var(--amber) 42%, transparent); }
.pq--ask  .pq-state { color: var(--ink-soft); border: 1px dashed color-mix(in oklch, var(--muted) 52%, transparent); }
.pq--none .pq-state { color: var(--muted); border: 1px solid var(--line); background: var(--surface); }

/* the marker column: a filled setting-out square when answered, a nil mark
   when verified absent, a real checkbox when the line is one you request */
.pq-pick {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-top: -3px;
  flex: none;
}
.pq-pick--dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--amber);
}
.pq-pick--void::before {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 1px;
  border: 1px solid var(--muted);
}
.pq-pick--void::after {
  content: '';
  position: absolute;
  width: 13px;
  height: 1px;
  background: var(--muted);
  transform: rotate(-45deg);
}
.pq-pick input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.pq-pick label {
  display: block;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--muted);
  border-radius: 2px;
  pointer-events: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.pq-pick input:checked + label { background: var(--amber); border-color: var(--amber); }
.pq-pick input:checked + label::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 47%;
  width: 4px;
  height: 8px;
  border: solid var(--amber-ink);
  border-width: 0 1.8px 1.8px 0;
  transform: translate(-50%, -58%) rotate(45deg);
}
.pq-pick input:hover + label { border-color: var(--amber); }
.pq-pick input:focus-visible + label { outline: 2px solid var(--amber); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .pq-pick label { transition: none; } }
.pq-vh {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
/* without JS the copy tool cannot work, so the ticks are not offered */
html:not(.js) .pq-pick input,
html:not(.js) .pq-pick label { display: none; }
html:not(.js) .pq--ask .pq-pick::before {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 1px;
  border: 1px dashed var(--muted);
}

.sx-pqq-foot {
  padding: clamp(1.1rem, 3.5vw, 1.6rem) clamp(1.15rem, 3.5vw, 1.9rem);
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  display: grid;
  gap: 1rem;
}
.sx-pqq-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; }
.sx-pqq-copy[hidden] { display: none !important; }
.sx-pqq-copy svg { width: 15px; height: 15px; flex: none; }
.sx-pqq-status {
  flex-basis: 100%;
  min-height: 1.1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.4;
  color: var(--amber);
  min-width: 0;
  overflow-wrap: break-word;
}
.sx-pqq-source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.9rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  min-width: 0;
}
.sx-pqq-source a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 32px;
  color: var(--ink-soft);
  border-bottom: 1px solid color-mix(in oklch, var(--amber) 45%, transparent);
  overflow-wrap: break-word;
}
.sx-pqq-source a b { color: var(--amber); font-weight: 500; }
.sx-pqq-source a svg { width: 11px; height: 11px; flex: none; }
.sx-pqq-source a:hover { color: var(--amber); border-color: var(--amber); }

/* ---- Photographic evidence figures ---------------------------------------- */
.sx-media {
  display: grid;
  gap: 0.9rem;
  margin-top: clamp(1.6rem, 4vw, 2.3rem);
}
@media (min-width: 760px) { .sx-media--two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.sx-fig {
  position: relative;
  min-width: 0;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sx-fig img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  background: var(--bg-deep);
}
.sx-fig figcaption {
  padding: 0.95rem 1.05rem 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.87rem;
  line-height: 1.55;
  color: var(--ink-soft);
  flex: 1;
}
.sx-fig figcaption b {
  display: block;
  font-family: var(--mono);
  font-size: 0.61rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.5rem;
}
/* provenance stamp, so a reader can tell whose photograph this is */
.sx-fig-stamp {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.57rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  background: oklch(0.15 0.008 255 / 0.86);
  border: 1px solid color-mix(in oklch, var(--amber) 40%, transparent);
  border-radius: 100px;
  padding: 0.16rem 0.55rem;
}

/* the deliberately empty plate, where LKP has no photograph to show */
.sx-fig--empty { border-style: dashed; }
.sx-fig-empty {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 11px, oklch(0.60 0.012 255 / 0.07) 11px 22px),
    var(--bg-deep);
}
.sx-fig-empty span {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.8;
}

/* ---- Crew cards, now carrying a photograph -------------------------------- */
.sx-crew { padding: 0; gap: 0; overflow: visible; }
.sx-crew-fig { margin: 0; position: relative; }
.sx-crew-fig img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
  background: var(--bg-deep);
}
.sx-crew-fig figcaption {
  padding: 0.85rem clamp(1.25rem, 3.5vw, 1.7rem) 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}
.sx-crew-body {
  padding: clamp(1.25rem, 3.5vw, 1.7rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}
.sx-crew-body p.sx-crew-kit { margin-top: auto; }

/* ---- Rail: declared gap panel --------------------------------------------- */
.sx-rail-quote {
  margin-top: 1.1rem;
  padding: 0.9rem 1.05rem;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.sx-rail-quote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.sx-rail-grid { display: grid; gap: 1.1rem; margin-top: clamp(1.6rem, 4vw, 2.3rem); }
@media (min-width: 860px) {
  .sx-rail-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; }
}
.sx-rail-grid .sx-rail { margin-top: 0; }
.sx-rail-grid .sx-media { margin-top: 0; }

/* ---- Ask block (replaces the unsourced subcontract offer) ------------------ */
.sx-ask {
  display: grid;
  gap: 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4.5vw, 2.6rem);
}
.sx-ask h2 { font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.1rem); max-width: 22ch; }
.sx-ask > div > p { margin-top: 0.9rem; color: var(--ink-soft); max-width: 56ch; }
.sx-ask ul { margin-top: 1.1rem; display: grid; gap: 0.5rem; }
.sx-ask li {
  position: relative;
  padding-left: 1.05rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
  overflow-wrap: break-word;
}
.sx-ask li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--amber);
}
.sx-ask-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 900px) {
  .sx-ask { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
}

/* ---- Small-screen safety -------------------------------------------------- */
@media (max-width: 420px) {
  .pq { padding: 0.6rem 0.65rem; gap: 0.28rem 0.5rem; }
  .pq-state { font-size: 0.54rem; padding: 0.14rem 0.42rem; }
  .sx-jump a { font-size: 0.87rem; padding-inline: 0.85rem; }
}
.sx-media--single { max-width: 780px; margin-inline: auto; }


/* ==========================================================================
   DELIVERED WORK: the proof band that sits above the credentials card.
   Three of LKP's own photographs, each wired to the scope codes it evidences,
   so the capability lists below are read as a description of work already
   done rather than a menu. Nothing here claims a client, a value or a date,
   because none of those are on the record we are allowed to print from.
   ========================================================================== */
.sx-proof {
  position: relative;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-top: clamp(1.8rem, 4.5vw, 2.6rem);
}
/* surveyor setting-out corner marks, same device as the crew cards */
.sx-proof::before,
.sx-proof::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--amber);
  opacity: 0.8;
  pointer-events: none;
}
.sx-proof::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-radius: var(--radius-lg) 0 0 0; }
.sx-proof::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-radius: 0 0 var(--radius-lg) 0; }

.sx-proof-head { padding: clamp(1.3rem, 3.5vw, 1.9rem) clamp(1.15rem, 3.5vw, 1.9rem) 0; }
.sx-proof-head h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.35rem, 1.05rem + 1.35vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.sx-proof-head p {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 66ch;
}

.sx-proof-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  margin-top: clamp(1.4rem, 3.5vw, 2rem);
}
@media (min-width: 860px) { .sx-proof-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.sx-proof-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
}
.sx-proof-fig { position: relative; margin: 0; }
.sx-proof-fig img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg-deep);
}
.sx-proof-body {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
  min-width: 0;
}
.sx-proof-sector {
  font-family: var(--mono);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--amber);
}
.sx-proof-sector .tick { color: var(--muted); }
.sx-proof-what { font-size: 0.88rem; line-height: 1.55; color: var(--ink-soft); }
.sx-proof-req {
  margin-top: auto;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.sx-proof-req span { color: var(--ink); }

.sx-proof-scope { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.sx-proof-scope-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.15rem;
}
.sx-proof-scope a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 30px;
  padding: 0 0.5rem;
  border: 1px solid color-mix(in oklch, var(--amber) 38%, transparent);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--amber);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.sx-proof-scope a:hover { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }

.sx-proof-foot {
  display: grid;
  gap: 1rem;
  padding: clamp(1.1rem, 3.5vw, 1.5rem) clamp(1.15rem, 3.5vw, 1.9rem);
}
.sx-proof-foot-text { font-size: 0.9rem; line-height: 1.6; color: var(--muted); max-width: 62ch; }
.sx-proof-foot-text b { color: var(--ink); font-weight: 600; }
.sx-proof-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.sx-proof-verify {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--bg);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  transition: border-color .3s ease, color .3s ease;
}
.sx-proof-verify b { color: var(--ink); font-weight: 500; letter-spacing: 0.02em; }
.sx-proof-verify svg { width: 12px; height: 12px; flex: none; }
.sx-proof-verify:hover { border-color: var(--amber); color: var(--amber); }
.sx-proof-verify:hover b { color: var(--amber); }
@media (min-width: 900px) {
  .sx-proof-foot { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(1.5rem, 4vw, 3rem); }
}

/* landing target: clicking a scope code from the proof band should say so */
.sx-group[id] { scroll-margin-top: 6.5rem; }
.sx-group[id]:target {
  border-left: 2px solid var(--amber);
  padding-left: 0.9rem;
  background: linear-gradient(90deg, var(--amber-glow), transparent 55%);
}

@media (max-width: 420px) {
  .sx-proof-scope a { min-width: 38px; }
  .sx-proof-verify { font-size: 0.66rem; padding-inline: 0.8rem; }
}
