/* ------------------------------------------------------------------ *
 * Service pages: hero, capability grid, process, FAQ and closing CTA.
 * Loads after atlas.css, which supplies the tokens and the chrome.
 * ------------------------------------------------------------------ */

.svc-wrap{
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--s-6);
}

/* ---------------------------------------------------------------- */
/* Hero                                                              */
/* ---------------------------------------------------------------- */
.svc-hero{
  position: relative;
  overflow-x: clip;
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 6vw, 5rem);
  text-align: center;
}
.svc-hero-grid{
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--primary), .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary), .10) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 62% 70% at 50% 34%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 62% 70% at 50% 34%, #000 0%, transparent 78%);
  pointer-events: none;
}
.svc-hero-glow{
  position: absolute;
  top: 8%;
  left: 50%;
  width: min(1100px, 130vw);
  height: min(560px, 90vw);
  transform: translateX(-50%);
  background-image:
    radial-gradient(ellipse 50% 46% at 50% 50%, rgba(var(--primary), .78) 0%, rgba(var(--primary), .26) 44%, transparent 74%),
    radial-gradient(ellipse 26% 30% at 50% 54%, rgba(var(--secondary), .6) 0%, transparent 76%);
  filter: blur(64px);
  mix-blend-mode: var(--glow-blend);
  pointer-events: none;
}
.svc-hero-inner{ position: relative; z-index: 2; max-width: 52rem; margin: 0 auto; }

.svc-eyebrow{
  margin: 0 0 var(--s-4);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(var(--primary), .95);
}
.svc-title{
  margin: 0;
  font-family: 'Unbounded', ui-sans-serif, sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: rgb(var(--ink));
  text-wrap: balance;
}
.svc-lede{
  margin: var(--s-6) auto 0;
  max-width: 40rem;
  font-size: clamp(1rem, 1.35vw, 1.1875rem);
  line-height: 1.75;
  color: rgba(var(--ink-soft), .72);
  text-wrap: pretty;
}
.svc-cta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* ---------------------------------------------------------------- */
/* Section heads                                                     */
/* ---------------------------------------------------------------- */
.svc-section{ position: relative; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.svc-head{ max-width: 44rem; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.svc-h2{
  margin: 0;
  font-family: 'Unbounded', ui-sans-serif, sans-serif;
  font-weight: 600;
  font-size: clamp(1.625rem, 3.2vw, 2.375rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: rgb(var(--ink));
  text-wrap: balance;
}
.svc-sub{
  margin: var(--s-4) 0 0;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(var(--ink-soft), .68);
  text-wrap: pretty;
}

/* ---------------------------------------------------------------- */
/* Capability grid                                                   */
/* ---------------------------------------------------------------- */
.svc-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.svc-tile{
  position: relative;
  padding: clamp(1.5rem, 2.4vw, 1.875rem);
  border: 1px solid rgba(var(--primary), .18);
  border-radius: 18px;
  background-image: var(--card-grad);
  box-shadow:
    inset 0 1px 0 rgba(var(--hi), .07),
    0 22px 50px -32px rgba(0, 0, 0, .95);
  transition: transform .35s var(--ease-spring), border-color .25s ease, box-shadow .35s var(--ease-spring);
}
.svc-tile:hover{
  transform: translateY(-4px);
  border-color: rgba(var(--primary), .38);
  box-shadow:
    inset 0 1px 0 rgba(var(--hi), .1),
    0 30px 64px -34px rgba(0, 0, 0, .95);
}
.svc-tile-ic{
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: var(--s-4);
  border: 1px solid rgba(var(--primary), .22);
  border-radius: 12px;
  background-color: rgba(var(--primary), .08);
  box-shadow: inset 0 1px 0 rgba(var(--hi), .07);
}
.svc-tile-ic .ic{ width: 1.25rem; height: 1.25rem; color: rgba(var(--ink), .92); }
.svc-tile h3{
  margin: 0 0 var(--s-2);
  font-family: 'Unbounded', ui-sans-serif, sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: rgb(var(--ink));
}
.svc-tile p{
  margin: 0;
  font-size: .9375rem;
  line-height: 1.7;
  color: rgba(var(--ink-soft), .62);
}

/* ---------------------------------------------------------------- */
/* Process                                                           */
/* ---------------------------------------------------------------- */
.svc-process{ position: relative; overflow-x: clip; }
.svc-process-glow{
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1000px, 120vw);
  height: min(460px, 90vw);
  transform: translate(-50%, -50%);
  background-image: radial-gradient(ellipse 48% 44% at 50% 50%, rgba(var(--primary), .34) 0%, transparent 72%);
  filter: blur(90px);
  mix-blend-mode: var(--glow-blend);
  pointer-events: none;
}
.svc-steps{
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--s-6);
  max-width: 64rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.svc-step{ position: relative; counter-increment: step; padding-top: var(--s-8); }
.svc-step::before{
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: 'Unbounded', ui-sans-serif, sans-serif;
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: .1em;
  color: rgba(var(--primary), .9);
}
.svc-step::after{
  content: '';
  position: absolute;
  top: .45rem;
  right: 0;
  left: 2.75rem;
  height: 1px;
  background-image: linear-gradient(to right, rgba(var(--primary), .45), transparent);
}
.svc-step h3{
  margin: 0 0 var(--s-2);
  font-family: 'Unbounded', ui-sans-serif, sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: rgb(var(--ink));
}
.svc-step p{
  margin: 0;
  font-size: .9375rem;
  line-height: 1.7;
  color: rgba(var(--ink-soft), .62);
}

/* ---------------------------------------------------------------- */
/* FAQ                                                               */
/* ---------------------------------------------------------------- */
.svc-faq{ max-width: 48rem; margin: 0 auto; }
.svc-q{
  border-bottom: 1px solid rgba(var(--primary), .16);
}
.svc-q:first-of-type{ border-top: 1px solid rgba(var(--primary), .16); }
.svc-q > summary{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 1.375rem 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.45;
  color: rgb(var(--ink));
  cursor: pointer;
  list-style: none;
  transition: color .2s ease;
}
.svc-q > summary::-webkit-details-marker{ display: none; }
.svc-q > summary:hover{ color: rgb(var(--primary)); }
.svc-q > summary:focus-visible{ outline: 2px solid rgba(var(--primary), .9); outline-offset: 3px; border-radius: 6px; }
.svc-q-mark{
  position: relative;
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: .25rem;
}
.svc-q-mark::before,
.svc-q-mark::after{
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background-color: rgba(var(--primary), .95);
  transform: translateY(-50%);
  transition: transform .3s var(--ease-spring), opacity .2s ease;
}
.svc-q-mark::after{ transform: translateY(-50%) rotate(90deg); }
.svc-q[open] .svc-q-mark::after{ transform: translateY(-50%) rotate(0deg); opacity: 0; }
.svc-q-body{
  padding: 0 2.5rem 1.5rem 0;
  font-size: 1rem;
  line-height: 1.78;
  color: rgba(var(--ink-soft), .66);
}
.svc-q-body p{ margin: 0 0 1rem; }
.svc-q-body p:last-child{ margin-bottom: 0; }

/* ---------------------------------------------------------------- */
/* Closing CTA                                                       */
/* ---------------------------------------------------------------- */
.svc-end{ position: relative; overflow-x: clip; padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); text-align: center; }
.svc-end-glow{
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1000px, 124vw);
  height: min(520px, 96vw);
  transform: translate(-50%, -50%);
  background-image: radial-gradient(ellipse 48% 44% at 50% 50%, rgba(var(--primary), .72) 0%, rgba(var(--primary), .26) 44%, transparent 74%);
  filter: blur(66px);
  mix-blend-mode: var(--glow-blend);
  pointer-events: none;
}
.svc-end-inner{ position: relative; z-index: 2; max-width: 40rem; margin: 0 auto; }
.svc-end .svc-cta{ margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }

/* Sibling services, so nobody dead-ends on a service page */
.svc-more-label{
  margin: clamp(3rem, 6vw, 4.5rem) 0 var(--s-4);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(var(--ink-soft), .42);
}
.svc-more{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.svc-more a{
  display: inline-flex;
  align-items: center;
  padding: .5rem .875rem;
  border: 1px solid rgba(var(--primary), .22);
  border-radius: 9999px;
  font-size: .875rem;
  font-weight: 500;
  color: rgba(var(--ink-soft), .8);
  text-decoration: none;
  transition: transform .3s var(--ease-spring), border-color .2s ease, color .2s ease, background-color .2s ease;
}
.svc-more a:hover{
  transform: translateY(-2px);
  border-color: rgba(var(--primary), .5);
  background-color: rgba(var(--primary), .1);
  color: rgb(var(--ink));
}
.svc-more a:focus-visible{ outline: 2px solid rgba(var(--primary), .9); outline-offset: 3px; }

@media (max-width: 640px){
  .svc-cta .btn{ width: 100%; max-width: 20rem; }
  .svc-step::after{ display: none; }
}

@media (prefers-reduced-motion: reduce){
  .svc-tile, .svc-more a, .svc-q > summary, .svc-q-mark::before, .svc-q-mark::after{ transition: none; }
}
