/* Key Tower section counter — CSS-only, 2026-11-06
   Designed for the site's existing pagePiling .pp-tableCell elements.
   Does not change navigation, section transitions, or backgrounds. */
#pagepiling .section {
  --kt-count: "01 / 08";
  --kt-label: "HOME";
  --kt-progress: 12.5%;
  --kt-counter-ink: #f5fbff;
  --kt-counter-muted: rgba(220,239,250,.36);
  --kt-counter-accent: #59d9ff;
}
#pagepiling #section1 { --kt-count: "01 / 08"; --kt-label: "HOME"; --kt-progress: 12.5%; }
#pagepiling #section2 { --kt-count: "02 / 08"; --kt-label: "ABOUT US"; --kt-progress: 25%; }
#pagepiling #section3 { --kt-count: "03 / 08"; --kt-label: "CIVIL / ELECTRICAL"; --kt-progress: 37.5%; --kt-counter-ink: #263b4c; --kt-counter-muted: rgba(32,71,95,.24); --kt-counter-accent: #087da8; }
#pagepiling #section4 { --kt-count: "04 / 08"; --kt-label: "TOWER"; --kt-progress: 50%; }
#pagepiling #section5 { --kt-count: "05 / 08"; --kt-label: "SMALL CELL"; --kt-progress: 62.5%; }
#pagepiling #section6 { --kt-count: "06 / 08"; --kt-label: "TEST & MEASUREMENT"; --kt-progress: 75%; }
#pagepiling #section7 { --kt-count: "07 / 08"; --kt-label: "PROJECT MANAGEMENT"; --kt-progress: 87.5%; }
#pagepiling #section8 { --kt-count: "08 / 08"; --kt-label: "TRAINING / QUALIFICATIONS"; --kt-progress: 100%; }

/* Raised 20% of viewport height to stay above the visible bottom cutoff. */
/* Counter belongs to the same visible pagePiling content layer as the copy.
   It cannot get stranded behind the settled section as an external overlay can. */
#pagepiling .section .pp-tableCell { position: relative; }
#pagepiling .section .pp-tableCell::before,
#pagepiling .section .pp-tableCell::after {
  position: absolute;
  z-index: 20;
  display: block;
  pointer-events: none;
  user-select: none;
  box-sizing: border-box;
  white-space: nowrap;
  color: var(--kt-counter-ink);
  font-family: "Galano Classic", "Segoe UI", Arial, sans-serif;
  text-align: left;
  text-shadow: 0 1px 3px rgba(0,0,0,.12);
}
#pagepiling .section .pp-tableCell::before {
  content: var(--kt-count);
  left: var(--kt-content-left, clamp(35px,7vw,100px));
  bottom: calc(20px + 1vh);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.035em;
}
#pagepiling .section .pp-tableCell::after {
  content: var(--kt-label);
  left: calc(var(--kt-content-left, clamp(35px,7vw,100px)) + 96px);
  bottom: calc(20px + 1vh);
  width: 128px;
  padding-bottom: 8px;
  font-size: 9px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: .09em;
  background: linear-gradient(to right,
    var(--kt-counter-accent) 0 var(--kt-progress),
    var(--kt-counter-muted) var(--kt-progress) 100%)
    left bottom / 112px 2px no-repeat;
}
#pagepiling #section3 .pp-tableCell::before,
#pagepiling #section3 .pp-tableCell::after { text-shadow: none; }

@media (max-width:697px) {
  #pagepiling .section .pp-tableCell::before {
    left: var(--kt-content-left,20px);
    bottom: calc(14px + 1vh);
    font-size: 16px;
  }
  #pagepiling .section .pp-tableCell::after {
    left: calc(var(--kt-content-left,20px) + 78px);
    bottom: calc(13px + 1vh);
    width: 118px;
    font-size: 8px;
    padding-bottom: 7px;
    background-size: 97px 2px;
  }
}
