/* Shared layout for the four service pages. */

.service-hero {
  position: relative;
  min-height: 74vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background-color: var(--surface);
  padding: calc(var(--nav-h) + 48px) var(--pad-x) 96px;
}
.service-hero .glow-base {
  position: absolute;
  inset: 0;
  background: var(--grad-glow);
  pointer-events: none;
}
.service-hero > * { position: relative; }
.service-hero .eyebrow { margin-bottom: 28px; }
.service-hero h1 { max-width: 820px; margin-bottom: 26px; }
.service-hero .lede { max-width: 540px; margin-bottom: 44px; }
.service-hero .hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Problem statement */
.problem h2 { max-width: 640px; margin-bottom: 32px; }
.problem .cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1040px;
}
.problem p { font-size: var(--text-md); line-height: 1.75; color: var(--text-soft); }

/* Split: deliverables beside a sticky visual */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
.split-visual {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.split-visual figcaption {
  margin-top: 14px;
  font-size: var(--text-sm);
  color: var(--text-faint);
  text-align: center;
}

/* Video showcase */
.reel {
  position: relative;
  border-radius: var(--radius-frame);
  overflow: hidden;
  box-shadow: var(--shadow-frame);
  background: var(--green-shadow);
}
.reel video { width: 100%; height: auto; }
.reel-note {
  margin-top: 16px;
  font-size: var(--text-sm);
  color: var(--text-faint);
  text-align: center;
}

/* Service-specific process strip */
.svc-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.svc-step .num {
  font-size: 40px;
  line-height: 1;
  color: var(--pistachio-30);
  margin-bottom: 12px;
}
.svc-step h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--pistachio);
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}
.svc-step p { font-size: var(--text-base); color: var(--text-soft); }

/* FAQ accordion, native details/summary */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq details:first-of-type { border-top: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 4px;
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--text);
  transition: color 0.2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--pistachio); }
.faq .plus { position: relative; width: 14px; height: 14px; flex: none; }
.faq .plus::before,
.faq .plus::after {
  content: '';
  position: absolute;
  background: var(--pistachio);
  transition: transform 0.25s var(--ease);
}
.faq .plus::before { left: 0; right: 0; top: 6px; height: 2px; }
.faq .plus::after { top: 0; bottom: 0; left: 6px; width: 2px; }
.faq details[open] .plus::after { transform: scaleY(0); }
.faq .faq-a {
  padding: 0 4px 24px;
  max-width: 660px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
}

@media (max-width: 820px) {
  .svc-steps { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}
@media (max-width: 480px) {
  .svc-steps { grid-template-columns: 1fr; }
}

/* Reel placeholder animation. The frame itself is a motion piece until the
   real showreel replaces it. */
.reel-anim .ra-playhead { animation: ra-playhead 8s linear infinite; }
.reel-anim .ra-diamond {
  transform-box: fill-box;
  transform-origin: center;
  animation: ra-spin 7s linear infinite;
}
.reel-anim .ra-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: ra-pulse 2.6s var(--ease) infinite;
}
.reel-anim .ra-bar { animation: ra-bar 4.2s var(--ease) infinite alternate; }
.reel-anim .ra-rec { animation: ra-blink 1.4s steps(1) infinite; }
.reel-anim .ra-type { animation: ra-type 5.6s var(--ease) infinite; }

@keyframes ra-playhead { from { transform: translateX(0); } to { transform: translateX(560px); } }
@keyframes ra-spin { to { transform: rotate(360deg); } }
@keyframes ra-pulse { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.18); opacity: 1; } }
@keyframes ra-bar { from { width: 60px; } to { width: 220px; } }
@keyframes ra-blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.15; } }
@keyframes ra-type {
  0%, 12% { transform: translateY(26px); opacity: 0; }
  22%, 78% { transform: translateY(0); opacity: 1; }
  90%, 100% { transform: translateY(-26px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reel-anim .ra-playhead, .reel-anim .ra-diamond, .reel-anim .ra-pulse,
  .reel-anim .ra-bar, .reel-anim .ra-rec, .reel-anim .ra-type { animation: none; }
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-visual { position: static; order: 2; max-width: 480px; margin: 0 auto; }
  .problem .cols { grid-template-columns: 1fr; gap: 20px; }
  .service-hero { min-height: 0; }
}
