:root {
  --blue: #2d5da7;
  --blue-dark: #0a365f;
  --ink: #14191e;
  --muted: #68727d;
  --line: #e2e6ea;
  --soft: #eef3f7;
  --warm: #f2eeee;
  --sand: #f5f0e8;
  --project-muted: #4a4846;
  --status-delivered: #c44e3f;
  --status-active: #c8d8f2;
  --white: #ffffff;
  --max-width: 1180px;
  --desktop-section-space: 104px;
  --desktop-page-gutter: 54px;
  --shadow: 0 22px 55px rgba(24, 42, 64, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: none; }
body::-webkit-scrollbar { display: none; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Tajawal", system-ui, sans-serif;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container { width: 100%; margin-inline: auto; padding-inline: var(--desktop-page-gutter); }
.section { padding: var(--desktop-section-space) 0; scroll-margin-top: 82px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  color: var(--white);
  background: transparent;
}
.nav-wrap { height: 88px; display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.site-header .brand { flex: 0 0 149px; width: 149px; height: 118px; align-items: flex-start; overflow: visible; }
.header-logo { width: 149px; height: 118px; max-width: none; object-fit: contain; }
.brand { display: inline-flex; align-items: center; gap: 10px; line-height: 1; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 2px solid currentColor;
  border-radius: 5px 12px 5px 12px;
  font-size: 13px;
  font-weight: 800;
}
.brand-copy { display: grid; gap: 2px; font-size: 12px; letter-spacing: 0.02em; }
.brand-copy strong { font-size: 15px; }
.primary-nav { display: flex; align-items: center; gap: 40px; font-size: 16px; font-weight: 400; }
.primary-nav a { position: relative; padding: 23px 0 20px; opacity: 0.84; }
.primary-nav a::after {
  position: absolute;
  content: "";
  inset: auto 0 18px;
  width: 0;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
  transition: width 180ms ease;
}
.primary-nav a:hover, .primary-nav a:focus-visible, .primary-nav a.active { opacity: 1; }
.primary-nav a.active { font-weight: 700; }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { width: 100%; }
.menu-toggle { display: none; }

.hero { height: 100svh; min-height: 720px; overflow: hidden; background: var(--blue); }
.hero > img { width: 100%; height: 100%; object-fit: cover; }
.hero > .hero-desktop-media { object-position: center top; }
.hero-wordmark,
.hero-responsive-media { display: none; }

.split-layout { display: grid; grid-template-columns: 0.93fr 1.07fr; align-items: center; gap: 90px; }
.section-copy { max-width: 560px; }
.eyebrow { margin: 0 0 8px; color: var(--blue); font-size: 14px; font-weight: 700; }
.section h2 { margin: 0 0 18px; font-size: clamp(34px, 4vw, 54px); line-height: 1.15; letter-spacing: -0.025em; }
.section-copy > p:not(.eyebrow), .section-heading > p:not(.eyebrow) { color: var(--muted); }
.image-frame { margin: 0; position: relative; }
.image-frame::before {
  position: absolute;
  content: "";
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border: 1px solid rgba(45, 93, 167, 0.25);
}
.image-frame img { width: 100%; aspect-ratio: 1.42; object-fit: cover; box-shadow: var(--shadow); }

.about .split-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(24px, 3vw, 48px);
}
.about .section-copy { align-self: center; max-width: none; }
.about .section-copy > p:not(.eyebrow) { margin-block: 0 12px; font-size: 15px; line-height: 1.9; }
.about h2 { margin-bottom: 16px; font-size: clamp(32px, 3vw, 44px); }
.about-media { height: 100%; }
.about-media::before { display: none; }
.about-media img {
  height: 100%;
  min-height: 300px;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: none;
}

.process { padding: 96px 0 106px; background: var(--soft); }
.process-grid { display: block; }
.process-content { width: 50%; margin-left: auto; }
.process .section-heading {
  position: static;
  width: 100%;
  max-width: 380px;
  margin: 0 0 0 auto;
  text-align: right;
}
.process h2 { margin-bottom: 10px; color: #2f3d2f; font-size: 44px; }
.process .section-heading > p {
  margin: 0;
  color: #727a7e;
  font-size: 14px;
  line-height: 1.65;
}
.section-heading { align-self: start; position: sticky; top: 110px; }
.steps {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 32px 0 0 auto;
  padding: 0;
  list-style: none;
}
.steps::before {
  position: absolute;
  content: "";
  top: 62px;
  right: 11px;
  bottom: 62px;
  width: 1px;
  background: #aeb7bc;
}
.process .steps li {
  position: relative;
  display: flex;
  align-items: center;
  height: 124px;
  gap: 0;
  padding: 0 45px 0 0;
  border: 0;
}
.process .steps li::before {
  position: absolute;
  content: "";
  top: 50%;
  right: 0;
  z-index: 1;
  width: 23px;
  height: 23px;
  border: 2px solid #344234;
  border-radius: 50%;
  background: radial-gradient(circle, #344234 0 3px, transparent 4px), var(--soft);
  transform: translateY(-50%);
}
.steps h3 { margin: 0; color: #303a35; font-size: 21px; font-weight: 400; line-height: 1.5; }

.section-heading.compact { position: static; margin-bottom: 42px; }
.section-heading.compact h2 { margin-bottom: 0; }
.services .section-heading.compact { margin-bottom: 24px; }
.services .section-heading h2 { font-size: 34px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.services-grid article {
  min-height: 278px;
  padding: 42px 34px;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 220ms ease;
}
.services-grid article:hover { background-color: #eef5ff; }
.services-grid h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.4; }
.services-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }

.projects {
  padding: 80px 0 110px;
  background: var(--sand);
}
.projects .container { padding-inline: clamp(54px, 5.55vw, 80px); }
.projects .section-heading.compact { margin-bottom: 32px; }
.project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.project-card { min-width: 0; }
.project-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 5;
  margin-bottom: 15px;
  object-fit: cover;
  border-radius: 6px;
  background: #ece5da;
}
.project-photo.is-empty {
  border: 1px solid rgba(20, 25, 30, 0.07);
  background: #ece5da;
}
.project-title {
  margin: 0 0 9px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
}
.project-desc {
  margin: 0 0 23px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--project-muted);
}
.project-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.project-status {
  padding: 7px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}
.project-status.is-delivered { color: var(--white); background: var(--status-delivered); }
.project-status.is-active { color: var(--ink); background: var(--status-active); }
.project-arrow {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--ink);
  background: var(--white);
  border-radius: 50%;
}

.contact {
  overflow: hidden;
  padding: 172px 0 142px;
  background: var(--white);
}
.contact-panel {
  position: relative;
  min-height: 282px;
  border-radius: 7px;
  color: var(--white);
  background: linear-gradient(90deg, #0a529d 0%, #063765 52%, #000000 100%);
}
.contact-person {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 0;
  width: clamp(260px, 23vw, 332px);
  max-width: none;
}
.contact-content {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 282px;
  padding: 50px 46px 36px;
}
.contact-panel h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  letter-spacing: 0;
}
.contact-panel h2 strong { font-weight: 800; }
.contact-details {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
  width: calc(100% - 300px);
  margin-right: auto;
  margin-left: 0;
}
.contact-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--white);
  direction: rtl;
}
.contact-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0a5eb5;
  transition: transform 180ms ease, background 180ms ease;
}
.contact-icon img { width: 20px; max-height: 21px; filter: brightness(0) invert(1); }
.contact-meta { display: grid; min-width: 0; line-height: 1.45; text-align: right; }
.contact-meta > span { font-size: clamp(12px, 0.95vw, 14px); }
.contact-meta strong { overflow-wrap: break-word; font-size: clamp(12px, 1vw, 15px); font-weight: 400; }
.contact-meta strong[dir="ltr"] { white-space: nowrap; overflow-wrap: normal; }
.contact-item:is(a):hover .contact-icon,
.contact-item:is(a):focus-visible .contact-icon { background: #1475d4; transform: translateY(-2px); }

.site-footer {
  padding: 68px 0 154px;
  color: var(--ink);
  background: var(--white);
}
.footer-grid {
  display: grid;
  grid-template-columns: 0.75fr 1fr 1.2fr 1.2fr;
  align-items: start;
  gap: clamp(32px, 4vw, 72px);
}
.footer-logo-link {
  position: relative;
  display: block;
  width: 182px;
  height: 81px;
  margin-top: 64px;
  overflow: hidden;
}
.footer-logo {
  position: absolute;
  top: -61px;
  left: -24px;
  width: 216px;
  height: 213px;
  max-width: none;
}
.footer-column h2 {
  margin: 0 0 15px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}
.footer-column > a:not(.footer-contact-item),
.footer-services > span {
  display: block;
  width: fit-content;
  margin: 5px 0;
  color: #44505c;
  font-size: 14px;
  line-height: 1.7;
}
.footer-column a { transition: color 180ms ease; }
.footer-column a:hover,
.footer-column a:focus-visible { color: var(--blue); }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin: 9px 0;
  color: #44505c;
  font-size: 14px;
  line-height: 1.6;
}
.footer-contact-item img {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  object-fit: contain;
}
.footer-contact-item span { overflow-wrap: anywhere; }

@media (min-width: 901px) and (max-width: 1200px) {
  .contact-panel, .contact-content { min-height: 330px; }
  .contact-content { padding: 44px 30px 30px; }
  .contact-panel h2 {
    width: calc(100% - 280px);
    margin-right: auto;
    margin-left: 0;
    font-size: 32px;
  }
  .contact-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    width: calc(100% - 280px);
  }
  .contact-details .contact-item:last-child { grid-column: 1 / -1; max-width: 330px; }
  .contact-item { grid-template-columns: 40px minmax(0, 1fr); gap: 8px; }
  .contact-icon { width: 40px; height: 40px; }
}

@media (max-width: 900px) {
  .container { padding-inline: 24px; }
  .section { padding: 82px 0; }
  .site-header { position: absolute; }
  .nav-wrap { height: 72px; padding-inline: 33px; }
  .site-header .brand { flex-basis: 86px; width: 86px; height: 68px; margin-top: 10px; }
  .header-logo { width: 86px; height: auto; }
  .primary-nav { gap: 23px; font-size: 16px; }
  .primary-nav a { padding: 20px 0 16px; }
  .hero { position: relative; height: 100svh; min-height: 0; background: #1a3a8f; }
  .hero-desktop-media { display: none; }
  .hero > .hero-responsive-media {
    position: absolute;
    bottom: 0;
    left: -43.5vw;
    display: block;
    width: 175.4vw;
    max-width: none;
    height: auto;
    object-fit: unset;
  }
  .hero-wordmark {
    position: absolute;
    z-index: 2;
    top: 43.45%;
    left: 48.1%;
    display: block;
    color: #fff;
    font-family: "Inter", Arial, sans-serif;
    font-size: 95px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.029em;
    white-space: nowrap;
    transform: translate(-50%, -50%) rotate(51.75deg);
    transform-origin: center;
  }
  .split-layout { grid-template-columns: 1fr; gap: 55px; }
  .section-heading { position: static; }
  .projects .container { padding-inline: 24px; }
  .projects .section-heading.compact { margin-bottom: 28px; }
  .project-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; }
  .contact { padding: 88px 0; }
  .contact-panel { min-height: 310px; }
  .contact-person { display: none; }
  .contact-content { min-height: 310px; padding: 50px 30px 34px; }
  .contact-panel h2 { font-size: 34px; }
  .contact-details { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; margin: 0; }
  .contact-item { grid-template-columns: 42px minmax(0, 1fr); gap: 8px; }
  .contact-icon { width: 42px; height: 42px; }
  .contact-meta > span { font-size: 13px; }
  .contact-meta strong { font-size: 13px; }
  .site-footer { padding: 58px 0 96px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 46px 54px; }
  .footer-logo-link { align-self: center; justify-self: start; margin-top: 28px; }
}

@media (max-width: 700px) {
  .contact-panel, .contact-content { min-height: 0; }
  .contact-content { padding: 42px 26px 34px; }
  .contact-panel h2 { margin-bottom: 36px; }
  .contact-details { grid-template-columns: 1fr; gap: 12px; }
  .project-list { grid-template-columns: minmax(0, 1fr); gap: 21px; }
}

@media (max-width: 520px) {
  .container { padding-inline: 15px; }
  .section { padding: 65px 0; }
  .projects .container { padding-inline: 18px; }
  .project-photo { aspect-ratio: 366 / 264; margin-bottom: 15px; }
  .project-title { font-size: 21px; margin-bottom: 9px; }
  .project-desc { font-size: 16px; margin-bottom: 23px; }
  .nav-wrap { height: 88px; padding-inline: 20px; }
  .site-header .brand { flex-basis: 86px; width: 86px; height: 68px; margin-top: 20px; }
  .menu-toggle {
    display: grid;
    align-content: start;
    gap: 5px;
    width: 40px;
    height: 40px;
    margin-top: 30px;
    padding: 8px;
    border: 0;
    color: inherit;
    background: transparent;
  }
  .menu-toggle span { width: 24px; height: 2px; background: currentColor; transition: transform 180ms ease, opacity 180ms ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
  .primary-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 12px;
    visibility: hidden;
    opacity: 0;
    color: var(--white);
    background: rgba(26, 58, 143, 0.98);
    transition: opacity 180ms ease, visibility 180ms ease;
  }
  .primary-nav.open { visibility: visible; opacity: 1; }
  .primary-nav a { padding: 12px; font-size: 24px; }
  .primary-nav a::after { display: none; }
  .hero > .hero-responsive-media {
    top: 39.2%;
    bottom: auto;
    left: -80.2vw;
    width: 324vw;
  }
  .hero-wordmark {
    top: 39.15%;
    left: 49.3%;
    font-size: 56px;
    letter-spacing: -0.058em;
    transform: translate(-50%, -50%) rotate(54.5deg);
  }
  .section h2 { font-size: 34px; }
  .image-frame::before { display: none; }
  .contact { padding: 65px 0; overflow: hidden; }
  .contact-panel { min-height: 0; }
  .contact-content { min-height: 0; padding: 42px 24px 34px; }
  .contact-panel h2 { margin-bottom: 42px; font-size: 31px; }
  .contact-details { grid-template-columns: 1fr; gap: 12px; }
  .contact-item { grid-template-columns: 40px minmax(0, 1fr); gap: 8px; }
  .contact-icon { width: 40px; height: 40px; }
  .site-footer { padding: 48px 0 68px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-logo-link { grid-row: 1; justify-self: start; margin: 0 0 12px; }
  .footer-column h2 { margin-bottom: 12px; }
}

@media (max-width: 744px) {
  .process { padding: 58px 0 66px; }
  .process-content { width: 55%; }
  .process .section-heading { width: 70%; max-width: none; }
  .process h2 { margin-bottom: 9px; font-size: 34px; }
  .process .section-heading > p { font-size: 13px; white-space: nowrap; }
  .steps { width: 68%; max-width: none; margin-top: 34px; }
  .steps::before { top: 36px; bottom: 36px; }
  .process .steps li { height: 72px; padding-right: 42px; }
  .steps h3 { font-size: 20px; }
  .about { padding: 64px 0; }
  .about .container { padding-inline: 0; }
  .about .split-layout { min-height: 316px; gap: 10px; }
  .about .section-copy { padding: 0 18px 0 6px; }
  .about h2 { margin-bottom: 12px; font-size: 34px; }
  .about .section-copy > p:not(.eyebrow) { margin-bottom: 8px; font-size: 14px; line-height: 1.75; }
  .about-media img { min-height: 0; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid article { min-height: 182px; padding: 32px 27px; }
  .services-grid article:last-child {
    grid-column: 1 / -1;
    min-height: 182px;
    text-align: right;
  }
  .services-grid h3 { font-size: 19px; }
  .services-grid p { font-size: 12px; }
}

@media (max-width: 600px) {
  .process { padding: 48px 0 58px; }
  .process .container { padding-inline: 20px; }
  .process-content { width: 100%; }
  .process .section-heading,
  .steps { width: calc(100% - 34px); margin-right: 0; margin-left: auto; }
  .process .section-heading > p { white-space: normal; }
  .steps { margin-top: 13px; }
  .steps::before { top: 40px; bottom: 40px; }
  .process .steps li { height: 80px; }
  .about .container { padding-inline: 20px; }
  .about .split-layout { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .about .section-copy { padding: 0; }
  .about-media { height: auto; }
  .about-media img { height: auto; aspect-ratio: 1.165; }
}

@media (max-width: 402px) {
  .process h2 { font-size: 32px; }
  .about { padding: 48px 0; }
  .about h2 { margin-bottom: 10px; font-size: 32px; }
  .about .section-copy > p:not(.eyebrow) { font-size: 14px; line-height: 1.7; }
  .services { padding-top: 42px; }
  .services .section-heading.compact { margin-bottom: 17px; }
  .services .section-heading h2 { font-size: 25px; }
  .services-grid article { min-height: 146px; padding: 22px 13px; }
  .services-grid article:last-child { min-height: 146px; }
  .services-grid h3 { margin: 0 0 7px; font-size: 14px; line-height: 1.45; }
  .services-grid p { font-size: 10px; line-height: 1.65; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
