/* Shared accessibility hardening for the standalone production bundle. */
@font-face {
  font-family: "Thmanyah Sans";
  src: url("/fonts/thmanyah/ThmanyahSans-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Thmanyah Sans";
  src: url("/fonts/thmanyah/ThmanyahSans-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Thmanyah Sans";
  src: url("/fonts/thmanyah/ThmanyahSans-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Thmanyah Sans";
  src: url("/fonts/thmanyah/ThmanyahSans-Black.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Thmanyah Serif Display";
  src: url("/fonts/thmanyah/ThmanyahSerifDisplay-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Thmanyah Serif Display";
  src: url("/fonts/thmanyah/ThmanyahSerifDisplay-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Contextual contrast tokens: light surfaces use DNC blue; dark surfaces use white. */
  --dnc-contrast-on-light: #102552;
  --dnc-contrast-on-light-hover: #0b3158;
  --dnc-contrast-on-light-border: #254b70;
  --dnc-contrast-on-dark: #ffffff;
  --dnc-contrast-on-dark-soft: #e4fbfd;
  --dnc-contrast-on-dark-border: #ffffff;
  --dnc-contrast-disabled-light: #5b6e89;
  --dnc-contrast-disabled-dark: #d4e1e5;
  --dnc-steel-gray: #97a1aa;
  --dnc-a11y-focus-outer: #0b3158;
  --dnc-a11y-focus-inner: #ffffff;
  --dnc-a11y-error: #8c3542;
  --dnc-a11y-error-surface: #fff2f3;
  --dnc-section-space: clamp(88px, 7.5vw, 112px);
  --dnc-section-space-compact: clamp(64px, 6vw, 88px);
  --dnc-content-gap: clamp(36px, 4vw, 56px);
}

html {
  scroll-padding-top: 5.5rem;
}
body {
  font-size: 18px;
  text-rendering: optimizeLegibility;
}

/* Arabic type scale uses the supplied Thmanyah family across body and display text. */
:where([dir="rtl"], [dir="rtl"] *) {
  font-family: "Thmanyah Sans", Tahoma, Arial, sans-serif !important;
  font-synthesis: none;
}

[dir="rtl"] :where(h1, h2, h3, h4, h5, h6) {
  font-family:
    "Thmanyah Serif Display", "Thmanyah Sans", Tahoma, Arial, sans-serif !important;
  letter-spacing: 0 !important;
  text-wrap: balance;
}

[dir="rtl"] h1 {
  font-size: clamp(42px, 7vw, 96px) !important;
  line-height: 1.08 !important;
}

[dir="rtl"] h2 {
  font-size: clamp(36px, 5.8vw, 82px) !important;
  line-height: 1.14 !important;
}

[dir="rtl"] h3 {
  font-size: clamp(20px, 2vw, 28px) !important;
  line-height: 1.3 !important;
}

[dir="rtl"] :where(p, li, dd, dt, figcaption, label, input, textarea, select) {
  font-size: 16px !important;
  line-height: 1.8 !important;
}

[dir="rtl"] :where(a, button) {
  font-size: 15px !important;
  line-height: 1.55 !important;
}

[dir="rtl"] .eyebrow,
[dir="rtl"] .gold-text,
[dir="rtl"] .project-note,
[dir="rtl"] .service-number,
[dir="rtl"] .project-number {
  font-size: 13px !important;
  line-height: 1.5 !important;
  letter-spacing: 0.02em !important;
}

[dir="rtl"] .service-info h3 {
  font-size: clamp(22px, 2.35vw, 32px) !important;
  line-height: 1.25 !important;
}

[dir="rtl"] .service-info p {
  font-size: 14px !important;
  line-height: 1.6 !important;
}

[dir="rtl"] .profile-metrics span {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

[dir="rtl"] .profile-metrics strong {
  direction: ltr;
  unicode-bidi: plaintext;
}

/* Editorial spacing: a consistent pause without oversized section gutters. */
main .padded {
  padding-block: var(--dnc-section-space) !important;
}

main .section-heading {
  max-width: 760px !important;
}

main .section-heading h2 {
  margin-bottom: 0 !important;
}

.about-copy {
  display: grid !important;
  gap: 16px !important;
  max-width: 1240px;
  margin-top: clamp(30px, 4vw, 56px) !important;
}

.about-copy p {
  max-width: 1180px;
  margin: 0 !important;
  line-height: 1.68 !important;
}

.about-grid {
  margin-top: var(--dnc-content-gap) !important;
}

/* Compact Vision, Mission, and Values cards aligned with the existing DNC grid. */
.vision-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(12px, 1.25vw, 18px) !important;
  margin-top: clamp(28px, 3.5vw, 44px) !important;
}

.vision-card {
  position: relative;
  min-height: 0 !important;
  padding: clamp(16px, 1.35vw, 22px) !important;
  overflow: hidden;
  border: 1px solid rgba(37, 75, 112, 0.22) !important;
  border-radius: 12px !important;
  background: linear-gradient(145deg, #fbfdfe 0%, #edf7f8 100%) !important;
  box-shadow: 0 8px 24px rgba(16, 37, 82, 0.07) !important;
  transform: none !important;
}

.vision-card::before {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 42px;
  height: 3px;
  content: "";
  background: #29afe0;
}

.vision-card h3 {
  margin: 0 0 7px !important;
  color: var(--dnc-contrast-on-light) !important;
  font-size: clamp(18px, 1.3vw, 22px) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
}

.vision-card p {
  margin: 0 !important;
  color: #254b70 !important;
  font-size: clamp(14px, 0.9vw, 15px) !important;
  line-height: 1.45 !important;
}

.vision-card:is(:hover, :focus-within) {
  box-shadow: 0 12px 28px rgba(16, 37, 82, 0.1) !important;
  transform: none !important;
}

/* Value cards are informational, so they do not use navigation arrows. */
.value-grid .value-card > svg {
  display: none !important;
}

/* ISO-only certificate gallery sourced from the 2026 DNC Group Profile. */
.dnc-iso-grid,
.certificates-home .certificate-showcase.dnc-iso-grid,
.profile-certificates .profile-certificate-grid.dnc-iso-grid {
  display: grid !important;
  position: relative !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(14px, 1.5vw, 22px) !important;
  width: 100% !important;
  max-width: 1440px !important;
  min-height: 0 !important;
  margin-inline: auto !important;
  padding: 0 !important;
  overflow: visible !important;
}

.dnc-iso-card {
  display: grid !important;
  position: relative !important;
  inset: auto !important;
  grid-template-rows: auto 1fr;
  min-width: 0;
  color: var(--dnc-blue, #254b70) !important;
  background: #ffffff !important;
  border: 1px solid rgba(37, 75, 112, 0.22) !important;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(16, 37, 82, 0.08);
  text-decoration: none !important;
  overflow: hidden;
  transform: none !important;
}

.dnc-iso-card img {
  display: block;
  width: 100% !important;
  aspect-ratio: 3 / 4;
  height: auto !important;
  padding: clamp(10px, 1vw, 16px);
  background: #ffffff;
  object-fit: contain !important;
}

.dnc-iso-card > span {
  display: grid !important;
  align-content: start;
  gap: 6px;
  padding: 16px !important;
  color: var(--dnc-blue, #254b70) !important;
  background: var(--dnc-surface-soft, #f4f7f9);
  border-top: 1px solid rgba(37, 75, 112, 0.16);
}

.dnc-iso-card strong {
  color: var(--dnc-blue, #254b70) !important;
  font-size: clamp(14px, 1vw, 16px) !important;
  line-height: 1.35 !important;
}

.dnc-iso-card small {
  color: var(--dnc-body, #666565) !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.dnc-iso-card:is(:hover, :focus-visible) {
  box-shadow: 0 16px 34px rgba(16, 37, 82, 0.16) !important;
  transform: translateY(-3px) !important;
}

[data-theme="dark"] .dnc-iso-card {
  border-color: rgba(156, 204, 210, 0.38) !important;
  background: #ffffff !important;
}

[data-theme="dark"] .dnc-iso-card > span {
  background: #102a5c !important;
  border-top-color: rgba(156, 204, 210, 0.32) !important;
}

[data-theme="dark"] .dnc-iso-card :is(strong, small) {
  color: #ffffff !important;
}

/* Homepage keeps the earlier three-card carousel interaction, now with ISO-only content. */
.certificates-home .certificate-showcase.dnc-iso-carousel {
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) 46px !important;
  align-items: center !important;
  gap: clamp(8px, 1vw, 14px) !important;
  width: 100% !important;
  max-width: 1180px !important;
  min-height: 0 !important;
  margin-inline: auto !important;
  overflow: visible !important;
}

.dnc-iso-stage {
  display: grid !important;
  position: static !important;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr) minmax(0, 0.82fr) !important;
  align-items: center !important;
  gap: clamp(6px, 0.8vw, 10px) !important;
  width: 100% !important;
  min-height: 0 !important;
  padding-block: clamp(18px, 2.6vw, 34px) !important;
  overflow: visible !important;
  transform: none !important;
  perspective: 1400px;
}

.dnc-iso-stage .dnc-iso-card {
  position: relative !important;
  inset: auto !important;
  width: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: transparent !important;
  box-shadow: 0 20px 48px rgba(4, 17, 48, 0.28) !important;
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: transform, opacity;
  transition:
    transform 0.78s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.68s ease,
    box-shadow 0.78s ease !important;
  aspect-ratio: 3 / 4 !important;
  grid-template-rows: minmax(0, 1fr) !important;
  min-height: 0 !important;
  height: auto !important;
  align-self: center !important;
}

.dnc-iso-stage[data-motion] .dnc-iso-card {
  animation-duration: 0.78s !important;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.dnc-iso-stage[data-motion="forward"] .certificate-left {
  animation-name: dncIsoLeftForward;
}
.dnc-iso-stage[data-motion="forward"] .certificate-center {
  animation-name: dncIsoCenterForward;
}
.dnc-iso-stage[data-motion="forward"] .certificate-right {
  animation-name: dncIsoRightForward;
}
.dnc-iso-stage[data-motion="backward"] .certificate-left {
  animation-name: dncIsoLeftBackward;
}
.dnc-iso-stage[data-motion="backward"] .certificate-center {
  animation-name: dncIsoCenterBackward;
}
.dnc-iso-stage[data-motion="backward"] .certificate-right {
  animation-name: dncIsoRightBackward;
}

@keyframes dncIsoLeftForward {
  from {
    opacity: 0;
    transform: translateX(30%) translateZ(-100px) rotateY(18deg) scale(0.78);
  }
  to {
    opacity: 0.78;
    transform: rotateY(10deg) scale(0.9) translateX(3%);
  }
}

@keyframes dncIsoCenterForward {
  from {
    opacity: 0.45;
    transform: translateX(20%) translateZ(-60px) rotateY(-8deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateZ(64px) scale(1.06);
  }
}

@keyframes dncIsoRightForward {
  from {
    opacity: 0;
    transform: translateX(34%) translateZ(-130px) rotateY(-20deg) scale(0.76);
  }
  to {
    opacity: 0.78;
    transform: rotateY(-10deg) scale(0.9) translateX(-3%);
  }
}

@keyframes dncIsoLeftBackward {
  from {
    opacity: 0;
    transform: translateX(-34%) translateZ(-130px) rotateY(20deg) scale(0.76);
  }
  to {
    opacity: 0.78;
    transform: rotateY(10deg) scale(0.9) translateX(3%);
  }
}

@keyframes dncIsoCenterBackward {
  from {
    opacity: 0.45;
    transform: translateX(-20%) translateZ(-60px) rotateY(8deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateZ(64px) scale(1.06);
  }
}

@keyframes dncIsoRightBackward {
  from {
    opacity: 0;
    transform: translateX(-30%) translateZ(-100px) rotateY(-18deg) scale(0.78);
  }
  to {
    opacity: 0.78;
    transform: rotateY(-10deg) scale(0.9) translateX(-3%);
  }
}

.dnc-iso-stage .certificate-center:is(:hover, :focus-visible) {
  transform: translateZ(84px) scale(1.085) !important;
  box-shadow: 0 36px 78px rgba(4, 17, 48, 0.46) !important;
}

.dnc-iso-carousel .certificate-arrow {
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.38s ease,
    box-shadow 0.38s ease !important;
}

.dnc-iso-carousel .certificate-arrow:is(:hover, :focus-visible) {
  transform: scale(1.1) !important;
  box-shadow: 0 10px 28px rgba(4, 17, 48, 0.25);
}

.dnc-iso-carousel .certificate-arrow:active {
  transform: scale(0.94) !important;
}

.dnc-iso-pagination button {
  transition:
    width 0.46s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.34s ease,
    background-color 0.4s ease !important;
}

.dnc-iso-pagination button:hover {
  transform: scale(1.25);
}

.dnc-iso-stage .dnc-iso-card img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 3 / 4 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 5px !important;
  object-fit: contain !important;
  align-self: stretch !important;
}

.dnc-iso-stage .dnc-iso-card > span {
  display: none !important;
}

.dnc-iso-stage .certificate-left {
  z-index: 1;
  opacity: 0.78 !important;
  transform: rotateY(10deg) scale(0.9) translateX(3%) !important;
}

.dnc-iso-stage .certificate-center {
  z-index: 3;
  opacity: 1 !important;
  box-shadow: 0 28px 64px rgba(4, 17, 48, 0.38) !important;
  transform: translateZ(64px) scale(1.06) !important;
}

.dnc-iso-stage .certificate-right {
  z-index: 1;
  opacity: 0.78 !important;
  transform: rotateY(-10deg) scale(0.9) translateX(-3%) !important;
}

.dnc-iso-carousel .certificate-arrow {
  position: static !important;
  display: grid !important;
  width: 44px !important;
  height: 44px !important;
  place-items: center;
  margin: 0 !important;
  transform: none !important;
}

.dnc-iso-pagination {
  margin-top: 12px !important;
}

@media (max-width: 780px) {
  .certificates-home .certificate-showcase.dnc-iso-carousel {
    grid-template-columns: 42px minmax(0, 1fr) 42px !important;
    gap: 8px !important;
  }

  .dnc-iso-stage {
    grid-template-columns: minmax(0, 1fr) !important;
    padding-block: 14px !important;
  }

  .dnc-iso-stage .certificate-left,
  .dnc-iso-stage .certificate-right {
    display: none !important;
  }

  .dnc-iso-carousel .certificate-arrow {
    width: 40px !important;
    height: 40px !important;
  }

  .dnc-iso-stage .certificate-center {
    box-shadow: 0 18px 42px rgba(4, 17, 48, 0.3) !important;
    transform: none !important;
  }

  .dnc-iso-stage[data-motion="forward"] .certificate-center {
    animation-name: dncIsoMobileForward;
  }
  .dnc-iso-stage[data-motion="backward"] .certificate-center {
    animation-name: dncIsoMobileBackward;
  }
}

@keyframes dncIsoMobileForward {
  from {
    opacity: 0;
    transform: translateX(13%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes dncIsoMobileBackward {
  from {
    opacity: 0;
    transform: translateX(-13%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .dnc-iso-grid,
  .certificates-home .certificate-showcase.dnc-iso-grid,
  .profile-certificates .profile-certificate-grid.dnc-iso-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  .dnc-iso-grid,
  .certificates-home .certificate-showcase.dnc-iso-grid,
  .profile-certificates .profile-certificate-grid.dnc-iso-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

[data-theme="dark"] .vision-card {
  border-color: rgba(156, 204, 210, 0.45) !important;
  background: linear-gradient(145deg, #233568 0%, #1b2e5a 100%) !important;
  box-shadow: none !important;
}

[data-theme="dark"] .vision-card::before {
  background: #9cccd2;
}
[data-theme="dark"] .vision-card :is(h3, p) {
  color: #ffffff !important;
}

@media (max-width: 780px) {
  .vision-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    margin-top: 26px !important;
  }

  .vision-card {
    padding: 18px !important;
  }
}

.split-heading {
  margin-bottom: clamp(32px, 4vw, 52px) !important;
}

.reach-home .split-heading {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}

.reach-outlook-card {
  position: relative;
  align-self: end;
  width: 100%;
  max-width: none;
  padding: clamp(18px, 2vw, 26px);
  overflow: hidden;
  border: 1px solid rgb(37 75 112 / 0.2);
  border-radius: 16px;
  background: linear-gradient(135deg, rgb(255 255 255 / 0.96), rgb(232 242 245 / 0.9));
  box-shadow: 0 14px 34px rgb(16 37 82 / 0.08);
}

.reach-outlook-card::before {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  content: "";
  background: linear-gradient(180deg, #0b78aa, #9cccd2);
}

.reach-outlook-card > span {
  display: block;
  color: #254b70;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: 0.14em;
}

.reach-outlook-card > p {
  margin: 12px 0 0 !important;
  color: #294965 !important;
  font-size: clamp(0.86rem, 1vw, 0.98rem) !important;
  line-height: 1.65 !important;
}

[dir="rtl"] .reach-outlook-card > span {
  letter-spacing: 0;
}

[data-theme="dark"] .reach-outlook-card {
  border-color: rgb(159 220 232 / 0.22);
  background: linear-gradient(135deg, rgb(9 28 59 / 0.96), rgb(15 48 78 / 0.92));
}

[data-theme="dark"] .reach-outlook-card > span {
  color: #9fdce8;
}

[data-theme="dark"] .reach-outlook-card > p {
  color: #e4f1f4 !important;
}

@media (max-width: 980px) {
  .reach-home .split-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .reach-outlook-card {
    max-width: 42rem;
  }
}

/* Give the two-line Arabic projects heading enough vertical room for dots
   and diacritics at every responsive size. */
.site.arabic .projects .split-heading h2 {
  line-height: 1.28 !important;
}

/* This two-line title carries dense Arabic dots and descenders. */
.site.arabic .certificates-home .split-heading h2 {
  line-height: 1.4 !important;
}

.detail-hero h1,
.contact-page-hero h1,
.careers-hero h1 {
  margin-bottom: clamp(28px, 3.5vw, 44px) !important;
}

@media (max-width: 780px) {
  main .padded {
    padding-block: 64px !important;
  }

  .about-copy {
    margin-top: 28px !important;
    gap: 14px !important;
  }
}

/* The two-ring treatment remains visible on both light and dark surfaces. */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid var(--dnc-a11y-focus-inner) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 6px var(--dnc-a11y-focus-outer) !important;
}

/* Shared text scale: all operational sizes are raised by 2px. */
main :where(p, li, dd, dt, figcaption, label, input, textarea, select),
main :where(a, button):not(.lightbox-nav):not(.certificate-pagination button),
.site-footer :where(p, span, a) {
  font-size: max(16px, 1em) !important;
}

main :where(p, li, dd, dt, figcaption, label) {
  line-height: 1.5 !important;
}
main form label,
.contact-page-form label {
  font-size: 16px !important;
}

main .eyebrow,
main .gold-text,
main .form-note,
main .project-caption p,
main .gallery-pill,
main .lightbox-caption p,
.site-footer .footer-tagline,
.site-footer .footer-rights {
  font-size: 16px !important;
}

.site-footer .site-footer-brand,
.site-footer .site-footer-brand img {
  width: 280px !important;
  height: 99px !important;
  object-fit: contain;
}

/* Arabic glyphs need more leading than the compact Latin display treatment. */
.contact-page.arabic .contact-page-hero h1 {
  line-height: 1.12 !important;
  letter-spacing: -0.04em !important;
}

.contact-page.arabic .contact-page-hero > p:last-child {
  margin-top: clamp(32px, 4vw, 48px) !important;
}

/* Arabic homepage contact block: give the display headline room before its copy. */
[dir="rtl"] .contact-intro,
.arabic .contact-intro {
  text-align: right;
}

[dir="rtl"] .contact-intro h2,
.arabic .contact-intro h2 {
  max-width: 760px;
  margin: 0 0 clamp(34px, 4.5vw, 58px) !important;
  font-size: clamp(40px, 5.4vw, 78px) !important;
  line-height: 1.2 !important;
}

[dir="rtl"] .contact-intro > p:not(.eyebrow),
.arabic .contact-intro > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 0 18px !important;
  line-height: 1.85 !important;
}

[dir="rtl"] .contact-intro .contact-branches,
.arabic .contact-intro .contact-branches {
  margin-top: 8px !important;
}

@media (max-width: 780px) {
  .site-footer .site-footer-brand,
  .site-footer .site-footer-brand img {
    width: 220px !important;
    height: 78px !important;
  }
}

.hero-copy,
.detail-hero > p:not(.eyebrow),
.careers-hero > p:not(.eyebrow) {
  font-size: clamp(19px, 1.35vw, 22px) !important;
}

main .desktop-nav > a,
main .desktop-nav > .nav-group > button,
main .nav-dropdown a,
main .mobile-menu :where(a, button),
main .header .lang {
  font-size: 16px !important;
}

/* Keep all site text free of underlines, including links and hover states. */
:where(*) {
  text-decoration: none !important;
}

@media (pointer: coarse) {
  :where(.header, .mobile-menu, .site-footer, main)
    :where(a, button, input, select, textarea) {
    min-height: 44px;
  }
}

.dnc-runtime-form-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--dnc-a11y-error) 55%, transparent);
  border-radius: 8px;
  background: var(--dnc-a11y-error-surface);
  color: var(--dnc-a11y-error);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

:where(input, textarea, select)[aria-invalid="true"] {
  border-color: var(--dnc-a11y-error) !important;
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--dnc-a11y-error) 20%, transparent) !important;
}

:where(input, textarea, select)[aria-invalid="true"]:focus-visible {
  box-shadow:
    0 0 0 3px rgba(140, 53, 66, 0.2),
    0 0 0 6px var(--dnc-a11y-focus-outer) !important;
}

.contact-page-form
  :is(input, textarea, select)[aria-invalid="true"]:focus-visible {
  box-shadow:
    0 0 0 3px rgba(140, 53, 66, 0.2),
    0 0 0 6px var(--dnc-a11y-focus-outer) !important;
}

[data-theme="dark"] .dnc-runtime-form-error {
  border-color: #ffb4bf;
  background: #5c2430;
  color: #ffe8eb;
}

/* Partner categories are data-backed but their labels are rendered client-side. */
.partners-home .partner-group h3 {
  line-height: 1.25;
}

/* Cinematic, visual-order reveal for the complete partner wall. */
.partners-home.dnc-partners-reveal-ready .partner-groups {
  perspective: 1200px;
  perspective-origin: 50% 20%;
}

.partners-home.dnc-partners-reveal-ready .section-heading {
  opacity: 0;
  transform: translate3d(0, 30px, 0) scale(0.985);
  will-change: opacity, transform;
}

.partners-home.dnc-partners-reveal-ready .partner-group {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  opacity: 0;
  filter: none !important;
  clip-path: inset(0 round 14px);
  transform: translate3d(0, -210px, 0) rotateX(-12deg)
    rotateZ(var(--dnc-partner-tilt, 0deg)) scale(0.97);
  transform-origin: 50% 0;
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.partners-home.dnc-partners-reveal-ready .partner-group::after {
  position: absolute;
  z-index: 3;
  inset: -45% -80%;
  pointer-events: none;
  content: "";
  opacity: 0;
  background: linear-gradient(
    115deg,
    transparent 42%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 58%
  );
  transform: translate3d(-38%, 0, 0);
}

.partners-home.dnc-partners-reveal-ready .partner-logo {
  opacity: 1;
  filter: none !important;
  transform: none;
  will-change: auto;
}

.partners-home.dnc-partners-reveal-ready.dnc-partners-revealed
  .section-heading,
.partners-home.dnc-partners-reveal-ready.dnc-partners-revealed .partner-logo {
  opacity: 1;
  transform: none;
}

.partners-home.dnc-partners-reveal-ready.dnc-partners-revealed .partner-group {
  animation: dnc-partner-premium-drop 1.78s linear both;
  animation-delay: var(--dnc-partner-delay, 380ms);
}

.partners-home.dnc-partners-reveal-ready.dnc-partners-revealed
  .section-heading {
  transition:
    opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1050ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.partners-home.dnc-partners-reveal-ready.dnc-partners-revealed .partner-logo {
  transition: none !important;
}

.partners-home.dnc-partners-reveal-ready.dnc-partners-revealed
  .partner-group::after {
  animation: dnc-partner-glint 980ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--dnc-partner-glint-delay, 760ms);
}

.partners-home.dnc-partners-reveal-ready.dnc-partners-reveal-complete
  .partner-group {
  animation: none !important;
  opacity: 1;
  transform: none;
  transition:
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 320ms ease !important;
  will-change: auto;
}

.partners-home.dnc-partners-reveal-ready.dnc-partners-reveal-complete
  .partner-logo {
  transition: none !important;
  will-change: auto;
}

@keyframes dnc-partner-premium-drop {
  0% {
    opacity: 0;
    transform: translate3d(0, -210px, 0) rotateX(-12deg)
      rotateZ(var(--dnc-partner-tilt, 0deg)) scale(0.97);
    animation-timing-function: cubic-bezier(0.18, 0.72, 0.22, 1);
  }
  12% {
    opacity: 1;
  }
  76% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0deg) rotateZ(0deg) scale(1);
    animation-timing-function: cubic-bezier(0.2, 0.72, 0.2, 1);
  }
  88% {
    transform: translate3d(0, 1.5px, 0) rotateX(0deg) rotateZ(0deg)
      scale3d(1.002, 0.994, 1);
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes dnc-partner-glint {
  0%,
  35% {
    opacity: 0;
    transform: translate3d(-38%, 0, 0);
  }
  48% {
    opacity: 0.42;
  }
  100% {
    opacity: 0;
    transform: translate3d(38%, 0, 0);
  }
}

/* Keep homepage cards focused on their content rather than sequence labels. */
.site .hero-index,
.site .why-grid > article > span,
.site .value-card > span,
.site .service-card > .service-number,
.site .project-card > .project-number,
.site .profile-card-number {
  display: none !important;
}

/* Remove the decorative careers-image stamp while retaining the image itself. */
.site .career-image .career-stamp {
  display: none !important;
}

/* Improve legibility of the CEO attribution, especially in Arabic. */
[dir="rtl"] .ceo-sign b {
  font-size: clamp(18px, 1.35vw, 22px) !important;
  line-height: 1.35 !important;
}

[dir="rtl"] .ceo-sign small {
  font-size: clamp(14px, 1.05vw, 17px) !important;
  line-height: 1.55 !important;
}

/* Light mode: strengthen text contrast on the pale content surfaces. */
[data-theme="light"]
  .site
  :is(
    .about-copy,
    .group-intro,
    .contact-intro > p,
    .contact-home-cta > p,
    .vision-card p,
    .value-card p,
    .why-grid article p,
    .certificate-showcase-card small
  ) {
  color: #173b70 !important;
  -webkit-text-fill-color: #173b70 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

[data-theme="light"]
  .site
  :is(
    .about h2,
    .group-companies h2,
    .certificates-home h2,
    .contact h2,
    .vision-card h3,
    .value-card h3,
    .why-grid article h3
  ) {
  color: #08275b !important;
  -webkit-text-fill-color: #08275b !important;
}

@media (max-width: 640px) {
  .partners-home.section.padded {
    padding-block: 64px !important;
  }

  .partners-home .section-heading {
    margin-bottom: 26px !important;
  }

  .partners-home .section-heading h2 {
    font-size: clamp(31px, 9vw, 42px) !important;
    line-height: 1.16 !important;
  }

  .partners-home .partner-groups {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }

  .partners-home .partner-group {
    overflow: hidden;
    border-radius: 12px !important;
  }

  .partners-home .partner-group h3 {
    min-height: 58px;
    margin: 0 !important;
    padding: 16px 18px !important;
    font-size: 18px !important;
    line-height: 1.4 !important;
  }

  .partners-home .partner-group-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    min-height: 0 !important;
    gap: 10px !important;
    padding: 12px !important;
  }

  .partners-home .partner-group-logos[data-count="1"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .partners-home .partner-logo {
    display: grid !important;
    min-height: 144px !important;
    padding: 14px !important;
    place-items: center;
  }

  .partners-home .partner-group-logos[data-count="1"] .partner-logo {
    min-height: 172px !important;
    padding: 20px !important;
  }

  .partners-home .partner-logo img {
    width: 100% !important;
    height: 100% !important;
    max-height: 168px !important;
    object-fit: contain !important;
  }

  .partners-home .partner-group-logos[data-count="1"] .partner-logo img {
    max-height: 180px !important;
  }
}

/* Certificate viewer: foreground adapts to the actual section surface in each theme. */
.certificates-home {
  --dnc-certificate-foreground: var(--dnc-contrast-on-dark);
  --dnc-certificate-foreground-hover: var(--dnc-contrast-on-dark);
  --dnc-certificate-border: var(--dnc-contrast-on-dark-border);
  --dnc-certificate-control-surface: rgba(255, 255, 255, 0.08);
  --dnc-certificate-control-hover: rgba(228, 251, 253, 0.2);
  --dnc-certificate-dot: #c9e2e8;
  --dnc-certificate-card-border: var(--dnc-contrast-on-light-border);
}

[data-theme="light"] .certificates-home {
  --dnc-certificate-foreground: var(--dnc-contrast-on-light);
  --dnc-certificate-foreground-hover: var(--dnc-contrast-on-light-hover);
  --dnc-certificate-border: var(--dnc-contrast-on-light-border);
  --dnc-certificate-control-surface: #ffffff;
  --dnc-certificate-control-hover: #edf7f8;
  --dnc-certificate-dot: var(--dnc-contrast-on-light-border);
  --dnc-certificate-card-border: var(--dnc-contrast-on-light-border);
}

.certificates-home .text-link {
  color: var(--dnc-certificate-foreground) !important;
  font-weight: 700 !important;
  text-decoration-color: currentColor !important;
}

.certificates-home .text-link:focus-visible,
.certificates-home .text-link:hover,
.certificates-home .text-link:active,
.certificates-home .text-link:visited {
  color: var(--dnc-certificate-foreground-hover) !important;
  outline-color: var(--dnc-certificate-border) !important;
}

.certificates-home .certificate-arrow {
  border-color: var(--dnc-certificate-border) !important;
  background: var(--dnc-certificate-control-surface) !important;
  color: var(--dnc-certificate-foreground) !important;
}

.certificates-home .certificate-arrow:focus-visible,
.certificates-home .certificate-arrow:hover,
.certificates-home .certificate-arrow:active {
  border-color: var(--dnc-certificate-foreground-hover) !important;
  background: var(--dnc-certificate-control-hover) !important;
}

.certificates-home .certificate-pagination button::after {
  background: var(--dnc-certificate-dot) !important;
}

.certificates-home .certificate-pagination button.active::after {
  background: var(--dnc-certificate-foreground) !important;
}

.certificates-home
  .certificate-pagination
  button:is(:focus-visible, :hover, :active)::after {
  background: var(--dnc-certificate-foreground-hover) !important;
}

.certificates-home .certificate-showcase-card {
  border-color: var(--dnc-certificate-card-border) !important;
  box-shadow: 0 18px 38px rgba(2, 15, 43, 0.3) !important;
}

.certificates-home .certificate-showcase-card strong {
  font-size: clamp(15px, 1.15vw, 18px) !important;
  line-height: 1.35 !important;
}

.certificates-home .certificate-showcase-card small {
  color: var(--dnc-contrast-on-light) !important;
  font-weight: 600 !important;
}

.certificates-home .certificate-arrow:disabled,
.certificates-home .certificate-pagination button:disabled {
  border-color: var(--dnc-certificate-border) !important;
  color: var(--dnc-certificate-foreground) !important;
  opacity: 0.55;
}

/* These cards retain a dark DNC-blue surface in both themes. */
.service-card,
.service-card :is(h2, h3, p, span, a, svg) {
  color: var(--dnc-contrast-on-dark) !important;
}

.service-card {
  border-color: var(--dnc-contrast-on-dark-border) !important;
}

.service-card :is(a, button):focus-visible,
.service-card :is(a, button):hover {
  color: var(--dnc-contrast-on-dark-soft) !important;
}

/* Project imagery and featured CTA bands are dark-surface contexts in both themes. */
.project-card,
.project-card :is(h2, h3, p, span, a, svg) {
  color: var(--dnc-contrast-on-dark) !important;
}

.project-card {
  border-color: var(--dnc-contrast-on-dark-border) !important;
}

/* Remove the two row-spanning caption dividers from the project grid. */
.project-card .project-caption {
  border-top: 0 !important;
}

/* The project metric sits on a dark surface and needs a light foreground. */
[data-theme="dark"] .projects .project-note {
  color: var(--dnc-contrast-on-dark) !important;
}

:is(.hero, .media-home, .careers-home, .contact-home) .button.gold {
  background: var(--dnc-contrast-on-dark) !important;
  border-color: var(--dnc-contrast-on-dark-border) !important;
  color: var(--dnc-contrast-on-light) !important;
}

:is(.hero, .media-home, .careers-home, .contact-home) .button.glass {
  background: transparent !important;
  border-color: var(--dnc-contrast-on-dark-border) !important;
  color: var(--dnc-contrast-on-dark) !important;
}

:is(.hero, .media-home, .careers-home, .contact-home)
  .button:is(:hover, :focus-visible, :active) {
  background: var(--dnc-contrast-on-dark-soft) !important;
  border-color: var(--dnc-contrast-on-dark-border) !important;
  color: var(--dnc-contrast-on-light-hover) !important;
}

/* Light-surface cards retain a visible DNC-blue edge and foreground in light mode. */
[data-theme="light"]
  :is(
    .value-card,
    .vision-card,
    .company-card,
    .why-grid article,
    .partner-group
  ) {
  border-color: var(--dnc-contrast-on-light-border) !important;
  color: var(--dnc-contrast-on-light) !important;
}

[data-theme="light"] .partners-home .partner-group {
  border: 1px solid rgba(37, 75, 112, 0.18) !important;
  border-radius: 14px !important;
  background-clip: padding-box;
  box-shadow:
    0 12px 30px rgba(16, 37, 82, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5) !important;
}

[data-theme="light"]
  :is(.value-card, .vision-card, .company-card, .why-grid article)
  :is(h2, h3, h4, p, span, a, svg) {
  color: var(--dnc-contrast-on-light) !important;
}

/* Services showcase: full-bleed photography with a clear logical navigation action. */
.services .service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(14px, 1.4vw, 22px) !important;
}

.services .service-grid > .service-card[hidden] {
  display: none !important;
}

.services .service-card {
  min-height: clamp(340px, 30vw, 470px) !important;
  overflow: hidden;
}

.services .service-photo {
  width: 100% !important;
  height: 100% !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: cover !important;
}

.services .text-link,
.services .text-link:visited {
  color: var(--dnc-contrast-on-dark) !important;
  text-decoration-color: currentColor !important;
}

.services .text-link:is(:hover, :focus-visible, :active) {
  color: var(--dnc-contrast-on-dark-soft) !important;
}

.services .service-info .service-card-action {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid var(--dnc-contrast-on-dark-border);
  border-radius: 999px;
  background: rgba(16, 37, 82, 0.38);
  color: var(--dnc-contrast-on-dark) !important;
  text-decoration: none !important;
}

.services
  .service-info
  .service-card-action:is(:hover, :focus-visible, :active) {
  background: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.28),
    0 10px 24px rgba(0, 0, 0, 0.38) !important;
  color: var(--dnc-contrast-on-light-border) !important;
}

.services
  .service-info
  .service-card-action:is(:hover, :focus-visible, :active)
  svg {
  color: var(--dnc-contrast-on-light-border) !important;
}

/* Preserve the same high-contrast hover state before the runtime link upgrade runs. */
.services .service-card:hover .service-info > span {
  background: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.28),
    0 10px 24px rgba(0, 0, 0, 0.38) !important;
  color: var(--dnc-contrast-on-light-border) !important;
}

.services .service-card:hover .service-info > span svg {
  color: var(--dnc-contrast-on-light-border) !important;
}

/* Service-card arrows stay right-facing in Arabic as requested. */
[dir="rtl"] .services .service-info .service-card-action svg {
  transform: none !important;
}

/* Keep Arabic service copy on one clear right-aligned text edge. */
[dir="rtl"] .services .service-info,
.arabic .services .service-info {
  direction: rtl;
  text-align: right !important;
}

[dir="rtl"] .services .service-info > div,
.arabic .services .service-info > div {
  min-width: 0;
  text-align: right !important;
}

[dir="rtl"] .services .service-info h3,
[dir="rtl"] .services .service-info p,
.arabic .services .service-info h3,
.arabic .services .service-info p {
  text-align: right !important;
}

[dir="rtl"] .services .service-info p,
.arabic .services .service-info p {
  margin-inline-start: 0 !important;
  margin-inline-end: 0 !important;
}

[dir="rtl"] .services .text-link svg {
  transform: scaleX(-1);
}

/* Isolate phone digits so Arabic bidi rendering keeps the number in order. */
.dnc-phone-number {
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .services .service-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .services .service-card {
    min-height: min(420px, 108vw) !important;
  }
}

[dir="rtl"] .certificates-home .certificate-arrow svg,
[dir="rtl"] .certificates-home .text-link svg {
  transform: scaleX(-1);
}

@media (min-width: 781px) {
  .certificates-home .certificate-showcase {
    max-width: 1280px !important;
    margin-inline: auto;
  }

  .certificates-home .certificate-stage,
  .certificates-home .certificate-showcase-card {
    min-height: 462px !important;
  }

  .certificates-home .certificate-image-frame {
    min-height: 366px !important;
  }
}

@media (max-width: 780px) {
  .certificates-home .certificate-showcase {
    position: relative;
    display: block !important;
    width: 100% !important;
    padding-inline: 0 !important;
  }

  .certificates-home .certificate-stage {
    width: 100% !important;
    height: calc(min(440px, 115vw) + 72px) !important;
  }

  .certificates-home .certificate-showcase-card.certificate-center {
    width: 100% !important;
    height: 100% !important;
  }

  .certificates-home .certificate-image-frame {
    min-height: min(440px, 115vw) !important;
  }

  .certificates-home .certificate-arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 48px !important;
    height: 48px !important;
    transform: translateY(-50%);
    box-shadow: 0 8px 20px rgba(2, 15, 43, 0.35);
  }

  .certificates-home .certificate-arrow-prev {
    inset-inline-start: -12px;
  }
  .certificates-home .certificate-arrow-next {
    inset-inline-end: -12px;
  }

  .certificates-home .certificate-showcase-card strong {
    font-size: 16px !important;
  }
}

/* Arabic homepage finish: give the hero a full mobile text measure and keep actions usable. */
@media (max-width: 640px) {
  [dir="rtl"] .hero-content {
    width: min(calc(100% - 40px), 640px) !important;
    max-width: none !important;
    text-align: right !important;
  }

  [dir="rtl"] .hero-actions {
    width: 100% !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
  }

  [dir="rtl"] .hero-actions .button {
    min-height: 52px;
    justify-content: center;
    text-align: center;
  }

  [dir="rtl"] .hero-actions .button.gold svg {
    transform: scaleX(-1);
  }

  [dir="rtl"] .riyadh-time {
    max-width: 100%;
  }
}

/* Confirmed reach metrics are content-bearing list items, not poster artwork. */
[dir="rtl"] .reach-home .metric {
  text-align: right !important;
}

[dir="rtl"] .reach-home .metric span {
  display: block;
  max-width: 30ch;
  color: #ffffff !important;
  font-size: clamp(14px, 1.1vw, 18px) !important;
  font-weight: 600;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
}

[dir="rtl"] .reach-home .metric strong {
  direction: rtl;
  unicode-bidi: isolate;
}

[dir="rtl"] .reach-home .metric .metric-unit {
  direction: rtl;
  unicode-bidi: isolate;
  font-size: 0.56em;
  font-weight: 600;
  white-space: nowrap;
}

[dir="rtl"] .riyadh-time :is(time, strong, .time, .time-value) {
  direction: rtl !important;
  unicode-bidi: isolate !important;
  font-variant-numeric: normal;
}

/* Give Arabic supporting copy a more comfortable reading size across compact UI areas. */
[dir="rtl"]
  :is(
    .riyadh-time > span,
    .splash-bottom > span,
    .metric > span,
    .eyebrow,
    .group-intro,
    .partner-group h3,
    .project-caption p,
    .service-info p,
    .quote-secondary,
    .contact-branches,
    .footer-tagline,
    .footer-rights,
    .play-label,
    .career-stamp small
  ) {
  font-size: max(1.1em, 14px) !important;
  line-height: 1.6 !important;
  letter-spacing: 0 !important;
}

[dir="rtl"] .riyadh-time > span,
[dir="rtl"] .splash-bottom > span {
  font-size: max(1.15em, 15px) !important;
  font-weight: 600;
}

/* Keep Arabic homepage service captions composed and readable on phones. */
@media (max-width: 780px) {
  [dir="rtl"] .services .service-info,
  .arabic .services .service-info {
    position: absolute !important;
    inset: auto 20px 20px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 14px;
    align-items: end;
    width: auto;
  }

  [dir="rtl"] .services .service-info h3,
  .arabic .services .service-info h3 {
    font-size: clamp(22px, 6.2vw, 26px) !important;
    line-height: 1.3 !important;
  }

  [dir="rtl"] .services .service-info p,
  .arabic .services .service-info p {
    max-width: none;
    margin: 8px 0 0 !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
  }

  [dir="rtl"] .services .service-info > span,
  .arabic .services .service-info > span {
    align-self: end;
  }
}

@media (max-width: 640px) {
  .reach-home .metrics-inner {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 !important;
  }

  .reach-home .metric {
    min-width: 0;
  }

  [dir="rtl"] .reach-home .metric {
    text-align: right !important;
  }

  [dir="rtl"] .reach-home .metric span {
    max-width: 25ch;
    text-wrap: balance;
  }

  [dir="rtl"] .reach-home .metric strong:has(.metric-unit) {
    display: grid;
    gap: 4px;
  }

  [dir="rtl"] .reach-home .metric .metric-unit {
    font-size: 0.42em;
  }
}

/* Responsive, real footer built from the existing DNC logo and contact routes. */
@media (max-width: 640px) {
  .site-footer {
    padding: clamp(48px, 7vw, 92px) clamp(20px, 5vw, 80px) 28px !important;
    background: #0f1d3d !important;
    color: #ffffff !important;
  }

  .dnc-footer-inner {
    display: grid;
    grid-template-columns: minmax(220px, 1.1fr) minmax(160px, 0.8fr) minmax(
        240px,
        1fr
      );
    gap: clamp(28px, 6vw, 96px);
    max-width: 1440px;
    margin: 0 auto;
  }

  .dnc-footer-brand-column,
  .dnc-footer-nav,
  .dnc-footer-contact {
    min-width: 0;
  }

  .dnc-footer-brand-column {
    display: grid;
    align-content: start;
    gap: 14px;
  }

  .dnc-footer-brand-column .site-footer-brand {
    width: min(260px, 100%) !important;
    height: auto !important;
  }

  .dnc-footer-vision {
    margin: 0 !important;
    color: #d7c486 !important;
    font-size: 15px !important;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .dnc-footer-brand-column .footer-tagline,
  .dnc-footer-bottom .footer-rights {
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.72) !important;
  }

  .dnc-footer-nav {
    display: grid;
    align-content: start;
    gap: 8px;
  }

  .dnc-footer-nav a,
  .dnc-footer-contact a {
    display: block;
    min-height: 44px;
    padding-block: 9px;
    color: #ffffff !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
  }

  .dnc-footer-nav a:hover,
  .dnc-footer-nav a:focus-visible,
  .dnc-footer-contact a:hover,
  .dnc-footer-contact a:focus-visible {
    color: #d7c486 !important;
  }

  .dnc-footer-contact {
    display: grid;
    align-content: start;
    gap: 2px;
  }

  .dnc-footer-contact h3 {
    margin: 0 0 8px !important;
    color: #d7c486 !important;
    font-size: 18px !important;
  }

  .dnc-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 1440px;
    margin: clamp(32px, 5vw, 70px) auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }
}

/* Palette neutral: decorative separators only; not a text color on light surfaces. */
[data-theme="light"]
  :is(.site-footer, .partner-group, .vision-card, .value-card) {
  --dnc-decorative-neutral: var(--dnc-steel-gray);
}

.dnc-whatsapp {
  position: fixed;
  z-index: 35;
  inset-inline-start: 18px;
  bottom: 18px;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: #1e8e53;
  color: #ffffff !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.dnc-whatsapp svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.dnc-whatsapp span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.dnc-whatsapp:hover,
.dnc-whatsapp:focus-visible {
  background: #167544;
  transform: translateY(-2px);
}

/* The concierge is removed from the public interface. */
.dnc-concierge {
  display: none !important;
}

/* Certificate documents open in a contain-mode lightbox; originals remain available. */
body.dnc-cert-lightbox-open {
  overflow: hidden;
}

.dnc-cert-lightbox[hidden] {
  display: none;
}

.dnc-cert-lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  padding: 18px;
  place-items: center;
  background: rgba(7, 16, 37, 0.9);
}

.dnc-cert-lightbox-panel {
  position: relative;
  display: grid;
  width: min(1100px, 100%);
  max-height: calc(100vh - 36px);
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  background: #f7f9fb;
  color: #102552;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.dnc-cert-lightbox figure {
  display: grid;
  min-width: 0;
  max-height: calc(100vh - 80px);
  margin: 0;
  gap: 12px;
}

.dnc-cert-image-wrap {
  display: grid;
  min-height: 180px;
  max-height: calc(100vh - 190px);
  place-items: center;
  overflow: auto;
  background: #ffffff;
}

.dnc-cert-lightbox-image {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: calc(100vh - 190px);
  object-fit: contain;
  transform-origin: center center;
  transition: transform 160ms ease;
}

.dnc-cert-lightbox figcaption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 18px;
  align-items: center;
}

.dnc-cert-lightbox figcaption strong {
  font-size: 18px;
  line-height: 1.4;
}

.dnc-cert-counter {
  direction: ltr;
  unicode-bidi: isolate;
  color: #50627a;
  font-size: 14px;
}

.dnc-cert-tools {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-self: end;
}

.dnc-cert-tools button,
.dnc-cert-close,
.dnc-cert-nav {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  border: 1px solid #254b70;
  border-radius: 999px;
  background: #ffffff;
  color: #102552;
  font-size: 20px;
  cursor: pointer;
}

.dnc-cert-tools button:hover,
.dnc-cert-tools button:focus-visible,
.dnc-cert-close:hover,
.dnc-cert-close:focus-visible,
.dnc-cert-nav:hover,
.dnc-cert-nav:focus-visible {
  background: #e8f3f5;
}

.dnc-cert-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  inset-inline-end: 12px;
  font-size: 28px;
  line-height: 1;
}

.dnc-cert-nav {
  position: static;
}

.dnc-cert-original {
  grid-column: 1 / -1;
  justify-self: start;
  color: #102552 !important;
  font-size: 15px !important;
  font-weight: 700;
}

.dnc-cert-original:hover,
.dnc-cert-original:focus-visible {
  color: #254b70 !important;
}

@media (max-width: 640px) {
  [dir="rtl"] .hero-content {
    width: calc(100vw - 40px) !important;
    flex: 0 0 calc(100vw - 40px) !important;
  }

  [dir="rtl"] .hero-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .reach-home .metrics-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .reach-home .metric {
    min-height: 118px;
  }

  .dnc-footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .dnc-footer-bottom {
    display: grid;
    gap: 8px;
  }

  .dnc-cert-lightbox {
    padding: 10px;
  }

  .dnc-cert-lightbox-panel {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 5px;
    padding: 42px 8px 12px;
  }

  .dnc-cert-image-wrap {
    max-height: calc(100vh - 228px);
  }

  .dnc-cert-lightbox-image {
    max-height: calc(100vh - 228px);
  }

  .dnc-cert-lightbox figcaption {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .dnc-cert-lightbox figcaption strong {
    font-size: 15px;
  }

  .dnc-cert-tools button,
  .dnc-cert-close,
  .dnc-cert-nav {
    min-width: 40px;
    min-height: 40px;
  }
}

/* Arabic mobile: fixed desktop tracks must not compress or clip on phones. */
@media (max-width: 640px) {
  [dir="rtl"] {
    overflow-x: clip;
  }

  [dir="rtl"] .hero {
    min-height: max(720px, 100svh) !important;
  }

  [dir="rtl"] .hero-content {
    width: calc(100% - 40px) !important;
    max-width: none !important;
    min-width: 0 !important;
    padding-block: 118px 36px !important;
  }

  [dir="rtl"] .hero-actions,
  [dir="rtl"] .media-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    gap: 12px !important;
  }

  [dir="rtl"] :is(.hero-actions, .media-actions) .button {
    width: 100% !important;
    min-height: 56px !important;
    padding-inline: 18px !important;
    justify-content: center !important;
    white-space: normal !important;
  }

  /* Time and location are bilingual; keep them isolated from Arabic bidi flow. */
  [dir="rtl"] .riyadh-time {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 14px 16px !important;
    gap: 10px !important;
    direction: ltr !important;
  }

  [dir="rtl"] .riyadh-time :is(time, strong, .time, .time-value) {
    min-width: 0 !important;
    direction: ltr !important;
    white-space: nowrap !important;
    font-size: clamp(22px, 7vw, 32px) !important;
  }

  [dir="rtl"] .riyadh-time :is(span, p):not(.time):not(.time-value) {
    min-width: 0 !important;
    overflow-wrap: anywhere;
    text-align: center !important;
    direction: ltr !important;
    font-size: 14px !important;
  }

  /* Compact, consistently sized reach metrics. */
  .reach-home .metrics-inner {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1px !important;
  }

  .reach-home .metric {
    display: grid !important;
    min-height: 154px !important;
    padding: 24px 18px !important;
    align-content: center !important;
    gap: 8px !important;
  }

  [dir="rtl"] .reach-home .metric {
    text-align: right !important;
  }

  [dir="rtl"] .reach-home .metric strong {
    direction: rtl;
    unicode-bidi: isolate;
    font-size: clamp(38px, 12vw, 56px) !important;
    line-height: 1 !important;
  }

  [dir="rtl"] .reach-home .metric span {
    max-width: none !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  /* Detail heroes must clear the floating header. */
  [dir="rtl"] :is(.detail-hero, .media-home, .profile-hero) {
    min-height: 540px !important;
    padding-top: 132px !important;
  }

  [dir="rtl"] :is(.detail-hero, .media-home, .profile-hero) h1 {
    max-width: 100% !important;
    font-size: clamp(34px, 10vw, 48px) !important;
    line-height: 1.18 !important;
  }

  /* Partner logos are content, not a cropped collage. */
  .partners-home .partner-groups {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }

  .partners-home .partner-group,
  .partners-home .partner-group[data-group="city-halls"],
  .partners-home .partner-group[data-group="municipalities"] {
    height: auto !important;
    grid-template-rows: auto auto !important;
  }

  .partners-home .partner-group-logos,
  .partners-home .partner-group[data-group="city-halls"] .partner-group-logos,
  .partners-home
    .partner-group[data-group="municipalities"]
    .partner-group-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: 132px !important;
    min-height: 0 !important;
    padding: 14px !important;
    gap: 12px !important;
  }

  .partners-home .partner-logo {
    min-height: 0 !important;
    padding: 10px !important;
  }

  .partners-home .partner-logo img {
    width: 100% !important;
    height: 100% !important;
    max-height: 112px !important;
    object-fit: contain !important;
  }

  /* Crop only the blank document margin in the compact certificate preview. */
  .certificates-home .certificate-stage,
  .certificates-home .certificate-showcase-card {
    min-height: 0 !important;
  }

  .certificates-home .certificate-image-frame {
    min-height: 0 !important;
    height: min(94vw, 410px) !important;
    overflow: hidden !important;
  }

  .certificates-home .certificate-image-frame img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  /* Keep Arabic brand and LTR legal text from reordering each other. */
  [dir="rtl"]
    :is(
      .dnc-footer-brand-column,
      .dnc-footer-nav,
      .dnc-footer-contact,
      .dnc-footer-bottom
    ) {
    text-align: right !important;
  }

  [dir="rtl"] .dnc-footer-bottom .footer-rights {
    direction: rtl;
    unicode-bidi: plaintext;
    line-height: 1.75 !important;
  }

  [dir="rtl"] .dnc-whatsapp {
    inset-inline-start: auto;
    inset-inline-end: 18px;
  }
}

@media (max-width: 380px) {
  .reach-home .metrics-inner {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Gallery: show more photographs at a comfortable, tap-friendly size on phones. */
@media (min-width: 420px) and (max-width: 639px) {
  .gallery {
    padding-inline: 14px !important;
  }

  .gallery-grid {
    column-count: 2 !important;
    column-gap: 12px !important;
  }

  .gallery-grid .tile-reveal,
  .gallery-grid .gallery-tile {
    margin-bottom: 12px !important;
  }

  .gallery-tile {
    border-radius: 12px !important;
  }
}

/* Gallery lightbox: maximize the photograph while keeping controls within easy reach. */
@media (max-width: 640px) {
  .lightbox {
    position: fixed !important;
    background: #061631 !important;
  }

  .lightbox-top {
    position: absolute !important;
    z-index: 4;
    inset-block-start: 0;
    inset-inline: 0;
    padding: max(12px, env(safe-area-inset-top)) 14px 8px !important;
    background: linear-gradient(
      to bottom,
      rgba(6, 22, 49, 0.94),
      transparent
    ) !important;
  }

  .lightbox-stage {
    width: 100% !important;
    padding: 54px 12px 76px !important;
  }

  .lightbox-stage img {
    width: 100% !important;
    max-height: calc(100dvh - 130px) !important;
    object-fit: contain !important;
    border-radius: 8px !important;
  }

  .lightbox-nav {
    z-index: 5;
    width: 42px !important;
    height: 42px !important;
    background: rgba(6, 22, 49, 0.8) !important;
  }

  .lightbox-prev {
    inset-inline-start: 8px !important;
  }
  .lightbox-next {
    inset-inline-end: 8px !important;
  }

  .lightbox-caption {
    position: absolute !important;
    z-index: 4;
    inset-inline: 0;
    inset-block-end: 0;
    padding: 10px 58px max(14px, env(safe-area-inset-bottom)) !important;
    background: linear-gradient(
      to top,
      rgba(6, 22, 49, 0.96),
      transparent
    ) !important;
  }

  .lightbox-caption p {
    max-width: 36ch !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
  }
}

/* Header and footer are one theme surface: light is white, dark is DNC navy. */
[data-theme="light"] .header {
  background: #ffffff !important;
  border-color: rgba(16, 37, 82, 0.28) !important;
  color: #102552 !important;
}

[data-theme="light"] footer.site-footer,
[data-theme="light"] footer.site-footer :is(p, span, a) {
  background: #ffffff !important;
  color: #102552 !important;
  -webkit-text-fill-color: #102552 !important;
  opacity: 1 !important;
}

[data-theme="light"] footer.site-footer {
  border-top-color: rgba(16, 37, 82, 0.22) !important;
}

[data-theme="dark"] .header {
  background: #081b3f !important;
  border-color: rgba(199, 232, 242, 0.36) !important;
  color: #f5fbff !important;
}

[data-theme="dark"] footer.site-footer,
[data-theme="dark"] footer.site-footer :is(p, span, a) {
  background: #081b3f !important;
  color: #f5fbff !important;
  -webkit-text-fill-color: #f5fbff !important;
  opacity: 1 !important;
}

[data-theme="dark"] footer.site-footer {
  border-top-color: rgba(199, 232, 242, 0.28) !important;
}

/* Use the logo variant that is legible on each footer surface. */
[data-theme="light"] footer.site-footer .brand-logo-default {
  display: block !important;
  filter: none !important;
}

[data-theme="light"] footer.site-footer .brand-logo-dark {
  display: none !important;
}
[data-theme="dark"] footer.site-footer .brand-logo-default {
  display: none !important;
}

[data-theme="dark"] footer.site-footer .brand-logo-dark {
  display: block !important;
  filter: none !important;
}

/* Secondary footer copy remains comfortably readable, without competing with links. */
[data-theme="light"] footer.site-footer :is(.footer-tagline, .footer-rights) {
  color: #254b70 !important;
  -webkit-text-fill-color: #254b70 !important;
  text-shadow: none !important;
  filter: none !important;
}

[data-theme="dark"] footer.site-footer :is(.footer-tagline, .footer-rights) {
  color: #dce7f2 !important;
  -webkit-text-fill-color: #dce7f2 !important;
}

/* CEO message: an editorial leadership composition, quiet enough for the portrait and words. */
.about-grid {
  grid-template-columns: minmax(300px, 0.78fr) minmax(480px, 1.22fr) !important;
  grid-template-areas:
    "portrait quote"
    "sign quote" !important;
  width: min(100%, 1320px);
  margin-inline: auto !important;
  column-gap: clamp(44px, 5.2vw, 88px) !important;
  row-gap: 0 !important;
  align-items: start !important;
}

.about-grid > .ceo-portrait {
  grid-area: portrait;
  width: min(100%, 480px);
  min-height: 0 !important;
  aspect-ratio: 4 / 4.65;
  align-self: start;
  justify-self: start;
  border: 1px solid rgba(37, 75, 112, 0.14);
  box-shadow: 0 22px 48px rgba(16, 37, 82, 0.12);
}

.about-grid > .ceo-portrait .portrait-image {
  object-position: center top;
}

.about-grid > .quote-card {
  display: contents !important;
}

.quote-card > blockquote {
  grid-area: quote;
  display: grid;
  align-content: start;
  gap: clamp(32px, 3.2vw, 48px);
  align-self: start;
  justify-self: end;
  width: min(100%, 760px);
  min-height: clamp(550px, 39vw, 650px);
  margin: 0 !important;
  padding: clamp(42px, 4.2vw, 60px) clamp(34px, 4.5vw, 62px) !important;
  border: 1px solid rgba(37, 75, 112, 0.18);
  border-top: 4px solid #254b70;
  background: linear-gradient(135deg, #f8fbfc 0%, #f2f6f8 100%);
  box-shadow: 0 20px 46px rgba(16, 37, 82, 0.08);
}

.quote-card > blockquote .quote-primary {
  margin: 0 !important;
  max-width: 22ch;
  color: #183f65 !important;
  font-size: clamp(29px, 2.45vw, 39px) !important;
  font-weight: 500;
  line-height: 1.35 !important;
  letter-spacing: -0.035em !important;
  text-wrap: balance;
}

.quote-card > .ceo-sign {
  grid-area: sign;
  width: min(100%, 480px);
  justify-content: flex-start !important;
  margin-top: 18px;
  padding-top: 18px !important;
  border-top: 1px solid rgba(37, 75, 112, 0.24) !important;
}

.quote-card > .ceo-sign b {
  color: #183f65 !important;
  font-size: 16px !important;
  letter-spacing: 0 !important;
}

.quote-card > .ceo-sign small {
  margin-top: 4px;
  color: #5b6e89 !important;
  font-size: 12px !important;
  letter-spacing: 0.03em;
}

.quote-card > blockquote .quote-secondary {
  align-self: end;
  max-width: 48ch;
  margin: 0 !important;
  padding-top: clamp(24px, 2.5vw, 32px);
  border-top: 1px solid rgba(37, 75, 112, 0.22);
  color: var(--dnc-body, var(--muted)) !important;
  font-size: clamp(17px, 1.3vw, 19px) !important;
  font-weight: 500;
  line-height: 1.7 !important;
  letter-spacing: 0 !important;
  text-wrap: pretty;
}

.quote-card .signature {
  display: none !important;
}

[data-theme="dark"] .quote-card > blockquote {
  color: #f5fbff !important;
  background: linear-gradient(135deg, #102a5c 0%, #0d234c 100%) !important;
  border-color: rgba(199, 232, 242, 0.28) !important;
  border-top-color: #9cccd2 !important;
  box-shadow: 0 20px 46px rgba(2, 10, 29, 0.28);
}

[data-theme="dark"] .quote-card > blockquote .quote-primary {
  color: #f5fbff !important;
}

[data-theme="dark"] .quote-card > blockquote .quote-secondary,
[data-theme="dark"] .quote-card > .ceo-sign small {
  color: #dce7f2 !important;
}

[data-theme="dark"] .quote-card > blockquote .quote-secondary {
  border-top-color: rgba(199, 232, 242, 0.28);
}

[data-theme="dark"] .quote-card > .ceo-sign {
  border-top-color: rgba(199, 232, 242, 0.28) !important;
}

/* Shared Arabic typography safety: Latin display line-heights clip and collide
   when inherited by the taller Arabic glyph set. */
[dir="rtl"] :is(.site, .detail) :is(h1, h2) {
  line-height: 1.22 !important;
  letter-spacing: 0 !important;
}

[dir="rtl"] :is(.site, .detail) h3 {
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
}

[dir="rtl"] :is(.site, .detail) h1 + p {
  margin-top: clamp(20px, 2vw, 30px) !important;
}

[dir="rtl"] :is(.site, .detail) h2 + p {
  margin-top: clamp(14px, 1.5vw, 24px) !important;
}

[dir="rtl"] :is(.site, .detail) h3 + p {
  margin-top: 12px !important;
}

/* English CEO message: calmer typography without changing the portrait layout. */
.site:not(.arabic) .quote-card > blockquote {
  width: min(100%, 900px);
  max-width: 900px !important;
  min-height: clamp(500px, 35vw, 590px);
  padding: clamp(38px, 3.6vw, 52px) clamp(38px, 4.2vw, 60px) !important;
}

.site:not(.arabic) .quote-card > blockquote .quote-primary {
  max-width: 34ch;
  font-size: clamp(24px, 2vw, 32px) !important;
  line-height: 1.32 !important;
  letter-spacing: -0.028em !important;
}

.site:not(.arabic) .quote-card > blockquote .quote-secondary {
  max-width: 62ch;
  font-size: clamp(15px, 1.1vw, 17px) !important;
  line-height: 1.62 !important;
}

/* Align the full CEO portrait and attribution column with the message card. */
@media (min-width: 781px) {
  .site .about .about-grid {
    grid-template-areas: "portrait quote" !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-items: stretch !important;
  }

  .site .about .about-grid > .about-portrait-panel {
    grid-area: portrait;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    align-self: stretch;
    height: 100%;
  }

  .site .about .about-grid > .about-portrait-panel .ceo-portrait {
    height: 100%;
    min-height: 0 !important;
    aspect-ratio: auto;
  }
}

@media (max-width: 780px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "portrait"
      "sign"
      "quote" !important;
    row-gap: 0 !important;
  }

  .about-grid > .ceo-portrait {
    width: min(100%, 400px);
    justify-self: center;
    aspect-ratio: 4 / 4.65;
  }

  .quote-card > .ceo-sign {
    width: min(100%, 400px);
    justify-self: center;
    margin-top: 20px;
  }

  .quote-card > blockquote {
    min-height: 0;
    width: 100%;
    align-content: start;
    margin-top: 34px !important;
    padding: 34px 28px 38px !important;
  }

  .quote-card > blockquote .quote-primary {
    max-width: 100%;
    font-size: clamp(27px, 7vw, 35px) !important;
  }

  .site:not(.arabic) .quote-card > blockquote .quote-primary {
    font-size: clamp(22px, 5.8vw, 28px) !important;
  }
}

@media (max-width: 420px) {
  .about-grid > .ceo-portrait {
    width: min(100%, 340px);
    aspect-ratio: 4 / 4.8;
  }

  .quote-card > blockquote {
    font-size: clamp(21px, 7vw, 28px) !important;
  }
}

/* Global display typeface: the self-hosted Montserrat Bold cut used for every heading. */
@font-face {
  font-family: "Montserrat Classic Bold";
  src: url("/media/fonts/Montserrat-Classic-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:where(h1, h2, h3, h4, h5, h6) {
  font-family:
    "Montserrat Classic Bold", Montserrat, "IBM Plex Sans Arabic", Arial,
    sans-serif !important;
  font-style: normal !important;
  font-weight: 700 !important;
}

/* The homepage headline stands on its own without a secondary tagline. */
.hero-content > .eyebrow {
  display: none !important;
}

/* Maintain a clear label/icon contrast when primary actions darken on hover. */
[data-theme="light"] .button.gold:hover,
[data-theme="light"] .button.gold:focus-visible {
  background-color: #0b3158 !important;
  border-color: #0b3158 !important;
  color: #ffffff !important;
}

[data-theme="light"] .button.gold:hover svg,
[data-theme="light"] .button.gold:focus-visible svg {
  color: inherit !important;
  stroke: currentColor !important;
}

/* Keep the “In motion” photograph crisp, complete, and static. */
.media .media-image {
  filter: blur(3px) !important;
  transform: none !important;
  transition: none !important;
  background-position: center center !important;
}

.media .media-overlay {
  background: linear-gradient(
    90deg,
    rgba(8, 25, 59, 0.18),
    rgba(8, 25, 59, 0.06)
  ) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}

/* Inline showreel replaces the media content without leaving the page. */
.media {
  position: relative;
}

.dnc-inline-film-player {
  position: absolute;
  z-index: 20;
  inset: 0;
  background: #030c1f;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.dnc-inline-film-player video {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #fff;
}

.dnc-inline-film-controls {
  position: absolute;
  z-index: 1;
  top: 18px;
  inset-inline-end: 18px;
  display: flex;
  gap: 8px;
}

.dnc-inline-film-controls button {
  min-width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: #fff;
  background: rgba(3, 12, 31, 0.72);
  cursor: pointer;
  font: inherit;
  display: grid;
  place-items: center;
}

.dnc-inline-film-controls button:hover,
.dnc-inline-film-controls button:focus-visible {
  color: #0b3158;
  background: #fff;
}

/* Do not expose legacy certificate cards while ISO-only content initializes. */
.certificates-home .certificate-showcase:not(.dnc-iso-carousel),
.profile-certificates .profile-certificate-grid:not(.dnc-iso-grid) {
  visibility: hidden;
}

/* The home-page three-column values strip is intentionally removed. */
.value-grid {
  display: none !important;
}

/* Remove the secondary project highlight list; the primary gallery is complete on its own. */
.profile-project-more {
  display: none !important;
}

/* Original regional satellite image placed at the end of the Our Reach section. */
.dnc-reach-map {
  position: relative;
  width: 100%;
  margin: 42px 0 0;
  overflow: hidden;
  border-radius: 20px;
  background: #d7ded8;
}

.dnc-reach-map > img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  object-position: center;
}

.dnc-reach-pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dnc-reach-pin {
  position: absolute;
  left: var(--pin-x);
  top: var(--pin-y);
  width: 42px;
  height: 54px;
  opacity: 0;
  transform: translate3d(-50%, -420%, 0) scale(0.88);
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}

.dnc-reach-map-pins-visible .dnc-reach-pin {
  animation: dnc-reach-pin-drop 1.35s cubic-bezier(0.22, 0.72, 0.2, 1)
    var(--pin-delay) both;
}

.dnc-reach-pin > img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}

.dnc-reach-pin-cap,
.dnc-reach-pin-body,
.dnc-reach-pin-needle {
  position: absolute;
  display: block;
}

.dnc-reach-pin-cap {
  z-index: 2;
  top: 0;
  left: 5px;
  width: 31px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 30% 25%,
    #ff9696 0 7%,
    #ec3138 28%,
    #b50917 72%,
    #78000b 100%
  );
  box-shadow:
    inset -3px -4px 5px rgba(79, 0, 5, 0.48),
    1px 3px 3px rgba(82, 0, 4, 0.4);
  transform: rotate(23deg);
}

.dnc-reach-pin-body {
  z-index: 1;
  top: 13px;
  left: 9px;
  width: 24px;
  height: 25px;
  border-radius: 48% 48% 50% 50%;
  background: radial-gradient(
    circle at 27% 21%,
    #ff8a8e 0 6%,
    #e91d2b 30%,
    #a30413 70%,
    #680008 100%
  );
  box-shadow:
    inset -3px -4px 5px rgba(75, 0, 5, 0.5),
    2px 3px 3px rgba(74, 0, 5, 0.35);
}

.dnc-reach-pin-needle {
  z-index: 0;
  top: 32px;
  left: 19px;
  width: 4px;
  height: 23px;
  border-radius: 0 0 60% 60%;
  background: linear-gradient(90deg, #9aa5ad, #fff 45%, #626d76 100%);
  transform: rotate(21deg);
  transform-origin: top center;
}

@keyframes dnc-reach-pin-drop {
  0%,
  8% {
    opacity: 0;
    transform: translate3d(-50%, -420%, 0) scale(0.88);
  }
  32% {
    opacity: 0.9;
  }
  78% {
    opacity: 1;
    transform: translate3d(-50%, -96%, 0) scale(1.025);
  }
  90% {
    transform: translate3d(-50%, -103%, 0) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translate3d(-50%, -100%, 0) scale(1);
  }
}

@media (max-width: 780px) {
  .dnc-reach-map {
    margin-top: 28px;
    border-radius: 14px;
  }

  .dnc-reach-map > img {
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: fill;
    object-position: center;
  }

  .dnc-reach-pin {
    width: clamp(18px, 5.5vw, 26px);
    height: clamp(23px, 7vw, 34px);
    transform: translate3d(-50%, -420%, 0) scale(0.84);
  }

  .dnc-reach-map-pins-visible .dnc-reach-pin {
    animation-duration: 1.45s;
  }
}

@media (max-width: 480px) {
  .dnc-reach-pin-cap {
    left: 4px;
    width: 26px;
    height: 15px;
  }
  .dnc-reach-pin-body {
    top: 10px;
    left: 7px;
    width: 20px;
    height: 21px;
  }
  .dnc-reach-pin-needle {
    top: 27px;
    left: 15px;
    height: 18px;
  }
}

/* Keep the established page-specific heading hierarchy while making the
   English experience more compact. Arabic headings retain their original
   scale and typography. */
html:lang(en) body #main-content :is(h1, h2, h3, h4, h5, h6) {
  zoom: 0.86;
}

/* Mobile Services keeps its primary route and exposes a separate submenu toggle. */
@media (max-width: 780px) {
  .mobile-nav-primary-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    align-items: stretch;
  }

  .mobile-menu .mobile-nav-primary {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px;
    color: #e5e7eb;
    text-decoration: none;
  }

  .mobile-nav-toggle {
    display: grid;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    color: #e5e7eb;
    cursor: pointer;
    background: transparent;
    border: 0;
    border-inline-start: 1px solid var(--line);
    place-items: center;
  }

  .mobile-nav-toggle svg {
    transition: transform 0.2s;
  }

  .mobile-nav-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }

  [data-theme="light"] .mobile-menu .mobile-nav-primary,
  [data-theme="light"] .mobile-nav-toggle {
    color: #18386e;
  }
}

/* Single-logo partner cards must preserve the complete logo on small screens. */
@media (max-width: 640px) {
  .partners-home .partner-group-logos[data-count="1"] {
    grid-auto-rows: 148px !important;
    min-height: 0 !important;
    padding: 14px !important;
  }

  .partners-home .partner-group-logos[data-count="1"] .partner-logo {
    min-height: 0 !important;
    padding: 12px !important;
  }

  .partners-home .partner-group-logos[data-count="1"] .partner-logo img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 112px !important;
    object-fit: contain !important;
  }
}

/* Keep the ISO gallery focused on the certificates, without large white gutters. */
.certificates-home.section.padded {
  padding-block: var(--dnc-section-space-compact) !important;
}

.certificates-home .certificate-showcase {
  margin-block: 0 !important;
}

@media (max-width: 780px) {
  .certificates-home .certificate-stage.dnc-iso-stage {
    height: auto !important;
    min-height: 0 !important;
  }

  .dnc-iso-stage .dnc-iso-card.certificate-center,
  .dnc-iso-stage .dnc-iso-card.certificate-center img {
    aspect-ratio: 1464 / 2079 !important;
    height: auto !important;
  }

  .dnc-iso-stage .dnc-iso-card.certificate-center img {
    display: block !important;
    object-fit: contain !important;
  }
}

@media (max-width: 640px) {
  .dnc-inline-film-controls {
    top: 12px;
    inset-inline-end: 12px;
  }

  /* Keep the in-motion actions comfortably tappable without breaking their labels. */
  .media-actions,
  [dir="rtl"] .media-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .media-actions .button,
  [dir="rtl"] .media-actions .button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 52px !important;
    padding-inline: 14px !important;
    white-space: nowrap !important;
    font-size: clamp(14px, 4vw, 16px) !important;
    line-height: 1.2 !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  .media-actions .button svg {
    flex: 0 0 auto;
  }
}

@media (max-width: 360px) {
  .media-actions,
  [dir="rtl"] .media-actions {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (hover: hover) and (pointer: fine) {
  .button,
  .text-link {
    transition:
      transform 150ms ease,
      background-color 150ms ease,
      color 150ms ease,
      border-color 150ms ease,
      box-shadow 150ms ease;
  }

  .button:active,
  .text-link:active {
    transform: scale(0.97);
  }

  .service-card .service-photo,
  .project-card .project-shade {
    transition:
      transform 300ms ease-in-out,
      opacity 300ms ease;
  }

  .service-card:hover .service-photo {
    transform: scale(1.035);
  }
}

/* Anchor the homepage hero to the reading edge in both languages. */
.site[dir] .hero-content {
  width: min(100%, 760px) !important;
  max-width: 760px !important;
  min-width: 0 !important;
  flex: 0 1 760px !important;
}

.site[dir="ltr"] .hero-content {
  margin-left: 0 !important;
  margin-right: auto !important;
  text-align: left !important;
}

.site[dir="rtl"] .hero-content {
  margin-left: auto !important;
  margin-right: 0 !important;
  text-align: right !important;
}

.site[dir] .hero-content :is(h1, .hero-copy) {
  text-align: inherit !important;
}

.site[dir="ltr"] .hero-content :is(.hero-copy, .hero-actions, .riyadh-time) {
  margin-left: 0 !important;
  margin-right: auto !important;
}

.site[dir="rtl"] .hero-content :is(.hero-copy, .hero-actions, .riyadh-time) {
  margin-left: auto !important;
  margin-right: 0 !important;
}

@media (max-width: 640px) {
  .site[dir] .hero-content {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .site[dir] .hero-content h1 {
    width: 100% !important;
  }
}

/* Keep the scaled hero artwork inside its section while the page scrolls. */
.site .hero {
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}

/* The header owns the brand mark; do not reserve a blank logo column in the hero. */
.site .hero > .landing-logo {
  display: none !important;
}

/* Give every internal route the same compact, deliberate section rhythm as home. */
.detail {
  --dnc-internal-space: clamp(52px, 6vw, 88px);
}

.detail-hero {
  min-height: 0 !important;
  padding-top: clamp(136px, 13vw, 176px) !important;
  padding-bottom: var(--dnc-internal-space) !important;
}

.detail-content,
.profile-page,
.gallery {
  padding-top: var(--dnc-internal-space) !important;
  padding-bottom: var(--dnc-internal-space) !important;
}

.detail-panorama {
  padding-bottom: var(--dnc-internal-space) !important;
}

.profile-company-intro {
  padding-bottom: clamp(40px, 4vw, 64px) !important;
}

.profile-service-projects {
  padding-bottom: var(--dnc-internal-space) !important;
}

.services-landing {
  padding-bottom: var(--dnc-internal-space) !important;
}

.contact-page {
  --dnc-internal-space: clamp(52px, 6vw, 88px);
}

.contact-page-hero {
  padding-top: clamp(148px, 14vw, 190px) !important;
  padding-bottom: var(--dnc-internal-space) !important;
}

.contact-page-content {
  padding-top: var(--dnc-internal-space) !important;
  padding-bottom: var(--dnc-internal-space) !important;
}

.careers-page {
  --dnc-internal-space: clamp(52px, 6vw, 88px);
}

.careers-hero {
  padding-top: clamp(148px, 14vw, 190px) !important;
  padding-bottom: var(--dnc-internal-space) !important;
}

.careers-empty {
  padding-block: clamp(72px, 8vw, 108px) !important;
}

@media (max-width: 780px) {
  .detail,
  .contact-page,
  .careers-page {
    --dnc-internal-space: 52px;
  }

  .detail-hero,
  .contact-page-hero,
  .careers-hero {
    padding-top: 132px !important;
  }
}
