/* ==========================================================================
   Service detail pages  (/big-data, /ai-agents, and the rest)
   --------------------------------------------------------------------------
   Styles the blocks that are unique to these pages. The hero and card grid
   reuse .exp-* from expertise.css; the closing CTA reuses .ai-cta-* from
   service-common.css. Everything here is prefixed .sd- so it cannot collide
   with those.
   ========================================================================== */

.sd-service-detail {
  --sd-red: #ce403d;
  --sd-red-2: #ef6a66;
  --sd-ink: #141414;
  --sd-text: #4a4a4a;
  --sd-muted: #8a7f7e;
  --sd-line: #ece4e2;
  --sd-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

.sd-section {
  padding: 70px 0;
}

.sd-section-alt {
  background: #faf8f6;
}

/* Visually hidden, still read by screen readers */
.sd-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* The hero uses .ai-hero-* from service-common.css, exactly as ai-services.php
   does, so these pages match the other service pages. Only the blocks below
   are specific to them. */

/* The subtitle sits BELOW the title, centred, exactly as on ai-services.php
   and the other service pages. A flex row here put the two on one line and
   shrank the subtitle into small uppercase text beside the heading. */
.sd-service-detail .ai-hero-top {
  display: block;
  text-align: center;
  margin-bottom: 42px;
}

.sd-service-detail .ai-hero-title {
  margin-bottom: 18px;
}

/* main.css:15988 styles .ai-hero-subtitle as a small uppercase inline-block
   pill (a leftover theme component). service-common.css overrides only some of
   it, so display, padding, background and text-transform leak through and the
   subtitle ends up on the same line as the H1 in small caps. ai-services.css
   resets them for /ai-services; these pages need the same reset. */
.sd-service-detail .ai-hero-subtitle {
  display: block;
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  font-size: 18px;
  line-height: 1.7;
  font-family: p_r !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: #636368 !important;
  background: transparent;
  backdrop-filter: none;
  border-radius: 0;
}

.sd-service-detail .ai-hero-svg-container {
  min-height: 360px;
  padding: 18px;
  overflow: visible;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #fbf7f6 100%);
  border: 1px solid rgba(206, 64, 61, 0.12);
}

.sd-service-detail .ai-hero-svg-illustration {
  display: block;
  width: min(100%, 540px);
  max-height: 400px;
  aspect-ratio: 5 / 4;
  object-fit: contain;
  overflow: visible;
}

/* ── Card grid: six items rather than the four expertise.css assumes ─────── */

.exp-cards-grid.sd-cards-6 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.exp-cards-grid.sd-cards-6 .exp-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.exp-cards-grid.sd-cards-6 .exp-card p {
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

/* ── Section heading used by the richer sections ─────────────────────────── */

.sd-head {
  max-width: 780px;
  margin: 0 0 42px;
}

.sd-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sd-red);
}


.sd-head .exp-section-title {
  margin-bottom: 14px;
}

.sd-lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--sd-text);
}

/* ── Reveal on scroll ────────────────────────────────────────────────────── */
/* Blocks are only hidden once the page script has added .sd-js, so the content
   is always visible if JavaScript does not run. */

@keyframes sdRise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sdPanelIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sdSlideRight {
  from {
    opacity: 0;
    transform: translateX(-22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sdPop {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-12deg);
  }
  70% {
    opacity: 1;
    transform: scale(1.12) rotate(3deg);
  }
  100% {
    transform: none;
  }
}

.sd-js [data-sd-reveal]:not(.is-in) .sd-show-card,
.sd-js [data-sd-reveal]:not(.is-in) .sd-cmp tbody tr,
.sd-js [data-sd-reveal]:not(.is-in) .sd-layer {
  opacity: 0;
  transform: translateY(26px);
}

[data-sd-reveal].is-in .sd-show-card,
[data-sd-reveal].is-in .sd-cmp tbody tr,
[data-sd-reveal].is-in .sd-layer {
  animation: sdRise 0.7s var(--sd-ease) backwards;
  animation-delay: calc(var(--i, 0) * 90ms);
}

/* ── Product types ───────────────────────────────────────────────────────── */

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

.sd-show-card {
  position: relative;
  padding: 30px 26px 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--sd-line);
  border-radius: 18px;
  transition: transform 0.35s var(--sd-ease), box-shadow 0.35s ease, border-color 0.35s ease;
}

.sd-show-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sd-red), var(--sd-red-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--sd-ease);
}

.sd-show-card:hover {
  transform: translateY(-6px);
  border-color: rgba(206, 64, 61, 0.3);
  box-shadow: 0 22px 44px rgba(206, 64, 61, 0.12);
}

.sd-show-card:hover::before {
  transform: scaleX(1);
}

.sd-show-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 15px;
  font-size: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--sd-red), var(--sd-red-2));
  box-shadow: 0 10px 22px rgba(206, 64, 61, 0.28);
  transition: transform 0.4s var(--sd-ease);
}

.sd-show-card:hover .sd-show-icon {
  transform: rotate(-8deg) scale(1.07);
}

.sd-show-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
}

.sd-show-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--sd-text);
}



/* ── Comparison table ────────────────────────────────────────────────────── */

.sd-cmp-wrap {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--sd-line);
  border-radius: 20px;
  box-shadow: 0 22px 54px rgba(20, 20, 20, 0.06);
}

.sd-cmp {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 15.5px;
}

.sd-cmp thead th {
  padding: 20px 26px;
  text-align: left;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sd-muted);
  background: #faf6f5;
}

.sd-cmp thead th.sd-cmp-native {
  color: #fff;
  background: linear-gradient(135deg, var(--sd-red), var(--sd-red-2));
}

.sd-cmp tbody tr {
  border-top: 1px solid var(--sd-line);
  transition: background 0.25s ease;
}

.sd-cmp tbody tr:hover {
  background: #fffaf9;
}

.sd-cmp tbody th {
  width: 20%;
  padding: 20px 26px;
  text-align: left;
  vertical-align: top;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--sd-ink);
}

.sd-cmp td {
  width: 40%;
  padding: 20px 26px;
  vertical-align: top;
  line-height: 1.55;
  color: var(--sd-text);
  border-left: 1px solid var(--sd-line);
}

.sd-cmp td.sd-cmp-native {
  color: var(--sd-ink);
  background: linear-gradient(90deg, rgba(206, 64, 61, 0.07), rgba(206, 64, 61, 0.02));
}

.sd-cmp td span {
  display: inline;
}

.sd-cmp-ic {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin: 0 12px -4px 0;
  border-radius: 50%;
  font-size: 10px;
}

.sd-cmp-ic-no {
  color: #a79c9b;
  background: #f1ebe9;
}

.sd-cmp-ic-yes {
  color: #fff;
  background: linear-gradient(135deg, var(--sd-red), var(--sd-red-2));
  box-shadow: 0 4px 10px rgba(206, 64, 61, 0.3);
}

/* ── Reference architecture ──────────────────────────────────────────────── */

@keyframes sdScanBody {
  0%,
  100% {
    border-color: var(--sd-line);
    box-shadow: 0 0 0 rgba(206, 64, 61, 0);
  }
  4%,
  16% {
    border-color: rgba(206, 64, 61, 0.55);
    box-shadow: 0 16px 36px rgba(206, 64, 61, 0.15);
  }
  24% {
    border-color: var(--sd-line);
    box-shadow: 0 0 0 rgba(206, 64, 61, 0);
  }
}

@keyframes sdScanNum {
  0%,
  24%,
  100% {
    transform: none;
    box-shadow: 0 8px 18px rgba(206, 64, 61, 0.26);
  }
  4%,
  16% {
    transform: scale(1.14);
    box-shadow: 0 0 0 7px rgba(206, 64, 61, 0.16), 0 10px 22px rgba(206, 64, 61, 0.4);
  }
}

.sd-layers {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sd-layers::before {
  content: '';
  position: absolute;
  left: 33px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(180deg, rgba(206, 64, 61, 0), rgba(206, 64, 61, 0.38) 14%, rgba(206, 64, 61, 0.38) 86%, rgba(206, 64, 61, 0));
}

.sd-layer {
  position: relative;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: start;
}

.sd-layer-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 22px 0 0 11px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, var(--sd-red), var(--sd-red-2));
  box-shadow: 0 8px 18px rgba(206, 64, 61, 0.26);
}

.sd-layer-body {
  padding: 22px 28px 24px;
  background: #fff;
  border: 1px solid var(--sd-line);
  border-radius: 18px;
}

.sd-layers.is-in .sd-layer-body {
  animation: sdScanBody 10s linear infinite;
  animation-delay: calc(var(--i, 0) * 1.8s + 1.2s);
}

.sd-layers.is-in .sd-layer-num {
  animation: sdScanNum 10s linear infinite;
  animation-delay: calc(var(--i, 0) * 1.8s + 1.2s);
}

.sd-layer-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.3;
}

.sd-layer-body p {
  margin: 0;
  max-width: 760px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--sd-text);
}

.sd-layer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.sd-layer-tags li {
  padding: 5px 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sd-red);
  background: rgba(206, 64, 61, 0.08);
  border: 1px solid rgba(206, 64, 61, 0.16);
  border-radius: 999px;
}

/* ── Problems this solves ────────────────────────────────────────────────── */

.sd-challenge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.sd-challenge {
  background: #fff;
  border: 1px solid rgba(206, 64, 61, 0.18);
  border-left: 4px solid #ce403d;
  border-radius: 12px;
  padding: 26px 28px;
}

.sd-challenge h3 {
  font-size: 18px;
  font-style: italic;
  color: #141414;
  margin-bottom: 10px;
}

.sd-challenge p {
  font-size: 15px;
  line-height: 1.65;
  color: #4a4a4a;
  margin: 0;
}

/* ── How we work ─────────────────────────────────────────────────────────── */

.sd-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.sd-process-step {
  position: relative;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
}

.sd-process-num {
  display: inline-block;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: rgba(206, 64, 61, 0.28);
  margin-bottom: 12px;
}

.sd-process-step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.sd-process-step p {
  font-size: 15px;
  line-height: 1.6;
  color: #4a4a4a;
  margin: 0;
}

/* ── Use cases by industry ───────────────────────────────────────────────── */
/* Own class names (.sd-ind-*) on purpose: the generic .tab / .tab-pane /
   .tab-content names are claimed by Bootstrap and by landing.js, which is only
   loaded on the home page, so the previous version never switched tabs here. */

.sd-ind-tablist {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}

.sd-ind-tab {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-align: left;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.25;
  color: #2a2a2e;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--sd-line);
  border-radius: 14px;
  transition: transform 0.3s var(--sd-ease), box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.sd-ind-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--sd-red), var(--sd-red-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--sd-ease);
}

.sd-ind-tab > * {
  position: relative;
  z-index: 1;
}

.sd-ind-tab-ic {
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 16px;
  color: var(--sd-red);
  background: rgba(206, 64, 61, 0.1);
  border-radius: 11px;
  transition: background 0.35s ease, color 0.35s ease, transform 0.4s var(--sd-ease);
}

.sd-ind-tab:hover:not(.is-active) {
  transform: translateY(-2px);
  border-color: rgba(206, 64, 61, 0.35);
  box-shadow: 0 12px 26px rgba(20, 20, 20, 0.06);
}

.sd-ind-tab.is-active {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(206, 64, 61, 0.3);
}

.sd-ind-tab.is-active::before {
  transform: scaleX(1);
}

.sd-ind-tab.is-active .sd-ind-tab-ic {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.06);
}

.sd-ind-tab:focus-visible,
.sd-ind-panel:focus-visible {
  outline: 2px solid var(--sd-red);
  outline-offset: 3px;
}

.sd-ind-panel {
  display: grid;
  grid-template-columns: minmax(0, 390px) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.sd-ind-panel[hidden] {
  display: none;
}

.sd-ind-panel.is-active {
  animation: sdPanelIn 0.5s var(--sd-ease);
}

/* summary card */

.sd-ind-summary {
  position: relative;
  overflow: hidden;
  padding: 34px 30px 30px;
  color: #fff;
  background: linear-gradient(155deg, #241719 0%, #3d1b1d 52%, #8f2d2b 130%);
  border-radius: 22px;
  box-shadow: 0 26px 60px rgba(60, 20, 22, 0.28);
}

.sd-ind-summary::before,
.sd-ind-summary::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.sd-ind-summary::before {
  right: -70px;
  top: -70px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(239, 106, 102, 0.45), transparent 68%);
}

.sd-ind-summary::after {
  left: -50px;
  bottom: -70px;
  width: 210px;
  height: 210px;
  background: radial-gradient(circle, rgba(206, 64, 61, 0.3), transparent 70%);
}

.sd-ind-summary > * {
  position: relative;
  z-index: 1;
}

.sd-ind-panel.is-active .sd-ind-summary {
  animation: sdSlideRight 0.6s var(--sd-ease) backwards;
}

.sd-ind-badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  font-size: 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--sd-red), var(--sd-red-2));
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(206, 64, 61, 0.45);
}

.sd-ind-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.sd-ind-summary h3 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.2;
  color: #fff;
}

.sd-ind-desc {
  margin: 0 0 28px;
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
}

/* animated workflow strip: a packet crosses four stages, each lighting as it arrives */

@keyframes sdPacket {
  0% {
    left: calc(12.5% - 6px);
    opacity: 0;
  }
  3% {
    opacity: 1;
  }
  75% {
    left: calc(87.5% - 6px);
    opacity: 1;
  }
  80%,
  100% {
    left: calc(87.5% - 6px);
    opacity: 0;
  }
}

@keyframes sdNode {
  0%,
  100% {
    background: #3a2527;
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 0 0 0 rgba(239, 106, 102, 0);
    transform: scale(1);
  }
  3%,
  20% {
    background: var(--sd-red-2);
    border-color: #fff;
    box-shadow: 0 0 0 6px rgba(239, 106, 102, 0.28);
    transform: scale(1.1);
  }
  30% {
    background: #3a2527;
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 0 0 0 rgba(239, 106, 102, 0);
    transform: scale(1);
  }
}

@keyframes sdNodeText {
  0%,
  100% {
    color: rgba(255, 255, 255, 0.62);
  }
  3%,
  20% {
    color: #fff;
  }
  30% {
    color: rgba(255, 255, 255, 0.62);
  }
}

.sd-ind-flow {
  position: relative;
  display: flex;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.sd-ind-flow::before {
  content: '';
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: 11px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.sd-ind-flow::after {
  content: '';
  position: absolute;
  top: 6px;
  left: calc(12.5% - 6px);
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 14px 4px rgba(239, 106, 102, 0.85);
  animation: sdPacket 8s linear infinite;
}

.sd-ind-flow li {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.sd-ind-flow li::before {
  content: '';
  width: 24px;
  height: 24px;
  background: #3a2527;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  animation: sdNode 8s ease infinite;
  animation-delay: calc(var(--n, 0) * 2s);
}

.sd-ind-flow li span {
  color: rgba(255, 255, 255, 0.62);
  animation: sdNodeText 8s ease infinite;
  animation-delay: calc(var(--n, 0) * 2s);
}



/* use-case cards */

.sd-ind-cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 18px;
}

.sd-ind-case {
  position: relative;
  overflow: hidden;
  padding: 26px 24px 24px;
  background: #fff;
  border: 1px solid var(--sd-line);
  border-radius: 18px;
  transition: transform 0.3s var(--sd-ease), box-shadow 0.3s ease, border-color 0.3s ease;
}

.sd-ind-case::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sd-red), var(--sd-red-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--sd-ease);
}

.sd-ind-case:hover {
  transform: translateY(-5px);
  border-color: rgba(206, 64, 61, 0.3);
  box-shadow: 0 20px 42px rgba(206, 64, 61, 0.11);
}

.sd-ind-case:hover::before {
  transform: scaleX(1);
}

.sd-ind-panel.is-active .sd-ind-case {
  animation: sdRise 0.6s var(--sd-ease) backwards;
  animation-delay: calc(var(--i, 0) * 90ms + 140ms);
}

.sd-ind-num {
  position: absolute;
  top: 10px;
  right: 18px;
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(206, 64, 61, 0.09);
  transition: color 0.3s ease, transform 0.4s var(--sd-ease);
}

.sd-ind-case:hover .sd-ind-num {
  color: rgba(206, 64, 61, 0.2);
  transform: translateY(-3px);
}

.sd-ind-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--sd-red), var(--sd-red-2));
  border-radius: 13px;
  box-shadow: 0 10px 22px rgba(206, 64, 61, 0.26);
}

.sd-ind-panel.is-active .sd-ind-icon {
  animation: sdPop 0.55s var(--sd-ease) backwards;
  animation-delay: calc(var(--i, 0) * 90ms + 320ms);
}

.sd-ind-case h4 {
  margin: 0 0 8px;
  padding-right: 44px;
  font-size: 18px;
  line-height: 1.3;
  color: var(--sd-ink);
}

.sd-ind-case p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--sd-text);
}

/* ── Technology chips ────────────────────────────────────────────────────── */

.sd-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sd-tech-chip {
  padding: 9px 18px;
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 999px;
  font-size: 15px;
  color: #141414;
}

/* ── FAQs ────────────────────────────────────────────────────────────────── */

.sd-faq-list {
  max-width: 900px;
}

.sd-faq {
  border-bottom: 1px solid #e8e8e8;
  padding: 20px 0;
}

.sd-faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding-right: 36px;
  font-size: 18px;
  font-weight: 600;
  color: #141414;
}

.sd-faq summary::-webkit-details-marker {
  display: none;
}

.sd-faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: #ce403d;
}

.sd-faq[open] summary::after {
  content: '\2013'; /* en dash */
}

.sd-faq p {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: #4a4a4a;
  max-width: 820px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1199px) {
  .exp-cards-grid.sd-cards-6,
  .sd-show-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sd-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sd-ind-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 991px) {
  .sd-challenge-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  /* ten industries do not fit one row: let the row scroll sideways */
  .sd-ind-tablist {
    display: flex;
    gap: 10px;
    padding-bottom: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .sd-ind-tablist::-webkit-scrollbar {
    display: none;
  }
  .sd-ind-tab {
    flex: 0 0 auto;
    min-width: 210px;
    scroll-snap-align: center;
  }
}

@media (max-width: 767px) {
  .sd-section {
    padding: 48px 0;
  }
  .sd-head {
    margin-bottom: 30px;
  }
  .sd-lead {
    font-size: 16px;
  }
  .sd-service-detail .ai-hero-title {
    margin-bottom: 12px;
  }
  .sd-service-detail .ai-hero-subtitle {
    max-width: 100%;
    font-size: 16px;
  }
  .sd-service-detail .ai-hero-svg-container {
    min-height: 0;
    padding: 12px;
  }
  .exp-cards-grid.sd-cards-6,
  .sd-show-grid,
  .sd-process-grid,
  .sd-ind-cases {
    grid-template-columns: minmax(0, 1fr);
  }
  .sd-ind-summary {
    padding: 28px 22px 24px;
  }
  .sd-ind-summary h3 {
    font-size: 24px;
  }
  .sd-layers::before {
    left: 21px;
  }
  .sd-layer {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .sd-layer-num {
    width: 34px;
    height: 34px;
    margin: 20px 0 0 4px;
    font-size: 12px;
  }
  .sd-layer-body {
    padding: 18px 20px 20px;
  }
  .sd-faq summary {
    font-size: 17px;
  }

  /* comparison table: each row becomes a stacked card */
  .sd-cmp thead {
    position: absolute;
    left: -9999px;
  }
  .sd-cmp,
  .sd-cmp tbody,
  .sd-cmp tr,
  .sd-cmp th,
  .sd-cmp td {
    display: block;
    width: 100%;
  }
  .sd-cmp tbody tr {
    padding: 16px 18px;
  }
  .sd-cmp tbody th {
    width: 100%;
    padding: 0 0 8px;
    font-size: 16px;
  }
  .sd-cmp td {
    width: 100%;
    padding: 10px 0;
    border-left: 0;
  }
  .sd-cmp td.sd-cmp-native {
    padding: 12px 14px;
    margin-top: 4px;
    border-radius: 12px;
  }
  .sd-cmp td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sd-muted);
  }
}

/* People who ask their system for less motion get a still, fully visible page */
@media (prefers-reduced-motion: reduce) {
  .sd-service-detail *,
  .sd-service-detail *::before,
  .sd-service-detail *::after {
    animation: none !important;
    transition: none !important;
  }
  .sd-js [data-sd-reveal]:not(.is-in) .sd-show-card,
  .sd-js [data-sd-reveal]:not(.is-in) .sd-cmp tbody tr,
  .sd-js [data-sd-reveal]:not(.is-in) .sd-layer {
    opacity: 1;
    transform: none;
  }
  .sd-ind-flow::after {
    display: none;
  }
}
