@font-face {
  font-family: "DM Sans";
  src: url("/assets/type/dm-sans-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

@font-face {
  font-family: Tajawal;
  src: url("/assets/type/tajawal-arabic-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0020-0040, U+005B-0060, U+007B-007E, U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
  font-family: Tajawal;
  src: url("/assets/type/tajawal-arabic-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0020-0040, U+005B-0060, U+007B-007E, U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
  font-family: Tajawal;
  src: url("/assets/type/tajawal-arabic-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0020-0040, U+005B-0060, U+007B-007E, U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC;
}

:root {
  color: #292423;
  background: #f7f4ef;
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
  --paper: #f7f4ef;
  --ink: #292423;
  --muted: #5c5350;
  --film: #292423;
  --light: #f9f5ef;
  --accent: #e5d3e9;
  --gutter: clamp(20px, 5vw, 76px);
  --grid-gap: clamp(16px, 2.1vw, 36px);
  --type-display: clamp(2.35rem, 1.03rem + 3.85vw, 5.25rem);
  --type-section: clamp(1.875rem, 1rem + 2.2vw, 3.5rem);
  --type-point: clamp(1.25rem, 1.09rem + 0.42vw, 1.55rem);
  --type-feature: clamp(1.4rem, 1.15rem + 0.85vw, 1.9rem);
  --type-lead: clamp(1.0625rem, 0.95rem + 0.38vw, 1.25rem);
  --type-body: 1.075rem;
  --type-label: 0.8125rem;
  --weight-display: 550;
  --weight-section: 570;
  --weight-emphasis: 620;
  --weight-label: 600;
  --leading-display: 1.04;
  --leading-section: 1.12;
  --leading-point: 1.24;
  --leading-lead: 1.55;
  --leading-body: 1.65;
}

:root[lang="ar"] {
  font-family: Tajawal, "DM Sans", sans-serif;
  --type-display: clamp(2.125rem, 1.18rem + 3.05vw, 4.375rem);
  --type-section: clamp(1.9rem, 1.05rem + 2.3vw, 3.4rem);
  --type-point: clamp(1.25rem, 1.13rem + 0.36vw, 1.5rem);
  --type-feature: clamp(1.55rem, 1.2rem + 0.85vw, 2.05rem);
  --type-lead: clamp(1.125rem, 1rem + 0.38vw, 1.275rem);
  --type-body: 1.125rem;
  --type-label: 0.9375rem;
  --weight-display: 700;
  --weight-section: 700;
  --weight-emphasis: 500;
  --weight-label: 500;
  --leading-display: 1.16;
  --leading-section: 1.22;
  --leading-point: 1.36;
  --leading-lead: 1.64;
  --leading-body: 1.7;
}
:root[lang="ar"] :lang(en) { font-family: "DM Sans", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: 0.3em; }
img { display: block; max-width: 100%; }
::selection { background: #d8c5df; color: #292423; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

.skip-link {
  position: fixed;
  z-index: 5;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  padding: 0.65rem 0.95rem;
  background: var(--light);
  color: var(--ink);
  transform: translateY(calc(-100% - 20px));
}

.skip-link:focus { transform: none; }

.masthead {
  --masthead-gutter: var(--gutter);
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  container: masthead / inline-size;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px var(--grid-gap);
  padding: 18px var(--masthead-gutter);
  direction: ltr;
  color: var(--light);
}

.brand {
  display: inline-flex;
  flex: 0 1 clamp(13.5rem, 19vw, 16.5rem);
  align-items: center;
  min-width: 0;
  min-height: 44px;
}

.brand img { width: 100%; height: auto; }

.masthead .brand {
  grid-column: 2;
  grid-row: 1;
  width: min(38vw, clamp(11rem, 17.5vw, 15rem));
}

.masthead-controls {
  display: flex;
  grid-column: 3;
  grid-row: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

:is(.language-switch, .menu-toggle) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--light);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 400;
  text-decoration: none;
}

.menu-toggle {
  position: relative;
  gap: 0.65em;
  padding: 0 0 0 14px;
  cursor: pointer;
}

.menu-toggle[hidden],
.menu-toggle[aria-expanded="false"]:not([hidden]) + .site-nav { display: none; }

.menu-toggle::before {
  content: "";
  position: absolute;
  left: 0;
  width: 1px;
  height: 1em;
  background: rgb(249 245 239 / 37%);
}

.language-switch {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  padding: 0 4px;
}

.language-short { display: none; }
[dir="rtl"] .menu-toggle span:first-child { font-size: 1rem; }

.language-switch:hover, .menu-toggle:hover span:first-child { text-decoration: underline; }
.menu-toggle:focus-visible, .language-switch:focus-visible { outline-offset: 2px; }

.site-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  padding: 12px clamp(16px, 2vw, 24px);
  border-radius: 12px;
  background: #f8f3f0;
  box-shadow: 0 12px 32px rgb(21 12 17 / 17%);
  color: #392c38;
}

.menu-toggle[aria-expanded="true"] + .site-nav {
  position: absolute;
  z-index: 1;
  top: calc(100% - 4px);
  right: var(--masthead-gutter);
  width: min(18rem, calc(100% - 2 * var(--masthead-gutter)));
  max-height: calc(100vh - 100%);
  max-height: calc(100dvh - 100%);
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

.nav-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-block: 0.35em;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-nav a:hover, .nav-links [aria-current="location"] { text-decoration: underline; }
.nav-links [aria-current="location"], .site-nav .masthead-contact { color: #694963; }
.site-nav a:focus-visible { outline-offset: -2px; }

.site-nav .masthead-contact {
  gap: 0.6em;
  margin-block-start: 0.35rem;
  border-top: 1px solid #d9cbd4;
}

.footer .footer-contact {
  gap: 0.72em;
  border-radius: 999px;
  padding-inline: 1em;
  background: #f1e7ed;
  color: #392637;
  font-weight: 620;
}

.footer-contact:focus-visible { outline-color: var(--light); outline-offset: 3px; }

.masthead:has(.menu-toggle[hidden]) {
  position: relative;
  background: var(--film);
}

.masthead-controls:has(.menu-toggle[hidden]) { display: contents; }
.menu-toggle[hidden] + .site-nav { grid-column: 1 / -1; grid-row: 2; }

.menu-icon, .menu-icon::after {
  display: block;
  width: 14px;
  height: 1px;
  border-radius: 1px;
  background: currentColor;
}

.menu-icon { position: relative; transform: translateY(-2px); }
.menu-icon::after { content: ""; transform: translateY(5px); }
[aria-expanded="true"] .menu-icon { transform: rotate(45deg); }
[aria-expanded="true"] .menu-icon::after { transform: rotate(90deg); }

@container masthead (width < 31rem) {
  .masthead-controls { display: contents; }

  .language-switch { grid-column: 1; justify-self: start; }

  .menu-toggle {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    padding: 0;
  }

  .menu-toggle::before { display: none; }
}

@container masthead (width < 18rem) {
  .language-long { display: none; }
  .language-short { display: inline; }

  .menu-toggle span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  align-items: center;
  min-height: max(520px, calc(100svh - 10.25rem));
  padding: 94px var(--gutter) 70px;
  background: var(--film);
  color: var(--light);
}

.hero-media,
.hero-media::after,
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-media { z-index: -1; }
.hero-media img {
  left: 0;
  right: auto;
  object-fit: cover;
  object-position: 44% 24%;
}

@supports (mask-image: linear-gradient(#000, transparent)) {
  .hero-media img {
    width: min(100%, max(68vw, calc((100svh - 8rem) * 1.62)));
    mask-image: linear-gradient(
      90deg,
      #000 51%,
      rgb(0 0 0 / 97%) 60%,
      rgb(0 0 0 / 87%) 69%,
      rgb(0 0 0 / 67%) 77%,
      rgb(0 0 0 / 39%) 85%,
      rgb(0 0 0 / 16%) 92%,
      rgb(0 0 0 / 4%) 97%,
      transparent
    );
  }
}
.hero-media::after {
  content: "";
  background:
    linear-gradient(
      180deg,
      transparent 64%,
      rgb(41 36 35 / 5%) 72%,
      rgb(41 36 35 / 20%) 80%,
      rgb(41 36 35 / 48%) 87%,
      rgb(41 36 35 / 77%) 93%,
      rgb(41 36 35 / 96%) 98%,
      var(--film)
    ),
    linear-gradient(180deg, rgb(25 21 20 / 62%), transparent 18%),
    linear-gradient(
      90deg,
      transparent 23%,
      rgb(35 29 28 / 4%) 30%,
      rgb(35 29 28 / 16%) 37%,
      rgb(35 29 28 / 36%) 44%,
      rgb(35 29 28 / 58%) 51%,
      rgb(35 29 28 / 75%) 58%,
      rgb(35 29 28 / 85%) 65%,
      rgb(35 29 28 / 91%) 74%,
      rgb(35 29 28 / 94%) 86%,
      rgb(35 29 28 / 96%)
    );
}

.hero-copy {
  grid-column: 7 / -1;
  max-width: 46rem;
}

.hero h1 {
  font-size: var(--type-display);
  font-weight: var(--weight-display);
  line-height: var(--leading-display);
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 42ch;
  margin-block-start: 0.8rem;
  color: #f0e7e3;
  font-size: var(--type-lead);
  line-height: var(--leading-lead);
  text-wrap: balance;
}

.hero-copy .hero-role {
  max-width: none;
  margin-block-start: 1.2rem;
  color: var(--accent);
  font-size: 1rem;
  font-weight: var(--weight-emphasis);
  line-height: 1.4;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  width: fit-content;
  color: inherit;
  font-size: 1rem;
  font-weight: var(--weight-emphasis);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.hero .arrow-link { margin-block-start: 1rem; color: var(--accent); }
.arrow {
  position: relative;
  flex: 0 0 auto;
  width: 0.78em;
  height: 0.78em;
}

.arrow::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 0.58em;
  height: 0.58em;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
}

.arrow::after {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 1em;
  height: 1px;
  background: currentColor;
  transform: rotate(-45deg);
  transform-origin: right center;
}

.footer a:hover { text-decoration: underline; }
.arrow-link:hover { text-decoration-thickness: 2px; }

.wrap {
  width: calc(100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section { padding-block: clamp(66px, 8.4vw, 124px); }
.section-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
}

.section-intro {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-columns: subgrid;
  column-gap: var(--grid-gap);
}

.section-intro > .section-label { grid-column: 1 / -1; }
.section-intro h2 { grid-column: 1 / 8; }

.section h2 {
  font-size: var(--type-section);
  font-weight: var(--weight-section);
  letter-spacing: -0.035em;
  line-height: var(--leading-section);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.section h3, .service-list dt {
  font-size: var(--type-point);
  font-weight: var(--weight-emphasis);
  letter-spacing: -0.02em;
  line-height: var(--leading-point);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.section p {
  color: var(--muted);
  font-size: var(--type-body);
  line-height: var(--leading-body);
  text-wrap: pretty;
}

.section-intro > p:not(.section-label) {
  grid-column: 9 / -1;
  align-self: center;
  max-width: 46ch;
}
.section .section-label {
  margin-block-end: 0.65rem;
  color: var(--muted);
  font-size: var(--type-label);
  font-weight: var(--weight-label);
  letter-spacing: 0.055em;
  line-height: 1.35;
  text-transform: uppercase;
}

.ways {
  container: ways / inline-size;
  padding-block: clamp(10px, 1.25vw, 20px) clamp(36px, 6vw, 80px);
  background: var(--film);
  color: var(--light);
}

.ways h2 { font-size: clamp(1.875rem, 1.25rem + 1.65vw, 2.85rem); }
.offer-grid {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto 1fr;
  column-gap: var(--grid-gap);
  margin-block-start: clamp(14px, 1.9vw, 28px);
}

.offer-grid article {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  border-top: 1px solid rgb(249 245 239 / 28%);
  padding-block: 14px 4px;
  padding-inline-end: clamp(8px, 1.45vw, 20px);
}

.offer-grid h3 { font-size: clamp(1rem, 2.85cqi, var(--type-point)); }
.offer-grid p { max-width: 44ch; margin-block-start: 0.55rem; color: #f0e7e3; }

@container ways (width >= 66rem) {
  .ways > .wrap {
    display: grid;
    grid-template-columns: minmax(max-content, 27%) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 3vw, 52px);
  }

  :root[lang="ar"] .ways > .wrap {
    grid-template-columns: max-content minmax(0, 1fr);
  }

  .ways h2 {
    font-size: clamp(2.25rem, 4.15vw, 4.5rem);
    white-space: nowrap;
  }

  .offer-grid { margin-block-start: 0; }

  .offer-grid article {
    border-top: 0;
    padding: 0;
  }
}

.business .section-intro {
  display: block;
  grid-column: 1 / 6;
  align-self: start;
}

.business .section-intro > p:not(.section-label),
.about .section-intro > p:not(.section-label) { margin-block-start: 1rem; }

.service-list { grid-column: 7 / -1; min-width: 0; }

.service-list > div {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 8px var(--grid-gap);
  border-top: 1px solid #cfc4c2;
  padding-block: clamp(17px, 2vw, 30px) clamp(10px, 1.5vw, 23px);
}

.service-list > div:target { border-top-color: #725278; }
.service-list dd { max-width: 45ch; }
.service-list .arrow-link { color: #5f4063; margin-block-start: 0.25em; }

.feature {
  border-radius: 16px;
  padding: clamp(24px, 3.35vw, 54px);
}

.feature > div { min-width: 0; }
.feature h3 { font-size: var(--type-feature); }
.feature h3 + p, .about-copy h3 + p { margin-block-start: 0.65rem; }

.business .feature {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 14px var(--grid-gap);
  margin-block-start: clamp(28px, 4vw, 58px);
  background: #eee5ee;
  color: #372636;
}

.feature-detail { max-width: 54ch; }

.professionals { background: #efe9ec; }

.professionals :is(.feature, .service-list) { margin-block-start: clamp(26px, 4vw, 58px); }

.professionals .feature {
  display: flex;
  grid-column: 1 / 6;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(36px, 6vw, 104px);
  background: #3d2c3c;
  color: var(--light);
}

.professionals .feature h3 {
  font-size: clamp(1.65rem, 1.18rem + 1.25vw, 2.35rem);
  font-weight: var(--weight-section);
}

.professionals .feature p { color: #f0e4ee; max-width: 44ch; }
.professionals .feature .section-label { color: var(--accent); }

.professionals .feature > .arrow-link {
  width: 100%;
  min-height: 44px;
  border-top: 1px solid #8a7486;
  padding-block-start: 0.75em;
  color: var(--accent);
}

.about .section-grid { align-items: start; align-content: center; }
.about .section-intro {
  display: block;
  grid-column: 7 / -1;
  grid-row: 1;
  align-self: end;
  padding-block-end: clamp(18px, 2.5vw, 36px);
}

.about-portrait {
  grid-column: 1 / 6;
  grid-row: 1 / span 2;
  width: min(100%, 560px);
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #ded2c3;
}

.about-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 5.1;
  object-fit: cover;
  object-position: 50% 17%;
}

.about-copy {
  grid-column: 7 / -1;
  grid-row: 2;
  align-self: start;
  border-top: 1px solid #cfc4c2;
  padding-block-start: clamp(16px, 2vw, 32px);
}

.about-copy p { max-width: 52ch; }

.work, .footer { background: #302631; color: var(--light); }
.work h2 { grid-column: 1 / 4; }

.work-list {
  display: grid;
  grid-column: 5 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 3.4vw, 50px) var(--grid-gap);
}

.work-list > article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-top: 1px solid #796b77;
  padding-block-start: 16px;
  scroll-margin-block-start: 24px;
}

.work-list > article:target { border-top-color: var(--accent); }
.work-list p { max-width: 38ch; margin-block: 0.55rem 0.35rem; color: #f1e6ee; }
.work-list .arrow-link { margin-block-start: auto; color: var(--accent); }

.footer { font-size: 0.875rem; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
  border-top: 1px solid #796b77;
  padding-block: 1rem;
}

.footer a { display: inline-flex; gap: 0.55rem; align-items: center; min-height: 44px; text-decoration: none; }

[dir="rtl"] .site-nav { direction: rtl; }
[dir="rtl"] .hero-copy { grid-column: 1 / 7; }
[dir="rtl"] .site-nav a { font-size: 1.0625rem; }
[dir="rtl"] :is(.hero-copy .hero-role, .arrow-link) { font-size: 1.0625rem; }
[dir="rtl"] :is(h1, h2, h3, .service-list dt, .section .section-label) { letter-spacing: normal; }
[dir="rtl"] .hero-copy p:not(.hero-role) { max-width: 29rem; }
[dir="rtl"] :is(.arrow-link, .masthead-contact, .footer-contact) .arrow { transform: scaleX(-1); }

@media (min-width: 901px) and (max-width: 1080px) {
  .hero-media img { object-position: 39% 24%; }
}

@media (max-width: 1024px) {
  .masthead { gap: 8px 14px; }
}

@media (max-width: 900px), (max-width: 1080px) and (orientation: portrait) {
  .masthead { position: relative; padding-block: 9px; background: var(--film); }
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 0 0 12px;
  }
  .hero-media { position: relative; z-index: 0; height: clamp(231px, 70vw, 386px); }
  [dir="rtl"] .hero-media { height: clamp(185px, 60vw, 348px); }
  .hero-media img { width: 100%; mask-image: none; object-position: 12% 36%; }
  .hero-media::after {
    background: linear-gradient(
      180deg,
      transparent 48%,
      rgb(41 36 35 / 3%) 57%,
      rgb(41 36 35 / 12%) 66%,
      rgb(41 36 35 / 30%) 74%,
      rgb(41 36 35 / 55%) 82%,
      rgb(41 36 35 / 80%) 90%,
      rgb(41 36 35 / 96%) 97%,
      var(--film)
    );
  }
  .hero-copy { margin: 0; padding: 12px var(--gutter) 18px; }
  .hero h1 { max-width: 16ch; }
  [dir="rtl"] .hero h1 { max-width: 22ch; }
  .desktop-break { display: none; }
  .hero-copy .hero-role { margin-block-start: 0.85rem; }
  .hero .arrow-link { margin-block-start: 0.65rem; }
}

@media (max-width: 900px) {
  .section-grid { grid-template-columns: minmax(0, 1fr); }
  .section-grid > :is(.section-intro, .service-list, .feature, h2, .about-portrait, .about-copy, .work-list) {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .section-intro { display: block; }
  .section-intro > p:not(.section-label) { margin-block-start: 1rem; }
  .business .service-list, .work-list, .about-copy { margin-block-start: clamp(26px, 4vw, 42px); }
  .about-portrait { max-width: 480px; }
}

@media (max-width: 670px) {
  .service-list > div, .business .feature, .work-list { grid-template-columns: minmax(0, 1fr); }

  .offer-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(69vw, 21rem);
    overflow-x: auto;
    padding: 4px 5px 9px;
    scroll-padding-inline: 5px;
    scroll-snap-type: inline proximity;
    scrollbar-width: thin;
    scrollbar-color: #7d6b69 transparent;
  }
  .offer-grid article { scroll-snap-align: start; }
  .offer-grid h3 { font-size: var(--type-point); }
}

@media (max-width: 359px) {
  .masthead { --masthead-gutter: 12px; column-gap: 8px; }
  .hero-media { height: 52vw; }
  [dir="rtl"] .hero-media { height: 46vw; }
  [dir="rtl"] .hero h1 { font-size: 1.95rem; }
  .hero-copy { padding-block: 8px 10px; }
  .ways { padding-block-start: 8px; }
  .offer-grid { margin-block-start: 10px; }
}
