:root {
  --ink: #0e0f12;
  --ink-soft: #171b21;
  --midnight: #020b16;
  --paper: #f7f4ec;
  --white: #ffffff;
  --sand: #d7bc6d;
  --gold: #825e19;
  --gold-light: #e6d7a2;
  --blue: #286cff;
  --cyan: #3ee5ff;
  --green: #061827;
  --muted: #6f747c;
  --line: rgba(14, 15, 18, 0.14);
  --line-light: rgba(255, 255, 255, 0.17);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 22px 80px rgba(13, 16, 22, 0.12);
  --shell: min(1380px, calc(100vw - 96px));
  --header-height: 86px;
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  color: var(--ink);
  background: var(--gold-light);
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  inset-inline-start: 12px;
  padding: 12px 18px;
  color: var(--white);
  background: var(--ink);
  border-radius: 99px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  color: var(--header-color, var(--ink));
  transition:
    background 0.35s ease,
    color 0.35s ease,
    box-shadow 0.35s ease;
}

.site-header.on-dark {
  --header-color: var(--white);
}

.site-header.scrolled,
.site-header.menu-active {
  --header-color: var(--ink);
  background: rgba(247, 244, 236, 0.9);
  box-shadow: 0 1px 0 rgba(14, 15, 18, 0.09);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: currentColor;
  font-size: 29px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.24em;
  white-space: nowrap;
}

.wordmark-a {
  position: relative;
  display: inline-block;
  width: 25px;
  height: 24px;
}

.wordmark-a::before,
.wordmark-a::after {
  position: absolute;
  bottom: 0;
  width: 5px;
  height: 26px;
  background: currentColor;
  content: "";
}

.wordmark-a::before {
  left: 6px;
  transform: skew(-25deg);
}

.wordmark-a::after {
  right: 5px;
  transform: skew(25deg);
}

.desktop-nav {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 52px);
  transform: translateX(-50%);
}

.nav-link {
  position: relative;
  padding: 32px 0;
  font-size: 13px;
  font-weight: 500;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 23px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-group:hover .mega-menu,
.nav-group:focus-within .mega-menu {
  visibility: visible;
  opacity: 1;
  transform: translate(-34%, 0);
  pointer-events: auto;
}

.mega-menu {
  position: absolute;
  top: 70px;
  inset-inline-start: 0;
  display: grid;
  visibility: hidden;
  width: min(760px, 80vw);
  padding: 26px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(14, 15, 18, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-34%, 12px);
  transition: 0.25s var(--ease);
  pointer-events: none;
  backdrop-filter: blur(18px);
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mega-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  grid-column: 1 / -1;
}

.mega-menu a {
  display: grid;
  padding: 17px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s ease;
  grid-template-columns: 34px 1fr;
}

.mega-menu a:hover {
  background: var(--paper);
}

.mega-menu a > span:first-child {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.1em;
  grid-row: 1 / 3;
}

.mega-menu small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  grid-column: 2;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px;
  color: inherit;
  background: transparent;
  border: 0;
  font-size: 11px;
  cursor: pointer;
}

.language-toggle span:not(.language-active) {
  opacity: 0.55;
}

.market-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition:
    transform 0.25s var(--ease),
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
  gap: 20px;
}

.button:hover {
  transform: translateY(-3px);
}

.button:focus-visible,
.nav-link:focus-visible,
.wordmark:focus-visible,
.service-card:focus-visible,
.project-card:focus-visible,
.insight-card:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.button-small {
  min-height: 44px;
  padding: 0 21px;
  font-size: 12px;
}

.button-dark {
  color: var(--white);
  background: var(--ink);
}

.button-light {
  color: var(--ink);
  background: var(--white);
}

.button-outline {
  color: currentColor;
  background: rgba(255, 255, 255, 0.08);
  border-color: currentColor;
}

.site-header.on-dark:not(.scrolled) .button-dark {
  color: var(--ink);
  background: var(--white);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 13px;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  margin: 6px 0;
  background: currentColor;
  transition: transform 0.25s ease;
}

.menu-active .menu-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-active .menu-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  z-index: 99;
  top: var(--header-height);
  right: 0;
  left: 0;
  display: none;
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height));
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav-scroll {
  padding: 28px 6vw 12px;
  overflow: auto;
  flex: 1 1 auto;
}

.mobile-nav-label {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mobile-service-grid {
  display: grid;
  margin-bottom: 32px;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mobile-service-grid a {
  position: relative;
  display: flex;
  min-height: 116px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  flex-direction: column;
  transition: transform 0.2s var(--ease), border-color 0.2s ease;
}

.mobile-service-grid a:active {
  transform: scale(0.97);
  border-color: var(--ink);
}

.mobile-service-index {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.mobile-service-name {
  margin-top: auto;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.mobile-service-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  font-weight: 600;
}

.mobile-nav-links a:last-child {
  border-bottom: 0;
}

.mobile-nav-links a::after {
  color: var(--muted);
  content: "→";
  font-size: 15px;
  font-weight: 400;
}

[dir="rtl"] .mobile-nav-links a::after {
  content: "←";
}

.mobile-nav-footer {
  display: flex;
  align-items: center;
  padding: 16px 6vw max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--paper);
  flex: 0 0 auto;
  gap: 12px;
}

.mobile-nav-cta {
  flex: 1 1 auto;
}

main {
  min-height: 70vh;
  overflow: hidden;
}

.eyebrow {
  display: flex;
  align-items: center;
  margin: 0 0 24px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  gap: 16px;
}

.eyebrow::before {
  width: 28px;
  height: 1px;
  background: currentColor;
  content: "";
}

.eyebrow.no-line::before {
  display: none;
}

.hero-dark .eyebrow,
.section-dark .eyebrow,
.section-green .eyebrow {
  color: var(--gold-light);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(860px, 100svh);
  padding-top: var(--header-height);
  color: var(--hero-color, var(--ink));
  background-color: var(--paper);
  background-image: var(--hero-image);
  background-position: center right;
  background-size: cover;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--hero-overlay, linear-gradient(90deg, rgba(247, 244, 236, 0.92) 0%, rgba(247, 244, 236, 0.72) 35%, transparent 62%));
  content: "";
}

.hero-dark {
  --hero-color: var(--white);
  --hero-overlay: linear-gradient(90deg, rgba(2, 11, 22, 0.97) 0%, rgba(2, 11, 22, 0.78) 37%, rgba(2, 11, 22, 0.08) 70%);
  background-color: var(--midnight);
}

.hero-content {
  width: min(740px, 50vw);
  padding: 76px 0 86px;
}

.display-title {
  max-width: 900px;
  margin: 0;
  font-size: clamp(56px, 5vw, 88px);
  font-weight: 700;
  line-height: 0.91;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.display-title .accent {
  color: #a9c7ff;
}

.hero-copy {
  max-width: 640px;
  margin: 28px 0 0;
  color: color-mix(in srgb, currentColor 76%, transparent);
  font-size: clamp(18px, 1.55vw, 25px);
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  align-items: center;
  margin-top: 34px;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-bottom-line {
  position: absolute;
  bottom: 35px;
  inset-inline-start: max(48px, calc((100vw - 1380px) / 2));
  display: flex;
  align-items: center;
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  gap: 17px;
}

.hero-bottom-line::before {
  width: 32px;
  height: 1px;
  background: currentColor;
  content: "";
}

.section {
  position: relative;
  padding: clamp(88px, 10vw, 150px) 0;
}

.section-compact {
  padding: clamp(60px, 7vw, 100px) 0;
}

.section-white {
  background: var(--white);
}

.section-paper {
  background: var(--paper);
}

.section-dark {
  color: var(--white);
  background: var(--midnight);
}

.section-green {
  color: var(--white);
  background: var(--green);
}

.section-header {
  display: grid;
  align-items: end;
  margin-bottom: clamp(42px, 6vw, 72px);
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.75fr);
  gap: 60px;
}

.section-title {
  max-width: 920px;
  margin: 0;
  font-size: clamp(42px, 5.1vw, 78px);
  font-weight: 650;
  line-height: 0.97;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.section-title.medium {
  font-size: clamp(38px, 4.2vw, 64px);
}

.section-title.small {
  font-size: clamp(32px, 3.3vw, 50px);
}

.section-copy {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 20px);
}

.section-dark .section-copy,
.section-green .section-copy {
  color: rgba(255, 255, 255, 0.67);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.service-card {
  position: relative;
  display: flex;
  min-height: 260px;
  padding: 28px;
  color: var(--white);
  background-color: var(--ink);
  background-image: linear-gradient(0deg, rgba(2, 3, 6, 0.85) 0%, rgba(2, 3, 6, 0.42) 40%, rgba(2, 3, 6, 0.1) 70%), var(--card-photo);
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s ease;
  flex-direction: column;
}

.service-card:hover {
  z-index: 2;
  box-shadow: 0 18px 50px rgba(14, 15, 18, 0.24);
  transform: translateY(-8px);
}

.card-number {
  position: relative;
  z-index: 1;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.service-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--gold-light);
  place-items: center;
}

.service-icon svg {
  width: 38px;
  height: 38px;
  stroke-width: 1.35;
}

.service-card h3 {
  position: relative;
  z-index: 1;
  margin: auto 56px 6px 0;
  font-size: clamp(22px, 2vw, 31px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.service-card p {
  position: relative;
  z-index: 1;
  max-width: 230px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.card-arrow {
  position: absolute;
  z-index: 1;
  inset-inline-end: 22px;
  bottom: 22px;
  display: grid;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  place-items: center;
}

.trust-strip {
  display: grid;
  align-items: center;
  margin-top: 46px;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  grid-template-columns: 1.3fr repeat(4, 1fr);
}

.trust-strip > * {
  min-height: 42px;
  padding: 0 20px;
  border-inline-start: 1px solid var(--line);
}

.trust-strip > :first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.trust-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.trust-item {
  display: flex;
  align-items: center;
  color: #4e5259;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  gap: 12px;
}

.trust-item svg {
  width: 26px;
  flex: 0 0 26px;
  color: var(--gold);
}

.feature-panel {
  display: grid;
  min-height: 650px;
  background: var(--ink-soft);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.feature-panel.reverse {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.feature-copy {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(42px, 6vw, 88px);
  flex-direction: column;
}

.feature-copy h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 74px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.feature-copy p {
  max-width: 520px;
  margin: 24px 0 30px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
}

.feature-image {
  min-height: 520px;
  background-position: center;
  background-size: cover;
}

.chips {
  display: flex;
  margin-bottom: 34px;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  padding: 8px 13px;
  color: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 10px;
}

.work-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 660px;
  padding: clamp(38px, 7vw, 96px);
  color: var(--white);
  background-color: var(--midnight);
  background-image: linear-gradient(90deg, rgba(2, 11, 22, 0.94) 0%, rgba(2, 11, 22, 0.5) 38%, transparent 68%), var(--work-image);
  background-position: center;
  background-size: cover;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.work-banner-content {
  max-width: 610px;
}

.work-banner h2 {
  margin: 0;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.work-banner p {
  max-width: 430px;
  margin: 24px 0 32px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
}

.story-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 7vw, 110px);
}

.story-image {
  position: relative;
  min-height: 620px;
  background-image: linear-gradient(0deg, rgba(14, 15, 18, 0.12), transparent 50%), var(--story-image);
  background-position: center;
  background-size: cover;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.story-copy h2 {
  margin: 0;
  font-size: clamp(46px, 5.5vw, 80px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.story-copy p {
  max-width: 580px;
  margin: 28px 0 34px;
  color: var(--muted);
  font-size: 18px;
}

.marquee {
  display: flex;
  padding: 22px 0;
  color: var(--paper);
  background: var(--ink);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  min-width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee span {
  display: inline-flex;
  align-items: center;
  padding: 0 28px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  gap: 56px;
}

.marquee span::after {
  color: var(--gold);
  content: "✦";
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.process-card {
  position: relative;
  min-height: 340px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.process-number {
  display: block;
  margin-bottom: 100px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.process-card h3 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.process-card p {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
}

.process-card::after {
  position: absolute;
  top: 45px;
  inset-inline-end: -18px;
  width: 120px;
  height: 120px;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 18px rgba(215, 188, 109, 0.08),
    0 0 0 36px rgba(215, 188, 109, 0.04);
}

.cta-section {
  padding: clamp(100px, 12vw, 180px) 0;
  text-align: center;
}

.cta-section .eyebrow {
  justify-content: center;
}

.cta-section h2 {
  max-width: 1100px;
  margin: 0 auto;
  font-size: clamp(50px, 7vw, 102px);
  font-weight: 650;
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.cta-section p {
  max-width: 600px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 18px;
}

.cta-section .shell > .button {
  margin-top: 34px;
}

.site-footer {
  padding: 80px 0 28px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--midnight);
}

.footer-grid {
  display: grid;
  padding-bottom: 74px;
  grid-template-columns: 2.1fr repeat(3, 1fr);
  gap: 40px;
}

.footer-intro p {
  max-width: 320px;
  margin: 25px 0 32px;
  color: rgba(255, 255, 255, 0.54);
}

.wordmark-light {
  color: var(--white);
}

.footer-start {
  display: inline-flex;
  padding-bottom: 8px;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  gap: 20px;
}

.footer-column {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
}

.footer-column a {
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-label {
  margin: 0 0 10px;
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
  font-size: 11px;
}

.footer-bottom div {
  display: flex;
  gap: 22px;
}

.footer-motto {
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

/* Inner pages */
.page-hero {
  min-height: min(760px, 92svh);
}

.page-hero .display-title {
  font-size: clamp(50px, 4.8vw, 82px);
}

.page-hero .hero-content {
  width: min(740px, 50vw);
}

.metric-row {
  display: grid;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(4, 1fr);
}

.metric {
  padding: 38px 28px;
  border-inline-start: 1px solid var(--line);
}

.metric:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(25px, 2.5vw, 40px);
  font-weight: 550;
  letter-spacing: -0.04em;
}

.metric span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.capability-card {
  min-height: 260px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    color 0.3s ease,
    background 0.3s ease,
    transform 0.3s var(--ease);
}

.capability-card:hover {
  color: var(--white);
  background: var(--ink);
  transform: translateY(-5px);
}

.capability-card .cap-index {
  display: block;
  margin-bottom: 74px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.capability-card h3 {
  margin: 0 0 10px;
  font-size: 25px;
  font-weight: 550;
  letter-spacing: -0.035em;
}

.capability-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.capability-card:hover p {
  color: rgba(255, 255, 255, 0.64);
}

.split-layout {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  gap: clamp(50px, 8vw, 130px);
}

.split-visual {
  min-height: 620px;
  background-color: var(--ink);
  background-position: center;
  background-size: cover;
  border-radius: var(--radius-lg);
}

.split-copy h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 74px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.split-copy > p {
  max-width: 570px;
  margin: 26px 0;
  color: var(--muted);
  font-size: 18px;
}

.feature-list {
  margin: 28px 0 36px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.feature-list li::after {
  color: var(--gold);
  content: "↗";
}

.dark-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.dark-card {
  min-height: 360px;
  padding: 32px;
  color: var(--white);
  background: linear-gradient(145deg, #0b1828, #050b12);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
}

.dark-card span {
  color: var(--gold-light);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.dark-card h3 {
  margin: 120px 0 13px;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.dark-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
}

.project-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 42px;
  gap: 20px;
}

.filter-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-button {
  min-height: 42px;
  padding: 0 17px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
  color: var(--white);
  background: var(--ink);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 54px 18px;
}

.project-card {
  display: block;
}

.project-card[hidden] {
  display: none;
}

.project-image {
  position: relative;
  min-height: 470px;
  background-color: var(--ink);
  background-position: center;
  background-size: cover;
  border-radius: var(--radius);
  overflow: hidden;
}

.project-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(2, 11, 22, 0.45));
  content: "";
}

.project-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 4px 0;
  gap: 24px;
}

.project-meta h3 {
  margin: 0 0 5px;
  font-size: 29px;
  font-weight: 520;
  letter-spacing: -0.04em;
}

.project-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.project-meta .project-kicker {
  display: block;
  width: auto;
  height: auto;
  margin: 0 0 9px;
  color: var(--gold);
  border: 0;
  border-radius: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.project-meta span {
  display: grid;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  flex: 0 0 44px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.values-grid.values-five {
  grid-template-columns: repeat(5, 1fr);
}

.value-card {
  min-height: 300px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.value-card span {
  color: var(--gold);
  font-size: 11px;
}

.value-card h3 {
  margin: 110px 0 12px;
  font-size: 28px;
  font-weight: 520;
  letter-spacing: -0.04em;
}

.value-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.insight-card {
  display: flex;
  min-height: 470px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease);
  flex-direction: column;
}

.insight-card:hover {
  transform: translateY(-7px);
}

.insight-visual {
  position: relative;
  height: 220px;
  margin: -28px -28px 26px;
  background-color: var(--midnight);
  background-position: center;
  background-size: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.insight-tag {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.insight-card h3 {
  margin: 16px 0 12px;
  font-size: 26px;
  font-weight: 550;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.insight-card p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.insight-card time {
  margin-top: auto;
  color: var(--muted);
  font-size: 11px;
}

.insight-readtime {
  margin-top: auto;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.article-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr) minmax(180px, 0.35fr);
  gap: 50px;
}

.article-aside {
  position: sticky;
  top: 120px;
  color: var(--muted);
  font-size: 12px;
}

.article-aside a {
  display: block;
  padding: 8px 0;
}

.article-body {
  max-width: 780px;
}

.article-body p,
.article-body li {
  color: #3f4349;
  font-size: 19px;
  line-height: 1.75;
}

.article-body h2 {
  margin: 70px 0 20px;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -0.045em;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.article-body blockquote {
  margin: 60px 0;
  padding: 32px 0;
  padding-inline-start: 34px;
  border-inline-start: 2px solid var(--gold);
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(60px, 10vw, 150px);
}

.contact-details {
  position: sticky;
  top: 130px;
  align-self: start;
}

.contact-details h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.contact-details > p {
  margin: 26px 0 50px;
  color: var(--muted);
  font-size: 18px;
}

.contact-line {
  padding: 19px 0;
  border-top: 1px solid var(--line);
}

.contact-line span {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-form {
  padding: clamp(28px, 4vw, 52px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  margin-bottom: 22px;
}

.fieldset-reset {
  min-width: 0;
  padding: 0;
  border: 0;
}

.form-field label,
.form-legend {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 15px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #b8babd;
  border-radius: 0;
  outline: none;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-bottom-color: var(--blue);
  box-shadow: 0 1px 0 var(--blue);
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.choice-grid {
  display: grid;
  margin: 10px 0 26px;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
}

.choice label {
  display: block;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  cursor: pointer;
}

.choice input:checked + label,
.choice input:focus-visible + label {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.form-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  margin: 4px 0 26px;
  color: var(--muted);
  font-size: 12px;
  gap: 10px;
}

.consent-row input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--ink);
  flex: 0 0 17px;
}

.newsletter-layout {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: clamp(50px, 9vw, 140px);
}

.newsletter-form {
  padding: 30px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.newsletter-input {
  display: flex;
  align-items: center;
  gap: 12px;
}

.newsletter-input input {
  width: 100%;
  min-height: 52px;
  padding: 0 4px;
  color: var(--white);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  outline: none;
}

.newsletter-input input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.newsletter-input input:focus {
  border-bottom-color: var(--gold-light);
}

.newsletter-note {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}

.newsletter-note a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-dark .split-copy > p {
  color: rgba(255, 255, 255, 0.67);
}

.section-dark .feature-list li {
  border-bottom-color: var(--line-light);
}

.legal-page {
  padding: 180px 0 120px;
}

.legal-page h1 {
  max-width: 900px;
  margin: 0 0 70px;
  font-size: clamp(54px, 7vw, 100px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.legal-copy {
  max-width: 760px;
}

.legal-copy h2 {
  margin-top: 48px;
}

.legal-copy p {
  color: var(--muted);
  font-size: 17px;
}

.toast {
  position: fixed;
  z-index: 200;
  inset-inline-end: 24px;
  bottom: 24px;
  max-width: 380px;
  padding: 16px 20px;
  color: var(--white);
  background: var(--green);
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  transition: 0.3s var(--ease);
  pointer-events: none;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.team-card {
  display: flex;
  padding: 30px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
  flex-direction: column;
  align-items: center;
}

.team-card:hover {
  box-shadow: 0 18px 50px rgba(14, 15, 18, 0.1);
  transform: translateY(-6px);
}

.team-card-badge {
  padding: 5px 12px;
  color: var(--gold);
  background: var(--paper);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.team-card-avatar {
  width: 84px;
  height: 84px;
  margin: 18px 0 16px;
  padding: 3px;
  background: linear-gradient(135deg, var(--gold-light), var(--blue));
  border-radius: 50%;
}

.team-card-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.team-card-name {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.team-card-role {
  margin-top: 4px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.team-card-bio {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.team-card-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
}

/* Digital business card */
body.card-view .site-header,
body.card-view .site-footer {
  display: none;
}

body.card-view main {
  min-height: 100dvh;
  overflow: visible;
}

.business-card-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 72px 20px;
  background-color: var(--ink);
  background-image: linear-gradient(180deg, rgba(14, 15, 18, 0.82), rgba(14, 15, 18, 0.9)), var(--card-bg);
  background-position: center;
  background-size: cover;
}

.business-card-nav {
  position: absolute;
  top: 20px;
  display: grid;
  width: 40px;
  height: 40px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-light);
  border-radius: 50%;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.business-card-back {
  inset-inline-start: 20px;
}

.business-card-share {
  inset-inline-end: 20px;
}

.business-card-share svg {
  width: 16px;
  height: 16px;
}

.business-card {
  width: 100%;
  max-width: 400px;
  padding: 36px 28px;
  color: var(--paper);
  background-color: var(--ink);
  background-image: linear-gradient(180deg, rgba(14, 15, 18, 0.32) 0%, rgba(14, 15, 18, 0.58) 32%, rgba(14, 15, 18, 0.88) 66%, rgba(14, 15, 18, 0.95) 100%), var(--card-bg);
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
}

.business-card-header {
  display: flex;
  align-items: center;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line-light);
  flex-direction: column;
  gap: 8px;
}

.business-card-mark {
  color: var(--white);
  font-size: 22px;
}

.business-card-tagline {
  color: var(--gold-light);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.business-card-avatar {
  width: 128px;
  height: 128px;
  margin: 0 auto 20px;
  padding: 3px;
  background: linear-gradient(135deg, var(--gold-light), var(--blue));
  border-radius: 50%;
}

.business-card-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.business-card-name {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-align: center;
}

.business-card-role {
  margin: 6px 0 0;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.business-card-section {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--line-light);
}

.business-card-label {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.business-card-row {
  display: flex;
  align-items: center;
  padding: 7px 0;
  color: var(--paper);
  font-size: 13px;
  font-weight: 500;
  gap: 12px;
}

a.business-card-row:hover {
  color: var(--gold-light);
}

.business-card-row svg {
  width: 16px;
  height: 16px;
  color: var(--gold-light);
  flex: 0 0 16px;
}

.business-card-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-card-qr {
  display: flex;
  align-items: center;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--line-light);
  flex-direction: column;
  gap: 16px;
}

.business-card-qr img {
  padding: 10px;
  background: var(--white);
  border-radius: 16px;
}

.business-card-qr .button {
  width: 100%;
}

/* Bilingual chrome: only the active language's labels are in the layout */
.i18n-ar {
  display: none;
}

[dir="rtl"] .i18n-en {
  display: none;
}

[dir="rtl"] .i18n-ar {
  display: inline;
}

.mobile-lang-toggle {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  height: 52px;
  padding: 4px;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  gap: 2px;
}

.mobile-lang-toggle .lang-option {
  position: relative;
  z-index: 1;
  display: grid;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  place-items: center;
  transition: color 0.25s ease;
}

.mobile-lang-toggle .lang-option.language-active {
  color: var(--white);
}

.mobile-lang-toggle::before {
  position: absolute;
  top: 4px;
  inset-inline-start: 4px;
  width: 40px;
  height: 40px;
  background: var(--ink);
  border-radius: 50%;
  content: "";
  transition: transform 0.25s var(--ease);
}

.mobile-lang-toggle:has(.lang-option[data-lang="ar"].language-active)::before {
  transform: translateX(42px);
}

[dir="rtl"] .mobile-lang-toggle:has(.lang-option[data-lang="ar"].language-active)::before {
  transform: translateX(-42px);
}

.language-toggle .lang-option:not(.language-active) {
  opacity: 0.55;
}

/* ---------- Arabic / RTL ---------- */

html[dir="rtl"] {
  direction: rtl;
}

html[dir="rtl"] body {
  font-family: "IBM Plex Sans Arabic", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

/* The wordmark is a fixed logo lockup — never mirror it */
[dir="rtl"] .wordmark {
  direction: ltr;
}

[dir="rtl"] .desktop-nav {
  direction: rtl;
}

/* Arabic is cursive: tracking breaks letter joining, so reset it everywhere */
[dir="rtl"] .mega-label,
[dir="rtl"] .mega-menu a span,
[dir="rtl"] .market-label,
[dir="rtl"] .eyebrow,
[dir="rtl"] .display-title,
[dir="rtl"] .hero-bottom-line,
[dir="rtl"] .section-title,
[dir="rtl"] .card-number,
[dir="rtl"] .service-card h3,
[dir="rtl"] .trust-label,
[dir="rtl"] .trust-item,
[dir="rtl"] .feature-copy h2,
[dir="rtl"] .work-banner h2,
[dir="rtl"] .story-copy h2,
[dir="rtl"] .marquee span,
[dir="rtl"] .process-number,
[dir="rtl"] .process-card h3,
[dir="rtl"] .cta-section h2,
[dir="rtl"] .footer-label,
[dir="rtl"] .footer-motto,
[dir="rtl"] .metric strong,
[dir="rtl"] .metric span,
[dir="rtl"] .capability-card .cap-index,
[dir="rtl"] .capability-card h3,
[dir="rtl"] .split-copy h2,
[dir="rtl"] .dark-card span,
[dir="rtl"] .dark-card h3,
[dir="rtl"] .project-meta h3,
[dir="rtl"] .project-meta .project-kicker,
[dir="rtl"] .value-card h3,
[dir="rtl"] .insight-tag,
[dir="rtl"] .insight-card h3,
[dir="rtl"] .insight-readtime,
[dir="rtl"] .article-body h2,
[dir="rtl"] .article-body blockquote,
[dir="rtl"] .contact-details h2,
[dir="rtl"] .contact-line span,
[dir="rtl"] .form-field label,
[dir="rtl"] .form-legend,
[dir="rtl"] .legal-page h1,
[dir="rtl"] .team-card-badge,
[dir="rtl"] .team-card-name,
[dir="rtl"] .business-card-tagline,
[dir="rtl"] .business-card-label,
[dir="rtl"] .business-card-name {
  letter-spacing: normal;
}

/* Arabic ascenders and descenders need more room than tight Latin display type */
[dir="rtl"] .display-title,
[dir="rtl"] .section-title,
[dir="rtl"] .feature-copy h2,
[dir="rtl"] .work-banner h2,
[dir="rtl"] .story-copy h2,
[dir="rtl"] .split-copy h2,
[dir="rtl"] .cta-section h2,
[dir="rtl"] .contact-details h2,
[dir="rtl"] .legal-page h1 {
  line-height: 1.18;
}

[dir="rtl"] .article-body h2,
[dir="rtl"] .insight-card h3,
[dir="rtl"] .article-body blockquote {
  line-height: 1.35;
}

/* Hero artwork and its scrim mirror so the copy keeps the quiet side */
[dir="rtl"] .hero {
  background-position: center left;
  --hero-overlay: linear-gradient(-90deg, rgba(247, 244, 236, 0.92) 0%, rgba(247, 244, 236, 0.72) 35%, transparent 62%);
}

[dir="rtl"] .hero-dark {
  --hero-overlay: linear-gradient(-90deg, rgba(2, 11, 22, 0.97) 0%, rgba(2, 11, 22, 0.78) 37%, rgba(2, 11, 22, 0.08) 70%);
}

[dir="rtl"] .work-banner {
  background-image: linear-gradient(-90deg, rgba(2, 11, 22, 0.94) 0%, rgba(2, 11, 22, 0.5) 38%, transparent 68%), var(--work-image);
}

/* Space for the corner arrow moves with it */
[dir="rtl"] .service-card h3 {
  margin: auto 0 6px;
  margin-inline-end: 56px;
}

[dir="rtl"] .mega-menu {
  transform: translate(34%, 12px);
}

[dir="rtl"] .nav-group:hover .mega-menu,
[dir="rtl"] .nav-group:focus-within .mega-menu {
  transform: translate(34%, 0);
}

[dir="rtl"] .nav-link::after {
  transform-origin: left;
}

[dir="rtl"] .nav-link:hover::after,
[dir="rtl"] .nav-link[aria-current="page"]::after {
  transform-origin: right;
}

[dir="rtl"] .feature-list li::after {
  content: "↖";
}

[dir="rtl"] .marquee-track {
  animation-name: marquee-rtl;
}

@keyframes marquee-rtl {
  to {
    transform: translateX(50%);
  }
}

@media (max-width: 1180px) {
  :root {
    --shell: min(100% - 56px, 1120px);
  }

  .desktop-nav {
    gap: 22px;
  }

  .language-toggle {
    display: none;
  }

  .market-label {
    display: none;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 0;
  }

  .trust-strip > * {
    border-inline-start: 0;
  }

  .trust-label {
    grid-column: 1 / -1;
  }

  .feature-panel,
  .feature-panel.reverse {
    grid-template-columns: 1fr 1fr;
  }

  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid.values-five {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  :root {
    --shell: calc(100% - 40px);
    --header-height: 74px;
  }

  .desktop-nav,
  .header-cta,
  .language-toggle,
  .market-label {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .wordmark {
    font-size: 24px;
  }

  .wordmark-a {
    width: 21px;
    height: 20px;
  }

  .wordmark-a::before,
  .wordmark-a::after {
    height: 22px;
  }

  .hero,
  .page-hero {
    align-items: flex-start;
    min-height: max(720px, 100svh);
    background-position: 68% center;
    padding-bottom: 76px;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(247, 244, 236, 0.96) 4%, rgba(247, 244, 236, 0.82) 43%, rgba(247, 244, 236, 0.03) 75%);
  }

  .hero-dark::before {
    background: linear-gradient(180deg, rgba(2, 11, 22, 0.98) 4%, rgba(2, 11, 22, 0.79) 46%, rgba(2, 11, 22, 0.12) 76%);
  }

  .hero-content,
  .page-hero .hero-content {
    width: min(100%, 660px);
    padding-top: 96px;
  }

  .hero-bottom-line {
    right: 20px;
    left: 20px;
  }

  .display-title,
  .page-hero .display-title {
    font-size: clamp(54px, 10vw, 82px);
  }

  .section-header {
    align-items: start;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-copy {
    max-width: 680px;
  }

  .feature-panel,
  .feature-panel.reverse {
    grid-template-columns: 1fr;
  }

  .feature-panel.reverse .feature-image {
    order: 2;
  }

  .feature-image {
    min-height: 440px;
  }

  .story-grid,
  .split-layout,
  .contact-grid,
  .newsletter-layout {
    grid-template-columns: 1fr;
  }

  .story-image,
  .split-visual {
    min-height: 500px;
  }

  .process-grid,
  .dark-card-grid,
  .insights-grid {
    grid-template-columns: 1fr;
  }

  .dark-card h3 {
    margin-top: 60px;
  }

  .metric-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric:nth-child(3) {
    padding-inline-start: 0;
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }

  .metric:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-intro {
    grid-column: 1 / -1;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }

  .contact-details {
    position: static;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: calc(100% - 28px);
  }

  .hero,
  .page-hero {
    min-height: max(700px, 100svh);
    background-position: 70% center;
  }

  .hero-content,
  .page-hero .hero-content {
    padding-top: 74px;
  }

  .display-title,
  .page-hero .display-title {
    font-size: clamp(43px, 13.5vw, 68px);
    line-height: 0.93;
  }

  .cta-section h2 {
    font-size: clamp(36px, 11.2vw, 46px);
  }

  .legal-page h1 {
    font-size: clamp(38px, 12vw, 48px);
    overflow-wrap: anywhere;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-bottom-line {
    right: 14px;
    bottom: 25px;
    left: 14px;
    font-size: 7px;
    letter-spacing: 0.16em;
  }

  .services-grid,
  .capability-grid,
  .values-grid,
  .values-grid.values-five,
  .team-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .business-card-stage {
    padding: 60px 14px;
  }

  .business-card {
    padding: 30px 20px;
  }

  .newsletter-input {
    align-items: stretch;
    flex-direction: column;
  }

  .service-card {
    min-height: 230px;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .feature-copy {
    padding: 34px 25px 44px;
  }

  .feature-copy h2,
  .work-banner h2,
  .story-copy h2,
  .split-copy h2 {
    font-size: clamp(32px, 10.5vw, 42px);
  }

  .capability-card,
  .value-card {
    min-height: 220px;
  }

  .capability-card .cap-index,
  .process-number {
    margin-bottom: 46px;
  }

  .value-card h3 {
    margin-top: 60px;
    margin-bottom: 12px;
  }

  .process-card {
    min-height: 280px;
  }

  .feature-image,
  .story-image,
  .split-visual {
    min-height: 360px;
  }

  .work-banner {
    align-items: flex-start;
    min-height: 640px;
    padding: 40px 24px;
    background-position: 62% center;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .metric,
  .metric:first-child,
  .metric:nth-child(3) {
    padding: 24px 0;
    border-top: 1px solid var(--line);
    border-inline-start: 0;
  }

  .metric:first-child {
    border-top: 0;
  }

  .project-image {
    min-height: 330px;
  }

  .project-toolbar,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-intro {
    grid-column: 1 / -1;
  }

  .footer-motto {
    order: -1;
  }

  .form-row,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .project-form {
    padding: 25px 20px;
  }
}

@media (min-width: 901px) {
  .mobile-nav.open {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
