@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Manrope:wght@400;500;600;700&family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap");

:root {
  --ink: #17232b;
  --blue: #147caf;
  --blue-dark: #086791;
  --paper: #f4f1e8;
  --line: rgba(23, 35, 43, 0.17);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 75% 28%, rgba(20, 124, 175, 0.12), transparent 28rem),
    var(--paper);
  font-family: "DM Sans", sans-serif;
}

body.is-arabic {
  font-family: "Noto Sans Arabic", sans-serif;
}

body.is-arabic .hero__copy,
body.is-arabic .pillars,
body.is-arabic footer {
  direction: rtl;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.site-header,
main,
footer {
  width: min(100% - 48px, 1320px);
  margin-inline: auto;
}

.site-header {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand span {
  font-family: "Manrope", sans-serif;
  font-size: 1.42rem;
  font-weight: 500;
  letter-spacing: 0.26em;
}

.language {
  min-width: 96px;
  padding: 10px 16px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.language__ar,
body.is-arabic .language__fr {
  display: none;
}

body.is-arabic .language__ar {
  display: inline;
}

.hero {
  min-height: calc(100vh - 244px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: clamp(32px, 7vw, 110px);
  align-items: center;
  padding-block: clamp(64px, 9vh, 120px);
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  color: var(--blue-dark);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 42px;
  height: 2px;
  content: "";
  background: var(--blue);
}

h1 {
  max-width: 770px;
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(3.35rem, 6.65vw, 7.15rem);
  font-weight: 500;
  letter-spacing: -0.072em;
  line-height: 0.93;
}

body.is-arabic h1 {
  font-family: "Noto Sans Arabic", sans-serif;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

h1 span {
  display: block;
}

h1 .accent {
  position: relative;
  width: max-content;
  max-width: 100%;
  color: var(--blue);
}

h1 .accent::after {
  position: absolute;
  right: 0;
  bottom: -0.1em;
  width: 58%;
  height: 0.075em;
  content: "";
  background: var(--blue);
  border-radius: 999px;
  transform: rotate(-1.5deg);
}

.intro {
  max-width: 620px;
  margin: 42px 0 32px;
  color: rgba(23, 35, 43, 0.72);
  font-size: clamp(1rem, 1.3vw, 1.23rem);
  line-height: 1.72;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 12px 18px;
  color: white;
  background: var(--ink);
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 500;
}

.status__dot {
  width: 8px;
  height: 8px;
  background: #7ed7ff;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(126, 215, 255, 0.65);
  animation: pulse 2s infinite;
}

.hero__visual {
  position: relative;
  width: min(39vw, 540px);
  aspect-ratio: 1;
  justify-self: center;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  border: 1px solid rgba(20, 124, 175, 0.31);
  border-radius: 50%;
  animation: rotate 24s linear infinite;
}

.orb::after {
  position: absolute;
  top: 50%;
  left: -4px;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--blue);
  border-radius: 50%;
}

.orb--outer {
  inset: 0;
}

.orb--middle {
  inset: 12%;
  animation-direction: reverse;
  animation-duration: 18s;
}

.orb--inner {
  inset: 24%;
  animation-duration: 14s;
}

.mark {
  width: 53%;
  aspect-ratio: 1;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(244, 241, 232, 0.82);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 28px 80px rgba(23, 35, 43, 0.12);
  backdrop-filter: blur(12px);
}

.mark img {
  width: 78%;
  /* The source artwork also contains the wordmark. Mask it here so the
     circular symbol itself becomes the exact centre of the orbital visual. */
  clip-path: inset(0 0 22% 0);
  transform: translateY(10%);
}

.datum {
  position: absolute;
  padding: 5px 8px;
  color: rgba(23, 35, 43, 0.5);
  background: var(--paper);
  font-family: monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.datum--one { top: 16%; left: 3%; }
.datum--two { right: 1%; bottom: 24%; }
.datum--three { bottom: 2%; left: 30%; }

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

.pillars article {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 88px;
  padding: 18px 30px;
}

.pillars article + article {
  border-inline-start: 1px solid var(--line);
}

.pillars span {
  color: var(--blue);
  font-family: monospace;
  font-size: 0.68rem;
}

.pillars p {
  margin: 0;
  font-weight: 500;
}

footer {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(23, 35, 43, 0.52);
  font-size: 0.75rem;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(126, 215, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(126, 215, 255, 0); }
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

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

@media (max-width: 860px) {
  .site-header,
  main,
  footer {
    width: min(100% - 32px, 700px);
  }

  .site-header { min-height: 90px; }
  .brand span { font-size: 1.2rem; }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 52px;
    padding-block: 58px;
  }

  .hero__visual {
    width: min(82vw, 440px);
    grid-row: 1;
  }

  .hero__copy { grid-row: 2; }
  h1 { font-size: clamp(3.2rem, 14vw, 6rem); }
  .intro { margin-top: 34px; }

  .pillars {
    grid-template-columns: 1fr;
  }

  .pillars article + article {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 480px) {
  .hero { padding-block: 42px 54px; }
  .hero__visual { width: 86vw; }
  h1 { font-size: clamp(2.8rem, 14.4vw, 4.2rem); }
  .eyebrow { margin-bottom: 22px; font-size: 0.67rem; }
  .intro { font-size: 0.98rem; line-height: 1.62; }
  footer { min-height: 86px; }
}
