@font-face {
  font-family: "Noto Kufi";
  src: url("assets/noto-kufi-arabic-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Kufi";
  src: url("assets/noto-kufi-arabic-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #27285d;
  --indigo: #3e3b9f;
  --accent: #58a175;
  --coral: #c55f62;
  --font: "Noto Kufi", sans-serif;
  --h0: 2.5rem;
  --h1: 1.75rem;
  --h2: 1.5rem;
  --h3: 1.375rem;
  --h4: 1.125rem;
  --body: 0.9375rem;
  --section-pad: 3.5rem;
  --section-vertical-spacing: 3.5rem;
  --gutter: 1.25rem;
  --header-height: 82px;
}

@media screen and (min-width: 700px) {
  :root {
    --h0: 3.25rem;
    --h1: 2.25rem;
    --h2: 1.75rem;
    --h3: 1.625rem;
    --h4: 1.25rem;
    --body: 1.0625rem;
    --section-pad: 5rem;
    --section-vertical-spacing: 5rem;
    --gutter: 2rem;
    --header-height: 100px;
  }
}

@media screen and (min-width: 1000px) {
  :root {
    --h0: 4rem;
    --h1: 3rem;
    --h2: 2.5rem;
    --h3: 1.75rem;
    --h4: 1.5rem;
    --section-pad: 7rem;
    --section-vertical-spacing: 7rem;
    --gutter: 3rem;
    --header-height: 118px;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--body);
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}

#about,
#services,
#partners,
#contact {
  scroll-margin-top: var(--header-height);
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

a {
  color: inherit;
}

button,
a {
  font-family: inherit;
}

/* Italics are not italic. They use the accent colour. */
em,
i {
  font-style: normal;
  color: var(--accent);
}

.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;
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 80;
  background: #fff;
  color: var(--indigo);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

.skip:focus {
  top: 1rem;
}

.h0 {
  font-size: var(--h0);
  font-weight: 700;
  line-height: 1.4;
}

.h1,
h2.h1 {
  font-size: var(--h1);
  font-weight: 700;
  line-height: 1.4;
}

h2 {
  font-size: var(--h2);
  font-weight: 700;
  line-height: 1.4;
}

.h3 {
  font-size: var(--h3);
  font-weight: 700;
  line-height: 1.4;
}

.h4,
.kicker {
  font-size: var(--h4);
  font-weight: 700;
  line-height: 1.4;
}

.subheading {
  font-size: var(--body);
  font-weight: 700;
  line-height: 1.6;
}

.prose > * + * {
  margin-top: 1rem;
}

.prose p + p {
  margin-top: 1.5rem;
}

.button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 1.5rem;
  border: 0;
  border-radius: 1rem;
  background: var(--accent);
  color: #fff;
  font-size: var(--body);
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
  cursor: pointer;
}

.button--xl {
  padding: 1.05rem 2.5rem;
}

.button--coral {
  background: var(--coral);
}

.button:hover {
  filter: brightness(1.06);
}

.button:focus-visible,
.video__play:focus-visible,
.contact-band a:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
}

.site-header {
  position: relative;
  z-index: 30;
  height: var(--header-height);
  color: #fff;
  background: transparent;
}

.site-header.is-solid {
  position: sticky;
  top: 0;
  color: var(--indigo);
  transform: translateY(0);
  transition: transform 0.15s ease;
}

.site-header.is-solid.is-offscreen {
  transform: translateY(-100%);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-inline: var(--gutter);
  background: rgb(255 255 255 / 0);
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition: color 0.25s, background 0.25s, -webkit-backdrop-filter 0.25s, backdrop-filter 0.25s;
}

.site-header.is-solid .site-header__bar {
  background: rgb(255 255 255 / 0.74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.logo {
  display: grid;
  justify-items: center;
  line-height: 0;
}

.logo img {
  grid-area: 1 / 1;
  height: 58px;
  width: auto;
  transition: opacity 0.25s;
}

.logo__color {
  opacity: 0;
}

.site-header.is-solid .logo__color {
  opacity: 1;
}

.site-header.is-solid .logo__light {
  opacity: 0;
}

@media screen and (min-width: 1000px) {
  .logo img {
    height: 70px;
  }
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 560px;
  height: 560px;
  margin-block-start: calc(-1 * var(--header-height));
  color: #fff;
  overflow: hidden;
}

.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media img {
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.15);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(1000px, 100%);
  margin-inline: auto;
  padding: 2rem var(--gutter) 2.5rem;
  text-align: center;
  text-shadow: 0 1px 16px rgb(0 0 0 / 0.28);
}

@media screen and (min-width: 700px) {
  .hero__content {
    margin-inline-start: var(--gutter);
    margin-inline-end: auto;
    text-align: start;
    padding-block-end: 3.5rem;
  }
}

@media screen and (min-width: 1000px) {
  .hero {
    height: 640px;
  }
}

.intro {
  padding: var(--section-pad) var(--gutter);
  text-align: center;
}

.intro__inner {
  max-width: 650px;
  margin-inline: auto;
}

.intro h2 {
  color: var(--indigo);
}

.waveform {
  display: block;
  width: 7.5rem;
  height: auto;
  margin-inline: auto;
}

.about {
  padding: 0 var(--gutter) var(--section-pad);
}

.about__grid {
  display: grid;
  gap: 1.25rem;
}

.about__media {
  order: -1;
}

.about__copy,
.about__media {
  border-radius: 0.75rem;
  overflow: hidden;
}

.about__copy {
  padding: 2.5rem 2rem;
  color: var(--indigo);
  text-align: center;
  display: grid;
  align-content: center;
}

.about__media img,
.service__media img,
.contact-band__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media screen and (min-width: 1000px) {
  .about__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
    align-items: stretch;
  }

  .about__copy {
    order: 0;
  }

  .about__media {
    order: 1;
  }

  .about__media img {
    min-height: 100%;
    height: 100%;
  }
}

.services {
  padding-block-end: var(--section-pad);
}

.service {
  display: grid;
  background: var(--indigo);
  color: #fff;
}

.service--flip .service__media {
  order: -1;
}

.service__copy {
  padding: 2.5rem 2rem;
  text-align: center;
  display: grid;
  align-content: center;
  justify-items: center;
}

@media screen and (min-width: 1000px) {
  .service {
    grid-template-columns: 1fr 1fr;
    min-height: 34rem;
  }

  .service--flip .service__copy {
    order: 0;
  }

  .service--flip .service__media {
    order: 1;
  }

  .service__copy {
    padding: 3.5rem 3rem;
  }

  .service__media img {
    min-height: 100%;
    height: 100%;
  }
}

.partners {
  padding: 0 var(--gutter) var(--section-pad);
  color: var(--indigo);
  text-align: center;
}

.logo-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 280px));
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding: 0;
  list-style: none;
}

.logo-list__item {
  display: grid;
  place-items: center;
  min-height: 11rem;
  padding: 1.5rem;
  background: #fff;
}

.logo-list__item img {
  width: auto;
  max-width: 100%;
  max-height: 7.5rem;
  height: auto;
  object-fit: contain;
}

@media screen and (min-width: 700px) {
  .logo-list__item {
    padding: 1.25rem;
  }

  .logo-list {
    grid-template-columns: repeat(3, minmax(0, 280px));
  }
}

@media screen and (min-width: 1000px) {
  .logo-list {
    grid-template-columns: repeat(4, minmax(0, 280px));
  }
}

@media screen and (min-width: 1150px) {
  .logo-list {
    grid-template-columns: repeat(8, minmax(0, 280px));
  }

  .logo-list__item {
    min-height: 9rem;
  }
}

.video {
  --video-height: 480px;
  position: relative;
  height: var(--video-height);
  background: #000;
  overflow: hidden;
}

@media screen and (min-width: 1000px) {
  .video {
    --video-height: 500px;
  }
}

.video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100%, calc(var(--video-height) * 16 / 9));
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  transform: translate(-50%, -50%);
}

.video__play {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #000;
  color: #fff;
  cursor: pointer;
}

.video__play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video__play::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.09);
}

.video-play-button {
  --play-button-shadow-size: 12px;
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  color: var(--accent);
  filter: drop-shadow(0 16px 50px rgb(0 0 0 / 0.05));
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.video-play-button svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 50%;
}

.video-play-button::before {
  content: "";
  box-sizing: content-box;
  position: absolute;
  top: calc(-1 * var(--play-button-shadow-size));
  left: calc(-1 * var(--play-button-shadow-size));
  width: 100%;
  height: 100%;
  padding: var(--play-button-shadow-size);
  border-radius: 100%;
  background: radial-gradient(50% 50% at 50% 50%, rgb(88 161 117 / 0), rgb(88 161 117));
  opacity: 0.3;
  animation: ping 2s ease-in-out infinite alternate;
}

@media screen and (min-width: 700px) {
  .video-play-button {
    --play-button-shadow-size: 20px;
    width: 5rem;
    height: 5rem;
  }
}

@keyframes ping {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(0.8);
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-play-button::before {
    animation: none;
  }
}

.nus {
  padding: var(--section-pad) var(--gutter);
}

.nus__frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 20rem;
  height: 27.5rem;
  overflow: hidden;
  border-radius: 1.5rem;
  color: #fff;
  text-align: center;
  box-shadow: 0 18px 50px rgb(39 40 93 / 0.1);
}

.nus__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nus__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(33 33 120 / 0.84);
}

.nus__text {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  padding: 2rem 1.5rem;
}

.contact-band {
  display: grid;
}

.contact-band__media {
  min-height: 0;
}

.contact-band__copy {
  padding: 2.5rem 2rem 3rem;
  background: radial-gradient(#f06845, #b23d20 100%);
  color: #fff;
  text-align: center;
  display: grid;
  align-content: center;
  justify-items: center;
}

.contact-icon {
  width: 4.5rem;
  height: auto;
}

.social,
.social-media {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-block-start: 1rem;
  padding: 0;
  list-style: none;
}

.social img,
.social-media img {
  height: 2.5rem;
  width: auto;
}

.contact-band a {
  text-decoration: none;
}

.contact-band a:hover {
  text-decoration: underline;
}

@media screen and (min-width: 1000px) {
  .contact-icon {
    width: 7.5rem;
  }

  .contact-band {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .contact-band__copy {
    padding: 4rem 3rem;
  }

  .contact-band__media img {
    min-height: 100%;
    height: 100%;
  }
}

/* Footer customisations carried from the brochure site. */
.footer {
  position: relative;
  padding-block-start: calc(var(--section-vertical-spacing) + 36px + 1rem);
  text-align: center;
}

.footer__image {
  position: absolute;
  top: -36px;
  left: 50%;
  width: 210px;
  transform: translateX(-50%);
}

.footer .h6 {
  font-weight: normal;
}

.c-footer__block-list {
  display: grid;
  justify-content: center;
  align-items: start;
  gap: min(var(--section-vertical-spacing), 2.5rem);
}

.footer .social-media--list {
  justify-content: center;
  margin-block-start: 1rem;
}

.footer .social-media--list svg {
  height: 80px;
  width: auto;
}

.footer .social-media--list .social-media__item {
  opacity: 1;
}

@media screen and (min-width: 1000px) {
  .footer {
    padding-block-start: calc(var(--section-vertical-spacing) + 62px + 1rem);
  }

  .footer__image {
    top: -62px;
    width: 360px;
  }

  .c-footer__block-list {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 3rem;
  }

  .c-footer__block-item {
    width: 33%;
    text-align: center;
  }

  .footer__aside {
    grid-auto-flow: column;
    justify-content: center;
  }
}
