/* =========================
   SERVICES HERO
========================= */

.services-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 146px);
  background:
    radial-gradient(circle at 82% 24%, rgba(243, 204, 49, 0.04), transparent 20%),
    radial-gradient(circle at 74% 72%, rgba(54, 198, 244, 0.035), transparent 22%),
    linear-gradient(180deg, #040608 0%, #020304 100%);
  border-bottom: 1px solid var(--black);
}

.services-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.services-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.08;
}

.services-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.07;
}

.services-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation: lineDrift 12s ease-in-out infinite;
}

.services-line {
  position: absolute;
  display: block;
  will-change: transform, opacity;
}

.services-line-v {
  right: 15%;
  top: 12%;
  width: 1px;
  height: 64%;
  background: rgba(255, 255, 255, 0.08);
}

.services-line-h {
  right: 7%;
  top: 32%;
  width: 26%;
  height: 1px;
  background: rgba(54, 198, 244, 0.22);
}

.services-line-box-1 {
  right: 20%;
  top: 21%;
  width: 250px;
  height: 146px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.services-line-box-2 {
  right: 16%;
  top: 40%;
  width: 170px;
  height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.services-line-box-1::before {
  content: "";
  position: absolute;
  left: 26px;
  top: -7px;
  width: 14px;
  height: 14px;
  background: var(--yellow);
}

.services-line-box-1::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: 22px;
  width: 42px;
  height: 1px;
  background: rgba(255, 255, 255, 0.09);
}

.services-line-box-2::before {
  content: "";
  position: absolute;
  right: 20px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: -92px 124px 0 rgba(255, 255, 255, 0.14);
}

.services-line-box-2::after {
  content: "";
  position: absolute;
  left: -54px;
  top: 58px;
  width: 54px;
  height: 1px;
  background: rgba(243, 204, 49, 0.24);
}

.services-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.services-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(120px);
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.services-glow-blue {
  width: 260px;
  height: 210px;
  right: 12%;
  top: 44%;
  background: rgba(54, 198, 244, 0.13);
  animation: driftGlowBlue 10s ease-in-out infinite;
}

.services-glow-yellow {
  width: 220px;
  height: 170px;
  right: 4%;
  top: 18%;
  background: rgba(243, 204, 49, 0.08);
  animation: driftGlowYellow 12s ease-in-out infinite;
}

.services-hero-content {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 146px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 88px;
  padding-bottom: 88px;
}

.services-hero-content h1 {
  max-width: 780px;
  font-size: clamp(2.35rem, 3.9vw, 4.1rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  text-wrap: balance;
}

.services-hero-content h1 span {
  display: block;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

.services-hero-description {
  margin-top: 24px;
  max-width: 760px;
  font-size: 0.96rem;
  line-height: 1.82;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
  text-wrap: pretty;
}

/* =========================
   SCOPE BAND
========================= */

.services-scope-band {
  position: relative;
  background: #07090c;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.services-scope-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.16;
  pointer-events: none;
}

.services-scope-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.services-scope-grid p {
  position: relative;
  min-height: 78px;
  padding: 16px 18px 16px 36px;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.86);
}

.services-scope-grid p:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.services-scope-grid p::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.16);
}

.services-scope-grid p:nth-child(2)::before {
  background: rgba(243, 204, 49, 0.95);
}

.services-scope-grid p:nth-child(3)::before {
  background: rgba(54, 198, 244, 0.95);
}

/* =========================
   SERVICES ARCHITECTURE
========================= */

.services-architecture {
  position: relative;
  background: #ffffff;
  color: var(--black);
  padding: 72px 0 88px;
}

.services-architecture::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.014) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.2;
  pointer-events: none;
}

.services-architecture .container,
.services-closing .container {
  position: relative;
  z-index: 1;
}

.services-architecture-heading {
  margin-bottom: 34px;
}

.services-architecture-intro {
  max-width: 760px;
  display: grid;
  gap: 18px;
  margin-bottom: 38px;
}

.services-architecture-intro p {
  font-size: 0.94rem;
  line-height: 1.76;
  color: rgba(0, 0, 0, 0.72);
  text-wrap: pretty;
}

.services-architecture-intro p:last-child {
  font-weight: 500;
  color: rgba(0, 0, 0, 0.9);
}

/* =========================
   SERVICE DETAIL
========================= */

.services-detail-list {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.service-detail-row {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  padding: 38px 0 42px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform var(--transition);
}

.service-detail-row:hover {
  transform: translateX(3px);
}

.service-detail-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0%;
  background: var(--yellow);
  transition: height 0.3s ease;
}

.service-detail-row:hover::before {
  height: 100%;
}

.service-detail-index {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(0, 0, 0, 0.2);
  padding-top: 4px;
  transition: color 0.25s ease;
}

.service-detail-row:hover .service-detail-index {
  color: rgba(0, 0, 0, 0.44);
}

.service-detail-main {
  display: grid;
  gap: 24px;
}

.service-detail-head {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.service-detail-head h2 {
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 600;
  color: var(--black);
  text-wrap: balance;
}

.service-detail-lead {
  max-width: 520px;
  font-size: 1rem;
  line-height: 1.64;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.76);
  text-wrap: pretty;
}

.service-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 46px;
  align-items: start;
}

.service-detail-copy {
  display: grid;
  gap: 16px;
  max-width: 640px;
}

.service-detail-copy p {
  font-size: 0.92rem;
  line-height: 1.72;
  color: rgba(0, 0, 0, 0.72);
  text-wrap: pretty;
}

.service-detail-meta {
  display: grid;
  gap: 24px;
}

.service-detail-for {
  position: relative;
  padding: 4px 0 0 22px;
}

.service-detail-for::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 2px;
  height: 52px;
  background: var(--yellow);
}

.service-detail-for h3,
.service-detail-points h3 {
  font-size: 0.88rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 12px;
}

.service-detail-for p {
  font-size: 0.89rem;
  line-height: 1.62;
  color: rgba(0, 0, 0, 0.72);
  text-wrap: pretty;
}

.service-detail-points {
  position: relative;
  padding: 4px 0 0 22px;
}

.service-detail-points::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 2px;
  height: 64px;
  background: var(--blue);
}

.service-detail-points ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.service-detail-points li {
  position: relative;
  padding-left: 16px;
  font-size: 0.88rem;
  line-height: 1.56;
  color: rgba(0, 0, 0, 0.72);
  text-wrap: pretty;
}

.service-detail-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(54, 198, 244, 0.9);
}

/* =========================
   CLOSING
========================= */

.services-closing {
  position: relative;
  background: #000000;
  color: #ffffff;
  padding: 56px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.services-closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 140px 140px;
  opacity: 0.14;
  pointer-events: none;
}

.services-closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px);
}

.services-closing-copy {
  max-width: 700px;
}

.services-closing-copy .eyebrow {
  color: rgba(255, 255, 255, 0.45);
}

.services-closing-copy h2 {
  font-size: clamp(1.9rem, 2.6vw, 2.7rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin: 10px 0 14px;
  color: #ffffff;
  text-wrap: balance;
}

.services-closing-copy p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  text-wrap: pretty;
  max-width: 680px;
}

/* =========================
   SERVICES REVEAL
========================= */

.services-hero-content,
.services-scope-grid p,
.services-architecture .section-heading,
.services-architecture-intro,
.service-detail-row,
.services-closing-copy {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.services-hero-content.is-visible,
.services-scope-grid p.is-visible,
.services-architecture .section-heading.is-visible,
.services-architecture-intro.is-visible,
.service-detail-row.is-visible,
.services-closing-copy.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.services-scope-grid p:nth-child(2),
.service-detail-row:nth-child(2) {
  transition-delay: 0.06s;
}

.services-scope-grid p:nth-child(3),
.service-detail-row:nth-child(3) {
  transition-delay: 0.12s;
}

.service-detail-row:nth-child(4) {
  transition-delay: 0.18s;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
  .services-hero-content h1 {
    max-width: 680px;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
  }

  .services-hero-description {
    max-width: 680px;
  }

  .services-glow-blue {
    width: 220px;
    height: 180px;
  }

  .services-glow-yellow {
    width: 180px;
    height: 140px;
  }

  .services-line-box-1 {
    width: 220px;
    height: 130px;
  }

  .services-line-box-2 {
    width: 150px;
    height: 190px;
  }
}

@media (max-width: 1100px) {
  .services-hero {
    min-height: auto;
  }

  .services-hero-content {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 84px;
  }

  .services-hero-content h1 {
    max-width: 600px;
    font-size: clamp(2.1rem, 4.6vw, 3.35rem);
  }

  .services-hero-description {
    max-width: 600px;
    line-height: 1.78;
  }

  .services-line-v {
    right: 13%;
    height: 58%;
  }

  .services-line-h {
    right: 5%;
    width: 28%;
  }

  .services-line-box-1 {
    right: 16%;
    top: 22%;
    width: 190px;
    height: 118px;
  }

  .services-line-box-2 {
    right: 13%;
    top: 40%;
    width: 130px;
    height: 170px;
  }

  .services-glow-blue {
    width: 200px;
    height: 160px;
    right: 6%;
    top: 46%;
  }

  .services-glow-yellow {
    width: 150px;
    height: 110px;
    right: 2%;
    top: 18%;
  }

  .service-detail-head,
  .service-detail-body {
    grid-template-columns: 1fr;
  }

  .service-detail-lead,
  .services-closing-copy {
    max-width: 100%;
  }
}

@media (max-width: 820px) {
  .services-line-v,
  .services-line-h,
  .services-line-box-1,
  .services-line-box-2 {
    display: none;
  }

  .services-hero-content {
    padding-top: 64px;
    padding-bottom: 68px;
  }

  .services-hero-content h1 {
    max-width: 100%;
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1;
  }

  .services-hero-description {
    max-width: 100%;
    font-size: 0.95rem;
    line-height: 1.72;
  }

  .services-glow-blue {
    width: 180px;
    height: 140px;
    right: -4%;
    top: 58%;
  }

  .services-glow-yellow {
    width: 120px;
    height: 90px;
    right: -3%;
    top: 18%;
  }

  .services-architecture,
  .services-closing {
    padding: 56px 0 62px;
  }

  .services-scope-grid {
    grid-template-columns: 1fr;
  }

  .services-scope-grid p {
    min-height: auto;
    padding: 14px 0 14px 26px;
  }

  .services-scope-grid p:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .services-scope-grid p::before {
    left: 0;
  }

  .service-detail-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 30px 0 32px;
  }

  .service-detail-index {
    font-size: 0.85rem;
  }

  .service-detail-head h2 {
    font-size: 1.24rem;
  }

  .service-detail-lead,
  .service-detail-copy p,
  .service-detail-for p,
  .services-closing-copy p,
  .services-architecture-intro p {
    font-size: 0.9rem;
    line-height: 1.64;
  }

  .service-detail-body {
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .services-hero-content h1 {
    font-size: 2.15rem;
  }

  .services-hero-description {
    margin-top: 20px;
    font-size: 0.92rem;
    line-height: 1.68;
  }

  .services-scope-grid p {
    font-size: 0.82rem;
    line-height: 1.42;
    padding: 13px 0 13px 20px;
  }

  .service-detail-for h3,
  .service-detail-points h3 {
    font-size: 0.82rem;
  }

  .service-detail-points li,
  .services-architecture-intro p {
    font-size: 0.86rem;
  }

  .services-closing-copy h2 {
    line-height: 1.08;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-hero-content,
  .services-scope-grid p,
  .services-architecture .section-heading,
  .services-architecture-intro,
  .service-detail-row,
  .services-closing-copy {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}