html, body {
  padding: 0;
  margin: 0;
}
body {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}
.menu {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  white-space: nowrap;
}
.menu a {
  font-size: 1.5em;
  text-transform: uppercase;
  font-weight: 200;
  color: black;
  background: white;
  padding: 0.6em 0.5em 0.3em;
  text-decoration: none;
  display: inline-block;
  margin: 0 0.3em;
}
.menu a:hover {
  box-shadow: -12px 8px 0px rgb(244, 233, 33);
}
.quad {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.quad > a {
  display: block;
  background-color: #ccc;
  background-position: 50% 50%;
  background-size: cover;
  position: relative;
}
.quad > a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle,rgba(0, 0, 0, 0.15) 40%, rgba(0, 0, 0, 0.7) 100%);
  opacity: 1;
  transition: opacity 0.5s ease;
}
.quad > a:hover::before {
  opacity: 0;
}
.quad > a:hover .label span {
  box-shadow: -12px 8px 0px rgb(244, 233, 33);
}
.quad .label {
  position: absolute;
  font-size: 2.5em;
  text-transform: uppercase;
  font-weight: 200;
  color: black;
}
.quad .label span {
  display: inline-block;
  padding: 3px 5px;
  background-color: white;
  margin: 6px 0;
}
.quad-trio {
  background-image: url(../img/home-trio.jpg);
}
.quad-trio .label {
  left: 30px;
  top: 30px;
}
.quad-sknail {
  background-image: url(../img/home-sknail.jpg);
}
.quad-sknail .label {
  left: 30px;
  bottom: 30px;
}
.quad-deghost {
  background-image: url(../img/home-deghost.jpg);
}
.quad-deghost .label {
  right: 30px;
  bottom: 30px;
}
.quad-rbcc .label {
  right: 30px;
  top: 30px;
}
body > .title {
  position: fixed;
  z-index: 1;
  top: 50%;
  left: 50%;
  height: 90vh;
  width: 90vh;
  background: url(../img/losange.svg) 50% 50%;
  background-size: 100% 100%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
body > .title > div {
  position: absolute;
  top: 43%;
  left: 50%;
  width: 34%;
  transform: translate(-50%, -50%);
  pointer-events: all;
}
body > .title > div img {
  display: block;
}
body > .title > div > div {
  position: absolute;
  top: 100%;
  left: 22.5%;
}
body > .title h1 {
  margin: 10px 0 0 0;
  font-size: 1.25em;
}
body > .title h2 {
  margin: 0;
  font-size: .875em;
  font-weight: 300;
  white-space: nowrap;
}

.popin {
  position: fixed;
  transition: all 0.3s ease;
  box-sizing: border-box;
  padding: 40px;
  background-color: white;
  pointer-events: none;
  opacity: 0;
  z-index: 5;
  overflow: auto;
  line-height: 1.4;
}
.popin h3 {
  text-transform: uppercase;
  font-size: 2em;
  font-weight: 200;
  position: relative;
}
.popin h3::before {
  content: '';
  position: absolute;
  left: -25px;
  bottom: -4px;
  height: 24px;
  width: 112px;
  background: rgb(244, 233, 33);
  z-index: -1;
}
.popin.visible {
  pointer-events: all;
  opacity: 1;
}
.popin .container {
  max-width: 50em;
}
.popin .bt-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  overflow: hidden;
  white-space: nowrap;
  text-indent: 80px;
  z-index: 100;
}
.popin .bt-close::after,
.popin .bt-close::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 20px;
  background: rgb(244, 233, 33);
}
.popin .bt-close::after {
  transform: rotate(45deg);
}
.popin .bt-close::before {
  transform: rotate(-45deg);
}
#contact {
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 10px solid white;
}
#contact .container {
  margin: 0 auto;
}
#contact .bt-close {
  top: 100px;
}
.social-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.social-links li {
  display: inline-block;
  margin: 0 1em 0 0;
  padding: 0;
}
.social-links a {
  display: block;
  background-color: #eee;
  width: 6em;
  height: 6em;
  border-radius: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: black;
  transition: all 0.3s ease;
}
.social-links a:hover {
  background-color: #ccc;
  box-shadow: 0px 8px 0px rgb(244, 233, 33);
}
.social-links a:hover svg {
  color: rgb(244, 233, 33);
}
.social-links a span {
  display: block;
  font-size: 0.875em;
  margin-top: 3px;
}
#about {
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 10px solid white;
}
#about .container {
  margin: 0 auto;
}
#about .bt-close {
  top: 100px;
}
#trio {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 80%;
}
#trio.visible {
  left: 20%;
}

.bio > div {
  display: grid;
  grid-template-columns: 300px auto;
  gap: 1.5em;
  margin-bottom: 1.5em;
}
.bio > div img {
  max-width: 100%;
  height: auto;
}
.bio .img {
  position: relative;
}
.bio .img h4 {
  padding: 5px 10px;
  background-color: white;
  font-weight: 200;
  text-transform: uppercase;
  margin: 0;
  font-size: 1.25em;
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  box-shadow: -6px 9px 0 rgb(244, 233, 33);
} 
.bio p:first-child {
  margin-top: 0;
}

@media (max-width: 950px) or (max-height: 540px) {
  .quad {
    position: static;
    display: block;
  }
  .quad > a {
    height: 300px;
  }
  .quad > a::before {
    display: none;
  }
  body > .title {
    position: relative;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    height: auto;
    width: auto;
    transform: none;
    padding: 3em 0 2em;
  }
  body > .title > div {
    position: static;
    width: 265px;
    transform: none;
  }
  body > .title > div > div {
    position: static;
    margin-left: 22.5%;
  }
  #about, #contact, #trio {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-top: 0;
    width: auto;
  }
  #trio.visible {
    left: 0;
  }
  #trio .container {
    margin: 0 auto;
  }
  #about .bt-close, #contact .bt-close {
    top: 20px;
  }
  .bio > div {
    grid-template-columns: 200px auto;
  }
  .menu a {
    box-shadow: 0px 3px 5px rgba(0,0,0,0.2);
    font-size: 1.25em;
  }
  .menu {
    right: 20px;
    left: auto;
    transform: none;
  }
}
@media (max-width: 560px) {
  .bio > div {
    grid-template-columns: 1fr;
  }
}