/* =================================================================
   Leaping Lemur Media — Service detail page
   Layered on style.css tokens. Namespaced .svcd-* to avoid collisions
   with the .services / .service-card rules used on listing pages.
   ================================================================= */

/* ---------- Scroll progress ---------- */
.svcd-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--mint));
  z-index: 200;
  transition: width 0.1s linear;
}

/* =================================================================
   HERO — clean white, text + photo
   ================================================================= */
.svcd-hero {
  position: relative;
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
  padding: clamp(36px, 4.5vw, 72px) 0 clamp(52px, 6.5vw, 96px);
  border-bottom: 1px solid var(--line-soft);
}
.svcd-hero-glow { position: absolute; border-radius: 50%; filter: blur(150px); z-index: 0; pointer-events: none; }
.svcd-hero-glow--a { width: 620px; height: 620px; top: -280px; right: -180px; background: rgba(46, 217, 189, 0.12); }
.svcd-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 46%);
  gap: clamp(36px, 5vw, 84px);
  align-items: center;
}

.svcd-breadcrumb {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--slate);
  margin-bottom: clamp(20px, 3vw, 32px);
}
.svcd-breadcrumb a { color: var(--slate); }
.svcd-breadcrumb a:hover { color: var(--ink); }
.svcd-breadcrumb .crumb-sep { opacity: 0.5; }
.svcd-breadcrumb .crumb-cur { color: var(--blue); }

.svcd-hero-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-variation-settings: "SOFT" 0, "WONK" 1;
  max-width: 16ch;
}
.svcd-hero-title em { font-style: italic; color: var(--blue); }
.svcd-hero-lead {
  margin-top: clamp(18px, 2.4vw, 28px);
  max-width: 520px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.62;
  color: var(--slate);
}
.svcd-hero-actions {
  margin-top: clamp(24px, 3vw, 36px);
  display: flex; align-items: center; gap: var(--space-5);
  flex-wrap: wrap;
}
.svcd-hero-trust {
  margin-top: clamp(26px, 3vw, 40px);
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--slate);
}
.svcd-hero-trust-dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--brand);
  box-shadow: 0 0 0 0 rgba(46, 217, 189, 0.5);
  animation: svcd-pulse-dot 2.4s ease-out infinite;
}
@keyframes svcd-pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(46, 217, 189, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(46, 217, 189, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 217, 189, 0); }
}

/* ghost button (dark backgrounds) — sticky CTA bar */
.svcd-btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.28); padding-left: 24px; }
.svcd-btn-ghost .btn-icon { background: rgba(255, 255, 255, 0.12); color: #fff; }
.svcd-btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
/* ghost button (light backgrounds) — hero secondary */
.svcd-btn-ghost-ink { background: transparent; color: var(--ink); border: 1px solid var(--line); padding-left: 24px; }
.svcd-btn-ghost-ink:hover { border-color: var(--ink); background: rgba(10, 74, 66, 0.04); }

/* hero photo */
.svcd-hero-visual { position: relative; z-index: 1; }
.svcd-hero-photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4 / 4.3;
  background: var(--navy);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -48px rgba(10, 74, 66, 0.45);
}
.svcd-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svcd-hero-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 47, 41, 0) 58%, rgba(6, 47, 41, 0.45) 100%);
}
.svcd-hero-photo-tag {
  position: absolute; z-index: 2;
  left: clamp(14px, 1.6vw, 20px); bottom: clamp(14px, 1.6vw, 20px);
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(6px);
  backdrop-filter: saturate(160%) blur(6px);
  color: var(--ink);
  padding: 8px 14px 8px 11px;
  border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
}
.svcd-hero-photo-tag svg { width: 16px; height: 16px; }

/* =================================================================
   Shared section heads / prose accents
   ================================================================= */
.svcd-title { color: var(--ink); }
.svcd-title em { font-style: italic; color: var(--blue); }
.svcd-prose > p {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.78;
  color: var(--slate);
}
.svcd-prose > p + p { margin-top: var(--space-5); }
.svcd-prose em { font-style: italic; }
.svcd-prose .ital-blue { font-style: italic; color: var(--blue); }

/* =================================================================
   OVERVIEW
   ================================================================= */
.svcd-overview { padding: var(--section-y) 0; }
.svcd-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 5vw, 88px);
  align-items: center;
}
.svcd-overview-copy .eyebrow { margin-bottom: var(--space-4); }
.svcd-overview-copy .svcd-title { font-size: var(--h-section); line-height: 0.96; letter-spacing: -0.02em; margin-bottom: var(--space-8); }
.svcd-overview-fig { margin: 0; }
.svcd-fig-frame {
  background: var(--navy);
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4 / 3.2;
  box-shadow: 0 40px 80px -50px rgba(10, 74, 66, 0.5);
}
.svcd-fig-frame img { width: 100%; height: 100%; object-fit: cover; }
.svcd-overview-fig figcaption {
  margin-top: var(--space-4);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--slate); text-align: left;
}

/* =================================================================
   PILLARS  (light mint band)
   ================================================================= */
.svcd-pillars { background: #e4f9f3; padding: var(--section-y) 0; }
.svcd-pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--grid-gap); }
.svcd-pillar {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  padding: clamp(26px, 2.4vw, 36px);
  display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.svcd-pillar:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -36px rgba(10, 74, 66, 0.32); }
.svcd-pillar-icon {
  width: 54px; height: 54px; border-radius: 16px;
  background: var(--cream); color: var(--ink);
  display: grid; place-items: center;
  margin-bottom: clamp(24px, 2.4vw, 34px);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.4s var(--ease-out);
}
.svcd-pillar:hover .svcd-pillar-icon { background: var(--ink); color: var(--brand); transform: rotate(-6deg); }
.svcd-pillar-icon svg { width: 26px; height: 26px; }
.svcd-pillar-title { font-size: clamp(22px, 1.8vw, 27px); line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); }
.svcd-pillar-desc { margin-top: var(--space-3); font-size: 15px; line-height: 1.6; color: var(--slate); }

/* =================================================================
   PROCESS  (dark gradient + animated steps)
   ================================================================= */
.svcd-process {
  position: relative; overflow: hidden;
  background: radial-gradient(130% 120% at 50% -10%, #0d6357 0%, #0a4a42 55%, #062f29 100%);
  color: #fff;
  padding: clamp(56px, 7vw, 104px) 0;
}
.svcd-process .wrap { position: relative; z-index: 2; }
.svcd-process .svcd-title { color: #fff; }
.svcd-process .svcd-title em { color: var(--teal); }
.svcd-process .section-head-aside { color: rgba(255, 255, 255, 0.72); }
.svcd-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--grid-gap); }
.svcd-step {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card);
  padding: clamp(22px, 1.8vw, 28px);
  display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease-out), border-color 0.3s ease, background-color 0.3s ease;
}
.svcd-step:hover { transform: translateY(-5px); border-color: rgba(46, 217, 189, 0.5); background: rgba(255, 255, 255, 0.05); }
.svcd-step-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(18px, 1.8vw, 26px); }
.svcd-step-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.5); }
.svcd-step-icon {
  width: 48px; height: 48px; border-radius: 13px;
  background: rgba(46, 217, 189, 0.12);
  border: 1px solid rgba(46, 217, 189, 0.28);
  display: grid; place-items: center; color: var(--teal);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.svcd-step:hover .svcd-step-icon { background: rgba(46, 217, 189, 0.2); box-shadow: 0 0 0 4px rgba(46, 217, 189, 0.08); }
.svcd-step-icon svg { width: 28px; height: 28px; }
.svcd-step-title { font-size: clamp(22px, 1.7vw, 26px); line-height: 1; letter-spacing: -0.02em; color: #fff; }
.svcd-step-desc { margin-top: var(--space-3); font-size: 14px; line-height: 1.58; color: rgba(255, 255, 255, 0.72); }

/* build icon animation (other process icons reuse keyframes from style.css) */
.ico-build .bld { fill: currentColor; transform-box: fill-box; transform-origin: center bottom; opacity: 0.5; animation: bld-rise 2.6s ease-in-out infinite; }
.ico-build .bld2 { animation-delay: 0.3s; }
.ico-build .bld3 { animation-delay: 0.6s; }
@keyframes bld-rise { 0%, 100% { transform: translateY(5px) scaleY(0.85); opacity: 0.45; } 50% { transform: translateY(0) scaleY(1); opacity: 1; } }

/* =================================================================
   DELIVERABLES
   ================================================================= */
.svcd-deliver { padding: var(--section-y) 0; }
.svcd-deliver-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.svcd-deliver-head { position: sticky; top: calc(var(--header-h) + 28px); }
.svcd-deliver-head .eyebrow { margin-bottom: var(--space-4); }
.svcd-deliver-head .svcd-title { font-size: var(--h-section); line-height: 0.96; letter-spacing: -0.02em; }
.svcd-deliver-lead { margin-top: var(--space-6); max-width: 420px; font-size: 16px; line-height: 1.66; color: var(--slate); }
.svcd-deliver-cta { margin-top: var(--space-8); }
.svcd-deliver-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius-card); overflow: hidden; }
.svcd-deliver-item {
  background: var(--cream-card);
  display: flex; align-items: flex-start; gap: 14px;
  padding: clamp(20px, 2vw, 28px);
  font-size: 16px; line-height: 1.5; color: var(--ink);
  transition: background-color 0.25s ease;
}
.svcd-deliver-item:hover { background: var(--cream); }
.svcd-check {
  flex: none; width: 28px; height: 28px; border-radius: 999px;
  background: var(--brand); color: var(--ink);
  display: grid; place-items: center; margin-top: 1px;
}
.svcd-check svg { width: 16px; height: 16px; }

/* =================================================================
   METRICS  (dark navy + count-up)
   ================================================================= */
.svcd-metrics { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: clamp(56px, 7vw, 96px) 0; }
.svcd-metrics .flow-glow--a { top: -120px; left: 80px; width: 420px; height: 240px; filter: blur(90px); background: rgba(127, 240, 223, 0.18); }
.svcd-metrics .flow-glow--b { bottom: -120px; right: 80px; width: 520px; height: 260px; filter: blur(90px); background: rgba(46, 217, 189, 0.26); }
.svcd-metric-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-10); }
.svcd-metric-num { font-family: var(--serif); font-size: clamp(46px, 5vw, 72px); line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
.svcd-metric-label { margin-top: var(--space-3); font-family: var(--mono); font-size: 12px; line-height: 1.45; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); max-width: 220px; }

/* =================================================================
   INDUSTRIES  (editorial index grid)
   ================================================================= */
.svcd-industries { padding: var(--section-y) 0; }
.svcd-spec-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-radius: 2px; overflow: hidden;
}
.svcd-spec {
  display: flex; align-items: baseline; gap: 16px;
  padding: clamp(20px, 2vw, 28px);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.1; letter-spacing: -0.01em; color: var(--ink);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.svcd-spec:hover { background: var(--ink); color: #fff; }
.svcd-spec:hover .svcd-spec-dot { color: var(--mint); }
.svcd-spec-dot { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--blue); flex: none; }
.svcd-spec:nth-child(3n) { border-right: 0; }
.svcd-spec-grid .svcd-spec:nth-last-child(-n+1) { border-bottom: 0; }

/* =================================================================
   AUDIENCE  (cream band)
   ================================================================= */
.svcd-audience { background: var(--cream-card); padding: var(--section-y) 0; }
.svcd-aud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--grid-gap); }
.svcd-aud {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  padding: clamp(26px, 2.4vw, 34px);
  display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.svcd-aud:hover { transform: translateY(-5px); box-shadow: 0 28px 56px -34px rgba(10, 74, 66, 0.28); }
.svcd-aud-icon {
  width: 50px; height: 50px; border-radius: 999px;
  background: var(--cream); color: var(--ink);
  display: grid; place-items: center; margin-bottom: clamp(22px, 2.2vw, 30px);
}
.svcd-aud-icon svg { width: 24px; height: 24px; }
.svcd-aud-title { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); }
.svcd-aud-desc { margin-top: var(--space-3); font-size: 15px; line-height: 1.6; color: var(--slate); }

/* =================================================================
   TESTIMONIALS
   ================================================================= */
.svcd-testi { padding: var(--section-y) 0; }
.svcd-testi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--grid-gap); }
.svcd-testi-card { min-height: 0; }
.svcd-testi-lead { grid-column: 1 / -1; }
.svcd-testi-lead .testi-quote { font-size: clamp(24px, 2.4vw, 34px); }

/* =================================================================
   FAQ
   ================================================================= */
.svcd-faq { padding: var(--section-y) 0; }
.svcd-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.svcd-faq-head { position: sticky; top: calc(var(--header-h) + 28px); }
.svcd-faq-head .eyebrow { margin-bottom: var(--space-4); }
.svcd-faq-head .svcd-title { font-size: var(--h-section); line-height: 0.96; letter-spacing: -0.02em; }
.svcd-faq-aside { margin-top: var(--space-6); max-width: 360px; font-size: 16px; line-height: 1.6; color: var(--slate); }
.svcd-faq-cta { margin-top: var(--space-8); }
.svcd-faq-list { border-top: 1px solid var(--line); }
.svcd-faq-item { border-bottom: 1px solid var(--line); }

/* =================================================================
   FINAL CTA  (reuses .cta from style.css)
   ================================================================= */
.svcd-cta .cta-title { max-width: 16ch; margin-inline: auto; }

/* =================================================================
   RELATED
   ================================================================= */
.svcd-related { margin-top: 150px; padding: 0 0 var(--section-y); }
.svcd-related .related-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-6); margin-bottom: var(--head-gap);
}
.svcd-related .related-head h2 { font-family: var(--serif); font-size: var(--h-section); letter-spacing: -0.02em; color: var(--ink); }
.svcd-related .related-head h2 em { font-style: italic; color: var(--blue); }
.svcd-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); }
/* related-card look is provided by the shared .service-card--media (style.css) */

/* =================================================================
   DOT NAV (fixed, scroll-spy) — desktop only
   ================================================================= */
.svcd-dotnav {
  position: fixed; left: 12px; top: 50%;
  transform: translateY(-50%);
  z-index: 70;
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 6px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(160%) blur(8px);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}
.svcd-dot { display: grid; place-items: center; padding: 6px; }
.svcd-dot-mark {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid rgba(10, 74, 66, 0.35);
  background: transparent; flex: none;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.svcd-dot:hover .svcd-dot-mark { border-color: var(--blue); transform: scale(1.25); }
.svcd-dot.is-active .svcd-dot-mark { background: var(--blue); border-color: var(--blue); transform: scale(1.35); }
/* only show when there is real gutter room beside the centered content */
@media (max-width: 1200px) { .svcd-dotnav { display: none; } }

/* =================================================================
   STICKY CTA BAR
   ================================================================= */
.svcd-ctabar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 80;
  background: rgba(8, 58, 51, 0.96);
  backdrop-filter: saturate(160%) blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(115%);
  transition: transform 0.45s var(--ease-out);
}
.svcd-ctabar.is-shown { transform: none; }
.svcd-ctabar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  padding: 12px 0;
}
.svcd-ctabar-text { display: flex; flex-direction: column; line-height: 1.3; }
.svcd-ctabar-text strong { font-family: var(--serif); font-weight: 500; font-size: 18px; letter-spacing: -0.01em; }
.svcd-ctabar-text span { font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.svcd-ctabar-actions { display: flex; align-items: center; gap: var(--space-3); flex: none; }
.svcd-ctabar .svcd-btn-ghost { border-color: rgba(255, 255, 255, 0.3); }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1024px) {
  .svcd-hero-grid { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 44px); }
  .svcd-hero-photo { aspect-ratio: 16 / 10; }
  .svcd-hero-title { max-width: none; }
  .svcd-overview-grid { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 44px); }
  .svcd-pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .svcd-steps { grid-template-columns: repeat(3, 1fr); }
  .svcd-steps .svcd-step:nth-child(4), .svcd-steps .svcd-step:nth-child(5) { grid-column: span 1; }
  .svcd-deliver-grid { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 40px); }
  .svcd-deliver-head { position: static; }
  .svcd-aud-grid { grid-template-columns: repeat(2, 1fr); }
  .svcd-faq-grid { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 40px); }
  .svcd-faq-head { position: static; }
  .svcd-metric-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 40px; }
  .svcd-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .svcd-pillar-grid { grid-template-columns: 1fr; }
  .svcd-steps { grid-template-columns: 1fr; }
  .svcd-deliver-list { grid-template-columns: 1fr; }
  .svcd-aud-grid { grid-template-columns: 1fr; }
  .svcd-spec-grid { grid-template-columns: 1fr; }
  .svcd-spec { border-right: 0; }
  .svcd-testi-grid { grid-template-columns: 1fr; }
  .svcd-metric-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .svcd-related-grid { grid-template-columns: 1fr; }
  .svcd-ctabar-text span { display: none; }
  .svcd-ctabar-inner { padding: 10px 0; }
  .svcd-ctabar-text strong { font-size: 15px; }
}

@media (max-width: 420px) {
  .svcd-metric-grid { grid-template-columns: 1fr; gap: 32px; }
  .svcd-ctabar-actions .svcd-btn-ghost { display: none; }
}

/* =================================================================
   REDUCED MOTION
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
  .svcd-progress { transition: none; }
  .svcd-hero-trust-dot, .ico-build .bld { animation: none !important; }
  .ico-build .bld { opacity: 1; transform: none; }
  .svcd-pillar:hover, .svcd-step:hover, .svcd-aud:hover, .svcd-related-card:hover { transform: none; box-shadow: none; }
  .svcd-pillar:hover .svcd-pillar-icon { transform: none; }
  .svcd-ctabar { transition: none; }
}
