/* James Woolford Design — portfolio spacing + complete service-page redesign v38 */

:root{
  --jw38-ink:#101010;
  --jw38-blue:#2458ff;
  --jw38-cream:#f3f1eb;
  --jw38-paper:#fbfaf6;
  --jw38-pale:#eef1fa;
  --jw38-dark:#0f1118;
  --jw38-line:rgba(16,16,16,.14);
}

/* -------------------------------------------------------------------------- */
/* Portfolio: remove the dead band between the intro and the project listing. */
/* -------------------------------------------------------------------------- */
.portfolio-page .portfolio-hero{
  padding-bottom:clamp(28px,3vw,46px)!important;
  border-bottom:0!important;
}
.portfolio-page .portfolio-hero__inner{
  min-height:0!important;
}
.portfolio-page .portfolio-hero__bottom{
  margin-top:clamp(34px,4vw,54px)!important;
  padding-top:18px!important;
  margin-bottom:0!important;
}
.portfolio-page .portfolio-index{
  margin-top:0!important;
  padding-top:clamp(24px,2.6vw,40px)!important;
  padding-bottom:clamp(84px,9vw,132px)!important;
  border-top:0!important;
  background:var(--jw38-pale)!important;
}
.portfolio-page .portfolio-filters{
  margin:0 0 clamp(28px,3vw,44px)!important;
}
.portfolio-page .portfolio-index::before,
.portfolio-page .portfolio-index::after{
  display:none!important;
}

/* -------------------------------------------------------------------------- */
/* Remove the repeated moving background from service pages only.             */
/* -------------------------------------------------------------------------- */
.services-page,
.service-detail-page{
  background:var(--jw38-cream)!important;
  background-image:none!important;
  background-attachment:scroll!important;
}
.services-page .jw-section-motion::before,
.services-page .jw-section-motion::after,
.service-detail-page .jw-section-motion::before,
.service-detail-page .jw-section-motion::after,
.services-page.site-ambient::before,
.services-page.site-ambient::after,
.service-detail-page.site-ambient::before,
.service-detail-page.site-ambient::after{
  content:none!important;
  display:none!important;
}

/* -------------------------------------------------------------------------- */
/* Services overview page.                                                    */
/* -------------------------------------------------------------------------- */
.services-page .services-hero{
  padding:clamp(112px,10vw,168px) 0 clamp(64px,7vw,104px)!important;
  background:var(--jw38-cream)!important;
  border:0!important;
}
.services-page .services-hero__grid{
  display:grid!important;
  grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr)!important;
  gap:clamp(44px,8vw,130px)!important;
  align-items:end!important;
  width:min(1440px,calc(100% - clamp(40px,8vw,160px)))!important;
  max-width:1440px!important;
  margin:0 auto!important;
  padding-bottom:clamp(36px,4vw,58px)!important;
  border-bottom:1px solid var(--jw38-line)!important;
}
.services-page .services-hero h1{
  max-width:9ch!important;
  margin:16px 0 0!important;
  font-size:clamp(68px,7vw,112px)!important;
  line-height:.88!important;
  letter-spacing:-.075em!important;
}
.services-page .services-hero p{
  max-width:520px!important;
  margin:0 0 8px!important;
  color:#615d56!important;
  font-size:clamp(16px,1.25vw,20px)!important;
  line-height:1.7!important;
}
.services-page .services-grid-section{
  padding:clamp(76px,8vw,126px) 0!important;
  background:var(--jw38-dark)!important;
  color:#fff!important;
  border:0!important;
}
.services-page .services-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
  border:0!important;
}
.services-page .service-hub-card{
  min-height:330px!important;
  padding:30px!important;
  border:1px solid rgba(255,255,255,.14)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.025))!important;
  color:#fff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 22px 64px rgba(0,0,0,.18)!important;
  backdrop-filter:blur(15px);
  -webkit-backdrop-filter:blur(15px);
  transition:transform .35s cubic-bezier(.2,.8,.2,1),border-color .35s ease,background .35s ease!important;
}
.services-page .service-hub-card h2,
.services-page .service-hub-card p,
.services-page .service-hub-card span{
  color:inherit!important;
}
.services-page .service-hub-card h2{
  margin-top:76px!important;
  font-size:clamp(34px,3vw,50px)!important;
  letter-spacing:-.055em!important;
}
.services-page .service-hub-card p{
  color:rgba(255,255,255,.62)!important;
}
.services-page .service-hub-card__top span,
.services-page .service-hub-card__link{
  color:#8da5ff!important;
}
@media(hover:hover){
  .services-page .service-hub-card:hover{
    transform:translateY(-8px)!important;
    border-color:rgba(83,118,255,.58)!important;
    background:linear-gradient(145deg,rgba(36,88,255,.22),rgba(255,255,255,.035))!important;
  }
}
.services-page .services-closing{
  background:var(--jw38-blue)!important;
  color:#fff!important;
  border:0!important;
}
.services-page .services-closing h2,
.services-page .services-closing p,
.services-page .services-closing a{
  color:#fff!important;
}
.services-page .service-coverage{
  background:var(--jw38-paper)!important;
  color:var(--jw38-ink)!important;
}

/* -------------------------------------------------------------------------- */
/* Service detail hero — editorial left + useful at-a-glance panel right.     */
/* -------------------------------------------------------------------------- */
.service-detail-page .service-detail-hero{
  padding:clamp(112px,10vw,168px) 0 clamp(70px,7vw,112px)!important;
  background:var(--jw38-cream)!important;
  border:0!important;
}
.service-detail-page .service-detail-hero__grid{
  display:grid!important;
  grid-template-columns:minmax(0,1.2fr) minmax(330px,.72fr)!important;
  gap:clamp(48px,8vw,126px)!important;
  align-items:end!important;
  width:min(1440px,calc(100% - clamp(40px,8vw,160px)))!important;
  max-width:1440px!important;
  margin:0 auto!important;
  padding:0 0 clamp(44px,5vw,70px)!important;
  border-bottom:1px solid var(--jw38-line)!important;
}
.service-detail-page .service-detail-hero__copy{
  max-width:850px!important;
}
.service-detail-page .service-detail-hero__copy h1{
  max-width:9ch!important;
  margin:18px 0 0!important;
  font-size:clamp(68px,7vw,112px)!important;
  line-height:.88!important;
  letter-spacing:-.075em!important;
}
.service-detail-page .service-detail-hero__copy p{
  max-width:650px!important;
  margin:28px 0 0!important;
  color:#615d56!important;
  font-size:clamp(16px,1.15vw,19px)!important;
  line-height:1.72!important;
}
.service-detail-page .service-detail-hero__copy>a{
  display:inline-flex!important;
  align-items:center!important;
  gap:12px!important;
  margin-top:30px!important;
  padding:16px 20px!important;
  background:var(--jw38-blue)!important;
  color:#fff!important;
  border:0!important;
  font-size:11px!important;
  font-weight:800!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}
.service-detail-page .service-detail-hero__art{
  display:none!important;
}
.jw-service-hero-panel{
  min-height:420px;
  padding:30px;
  border:1px solid rgba(16,16,16,.14);
  background:linear-gradient(150deg,#101116,#17234a);
  color:#fff;
  box-shadow:0 30px 80px rgba(20,28,55,.13);
  display:flex;
  flex-direction:column;
}
.jw-service-hero-panel__eyebrow{
  color:#8da5ff;
  font-size:10px;
  font-weight:800;
  letter-spacing:.17em;
  text-transform:uppercase;
}
.jw-service-hero-panel h2{
  margin:18px 0 0;
  max-width:8ch;
  font-size:clamp(38px,3.8vw,58px);
  line-height:.92;
  letter-spacing:-.06em;
}
.jw-service-hero-panel__list{
  display:grid;
  gap:0;
  margin:auto 0 0;
  border-top:1px solid rgba(255,255,255,.14);
}
.jw-service-hero-panel__list div{
  display:grid;
  grid-template-columns:38px 1fr;
  gap:14px;
  align-items:center;
  min-height:68px;
  border-bottom:1px solid rgba(255,255,255,.12);
}
.jw-service-hero-panel__list span{
  color:#8da5ff;
  font-size:10px;
  font-weight:700;
}
.jw-service-hero-panel__list strong{
  font-size:16px;
  font-weight:650;
}

/* -------------------------------------------------------------------------- */
/* Capabilities — dark card gallery.                                          */
/* -------------------------------------------------------------------------- */
.service-detail-page .service-capabilities{
  position:relative!important;
  overflow:hidden!important;
  padding:clamp(92px,10vw,158px) 0!important;
  background:var(--jw38-dark)!important;
  color:#fff!important;
  border:0!important;
}
.service-detail-page .service-capabilities::before{
  content:"";
  position:absolute;
  width:620px;
  height:620px;
  right:-180px;
  top:-220px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(36,88,255,.35),rgba(36,88,255,.08) 45%,transparent 72%);
  filter:blur(45px);
  pointer-events:none;
}
.service-detail-page .service-capabilities>.portfolio-shell{
  position:relative!important;
  z-index:1!important;
}
.service-detail-page .service-section-head{
  display:grid!important;
  grid-template-columns:minmax(280px,.7fr) minmax(0,1.3fr)!important;
  gap:clamp(48px,8vw,130px)!important;
  align-items:end!important;
  margin-bottom:clamp(48px,6vw,82px)!important;
  padding-bottom:clamp(32px,4vw,52px)!important;
  border-bottom:1px solid rgba(255,255,255,.16)!important;
}
.service-detail-page .service-section-head .section-kicker{
  color:#8da5ff!important;
}
.service-detail-page .service-section-head h2{
  grid-column:1!important;
  max-width:8ch!important;
  margin:14px 0 0!important;
  color:#fff!important;
  font-size:clamp(56px,5.6vw,88px)!important;
  line-height:.9!important;
  letter-spacing:-.07em!important;
  text-align:left!important;
}
.service-detail-page .service-capabilities__grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:16px!important;
  border:0!important;
  background:transparent!important;
}
.service-detail-page .service-capabilities__grid article{
  min-height:300px!important;
  padding:30px!important;
  border:1px solid rgba(255,255,255,.14)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.025))!important;
  color:#fff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 24px 70px rgba(0,0,0,.16)!important;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  transition:transform .35s cubic-bezier(.2,.8,.2,1),border-color .35s ease,background .35s ease!important;
}
.service-detail-page .service-capabilities__grid article>span{
  display:grid!important;
  place-items:center!important;
  width:46px!important;
  height:46px!important;
  color:#9bb0ff!important;
  border:1px solid rgba(128,154,255,.36)!important;
  background:rgba(36,88,255,.14)!important;
}
.service-detail-page .service-capabilities__grid h3{
  margin:72px 0 14px!important;
  color:#fff!important;
  font-size:clamp(30px,2.6vw,42px)!important;
  letter-spacing:-.045em!important;
}
.service-detail-page .service-capabilities__grid p{
  max-width:42ch!important;
  color:rgba(255,255,255,.62)!important;
  font-size:15px!important;
  line-height:1.7!important;
}
@media(hover:hover){
  .service-detail-page .service-capabilities__grid article:hover{
    transform:translateY(-8px)!important;
    border-color:rgba(86,120,255,.58)!important;
    background:linear-gradient(145deg,rgba(36,88,255,.2),rgba(255,255,255,.035))!important;
  }
}

/* -------------------------------------------------------------------------- */
/* Process — light editorial cards, deliberately different from capabilities. */
/* -------------------------------------------------------------------------- */
.service-detail-page .service-process{
  padding:clamp(92px,10vw,156px) 0!important;
  background:var(--jw38-pale)!important;
  color:var(--jw38-ink)!important;
  border:0!important;
}
.service-detail-page .service-process__layout{
  display:block!important;
  grid-template-columns:none!important;
}
.service-detail-page .service-process__intro{
  position:relative!important;
  top:auto!important;
  display:grid!important;
  grid-template-columns:minmax(280px,.72fr) minmax(0,1.28fr)!important;
  gap:clamp(48px,8vw,126px)!important;
  align-items:end!important;
  margin:0 0 clamp(48px,6vw,82px)!important;
  padding-bottom:clamp(32px,4vw,52px)!important;
  border-bottom:1px solid rgba(16,16,16,.14)!important;
}
.service-detail-page .service-process__intro h2{
  max-width:8ch!important;
  margin:14px 0 0!important;
  color:var(--jw38-ink)!important;
  font-size:clamp(56px,5.6vw,88px)!important;
  line-height:.9!important;
  letter-spacing:-.07em!important;
  text-align:left!important;
}
.jw-service-process-summary{
  align-self:end;
  max-width:540px;
  margin:0 0 6px;
  color:#615d56;
  font-size:17px;
  line-height:1.7;
}
.service-detail-page .service-process__steps{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
  border:0!important;
}
.service-detail-page .service-process__steps article{
  display:flex!important;
  flex-direction:column!important;
  min-height:320px!important;
  padding:30px!important;
  border:1px solid rgba(16,16,16,.13)!important;
  background:rgba(255,255,255,.72)!important;
  color:var(--jw38-ink)!important;
  box-shadow:0 20px 58px rgba(23,31,60,.055)!important;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  transition:transform .35s cubic-bezier(.2,.8,.2,1),border-color .35s ease,box-shadow .35s ease!important;
}
.service-detail-page .service-process__steps>article>span{
  display:grid!important;
  place-items:center!important;
  width:48px!important;
  height:48px!important;
  color:var(--jw38-blue)!important;
  border:1px solid rgba(36,88,255,.25)!important;
  background:rgba(36,88,255,.08)!important;
  font-size:10px!important;
}
.service-detail-page .service-process__steps article>div{
  margin-top:auto!important;
}
.service-detail-page .service-process__steps h3{
  margin:74px 0 14px!important;
  color:var(--jw38-ink)!important;
  font-size:clamp(30px,2.6vw,42px)!important;
  letter-spacing:-.045em!important;
}
.service-detail-page .service-process__steps p{
  color:#615d56!important;
  font-size:15px!important;
  line-height:1.7!important;
}
@media(hover:hover){
  .service-detail-page .service-process__steps article:hover{
    transform:translateY(-8px)!important;
    border-color:rgba(36,88,255,.38)!important;
    box-shadow:0 30px 78px rgba(36,88,255,.11)!important;
  }
}

/* -------------------------------------------------------------------------- */
/* Regional coverage — a clear final blue chapter before the footer.          */
/* -------------------------------------------------------------------------- */
.service-detail-page .service-related{
  display:none!important;
}
.service-detail-page .service-coverage{
  padding:clamp(76px,8vw,120px) 0!important;
  background:var(--jw38-blue)!important;
  color:#fff!important;
  border:0!important;
}
.service-detail-page .service-coverage__inner{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(420px,.8fr)!important;
  gap:clamp(46px,8vw,126px)!important;
  align-items:end!important;
}
.service-detail-page .service-coverage h2,
.service-detail-page .service-coverage p,
.service-detail-page .service-coverage .section-kicker{
  color:#fff!important;
}
.service-detail-page .service-coverage h2{
  max-width:10ch!important;
  font-size:clamp(48px,5vw,78px)!important;
  line-height:.93!important;
  letter-spacing:-.06em!important;
}
.service-detail-page .service-coverage p{
  max-width:620px!important;
  color:rgba(255,255,255,.75)!important;
}
.service-detail-page .service-coverage__areas{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
}
.service-detail-page .service-coverage__areas span,
.service-detail-page .service-coverage__areas a{
  min-height:52px!important;
  padding:0 16px!important;
  border:1px solid rgba(255,255,255,.22)!important;
  background:rgba(255,255,255,.08)!important;
  color:#fff!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
}
.service-detail-page .service-coverage__areas a:last-child{
  background:#fff!important;
  color:var(--jw38-blue)!important;
}

/* -------------------------------------------------------------------------- */
/* Mobile service experience — swipe cards and a separate, readable hero.     */
/* -------------------------------------------------------------------------- */
@media(max-width:900px){
  .portfolio-page .portfolio-hero{
    padding-bottom:26px!important;
  }
  .portfolio-page .portfolio-index{
    padding-top:20px!important;
  }

  .services-page .services-hero__grid,
  .service-detail-page .service-detail-hero__grid{
    grid-template-columns:1fr!important;
    gap:34px!important;
    width:calc(100% - 36px)!important;
  }
  .services-page .services-hero h1,
  .service-detail-page .service-detail-hero__copy h1{
    font-size:clamp(52px,14vw,76px)!important;
  }
  .jw-service-hero-panel{
    min-height:360px;
  }

  .services-page .services-grid,
  .service-detail-page .service-capabilities__grid,
  .service-detail-page .service-process__steps{
    display:flex!important;
    gap:14px!important;
    overflow-x:auto!important;
    scroll-snap-type:x mandatory!important;
    scrollbar-width:none!important;
    padding:0 18px 12px 0!important;
    margin-right:-18px!important;
  }
  .services-page .services-grid::-webkit-scrollbar,
  .service-detail-page .service-capabilities__grid::-webkit-scrollbar,
  .service-detail-page .service-process__steps::-webkit-scrollbar{
    display:none!important;
  }
  .services-page .service-hub-card,
  .service-detail-page .service-capabilities__grid article,
  .service-detail-page .service-process__steps article{
    flex:0 0:min(82vw,360px)!important;
    scroll-snap-align:start!important;
  }
  .service-detail-page .service-section-head,
  .service-detail-page .service-process__intro{
    grid-template-columns:1fr!important;
    gap:20px!important;
  }
  .service-detail-page .service-section-head h2,
  .service-detail-page .service-process__intro h2{
    font-size:clamp(48px,13vw,68px)!important;
  }
  .jw-service-process-summary{
    max-width:34ch;
    margin:0;
    font-size:15px;
  }
  .service-detail-page .service-coverage__inner{
    grid-template-columns:1fr!important;
  }
  .service-detail-page .service-coverage__areas{
    grid-template-columns:1fr!important;
  }
}

@media(max-width:560px){
  .services-page .services-hero,
  .service-detail-page .service-detail-hero{
    padding-top:96px!important;
  }
  .service-detail-page .service-capabilities,
  .service-detail-page .service-process{
    padding-top:76px!important;
    padding-bottom:88px!important;
  }
  .jw-service-hero-panel{
    padding:24px;
  }
}

@media(prefers-reduced-motion:reduce){
  .services-page .service-hub-card,
  .service-detail-page .service-capabilities__grid article,
  .service-detail-page .service-process__steps article{
    transition:none!important;
  }
}
