@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap-grid.min.css");

/* Black Saber Industries - shared base styles (nav, hero, cards, carousels, footer, animations) */
:root {
  --bg: #ffffff;
  --ink: #101010;
  --mut: #555055;
  --acc: #761b35;
  --soft: #f5eaed;
  --line: #ddcbd1;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font:
    400 16px/1.55 Inter,
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  overflow-x: clip;
  cursor: none;
}
a,
button,
[role="button"],
select,
summary {
  cursor: pointer;
}
input,
textarea {
  cursor: text;
}
body.native-cursor #cur {
  visibility: hidden;
}
body:not(.site-ready) > :not(#site-loader) {
  visibility: hidden;
}
body.site-loading {
  overflow: hidden;
}
#site-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 42%, #fff 0%, #e9e7e3 100%);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.45s ease,
    visibility 0s linear 0.45s;
}
#site-loader iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}
#site-loader.is-exiting {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  #site-loader {
    transition: none;
  }
}
h1,
h2,
h3,
.logo {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
}
a {
  color: inherit;
  text-decoration: none;
}
.mono {
  font:
    500 11px "JetBrains Mono",
    monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acc);
}
.section-title {
  position: relative;
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 18px;
  line-height: 1.15;
}
.typewriter-reserve {
  display: block;
  visibility: hidden;
}
.typewriter-output {
  position: absolute;
  inset: 0;
}
.typewriter-cursor {
  display: inline-block;
  width: 0.65em;
  color: var(--acc);
  animation: typewriter-cursor-blink 0.9s steps(2, end) infinite;
}
.typewriter-cursor::before {
  content: "_";
}
@keyframes typewriter-cursor-blink {
  50% {
    visibility: hidden;
  }
}
.wrap {
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1200px) {
  .wrap.container {
    max-width: 1180px;
  }
}
section {
  padding: 110px 0;
}
h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  margin: 12px 0 14px;
  max-width: 760px;
}
p.lead {
  color: var(--mut);
  max-width: 560px;
}
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    background 0.25s;
}
.btn.p {
  background: var(--acc);
  color: #fff;
}
.btn.d {
  background: var(--ink);
  color: #fff;
}
.btn.g {
  background: #fff;
  color: var(--acc);
  border: 1px solid var(--line);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(118, 27, 53, 0.42);
}
/* cursor */
#cur {
  position: fixed;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #761b35;
  pointer-events: none;
  z-index: 99;
  transform: translate(-50%, -50%);
  transition:
    width 0.25s,
    height 0.25s,
    background 0.25s;
  mix-blend-mode: normal;
}
#cur.big {
  width: 46px;
  height: 46px;
  background: rgba(118, 27, 53, 0.18);
}
@media (hover: none) {
  #cur {
    display: none;
  }
}
/* nav */
nav {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
}
nav .wrap {
  width: calc(100% - 40px);
  max-width: 1180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 1.4vw, 20px);
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 30px -18px rgba(16, 16, 16, 0.22);
}
.logo {
  display: block;
  flex: none;
}
.logo img {
  display: block;
  width: 104px;
  max-width: 22vw;
  height: auto;
}
.pill {
  display: flex;
  flex: 1;
  min-width: 0;
  justify-content: center;
  gap: 0;
  background: transparent;
  backdrop-filter: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  position: relative;
}
.pill > div > a {
  display: block;
  padding: 8px clamp(6px, 0.9vw, 12px);
  font-size: 14px;
  white-space: nowrap;
  border-radius: 8px;
  transition: background 0.25s;
}
.pill > div {
  position: relative;
}
.pill > div:hover > a {
  background: var(--soft);
}
.pill > div > a,
.dd a,
#mm a,
#mm .g {
  position: relative;
}
.pill > div > a::after,
.dd a::after,
#mm a::after,
#mm .g::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  background: var(--acc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.pill > div > a.act::after,
.pill > div:hover > a::after,
.dd a.act::after,
.dd a:hover::after,
#mm a.act::after,
#mm .g.act::after {
  transform: scaleX(1);
}
.dd {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 51;
  margin-top: 0;
  min-width: max-content;
  max-width: min(80vw, 540px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 6px 28px;
  font-size: 13px;
  color: var(--mut);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: 0.3s;
}
.pill > div:hover .dd {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.dd a:hover {
  color: var(--acc);
  transform: translateX(3px);
}
.dd a {
  display: block;
  width: fit-content;
  position: relative;
  transition: 0.2s;
  white-space: nowrap;
}
/* hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 70px;
  position: relative;
  overflow: hidden;
  background: #eee7e9;
}
.hero .bg {
  position: absolute;
  inset: -4%;
  background: none;
  isolation: isolate;
  opacity: 0.55;
  will-change: transform;
}
.hero video.bg {
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  object-position: 25% 50%;
}
.photo-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}
.hero .bg .photo-placeholder {
  z-index: -1;
}
.hero .bg picture {
  display: contents;
}
@media (max-width: 575.98px) {
  .hero:not(.capabilities-hero) .bg picture .photo-placeholder {
    object-position: center center !important;
  }
  #hbg .photo-placeholder {
    object-position: 60% 50% !important;
  }
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bg) 0,
    rgba(255, 255, 255, 0.58) 38%,
    transparent 70%
  );
}
.hero .wrap {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  max-width: 760px;
  margin: 14px 0 16px;
}
.hero .w {
  display: inline-block;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(18px);
  animation: wi 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
@keyframes wi {
  to {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
.hero .fade {
  opacity: 0;
  animation: wi 0.9s 0.9s forwards;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 20px;
  text-align: center;
  padding: 48px 0;
}
.stats b {
  display: block;
  font:
    700 clamp(30px, 4vw, 46px) "Space Grotesk",
    sans-serif;
  letter-spacing: -0.02em;
}
.stats span {
  font-size: 11px;
  color: var(--mut);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
/* reveal */
.rv {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(26px);
  transition:
    opacity 0.8s,
    filter 0.8s,
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0s);
}
.rv.in {
  opacity: 1;
  filter: none;
  transform: none;
}
.reach-map-frame {
  display: block;
  width: 100%;
  min-height: 360px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #fff, #f5eaed);
  transition: opacity 0.6s ease;
}
.reach-map-frame:not(.in) {
  opacity: 0;
}
.reach-map-frame.in {
  opacity: 1;
}
/* capabilities */
.cap {
  position: relative;
  isolation: isolate;
  background: #fff;
  color: var(--ink);
}
.cap:before {
  display: none;
}
.cap .wrap {
  position: relative;
  z-index: 2;
}
.grid5 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px;
  margin-top: 44px;
}
#cap.horizontal-scroll {
  padding: 0;
}
#cap .cap-pin {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  min-height: max(560px, 78vh);
  min-height: max(560px, 78dvh);
  align-items: center;
  overflow: hidden;
}
#cap .cap-pin > .wrap {
  width: 100%;
  padding-top: clamp(96px, 14vh, 132px);
  padding-bottom: 8px;
}
#cap .cap-viewport {
  width: 100%;
  margin-top: 24px;
  overflow: hidden;
}
#cap .cap-viewport .grid5 {
  display: flex;
  flex-wrap: nowrap;
  width: auto;
  gap: 16px;
  margin-top: 0;
  will-change: transform;
}
#cap .cap-viewport .card {
  flex: 0 0 auto;
  width: clamp(260px, 28vw, 320px);
}
.card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  padding: 22px;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.3s,
    background 0.3s,
    box-shadow 0.3s;
  position: relative;
}
.card:hover {
  transform: translateY(-10px);
  background: #fff;
  border-color: var(--acc);
  box-shadow: 0 22px 40px -20px rgba(118, 27, 53, 0.36);
}
.card h3 {
  font-size: 17px;
  margin: 26px 0 8px;
  line-height: 1.2;
}
.card p {
  font-size: 13px;
  color: var(--mut);
}
/* TRUSTED values */
.trusted-values {
  background: var(--bg);
  padding: clamp(16px, 2vw, 28px) 0 clamp(8px, 1.5vw, 20px);
}
.trusted-values-label {
  margin-bottom: clamp(24px, 3vw, 40px);
}
.trusted-grid {
  --values-line: rgba(16, 16, 16, 0.22);
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(6px, 1vw, 16px);
  padding: clamp(22px, 2.6vw, 34px) 0 clamp(16px, 1.8vw, 24px);
  border-top: 1px solid var(--values-line);
  border-bottom: 1px solid var(--values-line);
  /* reserved space for the description that appears under the bottom line */
  margin-bottom: clamp(76px, 8vw, 92px);
}
.trusted-card {
  min-width: 0;
  text-align: center;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.trusted-letter {
  display: block;
  height: 1.05em;
  font: 700 clamp(86px, 8vw, 132px)/0.95 "Space Grotesk", sans-serif;
  letter-spacing: 0;
  text-align: center;
  transition:
    color 0.3s ease,
    -webkit-text-fill-color 0.3s ease,
    -webkit-text-stroke 0.3s ease;
  user-select: none;
}
.trusted-letter-outline-black {
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}
.trusted-letter-outline-maroon {
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px var(--acc);
}

/* full form: directly under the letter, above the bottom line */
.trusted-card h3 {
  margin: 14px 0 0;
  color: var(--acc);
  font: 700 clamp(12px, 1.15vw, 16px)/1.2 "Space Grotesk", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0s linear 0.3s;
}

/* description: under the bottom thin line, full width, left aligned */
.trusted-card p {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  right: 0;
  max-width: 820px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.5;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0s linear 0.3s;
}

/* shown state: click/tap (is-active) and keyboard focus */
.trusted-card.is-active .trusted-letter,
.trusted-card:focus-visible .trusted-letter {
  color: var(--acc);
  -webkit-text-fill-color: var(--acc);
  -webkit-text-stroke: 0;
}
.trusted-card.is-active h3,
.trusted-card.is-active p,
.trusted-card:focus-visible h3,
.trusted-card:focus-visible p {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

/* hover only on devices that really have a mouse (laptop/desktop) */
@media (hover: hover) and (pointer: fine) {
  .trusted-card:hover .trusted-letter {
    color: var(--acc);
    -webkit-text-fill-color: var(--acc);
    -webkit-text-stroke: 0;
  }
  .trusted-card:hover h3,
  .trusted-card:hover p {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
  }
}

/* tablet: same layout, tap to open */
@media (min-width: 576px) and (max-width: 991.98px) {
  .trusted-letter {
    font-size: clamp(52px, 9.5vw, 88px);
  }
  .trusted-card h3 {
    font-size: clamp(9px, 1.35vw, 12px);
    letter-spacing: 0.03em;
  }
  .trusted-card p {
    font-size: 15px;
  }
}

/* phone: letters row between two lines, full form + description below */
@media (max-width: 575.98px) {
  .trusted-values {
    padding: 60px 0 8px;
  }
  .trusted-values-label {
    margin-bottom: 20px;
  }
  .trusted-grid {
    display: flex;
    grid-template-columns: none;
    gap: 0;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 22px 0 16px;
    margin-bottom: 0;
    -webkit-overflow-scrolling: touch;
  }
  .trusted-grid::-webkit-scrollbar {
    display: none;
  }
  .trusted-card {
    flex: 0 0 clamp(48px, 13vw, 58px);
    scroll-snap-align: center;
  }
  .trusted-letter {
    height: auto;
    font-size: clamp(46px, 14vw, 62px);
    line-height: 1;
  }
  .trusted-card h3,
  .trusted-card p {
    display: none;
  }
  .trusted-letter-mobile-active {
    position: relative;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    -webkit-text-stroke: 0 !important;
  }
  .trusted-letter-mobile-active::before {
    content: attr(data-letter);
    position: absolute;
    inset: 0;
    display: block;
    color: var(--acc);
    -webkit-text-fill-color: var(--acc);
    -webkit-text-stroke: 0;
    text-align: center;
  }
  .trusted-mobile-detail {
    min-height: 150px;
    padding-top: 22px;
  }
  .trusted-mobile-detail h3 {
    margin: 0 0 10px;
    color: var(--acc);
    font-size: 24px;
    line-height: 1.2;
  }
  .trusted-mobile-detail p {
    max-width: 430px;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.55;
  }
}
@media (min-width: 576px) {
  .trusted-mobile-detail {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .trusted-letter,
  .trusted-card h3,
  .trusted-card p {
    transition-duration: 0.01ms;
  }
}
/* Arabic: keep TRUSTED reading left to right, fix text styling */
html[dir="rtl"] .trusted-grid {
  direction: rtl;
}
html[dir="rtl"] .trusted-letter {
  font-family: "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  height: 1.35em;
}
html[dir="rtl"] .trusted-card h3,
html[dir="rtl"] .trusted-card p,
html[dir="rtl"] .trusted-mobile-detail {
  direction: rtl;
}
html[dir="rtl"] .trusted-card h3 {
  letter-spacing: 0;
  text-transform: none;
  font-size: clamp(14px, 1.3vw, 18px);
}
html[dir="rtl"] .trusted-card p {
  text-align: right;
}
html[dir="rtl"] .trusted-mobile-detail {
  text-align: right;
}

/* marquee */
.mq {
  overflow: hidden;
  width: 100%;
  padding-block: 14px;
}
.mq.proj {
  width: calc(100% - 48px);
  max-width: 1132px;
  margin-inline: auto;
}

.mq.proj:hover > div {
  animation-play-state: paused;
}

.mq > div {
  display: flex;
  gap: 18px;
  width: max-content;
  --mq-end: -50%;
  animation: mq var(--t, 30s) linear infinite;
}
html[dir="rtl"] .mq > div {
  --mq-end: 50%;
}
.mq.logos > div {
  --t: 50s;
}

@keyframes mq {
  to {
    transform: translateX(var(--mq-end));
  }
}
.logos span {
  font:
    700 20px "Space Grotesk",
    sans-serif;
  color: var(--mut);
  padding: 0 26px;
  white-space: nowrap;
}

/* industries */
.feat {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 30px;
  background: var(--soft);
  border-radius: 18px;
  padding: 34px;
  margin: 40px 0 18px;
  align-items: center;
}
.feat h3 {
  font-size: 30px;
  margin: 8px 0 10px;
}
.img {
  position: relative;
  background: none;
  border-radius: 12px;
  overflow: hidden;
}
.img.z {
  aspect-ratio: 16/9;
  transition: transform 0.8s;
}
.feat:hover .img.z {
  transform: scale(1.025);
}
.ind {
  display: flex;
  gap: 14px;
  height: 150px;
}
.ind a {
  flex: 1;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition:
    flex 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.3s;
}
.ind a:hover {
  flex: 2.2;
  border-color: var(--acc);
}
.ind a:before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(118, 27, 53, 0.18);
  opacity: 0;
  transition: opacity 0.5s;
}
.ind a:hover:before {
  opacity: 0.22;
}
.ind a > * {
  position: relative;
  z-index: 2;
}
.ind a > .photo-placeholder {
  position: absolute;
  z-index: 0;
}
.ind h3 {
  font-size: 18px;
}
.ind p {
  font-size: 13px;
  color: var(--mut);
  margin-top: 6px;
}
/* projects */
.proj > div {
  gap: 20px;
  --t: 45s;
}
.pc {
  width: 320px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform 0.35s,
    border-color 0.3s;
}
.pc:hover {
  transform: translateY(-8px);
  border-color: var(--acc);
}
.pc .img {
  height: 170px;
  border-radius: 0;
  transition: transform 0.8s;
}
.pc:hover .img {
  transform: scale(1.06);
}
.pc div.t {
  padding: 18px;
  overflow: hidden;
}
.pc h3 {
  font-size: 18px;
  margin: 6px 0;
}
.pc p {
  font-size: 13px;
  color: var(--mut);
}
/* approach sticky */
.app {
  position: relative;
  isolation: isolate;
  padding: 0;
}
.app-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.app:before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(245, 234, 237, 0.84);
}
.app .wrap {
  position: relative;
  z-index: 2;
}
.app .l {
  padding: 140px 0;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.steps {
  padding: 80px 0;
}
.sc {
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
  background: #531326;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  padding: 30px;
  margin-bottom: 24px;
  transform-origin: top;
  transition:
    transform 0.4s,
    filter 0.4s;
}
@media (min-width: 576px) and (max-width: 991.98px) {
  .sc {
    min-height: 250px;
  }
}
@media (min-width: 992px) {
  .sc {
    min-height: 225px;
  }
}
.sc::before,
.sc::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.sc::before {
  background: transparent;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sc::after {
  background: transparent;
}
#tech .sc::before {
  z-index: 1;
  background: rgba(16, 16, 16, 0.48);
}
#tech .sc h3,
#tech .sc p,
#tech .sc em {
  z-index: 2;
}
.sc h3,
.sc p {
  position: relative;
  z-index: 1;
}
@media (hover: hover) {
  .sc:hover > .photo-placeholder {
    transform: scale(1.06);
  }
}
.sc em {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 10px;
  font:
    500 60px "JetBrains Mono",
    monospace;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.sc h3 {
  font-size: 20px;
  margin: 10px 0 8px;
  color: #fff;
}
.sc p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  max-width: 360px;
}
.sl {
  margin-top: 26px;
}
.sl div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  opacity: 0.35;
  transition: opacity 0.4s;
}
.sl div.on {
  opacity: 1;
}
.sl h3 {
  font-size: 19px;
}
.sl p {
  font-size: 13px;
  color: var(--mut);
}
@media (min-width: 992px) and (min-height: 650px) {
  .steps {
    padding: 40vh 0 30vh;
  }
  .sc {
    position: sticky;
    top: 22vh;
    margin-bottom: 34vh;
  }
}
@media (max-width: 991.98px) and (min-height: 480px) {
  .steps {
    padding: 14vh 0 24vh;
  }
  .sc {
    position: sticky;
    top: 14vh;
    margin-bottom: 18vh;
    padding: 24px;
  }
  .sc em {
    font-size: 42px;
  }
}
/* testimonials */
.tst {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 760px;
  margin: 44px auto 0;
}
.tc {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  position: relative;
  transition: transform 0.3s;
}
.tc .img {
  width: 90px;
  height: 90px;
  flex: none;
  border-radius: 10px;
}
.tc h3 {
  font-size: 19px;
  line-height: 1.3;
}
.tc small {
  display: block;
  margin-top: 8px;
  color: var(--mut);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* team / loc / insights */
.g3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 18px;
  margin-top: 40px;
}
.tm {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition:
    transform 0.4s,
    border-color 0.3s;
}
.tm:hover {
  transform: translateY(-8px);
  border-color: var(--acc);
}
.tm .img {
  height: 260px;
  border-radius: 0;
  transition:
    transform 0.8s,
    filter 0.6s;
  filter: grayscale(0.7);
}
.tm:hover .img {
  transform: scale(1.05);
  filter: none;
}
.tm div.t {
  padding: 16px 18px;
  overflow: hidden;
  position: relative;
  background: #fff;
}
.tm h3 {
  font-size: 18px;
  margin-top: 4px;
}
.g4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 16px;
  margin-top: 40px;
}
.loc {
  background: var(--soft);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  transition:
    transform 0.4s,
    background 0.3s;
}
.loc:hover {
  transform: translateY(-6px);
  background: #ead9de;
}
.loc b {
  font:
    600 20px "Space Grotesk",
    sans-serif;
  display: block;
}
.loc small {
  color: var(--mut);
  display: block;
  font-size: 13px;
}
/* faq */
.faq {
  max-width: 640px;
  margin: 36px auto 0;
}
.q {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  overflow: hidden;
}
.q div {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 14px;
}
.q div:after {
  content: "+";
  color: var(--acc);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.35s;
}
.q.o div:after {
  transform: rotate(135deg);
}
.q p {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  font-size: 13px;
  color: var(--mut);
  transition:
    max-height 0.45s,
    padding 0.45s;
}
.q.o p {
  max-height: 120px;
  padding: 0 20px 18px;
}
/* footer */
footer {
  background: var(--ink);
  color: #c2b6ba;
  font-size: 13px;
  padding: 28px 0;
}
footer .wrap {
  display: block;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: clamp(24px, 3vw, 42px);
  align-items: center;
  padding: 8px 0 24px;
}
.footer-links {
  min-width: 0;
}
.footer-cta {
  min-width: 0;
  border-left: 2px solid var(--line);
  padding-left: clamp(24px, 3vw, 42px);
  padding-block: 0;
}
.footer-cta .mono {
  color: #e7bdc8;
}
.footer-cta h2 {
  max-width: 420px;
  margin: 8px 0 10px;
  color: #fff;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.2;
}
.footer-cta p {
  max-width: 440px;
  margin: 0;
  color: #eadde0;
  font-size: 13px;
}
.footer-cta .actions {
  margin-top: 16px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  border-top: 1px solid #3d242c;
  padding-top: 16px;
}
footer a:hover {
  color: #fff;
}
@media (max-width: 991.98px) {
  .section-title {
    font-size: 18px;
  }
  .sc {
    padding-bottom: 76px;
  }
  .sc em {
    font-size: 42px;
  }
  .grid5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .feat,
  .app .wrap {
    grid-template-columns: 1fr;
  }
  .ind {
    flex-direction: column;
    height: auto;
  }
  .g4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .pill {
    display: none;
  }
  .app .l {
    position: static;
    height: auto;
    padding: 90px 0 0;
  }
  .tc {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .rv,
  .hero .w,
  .hero .fade {
    opacity: 1;
    filter: none;
    transform: none;
  }
  .typewriter-cursor {
    animation: none;
  }
  #cap.horizontal-scroll {
    height: auto;
  }
  #cap .cap-pin {
    position: relative;
    min-height: 0;
    overflow: visible;
  }
  #cap .cap-viewport {
    overflow: visible;
  }
  #cap .cap-viewport .grid5 {
    width: 100%;
    flex-wrap: wrap;
    transform: none !important;
  }
  #cap .cap-viewport .card {
    flex: 1 1 min(100%, 220px);
    width: auto;
  }
}

.logos span {
  font-size: clamp(26px, 4vw, 44px);
  color: var(--ink);
  padding: 0 30px;
}
.logos span:nth-child(even) {
  color: var(--acc);
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: min(100%, 760px);
  margin: 36px 0;
}
.partner-mark {
  display: flex;
  min-width: 0;
  min-height: 144px;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  box-shadow: 0 12px 30px -24px rgba(16, 16, 16, 0.36);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.partner-image {
  position: absolute;
  top: 50%;
  left: 20px;
  z-index: 0;
  width: 68px;
  height: 68px;
  border-radius: 10px;
  background: none;
  transform: translateY(-50%);
  pointer-events: none;
  transition:
    inset 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    top 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    left 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    height 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-radius 0.3s ease;
}
.partner-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(118, 27, 53, 0.56);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.partner-wordmark {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  margin-left: 68px;
  transition:
    margin-left 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    color 0.3s ease;
}
@media (hover: hover) {
  .partner-mark:hover {
    transform: translateY(-3px);
    border-color: var(--acc);
    box-shadow: 0 18px 34px -24px rgba(118, 27, 53, 0.5);
  }
  .partner-mark:hover .partner-image {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scale(1.02);
    border-radius: inherit;
  }
  .partner-mark:hover .partner-image::after {
    opacity: 1;
  }
  .partner-mark:hover .partner-wordmark {
    margin-left: 0;
    color: #fff;
  }
}
.partner-gtt,
.partner-fouren {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  line-height: 1;
}
.partner-suffix {
  align-self: center;
  color: var(--acc);
  font:
    600 12px "JetBrains Mono",
    monospace;
}
@media (max-width: 575.98px) {
  .partners-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .partner-mark {
    min-height: 120px;
  }
}
.cols {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.cols h3 {
  font:
    600 14px "Space Grotesk",
    sans-serif;
  color: #fff;
  margin-bottom: 10px;
}
.cols a,
.cols span {
  display: block;
  margin-bottom: 6px;
}
@media (max-width: 991.98px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .footer-cta {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 20px 0 0;
  }
  .cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575.98px) {
  .section-title {
    font-size: 16px;
  }
  .wrap {
    padding-inline: 18px;
  }
  section {
    padding-block: 64px;
  }
  .pg {
    padding-block: 48px;
  }
  .feat {
    padding: 22px;
  }
  .cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .cols > * {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .sc {
    padding: 22px 22px 76px;
  }
  .grid5 {
    grid-template-columns: minmax(0, 1fr);
  }
  .nr {
    gap: 6px;
  }
  .nr > .btn {
    padding: 10px 12px;
    font-size: 12px;
  }
  .language-toggle {
    min-height: 38px;
    padding-inline: 9px;
    font-size: 12px;
  }
  .burger {
    width: 38px;
    height: 38px;
  }
}

.nr {
  display: flex;
  align-items: center;
  gap: 10px;
}
.language-toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: 600 13px/1 Inter, sans-serif;
  white-space: nowrap;
}
.language-toggle:hover {
  background: var(--soft);
}
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.burger i {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition:
    transform 0.35s,
    opacity 0.25s;
}
.burger.open i:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.open i:nth-child(2) {
  opacity: 0;
}
.burger.open i:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
#mm {
  flex: 0 0 100%;
  min-width: 0;
  max-height: 0;
  overflow: hidden;
  padding: 0 12px;
  border-top: 1px solid transparent;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    max-height 0.3s ease,
    margin-top 0.3s ease,
    padding 0.3s ease,
    opacity 0.2s ease,
    transform 0.3s ease,
    visibility 0.3s;
}
#mm.open {
  max-height: min(70vh, 540px);
  max-height: min(70dvh, 540px);
  overflow-y: auto;
  margin-top: 8px;
  padding: 10px 12px 4px;
  border-top-color: var(--line);
  opacity: 1;
  visibility: visible;
  transform: none;
}
#mm a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}
#mm a.s {
  padding-left: 16px;
  font-size: 14px;
  color: var(--mut);
}
#mm .g {
  width: fit-content;
  font:
    600 12px "JetBrains Mono",
    monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acc);
  padding: 12px 0 2px;
}
#mm a:last-child {
  border: 0;
}
@media (min-width: 1101px) {
  #mm {
    display: none;
  }
}
@media (max-width: 1100px) {
  nav .wrap {
    flex-wrap: wrap;
    row-gap: 0;
  }
  .pill {
    display: none;
  }
  .burger {
    display: flex;
  }
}

html[dir="rtl"] body {
  font-family: "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}
html[dir="rtl"] nav .wrap {
  direction: rtl;
}
html[dir="rtl"] .nr {
  direction: ltr;
}
html[dir="rtl"] .dd {
  right: 0;
  left: auto;
}
html[dir="rtl"] .footer-cta {
  border-left: 0;
  border-right: 2px solid var(--line);
  padding-left: 0;
  padding-right: clamp(24px, 3vw, 42px);
}
@media (max-width: 991.98px) {
  html[dir="rtl"] .footer-cta {
    border-right: 0;
    padding-right: 0;
  }
}
@media (max-width: 575.98px) {
  .nr {
    gap: 6px;
  }
  .language-toggle {
    min-height: 38px;
    padding-inline: 8px;
    font-size: 12px;
  }
}
@media (max-width: 340px) {
  .nr > .btn {
    padding-inline: 8px;
  }
}

/* scroll-in animation for cards (replays when scrolled back) */
@keyframes cardPop {
  0% {
    opacity: 0;
    transform: translateY(80px) scale(0.88) rotate(2.5deg);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
.card.rv,
.tm.rv {
  opacity: 0;
  filter: none;
  transform: translateY(80px) scale(0.88);
}
.card.rv.in,
.tm.rv.in {
  opacity: 1;
  transform: none;
  animation: cardPop 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  animation-delay: var(--d, 0s);
}
.card.rv.in:hover {
  transform: translateY(-10px);
}
.tm.rv.in:hover {
  transform: translateY(-8px);
}
@media (prefers-reduced-motion: reduce) {
  .card.rv,
  .tm.rv {
    opacity: 1;
    transform: none;
  }
}

.hero > .wrap {
  width: 100%;
}

/* footer social icons */
.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-social a {
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: #c2b6ba;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}
.footer-social a svg {
  display: block;
  width: 100%;
  height: 100%;
}
.footer-social a:hover {
  color: #fff;
  transform: translateY(-2px);
}
/* ===== RTL fixes: bullets, checkmarks, lists, arrows ===== */
html[dir="rtl"] .bl li {
  padding: 12px 30px 12px 0;
}
html[dir="rtl"] .bl li:before {
  left: auto;
  right: 4px;
}
html[dir="rtl"] .capability-domain-copy .bl li {
  padding-block: 9px;
}
html[dir="rtl"] .prose ul {
  margin: 10px 20px 0 0;
}
html[dir="rtl"] .prose,
html[dir="rtl"] .bl,
html[dir="rtl"] .catalog-detail-points {
  text-align: right;
}

/* arrows and back links: flip direction in Arabic */
html[dir="rtl"] .arrow-flip,
html[dir="rtl"] .catalog-action svg,
html[dir="rtl"] .leader-profile-back svg,
html[dir="rtl"] .catalog-back svg {
  display: inline-block;
  transform: scaleX(-1);
}
/* ===== RTL: mobile menu sub-links and partner cards ===== */
html[dir="rtl"] #mm a.s {
  padding-left: 0;
  padding-right: 16px;
}
html[dir="rtl"] .partner-image {
  left: auto;
  right: 20px;
  transition: all 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
html[dir="rtl"] .partner-wordmark {
  margin-left: 0;
  margin-right: 68px;
}
@media (hover: hover) {
  html[dir="rtl"] .partner-mark:hover .partner-image {
    left: auto;
    right: 0;
  }
  html[dir="rtl"] .partner-mark:hover .partner-wordmark {
    margin-right: 0;
  }
}