@font-face {
  font-family: "Geologica";
  font-display: swap;
  font-weight: 300;
  src: url("/fonts/Geologica-Light.woff2") format("woff2"),
    url("/fonts/Geologica-Light.woff") format("woff");
}
@font-face {
  font-family: "Geologica";
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/Geologica-Regular.woff2") format("woff2"),
    url("/fonts/Geologica-Regular.woff") format("woff");
}
@font-face {
  font-family: "Geologica";
  font-display: swap;
  font-weight: 700;
  src: url("/fonts/Geologica-Bold.woff2") format("woff2"),
    url("/fonts/Geologica-Bold.woff") format("woff");
}

:root {
  --transition-opacity: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

html {
  min-height: 100dvh;
  font-size: 12px;
}

@media (min-width: 1024px) {
  html {
    font-size: 14px;
  }
}

@media (min-width: 1536px) {
  html {
    font-size: 16px;
  }
}

html,
body,
main {
  display: flex;
  flex-direction: column;
}

body {
  color: white;
  font-family: "Geologica", sans-serif;
  flex-grow: 1;
}

main {
  justify-content: space-between;
  flex-grow: 1;
}

.bg-video {
  position: fixed;
  inset: 0;
  z-index: -10;
}

.bg-video > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

nav {
  width: 100%;
  padding: 2rem 2rem 0;
  display: flex;
  gap: 1rem;
}

@media (min-width: 576px) {
  nav {
    padding: 3.125rem 3.125rem 0;
  }
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 1.125rem;
}

.logo > img {
  width: 3.5rem;
}

.logo > p {
  line-height: 1;
}

.nav-body {
  flex-grow: 1;
  border-bottom: 1px white solid;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: end;
}

.contact-us {
  padding: 0.5rem 0.8rem 0.625rem;
  font-size: 1.125rem;
  line-height: 1;
  position: relative;
  text-transform: lowercase;
  font-variant: small-caps;
  z-index: 0;
}

.contact-us::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-color: transparent;
  border-image: url("/images/btn_border.webp");
  border-image-slice: 16;
  border-width: 8px;
  border-style: solid;
  opacity: 1;
  transition: var(--transition-opacity);
  z-index: -2;
}

.contact-us:hover::before {
  opacity: 0;
}

.contact-us::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-image: url("/images/btn_bg.webp");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0;
  transition: var(--transition-opacity);
  z-index: -1;
}

.contact-us:hover::after {
  opacity: 1;
}

.main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  padding: 3.125rem 2rem;
  gap: 3.125rem;
}

@media (min-width: 576px) {
  .main {
    flex-direction: row;
    align-items: center;
    padding: 3.125rem;
  }
}

.main-text {
  font-size: 4rem;
  line-height: 1.02;
  font-weight: 700;
  margin: -0.5ch 0 -0.2ch;
}

@media (min-width: 576px) {
  .main-text {
    font-size: 5.5rem;
  }
}

@media (min-width: 768px) {
  .main-text {
    font-size: 6rem;
  }
}

@media (min-width: 992px) {
  .main-text {
    font-size: 6rem;
  }
}

@media (min-width: 1280px) {
  .main-text {
    font-size: 6.5rem;
  }
}

@media (min-width: 1536px) {
  .main-text {
    font-size: 7rem;
  }
}

.project-links {
  display: flex;
  flex-direction: column;
  gap: 3.125rem;
  justify-content: space-between;
}

.project-link {
  width: 12rem;
  height: 12rem;
  background-repeat: no-repeat;
  background-size: cover;
  font-size: 1.25rem;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .project-link {
    width: 13rem;
    height: 13rem;
  }
}

@media (min-width: 992px) {
  .project-link {
    width: 14rem;
    height: 14rem;
  }
}

@media (min-width: 1280px) {
  .project-link {
    width: 14.5rem;
    height: 14.5rem;
  }
}

@media (min-width: 1536px) {
  .project-link {
    width: 15.625rem;
    height: 15.625rem;
  }
}

.project-link > div {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: var(--transition-opacity);
}

.project-link:hover > div {
  opacity: 1;
}

.project-link-kd {
  position: relative;
  background-image: url("/images/kd.webp");
}

.project-link-kd::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 70%;
  top: -45%;
  left: -25%;
  background-image: url("/images/birds.webp");
  background-size: cover;
  pointer-events: none;
}

.project-link-kd > div {
  background: rgba(255, 0, 0, 0.75);
}

.project-link-history {
  background-image: url("/images/history.webp");
}

.project-link-history > div {
  background: rgba(23, 19, 23, 0.7);
}

footer {
  width: 100%;
  padding: 0 2rem 2rem;
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 3.125rem;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap-reverse;
}

@media (min-width: 576px) {
  footer {
    padding: 0 3.125rem 3.125rem;
  }
}

footer::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: -50%;
  background-image: url("/images/footer_bg.webp");
  background-size: cover;
  background-position: top;
  z-index: -1;
}

@media (orientation: landscape) {
  footer::before {
    height: max(30dvh, 150%);
    top: unset;
  }
}

.footer-warning {
  display: flex;
  align-items: end;
  gap: 1.75rem;
}

.footer-warning > img {
  display: none;
  width: 3.75rem;
}

.footer-warning > p {
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.1;
  text-transform: uppercase;
  color: #f8d744;
  margin-bottom: -2px;
}

@media (min-width: 576px) {
  .footer-warning > img {
    display: block;
  }

  .footer-warning > p {
    font-size: 1.4rem;
  }
}
