.services-hero {
  width: min(1280px, 100% - 48px);
  height: calc(100svh - var(--site-header-height));
  min-height: 0;
  margin: auto;
  padding: clamp(24px, 5svh, 52px) 0 clamp(14px, 2.5svh, 26px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.services-grid-bg {
  position: absolute;
  inset: 0 -30vw 0 42%;
  background-image: linear-gradient(#ffffff08 1px, transparent 1px),
    linear-gradient(90deg, #ffffff08 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle at 45% 45%, #000, transparent 72%);
  mask-image: radial-gradient(circle at 45% 45%, #000, transparent 72%);
}

.services-hero-copy {
  position: absolute;
  z-index: 1;
  top: 48%;
  left: 0;
  max-width: min(62%, 760px);
  transform: translateY(-50%);
}

.services-hero h1 {
  max-width: none;
  margin-block: clamp(14px, 2.6svh, 28px) clamp(12px, 2svh, 20px);
  font-size: clamp(2.8rem, min(5.45vw, 8.35svh), 5.55rem);
  line-height: .94;
}

.hero-title-line {
  display: block;
  width: max-content;
  max-width: none;
  white-space: nowrap;
}

.services-hero-copy > p {
  color: #a7a9b4;
  max-width: 720px;
  font-size: clamp(.86rem, min(1.05rem, 2.15svh), 1.05rem);
  line-height: 1.65;
}

.services-dancing-nori {
  width: clamp(320px, min(31vw, 65svh), 470px);
  height: auto;
  position: absolute;
  z-index: 1;
  right: clamp(48px, 7vw, 110px);
  top: 47%;
  transform: translateY(-50%);
  filter: drop-shadow(0 28px 55px rgba(18, 77, 255, .22));
}

.services-index {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.services-index a {
  color: #868997;
  border-right: 1px solid var(--line);
  padding: clamp(13px, 2.2svh, 21px) 18px 2px;
  font-size: clamp(.58rem, min(.72rem, 1.55svh), .72rem);
  text-transform: uppercase;
  letter-spacing: .1em;
  transition: color .25s, background .25s;
}

.services-index a:nth-child(3n) { border-right: 0; }
.services-index a:nth-child(n+4) { border-top: 1px solid var(--line); }
.services-index a:first-child,
.services-index a:nth-child(4) { padding-left: 0; }
.services-index a:hover { color: #f4f1e9; background: #ffffff05; }
.services-index span { color: #527cff; margin-right: 9px; }

.service-group {
  padding-top: 62px;
  padding-bottom: 125px;
}

.service-group-heading {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 90px;
  align-items: end;
  margin-bottom: 58px;
}

.service-group-heading h2 {
  max-width: 780px;
  font-size: clamp(1.75rem, 3vw, 2.9rem);
}

.service-group-heading > p {
  color: #8f929f;
  line-height: 1.8;
  max-width: 450px;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}

.service-card {
  grid-column: span 2;
  min-height: 355px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff09, #ffffff04);
  display: flex;
  flex-direction: column;
  transition: transform .3s, border-color .3s, background .3s;
}

.service-card:nth-child(4) { grid-column: 2 / span 2; }
.service-card:hover {
  transform: translateY(-7px);
  border-color: #5d78ff80;
  background: linear-gradient(145deg, #244aa329, #ffffff04);
}

.featured-service { background: linear-gradient(145deg, #173b842e, #ffffff05); }
.service-number { color: #697083; font: 500 .7rem var(--font-geist-mono); }
.service-card h3, .regulatory-card h3 {
  letter-spacing: -.035em;
  font-size: 1.55rem;
  line-height: 1.12;
}
.service-card h3 { margin: 50px 0 16px; }
.service-card > p, .regulatory-card p {
  color: #8e909c;
  font-size: .9rem;
  line-height: 1.7;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 24px;
}
.service-tags span {
  color: #7d808e;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 9px;
  font-size: .65rem;
}

/* Keep all five Business Systems & E-commerce tiles easier to scan at once. */
.systems-services .service-card {
  min-height: 255px;
  padding: 22px;
}

.systems-services .service-card h3 {
  margin: 25px 0 12px;
}

.systems-services .service-tags {
  padding-top: 16px;
}

.service-band {
  border-block: 1px solid var(--line);
  background: linear-gradient(135deg, #0a0d16, #06070b);
}
.service-band .section-shell {
  padding-top: 62px;
  padding-bottom: 125px;
}
.contribution-list { border-top: 1px solid var(--line); }
.contribution-list article {
  display: grid;
  grid-template-columns: 70px .72fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .25s, background .25s;
}
.contribution-list article:hover { padding-left: 16px; background: #ffffff04; }
.contribution-list span { color: #5577ff; font: 500 .7rem var(--font-geist-mono); }
.contribution-list h3 { font-size: 1.55rem; letter-spacing: -.035em; }
.contribution-list p { color: #868997; line-height: 1.7; }

.regulatory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.regulatory-card {
  min-height: 350px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.regulatory-card::after {
  content: "";
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: #315dff;
  opacity: .08;
  filter: blur(70px);
  position: absolute;
  right: -100px;
  bottom: -100px;
}
.regulatory-card h3 { margin: 70px 0 18px; max-width: 310px; }
.regulatory-note {
  color: #666977;
  margin-top: 22px;
  font-size: .72rem;
  line-height: 1.6;
}

.custom-service {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 80px;
  align-items: center;
  padding-top: 65px;
}
.custom-service-copy h2 { max-width: 760px; }
.custom-service-copy > p {
  color: #9295a2;
  max-width: 620px;
  margin: 28px 0 34px;
  line-height: 1.75;
}
.custom-orbit {
  min-height: 430px;
  display: grid;
  place-items: center;
  position: relative;
}
.custom-orbit div {
  position: absolute;
  width: 330px;
  height: 330px;
  border: 1px solid #7792ff2c;
  border-radius: 50%;
  animation: spin 22s linear infinite;
}
.custom-orbit div:nth-child(2) {
  width: 420px;
  height: 420px;
  border-style: dashed;
  animation-duration: 34s;
  animation-direction: reverse;
}
.custom-orbit div::after {
  content: "";
  width: 7px;
  height: 7px;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #6f73ff;
  box-shadow: 0 0 18px #5f73ff;
}
.custom-orbit div:nth-child(2)::after {
  background: #8b5cff;
  box-shadow: 0 0 18px #8156ff;
}
.custom-orbit span {
  width: 245px;
  height: 245px;
  border-radius: 38%;
  border: 1px solid #ffffff1d;
  background: linear-gradient(145deg, #3156ba24, #ffffff04);
  box-shadow: inset 0 0 60px #315cff15, 0 30px 100px #0009;
}
.custom-orbit .custom-typing-nori {
  width: clamp(250px, 27vw, 390px);
  position: absolute;
  filter: drop-shadow(0 28px 55px rgba(20, 81, 255, .22));
}

nav [aria-current="page"] { color: #f4f1e9; }

@media (min-width: 641px) and (max-height: 650px) {
  .services-hero {
    padding-top: clamp(16px, 3svh, 24px);
    padding-bottom: 10px;
  }
  .services-hero h1 {
    margin-block: 10px;
    font-size: clamp(2.35rem, min(5.7vw, 8.2svh), 4.6rem);
  }
  .services-dancing-nori {
    width: clamp(255px, min(29vw, 57svh), 370px);
    top: 44%;
  }
  .services-hero-copy > p {
    font-size: .84rem;
    line-height: 1.45;
  }
  .status-pill { padding-block: 6px; }
  .services-index a { padding-top: 10px; }
}

@media (max-width: 980px) {
  .services-hero-copy { max-width: 62%; }
  .services-hero h1 { max-width: 850px; }
  .services-dancing-nori { right: 10px; }
  .services-index { gap: 0; }
  .services-index a { padding-inline: 10px; letter-spacing: .07em; }
  .service-group-heading { grid-template-columns: 1fr; gap: 24px; }
  .service-cards { grid-template-columns: 1fr 1fr; }
  .service-card, .service-card:nth-child(4) { grid-column: span 1; }
  .service-card:last-child { grid-column: 1 / -1; }
  .regulatory-grid { grid-template-columns: 1fr; }
  .regulatory-card { min-height: 280px; }
  .custom-service { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 640px) {
  .services-hero {
    width: calc(100% - 30px);
    height: auto;
    min-height: auto;
    padding: 68px 0 50px;
    overflow: visible;
  }
  .services-hero h1 {
    font-size: clamp(2.55rem, 12vw, 3.65rem);
    line-height: .98;
  }
  .hero-title-line {
    width: auto;
    max-width: 100%;
  }
  .services-hero-copy {
    max-width: none;
    position: relative;
    inset: auto;
    transform: none;
  }
  .services-dancing-nori {
    width: min(82vw, 360px);
    margin: 35px auto 0;
    position: relative;
    inset: auto;
    display: block;
    transform: none;
  }
  .services-index {
    position: relative;
    inset: auto;
    grid-template-columns: 1fr;
    margin-top: 35px;
  }
  .services-index a, .services-index a:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
  }
  .services-index a:nth-child(4) { padding-left: 0; }
  .service-group,
  .service-band .section-shell {
    padding-top: 45px;
    padding-bottom: 90px;
  }
  .custom-service { padding-top: 45px; }
  .service-cards { grid-template-columns: 1fr; }
  .service-card, .service-card:nth-child(4), .service-card:last-child {
    grid-column: 1;
    min-height: 320px;
  }
  .systems-services .service-card {
    min-height: 255px;
  }
  .contribution-list article {
    grid-template-columns: 42px 1fr;
    gap: 16px;
  }
  .contribution-list p { grid-column: 2; }
  .custom-orbit { min-height: 340px; transform: scale(.78); }
}

@media (max-width: 420px) {
  .services-hero {
    padding-top: 45px;
  }
  .services-hero h1 {
    font-size: clamp(2.35rem, 11.5vw, 3rem);
  }
  .services-hero-copy > p {
    font-size: .93rem;
    line-height: 1.65;
  }
  .service-group-heading h2,
  .custom-service-copy h2 {
    font-size: clamp(2.25rem, 11vw, 3rem);
  }
}
.service-detail-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 24px;
  color: #a9bbff;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid rgba(169, 187, 255, .4);
  padding-bottom: 5px;
  transition: color .2s ease, border-color .2s ease;
}

.service-detail-link:hover,
.service-detail-link:focus-visible {
  color: #fff;
  border-color: #fff;
}

.service-group-link {
  margin-top: 34px;
}

.custom-detail-link {
  margin-left: 22px;
  vertical-align: middle;
}

@media (max-width: 680px) {
  .custom-detail-link {
    display: flex;
    margin: 20px 0 0;
  }
}
