@font-face {
  font-family: 'Univers Next Arabic';
  src: local('Univers Next Arabic'), local('UniversNextArabic-Regular');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --red: #b12027;
  --red-dark: #930a1e;
  --navy: #010921;
  --ink: #171719;
  --muted: #676870;
  --line: #e6e6e8;
  --white: #fff;
  --soft: #f5f5f6;
  --shadow: 0 8px 24px rgba(1, 9, 33, 0.09);
  --radius: 7px;
  --container: 1180px;
}
* {
  box-sizing: border-box;
}
img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: 'Univers Next Arabic', 'Alexandria', Tahoma, Arial, sans-serif;
  line-height: 1.65;
}
body.locked {
  overflow: hidden;
}
img {
  max-width: 100%;
  display: block;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  transition: 0.25s ease;
}
a {
  text-decoration: none;
  color: inherit;
}
.container {
  width: min(var(--container), calc(100% - 36px));
  margin: auto;
}
.skip {
  position: fixed;
  top: -80px;
  right: 20px;
  background: #fff;
  padding: 8px 16px;
  z-index: 999;
}
.skip:focus {
  top: 10px;
}
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: #fff;
  background: rgba(5, 5, 9, 0.98);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  transition: 0.3s;
}

.site-header.scrolled {
  background: rgba(5, 5, 9, 0.97);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}
.nav-wrap {
  height: 82px;
  display: flex;
  direction: ltr;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: block;
  flex: none;
}
.brand img {
  width: 88px;
  height: 70px;
  object-fit: contain;
}
.main-nav {
  display: flex;
  direction: rtl;
  gap: 34px;
  font-size: 14px;
  font-weight: 700;
}
.main-nav a {
  position: relative;
  padding: 28px 0;
}
.main-nav a:after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 17px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: 0.25s;
}
.main-nav a:hover:after,
.main-nav a.active:after {
  width: 100%;
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
}
.hero {
  min-height: 680px;
  background: url('../images/hero/link-hero.webp') center/cover no-repeat;
  color: #fff;
  display: grid;
  align-items: center;
  position: relative;
}
.hero:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.02),
    rgba(10, 0, 2, 0.08) 45%,
    rgba(8, 0, 1, 0.72) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 70px;
}
.hero-content h1 {
  font-size: clamp(40px, 4.7vw, 62px);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 18px;
  max-width: 730px;
}
.hero-content p {
  max-width: 650px;
  font-size: 17px;
  color: #eee9ea;
  margin: 0 0 28px;
}
.hero-actions,
.cta .container > div {
  display: flex;
  gap: 14px;
}
.btn {
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 12px 27px;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover {
  background: #ca2831;
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}
.btn-outline:hover {
  background: #fff;
  color: var(--red);
}
.stats {
  margin-top: -30px;
  position: relative;
  z-index: 4;
}
.stats-grid {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 25px 18px;
}
.stats-grid > div {
  display: flex;
  direction: ltr;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-right: 1px solid var(--line);
}
.stats-grid > div:first-child {
  border: 0;
}
.stats-grid i {
  font-size: 31px;
  color: var(--red);
  width: 36px;
  text-align: center;
}
.stats-grid p {
  margin: 0;
  direction: rtl;
}
.stats-grid b {
  display: block;
  color: var(--red-dark);
  font-size: 29px;
  line-height: 1.1;
}
.stats-grid span {
  color: #4f5056;
  font-size: 13px;
}
.section {
  padding: 78px 0;
}
.section-head {
  text-align: center;
  margin-bottom: 30px;
}
.section-head > span {
  display: none;
}
.section-head h2 {
  text-align: center;
  margin: 0 0 7px;
  color: #751219;
  font-size: clamp(28px, 3.2vw, 39px);
  line-height: 1.35;
}
.section-head h2:after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--red);
  margin: 8px auto 0;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.services {
  background: #fff;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.service-card {
  border: 1px solid var(--line);
  padding: 25px 10px 21px;
  border-radius: var(--radius);
  text-align: center;
  background: #fff;
  min-height: 222px;
  box-shadow: 0 3px 12px rgba(1, 9, 33, 0.05);
}
.service-card:hover {
  border-color: #d9a2a6;
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}
.service-card > i {
  height: 53px;
  color: var(--red);
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  font-size: 38px;
}
.service-card h3 {
  margin: 0 0 7px;
  font-size: 15px;
  line-height: 1.55;
}
.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}
.projects {
  background: #fff;
  padding-top: 38px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  direction: rtl;
}
.project-card {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: visible;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
.project-card img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  border-radius: 7px 7px 0 0;
  transition: 0.45s;
}
.project-card:hover img {
  transform: scale(1.025);
}
.project-icon {
  position: absolute;
  top: 160px;
  right: 50%;
  transform: translateX(50%);
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: var(--red-dark);
  border: 3px solid #fff;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  z-index: 2;
}
.project-card > div {
  padding: 31px 20px 18px;
  text-align: center;
}
.project-card h3 {
  color: #73131a;
  margin: 0 0 7px;
  font-size: 16px;
  line-height: 1.45;
}
.project-card ul {
  list-style: none;
  margin: 0;
  /* padding: 0; */
  text-align: start;
}
.project-card li {
  font-size: 12px;
  color: #444;
  line-height: 1.8;
}
.project-card li:before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
  margin-left: 7px;
  vertical-align: middle;
}
.workflow-step-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: inherit;
  cursor: pointer;
}
.workflow-step-link:hover span {
  color: var(--red-dark);
}
.workflow-step-link:focus-visible {
  outline: 3px solid rgba(177, 32, 39, 0.35);
  outline-offset: 5px;
  border-radius: 7px;
}
.workflow {
  padding: 40px 0 58px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.87), rgba(255, 255, 255, 0.87)),
    url('../images/pattern.svg') center/100px;
}
.workflow .section-head {
  margin-bottom: 22px;
}
.steps {
  margin: 0;
  padding: 12px 10px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  position: relative;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 10px;
}
.steps:before {
  content: '';
  position: absolute;
  right: 7%;
  left: 7%;
  top: 39px;
  border-top: 1px dashed var(--red);
}
.steps li {
  width: 13%;
  text-align: center;
  position: relative;
}
.steps b {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: auto;
  background: #fff;
  border: 1px solid #d7a2a6;
  color: var(--red);
  border-radius: 50%;
  position: relative;
  font-size: 25px;
}
.steps li:not(:last-child):after {
  content: '\f060';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 24px;
  left: -9px;
  color: var(--red);
  font-size: 10px;
  background: #fff;
  padding: 0 4px;
}
.steps span {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin-top: 9px;
  line-height: 1.45;
}
.media-section {
  background: #fff;
  padding-top: 22px;
}
.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.align-start {
  text-align: center;
  margin-bottom: 13px;
}
.align-start h2 {
  font-size: 25px;
}
.knowledge,
.onsite {
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: var(--radius);
}
.knowledge {
  background: #efeff0;
}
.onsite {
  background: #fff;
}
.knowledge > a:not(.all-articles) {
  display: grid;
  grid-template-columns: 1fr 135px;
  align-items: center;
  gap: 15px;
  padding: 8px 10px;
  margin: 8px 0;
  background: #fff;
  border-radius: 5px;
}
.knowledge h3 {
  font-size: 13px;
  margin: 0;
  line-height: 1.55;
}
.knowledge p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
}
.knowledge img {
  width: 135px;
  height: 68px;
  object-fit: cover;
  border-radius: 4px;
}
.knowledge .all-articles {
  display: block;
  text-align: center;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 700;
  margin-top: 9px;
}
.knowledge .all-articles i {
  margin-right: 5px;
}
.video-card {
  border: 0;
  background: none;
  padding: 0;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
}
.video-card img {
  width: 100%;
  height: 322px;
  object-fit: cover;
  filter: brightness(0.78);
}
.play {
  position: absolute;
  inset: 48% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--red);
  border-radius: 50%;
  font-size: 23px;
  padding-right: 3px;
}
.video-card strong {
  position: absolute;
  inset: auto 0 0;
  background: rgba(147, 10, 30, 0.94);
  padding: 12px;
  font-size: 13px;
}
.cta {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(105deg, rgba(50, 2, 8, 0.94), rgba(136, 9, 25, 0.93)),
    url('../images/pattern.svg') center/82px;
  color: #fff;
  text-align: center;
  padding: 54px 0;
  overflow: hidden;
}
.cta:after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 30%, rgba(210, 35, 49, 0.2), transparent 40%);
  z-index: -1;
}
.cta h2 {
  font-size: clamp(29px, 3.6vw, 42px);
  margin: 0;
}
.cta p {
  margin: 3px 0 21px;
  color: #eadfe0;
}
.cta .container > div {
  justify-content: center;
}
.btn-light {
  background: #fff;
  color: var(--red);
}
footer {
  padding-top: 42px;
  background: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1.2fr 0.85fr 1fr;
  gap: 0;
  padding-bottom: 32px;
}
.footer-grid > div {
  padding: 0 34px;
  border-left: 1px solid var(--line);
}
.footer-grid > div:first-child {
  padding-right: 0;
}
.footer-grid > div:last-child {
  border: 0;
  padding-left: 0;
}
.footer-brand {
  margin-bottom: 10px;
}
.footer-brand img {
  width: 108px;
  height: auto;
}
.footer-grid p {
  color: var(--muted);
  font-size: 12px;
  max-width: 260px;
}
.footer-grid h3 {
  font-size: 14px;
  color: #72131a;
  margin-top: 4px;
}
.footer-grid a,
.footer-grid span {
  display: block;
  font-size: 11px;
  color: #555;
  margin: 6px 0;
}
.footer-grid a:hover {
  color: var(--red);
}
.socials {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.socials a {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff !important;
}
.footer-contact i {
  color: var(--red);
  width: 23px;
}
.copyright {
  text-align: center;
  background: #720c15;
  color: #fff;
  padding: 10px;
  font-size: 11px;
}
.form-dialog,
.lightbox,
.video-modal {
  border: 0;
  padding: 0;
  border-radius: 14px;
  max-width: min(1000px, calc(100% - 24px));
  width: 100%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
dialog::backdrop {
  background: rgba(2, 5, 10, 0.78);
  backdrop-filter: blur(3px);
}
.dialog-close,
.lightbox > button,
.video-modal > button {
  position: absolute;
  left: 14px;
  top: 10px;
  border: 0;
  background: none;
  font-size: 30px;
  cursor: pointer;
  z-index: 3;
}
.dialog-layout {
  display: grid;
  grid-template-columns: 34% 66%;
  direction: rtl;
}
.dialog-layout aside {
  background: linear-gradient(150deg, #8d111b, #360307);
  color: #fff;
  padding: 56px 32px;
}
.dialog-layout aside span {
  font-size: 13px;
  color: #e7b9bd;
}
.dialog-layout aside h2 {
  font-size: 31px;
  margin: 3px 0 16px;
}
.dialog-layout aside p {
  color: #ebdbdd;
  font-size: 14px;
}
.dialog-layout aside a {
  display: block;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 11px 0;
  font-size: 13px;
}
.dialog-layout form {
  padding: 45px 38px 32px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #d9d9de;
  border-radius: 5px;
  padding: 10px 12px;
  background: #fff;
  outline: 0;
  margin-top: 4px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(160, 24, 35, 0.1);
}
label small {
  display: block;
  color: #bd1926;
  font-size: 11px;
  min-height: 17px;
}
.consent {
  font-weight: 400;
}
.consent input {
  display: inline;
  width: auto;
  margin-left: 6px;
}
.honeypot {
  position: absolute;
  left: -9999px;
}
.form-status {
  margin-top: 12px;
  font-size: 13px;
}
.form-status.success {
  color: #087341;
}
.form-status.error {
  color: #b41926;
}
.lightbox {
  background: #111;
  width: auto;
}
.lightbox img {
  max-height: 86vh;
  max-width: 90vw;
}
.lightbox > button,
.video-modal > button {
  color: #fff;
}
.video-modal > div {
  background: #111;
  color: #fff;
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 40px;
  text-align: center;
}
.to-top {
  position: fixed;
  left: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
}
.to-top.show {
  opacity: 1;
  pointer-events: auto;
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Mobile-first layout: phones are the default; larger screens progressively expand. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
.container {
  width: calc(100% - 28px);
  max-width: var(--container);
}
.nav-wrap {
  height: 70px;
  direction: ltr;
}
.brand img {
  width: 72px;
  height: 58px;
}
.menu-toggle {
  display: grid;
  gap: 5px;
  order: 2;
  z-index: 2;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
}
.brand {
  order: 1;
}
.main-nav {
  display: none;
  position: fixed;
  inset: 70px 0 auto 0;
  width: 100%;
  max-height: calc(100dvh - 70px);
  overflow-y: auto;
  background: rgba(5, 6, 10, 0.98);
  padding: 14px 20px 20px;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  direction: rtl;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}
.main-nav.open {
  display: flex;
}
.main-nav a {
  width: 100%;
  padding: 11px 4px;
  text-align: right;
}
.main-nav a:after {
  bottom: 5px;
}
.hero {
  min-height: 690px;
  width: 100%;
  background-position: 31% center;
  align-items: end;
  padding: 100px 0 64px;
}
.hero:after {
  background: linear-gradient(
    0deg,
    rgba(10, 0, 1, 0.96) 0,
    rgba(12, 0, 2, 0.72) 52%,
    rgba(0, 0, 0, 0.18) 100%
  );
}
.hero-content {
  width: 100%;
  padding-top: 0;
  text-align: center;
}
.hero-content h1 {
  max-width: 100%;
  font-size: clamp(31px, 9.2vw, 40px);
  line-height: 1.35;
  margin-bottom: 15px;
}
.hero-content p {
  max-width: 100%;
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 23px;
}
.hero-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.hero-actions .btn {
  width: 100%;
  min-height: 50px;
}
.stats {
  width: 100%;
  margin-top: -26px;
  padding: 0 14px;
}
.stats-grid {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 15px 6px;
  gap: 0;
  border-radius: 9px;
}
.stats-grid > div {
  min-width: 0;
  min-height: 86px;
  gap: 8px;
  padding: 12px 5px;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}
.stats-grid > div:nth-child(odd) {
  border-left: 1px solid var(--line);
}
.stats-grid > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.stats-grid > div:last-child {
  grid-column: 1/-1;
  border: 0;
  max-width: 50%;
  width: 100%;
  justify-self: center;
}
.stats-grid i {
  font-size: 23px;
  width: 25px;
}
.stats-grid b {
  font-size: 22px;
}
.stats-grid span {
  font-size: 11px;
}
.section {
  width: 100%;
  padding: 54px 0;
}
.section-head {
  margin-bottom: 24px;
}
.section-head h2 {
  font-size: clamp(26px, 8vw, 34px);
}
.section-head p {
  font-size: 13px;
  padding: 0 5px;
}
.services-grid {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.service-card {
  min-width: 0;
  min-height: 218px;
  padding: 20px 8px 17px;
}
.service-card > i {
  height: 46px;
  font-size: 32px;
}
.service-card h3 {
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.service-card p {
  font-size: 10.5px;
}
.projects {
  padding-top: 26px;
}
.projects-grid {
  width: 100%;
  grid-template-columns: 1fr;
  gap: 22px;
}
.project-card {
  width: 100%;
  min-width: 0;
  overflow: visible;
}
.project-card img {
  height: 205px;
}
.project-icon {
  top: 179px;
}
.project-card > div {
  padding: 33px 18px 19px;
}
.project-card h3 {
  font-size: 17px;
}
.project-card li {
  font-size: 12px;
}
.workflow {
  padding: 42px 0;
}
.steps {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  display: grid;
  gap: 25px 8px;
  padding: 10px 3px 18px;
}
.steps:before,
.steps li:after {
  display: none;
}
.steps li {
  width: 100%;
  min-width: 0;
}
.steps b {
  width: 56px;
  height: 56px;
  font-size: 23px;
}
.media-section {
  padding-top: 18px;
}
.media-grid {
  width: 100%;
  grid-template-columns: 1fr;
  gap: 18px;
}
.knowledge,
.onsite {
  width: 100%;
  min-width: 0;
  padding: 13px;
}
.knowledge > a:not(.all-articles) {
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 10px;
  padding: 8px;
}
.knowledge h3 {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.knowledge p {
  font-size: 9.5px;
}
.knowledge img {
  width: 92px;
  height: 72px;
}
.video-card img {
  height: 260px;
}
.video-card strong {
  font-size: 12px;
}
.cta {
  width: 100%;
  padding: 46px 0;
}
.cta h2 {
  font-size: 28px;
  line-height: 1.45;
}
.cta p {
  font-size: 13px;
}
.cta .container > div {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  gap: 10px;
}
.cta .btn {
  width: 100%;
}
.footer-grid {
  width: 100%;
  grid-template-columns: 1fr;
  padding-bottom: 22px;
}
.footer-grid > div {
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.footer-grid > div:first-child,
.footer-grid > div:last-child {
  padding: 22px 0;
}
.footer-grid > div:last-child {
  border-bottom: 0;
}
.footer-grid p {
  max-width: 100%;
}
.copyright {
  width: 100%;
  padding: 12px 14px;
  font-size: 10px;
  white-space: normal;
}
.form-dialog {
  max-width: calc(100% - 16px);
  max-height: 94dvh;
  overflow: auto;
}
.dialog-layout {
  grid-template-columns: 1fr;
}
.dialog-layout aside {
  padding: 35px 22px;
}
.dialog-layout form {
  padding: 24px 18px;
}
.field-row {
  grid-template-columns: 1fr;
  gap: 0;
}
.dialog-close {
  color: var(--red);
}
.lightbox img {
  max-width: 94vw;
}
.to-top {
  left: 12px;
  bottom: 12px;
}
.services-grid > *,
.projects-grid > *,
.steps > *,
.media-grid > *,
.footer-grid > * {
  min-width: 0;
}

@media (min-width: 601px) {
  .container {
    width: min(var(--container), calc(100% - 40px));
  }
  .hero {
    min-height: 650px;
    padding-bottom: 72px;
  }
  .hero-content {
    text-align: right;
  }
  .hero-actions {
    display: flex;
    width: auto;
  }
  .hero-actions .btn {
    width: auto;
  }
  .stats {
    padding: 0;
  }
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 18px 9px;
  }
  .stats-grid > div,
  .stats-grid > div:nth-child(odd) {
    border-left: 0;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
  .stats-grid > div:nth-child(3n) {
    border-right: 0;
  }
  .stats-grid > div:last-child {
    grid-column: auto;
    max-width: none;
  }
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
  }
  .footer-grid > div {
    border-bottom: 0;
    border-left: 1px solid var(--line);
    padding: 12px 20px;
  }
  .footer-grid > div:nth-child(even) {
    border-left: 0;
  }
  .dialog-layout aside {
    padding: 38px 30px;
  }
  .dialog-layout form {
    padding: 30px;
  }
}

@media (min-width: 901px) {
  .nav-wrap {
    height: 82px;
  }
  .brand img {
    width: 88px;
    height: 70px;
  }
  .menu-toggle {
    display: none;
  }
  .main-nav {
    display: flex;
    position: static;
    width: auto;
    max-height: none;
    overflow: visible;
    background: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 34px;
    box-shadow: none;
  }
  .main-nav a {
    width: auto;
    padding: 28px 0;
    text-align: center;
  }
  .main-nav a:after {
    bottom: 17px;
  }
  .hero {
    min-height: 680px;
    align-items: center;
    padding: 70px 0 0;
    background-position: center;
  }
  .hero:after {
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.02),
      rgba(10, 0, 2, 0.08) 45%,
      rgba(8, 0, 1, 0.72) 100%
    );
  }
  .hero-content {
    text-align: right;
  }
  .hero-content h1 {
    font-size: clamp(40px, 4.7vw, 62px);
    max-width: 730px;
  }
  .hero-content p {
    max-width: 650px;
    font-size: 17px;
  }
  .stats {
    margin-top: -30px;
  }
  .stats-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 25px 18px;
  }
  .stats-grid > div,
  .stats-grid > div:nth-child(odd) {
    min-height: 0;
    border-left: 0;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding: 0;
  }
  .stats-grid > div:first-child {
    border-right: 0;
  }
  .stats-grid i {
    font-size: 31px;
    width: 36px;
  }
  .stats-grid b {
    font-size: 29px;
  }
  .stats-grid span {
    font-size: 13px;
  }
  .section {
    padding: 78px 0;
  }
  .services-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
  }
  .service-card {
    min-height: 222px;
    padding: 25px 10px 21px;
  }
  .service-card > i {
    height: 53px;
    font-size: 38px;
  }
  .service-card h3 {
    font-size: 15px;
  }
  .projects-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
  .project-card img {
    height: 185px;
  }
  .project-icon {
    top: 160px;
  }
  .steps {
    display: flex;
    justify-content: space-between;
    gap: 0;
    padding: 12px 10px 0;
  }
  .steps:before {
    display: block;
  }
  .steps li {
    width: 13%;
  }
  .steps li:not(:last-child):after {
    display: block;
  }
  .media-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .knowledge,
  .onsite {
    padding: 18px;
  }
  .knowledge > a:not(.all-articles) {
    grid-template-columns: minmax(0, 1fr) 135px;
    gap: 15px;
    padding: 8px 10px;
  }
  .knowledge h3 {
    font-size: 13px;
  }
  .knowledge p {
    font-size: 10px;
  }
  .knowledge img {
    width: 135px;
    height: 68px;
  }
  .video-card img {
    height: 322px;
  }
  .cta {
    padding: 54px 0;
  }
  .cta h2 {
    font-size: clamp(29px, 3.6vw, 42px);
  }
  .cta .container > div {
    display: flex;
    width: auto;
  }
  .cta .btn {
    width: auto;
  }
  .footer-grid {
    grid-template-columns: 1.35fr 1.2fr 0.85fr 1fr;
    gap: 0;
    padding-bottom: 32px;
  }
  .footer-grid > div {
    padding: 0 34px;
    border-left: 1px solid var(--line);
    border-bottom: 0;
  }
  .footer-grid > div:first-child {
    padding: 0 0 0 34px;
  }
  .footer-grid > div:last-child {
    border-left: 0;
    padding: 0 34px 0 0;
  }
  .dialog-layout {
    grid-template-columns: 34% 66%;
  }
  .dialog-layout aside {
    padding: 56px 32px;
  }
  .dialog-layout form {
    padding: 45px 38px;
  }
  .field-row {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* V4: focused mobile navigation, compact hero actions, story workflow and footer */
@media (max-width: 600px) {
  body.menu-open {
    overflow: hidden;
  }
  .nav-wrap {
    direction: ltr;
  }
  .menu-toggle {
    order: 1;
    position: relative;
    width: 46px;
    height: 46px;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 10px;
    background: rgba(6, 6, 9, 0.86);
    place-content: center;
    transition:
      background 0.25s,
      border-color 0.25s;
  }
  .brand {
    order: 2;
    position: relative;
    z-index: 82;
  }
  .menu-toggle span {
    width: 24px;
    height: 2px;
    border-radius: 2px;
    transition:
      transform 0.25s,
      opacity 0.2s;
    background: #fff;
  }
  .menu-toggle.open {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 91;
    background: #101014;
    border-color: rgba(177, 32, 39, 0.75);
  }
  .menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .main-nav {
    display: flex;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    inset: 0;
    z-index: 80;
    max-height: 100dvh;
    height: 100dvh;
    padding: 128px 34px 42px;
    background:
      radial-gradient(circle at 82% 5%, rgba(177, 32, 39, 0.18), transparent 32%), #050507;
    justify-content: center;
    transform: translateY(-12px);
    transition:
      opacity 0.28s,
      transform 0.28s,
      visibility 0.28s;
  }
  .main-nav.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .main-nav a {
    padding: 16px 8px;
    text-align: center;
    font-size: 24px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .main-nav a:last-child {
    border-bottom: 0;
  }
  .main-nav a:after {
    display: none;
  }
  .main-nav a.active {
    color: #dc3b44;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .hero-actions .btn {
    min-width: 0;
    min-height: 44px;
    padding: 10px 8px;
    font-size: 12px;
    white-space: nowrap;
  }
  .workflow {
    padding: 46px 0 64px;
  }
  .workflow .section-head {
    margin-bottom: 30px;
  }
  .steps {
    direction: rtl;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 50px 58px;
    padding: 8px 18px 24px;
    background: transparent;
    overflow: visible;
  }
  .steps li {
    opacity: 0;
    transform: translateY(18px) scale(0.92);
    transition:
      opacity 0.45s ease var(--story-delay),
      transform 0.45s ease var(--story-delay);
  }
  .steps li.is-shown {
    opacity: 1;
    transform: none;
  }
  .steps b {
    width: 66px;
    height: 66px;
    font-size: 25px;
    box-shadow: 0 8px 20px rgba(147, 10, 30, 0.09);
  }
  .steps span {
    font-size: 13px;
    margin-top: 11px;
  }
  .steps li:after {
    display: grid !important;
    place-items: center;
    position: absolute;
    background: #fff;
    color: var(--red);
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 17px;
    width: 28px;
    height: 28px;
    padding: 0;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.25s ease calc(var(--story-delay) + 220ms);
  }
  .steps li.is-shown:after {
    opacity: 1;
  }
  .steps li:nth-child(1) {
    grid-column: 2;
    grid-row: 1;
  }
  .steps li:nth-child(2) {
    grid-column: 1;
    grid-row: 1;
  }
  .steps li:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
  }
  .steps li:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }
  .steps li:nth-child(5) {
    grid-column: 2;
    grid-row: 3;
  }
  .steps li:nth-child(6) {
    grid-column: 1;
    grid-row: 3;
  }
  .steps li:nth-child(7) {
    grid-column: 1;
    grid-row: 4;
  }
  .steps li:nth-child(1):after,
  .steps li:nth-child(5):after {
    content: '\f060';
    top: 20px;
    left: -43px;
  }
  .steps li:nth-child(3):after {
    content: '\f061';
    top: 20px;
    right: -43px;
    left: auto;
  }
  .steps li:nth-child(2):after,
  .steps li:nth-child(4):after,
  .steps li:nth-child(6):after {
    content: '\f063';
    top: auto;
    right: calc(50% - 14px);
    bottom: -40px;
  }
  .steps li:nth-child(7):after {
    display: none !important;
  }
  footer {
    padding-top: 0;
    background: #050506;
    color: #fff;
  }
  .footer-grid {
    padding: 42px 22px 30px;
    gap: 34px;
    text-align: center;
  }
  .footer-grid > div,
  .footer-grid > div:first-child,
  .footer-grid > div:last-child {
    padding: 0 0 30px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .footer-grid > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }
  .footer-about {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-brand img {
    width: 122px;
    filter: brightness(1.12);
  }
  .footer-grid p {
    color: #c7c7ca;
    font-size: 13px;
    line-height: 1.8;
    max-width: 310px;
  }
  .footer-grid h3 {
    display: inline-block;
    color: #fff;
    font-size: 20px;
    margin: 0 0 20px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--red);
  }
  .footer-grid a,
  .footer-grid span {
    color: #c7c7ca;
    font-size: 14px;
    margin: 11px 0;
  }
  .socials {
    justify-content: center;
    gap: 12px;
  }
  .socials a {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(177, 32, 39, 0.65);
    background: #111113;
    color: #dc3b44 !important;
  }
  .footer-contact a,
  .footer-contact span {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: #101012;
  }
  .footer-contact i {
    font-size: 16px;
  }
  .copyright {
    background: #720c15;
    padding: 14px 12px;
    font-size: 11px;
  }
}

@media (min-width: 601px) {
  .brand {
    order: 0;
  }
  .main-nav {
    order: 1;
  }
  .steps li {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 0.4s ease var(--story-delay),
      transform 0.4s ease var(--story-delay);
  }
  .steps li.is-shown {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .steps li {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* V5: stable logo/menu positions and structured dotted workflow connectors */
.steps li:after {
  display: none !important;
}
.step-connector {
  pointer-events: none;
  color: var(--red);
  margin: 0;
}
.step-connector > span {
  display: block;
  margin: 0;
}

@media (max-width: 900px) {
  .steps {
    direction: ltr;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 58px 58px;
    padding: 10px 18px 26px;
    background: transparent;
    overflow: visible;
  }
  .steps:before {
    display: none;
  }
  .steps li {
    direction: rtl;
    width: 100%;
    min-width: 0;
    position: relative;
  }
  .steps li:nth-child(1) {
    grid-column: 2;
    grid-row: 1;
  }
  .steps li:nth-child(2) {
    grid-column: 1;
    grid-row: 1;
  }
  .steps li:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
  }
  .steps li:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }
  .steps li:nth-child(5) {
    grid-column: 2;
    grid-row: 3;
  }
  .steps li:nth-child(6) {
    grid-column: 1;
    grid-row: 3;
  }
  .steps li:nth-child(7) {
    grid-column: 1;
    grid-row: 4;
  }
  .step-connector {
    position: absolute;
    top: 24px;
    left: calc(-100% + 34px);
    width: calc(100% - 2px);
    height: 22px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.28s ease calc(var(--story-delay) + 230ms);
  }
  .steps li.is-shown .step-connector {
    opacity: 1;
  }
  .step-connector > span {
    flex: 1;
    border-top: 2px dotted rgba(177, 32, 39, 0.72);
  }
  .step-connector > i {
    flex: none;
    font-size: 12px;
  }
  .step-connector-right {
    right: calc(-100% + 34px);
    left: auto;
    flex-direction: row;
  }
  .step-connector-down {
    top: auto;
    right: calc(50% - 8px);
    bottom: -49px;
    left: auto;
    width: 16px;
    height: 48px;
    flex-direction: column;
    gap: 4px;
  }
  .step-connector-down > span {
    width: 0;
    min-height: 0;
    border-top: 0;
    border-right: 2px dotted rgba(177, 32, 39, 0.72);
  }
}

@media (max-width: 600px) {
  .nav-wrap {
    direction: ltr;
  }
  .brand {
    order: 1;
  }
  .menu-toggle {
    order: 2;
  }
  .menu-toggle.open {
    right: 16px;
    left: auto;
  }
}

@media (min-width: 901px) {
  .brand {
    order: 0;
  }
  .main-nav {
    order: 1;
  }
  .step-connector {
    position: absolute;
    top: 24px;
    left: -54%;
    width: 76%;
    height: 22px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.28s ease calc(var(--story-delay) + 230ms);
  }
  .steps li.is-shown .step-connector {
    opacity: 1;
  }
  .step-connector > span {
    flex: 1;
    border-top: 2px dotted rgba(177, 32, 39, 0.72);
  }
  .step-connector > i {
    flex: none;
    font-size: 11px;
  }
  .step-connector-down,
  .step-connector-right {
    flex-direction: row-reverse;
    right: auto;
    bottom: auto;
  }
  .step-connector-down > span {
    border-right: 0;
    border-top: 2px dotted rgba(177, 32, 39, 0.72);
  }
  .step-connector-down > i:before,
  .step-connector-right > i:before {
    content: '\f060';
  }
}

@media (max-width: 600px) {
  .footer-about .footer-brand {
    order: -1;
    margin: 0 auto 18px;
  }

  .footer-about > p {
    order: 1;
  }

  .footer-about .socials {
    order: 2;
  }
}

@media (max-width: 600px) {
  /* القائمة تغطي الصفحة بالكامل */
  .site-header {
    z-index: 9999;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    z-index: 9998;
    background: #050507;
  }

  .menu-toggle.open {
    z-index: 10000;
  }

  /* منع لوجو الفوتر من الظهور فوق القائمة */
  footer .footer-brand {
    position: relative;
    z-index: auto;
  }
}

/* Workflow connector refinement: one dotted segment ending with an arrow next to the following step. */
@media (min-width: 901px) {
  .steps:before {
    display: none;
  }

  .step-connector {
    top: 18px;
    left: -43%;
    width: 74%;
    height: 22px;
    gap: 0;
    align-items: center;
  }

  .step-connector > span,
  .step-connector-down > span {
    border-top: 2px dotted rgba(177, 32, 39, 0.72);
  }

  .step-connector > i {
    margin: 0;
    font-size: 12px;
    line-height: 1;
    transform: translateX(-1px);
  }
}

/* ===== LINK dynamic stacked/page-turn hero ===== */
.hero-concept-3 {
  min-height: 760px;
  padding: 118px 0 54px;
  background:
    radial-gradient(circle at 91% 14%, rgba(177, 32, 39, 0.055), transparent 28%),
    linear-gradient(180deg, #fff 0%, #fbfcfe 68%, #f8f9fb 100%);
  color: #07162d;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-concept-3:after {
  display: none !important;
  content: none !important;
}
.hero-concept-3:before {
  content: '';
  position: absolute;
  inset: 82px 0 0;
  height: auto;
  background:
    linear-gradient(135deg, transparent 0 62%, rgba(177, 32, 39, 0.035) 62% 65%, transparent 65%),
    linear-gradient(45deg, transparent 0 72%, rgba(177, 32, 39, 0.026) 72% 76%, transparent 76%);
  pointer-events: none;
}
.hero-concept-3 .hero3-shell {
  width: min(1480px, calc(100% - 64px));
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(0, 0.93fr);
  gap: 88px;
  align-items: center;
  direction: ltr;
  position: relative;
  z-index: 2;
}
.hero3-media {
  height: 570px;
  position: relative;
  direction: ltr;
  isolation: isolate;
}
.hero3-ribbon {
  position: absolute;
  left: 8px;
  top: 28px;
  width: 94%;
  height: 500px;
  z-index: -2;
  opacity: 0.95;
}
.hero3-ribbon:before,
.hero3-ribbon:after {
  content: '';
  position: absolute;
  border: 22px solid var(--red);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(12deg);
}
.hero3-ribbon:before {
  width: 420px;
  height: 260px;
  left: -55px;
  top: 15px;
  opacity: 0.9;
}
.hero3-ribbon:after {
  width: 470px;
  height: 320px;
  right: -30px;
  bottom: -25px;
  opacity: 0.55;
  transform: rotate(192deg);
}
.hero3-deck {
  position: absolute;
  inset: 0;
}
.hero3-deck-card {
  position: absolute;
  top: 50px;
  left: 12px;
  width: 55%;
  height: 430px;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #dfe5eb;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 55px rgba(1, 9, 33, 0.14);
  transform-origin: 85% 50%;
  transition:
    transform 0.78s cubic-bezier(0.22, 0.72, 0.18, 1),
    opacity 0.62s ease,
    left 0.78s cubic-bezier(0.22, 0.72, 0.18, 1),
    top 0.78s cubic-bezier(0.22, 0.72, 0.18, 1),
    width 0.78s cubic-bezier(0.22, 0.72, 0.18, 1),
    height 0.78s cubic-bezier(0.22, 0.72, 0.18, 1),
    filter 0.62s ease;
  opacity: 0;
  pointer-events: none;
}
.hero3-deck-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero3-deck-card:after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(transparent, rgba(1, 9, 33, 0.78));
}
.hero3-deck-card figcaption {
  position: absolute;
  left: 30px;
  bottom: 28px;
  z-index: 2;
  max-width: 72%;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  text-align: left;
  border-left: 3px solid var(--red);
  padding-left: 13px;
  line-height: 1.45;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.32);
}
.hero3-deck-card.is-after {
  left: -30px;
  top: 70px;
  transform: scale(0.84) rotate(-1.7deg);
  opacity: 0.64;
  filter: saturate(0.88);
  z-index: 1;
}
.hero3-deck-card.is-next {
  left: 67px;
  top: 55px;
  transform: scale(0.92) rotate(1deg);
  opacity: 0.88;
  filter: saturate(0.96);
  z-index: 2;
}
.hero3-deck-card.is-front {
  left: 142px;
  top: 0;
  width: 69%;
  height: 520px;
  transform: scale(1) rotate(0);
  opacity: 1;
  filter: none;
  z-index: 4;
  pointer-events: auto;
  box-shadow: 0 32px 74px rgba(1, 9, 33, 0.22);
}
.hero3-deck-card.is-hidden-card {
  opacity: 0;
  transform: scale(0.8) translateX(-56px);
  filter: saturate(0.82);
  z-index: 0;
}
.hero3-media .hero-arrow {
  position: absolute;
  top: 50%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.97);
  color: var(--red-dark);
  box-shadow: 0 10px 26px rgba(1, 9, 33, 0.18);
  z-index: 9;
  cursor: pointer;
}
.hero3-media .hero-arrow:hover {
  background: var(--red);
  color: #fff;
}
.hero3-next {
  left: 88px;
}
.hero3-prev {
  right: 0;
}
.hero3-copy {
  direction: rtl;
  text-align: right;
  align-self: center;
}
.hero3-eyebrow {
  color: #687586;
  font-size: 16px;
  display: inline-block;
  margin-bottom: 22px;
  position: relative;
  padding-right: 70px;
}
.hero3-eyebrow:before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 52px;
  height: 2px;
  background: var(--red);
}
.hero3-copy h1 {
  font-size: clamp(48px, 4vw, 68px);
  line-height: 1.18;
  margin: 0 0 24px;
  color: #07162d;
  font-weight: 800;
  letter-spacing: -1.2px;
}
.hero3-copy p {
  color: #667385;
  font-size: 18px;
  line-height: 1.9;
  max-width: 620px;
  margin: 0 0 30px;
}
.hero3-copy .hero-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
}
.hero3-copy .btn {
  min-width: 190px;
  min-height: 58px;
  gap: 11px;
  border-radius: 8px;
  font-size: 15px;
}
.hero3-outline {
  border: 1.5px solid #10213b;
  color: #10213b;
  background: #fff;
}
.hero3-outline:hover {
  background: #10213b;
  color: #fff;
}
.hero3-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 30px;
}
.hero3-metrics div {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  background: #fff;
  border-radius: 12px;
  padding: 14px 15px;
  box-shadow: 0 8px 22px rgba(1, 9, 33, 0.06);
  text-align: right;
}
.hero3-metrics i {
  grid-row: 1/3;
  align-self: center;
  color: var(--red);
  font-size: 24px;
}
.hero3-metrics b {
  font-size: 21px;
  color: #07162d;
  line-height: 1.1;
}
.hero3-metrics span {
  font-size: 10px;
  color: #7a8493;
}
.hero3-dots {
  position: absolute;
  left: 42px;
  bottom: 0;
  display: flex;
  gap: 10px;
  direction: ltr;
  z-index: 8;
}
.hero3-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d4d9e1;
  cursor: pointer;
  transition: 0.25s;
}
.hero3-dots button.is-active {
  background: var(--red);
  transform: scale(1.2);
}
[dir='ltr'] .hero3-next {
  left: auto;
  right: 0;
}
[dir='ltr'] .hero3-prev {
  right: auto;
  left: 88px;
}
@media (max-width: 1100px) {
  .hero-concept-3 {
    padding-top: 126px;
    min-height: auto;
  }
  .hero-concept-3 .hero3-shell {
    grid-template-columns: 1fr;
    gap: 42px;
    width: min(900px, calc(100% - 44px));
  }
  .hero3-copy {
    grid-row: 1;
    text-align: center;
  }
  .hero3-eyebrow {
    padding-right: 0;
  }
  .hero3-eyebrow:before {
    display: none;
  }
  .hero3-copy p {
    margin-inline: auto;
  }
  .hero3-copy .hero-actions {
    justify-content: center;
  }
  .hero3-media {
    height: 540px;
  }
  .hero3-deck-card.is-front {
    left: 18%;
    width: 64%;
    height: 490px;
  }
  .hero3-deck-card.is-next {
    left: 11%;
    height: 405px;
  }
  .hero3-deck-card.is-after {
    left: 0;
    height: 405px;
  }
  .hero3-dots {
    left: 50%;
    transform: translateX(-50%);
    bottom: -5px;
  }
}
@media (max-width: 700px) {
  .hero-concept-3 {
    padding: 96px 0 42px;
  }
  .hero-concept-3 .hero3-shell {
    width: calc(100% - 28px);
    gap: 30px;
  }
  .hero3-copy h1 {
    font-size: 38px;
    letter-spacing: -0.4px;
  }
  .hero3-copy p {
    font-size: 14px;
    line-height: 1.8;
  }
  .hero3-copy .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .hero3-copy .btn {
    min-width: 0;
    min-height: 49px;
    padding: 10px 8px;
    font-size: 12px;
  }
  .hero3-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero3-metrics div {
    display: block;
    text-align: center;
    padding: 10px 5px;
  }
  .hero3-metrics i {
    font-size: 17px;
  }
  .hero3-metrics b {
    display: block;
    font-size: 16px;
  }
  .hero3-metrics span {
    display: block;
    font-size: 8px;
  }
  .hero3-media {
    height: 420px;
  }
  .hero3-deck-card.is-front {
    left: 14%;
    width: 75%;
    height: 390px;
  }
  .hero3-deck-card.is-next {
    left: 5%;
    height: 330px;
  }
  .hero3-deck-card.is-after {
    left: -7%;
    height: 330px;
  }
  .hero3-deck-card figcaption {
    font-size: 14px;
    left: 18px;
    bottom: 20px;
  }
  .hero3-media .hero-arrow {
    width: 44px;
    height: 44px;
  }
  .hero3-next {
    left: 6px;
  }
  .hero3-prev {
    right: 6px;
  }
  [dir='ltr'] .hero3-next {
    left: auto;
    right: 6px;
  }
  [dir='ltr'] .hero3-prev {
    right: auto;
    left: 6px;
  }
  .hero3-ribbon {
    display: none;
  }
}

/* ===== Home hero fixed slide viewport (2026-09-21) =====
   The slider frame owns the dimensions; uploaded images are cropped into it.
   This keeps every active slide at the same height regardless of source ratio. */
.hero-concept-3 {
  --hero3-card-height: 520px;
  --hero3-media-height: 570px;
}
.hero-concept-3 .hero3-media {
  height: var(--hero3-media-height) !important;
  min-height: var(--hero3-media-height);
  max-height: var(--hero3-media-height);
}
.hero-concept-3 .hero3-deck {
  height: var(--hero3-media-height);
  min-height: var(--hero3-media-height);
  max-height: var(--hero3-media-height);
  overflow: visible;
}
.hero-concept-3 .hero3-deck-card,
.hero-concept-3 .hero3-deck-card.is-front,
.hero-concept-3 .hero3-deck-card.is-next,
.hero-concept-3 .hero3-deck-card.is-after,
.hero-concept-3 .hero3-deck-card.is-hidden-card {
  height: var(--hero3-card-height) !important;
  min-height: var(--hero3-card-height);
  max-height: var(--hero3-card-height);
}
.hero-concept-3 .hero3-deck-card {
  /* Height no longer animates between queue positions, preventing the frame from jumping. */
  transition:
    transform 0.78s cubic-bezier(0.22, 0.72, 0.18, 1),
    opacity 0.62s ease,
    left 0.78s cubic-bezier(0.22, 0.72, 0.18, 1),
    top 0.78s cubic-bezier(0.22, 0.72, 0.18, 1),
    width 0.78s cubic-bezier(0.22, 0.72, 0.18, 1),
    filter 0.62s ease;
}
.hero-concept-3 .hero3-deck-card > img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover !important;
  object-position: center center;
}
.hero-concept-3 .hero3-deck-card:after,
.hero-concept-3 .hero3-deck-card figcaption {
  pointer-events: none;
}

@media (max-width: 1100px) {
  .hero-concept-3 {
    --hero3-card-height: 490px;
    --hero3-media-height: 540px;
  }
}

@media (max-width: 700px) {
  .hero-concept-3 {
    /* Lebanese Bakery slide reference height. */
    --hero3-card-height: 390px;
    --hero3-media-height: 420px;
  }
  .hero-concept-3 .hero3-media,
  .hero-concept-3 .hero3-deck {
    height: var(--hero3-media-height) !important;
    min-height: var(--hero3-media-height);
    max-height: var(--hero3-media-height);
  }
  .hero-concept-3 .hero3-dots {
    bottom: 0;
  }
}

@media (max-width: 420px) {
  .hero-concept-3 {
    --hero3-card-height: 390px;
    --hero3-media-height: 420px;
  }
}

/* ===== FINAL home hero viewport lock (2026-09-21) =====
   Keep the complete hero composition stable while CMS titles/descriptions and
   uploaded image aspect ratios change. The viewport owns the dimensions. */
.hero-concept-3 {
  --hero3-copy-height: 520px;
  --hero3-card-height: 520px;
  --hero3-media-height: 570px;
}
.hero-concept-3 .hero3-shell {
  height: var(--hero3-media-height);
  min-height: var(--hero3-media-height);
  max-height: var(--hero3-media-height);
}
.hero-concept-3 .hero3-copy {
  height: var(--hero3-copy-height);
  min-height: var(--hero3-copy-height);
  max-height: var(--hero3-copy-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-concept-3 .hero3-copy h1 {
  min-height: 2.36em;
  max-height: 3.54em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  text-overflow: ellipsis;
}
.hero-concept-3 .hero3-copy p {
  min-height: 3.8em;
  max-height: 5.7em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  text-overflow: ellipsis;
}
.hero-concept-3 .hero3-media,
.hero-concept-3 .hero3-deck,
.hero-concept-3 .hero3-deck-card,
.hero-concept-3 .hero3-deck-card.is-front,
.hero-concept-3 .hero3-deck-card.is-next,
.hero-concept-3 .hero3-deck-card.is-after,
.hero-concept-3 .hero3-deck-card.is-hidden-card {
  box-sizing: border-box;
}
.hero-concept-3 .hero3-deck-card > img {
  display: block;
  flex: none;
}

@media (max-width: 1100px) {
  .hero-concept-3 {
    --hero3-copy-height: 390px;
    --hero3-card-height: 490px;
    --hero3-media-height: 540px;
  }
  .hero-concept-3 .hero3-shell {
    height: calc(var(--hero3-copy-height) + var(--hero3-media-height) + 42px);
    min-height: calc(var(--hero3-copy-height) + var(--hero3-media-height) + 42px);
    max-height: calc(var(--hero3-copy-height) + var(--hero3-media-height) + 42px);
    grid-template-rows: var(--hero3-copy-height) var(--hero3-media-height);
    align-items: stretch;
  }
  .hero-concept-3 .hero3-copy {
    grid-row: 1;
  }
  .hero-concept-3 .hero3-media {
    grid-row: 2;
  }
}

@media (max-width: 700px) {
  .hero-concept-3 {
    --hero3-copy-height: 330px;
    --hero3-card-height: 390px;
    --hero3-media-height: 420px;
    min-height: calc(96px + var(--hero3-copy-height) + 30px + var(--hero3-media-height) + 42px);
  }
  .hero-concept-3 .hero3-shell {
    height: calc(var(--hero3-copy-height) + var(--hero3-media-height) + 30px);
    min-height: calc(var(--hero3-copy-height) + var(--hero3-media-height) + 30px);
    max-height: calc(var(--hero3-copy-height) + var(--hero3-media-height) + 30px);
    grid-template-rows: var(--hero3-copy-height) var(--hero3-media-height);
    gap: 30px;
  }
  .hero-concept-3 .hero3-copy {
    height: var(--hero3-copy-height) !important;
    min-height: var(--hero3-copy-height) !important;
    max-height: var(--hero3-copy-height) !important;
    justify-content: flex-start;
    padding-top: 0;
  }
  .hero-concept-3 .hero3-copy h1 {
    min-height: 3.42em;
    max-height: 3.42em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
  }
  .hero-concept-3 .hero3-copy p {
    min-height: 3.6em;
    max-height: 3.6em;
    margin-bottom: 14px;
  }
  .hero-concept-3 .hero3-media,
  .hero-concept-3 .hero3-deck {
    height: var(--hero3-media-height) !important;
    min-height: var(--hero3-media-height) !important;
    max-height: var(--hero3-media-height) !important;
  }
  .hero-concept-3 .hero3-deck-card,
  .hero-concept-3 .hero3-deck-card.is-front,
  .hero-concept-3 .hero3-deck-card.is-next,
  .hero-concept-3 .hero3-deck-card.is-after,
  .hero-concept-3 .hero3-deck-card.is-hidden-card {
    height: var(--hero3-card-height) !important;
    min-height: var(--hero3-card-height) !important;
    max-height: var(--hero3-card-height) !important;
  }
  .hero-concept-3 .hero3-dots {
    bottom: 0 !important;
  }
}

/* ===== Unified public navigation =====
   One visual treatment for every public route. Markup lives only in
   templates/partials/public-header.html and public-footer.html. */
.site-header,
.site-header.scrolled,
body:has(.hero-concept-3) .site-header,
body:has(.hero-concept-3) .site-header.scrolled {
  background: #0d223c !important;
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(1, 9, 33, 0.16) !important;
}
.site-header .brand img,
body:has(.hero-concept-3) .site-header .brand img {
  filter: none !important;
}
.main-nav a,
body:has(.hero-concept-3) .main-nav a {
  color: #fff !important;
}

@media (max-width: 900px) {
  .main-nav {
    background: #0d223c !important;
  }
}

/* Home services CTA + success partners */
.services-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.services-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(177, 32, 39, 0.22);
  background: #fff;
  color: var(--red);
  box-shadow: 0 10px 25px rgba(1, 9, 33, 0.06);
}
.services-more-btn:hover {
  background: var(--red);
  color: #fff;
}
.partner-brands-section {
  padding: 58px 0;
  background: #f8f9fb;
  border-block: 1px solid #edf0f4;
  overflow: hidden;
}
.partner-brands-heading {
  text-align: center;
  margin-bottom: 28px;
}
.partner-brands-heading span {
  display: block;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 7px;
}
.partner-brands-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(24px, 3vw, 34px);
}
.brand-logo-marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.brand-logo-marquee:not(.is-static) {
  direction: ltr;
}
.brand-logo-track {
  display: flex;
  width: max-content;
  animation: linkBrandMarquee 28s linear infinite;
  will-change: transform;
}
.brand-logo-marquee:hover .brand-logo-track {
  animation-play-state: paused;
}
.brand-logo-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 18px;
  padding-right: 18px;
  direction: rtl;
}
.brand-logo-card {
  width: 180px;
  height: 112px;
  padding: 14px 18px;
  border: 1px solid #e4e8ee;
  border-radius: 16px;
  background: #fff;
  display: grid;
  place-items: center;
  gap: 6px;
  box-shadow: 0 8px 24px rgba(1, 9, 33, 0.04);
}
.brand-logo-card img {
  display: block;
  width: 100%;
  height: 62px;
  object-fit: contain;
  filter: grayscale(0.08);
}
.brand-logo-card span {
  font-size: 10px;
  color: #667085;
  font-weight: 700;
  text-align: center;
}
@keyframes linkBrandMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand-logo-track {
    animation: none;
  }
}
@media (max-width: 700px) {
  .partner-brands-section {
    padding: 42px 0;
  }
  .brand-logo-card {
    width: 145px;
    height: 96px;
  }
  .brand-logo-card img {
    height: 50px;
  }
}

/* Keep public navbar geometry identical on every route. */
.site-header .nav-wrap {
  width: min(var(--container), calc(100% - 36px)) !important;
  max-width: var(--container) !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}
@media (max-width: 900px) {
  .site-header .nav-wrap {
    width: calc(100% - 28px) !important;
  }
}

.brand-logo-marquee.is-static {
  mask-image: none;
  -webkit-mask-image: none;
}
.brand-logo-marquee.is-static .brand-logo-track {
  width: 100%;
  animation: none;
  justify-content: center;
}
.brand-logo-marquee.is-static .brand-logo-group {
  justify-content: center;
  flex-wrap: wrap;
  padding-inline-end: 0;
}

/* Shared identity surfaces. The supplied red-logo asset is rendered white without altering its geometry. */
.site-header,
.site-header.scrolled,
body:has(.hero-concept-3) .site-header,
body:has(.hero-concept-3) .site-header.scrolled {
  background: #ad222b !important;
}
.site-header .brand img,
body:has(.hero-concept-3) .site-header .brand img {
  filter: brightness(0) invert(1) !important;
}
footer {
  background: #0e141c;
  color: #fff;
}
footer .footer-brand img {
  filter: brightness(0) invert(1) !important;
}
footer .footer-grid h3,
footer .footer-grid a,
footer .footer-grid span,
footer .footer-grid p,
footer .copyright {
  color: #fff;
}
footer .footer-grid a:hover,
footer .footer-contact i {
  color: #ec1e28;
}
@media (max-width: 900px) {
  .main-nav {
    background: #ad222b !important;
  }
}

/* LINK: restore centered homepage section headings (services and projects). */
.services > .container > .section-head,
.projects > .container > .section-head {
  text-align: center;
}
.services > .container > .section-head > *,
.projects > .container > .section-head > * {
  margin-inline: auto;
}

/* Home: keep the two primary section headings centered and give the hero
   carousel a clean, non-overlapping viewport on every breakpoint. */
.services > .container > .section-head,
.projects > .container > .section-head {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  text-align: center !important;
}
.services > .container > .section-head h2,
.services > .container > .section-head p,
.projects > .container > .section-head h2,
.projects > .container > .section-head p {
  margin-inline: auto !important;
  text-align: center;
}

.hero-concept-3 {
  --hero3-card-height: 520px;
  --hero3-media-height: 580px;
}
.hero-concept-3 .hero3-media {
  min-width: 0;
  padding-bottom: 46px;
}
.hero-concept-3 .hero3-deck {
  inset: 0 58px 46px;
  width: auto;
  height: var(--hero3-card-height) !important;
  min-height: var(--hero3-card-height) !important;
  max-height: var(--hero3-card-height) !important;
  overflow: hidden;
  border-radius: 20px;
  background: #e9edf2;
  box-shadow: 0 26px 65px rgba(1, 9, 33, 0.18);
}
.hero-concept-3 .hero3-deck-card,
.hero-concept-3 .hero3-deck-card.is-front,
.hero-concept-3 .hero3-deck-card.is-next,
.hero-concept-3 .hero3-deck-card.is-after,
.hero-concept-3 .hero3-deck-card.is-hidden-card {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  border: 0;
  border-radius: 20px;
  transform: scale(1.025) !important;
  opacity: 0;
  filter: none;
  pointer-events: none;
  box-shadow: none;
  transition: none;
}
.hero-concept-3 .hero3-deck-card.is-front {
  z-index: 2;
  opacity: 1;
  transform: scale(1) !important;
  pointer-events: auto;
  animation: linkHeroSlideIn 0.48s cubic-bezier(0.22, 0.72, 0.18, 1) both;
}
@keyframes linkHeroSlideIn {
  from {
    opacity: 0.2;
    transform: scale(1.018);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.hero-concept-3 .hero3-ribbon {
  left: 3%;
  top: 16px;
  width: 94%;
  height: calc(100% - 66px);
}
.hero-concept-3 .hero3-media .hero-arrow {
  top: calc((100% - 46px) / 2);
}
.hero-concept-3 .hero3-next {
  left: 30px;
}
.hero-concept-3 .hero3-prev {
  right: 30px;
}
[dir='ltr'] .hero-concept-3 .hero3-next {
  right: 30px;
  left: auto;
}
[dir='ltr'] .hero-concept-3 .hero3-prev {
  left: 30px;
  right: auto;
}
.hero-concept-3 .hero3-dots {
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(1, 9, 33, 0.1);
}

@media (max-width: 1100px) {
  .hero-concept-3 {
    --hero3-card-height: 460px;
    --hero3-media-height: 520px;
  }
  .hero-concept-3 .hero3-deck {
    inset-inline: 54px;
  }
}

@media (max-width: 700px) {
  .hero-concept-3 {
    --hero3-card-height: 340px;
    --hero3-media-height: 394px;
  }
  .hero-concept-3 .hero3-deck {
    inset: 0 0 44px;
    height: var(--hero3-card-height) !important;
    min-height: var(--hero3-card-height) !important;
    max-height: var(--hero3-card-height) !important;
    border-radius: 16px;
  }
  .hero-concept-3 .hero3-deck-card,
  .hero-concept-3 .hero3-deck-card.is-front,
  .hero-concept-3 .hero3-deck-card.is-next,
  .hero-concept-3 .hero3-deck-card.is-after,
  .hero-concept-3 .hero3-deck-card.is-hidden-card {
    border-radius: 16px;
  }
  .hero-concept-3 .hero3-media .hero-arrow {
    top: calc((100% - 44px) / 2);
    width: 42px;
    height: 42px;
  }
  .hero-concept-3 .hero3-next {
    left: -10px;
  }
  .hero-concept-3 .hero3-prev {
    right: -10px;
  }
  [dir='ltr'] .hero-concept-3 .hero3-next {
    right: -10px;
    left: auto;
  }
  [dir='ltr'] .hero-concept-3 .hero3-prev {
    left: -10px;
    right: auto;
  }
  .hero-concept-3 .hero3-dots {
    bottom: 5px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-concept-3 .hero3-deck-card.is-front {
    animation: none;
  }
}

/* LINK 2026-10-20: restore progressive stacked hero slide queue. */
.hero-concept-3 .hero3-deck {overflow:visible; background:transparent; box-shadow:none;}
.hero-concept-3 .hero3-deck-card,
.hero-concept-3 .hero3-deck-card.is-front,
.hero-concept-3 .hero3-deck-card.is-next,
.hero-concept-3 .hero3-deck-card.is-after,
.hero-concept-3 .hero3-deck-card.is-hidden-card {
  inset:auto!important; top:0!important; width:100%!important; height:100%!important;
  transition:transform .7s cubic-bezier(.22,.72,.18,1),opacity .65s ease,filter .65s ease!important;
  animation:none!important; border-radius:18px;
}
.hero-concept-3 .hero3-deck-card.is-front {left:0!important;z-index:4;opacity:1;transform:translateX(0) scale(1)!important;pointer-events:auto;}
.hero-concept-3 .hero3-deck-card.is-next {left:0!important;z-index:3;opacity:.8;transform:translateX(-22px) translateY(12px) scale(.95)!important;}
.hero-concept-3 .hero3-deck-card.is-after {left:0!important;z-index:2;opacity:.55;transform:translateX(-42px) translateY(22px) scale(.9)!important;}
.hero-concept-3 .hero3-deck-card.is-hidden-card {left:0!important;z-index:1;opacity:0;transform:translateX(-55px) scale(.85)!important;}
[dir=ltr] .hero-concept-3 .hero3-deck-card.is-next {transform:translateX(22px) translateY(12px) scale(.95)!important;}
[dir=ltr] .hero-concept-3 .hero3-deck-card.is-after {transform:translateX(42px) translateY(22px) scale(.9)!important;}
@media(max-width:700px){.hero-concept-3 .hero3-deck-card.is-next {transform:translateX(-11px) translateY(9px) scale(.95)!important;} .hero-concept-3 .hero3-deck-card.is-after {transform:translateX(-22px) translateY(16px) scale(.9)!important;}}

/* Hero copy must grow with its approved dashboard limits at every browser zoom.
   The layout may become taller; it must never crop visitor-facing copy. */
.hero-concept-3 .hero3-shell {height:auto!important;min-height:var(--hero3-media-height);max-height:none!important;}
.hero-concept-3 .hero3-copy {height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;}
.hero-concept-3 .hero3-copy h1,
.hero-concept-3 .hero3-copy p {min-height:0!important;max-height:none!important;overflow:visible!important;display:block!important;-webkit-line-clamp:unset!important;line-clamp:unset!important;overflow-wrap:anywhere;}

/* LINK homepage network-construction loading scene (concept 5). */
.link-network-loader {
  background: linear-gradient(160deg, #f9f9fc 0%, #e9e9f0 65%, #fdfdff 100%);
  color: #172e55;
  overflow: hidden;
  grid-template-rows: 1fr auto;
  justify-items: center;
  padding: clamp(24px, 5vh, 64px) 20px max(40px, env(safe-area-inset-bottom));
  isolation: isolate;
}
.link-network-loader::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.94) 0%, transparent 64%),
    repeating-linear-gradient(90deg, transparent 0 59px, rgba(173,34,43,.045) 60px 61px),
    repeating-linear-gradient(0deg, transparent 0 59px, rgba(173,34,43,.045) 60px 61px);
  z-index: -1;
}
.link-network-loader__city { position: absolute; bottom: 0; inset-inline: 0; height: 40%; opacity: .34; pointer-events: none;
  background: linear-gradient(to top, rgba(173,34,43,.08), transparent),
   linear-gradient(to top, transparent 0 12%, rgba(173,34,43,.14) 12% 13%, transparent 13%),
   repeating-linear-gradient(90deg, transparent 0 9%, rgba(173,34,43,.12) 9% 9.15%, transparent 9.15% 18%);
  mask-image: linear-gradient(to top, #000, transparent 95%);
}
.link-network-loader__scene { width: min(400px, 86vw, 57vh); aspect-ratio: 1; place-self: center; position: relative; display: grid; place-items: center; margin-top: 5vh; }
.link-network-loader__network { position: absolute; inset: 0; animation: link-net-appear .65s ease-out both; }
.link-network-loader__connections { width: 100%; height: 100%; overflow: visible; }
.link-network-loader__orbit { fill: none; stroke: rgba(173,34,43,.20); stroke-width: 1.2; stroke-dasharray: 3 8; }
.link-network-loader__orbit--inner { stroke: rgba(173,34,43,.10); stroke-dasharray: 2 7; }
.link-network-loader__trace { fill: none; stroke: #ad222b; stroke-width: 1.6; stroke-dasharray: 920; stroke-dashoffset: 920; animation: link-net-draw 1.5s .12s ease-out forwards; opacity: .75; }
.link-network-loader__trace--delay { stroke-width: 1; opacity: .32; animation-delay: .35s; }
.link-network-loader__dots circle { fill: #d5293d; filter: drop-shadow(0 0 5px #e52946); opacity: 0; animation: link-net-dots .3s ease forwards; }
.link-network-loader__dots circle:nth-child(1) { animation-delay: .2s; }
.link-network-loader__dots circle:nth-child(2) { animation-delay: .36s; }
.link-network-loader__dots circle:nth-child(3) { animation-delay: .5s; }
.link-network-loader__dots circle:nth-child(4) { animation-delay: .64s; }
.link-network-loader__dots circle:nth-child(5) { animation-delay: .78s; }
.link-network-loader__dots circle:nth-child(6) { animation-delay: .92s; }
.link-network-loader__dots circle:nth-child(7) { animation-delay: 1.06s; }
.link-network-loader__dots circle:nth-child(8) { animation-delay: 1.2s; }
.link-network-loader__packet { fill: #ed2440; filter: drop-shadow(0 0 5px #ef2641); }
.link-network-loader__packet--secondary { fill: #ad222b; }
.link-network-loader img.link-network-loader__logo { position: relative; z-index: 2; width: 29%; max-width: none; height: auto; filter: brightness(0) saturate(100%) invert(14%) sepia(95%) saturate(3205%) hue-rotate(342deg) brightness(91%) contrast(98%); animation: link-net-logo .8s .25s ease both; }
.link-network-loader__device { position: absolute; width: 12%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.95); color: #ad222b; box-shadow: 0 5px 24px rgba(173,34,43,.13); font-size: clamp(11px, 3vw, 20px); opacity: 0; animation: link-net-device .42s ease forwards; }
.link-network-loader__device--wifi { top: 10%; left: 44%; animation-delay: .5s; }
.link-network-loader__device--server { top: 40%; right: 5%; animation-delay: .7s; }
.link-network-loader__device--building { bottom: 10%; left: 44%; animation-delay: .9s; }
.link-network-loader__device--shield { top: 40%; left: 5%; animation-delay: 1.1s; }
.link-network-loader__footer { width: min(280px, 76vw); text-align: center; margin-bottom: max(6vh, 25px); }
.link-network-loader__label { font-size: clamp(13px, 2.9vw, 16px); letter-spacing: .02em; margin-bottom: 15px; color: #29314c; }
.link-network-loader__progress { height: 7px; background: rgba(23,46,85,.15); border-radius: 20px; overflow: hidden; }
.link-network-loader__progress span { height: 100%; width: 100%; display: block; transform-origin: left; background: linear-gradient(90deg, #ec1e28, #ad222b); border-radius: inherit; animation: link-net-progress 1.6s cubic-bezier(.2,.5,.2,1) both; }
@keyframes link-net-draw { to { stroke-dashoffset: 0; } }
@keyframes link-net-dots { to { opacity: 1; } }
@keyframes link-net-appear { from { transform: scale(.93); opacity: .3; } to { transform: scale(1); opacity: 1; } }
@keyframes link-net-device { from { opacity: 0; transform: translateY(9px) scale(.8); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes link-net-logo { from { transform: scale(.82); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes link-net-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
 .link-network-loader__network, .link-network-loader__trace, .link-network-loader__dots circle,
 .link-network-loader__device, .link-network-loader img.link-network-loader__logo,
 .link-network-loader__progress span { animation-duration: .01ms; animation-delay: 0ms; }
 .link-network-loader__packet { display: none; }
}

/* Home services: approved mobile-only single-card carousel concept. */
.home-services-carousel-controls { display: none; }
@media (max-width: 600px) {
  .services { scroll-margin-top: 72px; }
  .services .section-head { margin-bottom: 22px; }
  .home-services-carousel { position: relative; width: 100%; overflow: hidden; }
  .home-services-carousel .services-grid {
    display: flex;
    width: 100%;
    gap: 12px;
    padding: 5px 0 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .home-services-carousel .services-grid::-webkit-scrollbar { display: none; }
  .home-services-carousel .service-card {
    flex: 0 0 calc(100% - 46px);
    min-width: calc(100% - 46px);
    min-height: 258px;
    padding: 35px 24px 28px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(1, 9, 33, .06);
  }
  .home-services-carousel .service-card > i {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 16px;
    background: rgba(177, 32, 39, .075);
    font-size: 40px;
  }
  .home-services-carousel .service-card h3 { margin-bottom: 9px; font-size: 19px; line-height: 1.45; }
  .home-services-carousel .service-card p { max-width: 250px; font-size: 12.5px; line-height: 1.75; }
  .home-services-carousel-controls {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
  }
  .home-services-carousel-arrow {
    position: absolute;
    z-index: 3;
    top: 112px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff4f5;
    color: var(--red);
    box-shadow: 0 5px 16px rgba(1, 9, 33, .10);
    font-size: 17px;
    cursor: pointer;
  }
  .home-services-carousel-prev { right: 8px; }
  .home-services-carousel-next { left: 8px; }
  .home-services-carousel-arrow:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
  .home-services-carousel-dots { display: flex; align-items: center; justify-content: center; gap: 8px; }
  .home-services-carousel-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #dfe2e7;
    cursor: pointer;
    transition: width .25s ease, background-color .25s ease;
  }
  .home-services-carousel-dots button.is-active { width: 22px; border-radius: 10px; background: var(--red); }
  .services-more { margin-top: 18px; }
}

/* LINK contact request: required indicators and non-blocking success toast. */
.link-required-mark { color: #c8102e; font-weight: 800; }
.link-request-toast {
  position: fixed; z-index: 99999; inset-block-start: max(24px, env(safe-area-inset-top));
  left: 50%; transform: translate(-50%, -16px);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  max-width: min(92vw, 460px); min-width: min(90vw, 320px);
  padding: 16px 22px; border-radius: 14px;
  background: #111; color: #fff; box-shadow: 0 18px 44px rgba(0,0,0,.24);
  font-weight: 700; font-size: 14px; text-align: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.link-request-toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.link-request-toast-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%;
  background: #8bd3a4; color: #083d23; font-size: 15px;
}
