/* ==========================================================================
   SERVICE PAGES — dark 3D stage hero and kit stage (js/stage/*), on top of case.css.
   The stage is a dark viewport inset in the cream page, like a 3D viewport in a CAD app.
   ========================================================================== */
.svc-stage { position: relative; padding: 1.2rem 1.2rem 0; }
.svc-viewport {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 7.6rem);
  min-height: min(calc(100svh - 7.6rem), 100rem);
  border-radius: 2.4rem;
  color: #f5f5ed;
  background:
    radial-gradient(55% 65% at 74% 44%, rgba(250, 54, 0, 0.26), transparent 70%),
    radial-gradient(80% 60% at 85% 105%, rgba(255, 128, 48, 0.16), transparent 70%),
    linear-gradient(180deg, #141210 0%, #0b0a09 100%);
  box-shadow: 0 2px 4px rgba(20, 14, 10, 0.08), 0 40px 90px -50px rgba(20, 12, 6, 0.75);
}
.svc-stage[data-scene="terrain"] .svc-viewport {
  background:
    radial-gradient(70% 40% at 60% 52%, rgba(255, 120, 50, 0.32), transparent 70%),
    linear-gradient(180deg, #0b1020 0%, #1b1726 40%, #3a1f17 56%, #0d0b0a 100%);
}
.svc-canvas { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s var(--ease); }
[data-scene].is-live > .svc-canvas, [data-scene].is-live .svc-viewport > .svc-canvas { opacity: 1; }

/* legibility scrim behind the copy, plus a soft vignette */
.svc-viewport::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 8, 7, 0.86) 0%, rgba(9, 8, 7, 0.6) 30%, rgba(9, 8, 7, 0) 58%),
    linear-gradient(0deg, rgba(9, 8, 7, 0.55) 0%, rgba(9, 8, 7, 0) 26%),
    radial-gradient(130% 110% at 60% 45%, transparent 60%, rgba(0, 0, 0, 0.5) 100%);
}

/* ---------- copy ---------- */
.svc-copy { position: relative; z-index: 3; padding-top: 7.2rem; padding-bottom: 9.6rem; }
.svc-copy .case-label { color: rgba(245, 245, 237, 0.72); }
.svc-copy .case-title { color: #f5f5ed; max-width: 15.5ch; font-size: clamp(4rem, 5.6vw, 8rem); text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35); }
.svc-copy .case-lead { max-width: 54rem; margin-top: 2.4rem; color: rgba(245, 245, 237, 0.8); }
.svc-copy .case-links { margin-top: 3.2rem; }
.svc-copy .case-btn-brand:hover { background: #f5f5ed; border-color: #f5f5ed; color: #181818; }

/* ---------- viewfinder HUD ---------- */
.svc-hud { position: absolute; inset: 2rem; z-index: 2; pointer-events: none; color: rgba(245, 245, 237, 0.6); font-size: 1.1rem; letter-spacing: 0.12em; }
.svc-hud > i { position: absolute; width: 2.4rem; height: 2.4rem; border: 0 solid rgba(245, 245, 237, 0.4); }
.svc-hud > i:nth-of-type(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.svc-hud > i:nth-of-type(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.svc-hud > i:nth-of-type(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.svc-hud > i:nth-of-type(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.svc-hud-tr, .svc-hud-br { position: absolute; right: 3.6rem; display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; text-align: right; }
.svc-hud-tr { top: 1.4rem; }
.svc-hud-br { bottom: 1.4rem; }
.svc-hud b { font-weight: 500; color: #f5f5ed; }
.svc-hud .svc-rec { display: inline-flex; align-items: center; gap: 0.8rem; color: #f5f5ed; }
.svc-hud .svc-rec::before { content: ''; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: #fa3600; box-shadow: 0 0 12px 2px rgba(250, 54, 0, 0.7); animation: svc-blink 1.6s steps(1) infinite; }
@keyframes svc-blink { 50% { opacity: 0.15; } }
.svc-cross { position: absolute; left: 50%; top: 50%; width: 3.2rem; height: 3.2rem; transform: translate(-50%, -50%); opacity: 0.35; }
.svc-cross::before, .svc-cross::after { content: ''; position: absolute; background: #f5f5ed; }
.svc-cross::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.svc-cross::after { top: 50%; left: 0; right: 0; height: 1px; }

/* labels that follow points in the 3D scene (map pins) */
.svc-tag { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 0.6s var(--ease); will-change: transform; }
.is-live .svc-tag.on { opacity: 1; }
.svc-tag span { display: block; transform: translate(-50%, calc(-100% - 1.4rem)); padding: 0.7rem 1.1rem; border: 1px solid rgba(250, 54, 0, 0.7); border-radius: 0.4rem; background: rgba(12, 11, 10, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #f5f5ed; font-size: 1.1rem; letter-spacing: 0.12em; white-space: nowrap; }
.svc-tag small { display: block; margin-top: 0.3rem; font-size: 0.95rem; color: rgba(245, 245, 237, 0.62); }

/* scroll cue */
.svc-scroll { position: absolute; left: 50%; bottom: 2.4rem; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 1rem; transform: translateX(-50%); color: rgba(245, 245, 237, 0.6); font-size: 1.05rem; letter-spacing: 0.24em; pointer-events: none; }
.svc-scroll::after { content: ''; width: 1px; height: 4rem; background: linear-gradient(#f5f5ed, rgba(245, 245, 237, 0)); transform-origin: top; animation: svc-drop 2.2s var(--ease) infinite; }
@keyframes svc-drop { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- after the stage ---------- */
.svc-intro { padding: 5.6rem 0 2.4rem; }
.svc-intro .case-meta { margin-top: 0; }
.svc-intro .case-showcase { margin-top: 6.4rem; }

/* ---------- field kit stage (drone page): lens on the right, kit list on the left ---------- */
.svc-kit {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: 56rem;
  margin-top: 6.4rem;
  border-radius: 2rem;
  color: #f5f5ed;
  background:
    radial-gradient(45% 70% at 72% 50%, rgba(250, 54, 0, 0.22), transparent 70%),
    linear-gradient(180deg, #141210 0%, #0b0a09 100%);
}
.svc-kit::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(9, 8, 7, 0.82) 0%, rgba(9, 8, 7, 0.4) 36%, rgba(9, 8, 7, 0) 60%); }
.svc-kit-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 2.4rem; max-width: 46rem; padding: 4.8rem; }
.svc-kit-copy .case-kit-label { font-size: 1.15rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--content--brand); }
.svc-kit-copy h3 { font-size: clamp(2.8rem, 3vw, 4rem); line-height: 1.08; color: #f5f5ed; }
.svc-kit-item { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 1.6rem; align-items: baseline; padding: 1.6rem 1.8rem; border: 1px solid rgba(245, 245, 237, 0.14); border-radius: 1.2rem; background: rgba(245, 245, 237, 0.04); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.svc-kit-item span:first-child { grid-row: span 2; font-size: 1.15rem; color: var(--content--brand); }
.svc-kit-item b { font-weight: 500; font-size: 1.9rem; letter-spacing: -0.02em; color: #f5f5ed; }
.svc-kit-item span:last-child { font-size: 1.45rem; color: rgba(245, 245, 237, 0.66); }

/* ---------- small screens: subject on top, copy at the bottom ---------- */
@media (max-width: 767px) {
  .svc-stage { padding: 0.8rem 0.8rem 0; }
  .svc-viewport { justify-content: flex-end; border-radius: 1.6rem; min-height: calc(100svh - 7rem); }
  .svc-viewport::before {
    background:
      linear-gradient(0deg, rgba(9, 8, 7, 0.94) 0%, rgba(9, 8, 7, 0.78) 38%, rgba(9, 8, 7, 0) 66%),
      radial-gradient(130% 110% at 50% 30%, transparent 55%, rgba(0, 0, 0, 0.45) 100%);
  }
  .svc-copy { padding-top: 34vh; padding-bottom: 4.8rem; }
  .svc-copy .case-links { margin-top: 2.8rem; }
  .svc-copy .case-btn { flex: 1 1 auto; justify-content: center; }
  .svc-hud { inset: 1.2rem; }
  .svc-hud-br, .svc-cross, .svc-scroll { display: none; }
  .svc-hud-tr { right: 3rem; top: 1rem; }
  .svc-kit { min-height: 0; align-items: end; }
  .svc-kit::before { background: linear-gradient(0deg, rgba(9, 8, 7, 0.92) 0%, rgba(9, 8, 7, 0.65) 50%, rgba(9, 8, 7, 0) 80%); }
  .svc-kit-copy { padding: 28rem 2rem 2.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-hud .svc-rec::before, .svc-scroll::after { animation: none; }
}

/* ---------- where we work: nationwide, with the areas we cover on site ---------- */
.svc-reach { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.2rem; margin-bottom: 4rem; }
.svc-reach-label { font-size: 1.15rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--content--surface); }
.svc-reach-label + .svc-reach-pill { margin-left: -0.2rem; }
.svc-reach-all { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2rem; margin-right: 1.2rem; border-radius: 999px; background: var(--content--primary); color: #f5f5ed; font-size: 1.6rem; font-weight: 500; transition: background var(--dur-snap); }
.svc-reach-all:hover { background: var(--content--brand); }
.svc-reach-pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1.6rem; border: var(--size--border) solid var(--content--border); border-radius: 999px; font-size: 1.5rem; color: var(--content--primary); }
a.svc-reach-pill { border-color: var(--content--brand); color: var(--content--brand); transition: background var(--dur-snap), color var(--dur-snap); }
a.svc-reach-pill:hover, a.svc-reach-pill[aria-current] { background: var(--content--brand); color: #fff; }
@media (max-width: 767px) {
  .svc-reach { gap: 0.8rem; }
  .svc-reach-all { margin-right: 0; }
  .svc-reach-label { flex-basis: 100%; }
}
