/* --------------------------------------------------------------------------
   Data Engineering Hub — page-specific blocks.

   Reuses the shared section components (section-intro, section-description,
   ls-section, section-cta-transform, service-case-studies, faq, bottom-form,
   clients, meet-our-team). Everything here covers the blocks that have no
   shared equivalent: the takeaway panel, the definition split, the capability
   tabs, the signals list, the four-phase process, the expectation cards, the
   Europe/on-premises pair, the governance cards, the industry and role grids,
   the technology table and the engagement models.
   -------------------------------------------------------------------------- */

/* Content links inside the custom blocks follow the site's link rule. */
.deg-hero__actions a:not(.btn),
.deg-definition a,
.deg-build a,
.deg-signals-section a,
.deg-process-section a,
.deg-expect-section a,
.deg-europe-section a,
.deg-governance a,
.deg-industries-section a,
.deg-roles-section a,
.deg-technologies-section a,
.deg-table a {
  color: var(--color-brand-teal);
  text-decoration: none;
  transition: color 0.3s ease;
}

.deg-hero__actions a:not(.btn):hover,
.deg-definition a:hover,
.deg-build a:hover,
.deg-signals-section a:hover,
.deg-process-section a:hover,
.deg-expect-section a:hover,
.deg-europe-section a:hover,
.deg-governance a:hover,
.deg-industries-section a:hover,
.deg-roles-section a:hover,
.deg-technologies-section a:hover,
.deg-table a:hover {
  color: var(--color-brand-teal-300);
}

/* The page reads at full contrast: running copy uses the default text
   colour, not the muted grey the shared section header applies. */
.page-data-engineering .section-intro__text {
  color: rgba(255, 255, 255, 0.9);
}

.page-data-engineering .section-description__info {
  color: rgba(255, 255, 255, 0.85);
}

/* Same treatment as the data-science hero: client logos become white and
   semi-transparent so the marquee reads as one monochrome row. */
.about-hero.section-intro--homepage .clients-marquee__logo {
  filter: brightness(0) invert(1);
  opacity: 0.5;
}

.about-hero.section-intro--homepage .clients-marquee__logo:hover {
  filter: brightness(0) invert(1);
  opacity: 1;
}

.page-data-engineering .section-faq {
  padding-top: var(--spacing-80);
  padding-bottom: var(--spacing-80);
  background: var(--secondary-bg);
}

/* The terracotta part of the FAQ heading starts a second line on desktop. */
@media (min-width: 769px) {
  .page-data-engineering .section-faq .section__title span {
    display: block;
  }
}

/* --- Hero ---------------------------------------------------------------- */

.deg-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-16);
  margin-top: var(--spacing-32);
}

/* Four statistics with long labels: give the row the full container width
   and a slightly smaller label size. */
#intro-section .deg-stats {
  max-width: 1200px;
}

.deg-stats .section-description__item {
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

.deg-stats .section-description__info {
  font-size: 16px;
  line-height: 1.5;
}

/* One statistic is a whole phrase, not a number: its own scale and a little
   more horizontal room keep it on one line at every desktop width. */
.deg-stat--long {
  padding-left: var(--spacing-16);
  padding-right: var(--spacing-16);
}

.deg-stat--long .section-description__number {
  font-size: clamp(22px, 1.85vw, 26px);
  line-height: 1.1;
  white-space: nowrap;
}

@media (max-width: 1150px) {
  #intro-section .deg-stats {
    flex-wrap: wrap;
  }

  #intro-section .deg-stats .section-description__item {
    flex: 1 1 calc(50% - var(--spacing-16));
  }
}

@media (max-width: 768px) {
  #intro-section .deg-stats .section-description__item {
    flex: 1 1 auto;
  }
}

/* --- Shared type helpers ------------------------------------------------- */

.deg-subhead {
  max-width: 900px;
  margin: var(--spacing-40) 0 var(--spacing-16);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);
  color: var(--primary-text);
  text-align: left;
}

.deg-lead {
  max-width: 900px;
  margin: 0 0 var(--spacing-24);
  font-size: 16px;
  line-height: 1.6;
  color: var(--primary-text);
}

.deg-list {
  margin: 0 0 var(--spacing-16);
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.deg-list li {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--primary-text);
}

.deg-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-brand-teal-200);
}

.deg-list strong {
  color: var(--primary-text);
  font-weight: var(--font-weight-600);
}

.deg-note {
  max-width: 900px;
  margin: var(--spacing-24) 0 0;
  padding: var(--spacing-20, 20px) var(--spacing-24);
  border-left: 3px solid var(--color-brand-teal);
  background: var(--color-brand-mist-100);
  border-radius: 0 12px 12px 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--primary-text);
}

.deg-note--quiet {
  max-width: none;
  border-left-color: var(--color-brand-terracotta-200);
  background: var(--color-brand-mist-200);
}

.deg-callout {
  max-width: 900px;
  margin: var(--spacing-32) auto 0;
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  color: var(--primary-text);
}

/* Title left / running text right, the pattern the long split sections use. */
.deg-split-head {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-32);
  align-items: start;
}

.deg-split-head .ls-section__title {
  margin: 0 0 var(--spacing-16);
  text-align: left;
}

.deg-split-head__lead,
.deg-split-head__body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-16);
}

/* --- Key takeaways ------------------------------------------------------- */

/* Same dark band as the "What AI integration actually requires" block with
   five glass cards in one row. */
.deg-takeaways {
  padding-top: var(--spacing-64);
  background: var(--color-brand-navy-800);
}

.deg-takeaways__header {
  max-width: 760px;
  margin: 0 auto var(--spacing-40);
  text-align: center;
}

.deg-takeaways__header .ls-section__title {
  margin: 0;
  color: var(--color-brand-white);
}

.deg-takeaways__header .ls-section__title span {
  color: var(--accent-orange);
}

.deg-takeaways__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--spacing-24);
}

/* Block, not flex: the cards contain inline links, and a flex container
   would turn every text run around a link into a separate stacked item. */
.deg-takeaways__list li {
  display: block;
  padding: var(--spacing-32);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.deg-takeaways__list li:hover {
  border-color: rgba(7, 145, 143, 0.3);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(7, 145, 143, 0.12);
  transform: translateY(-4px);
}

/* Number tile mirrors the orange icon tile of the reference block. */
.deg-takeaways__list li::before {
  content: "\e809";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--spacing-24);
  border-radius: 12px;
  background: rgba(255, 227, 210, 0.12);
  border: 1px solid var(--color-brand-orange-300);
  font-family: fontello;
  font-size: 20px;
  font-weight: normal;
  line-height: 1;
  color: var(--accent-orange);
}

.deg-takeaways__list li:nth-child(2)::before { content: "\f295"; }
.deg-takeaways__list li:nth-child(3)::before { content: "\e82d"; }
.deg-takeaways__list li:nth-child(4)::before { content: "\f132"; }
.deg-takeaways__list li:nth-child(5)::before { content: "\f1e0"; }

.deg-takeaways a {
  color: var(--color-brand-teal-200);
  text-decoration: none;
  transition: color 0.3s ease;
}

.deg-takeaways a:hover {
  color: var(--color-brand-teal-300);
}

/* --- Definition split ---------------------------------------------------- */

.deg-definition {
  padding-top: var(--spacing-64);
}

.deg-definition__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.deg-definition__title {
  margin: 0 0 var(--spacing-24);
  text-align: left;
}

.deg-definition__aside .ls-section__lead {
  max-width: 460px;
  margin: 0 0 var(--spacing-16);
  font-size: 16px;
  line-height: 1.6;
  color: var(--primary-text);
}

.deg-definition__main {
  display: flex;
  flex-direction: column;
}

.deg-definition__main > .ls-section__lead {
  margin: 0 0 var(--spacing-16);
  font-size: 16px;
  line-height: 1.6;
}

/* The accent moves to a second line once there is room for it. */
@media (min-width: 901px) {
  .deg-definition__title span {
    display: block;
  }
}

/* Subhead in the right column carries the terracotta accent. */
.deg-definition__main .deg-subhead {
  margin-top: 0;
  font-size: clamp(20px, 1.6vw, 26px);
  color: var(--color-brand-terracotta);
}

/* The two comparison paragraphs sit as lead cards with a left rule. */
.deg-definition__main .deg-lead {
  margin: 0 0 var(--spacing-16);
  padding: var(--spacing-24);
  background: var(--secondary-bg);
  border-left: 3px solid var(--color-brand-terracotta-300);
  border-radius: 0 12px 12px 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--primary-text);
}

.deg-definition__main .deg-lead:last-child {
  margin-bottom: 0;
}

/* --- Story pair ---------------------------------------------------------- */

.deg-story-section {
  background: var(--secondary-bg);
}

.deg-story {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-24);
  max-width: 1200px;
  margin: var(--spacing-32) auto 0;
}

.deg-story__card {
  padding: var(--spacing-32);
  background: #fff;
  border: 1px solid var(--color-brand-mist-300);
  border-top: 4px solid var(--color-brand-teal);
  border-radius: 16px;
}

/* Centred section header: title and intro stack in one column. */
#why-ai-projects-stall .deg-split-head {
  grid-template-columns: 1fr;
  gap: var(--spacing-24);
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

#why-ai-projects-stall .deg-split-head .ls-section__title {
  margin: 0 auto;
  text-align: center;
}

#why-ai-projects-stall .deg-split-head__lead,
#why-ai-projects-stall .deg-split-head__body {
  align-items: center;
}

#why-ai-projects-stall .deg-split-head__body .ls-section__lead {
  margin: 0 auto;
  text-align: center;
}

/* The terracotta accent starts the second line on desktop. */
@media (min-width: 769px) {
  #why-ai-projects-stall .ls-section__title span {
    display: block;
  }
}

.deg-story__title {
  margin: 0 0 var(--spacing-12, 12px);
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  color: var(--primary-text);
}

.deg-story__card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--primary-text);
}

/* --- Capability tabs ----------------------------------------------------- */

.deg-build {
  background: var(--secondary-bg);
}

#what-azati-builds .ls-section__header .ls-section__lead {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.deg-build-tabs {
  padding: 0;
  background: transparent;
}

.deg-build-tabs .about-project-stages__layout {
  max-width: none;
  gap: 0;
  align-items: stretch;
  border-top: 1px solid rgba(6, 11, 26, 0.12);
  border-bottom: 1px solid rgba(6, 11, 26, 0.12);
}

/* Desktop rail, copied from the SaaS-replacement category tabs. */
@media (min-width: 901px) {
  .deg-build-tabs .about-project-stages__layout {
    grid-template-columns: 500px minmax(0, 1fr);
  }

  .deg-build-tabs .about-project-stages__nav {
    border-right: 1px solid rgba(6, 11, 26, 0.12);
    border-top: none;
    border-bottom: none;
    border-left: none;
  }

  .deg-build-tabs .about-project-stages__tab {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: var(--spacing-16);
    padding: var(--spacing-24);
    border-bottom: 1px solid rgba(6, 11, 26, 0.08);
    background: transparent;
    font-family: var(--font-body);
    font-size: clamp(15px, 13px + 0.4vw, 17px);
    font-weight: var(--font-weight-500);
    line-height: 1.35;
    letter-spacing: normal;
    color: var(--primary-text);
    white-space: normal;
  }

  .deg-build-tabs .about-project-stages__tab:last-child {
    border-bottom: none;
  }

  .deg-build-tabs .about-project-stages__tab::before {
    width: 3px;
    background: var(--color-brand-teal);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .deg-build-tabs .about-project-stages__tab:hover {
    color: var(--primary-text);
    background: rgba(7, 145, 143, 0.04);
  }

  .deg-build-tabs .about-project-stages__tab.is-active {
    color: var(--primary-text);
    background: linear-gradient(90deg, rgba(7, 145, 143, 0.1) 0%, rgba(7, 145, 143, 0) 100%);
    box-shadow: none;
  }

  .deg-build-tabs .about-project-stages__tab.is-active::before {
    opacity: 1;
  }
}

/* Icon tile above the panel title, the pattern the other stage tabs use. */
.deg-build-tabs .llm-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-bottom: var(--spacing-16);
  border-radius: 12px;
  background: rgba(171, 61, 17, 0.08);
  color: var(--color-brand-terracotta);
}

.deg-build-tabs .llm-card__icon svg {
  width: 22px;
  height: 22px;
}

.deg-build-tabs__num {
  font-size: 12px;
  font-weight: var(--font-weight-600);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: rgba(6, 11, 26, 0.4);
  transition: color 0.3s ease;
}

.deg-build-tabs .about-project-stages__tab:hover .deg-build-tabs__num,
.deg-build-tabs .about-project-stages__tab.is-active .deg-build-tabs__num {
  color: var(--color-brand-teal);
}

.deg-build-tabs .about-project-stages__card {
  height: 100%;
  padding: var(--spacing-40);
  background: #fff;
  border-radius: 0;
}

.deg-build-tabs .about-project-stages__panel {
  max-width: 900px;
}

.deg-build-tabs__head {
  display: block;
  margin-bottom: var(--spacing-24);
}

.deg-build-tabs__head .about-project-stages__panel-title {
  margin: 0;
}

.deg-build-tabs .about-project-stages__panel-title {
  color: var(--color-brand-terracotta);
}

.deg-build-tabs .about-project-stages__lead {
  margin-bottom: var(--spacing-16);
  font-size: 16px;
  font-weight: var(--font-weight-400);
  line-height: 1.65;
  letter-spacing: 0;
  color: var(--primary-text);
}

.deg-build-tabs .deg-list {
  margin-bottom: var(--spacing-16);
}

/* --- Signals ------------------------------------------------------------- */

.deg-signals-section {
  background: #fff;
}

@media (min-width: 769px) {
  #when-to-invest .ls-section__title span {
    display: block;
  }
}

#when-to-invest .ls-section__header {
  margin-bottom: var(--spacing-24);
}

.deg-signals__label {
  color: var(--color-brand-terracotta);
  font-size: clamp(16px, 2vw, 18px);
  font-weight: var(--font-weight-600);
  margin: 0 auto var(--spacing-24);
  text-align: center;
}

.deg-signals-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.deg-signals-list li {
  position: relative;
  padding: var(--spacing-20, 20px) var(--spacing-24) var(--spacing-20, 20px) 52px;
  background: var(--color-brand-teal-50);
  border-radius: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--primary-text);
}

/* Only the group's outer corners are rounded. */
.deg-signals-list li:first-child {
  border-radius: 12px 12px 0 0;
}

.deg-signals-list li:last-child {
  border-radius: 0 0 12px 12px;
}

.deg-signals-list li::before {
  content: "\2713";
  position: absolute;
  left: var(--spacing-24);
  top: var(--spacing-20, 20px);
  font-size: 18px;
  font-weight: var(--font-weight-700);
  line-height: 1.4;
  color: var(--color-brand-teal-700);
}

.deg-signals-list a {
  color: var(--color-brand-teal);
  text-decoration: none;
}

.deg-signals-list a:hover {
  color: var(--color-brand-teal-300);
}

@media (max-width: 768px) {
  .deg-signals-list li {
    padding: var(--spacing-16) var(--spacing-20, 20px) var(--spacing-16) 44px;
  }

  .deg-signals-list li::before {
    left: var(--spacing-20, 20px);
    top: var(--spacing-16);
  }
}

.deg-signals__note {
  max-width: 900px;
  margin: var(--spacing-40) auto 0;
  text-align: center;
  color: var(--primary-text);
}

/* --- Four-phase process -------------------------------------------------- */

.deg-process-section {
  position: relative;
  overflow: hidden;
  background: var(--color-brand-navy);
}

.deg-process-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/about-bg.7be2890657ad.svg");
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: auto;
  pointer-events: none;
  z-index: 0;
}

.deg-process-section > .container {
  position: relative;
  z-index: 1;
}

.deg-process__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.deg-process__intro .ls-section__title {
  margin: 0 0 var(--spacing-16);
  text-align: left;
  color: var(--color-brand-white);
}

.deg-process__intro .ls-section__title span {
  color: var(--accent-orange);
}

/* The accent starts the second line on desktop. */
@media (min-width: 769px) {
  #how-the-pieces-fit .ls-section__title span {
    display: block;
  }
}

.deg-process__intro .ls-section__lead {
  color: rgba(255, 255, 255, 0.85);
}

.deg-process__note {
  max-width: 460px;
  margin: var(--spacing-24) 0 0;
  line-height: var(--lh-body);
  color: rgba(255, 255, 255, 0.55);
}

/* Pyramid: narrow at the top, widening downwards. */
.deg-process-pyramid__stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.deg-process-pyramid__layer {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-16);
  width: 100%;
  margin: 0;
  padding: var(--spacing-24) var(--spacing-32);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left-width: 3px;
  border-radius: 16px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.deg-process-pyramid__layer:nth-child(1) { width: 70%; }
.deg-process-pyramid__layer:nth-child(2) { width: 80%; }
.deg-process-pyramid__layer:nth-child(3) { width: 90%; }
.deg-process-pyramid__layer:nth-child(4) { width: 100%; }

.deg-process-pyramid__layer:hover {
  transform: translateY(-2px);
  border-color: var(--accent-orange);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.deg-process-pyramid__index {
  flex-shrink: 0;
  min-width: 2ch;
  font-size: 13px;
  font-weight: var(--font-weight-600);
  letter-spacing: 0.06em;
  line-height: 1.3;
  color: var(--accent-orange);
}

.deg-process-pyramid__body {
  min-width: 0;
}

.deg-process-pyramid__layer-title {
  margin: 0 0 var(--spacing-8);
  font-size: clamp(17px, 1.2vw, 20px);
  font-weight: var(--font-weight-600);
  line-height: 1.3;
  color: var(--color-brand-white);
}

.deg-process-pyramid__layer-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.deg-process-section a,
.deg-europe-section a {
  color: var(--color-brand-teal);
}

.deg-process-section a:hover,
.deg-europe-section a:hover {
  color: var(--color-brand-teal-300);
}

/* Keep the artwork at its natural size and slide it right on phones,
   the #agent treatment on the NL digital-twins page. */
@media (max-width: 640px) {
  .deg-process-section::before {
    background-position: 30% 100%;
  }
}

@media (max-width: 992px) {
  .deg-process__layout {
    grid-template-columns: 1fr;
    gap: var(--spacing-32);
  }
}

@media (max-width: 768px) {
  .deg-process-pyramid__stack {
    gap: 8px;
  }

  .deg-process-pyramid__layer,
  .deg-process-pyramid__layer:nth-child(n) {
    width: 100%;
    padding: var(--spacing-16) var(--spacing-24);
  }
}

/* --- Client expectations ------------------------------------------------- */

.deg-expect-section {
  background: var(--secondary-bg);
}

#what-clients-can-expect .ls-section__header .ls-section__lead {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.deg-expect {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--spacing-16);
}

.deg-expect__card {
  padding: var(--spacing-32);
  background: var(--color-brand-mist-50);
  border: 1px solid var(--color-brand-mist-300);
  border-top: 3px solid var(--color-brand-teal);
  border-radius: 16px;
}

/* One horizontal band on wide desktops, the same treatment as #data-flow
   on the industrial master-data page. */
@media (min-width: 1280px) {
  .deg-expect {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    background: #d5d9e7;
    border-radius: 16px;
    overflow: hidden;
  }

  .deg-expect__card {
    padding: var(--spacing-24);
    background: var(--secondary-bg);
    border: 0;
    border-radius: 0;
  }
}

.deg-expect__title {
  margin: 0 0 var(--spacing-12, 12px);
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  color: var(--primary-text);
}

.deg-expect__card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--primary-text);
}

/* --- Europe / deployment pair -------------------------------------------- */

.deg-europe-section {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.deg-europe-section > .container {
  position: relative;
  z-index: 1;
}

.deg-europe-section .ls-section__title {
  color: var(--primary-text);
}

.deg-europe-section .ls-section__title span {
  color: var(--color-brand-terracotta);
}

/* The accent starts the second line on desktop. */
@media (min-width: 769px) {
  #europe-based-delivery .ls-section__title span {
    display: block;
  }
}

/* Wider desktop container only; on smaller screens the default container
   keeps its side gutters. */
@media (min-width: 1200px) {
  #europe-based-delivery .container {
    max-width: 1300px;
  }
}

/* --- Governance ---------------------------------------------------------- */

.deg-governance {
  background: var(--secondary-bg);
}

/* The accent starts the second line on desktop. */
@media (min-width: 769px) {
  #governance .ls-section__title span {
    display: block;
  }
}

#governance .ls-section__header .ls-section__lead {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.deg-governance__label {
  margin: var(--spacing-32) 0 var(--spacing-24);
  text-align: center;
  font-size: clamp(16px, 2vw, 18px);
  font-weight: var(--font-weight-600);
  color: var(--color-brand-terracotta);
}

/* One navy group with hairline dividers, as .bf-expertise__card. */
.deg-governance__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--color-brand-navy);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.deg-governance__card {
  position: relative;
  padding: var(--spacing-32);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.deg-governance__card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: var(--spacing-32);
  bottom: var(--spacing-32);
  right: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.deg-governance__title {
  margin: 0 0 var(--spacing-12, 12px);
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  color: var(--color-brand-white);
}

.deg-governance__title a {
  color: var(--color-brand-teal-200);
  text-decoration: none;
  transition: color 0.3s ease;
}

.deg-governance__title a:hover {
  color: var(--color-brand-teal-300);
}

.deg-governance__card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

/* The two closing notes share one light callout with a bulb. */
.deg-governance__note {
  background-color: #fff;
  border-left: 3px solid var(--color-brand-teal);
  border-radius: 0 12px 12px 0;
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-24);
  max-width: 1200px;
  margin: var(--spacing-32) auto 0;
  padding: var(--spacing-24) var(--spacing-32);
}

.deg-governance__note-icon {
  background-color: var(--color-brand-mist-100);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--color-brand-terracotta);
}

.deg-governance__note-body p {
  margin: 0 0 var(--spacing-12, 12px);
  font-size: 16px;
  line-height: 1.6;
  color: var(--primary-text);
}

.deg-governance__note-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .deg-governance__grid {
    grid-template-columns: 1fr;
  }

  .deg-governance__card:not(:last-child)::after {
    top: auto;
    right: var(--spacing-24);
    bottom: 0;
    left: var(--spacing-24);
    width: auto;
    height: 1px;
  }
}

@media (max-width: 768px) {
  .deg-governance__note {
    padding: var(--spacing-20, 20px) var(--spacing-24);
  }
}

/* --- Industries ---------------------------------------------------------- */

.deg-industries-section {
  background: var(--secondary-bg);
}

/* The accent starts the second line on desktop. */
@media (min-width: 769px) {
  #industries .ls-section__title span {
    display: block;
  }
}

.deg-industry-tabs .about-project-stages__layout {
  max-width: 1200px;
}

.deg-industry-tabs .about-project-stages__card {
  background: #fff;
}

/* --- Roles --------------------------------------------------------------- */

.deg-roles-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-brand-navy);
  color: var(--white-text);
}

.deg-roles-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/about-bg.7be2890657ad.svg");
  background-repeat: no-repeat;
  background-size: auto;
  background-position: 0 100%;
  z-index: -1;
  pointer-events: none;
}

.deg-roles-section .ls-section__title {
  margin: 0 auto var(--spacing-40);
  text-align: center;
  color: var(--color-brand-white);
}

.deg-roles-section .ls-section__title span {
  color: var(--accent-orange);
}

/* Five role cards in one row, the #key-takeaways treatment. */
.deg-roles-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--spacing-24);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.deg-role-card {
  padding: var(--spacing-24);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: rgba(255, 255, 255, 0.9);
}

.deg-role-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--spacing-24);
  border-radius: 12px;
  background: rgba(255, 227, 210, 0.12);
  border: 1px solid var(--color-brand-orange-300);
  color: var(--accent-orange);
}

.deg-role-card__title {
  margin: 0 0 var(--spacing-12, 12px);
  font-family: var(--font-display);
  font-size: clamp(17px, 1.3vw, 19px);
  font-weight: var(--font-weight-600);
  line-height: 1.3;
  color: var(--color-brand-white);
}

.deg-role-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 1399px) {
  .deg-roles-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .deg-roles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Keep the artwork at its natural size and slide it right on phones. */
@media (max-width: 640px) {
  .deg-roles-grid {
    grid-template-columns: 1fr;
  }

  .deg-roles-section::before {
    background-position: 30% 100%;
  }
}

/* --- Tables -------------------------------------------------------------- */

/* Tables follow the case-study table standard: a rounded frame, a quiet blue
   header tint and a terracotta highlight column. */
.deg-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
}

.deg-table {
  width: 100%;
  min-width: 560px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(15, 30, 60, 0.1);
  border-radius: 16px;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.5;
}

.deg-table th,
.deg-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(15, 30, 60, 0.08);
}

.deg-table tbody tr:last-child th,
.deg-table tbody tr:last-child td {
  border-bottom: 0;
}

.deg-table thead th {
  background: rgba(30, 77, 146, 0.04);
  font-size: inherit;
  font-weight: var(--font-weight-600);
  letter-spacing: 0;
  text-transform: none;
  color: var(--primary-text);
  white-space: nowrap;
}

.deg-table tbody th {
  width: 26%;
  font-weight: var(--font-weight-600);
  color: var(--primary-text);
}

.deg-table td {
  color: var(--primary-text);
}

.deg-table tbody tr:hover th,
.deg-table tbody tr:hover td:not(.deg-table__col--highlight) {
  background: rgba(30, 77, 146, 0.03);
}

.deg-table__col--highlight {
  color: var(--primary-text) !important;
  background: rgba(171, 61, 17, 0.1);
  border-left: 2px solid rgba(171, 61, 17, 0.35);
}

.deg-table thead th.deg-table__col--highlight {
  font-weight: var(--font-weight-600);
  background: rgba(171, 61, 17, 0.16);
  border-left-color: rgba(171, 61, 17, 0.7);
}

.deg-table tbody td.deg-table__col--highlight {
  font-weight: var(--font-weight-500);
}

.deg-table tbody tr:hover td.deg-table__col--highlight {
  background: rgba(171, 61, 17, 0.16);
}

.deg-table--tech tbody th {
  width: 30%;
}

/* --- Technologies -------------------------------------------------------- */

.deg-technologies-section {
  background: var(--secondary-bg);
}

.deg-technologies-section .deg-table {
  background: #fff;
}

.deg-technologies__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.deg-technologies__lead .ls-section__title {
  margin: 0 0 var(--spacing-16);
  text-align: left;
}

@media (min-width: 769px) {
  .deg-technologies__lead .ls-section__title span {
    display: block;
  }
}

.deg-technologies__lead .ls-section__lead {
  font-size: 16px;
}

.deg-technologies__body {
  display: flex;
  flex-direction: column;
}

.deg-technologies__body .deg-note {
  margin-top: var(--spacing-24);
}

/* --- Engagement models --------------------------------------------------- */

.deg-models-section {
  padding-top: var(--spacing-80);
  padding-bottom: var(--spacing-80);
  background: #fff;
}

@media (min-width: 769px) {
  #how-we-work .ls-section__title span {
    display: block;
  }
}

/* Executive insight sits between two bands and ships with section--flush-top;
   give it room above and below on this page. */
.page-data-engineering .section-meet-our-team.section--flush-top {
  padding-top: var(--spacing-80) !important;
  padding-bottom: var(--spacing-80);
}

/* The shared case-studies section carries no vertical padding of its own. */
.page-data-engineering #data-engineering-cases {
  padding-top: var(--spacing-80);
  padding-bottom: var(--spacing-80);
}

/* --- Final CTA ----------------------------------------------------------- */

.deg-final-cta .section-cta-transform__container {
  max-width: 1100px;
}

.deg-final-cta .section-cta-transform__title {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.deg-final-cta .section-cta-transform__subtitle {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 1399px) {
  .deg-takeaways__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

@media (max-width: 900px) {
  .deg-build-tabs .about-project-stages__layout {
    grid-template-columns: 1fr;
    gap: var(--spacing-16);
  }

  .deg-build-tabs .about-project-stages__tab {
    justify-content: flex-start;
  }

  .deg-build-tabs .about-project-stages__tab::after {
    margin-left: auto;
  }

  .deg-build-tabs .about-project-stages__panel {
    max-width: none;
  }

  .deg-story {
    grid-template-columns: 1fr;
  }

  .deg-split-head {
    grid-template-columns: 1fr;
    gap: var(--spacing-24);
  }

  .deg-definition__layout {
    grid-template-columns: 1fr;
    gap: var(--spacing-24);
  }

  .deg-technologies__layout {
    grid-template-columns: 1fr;
    gap: var(--spacing-24);
  }

  .deg-takeaways__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  /* Stacked rows are cards of their own: the table needs no white panel. */
  .deg-technologies-section .deg-table {
    background: transparent;
  }

  /* Stack the technology table: each row becomes a small record, the row
     header becomes the record's label. */
  .deg-table-wrap {
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .deg-table,
  .deg-table thead,
  .deg-table tbody,
  .deg-table tr,
  .deg-table th,
  .deg-table td {
    display: block;
    width: 100%;
  }

  .deg-table {
    min-width: 0;
    border: 0;
    border-radius: 0;
  }

  .deg-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .deg-table tr {
    margin-bottom: var(--spacing-16);
    border: 1px solid rgba(15, 30, 60, 0.12);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
  }

  .deg-table tbody th,
  .deg-table tbody td {
    border-bottom: 0;
    padding: 14px var(--spacing-20, 20px);
  }

  .deg-table tbody th {
    width: auto;
    background: rgba(30, 77, 146, 0.04);
  }

  .deg-table tbody td.deg-table__col--highlight {
    border-left: 0;
  }

  .deg-story__card,
  .deg-expect__card,
  .deg-governance__card {
    padding: var(--spacing-24);
  }

  .deg-expect,
  .deg-governance__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .deg-takeaways__list {
    grid-template-columns: 1fr;
  }
}
