:root {
  --ink: #090909;
  --paper: #f4f1ea;
  --white: #ffffff;
  --muted: #a6a39c;
  --line: rgba(9, 9, 9, 0.16);
  --line-light: rgba(255, 255, 255, 0.2);
  --accent: #d8ff43;
  --page-pad: clamp(1.25rem, 4vw, 4.5rem);
  --display: clamp(3.25rem, 8.8vw, 9.5rem);
  --heading: clamp(2.55rem, 6vw, 6.3rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Geeza Pro", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

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

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

button {
  font: inherit;
}

[data-lang="en"] {
  display: none;
}

html[data-language="en"] [data-lang="ar"] {
  display: none;
}

html[data-language="en"] [data-lang="en"] {
  display: inline;
}

html[data-language="en"] p[data-lang="en"] {
  display: block;
}

.skip-link {
  position: fixed;
  inset-inline-start: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--ink);
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 5.25rem;
  padding: 0.65rem var(--page-pad);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 234, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 0.8rem;
  align-items: center;
  width: max-content;
  direction: ltr;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 2.05rem;
  height: 2.15rem;
  object-fit: cover;
}

.desktop-nav {
  display: flex;
  gap: clamp(1.35rem, 3vw, 3.25rem);
  font-size: 0.82rem;
  font-weight: 650;
}

.desktop-nav a {
  position: relative;
  padding-block: 0.75rem;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.45rem;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transition: transform 220ms var(--ease);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
}

.language-switch {
  justify-self: end;
  min-width: 4.25rem;
  padding: 0.62rem 0.9rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 750;
  border: 1px solid var(--ink);
  border-radius: 99rem;
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.language-switch:hover,
.language-switch:focus-visible {
  color: var(--white);
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(22rem, 0.8fr);
  min-height: 100svh;
  padding: 8.75rem var(--page-pad) 4.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: clamp(4rem, 9vw, 9rem) clamp(4rem, 9vw, 9rem);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-inline-end: clamp(1rem, 5vw, 6rem);
}

.eyebrow,
.section-label,
.status-label {
  margin: 0 0 2rem;
  font-size: 0.73rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 0.58rem;
  height: 0.58rem;
  margin-inline-end: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(216, 255, 67, 0.24);
}

.hero h1,
.section h2,
.capabilities-title,
.contact h2 {
  margin: 0;
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 0.93;
}

.hero h1 {
  max-width: 10ch;
  font-size: var(--display);
}

html[dir="rtl"] .hero h1,
html[dir="rtl"] .section h2,
html[dir="rtl"] .capabilities-title,
html[dir="rtl"] .contact h2 {
  letter-spacing: -0.045em;
}

.hero-intro {
  max-width: 32rem;
  margin: 2.25rem 0 0;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  color: rgba(9, 9, 9, 0.7);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 3rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: 3.35rem;
  padding: 0.85rem 1.35rem;
  font-size: 0.82rem;
  font-weight: 750;
  border: 1px solid var(--ink);
  border-radius: 99rem;
  transition: transform 180ms var(--ease), color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

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

.button-primary:hover,
.button-primary:focus-visible {
  color: var(--ink);
  background: var(--accent);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  color: var(--white);
  background: var(--ink);
}

.hero-mark {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding-inline-start: clamp(1rem, 3vw, 3.5rem);
  border-inline-start: 1px solid var(--line);
}

.hero-mark img {
  width: min(100%, 36rem);
  margin: auto;
  filter: contrast(1.05);
}

.mark-caption {
  display: flex;
  justify-content: space-between;
  padding-top: 1.2rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  border-top: 1px solid var(--line);
}

.section {
  display: grid;
  grid-template-columns: minmax(4rem, 0.2fr) minmax(0, 1.05fr) minmax(17rem, 0.75fr);
  gap: clamp(1.5rem, 4vw, 5rem);
  padding: clamp(6rem, 10vw, 10rem) var(--page-pad);
  border-bottom: 1px solid var(--line);
}

.section-index {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  opacity: 0.58;
}

.section-heading h2,
.careers h2 {
  font-size: var(--heading);
}

.section-copy {
  align-self: end;
  padding-bottom: 0.5rem;
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  color: rgba(9, 9, 9, 0.67);
}

.section-copy p {
  margin: 0;
}

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

.section-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-light);
}

.section-topline .section-label {
  margin-bottom: 1.5rem;
}

.capabilities {
  padding: clamp(6rem, 10vw, 10rem) var(--page-pad);
}

.capabilities-title {
  max-width: 14ch;
  margin-top: clamp(3rem, 7vw, 7rem);
  font-size: var(--heading);
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(4rem, 8vw, 8rem);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.capability-card {
  min-height: 24rem;
  padding: 1.5rem clamp(1.25rem, 2.8vw, 3rem) 2.4rem;
  border-inline-end: 1px solid var(--line-light);
}

.capability-card:last-child {
  border-inline-end: 0;
}

.card-number {
  display: block;
  margin-bottom: 5.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  color: var(--accent);
}

.capability-card h3 {
  margin: 0 0 1.2rem;
  font-size: clamp(1.65rem, 2.8vw, 2.7rem);
  font-weight: 620;
  letter-spacing: -0.04em;
}

.capability-card p {
  max-width: 31rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
}

.careers {
  grid-template-columns: minmax(4rem, 0.2fr) minmax(0, 1.05fr) minmax(19rem, 0.75fr);
}

.careers-copy p:last-child {
  max-width: 48rem;
  margin: 2.2rem 0 0;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: rgba(9, 9, 9, 0.68);
}

.role-status {
  align-self: end;
  padding: 1.4rem;
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.25);
}

.role-status-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.status-label {
  margin: 0;
}

.status-pill {
  padding: 0.42rem 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  border: 1px solid var(--ink);
  border-radius: 99rem;
}

.role-status p {
  margin: 1.3rem 0 0;
  color: rgba(9, 9, 9, 0.65);
}

.contact {
  padding: clamp(6rem, 10vw, 10rem) var(--page-pad) clamp(3.5rem, 7vw, 7rem);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(21rem, 0.72fr);
  gap: clamp(3rem, 8vw, 10rem);
  margin-top: clamp(4rem, 8vw, 8rem);
}

.contact h2 {
  max-width: 9ch;
  font-size: var(--heading);
}

.contact-details {
  align-self: end;
  border-top: 1px solid var(--line-light);
}

.contact-row {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 1rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line-light);
}

.contact-row span {
  color: rgba(255, 255, 255, 0.55);
}

.contact-row strong {
  font-weight: 550;
}

.contact-row-muted strong {
  color: var(--accent);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem var(--page-pad);
  color: var(--white);
  font-size: 0.72rem;
  background: var(--ink);
  border-top: 1px solid var(--line-light);
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  justify-self: end;
}

.footer-brand {
  font-weight: 750;
}

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 8.75rem;
  }

  .hero-copy {
    min-height: 68svh;
    padding-inline-end: 0;
  }

  .hero-mark {
    min-height: 38rem;
    margin-top: 3rem;
    padding: 3rem 0 0;
    border-top: 1px solid var(--line);
    border-inline-start: 0;
  }

  .hero-mark img {
    max-height: 32rem;
  }

  .section,
  .careers {
    grid-template-columns: 3rem 1fr;
  }

  .section-copy,
  .role-status {
    grid-column: 2;
  }

  .section-copy {
    max-width: 42rem;
  }

  .capability-list {
    grid-template-columns: 1fr;
  }

  .capability-card {
    min-height: auto;
    padding-block: 1.6rem 2.4rem;
    border-inline-end: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .capability-card:last-child {
    border-bottom: 0;
  }

  .card-number {
    margin-bottom: 4rem;
  }

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

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

  .site-footer p:last-child {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  :root {
    --display: clamp(3.2rem, 16vw, 5.3rem);
    --heading: clamp(2.6rem, 13vw, 4.5rem);
  }

  .site-header {
    min-height: 4.6rem;
  }

  .brand span {
    font-size: 0.8rem;
  }

  .hero {
    padding-top: 7.4rem;
  }

  .hero-copy {
    min-height: 72svh;
  }

  .hero-mark {
    min-height: 28rem;
  }

  .button {
    width: 100%;
  }

  .section,
  .careers {
    grid-template-columns: 1fr;
  }

  .section-index {
    margin-bottom: 1rem;
  }

  .section-copy,
  .role-status {
    grid-column: 1;
  }

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

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
