@font-face {
  font-family: "Gotham Bold";
  src: url("../fonts/Gotham-Bold.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "Gotham Medium";
  src: url("../fonts/Gotham-Medium.otf") format("opentype");
  font-display: swap;
}

:root {
  --red: #e32117;
  --text: #303030;
  --header-height: 80px;
  --circle-size: 260px;
}

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

html {
  font-size: 112.5%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-style: none;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

a {
  color: inherit;
}

p {
  margin: 0 0 1.45rem;
  font-size: 16px;
  line-height: 1.45;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  scroll-margin-top: var(--header-height);
}

.heading {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 80px 0 20px;
}

/* Rule sits below the text on any number of lines: it is pinned to the
   bottom of the heading box, and the box reserves room for it. */
.heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 85px;
  height: 4px;
  margin: 0 auto;
  background-color: var(--red);
}

h1.heading {
  font-family: "Gotham Medium", sans-serif;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 400;
  color: var(--text);
  text-transform: uppercase;
  text-align: center;
  padding: 0 10px 18px;
}

.lead {
  max-width: 650px;
  margin: 0 auto 45px;
  padding: 0 10px;
  font-size: 18px;
  line-height: 1.45;
  text-align: center;
}

.subheading {
  position: relative;
  margin: 0 0 1.45rem;
  padding-bottom: 30px;
  border-bottom: 4px solid #f0f0f0;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--text);
}

.row {
  display: flex;
  justify-content: space-between;
}

.col {
  width: 45%;
}

.site-header {
  position: fixed;
  top: 0;
  z-index: 10000;
  display: flex;
  justify-content: center;
  width: 100%;
  height: var(--header-height);
  background-color: #fff;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 1200px;
  height: 100%;
  transition: height 0.2s;
}

.logo {
  display: block;
  width: 230px;
  transition: width 0.2s;
}

.nav ul {
  display: flex;
  flex-flow: row nowrap;
}

.nav a {
  display: inline-block;
  margin: 0 10px;
  font-family: "Gotham Bold", sans-serif;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--red);
}

.burger {
  display: none;
  flex-flow: column nowrap;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  padding: 0;
  z-index: 20;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  width: 2rem;
  height: 0.2rem;
  background-color: #333;
  transform-origin: 1px;
  transition: all 0.15s linear;
}

.burger[aria-expanded="true"] span:nth-of-type(1) {
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-of-type(2) {
  opacity: 0;
  transform: translateX(100%);
}

.burger[aria-expanded="true"] span:nth-of-type(3) {
  transform: rotate(-45deg);
}

.video {
  position: relative;
  display: flex;
  height: 0;
  margin-top: var(--header-height);
  padding-bottom: 56.25%;
  background-color: #000;
}

.video__overlay,
.video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video__overlay {
  object-fit: cover;
}

.play-btn {
  position: absolute;
  top: calc(50% - 50px);
  left: calc(50% - 50px);
  z-index: 2;
  width: 100px;
  height: 100px;
  padding: 0;
  background-color: #fff;
  border: 6px solid var(--red);
  border-radius: 50%;
  cursor: pointer;
}

.play-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 100;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 25px solid var(--red);
  transform: translateX(-40%) translateY(-50%);
  transform-origin: center center;
  transition: all 0.4s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.play-btn::before {
  content: "";
  position: absolute;
  top: -25%;
  left: -25%;
  width: 150%;
  height: 150%;
  border: 10px solid #fff;
  border-radius: 50%;
  background: rgba(198, 16, 0, 0);
  opacity: 1;
  animation: pulsate 2s infinite forwards;
}

@keyframes pulsate {
  0% {
    transform: scale(0.6);
    opacity: 1;
    box-shadow: inset 0 0 25px 3px rgba(255, 255, 255, 0.75),
      0 0 25px 10px rgba(255, 255, 255, 0.75);
  }
  100% {
    transform: scale(1);
    opacity: 0;
    box-shadow: none;
  }
}

.circles {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

.stat {
  display: flex;
  flex-direction: column;
  margin-top: 55px;
}

.stat__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--circle-size);
  height: var(--circle-size);
  border-radius: 50%;
  background-color: var(--red);
  font-family: "Gotham Bold", sans-serif;
  font-size: 36px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.stat__title {
  width: var(--circle-size);
  margin: 25px 0 0;
  font-size: 18px;
  text-align: center;
  text-transform: uppercase;
}

.circles--contact {
  margin-bottom: 100px;
}

.person {
  position: relative;
  width: var(--circle-size);
  height: var(--circle-size);
  margin: 80px 0 0;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
}

.person__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.person__card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(227, 33, 23, 0.85);
  color: #fff;
  opacity: 0;
  transition: opacity 0.15s;
}

.person:hover .person__card,
.person:focus-within .person__card {
  opacity: 1;
}

.person__mark {
  width: 40px;
  height: auto;
  margin-bottom: 10px;
}

.person__name,
.person__role,
.person__phone {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.35;
  text-align: center;
  padding: 0 12px;
}

.person__links {
  display: flex;
  justify-content: space-around;
  width: 135px;
  margin-top: 15px;
}

.person__links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: #fff;
  border-radius: 50%;
}

.person__links img {
  width: 25px;
  height: auto;
}

.only-mobile {
  display: none;
}

.site-footer {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 214px;
  background: var(--red);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 10px;
  padding: 30px 0;
  text-align: center;
}

.site-footer p,
.site-footer a {
  color: #fff;
  font-size: 18px;
  text-decoration: none;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.site-footer__www {
  font-weight: 700;
}

@media (max-width: 1210px) {
  .site-header__inner {
    margin: 0 20px;
  }
}

@media (max-width: 840px) {
  .circles {
    flex-direction: column;
    align-items: center;
  }

  .person {
    overflow: visible;
  }

  .person__photo {
    display: none;
  }

  .person__card {
    opacity: 1;
    background-color: rgb(227, 33, 23);
  }

  .person__phone {
    display: none;
  }

  .person__links {
    width: 180px;
  }

  .only-mobile {
    display: block;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .logo {
    width: 180px;
  }

  .burger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    padding-top: 3.5rem;
    /* Translucency lives in the background colour, not on the layer, so the
       links themselves stay fully opaque and legible. */
    background-color: rgba(240, 240, 240, 0.97);
    transform: translateX(100%);
    transition: transform 0.2s ease-in-out;
  }

  .nav[data-open="true"] {
    transform: translateX(0);
  }

  .nav ul {
    flex-flow: column nowrap;
    text-align: center;
  }

  .nav li {
    margin-bottom: 25px;
  }

  .nav a {
    font-size: 30px;
  }

  .heading {
    margin-top: 60px;
  }

  .row {
    flex-direction: column;
  }

  .col {
    width: 100%;
  }
}

@media (max-width: 450px) {
  h1.heading {
    font-size: 30px;
  }

  .subheading {
    font-size: 20px;
  }

  .site-footer p,
  .site-footer a {
    font-size: 14px;
  }
}

@media (max-width: 340px) {
  h1.heading {
    font-size: 25px;
  }
}

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

  .play-btn::before {
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
