/* Animated Audit / Build / Grow artwork (see service-art.js). The still image below
   is the fallback; the art covers it once the script has run. */
.service-hero__media.has-art {
  position: relative;
}

.has-art .service-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}

.service-art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.service-art__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side at 50% 55%, rgb(230 0 18 / 0.26), transparent 70%);
}

.service-art svg :where(*) {
  transform-box: fill-box;
  animation-duration: 9s;
  animation-iteration-count: infinite;
  animation-delay: var(--d, 0s);
  animation-play-state: running;
}

/* Home page panel: only the lit pillar moves. */
.pillars__panel[data-active='false'] .service-art svg :where(*) {
  animation-play-state: paused;
}

.sa-scan {
  animation-name: sa-scan;
  animation-timing-function: ease-in-out;
}
@keyframes sa-scan {
  0%, 100% { transform: translate(0, 0); }
  35% { transform: translate(-50px, -330px); }
  65% { transform: translate(60px, -180px); }
}

.sa-row {
  animation-name: sa-row;
  animation-duration: 6s;
}
@keyframes sa-row {
  0%, 100% { opacity: 0.35; }
  15%, 65% { opacity: 1; }
}

.sa-pulse {
  animation-name: sa-pulse;
  animation-duration: 2.4s;
  transform-origin: center;
}
@keyframes sa-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.025); }
}

.sa-slide {
  animation-name: sa-slide;
  animation-duration: 8s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes sa-slide {
  0% { opacity: 0; transform: translateX(var(--x)); }
  25%, 80% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateX(var(--x)); }
}

.sa-drop {
  animation-name: sa-drop;
  animation-duration: 8s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes sa-drop {
  0% { opacity: 0; transform: translateY(-50px); }
  15%, 85% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}

.sa-rise {
  animation-name: sa-rise;
  transform-origin: bottom;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes sa-rise {
  0% { transform: scaleY(0); }
  30%, 90% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}

.sa-draw {
  stroke-dasharray: 1;
  animation-name: sa-draw;
  animation-timing-function: ease-in-out;
}
@keyframes sa-draw {
  0%, 20% { stroke-dashoffset: 1; }
  55%, 90% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

.sa-head,
.sa-dot {
  animation-name: sa-after-draw;
}
@keyframes sa-after-draw {
  0%, 50% { opacity: 0; }
  58%, 90% { opacity: 1; }
  100% { opacity: 0; }
}
.sa-dot { transform-origin: center; }

@media (prefers-reduced-motion: reduce) {
  .service-art svg :where(*) { animation: none !important; }
}

/* Home page: scroll-driven Audit / Build / Grow (see pin() in service-art.js). */
@media (min-width: 901px) {
  .pillars-track {
    height: calc(var(--n, 3) * 100svh);
  }

  .pillars-track > .pillars {
    position: sticky;
    top: var(--header-h, 0px);
    min-height: calc(100svh - var(--header-h, 0px));
    padding-block: 0;
  }

  .pillars-track .pillars__preview {
    max-height: calc(100svh - var(--header-h, 0px) - 4rem);
  }

  .pillars-track .pillars__progress {
    display: none;
  }

  .pillars-track .pillars__item[data-active='true'] .index {
    color: var(--c-accent);
  }

  .pillars-pin__bar {
    position: absolute;
    right: 0;
    top: 15%;
    bottom: 15%;
    width: 2px;
    background: var(--c-line, #333);
  }

  .pillars-pin__bar i {
    display: block;
    height: 100%;
    background: var(--c-accent, #e60012);
    transform: scaleY(0);
    transform-origin: top;
    will-change: transform;
  }
}

/* Home panel: let the artwork breathe. The site's own overlay darkens the whole panel; here it only
   darkens the lower third behind the words, and the artwork is lifted so its lines read clearly. */
.pillars__photo.has-art::after {
  background: linear-gradient(transparent 0 52%, rgb(0 0 0 / 0.78) 78%, rgb(0 0 0 / 0.94));
}

.pillars__photo.has-art .service-art svg {
  filter: brightness(1.35) contrast(1.08);
}

.pillars__photo.has-art .service-art__glow {
  background: radial-gradient(closest-side at 50% 38%, rgb(230 0 18 / 0.3), transparent 75%);
}

/* "Every decision passes three tests": pulses of light along the lit side, glowing corners,
   a quieter centre, and scroll-driven pinning on wide screens (see triangle() in service-art.js). */
.approach__pulse {
  display: none;
  fill: #fff;
  filter: drop-shadow(0 0 8px #e60012) drop-shadow(0 0 16px #e60012);
}

.approach__pulse--tail {
  fill: #e60012;
  opacity: 0.8;
}

.approach[data-active='bx'] .approach__pulse--bx,
.approach[data-active='cx'] .approach__pulse--cx,
.approach[data-active='commerce'] .approach__pulse--commerce {
  display: inline;
}

.approach__vertex {
  transition: stroke var(--dur-base, 0.3s) ease, fill var(--dur-base, 0.3s) ease;
}

.approach[data-active='bx'] .approach__vertex--top,
.approach[data-active='bx'] .approach__vertex--left,
.approach[data-active='cx'] .approach__vertex--top,
.approach[data-active='cx'] .approach__vertex--right,
.approach[data-active='commerce'] .approach__vertex--left,
.approach[data-active='commerce'] .approach__vertex--right {
  stroke: #e60012;
  fill: #e60012;
  filter: drop-shadow(0 0 10px #e60012);
}

.approach__fill {
  animation: approach-breathe 5s ease-in-out infinite;
}

@keyframes approach-breathe {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

/* The lens text beside it already says who is lit, so the centre keeps just the question. */
.approach__centre-index,
.approach__centre-value {
  display: none;
}

.approach__lens {
  transition: opacity var(--dur-base, 0.3s) ease, transform var(--dur-slow, 0.7s) cubic-bezier(0.22, 1, 0.36, 1);
}

.approach__lens--bx[data-active='true'] { transform: translateX(-8px); }
.approach__lens--cx[data-active='true'] { transform: translateX(8px); }
.approach__lens--commerce[data-active='true'] { transform: translateY(6px); }

@media (min-width: 901px) {
  .approach-track > .approach {
    position: sticky;
    min-height: 0;
    padding-block: 2.5rem;
  }

  .approach-track .approach__progress,
  .approach-track .approach__hint {
    display: none;
  }

  .approach-pin__bar {
    position: absolute;
    right: 0;
    top: 12%;
    bottom: 12%;
    width: 2px;
    background: var(--c-line, #333);
  }

  .approach-pin__bar i {
    display: block;
    height: 100%;
    background: var(--c-accent, #e60012);
    transform: scaleY(0);
    transform-origin: top;
    will-change: transform;
  }
}

@media (prefers-reduced-motion: reduce) {
  .approach__fill { animation: none; }
  .approach__pulse { display: none !important; }
}

/* Home panel: the checkpoint columns only suit the wide banner; the panel shows the page and the magnifier. */
.pillars__photo .sa-row {
  display: none;
}

/* Hero that follows the menu (see hero() in service-art.js). */
.hero__device {
  position: relative;
}

.hero-glow {
  --gx: 50%;
  --gy: 50%;
  position: absolute;
  inset: -12% -10%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background: radial-gradient(closest-side at var(--gx) var(--gy), rgb(230 0 18 / 0.55), transparent 70%);
  transition: opacity 0.6s ease;
}

.hero__device[data-menu] .hero-glow {
  opacity: 0.9;
}

.hero__device .phone {
  will-change: transform;
}

.hero__device.hero-ping .phone__device {
  animation: hero-ping 1s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes hero-ping {
  0% { box-shadow: 0 0 0 0 rgb(230 0 18 / 0.7), 0 0 40px 4px rgb(230 0 18 / 0.5); }
  100% { box-shadow: 0 0 0 36px rgb(230 0 18 / 0), 0 0 0 0 rgb(230 0 18 / 0); }
}

.hero-spark {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 70;
  border-radius: 50%;
  pointer-events: none;
  background: #fff;
  box-shadow: 0 0 10px 3px rgb(230 0 18 / 0.9), 0 0 26px 8px rgb(230 0 18 / 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .hero__device.hero-ping .phone__device { animation: none; }
}
