:root {
  --blue: #5b8ccf;
  --blue-dark: #3a6cb0;
  --charcoal: #0e1115;
  --ink: #151922;
  --muted: #687280;
  --line: #dce2ea;
  --light: #f3f4f6;
  --white: #ffffff;
  --success: #22a06b;
  --shadow: 0 22px 70px rgba(14, 17, 21, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: 4px;
  background: var(--white);
  color: var(--charcoal);
  padding: 10px 14px;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 17, 21, 0.86);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  font-weight: 800;
}

.brand__mark {
  width: 39px;
  height: 33px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand__name {
  font-size: 1.08rem;
  letter-spacing: 0;
}

.brand__name span {
  color: var(--blue);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-menu a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 0 13px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.93rem;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  display: none;
  place-items: center;
  cursor: pointer;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-toggle__icon {
  position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__icon::before {
  top: -6px;
}

.nav-toggle__icon::after {
  top: 6px;
}

.hero {
  min-height: 76svh;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: 44px;
  padding: 52px max(32px, calc((100vw - 1180px) / 2)) 34px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 12, 36, 0.96) 0%, rgba(7, 12, 36, 0.88) 46%, rgba(7, 12, 36, 0.24) 76%),
    url("assets/hero-background.png") center right / cover no-repeat,
    #070c24;
  overflow: hidden;
}

.hero__content {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  font-size: 4.25rem;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 590px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.15rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}

.button__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  position: relative;
}

.button__icon--arrow::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.button__icon--arrow::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 5px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.button__icon--send {
  border: 2px solid currentColor;
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(45deg) skew(-8deg, -8deg);
}

.button__icon--send::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 2px;
  height: 11px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-45deg);
}

.button--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(91, 140, 207, 0.26);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #6a9bdb;
  outline: none;
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.09);
  outline: none;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 560px;
  margin: 42px 0 0;
}

.hero__stats div {
  min-height: 88px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  padding: 4px 16px;
}

.hero__stats dt {
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 850;
  line-height: 1;
}

.hero__stats dd {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

.hero__media {
  justify-self: end;
  width: min(520px, 100%);
  min-height: 390px;
  position: relative;
}

.service-strip {
  background: var(--blue);
  color: var(--white);
}

.service-strip__inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  text-align: center;
}

.service-strip span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
  padding: 0 12px;
  font-size: 0.9rem;
  font-weight: 750;
}

.service-strip span:first-child {
  border-left: 0;
}

.section {
  padding: 86px max(32px, calc((100vw - 1180px) / 2));
}

.section--light {
  background: var(--light);
}

.section--white {
  background: var(--white);
}

.section--dark {
  background: var(--charcoal);
  color: var(--white);
}

.section__head {
  max-width: 760px;
  margin-bottom: 38px;
}

.section__head h2,
.split h2,
.ai-approach h2,
.case-studies__head h2,
.contact h2 {
  margin: 0;
  font-size: 2.45rem;
  line-height: 1.07;
  letter-spacing: 0;
}

.section__head p:not(.eyebrow),
.split p,
.contact p {
  color: var(--muted);
  font-size: 1rem;
}

.section--dark .split p {
  color: rgba(255, 255, 255, 0.68);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(14, 17, 21, 0.03);
}

.service-card:hover {
  border-color: rgba(91, 140, 207, 0.46);
  box-shadow: 0 14px 34px rgba(14, 17, 21, 0.09);
}

.service-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.service-card h3 {
  margin: 22px 24px 10px;
  font-size: 1.1rem;
}

.service-card p {
  margin: 0 24px 26px;
  color: var(--muted);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin: 0 24px 24px;
  color: var(--blue-dark);
  font-weight: 850;
}

.service-card__link:hover,
.service-card__link:focus-visible {
  color: var(--blue);
  outline: none;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: 52px;
  align-items: start;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: rgba(255, 255, 255, 0.82);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.72);
}

.solution-panel {
  display: grid;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.panel-row {
  min-height: 142px;
  display: grid;
  grid-template-columns: 54px 1fr;
  column-gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
}

.panel-row:first-child {
  border-top: 0;
}

.panel-row span {
  color: var(--blue);
  font-weight: 850;
}

.panel-row strong {
  display: block;
  font-size: 1.1rem;
}

.panel-row p {
  grid-column: 2;
  margin: 6px 0 0;
}

.ai-approach {
  padding: 86px max(32px, calc((100vw - 1180px) / 2));
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 12, 36, 0.96) 0%, rgba(7, 12, 36, 0.88) 52%, rgba(7, 12, 36, 0.72) 100%),
    url("assets/service-workflow-automation.jpg");
  background-position: center;
  background-size: cover;
}

.ai-approach__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 48px;
  align-items: start;
}

.ai-approach__copy {
  max-width: 560px;
}

.ai-approach__statement {
  margin: 18px 0 0;
  color: #86b7ef;
  font-size: 1.35rem;
  font-weight: 850;
}

.ai-approach__copy p:not(.eyebrow):not(.ai-approach__statement) {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.05rem;
}

.ai-approach__panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ai-approach__panel article {
  min-height: 168px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
}

.ai-approach__panel span {
  color: #86b7ef;
  font-size: 0.82rem;
  font-weight: 850;
}

.ai-approach__panel h3 {
  margin: 14px 0 8px;
  color: var(--white);
  font-size: 1.12rem;
}

.ai-approach__panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.case-studies {
  display: grid;
  gap: 28px;
  padding: 86px max(32px, calc((100vw - 1180px) / 2));
  color: var(--white);
  background: #070c24;
}

.case-studies__top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.case-studies__head {
  max-width: 820px;
}

.case-studies__head h2 {
  max-width: 760px;
}

.carousel-controls {
  display: flex;
  gap: 10px;
}

.carousel-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.carousel-button__icon {
  width: 22px;
  height: 22px;
  position: relative;
}

.carousel-button__icon::before {
  content: "";
  position: absolute;
  top: 5px;
  width: 11px;
  height: 11px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.carousel-button__icon--prev::before {
  left: 8px;
  transform: rotate(-45deg);
}

.carousel-button__icon--next::before {
  right: 8px;
  transform: rotate(135deg);
}

.case-carousel {
  overflow: hidden;
  border-radius: 8px;
}

.case-track {
  display: flex;
  transition: transform 360ms ease;
}

.case-card {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 42px;
  align-items: center;
  min-height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 36px;
  background: #090f2c;
}

.case-card[aria-hidden="true"] {
  pointer-events: none;
}

.case-card__copy h3 {
  margin: 0;
  color: var(--white);
  font-size: 2.45rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.case-card__copy p {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.case-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.case-metrics span {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 0 20px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.case-metrics strong {
  color: var(--white);
}

.case-cta {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  border-radius: 8px;
  padding: 0 28px;
  color: var(--white);
  font-weight: 850;
  background: #36a3da;
  box-shadow: 0 18px 34px rgba(54, 163, 218, 0.22);
}

.case-cta:hover,
.case-cta:focus-visible {
  background: #4ab3e8;
  outline: none;
}

.case-card__visual {
  min-height: 360px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #070b20;
}

.case-card__mockup {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
}

.carousel-dot {
  width: 34px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.23);
  cursor: pointer;
}

.carousel-dot.is-active {
  background: var(--blue);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tech-card {
  min-height: 178px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
}

.tech-card h3 {
  margin: 0 0 18px;
  font-size: 1.15rem;
}

.tech-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tech-tag {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d7e1ec;
  border-radius: 7px;
  padding: 8px 10px;
  color: #243144;
  background: #f7f9fc;
  font-size: 0.9rem;
  font-weight: 750;
}

.tech-tag img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 auto;
}

.tech-tag span {
  min-width: 0;
  line-height: 1.2;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.faq-list summary {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 20px;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.faq-list summary::after {
  content: "+";
  color: var(--blue-dark);
  font-size: 1.4rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.timeline article {
  min-height: 184px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 24px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(8, 14, 31, 0.18) 0%, rgba(8, 14, 31, 0.88) 100%),
    var(--timeline-bg);
  background-position: center;
  background-size: cover;
  box-shadow: 0 18px 42px rgba(14, 17, 21, 0.13);
}

.timeline__card--map {
  --timeline-bg: url("assets/service-workflow-automation.jpg");
}

.timeline__card--build {
  --timeline-bg: url("assets/hero-laptop.jpg");
}

.timeline__card--scale {
  --timeline-bg: url("assets/service-cloud-engineering.jpg");
}

.timeline h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 1.25rem;
}

.timeline p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.visual-language {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.visual-language img {
  width: 100%;
  border-radius: 8px;
}

.visual-language p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  gap: 50px;
  padding: 86px max(32px, calc((100vw - 1180px) / 2));
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(14, 17, 21, 0.98), rgba(14, 17, 21, 0.92)),
    #0e1115;
}

.contact p {
  color: rgba(255, 255, 255, 0.68);
}

.contact-meta {
  display: grid;
  gap: 8px;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.84);
}

.contact-meta a:hover,
.footer a:hover {
  color: var(--blue);
}

.contact-form {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 750;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  padding: 12px 13px;
}

.contact-form select option {
  color: var(--ink);
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(91, 140, 207, 0.8);
  outline-offset: 2px;
}

.contact-form .button {
  width: fit-content;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.footer {
  min-height: 96px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 24px max(32px, calc((100vw - 1180px) / 2));
  background: var(--blue-dark);
  color: var(--white);
}

.footer p {
  margin: 0;
  text-align: center;
  font-weight: 750;
}

.footer > a:last-child {
  justify-self: end;
}

.service-detail-hero {
  min-height: 560px;
  display: grid;
  align-items: end;
  padding: 74px max(32px, calc((100vw - 1180px) / 2));
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 12, 36, 0.97) 0%, rgba(7, 12, 36, 0.86) 48%, rgba(7, 12, 36, 0.35) 100%),
    var(--service-hero-image),
    #070c24;
  background-position: center;
  background-size: cover;
}

.service-detail-hero--web {
  --service-hero-image: url("assets/service-web-platforms.jpg");
}

.service-detail-hero--mobile {
  --service-hero-image: url("assets/service-mobile-apps.jpg");
}

.service-detail-hero--ai {
  --service-hero-image: url("assets/service-workflow-automation.jpg");
}

.service-detail-hero--cloud {
  --service-hero-image: url("assets/service-cloud-engineering.jpg");
}

.service-detail-hero--ux {
  --service-hero-image: url("assets/digital-mockup.jpg");
}

.service-detail-hero__content {
  max-width: 760px;
}

.service-detail-hero h1 {
  margin: 0;
  font-size: 3.75rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.service-detail-hero__lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.15rem;
}

.service-detail-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.service-detail {
  padding: 82px max(32px, calc((100vw - 1180px) / 2));
  background: var(--white);
}

.service-detail__intro {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: 44px;
  align-items: start;
}

.service-detail__intro h2,
.service-detail__section h2 {
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.service-detail__intro p,
.service-detail__section p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.service-detail__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-detail__list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  background: #f8fafc;
}

.service-detail__list strong {
  display: block;
  color: var(--ink);
  font-size: 1.02rem;
}

.service-detail__list span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.service-detail__section {
  margin-top: 64px;
}

.service-detail__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.service-detail__card {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--light);
}

.service-detail__card span {
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 850;
}

.service-detail__card h3 {
  margin: 14px 0 8px;
  font-size: 1.16rem;
}

.service-detail__card p {
  margin: 0;
}

.service-detail__outcome {
  margin-top: 64px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 34px;
  align-items: center;
  border-radius: 8px;
  padding: 34px;
  color: var(--white);
  background: #070c24;
}

.service-detail__outcome h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.08;
}

.service-detail__outcome p {
  color: rgba(255, 255, 255, 0.74);
}

.service-detail__outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.service-detail__outcome-grid div {
  min-height: 118px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.service-detail__outcome-grid strong {
  display: block;
  color: var(--white);
}

.service-detail__outcome-grid span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.7);
}

.case-detail-hero {
  min-height: 600px;
  display: grid;
  align-items: end;
  padding: 76px max(32px, calc((100vw - 1180px) / 2));
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 12, 36, 0.98) 0%, rgba(7, 12, 36, 0.86) 52%, rgba(7, 12, 36, 0.34) 100%),
    var(--case-hero-image),
    #070c24;
  background-position: center;
  background-size: cover;
}

.case-detail-hero--orbitcart {
  --case-hero-image: url("assets/case-orbitcart.jpg");
}

.case-detail-hero--leaselens {
  --case-hero-image: url("assets/case-leaselens.jpg");
}

.case-detail-hero--flowdesk {
  --case-hero-image: url("assets/case-flowdesk.jpg");
}

.case-detail-hero--medsync {
  --case-hero-image: url("assets/case-medsync.jpg");
}

.case-detail-hero--finsight {
  --case-hero-image: url("assets/case-finsight.jpg");
}

.case-detail-hero__content {
  max-width: 780px;
}

.case-detail-hero h1 {
  margin: 0;
  font-size: 3.55rem;
  line-height: 1;
  letter-spacing: 0;
}

.case-detail-hero__lead {
  max-width: 690px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
}

.case-detail-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.case-detail {
  padding: 82px max(32px, calc((100vw - 1180px) / 2));
  background: var(--white);
}

.case-detail__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 46px;
}

.case-detail__stats div {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #f8fafc;
}

.case-detail__stats span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.case-detail__stats strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.1;
}

.case-detail__overview {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 44px;
  align-items: start;
}

.case-detail__overview h2,
.case-detail__section h2,
.case-detail__feature h2 {
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.case-detail__overview p,
.case-detail__section p,
.case-detail__feature p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.case-detail__image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--light);
}

.case-detail__image img {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
}

.case-detail__section {
  margin-top: 64px;
}

.case-detail__section > .eyebrow {
  margin-bottom: 12px;
}

.case-detail__blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.case-detail__blocks--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-detail__block {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--light);
}

.case-detail__block span {
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 850;
}

.case-detail__block h3 {
  margin: 14px 0 8px;
  font-size: 1.16rem;
}

.case-detail__block p {
  margin: 0;
}

.case-detail__feature {
  margin-top: 64px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 32px;
  align-items: start;
  border-radius: 8px;
  padding: 36px;
  color: var(--white);
  background: #070c24;
}

.case-detail__feature .eyebrow {
  color: #8fb9ff;
}

.case-detail__feature p {
  color: rgba(255, 255, 255, 0.72);
}

.case-detail__feature-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-detail__feature-list li {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
}

.case-detail__feature-list strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
}

.case-detail__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.case-detail__stack span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 750;
}

.case-detail__cta {
  margin-top: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border-radius: 8px;
  padding: 34px;
  color: var(--white);
  background: #070c24;
}

.case-detail__cta h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.08;
}

.case-detail__cta p {
  max-width: 680px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 920px) {
  .nav-toggle {
    display: grid;
  }

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px;
    background: rgba(14, 17, 21, 0.98);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    justify-content: center;
  }

  .hero,
  .split,
  .ai-approach__grid,
  .service-detail__intro,
  .service-detail__outcome,
  .case-detail__overview,
  .case-detail__feature,
  .case-detail__cta,
  .case-card,
  .contact {
    grid-template-columns: 1fr;
  }

  .case-studies__top {
    align-items: start;
  }

  .case-card {
    gap: 30px;
  }

  .case-card__visual {
    min-height: 340px;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
    gap: 30px;
  }

  .hero__media {
    justify-self: stretch;
    width: 100%;
    min-height: 340px;
  }

  .service-strip__inner,
  .services-grid,
  .service-detail__cards,
  .case-detail__stats,
  .case-detail__blocks,
  .case-detail__blocks--four,
  .tech-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-strip span:nth-child(odd) {
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .nav {
    width: min(100% - 24px, 1180px);
  }

  .hero,
  .section,
  .ai-approach,
  .service-detail,
  .service-detail-hero,
  .case-detail,
  .case-detail-hero,
  .case-studies,
  .contact,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .service-detail-hero h1 {
    font-size: 2.8rem;
  }

  .case-detail-hero h1 {
    font-size: 2.65rem;
  }

  .hero__lead {
    margin-top: 16px;
  }

  .hero__actions {
    margin-top: 24px;
  }

  .section__head h2,
  .split h2,
  .case-studies__head h2,
  .contact h2 {
    font-size: 2rem;
  }

  .case-studies__top {
    display: grid;
  }

  .carousel-controls {
    justify-content: start;
  }

  .case-card {
    min-height: auto;
    padding: 22px;
  }

  .case-card__copy h3 {
    font-size: 2rem;
  }

  .case-card__copy p {
    font-size: 1rem;
  }

  .case-metrics {
    display: grid;
    grid-template-columns: 1fr;
  }

  .case-metrics span {
    width: 100%;
    justify-content: center;
  }

  .case-cta {
    width: 100%;
  }

  .case-card__visual {
    min-height: 300px;
  }

  .case-card__mockup {
    min-height: 300px;
  }

  .hero__stats,
  .ai-approach__panel,
  .services-grid,
  .service-detail__cards,
  .service-detail__outcome-grid,
  .case-detail__stats,
  .case-detail__blocks,
  .case-detail__blocks--four,
  .tech-grid,
  .timeline,
  .service-strip__inner,
  .visual-language,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 26px;
  }

  .hero__stats div {
    min-height: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 0;
    padding: 6px 8px;
  }

  .case-detail__feature,
  .case-detail__cta {
    padding: 24px;
  }

  .hero__stats div:first-child {
    border-left: 0;
  }

  .hero__stats dt {
    font-size: 1.35rem;
  }

  .hero__stats dd {
    font-size: 0.78rem;
  }

  .hero__media {
    min-height: 238px;
  }

  .service-strip span {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .service-strip span:first-child {
    border-top: 0;
  }

  .panel-row {
    grid-template-columns: 1fr;
  }

  .panel-row p {
    grid-column: 1;
  }

  .contact-form .button {
    width: 100%;
  }

  .footer {
    justify-items: start;
  }

  .footer p {
    text-align: left;
  }

  .footer > a:last-child {
    justify-self: start;
  }
}
