/* ============================================
   SERVICES — "What we do"
   Editorial numbered list (live on index.html), grouped by the three
   ecosystem disciplines. Each row is a link to #contact; on hover the
   row lights, the title slides and the arrow fills lime.
============================================ */
.services{ position:relative; padding: clamp(72px, 8vw, 120px) 0 clamp(64px, 7vw, 100px); }

/* ---- Head (mirrors .cases-head) ---- */
.services-head{
  display:grid; grid-template-columns: 1fr minmax(260px, 380px); align-items:end; gap: 40px;
  padding-bottom: clamp(28px, 3vw, 44px);
}
.services-kicker{ display:flex; align-items:center; gap: 12px; color: rgba(244,244,239,.6); letter-spacing:.26em; }
.services-dot{ width:7px; height:7px; border-radius:50%; background: var(--accent); box-shadow: 0 0 10px rgba(198,255,62,.6); }
.services-title{
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 5.4vw, 4.8rem); line-height: .98; letter-spacing: -.025em;
}
.services-title em{ font-style: italic; font-weight: 900; color: var(--accent); }
.services-intro{ color: var(--fg-muted); line-height: 1.7; font-size: 1rem; }

/* ---- List ---- */
.services-list{ list-style:none; margin:0; padding:0; border-top: 1px solid var(--line); }
.services-list > li{ border-bottom: 1px solid var(--line); }

.service{
  position:relative; isolation:isolate;
  display:grid; grid-template-columns: 64px minmax(0, 1.05fr) minmax(0, 1fr) 52px; gap: 28px; align-items:center;
  padding: clamp(26px, 2.6vw, 38px) clamp(8px, 1.2vw, 18px);
  color: var(--fg);
}
/* lime wash that sweeps in from the left on hover */
.service::before{
  content:''; position:absolute; inset:0; z-index:-1;
  background: linear-gradient(90deg, rgba(198,255,62,.07), rgba(198,255,62,0) 70%);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.service:hover::before, .service:focus-visible::before{ transform: scaleX(1); }

.service-num{ font-family: var(--font-display); font-size:.72rem; font-weight:600; letter-spacing:.14em; color: var(--accent); }

.service-disc{
  display:block; margin-bottom: 10px;
  font-family: var(--font-display); font-size:.6rem; font-weight:600; letter-spacing:.22em; text-transform:uppercase;
  color: var(--fg-dim);
}
.service h3{
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem); line-height: 1.08; letter-spacing:-.015em;
  transition: transform .6s var(--ease), color .4s ease;
}
.service:hover h3, .service:focus-visible h3{ transform: translateX(10px); }

.service-desc{ color: var(--fg-muted); font-size: .92rem; line-height: 1.65; max-width: 48ch; }
.service-tags{ display:flex; flex-wrap:wrap; gap: 8px; margin-top: 14px; }
.service-tags span{
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--font-display); font-size:.6rem; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color: rgba(244,244,239,.66);
}

.service-arrow{
  justify-self:end; display:grid; place-items:center;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--fg);
  transition: background-color .45s ease, border-color .45s ease, color .45s ease, transform .6s var(--ease);
}
.service:hover .service-arrow, .service:focus-visible .service-arrow{
  background: var(--accent); border-color: var(--accent); color: #0a0a0a; transform: rotate(45deg);
}

.service:focus-visible{ outline: 1px solid var(--accent); outline-offset: -1px; }

/* ---- Foot ---- */
.services-foot{
  display:flex; align-items:center; justify-content:space-between; gap: 24px; flex-wrap:wrap;
  margin-top: clamp(32px, 4vw, 56px);
}
.services-foot p{ color: var(--fg-muted); font-size: .95rem; line-height: 1.6; max-width: 52ch; }

/* ============================================
   Responsive
============================================ */
@media (max-width: 980px){
  .service{ grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 14px 20px; align-items:start; }
  .service-body{ grid-column: 2 / 3; }
  .service-arrow{ grid-column: 3; grid-row: 1; width: 44px; height: 44px; }
}
@media (max-width: 820px){
  .services-head{ grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 520px){
  .service{ grid-template-columns: minmax(0, 1fr) 40px; padding-left: 0; padding-right: 0; }
  .service-num{ grid-column: 1; grid-row: 1; }
  .service-main{ grid-column: 1 / -1; grid-row: 2; }
  .service-body{ grid-column: 1 / -1; grid-row: 3; }
  .service-arrow{ grid-column: 2; grid-row: 1; width: 40px; height: 40px; }
  .service:hover h3{ transform:none; }
}

@media (prefers-reduced-motion: reduce){
  .service::before, .service h3, .service-arrow{ transition:none; }
}
