@font-face {
  font-family: "Araboto";
  src: url("./assets/Araboto_Font/Araboto Thin 400.ttf") format("truetype");
  font-weight: 100;
  font-display: swap;
}

@font-face {
  font-family: "Araboto";
  src: url("./assets/Araboto_Font/Araboto Light 400.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Araboto";
  src: url("./assets/Araboto_Font/Araboto Normal 400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Araboto";
  src: url("./assets/Araboto_Font/Araboto Medium 400.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Araboto";
  src: url("./assets/Araboto_Font/Araboto Bold 400.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Araboto";
  src: url("./assets/Araboto_Font/Araboto Black 400.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Swissra";
  src: url("./assets/Swissra-Normal.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Portfolio Western Digits";
  src: url("./assets/fonts/bHYNJqzTyl2lqvmMiRRS6Y16Es.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0030-0039;
}

:lang(ar):not(svg, svg *) {
  --portfolio-arabic-font-stack: "Portfolio Western Digits", var(--portfolio-arabic-display-font, "Araboto"), Tahoma, Arial, sans-serif;
  --framer-font-family: var(--portfolio-arabic-font-stack);
  font-family: var(--portfolio-arabic-font-stack) !important;
}

html:lang(ar) :is(h1, h2, h3, h4, h5, h6, .portfolio-metrics__value,
    .portfolio-faq__items summary, .portfolio-case-study__story > div > p, .portfolio-work-nav__panel a) {
  --portfolio-arabic-display-font: "Swissra", "Araboto";
  font-synthesis: none;
}

/* Add a little weight to Swissra Normal without switching to synthetic bold. */
html:lang(ar) :is(h1, h2, h3, h4, h5, h6) {
  -webkit-text-stroke: .018em currentColor;
}

html:lang(ar) :is(.portfolio-metrics__value, #pricing h4) {
  padding-block: .075em;
}

.portfolio-work-nav__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.portfolio-theme-toggle {
  position: relative;
  display: block;
  flex: none;
  width: 46px;
  height: 26px;
  padding: 0;
  border: 1px solid #cecece;
  border-radius: 999px;
  background: #fff;
  color: #171717;
  appearance: none;
}

.portfolio-theme-toggle__thumb {
  position: absolute;
  inset: 3px auto auto 3px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #171717;
  color: #fff;
}

.portfolio-theme-toggle__thumb svg {
  grid-area: 1 / 1;
  width: 12px;
  height: 12px;
}

.portfolio-theme-toggle[aria-checked="false"] .portfolio-theme-toggle__moon,
.portfolio-theme-toggle[aria-checked="true"] .portfolio-theme-toggle__sun {
  opacity: 0;
}

.portfolio-theme-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --night-page: #141414;
  --night-panel: #202020;
  --night-field: #292929;
  --night-text: #f4f4f4;
  --night-muted: #bababa;
  --night-line: #414141;
}

html[data-theme="dark"] body {
  --token-7fc42357-74ce-4b4f-a8ef-d71e7059a9ef: var(--night-page);
  --token-766e7e68-1c17-4831-bdaf-82a44e02c8ed: var(--night-text);
  --token-6cf9a6b5-0936-47be-9580-efb2a4d48132: var(--night-text);
  --token-bb084664-8623-464a-9cab-d4b9c95c5f1b: var(--night-muted);
  --token-dd3735eb-4434-425d-975f-2daedfe6f380: var(--night-muted);
  --token-1c325feb-fd67-433f-bfd1-7853e25ee238: #ffffff0d;
  --token-aad5ff73-819a-4ba8-8be0-727298715f94: #ffffff1a;
  --token-6a5af450-49bf-4996-a794-a4032327a88b: var(--night-line);
  --token-f4ccf6bb-c8fd-4b8a-8d35-9d711b926541: var(--night-panel);
  --field-placeholder: var(--night-muted);
  background-color: var(--night-page);
  color: var(--night-text);
}

html[data-theme="dark"] :is(.portfolio-work-nav--fixed, .portfolio-work-nav__panel, .portfolio-news, .framer-GnSP7.framer-m2xjh7) {
  background-color: var(--night-page);
  color: var(--night-text);
}

html[data-theme="dark"] :is(.portfolio-words, .portfolio-metrics__value, .portfolio-services, .portfolio-about__intro, .portfolio-legal__article a) {
  color: var(--night-text);
}

html[data-theme="dark"] :is(.portfolio-project__caption, .portfolio-work__search, .portfolio-news__card, .portfolio-services__card, .portfolio-faq__items details, .portfolio-case-study__reactions li, .tilila-comparison) {
  background-color: var(--night-panel);
  color: var(--night-text);
}

html[data-theme="dark"] #pricing .framer-ap23rj {
  background-color: var(--night-panel) !important;
}

html[data-theme="dark"] :is(.portfolio-about__intro p, .portfolio-faq__items p, .portfolio-services__card p, .portfolio-news__card p, .portfolio-handwritten-note, .portfolio-case-study__facts dd, .portfolio-case-study__reactions p, .portfolio-legal__article p, .tilila-comparison__heading p, .tilila-comparison__profile figcaption span, .portfolio-work-nav__panel a:hover) {
  color: var(--night-muted);
}

html[data-theme="dark"] :is(.portfolio-work-nav__menu summary span, .portfolio-case-study__marker) {
  background-color: var(--night-text);
}

html[data-theme="dark"] :is(.portfolio-project__caption p, .portfolio-work__search:focus-within) {
  box-shadow: inset 0 0 0 1px var(--night-line);
}

html[data-theme="dark"] .portfolio-case-study__facts > div {
  box-shadow: inset 0 -1px var(--night-line);
}

html[data-theme="dark"] :is(.portfolio-book-form :is(input, select), .portfolio-contact-service select) {
  background-color: var(--night-field);
  border-color: var(--night-line);
  color: var(--night-text);
  background-image: none;
}

html[data-theme="dark"] :is(.portfolio-book-form select, .portfolio-contact-service select) {
  appearance: auto;
}

html[data-theme="dark"] .portfolio-contact-service select option {
  color: var(--night-text);
}

html[data-theme="dark"] #contact .framer-form-text-input {
  --framer-input-background: var(--night-field);
  box-shadow: inset 0 -1px var(--night-line);
}

html[data-theme="dark"] #contact .framer-e0aysh-container {
  filter: invert(1) contrast(1.12);
}

html[data-theme="dark"] #contact .framer-57lj66 {
  --token-20608b9f-0145-4a1e-b971-ee948ebbb015: #141414;
}

#contact .framer-57lj66 :is(h2, h4) {
  --contact-title-shadow: 0 0 0;
  text-shadow:
    0 0 4px rgb(var(--contact-title-shadow) / 24%),
    0 0 9px rgb(var(--contact-title-shadow) / 11%),
    0 0 16px rgb(var(--contact-title-shadow) / 4%);
}

html[data-theme="dark"] #contact .framer-57lj66 :is(h2, h4) {
  --contact-title-shadow: 255 255 255;
}

html[data-theme="dark"] #contact .framer-57lj66 p {
  text-shadow: 0 1px 3px #ffffffe6, 0 1px 10px #ffffffb3;
}

#contact .framer-57lj66 p {
  line-height: 1.7;
}

html[data-theme="dark"] :is(.portfolio-book-form :is(input, select), .portfolio-contact-service select):focus {
  border-color: var(--night-muted);
}

html[data-theme="dark"] :is(.portfolio-faq__items summary, .portfolio-project__link):focus-visible {
  outline-color: var(--night-text);
}

html[data-theme="dark"] :is(.portfolio-projects__more a, .portfolio-services__button, .portfolio-case-study__all-projects, .portfolio-book-form button:enabled) {
  background-color: var(--night-text);
  color: var(--night-page);
}

html[data-theme="dark"] :is(.framer-ezymj5, #contact button[type="submit"]) {
  --token-6cf9a6b5-0936-47be-9580-efb2a4d48132: #eeeeee;
  --token-20608b9f-0145-4a1e-b971-ee948ebbb015: #141414;
}

html[data-theme="dark"] #main button:is(:disabled, [aria-disabled="true"]) {
  background-color: #343434;
  color: #adadad;
}

html[data-theme="dark"] :is(.portfolio-work-nav img, .tilila-comparison__arrow) {
  filter: invert(1);
}

html[data-theme="dark"] .portfolio-client-logos__group li {
  background-color: var(--night-panel);
}

html[data-theme="dark"] .portfolio-client-logos__group img {
  filter: grayscale(1) brightness(.75) contrast(3.2) invert(1);
}

html[data-theme="dark"] .tilila-comparison__profile > img {
  border-color: var(--night-line);
}

html[data-theme="dark"] .portfolio-theme-toggle {
  border-color: #545454;
  background-color: var(--night-page);
  color: #fff;
}

.portfolio-theme-toggle[aria-checked="true"] .portfolio-theme-toggle__thumb {
  background: #fff;
  color: #000;
  transform: translateX(20px);
}

@media (hover: hover) and (pointer: fine) {
  html[data-theme="dark"] {
    --portfolio-pointer: url("./assets/cursors/spark-dark.png") 14 14, auto;
    --portfolio-pointer-active: url("./assets/cursors/arrow-inverted.png") 14 14, pointer;
    --portfolio-pointer-inverted: url("./assets/cursors/arrow.png") 14 14, pointer;
    --portfolio-pointer-text: url("./assets/cursors/text-dark.png") 14 14, text;
    --portfolio-pointer-disabled: url("./assets/cursors/disabled-dark.png") 14 14, not-allowed;
  }
}

@media (prefers-reduced-motion: no-preference) {
  :is(body, .framer-GnSP7, .framer-GnSP7 section, .framer-text, .framer-rd9rnj, #pricing .framer-ap23rj,
    #pricing [data-framer-name="One time pricing"],
    .portfolio-work-nav--fixed, .portfolio-work-nav__panel, .portfolio-work-nav__menu summary span,
    .portfolio-news, .portfolio-news__card, .portfolio-project__caption, .portfolio-services__card,
    .portfolio-faq__items details, .portfolio-work__search, .tilila-comparison,
    .portfolio-client-logos__group li, .portfolio-theme-toggle) {
    transition: background-color 320ms ease, border-color 320ms ease, color 320ms ease, box-shadow 320ms ease;
  }

  .portfolio-work-nav__menu summary span {
    transition: transform 240ms ease, background-color 320ms ease;
  }

  :is(.portfolio-work-nav img, .portfolio-client-logos__group img, .tilila-comparison__arrow) {
    transition: filter 320ms ease;
  }

  .portfolio-theme-toggle__thumb {
    transition: transform 330ms cubic-bezier(.22, 1, .36, 1), background-color 320ms ease, color 240ms ease, box-shadow 240ms ease;
  }

  .portfolio-theme-toggle__thumb svg {
    transition: opacity 150ms ease;
  }
}

html:not([data-theme="dark"]) .portfolio-theme-toggle {
  background-color: transparent;
}

html[data-theme="dark"] #pricing [data-framer-name="One time pricing"] {
  background: linear-gradient(180deg, var(--night-field), var(--night-panel)) !important;
}

html[data-theme="dark"] #pricing [data-framer-name="One time pricing"] :is(.framer-5hi9mp, .framer-b73abf) {
  opacity: .75 !important;
}

.portfolio-book-form__phone {
  grid-template-columns: 76px minmax(0, 1fr);
}

.portfolio-book-form__phone :is(input, select) {
  direction: ltr;
}

html[data-theme="dark"] .portfolio-book-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23f4f4f4' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

@media (max-width: 809.98px) {
  .portfolio-projects :is(.portfolio-project__link, .portfolio-project__locked) > .portfolio-photo--crop {
    height: auto;
    aspect-ratio: 16 / 10;
    max-height: 270px;
  }

  .portfolio-case-study .portfolio-case-study__image {
    height: auto;
    max-height: min(56svh, 380px);
    object-fit: contain;
  }

  .portfolio-case-study .portfolio-case-study__image--portrait {
    width: auto;
    max-width: 100%;
    max-height: min(49svh, 340px);
    justify-self: center;
  }
}

.portfolio-language-picker {
  position: relative;
  flex: none;
  --language-surface: #fff;
  --language-line: #dedede;
  --language-highlight: #f2f2f2;
}

.portfolio-language-picker summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  inline-size: 46px;
  block-size: 26px;
  padding: 0;
  border: 1px solid #cecece;
  border-radius: 999px;
  list-style: none;
  cursor: pointer;
  font: 600 12px/1 system-ui, sans-serif;
}

.portfolio-language-picker summary::-webkit-details-marker { display: none; }
html[data-theme="dark"] .portfolio-language-picker summary { border-color: #545454; }
.portfolio-language-picker__globe { inline-size: 16px; block-size: 16px; }
.portfolio-language-picker__chevron { inline-size: 10px; block-size: 10px; opacity: .65; }
.portfolio-language-picker[open] .portfolio-language-picker__chevron { transform: rotate(180deg); }

.portfolio-language-picker__options {
  position: absolute;
  z-index: 2;
  inset-block-start: calc(100% + 6px);
  inset-inline-end: 0;
  display: grid;
  gap: 2px;
  min-inline-size: 136px;
  padding: 4px;
  border: 1px solid var(--language-line);
  border-radius: 12px;
  background: var(--language-surface);
  box-shadow: 0 10px 28px rgb(0 0 0 / 14%);
}

.portfolio-language-picker:not([open]) .portfolio-language-picker__options { display: none; }

.portfolio-language-picker__options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  padding: 4px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: start;
  font: 500 14px/1.3 system-ui, sans-serif;
  cursor: pointer;
}

.portfolio-language-picker__options button:is(:hover, [aria-current="true"]) { background: var(--language-highlight); }
.portfolio-language-picker :is(summary, button):focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.portfolio-language-picker__options button[aria-current="true"]::after {
  inline-size: 9px;
  block-size: 5px;
  border: solid currentColor;
  border-width: 0 0 1.5px 1.5px;
  transform: translateY(-1px) rotate(-45deg);
  content: "";
}

html[data-theme="dark"] .portfolio-language-picker {
  --language-surface: var(--night-panel);
  --language-line: var(--night-line);
  --language-highlight: var(--night-field);
}

html[dir="rtl"] :is(body, .framer-text, .portfolio-words, .portfolio-work, .portfolio-work-nav__panel a,
    .portfolio-services, .portfolio-services__card, .portfolio-about__intro, .portfolio-projects,
    .portfolio-news, .portfolio-faq__items, .portfolio-book-form input, .portfolio-book-form select,
    .portfolio-contact-service select, .portfolio-work__search input, .framer-form-input) {
  letter-spacing: 0;
  --framer-letter-spacing: 0;
}

html:lang(ar) #main .framer-i31k02 { overflow: visible; }
html:lang(ar) .framer-1sojpca:has(> .portfolio-words) .framer-6y6mms-container { display: none; }
html:lang(ar) .portfolio-words {
  --word-row-height: 1.5em;
  position: static;
  line-height: var(--word-row-height);
}

.portfolio-hero-title {
  --hero-spacing-scale: .694;
  --swissra-hero-scale: .814;
  line-height: calc(var(--framer-font-size) * .85);
  /* Reserve the same space below the line box for both languages. */
  padding-block-end: calc(var(--framer-font-size) * var(--hero-spacing-scale) * .16);
}

html:lang(ar) h1.portfolio-hero-title {
  /* Match the English title's ink width using Swissra's glyph metrics. */
  font-size: calc(var(--framer-font-size) * var(--swissra-hero-scale));
  letter-spacing: 0;
}

@media (max-width: 809px) {
  .portfolio-hero-title {
    --hero-spacing-scale: .728;
    --swissra-hero-scale: .854;
  }
}

@media (max-width: 809.98px) {
  html:lang(ar) h1.portfolio-hero-title { font-weight: 500; }
  html:lang(ar) #main .framer-i31k02 { gap: 13px; }
  html:lang(ar) #main .framer-1jgerfy p {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.55;
  }
  html:lang(ar) .portfolio-words {
    font-size: 24px;
    font-weight: 400;
  }

  html:lang(ar) body h1:not(.portfolio-hero-title) {
    font-size: clamp(34px, 10.5vw, 45px);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0;
  }

  html:lang(ar) body :is(h2.framer-styles-preset-1kpq6vv, #portfolio-news-title) {
    font-size: clamp(29px, 8.5vw, 35px);
    font-weight: 400;
    line-height: 1.35;
  }
  html:lang(ar) body :is(.portfolio-case-study__related-header h2, .portfolio-legal__article h2) {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0;
  }
  html:lang(ar) body :is(.portfolio-news__card h2, .portfolio-news__card h3, #contact h5, .portfolio-contact-page__section h3) {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.45;
  }
  html:lang(ar) #contact h4,
  html:lang(ar) .portfolio-contact-page__section h2 {
    font-size: 25px;
    font-weight: 500;
    line-height: 1.35;
  }
  html:lang(ar) #pricing h4 {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.25;
  }

  html:lang(ar) .portfolio-metrics__value {
    font-size: 64px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0;
  }
  html:lang(ar) .portfolio-metrics-grid h3 {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
  }
  html:lang(ar) :is(.portfolio-services__card h3, .portfolio-faq__items summary, .portfolio-project__caption h3) {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0;
  }
  html:lang(ar) .portfolio-project__caption p {
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
  }
  html:lang(ar) .portfolio-case-study__story > div > p {
    font-size: 18px;
    line-height: 1.55;
  }
}

html[dir="rtl"] .portfolio-about__intro { text-align: right; }
html[dir="rtl"] .portfolio-services__button svg { transform: scaleX(-1); }

@media (min-width: 810px) {
  html[dir="rtl"] .portfolio-services__intro {
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
  }

  html[dir="rtl"] .portfolio-services__heading { grid-column: 1 / -1; }
  html[dir="rtl"] .portfolio-services__note {
    position: static;
    margin-block-start: 18px;
  }
  html[dir="rtl"] .portfolio-services__note::before { transform: none; }
}

html[dir="rtl"] .portfolio-faq__note::before {
  transform: scaleX(-1);
  transform-origin: center;
}

@media (min-width: 1200px) {
  html[dir="rtl"] .portfolio-faq .portfolio-paired-section__layout { row-gap: 20px; }
  html[dir="rtl"] .portfolio-faq__intro { display: contents; }
  html[dir="rtl"] #portfolio-faq-title { grid-area: 1 / 1 / 2 / 2; }
  html[dir="rtl"] .portfolio-faq__note {
    grid-area: 2 / 1 / 3 / 2;
    position: static;
    justify-self: end;
    margin-block-start: 30px;
    margin-inline-end: -14px;
  }
  html[dir="rtl"] .portfolio-faq__items { grid-area: 2 / 2 / 3 / 3; }
}

@media (max-width: 1199.98px) {
  html[dir="rtl"] .portfolio-faq__note::before { rotate: -35deg; }
}

html[dir="rtl"] :is(.portfolio-gallery, .portfolio-client-logos) { direction: ltr; }
html[dir="rtl"] .portfolio-work-nav__menu summary { padding: 10px 12px 10px 0; }
html[dir="rtl"] .portfolio-project__lock { inset-inline: auto 14px; }
html[dir="rtl"] .portfolio-work__search-icon::after { right: auto; left: -4px; transform: rotate(-45deg); }
html[dir="rtl"] .portfolio-contact-service select {
  padding-inline: var(--field-inline-padding) 44px;
  background-position: left var(--field-inline-padding) center;
}
html[dir="rtl"] .portfolio-book-form__phone input:placeholder-shown { text-align: right; }

@media (min-width: 601px) {
  html[dir="rtl"] .tilila-comparison__arrow { transform: scaleX(-1); }
}

@media (prefers-reduced-motion: no-preference) {
  .portfolio-language-picker__chevron { transition: transform 200ms ease; }
  .portfolio-language-picker[open] .portfolio-language-picker__options {
    animation: portfolio-language-menu-in 160ms ease-out;
  }
}

@keyframes portfolio-language-menu-in {
  from { opacity: 0; transform: translateY(-4px); }
}
