/* Services page — scroll chapters, highlights, quote */

#ux-design {
  background: var(--bg);
}

#ux-design .service-chapter__sticky {
  background: var(--bg);
}

.services-highlights {
  padding: clamp(72px, 10vw, 120px) 0;
  border-bottom: 1px solid var(--border);
}

.services-highlights__header {
  margin-bottom: clamp(36px, 5vw, 56px);
}

.services-highlights__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
}

.services-highlights__tile {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 2.4vw, 28px);
  border: 1px solid rgba(240, 237, 232, 0.10);
  background: rgba(17, 17, 17, 0.42);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.services-highlights__tile:hover {
  border-color: rgba(242, 153, 74, 0.42);
  background: rgba(26, 26, 26, 0.62);
  transform: translateY(-2px);
}

.services-highlights__tile:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.services-highlights__num {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--orange);
}

.services-highlights__title {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
}

.services-highlights__hook {
  font-size: 14px;
  line-height: 1.5;
  color: var(--silver);
}

.service-chapter {
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid var(--border);
}

.service-chapter__sticky {
  position: relative;
  display: grid;
  align-items: center;
  padding: clamp(92px, 12vw, 128px) 0;
}

.service-chapter__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px) clamp(40px, 6vw, 88px);
  align-items: center;
}

.service-chapter__visual {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-chapter__content {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 40px);
  align-self: center;
}

.service-card {
  width: 100%;
  max-width: 520px;
  align-self: flex-start;
  position: relative;
  z-index: 2;
  padding: 32px;
  border: 1px solid rgba(240, 237, 232, 0.12);
  background: rgba(17, 17, 17, 0.70);
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.service-chapter__visual-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(240, 237, 232, 0.10);
  background: var(--elevated);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 32px 80px rgba(0, 0, 0, 0.32);
}

.service-chapter__visual-frame img,
.service-chapter__visual-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-chapter__visual-video {
  position: absolute;
  inset: 0;
}

@media (prefers-reduced-motion: reduce) {
  .service-chapter__visual-video {
    display: none;
  }
}

.service-chapter__video-wrap {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.service-chapter--video-active .service-chapter__video-wrap {
  opacity: 1;
}

.service-chapter__video-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 177.78%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
}

.service-chapter__visual-fallback {
  position: absolute;
  inset: 0;
}

.service-chapter__proof {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.service-chapter__proof a {
  color: var(--silver);
  text-decoration: none;
  transition: color 0.2s ease;
}

.service-chapter__proof a:hover {
  color: var(--orange);
}

.service-chapter__index {
  display: block;
  color: var(--orange);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.16em;
  margin-bottom: 28px;
}

.service-chapter__heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.service-chapter__body {
  max-width: 700px;
  display: grid;
  gap: 20px;
  color: var(--silver);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.65;
}

.service-chapter--reverse .service-chapter__visual {
  grid-column: 1;
}

.service-chapter--reverse .service-chapter__content {
  grid-column: 2;
}

#ux-design .service-chapter__visual {
  gap: clamp(20px, 3vw, 32px);
}

#ux-design .service-chapter__stage {
  align-items: start;
}

#ux-design .service-chapter__content {
  align-self: start;
}

#ai-integration .service-chapter__stage {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  align-items: stretch;
  gap: clamp(40px, 6vw, 72px);
}

#ai-integration .service-chapter__visual,
#ai-integration.service-chapter--reverse .service-chapter__visual {
  grid-column: 1;
  grid-row: 1;
}

#ai-integration .service-chapter__content,
#ai-integration.service-chapter--reverse .service-chapter__content {
  grid-column: 1;
  grid-row: 2;
  align-self: stretch;
  width: 100%;
}

#ai-integration .service-chapter__visual-frame {
  aspect-ratio: 16 / 9;
}

#ai-integration .service-chapter__heading,
#ai-integration .service-chapter__body {
  max-width: none;
}

#ai-integration .service-card {
  max-width: none;
}

.service-card--dual .service-card__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
}

.service-card__subtitle {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 16px;
  font-weight: 600;
}

#startup-scaling .service-chapter__visual-frame {
  aspect-ratio: 606 / 744;
  border: none;
  box-shadow: none;
  background: transparent;
}

#startup-scaling .service-chapter__visual-frame img {
  object-fit: contain;
}

#startup-scaling .service-chapter__logos {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2.5vw, 28px);
  width: 100%;
  margin-top: clamp(24px, 3vw, 36px);
  list-style: none;
  padding: 0;
}

#startup-scaling .service-chapter__logos li {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
}

#startup-scaling .service-chapter__logos img {
  display: block;
  height: clamp(28px, 3vw, 40px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.9;
}

.service-card h3 {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 22px;
  font-weight: 600;
}

.service-card ul {
  list-style: none;
  display: grid;
  gap: 16px;
}

.service-card li {
  position: relative;
  padding-left: 24px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

.service-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 9px;
  height: 1px;
  background: var(--orange);
}

.services-quote {
  padding: clamp(110px, 14vw, 190px) 0;
  border-bottom: 1px solid var(--border);
}

.quote-inner {
  max-width: 960px;
  margin-left: auto;
}

.quote-mark {
  color: var(--orange);
  font-size: clamp(64px, 10vw, 120px);
  line-height: 0.8;
  display: block;
  margin-bottom: 24px;
}

.quote-text {
  font-size: var(--text-h3);
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 32px;
}

.quote-attr {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.quote-attr strong {
  display: block;
  color: var(--silver);
  font-weight: 500;
}

@media (max-width: 1024px) {
  .services-highlights__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-chapter__stage {
    grid-template-columns: 1fr;
  }

  .service-chapter__visual,
  .service-chapter--reverse .service-chapter__visual {
    grid-column: 1;
    grid-row: 1;
  }

  .service-chapter__content,
  .service-chapter--reverse .service-chapter__content {
    grid-column: 1;
    grid-row: 2;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .services-page-intro {
    padding: 132px 0 72px;
  }

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

  .service-chapter__sticky {
    padding: 72px 0;
  }

  .service-chapter__body {
    font-size: 17px;
  }

  .service-card {
    padding: 26px;
    max-width: none;
  }

  .service-card--dual .service-card__columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-highlights__tile {
    transition-duration: 0.001ms;
  }

  .service-chapter__video-wrap {
    display: none;
  }

  .service-chapter__visual-video {
    display: none;
  }
}
