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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  overflow-anchor: none;
}

body {
  margin: 0;
  min-height: 100%;
  background-color: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  font-family: "Space Mono", monospace;
  font-size: 18px;
  line-height: 170%;
}

img {
  max-width: 100%;
  vertical-align: middle;
  display: inline-block;
  border: 0;
}

h1, h2, h3, h4 {
  margin-top: 0;
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 300;
}

h4 {
  margin-bottom: 19px;
  font-size: 30px;
  line-height: 135%;
}

p {
  margin-top: 0;
  margin-bottom: 28px;
}

a {
  color: #fff;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .75);
  outline-offset: 4px;
  border-radius: 3px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 40px 0;
}

.nav-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  transition: opacity .4s ease;
}

.nav-block.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
}

.logo {
  height: 20px;
  width: auto;
}

/* Hero grid */
.transformed-hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
}

.grid-hero {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: column;
  gap: 3vw;
  align-items: start;
  width: 100%;
  min-height: 100vh;
}

.grid-hero---row-1,
.grid-hero---row-2,
.grid-hero---row-3,
.grid-hero---row-4 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3vw;
  align-items: start;
  min-width: 0;
}

@keyframes hero-slide-up {
  from {
    opacity: 0;
    transform: translate3d(0, 12vh, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes hero-slide-down {
  from {
    opacity: 0;
    transform: translate3d(0, -12vh, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.grid-hero---row-1 { animation: hero-slide-up 1s cubic-bezier(.16, 1, .3, 1) 0ms both; }
.grid-hero---row-2 { animation: hero-slide-down 1s cubic-bezier(.16, 1, .3, 1) 60ms both; }
.grid-hero---row-3 { animation: hero-slide-up 1s cubic-bezier(.16, 1, .3, 1) 120ms both; }
.grid-hero---row-4 { animation: hero-slide-down 1s cubic-bezier(.16, 1, .3, 1) 180ms both; }

.grid-hero---row-2,
.grid-hero---row-4 {
  margin-top: 12vh;
}

.grid-hero picture {
  display: block;
}

.image-hero {
  display: block;
  object-fit: cover;
  border-radius: 10px;
  width: 100%;
  height: auto;
  aspect-ratio: 500 / 667;
}

/* Content sections */
.section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5vw 40px;
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1320px;
}

.welcome {
  width: 100%;
  margin-top: 10vw;
  margin-bottom: 5vw;
}

.heading-welcome {
  color: #fff;
  max-width: 1220px;
  margin-bottom: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(28px, 4.5vw, 50px);
  font-weight: 300;
  line-height: 136%;
}

.welcome .heading-welcome:not(:last-child) {
  margin-bottom: 1.36em;
}

.heading-welcome.hw1 {
  font-weight: 400;
}

.heading-welcome.hwm2,
.heading-welcome.hwm3 {
  font-size: clamp(20px, 2.6vw, 30px);
}

.block-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.grid-services {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 70px;
  width: 100%;
  margin-top: 50px;
}

.services {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.paragraph {
  color: #fff;
  max-width: 600px;
  font-family: "Space Mono", monospace;
  font-size: 16px;
  font-weight: 400;
}

.link-inline {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  padding-bottom: 1px;
  transition: border-color .2s cubic-bezier(.25, .46, .45, .94);
}

.link-inline:hover {
  border-bottom-color: #fff;
}

/* YouTube embed */
.youtube-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background-color: #000;
}

.youtube-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.section-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding: 50px 40px;
  font-family: "Space Mono", monospace;
  font-size: 16px;
}

.footer {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.link-footer {
  opacity: .5;
  color: #fff;
  margin: 0 16px;
  font-size: 16px;
  font-weight: 400;
  line-height: 140%;
  transition: opacity .2s cubic-bezier(.25, .46, .45, .94);
}

.link-footer:hover {
  opacity: 1;
}

/* Scroll reveal (progressive enhancement) */
.js-ready .reveal {
  opacity: 0;
  transform: translate3d(0, 25px, 0);
  transition: opacity .8s cubic-bezier(.25, .46, .45, .94),
              transform .8s cubic-bezier(.25, .46, .45, .94);
  transition-delay: var(--delay, 0ms);
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .grid-hero---row-1,
  .grid-hero---row-2,
  .grid-hero---row-3,
  .grid-hero---row-4 {
    animation: none;
  }
}

/* Responsive */
@media screen and (max-width: 991px) {
  h4 {
    font-size: 26px;
  }

  .grid-hero {
    gap: 2vw;
    min-height: auto;
  }

  .grid-hero---row-1,
  .grid-hero---row-2,
  .grid-hero---row-3,
  .grid-hero---row-4 {
    gap: 2vw;
  }

  .grid-hero---row-2,
  .grid-hero---row-4 {
    margin-top: 6vh;
  }

  .section {
    padding-top: 6vw;
    padding-bottom: 6vw;
  }

  .welcome {
    margin-top: 12vw;
    margin-bottom: 6vw;
  }

  .grid-services {
    gap: 50px;
    margin-top: 40px;
  }

  .section-footer {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

@media screen and (max-width: 767px) {
  h4 {
    font-size: 22px;
  }

  .navbar {
    margin: 20px 6% 0;
  }

  .section {
    padding: 8vw 6%;
  }

  .welcome {
    margin-top: 16vw;
    margin-bottom: 8vw;
  }

  .grid-services {
    gap: 30px;
    grid-template-columns: 1fr;
  }

  .section-footer {
    flex-direction: column;
    padding: 30px 6%;
  }

  .footer {
    padding: 12px 0;
  }
}

@media screen and (max-width: 479px) {
  h4 {
    font-size: 20px;
  }

  .footer {
    flex-direction: column;
  }

  .link-footer {
    padding: 10px 0;
  }
}
