/********************
 GENERAL
*********************/

* {
  box-sizing: border-box;
  cursor: none !important;
}

html,
body {
  margin: 0;
  position: relative;
  scrollbar-gutter: stable;
}

html {
  --grey: #dbdbdb;
  --grey-450: #696969;
  --grey-500: #282828;
  --grey-600: #414141;
  --white: #ffffff;
  --black: #1c1c1c;
  --drivemono: "drivemono", sans-serif;
  --montreal: "montreal", sans-serif;
  --small-margin: 30px;
  --medium-margin: 30px;
  --bounce: cubic-bezier(0.45, 0.885, 0.32, 1.275);
  --navbar-height: 33px;
  --h100vh: calc(100vh - var(--small-margin) * 3 - var(--navbar-height));
  --h100svh: calc(100svh - var(--small-margin) * 3 - var(--navbar-height));
  --hl100vh: calc(100vh - var(--small-margin) - var(--navbar-height));
  --hl100svh: calc(100svh - var(--small-margin) - var(--navbar-height));
  --hm100vh: calc(100vh - var(--small-margin) * 2 - var(--navbar-height));
  --hm100svh: calc(100svh - var(--small-margin) * 2 - var(--navbar-height));
  --border: 1px solid var(--grey-600);
}

@media screen and (max-width: 1200px) {
  html {
    --small-margin: 30px;
    --medium-margin: 30px;
  }
}

@media screen and (max-width: 992px) {
  html {
    --small-margin: 15px;
    --medium-margin: 30px;
  }
}

@media screen and (max-width: 500px) {
  html {
    --small-margin: 10px;
    --medium-margin: 20px;
  }
}

a {
  text-decoration: none;
  cursor: pointer;
}

div {
  align-items: start;
}

img,
svg {
  display: block;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-track-piece {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--grey);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--grey-500);
}

::-webkit-scrollbar-thumb:active {
  background: var(--grey-600);
}

::-webkit-scrollbar-corner {
  background: var(--white);
}

/********************
 FONTS
*********************/

@font-face {
  font-family: "drivemono";
  src: url("../fonts/DriveMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: fallback;
}

@font-face {
  font-family: "montreal";
  src: url("../fonts/PPNeueMontreal-Thin.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: fallback;
}

@font-face {
  font-family: "montreal";
  src: url("../fonts/PPNeueMontreal-ThinItalic.woff2") format("woff2");
  font-weight: 200;
  font-style: italic;
  font-display: fallback;
}

@font-face {
  font-family: "montreal";
  src: url("../fonts/PPNeueMontreal-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: fallback;
}

@font-face {
  font-family: "montreal";
  src: url("../fonts/PPNeueMontreal-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: fallback;
}

@font-face {
  font-family: "montreal";
  src: url("../fonts/PPNeueMontreal-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: fallback;
}

@font-face {
  font-family: "montreal";
  src: url("../fonts/PPNeueMontreal-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: fallback;
}

@font-face {
  font-family: "montreal";
  src: url("../fonts/PPNeueMontreal-Bold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: fallback;
}

@font-face {
  font-family: "montreal";
  src: url("../fonts/PPNeueMontreal-Bolditalic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: fallback;
}

/********************
 TITLES AND TEXTS
*********************/

body {
  font-family: var(--montreal);
  font-size: 1rem;
  background-color: var(--black);
  color: var(--white);
}

p {
  margin: 0;
}

.p {
  line-height: 1.4;
}

h1,
.h1 {
  margin: 0;
  font-weight: 300;
  font-size: 2rem;
}

h2,
.h2 {
  margin: 0;
  font-weight: 300;
  font-size: 1.8rem;
}

h3,
.h3 {
  margin: 0;
  font-weight: 400;
}

@media screen and (max-width: 1500px) {
  h1,
  .h1 {
  }
}

@media screen and (max-width: 1200px) {
  h1,
  .h1 {
    font-size: 1.8rem;
  }
  h2,
  .h2 {
    font-size: 1.6rem;
  }
}

@media screen and (max-width: 992px) {
  h1,
  .h1 {
    font-size: 1.6rem;
  }

  h2,
  .h2 {
    font-size: 1.3rem;
  }
}

@media screen and (max-width: 500px) {
  h1,
  .h1 {
  }
}

/********************
 COMMONS
*********************/

.icon-svg {
  overflow: visible;
}

.icon-svg rect,
.icon-svg path {
  transition: width 0.3s var(--bounce), transform 0.3s var(--bounce);
}

.icon-svg rect:nth-child(3) {
  width: 0;
}

.icon-svg rect:nth-child(4) {
  width: 0;
}

.icon-svg:hover rect:nth-child(1) {
  width: 0;
  transform: translate(34.02px, 6.26px);
}

.icon-svg:hover rect:nth-child(2) {
  width: 0;
}

.icon-svg:hover rect:nth-child(3) {
  width: 13.74px;
}

.icon-svg:hover rect:nth-child(4) {
  width: 13.74px;
  transform: translate(19.45px, 24.65px);
}

.icon-svg:hover path:nth-child(5) {
  transform: translate(19.2px, 0px);
}

.icon-svg:hover path:nth-child(6) {
  transform: translate(-5.8px, 11.61px);
}

.big-link {
  display: inline-block;
  white-space: nowrap;
  position: relative;
}

.big-link::after {
  display: block;
  content: "";
  height: 2px;
  width: 0;
  left: 0;
  bottom: -5px;
  background-color: var(--white);
  transition: width 0.2s ease-in-out;
}

.big-link:hover::after {
  width: 100%;
}

.big-link > span {
  display: inline-block;
}

.big-link:hover > span {
  animation: arrow_bounce 0.5s var(--bounce) 0s 1 forwards;
}

@keyframes arrow_bounce {
  0% {
    transform: rotate(0deg);
  }
  40% {
    transform: rotate(-40deg);
  }
  80% {
    transform: rotate(10deg);
  }
  90% {
    transform: rotate(-7deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.section {
  padding: 0 var(--small-margin);
  position: relative;
}

.section-back {
  top: 0;
  left: var(--small-margin);
  position: absolute;
  z-index: 1;
  width: calc(100% - var(--small-margin) * 2);
  height: 100%;
  display: flex;
  justify-content: space-evenly;
}

.section-back > div {
  background-color: var(--grey-600);
  height: 100%;
  width: 1px;
}

.section-content {
  display: block;
  border: var(--border);
  border-bottom: none;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.section-content.empty {
  height: 200px;
}

@media screen and (max-width: 1200px) {
  .section-back > div:nth-child(4),
  .section-back > div:nth-child(3) {
    display: none;
  }
}

@media screen and (max-width: 992px) {
  .section-back > div:nth-child(2):last-child {
    display: none;
  }
  .section-content.empty {
    height: 100px;
  }
}

@media screen and (max-width: 650px) {
  .section-back > div:nth-child(2) {
    display: none;
  }
  .section-content.empty {
    height: 100px;
  }
}

.full-btn {
  padding: var(--medium-margin);
  display: flex;
  gap: var(--small-margin);
  align-items: center;
  transition: background-color 0.4s ease-in-out;
  color: var(--white);
  width: 100%;
  border-top: var(--border);
}

.full-btn.filled {
  background-color: var(--black);
}

.full-btn:hover {
  background-color: var(--grey-500);
}

.full-btn > span {
  text-align: right;
  transition: flex 0.4s ease-in-out;
}

.full-btn:hover > span {
  flex: 1;
}

/********************
 LOADING ANIM
*********************/
#loading_anim {
  position: fixed;
  z-index: 300;
  height: 100vh;
  height: 100svh;
  width: 100vw;
  overflow: hidden;
  top: 0;
  left: 0;
  background-color: var(--black);
  transition: opacity 0.4s ease-in-out;
  display: flex;
  align-items: center;
}

#loading_anim.hide {
  opacity: 0;
  pointer-events: none;
}

#loading_anim > div {
  width: 100%;
  padding-bottom: 83%;
  position: relative;
}

#loading_anim > div > lottie-player {
  max-width: 1920px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/********************
 CURSOR
*********************/
#cursor {
  position: fixed;
  z-index: 299;
  height: 10px;
  width: 10px;
  border: 1px solid var(--white);
  pointer-events: none;
  background-color: var(--white);
  transition: height 0.2s ease-in-out, width 0.2s ease-in-out,
    opacity 0.2s ease-in-out, background-color 0.2s ease-in-out;
  border-radius: 50%;
}

#cursor.hide {
  opacity: 0;
  height: 0;
  width: 0;
}

#cursor.active {
  background-color: transparent;
  height: 20px;
  width: 20px;
}

/********************
 HEADER
*********************/
#navbar {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  padding: var(--small-margin) calc(var(--small-margin) + var(--medium-margin));
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  height: calc(var(--navbar-height) + var(--small-margin) * 2);
}

#navbar > a {
  pointer-events: all;
}

.navbar-elements {
  display: flex;
  gap: 40px;
  align-items: center;
  width: 100%;
  height: 100%;
  justify-content: flex-end;
  padding-right: var(--small-margin);
}

.navbar-elements > a {
  color: var(--white);
  transition: opacity 0.2s ease-in-out;
  font-size: 0.95rem;
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: 7px;
}

.navbar-elements > a > img {
  transform: translateY(-1px);
  height: 1rem;
  width: auto;
}

.navbar-elements > a.active {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.navbar-elements > a:hover {
  opacity: 0.6;
}

.navbar-space {
  padding: 0 var(--small-margin);
  position: relative;
}

.navbar-space > div {
  height: calc(var(--navbar-height) + var(--small-margin) * 2);
  border-left: var(--border);
  border-right: var(--border);
  width: 100%;
  transition: border 0.2s ease-in-out;
}

.navbar-space.on-index > div {
  transition: border 0.2s ease-in-out;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
}

.navbar-space .navbar-anim {
  display: none;
  height: 0;
  position: absolute;
  top: 0;
  left: var(--small-margin);
  width: 1px;
  background-color: var(--grey-600);
  transition: height 0.4s linear;
}

.navbar-space .navbar-anim + .navbar-anim {
  right: var(--small-margin);
  left: unset;
}

.navbar-space.on-index .navbar-anim {
  display: block;
}

#burger {
  position: fixed;
  top: calc(var(--small-margin) + 8px);
  right: calc(var(--small-margin) + var(--medium-margin));
  display: none;
  flex-direction: column;
  height: 18px;
  width: 28px;
  justify-content: space-between;
  z-index: 100;
  cursor: pointer;
}

#burger > span {
  width: 100%;
  height: 2px;
  background-color: var(--white);
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

#burger:not(.active):hover > span:nth-child(1) {
  transform: translateY(2px);
}

#burger:not(.active):hover > span:nth-child(3) {
  transform: translateY(-2px);
}

#burger.active > span:nth-child(1) {
  transform: translateY(8px) rotate(24deg);
}

#burger.active > span:nth-child(2) {
  transform: translateX(20px);
  opacity: 0;
}

#burger.active > span:nth-child(3) {
  transform: translateY(-8px) rotate(-24deg);
}

#burger.active:hover > span:nth-child(1) {
  transform: translateY(8px) rotate(-24deg);
}

#burger.active:hover > span:nth-child(3) {
  transform: translateY(-8px) rotate(24deg);
}

#mobile_menu {
  padding: var(--small-margin);
  position: fixed;
  z-index: 99;
  background-color: rgba(0, 0, 0, 0.75);
  display: none;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  height: 100vh;
  height: 100svh;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease-in-out;
  transform: translateX(100%);
  pointer-events: none;
}

#mobile_menu > a {
  color: var(--white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 9px;
}

#mobile_menu > a.active {
  text-decoration: underline;
  text-underline-offset: 0.4rem;
}

#mobile_menu > a > img {
  height: 1.2rem;
  transform: translateY(-2px);
}

#mobile_menu.active {
  transform: translateX(0);
  pointer-events: all;
}

@media screen and (max-width: 900px) {
  #burger,
  #mobile_menu {
    display: flex;
  }

  .navbar-elements {
    display: none;
  }

  body.menued {
    overflow: hidden;
  }
}

/********************
 FOOTER
*********************/
.foot {
  padding: var(--small-margin);
  padding-top: 0;
}

.foot-top {
  border: var(--border);
  border-bottom: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  font-size: 1.4rem;
  position: relative;
}

.foot-top > .section-back {
  width: 100%;
  left: 0;
}

.foot-top > div:not(.section-back) {
  padding: var(--medium-margin);
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.foot-top > div > img {
  margin-bottom: 15px;
  height: 40px;
}

.foot-top > div:first-child > img {
  margin-bottom: 25px;
  height: 30px;
}

.foot-top > div > p > a {
  color: var(--white);
}

.foot-top > div:nth-child(3) {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.foot-top > div > div > p {
  margin-bottom: 5px;
}

.foot-top > div > div > a {
  display: block;
  color: var(--white);
  font-size: 1rem;
  line-height: 1.2;
  font-family: var(--drivemono);
  transition: opacity 0.2s ease-in-out;
  width: fit-content;
}

.foot-top > div > div > a:hover {
  opacity: 0.6;
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--medium-margin);
  border: var(--border);
}

.foot-bottom > div {
  display: flex;
  gap: 40px;
  align-items: center;
}

.foot-bottom > div > a {
  color: var(--white);
  transition: opacity 0.2s ease-in-out;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.foot-bottom > div > a > img {
  height: 1rem;
  transform: translateY(-1px);
}

.foot-bottom > div > a.active {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.foot-bottom > div > a:hover {
  opacity: 0.6;
}

.foot-below {
  text-align: right;
  padding: 5px;
  font-size: 0.7rem;
  color: var(--grey);
}

.foot-below a {
  color: var(--white);
  transition: opacity 0.2s ease-in-out;
}

.foot-below a:hover {
  opacity: 0.6;
}

@media screen and (max-width: 1200px) {
  .foot-top {
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 1000px) {
  .foot-top {
    grid-template-columns: 1fr 1fr;
  }
  .foot-top > div:nth-child(3) {
    grid-column: 1/3;
    border-top: var(--border);
    border-left: none;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background-color: var(--black);
  }
  .foot-top > div:nth-child(3)d > div + div > p {
    margin-top: 0;
  }
  .foot-top > div:nth-child(3) > div > a {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 900px) {
  .foot-bottom > div {
    display: none;
  }
}

@media screen and (max-width: 650px) {
  .foot-top {
    grid-template-columns: 1fr;
    font-size: 1.1rem;
  }
  .foot-top > div:first-child {
    border-bottom: var(--border);
    border-right: none;
  }
  .foot-top > div:nth-child(3) {
    grid-template-columns: 1fr;
    grid-column: unset;
    gap: 20px;
  }
  .foot-top > div:nth-child(3) > div > a {
    font-size: 0.8rem;
  }
}

/*************
  404
**************/
.p404 {
  width: 100%;
  height: var(--h100vh);
  height: var(--h100svh);
  text-align: center;
  font-size: 1.2rem;
  padding: 0 var(--small-margin);
}

.p404 > div {
  width: 100%;
  height: 100%;
  border: var(--border);
  padding: var(--medium-margin);
  border-bottom: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.p404 h1 {
  font-size: 6rem;
  line-height: 1;
  font-family: var(--drivemono);
}

.p404 p {
  margin: 20px 0;
  font-size: 1rem;
}

.p404 .big-link {
  color: var(--white);
}

@media screen and (max-width: 650px) {
  .p404 h1 {
    font-size: 4rem;
  }
}

/********************
 LEGALS
*********************/
.legals {
  padding: var(--medium-margin);
}

.legals h1 {
  font-weight: 400;
}

.legals > * {
  max-width: 1200px;
}

.legals h2 {
  margin-top: 60px;
}

.legals p {
  margin-top: 15px;
}

.legals a {
  color: #868686;
  transition: color 0.2s ease-in-out;
}

.legals a:hover {
  color: white;
}

.legals input[type="checkbox"] {
  accent-color: var(--grey-500);
  cursor: pointer;
}

.legals input[type="checkbox"] + label {
  cursor: pointer;
}

.legals button {
  margin-top: 40px;
  background: none;
  appearance: none;
  border: none;
  color: white;
  font-family: var(--montreal);
  padding: 0;
  padding-bottom: 2px;
  cursor: pointer;
  font-size: 1.3rem;
  width: max-content;
  display: block;
}

.legals button::after {
  display: block;
  content: "";
  width: 0;
  height: 1px;
  background-color: var(--white);
  transition: width 0.2s ease-in-out;
}

.legals button:hover::after {
  width: 100%;
}

/*************
  NEWSLETTER BANNER
**************/

.newsletter {
  position: fixed;
  bottom: 0;
  right: 0;
  padding: var(--medium-margin);
  background-color: var(--grey-600);
  z-index: 99;
  max-width: 100%;
  transform: translateY(100%);
  transition: transform 0.6s ease-in-out;
  pointer-events: none;
}

.newsletter.active {
  transform: translateY(0);
  pointer-events: all;
}

.newsletter > * {
  transition: opacity 0.2s ease-in-out;
}

.newsletter.locked > * {
  opacity: 0.6;
  pointer-events: none;
}

.newsletter > div {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 40px;
  align-items: center;
}

.newsletter > div > img:last-child {
  cursor: pointer;
  transition: opacity 0.2s ease-in-out;
}

.newsletter > div > img:last-child:hover {
  opacity: 0.6;
}

.newsletter > .h2 {
  line-height: 1;
  margin: var(--small-margin) 0;
}

.newsletter > .h2 + p {
  color: var(--grey);
  margin-bottom: var(--small-margin);
}

.newsletter > p:last-child {
  margin-top: 10px;
}

.newsletter > input {
  appearance: none;
  outline: none;
  background-color: var(--grey-500);
  color: var(--white);
  border: none;
  padding: 10px 25px 10px 15px;
  font-family: var(--montreal);
  font-size: 1.2rem;
  line-height: 1;
  display: block;
  width: 100%;
  height: calc(1.2rem + 20px);
  transition: background-color 0.2s ease-in-out;
}

.newsletter input::placeholder {
  color: var(--grey);
}

.newsletter input:hover,
.newsletter input:focus {
  background-color: #575757;
}

.newsletter > span {
  font-size: 1.8rem;
  height: calc(1.2rem + 23px);
  line-height: calc(1.2rem + 23px);
  position: absolute;
  right: var(--medium-margin);
  transform: translateY(-100%);
  padding-right: 20px;
  cursor: pointer;
  transition: padding 0.2s var(--bounce);
}

.newsletter > span:hover {
  padding-right: 10px;
  padding-left: 10px;
}

/*************
  COOKIES BANNER
**************/

/********************
 COOKIES
*********************/
.cookies {
  position: fixed;
  bottom: 0;
  right: 0;
  padding: var(--medium-margin);
  background-color: var(--grey-600);
  z-index: 99;
  max-width: 100%;
  transform: translateY(100%);
  transition: transform 0.6s ease-in-out;
  pointer-events: none;
  max-width: min(100%, 800px);
}

.cookies.active {
  pointer-events: all;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out 0.6s;
}

.cookies > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}

.cookies > div:first-child > img {
  cursor: pointer;
  transition: opacity 0.2s ease-in-out;
}

.cookies > div:first-child > img:hover {
  opacity: 0.6;
}

.cookies > p > a {
  color: var(--grey);
  transition: opacity 0.2s ease-in-out;
}

.cookies > p > a:hover {
  opacity: 0.6;
}

.cookies > div:last-child {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.cookies > div:last-child > * {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--white);
  cursor: pointer;
  transition: opacity 0.2s ease-in-out, color 0.2s ease-in-out,
    border 0.2s ease-in-out;
  color: var(--white);
}

.cookies > div:last-child > span:nth-child(2),
.cookies > div:last-child > a {
  color: #b9b9b9;
  border-bottom: 1px solid #b9b9b9;
}

.cookies > div:last-child > *:hover {
  opacity: 0.6;
}

@media screen and (max-width: 1100px) {
  .cookies {
    flex-direction: column;
  }
}

@media screen and (max-width: 400px) {
  .cookies {
    width: 100%;
    border-left: none;
    border-right: none;
  }

  .cookies > div {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/********************
 INDEX
*********************/
.index-1 {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(3, 1fr);
}

.index-1 > div:first-child {
  grid-column: 1/3;
  padding: var(--medium-margin);
  height: calc(100vh - var(--navbar-height));
  height: calc(100svh - var(--navbar-height));
  min-height: calc(100vh - var(--navbar-height));
  min-height: calc(100svh - var(--navbar-height));
  padding-bottom: calc(var(--small-margin) * 3);
  display: flex;
  flex-direction: column;
  position: relative;
}

.index-1 > div:first-child > div:first-child {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: calc(50% - var(--small-margin));
}

.index-1 > div:first-child > div:first-child > img {
  max-width: 100%;
  height: 1.6rem;
  width: auto;
}

.index-1 > div:first-child > div:first-child > div {
  display: flex;
  gap: 10px;
  cursor: pointer;
  position: relative;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.index-1 > div:first-child > div:first-child > div:hover > span {
  animation: bounce 1s ease-in-out 0s infinite forwards;
}

.index-1 > div:first-child > div:first-child > div > div:last-child {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--white);
  transition: width 0.2s ease-in-out;
}

.index-1 > div:first-child > div:first-child > div:hover > div:last-child {
  width: 100%;
}

.index-1 > div:last-child {
  padding: var(--small-margin);
  padding-bottom: calc(var(--small-margin) * 3);
}

.index-1 > div:last-child > div {
  position: relative;
  overflow: hidden;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: opacity 1.1s ease-in;
}

.index-1 > div:last-child > div > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
}

/* Animation */
.index-1 {
  border-top: 1px solid transparent;
  border-right: 1px solid transparent;
  border-left: 1px solid transparent;
  transition: border 0.2s ease-in-out;
  position: relative;
}

.index-1 + .section-back > div {
  height: 0;
  transition: height 1.5s ease-in-out;
}

.index-1-anim {
  position: absolute;
  left: -1px;
  top: 0;
  height: 0;
  width: 1px;
  background-color: var(--grey-600);
  transition: height 1.5s linear;
}

.index-1-anim-1 {
  height: 1px;
  width: 0;
  top: -1px;
  left: -1px;
  transition: width 3s linear;
}

.index-1-anim-3 {
  left: unset;
  right: -1px;
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

@media screen and (max-width: 992px) {
  .index-1 {
    display: block;
  }

  .index-1 > div:first-child {
    min-height: 500px;
    padding-bottom: calc(var(--small-margin) * 3 + 20px);
    gap: 40px;
  }

  .index-1 > div:last-child {
    display: none;
  }
}

@media screen and (max-width: 650px) {
  .index-1 > div:first-child {
    justify-content: flex-start;
    flex-direction: column-reverse;
  }
  .index-1 > div:first-child > div:first-child {
    flex: unset;
  }
  .index-1 > div:first-child > div:first-child > img {
    display: none;
  }
}

/* SECTION 2 */
.index-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.project {
  padding: var(--medium-margin);
  transition: background-color 0.2s ease-in-out;
  border-bottom: var(--border);
  color: var(--white);
}

a.project:hover {
  background-color: var(--grey-500);
}

.project > div:first-child {
  width: 100%;
  padding-bottom: 120%;
  position: relative;
  margin-bottom: var(--small-margin);
}

.project > div:first-child > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  object-fit: cover;
}

.project > div:first-child > img + img {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
}

a.project:hover > div:first-child > img + img {
  opacity: 1;
  pointer-events: all;
}

.project > div:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--small-margin);
  width: 100%;
  overflow: hidden;
}

.project > div:last-child > div {
  width: 100%;
}

.project > div:last-child > div > p {
  font-family: var(--drivemono);
}

.project > div:last-child > img {
  object-fit: contain;
  height: 33px;
  width: auto;
  max-width: min(100%, 120px);
  opacity: 0.2;
}

@media screen and (min-width: 993px) {
  .index-2 .project:nth-child(3n + 1):nth-last-child(-n + 3),
  .index-2 .project:nth-child(3n + 1):nth-last-child(-n + 3) ~ .project {
    border-bottom: none;
  }
}

@media screen and (max-width: 992px) and (min-width: 651px) {
  .index-2 {
    grid-template-columns: 1fr 1fr;
  }

  .index-2 .project:nth-child(3n + 1):nth-last-child(-n + 3),
  .index-2 .project:nth-child(3n + 1):nth-last-child(-n + 3) ~ .project {
    border-bottom: var(--border);
  }
  .index-2 .project:nth-child(2n + 1):nth-last-child(-n + 2),
  .index-2 .project:nth-child(2n + 1):nth-last-child(-n + 2) ~ .project {
    border-bottom: none !important;
  }
}

@media screen and (max-width: 650px) {
  .index-2 {
    grid-template-columns: 1fr;
  }

  .index-2 + .section-back {
    display: none;
  }

  .index-2 .project:nth-child(2n + 1):nth-last-child(-n + 2),
  .index-2 .project:nth-child(2n + 1):nth-last-child(-n + 2) ~ .project {
    border-bottom: var(--border);
  }
  .index-2 .project:last-child {
    border-bottom: none !important;
  }
}

/* SECTION 3 */
.index-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.index-3 > div:first-child {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.index-3 > div:first-child > h2 {
  padding: var(--medium-margin);
  flex: 1;
  font-size: 2.2rem;
}

.index-3 > div:first-child > .p {
  padding: var(--medium-margin);
}

.index-3 > div:first-child > .full-btn {
  border-right: var(--border);
}

.index-3 > div:last-child {
  grid-column: 2/4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--small-margin) * 2);
  align-items: center;
  justify-content: center;
  padding: calc(var(--small-margin) * 4);
  max-width: 100%;
}

.index-3 > div:last-child > a {
  display: block;
  width: max-content;
  margin: auto;
  max-width: 100%;
  transition: opacity 0.2s ease-in-out;
}

.index-3 > div:last-child > a:hover {
  opacity: 0.6;
}

.index-3 > div:last-child > a > img {
  width: auto;
  height: auto;
  object-fit: contain;
  max-width: 100%;
  max-height: 150px;
}

@media screen and (max-width: 1400px) {
  .index-3 {
    grid-template-columns: 1fr;
    border-bottom: none;
  }
  .index-3 > div:last-child {
    grid-column: unset;
    padding: 0;
    gap: 0;
    align-items: stretch;
  }
  .index-3 > div:last-child a {
    border-top: var(--border);
    width: 100%;
    position: relative;
    display: block;
    padding-bottom: 50%;
    pointer-events: none;
  }
  .index-3 > div:last-child a > img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% - var(--small-margin) * 4);
    height: calc(100% - var(--small-margin) * 4);
    max-width: 200px;
    max-height: 100px;
    transform: translate(-50%, -50%);
    object-fit: contain;
    pointer-events: all;
  }

  .index-3 > div:first-child > .full-btn {
    border-right: none;
  }
}

@media screen and (max-width: 992px) {
  .index-3 > div:last-child {
    grid-template-columns: 1fr 1fr;
  }
}

/* SECTION 4 */
.index-4 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.index-4 > div:first-child {
  grid-column: 1/3;
  padding: var(--medium-margin);
}

.index-4 > div:first-child > div {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  padding-bottom: 60%;
}

.index-4 > div:first-child > div > img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.index-4 > div:last-child {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.index-4 > div:last-child > h2 {
  flex: 1;
  padding: var(--medium-margin);
  font-size: 2.2rem;
}

.index-4 > div:last-child > .p {
  padding: var(--medium-margin);
  font-size: 1.2rem;
}

@media screen and (max-width: 992px) {
  .index-4 {
    grid-template-columns: 1fr;
  }
  .index-4 > div:first-child {
    grid-column: unset;
  }
}

/********************
 PORTFOLIO
*********************/
.folio-1 {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--small-margin) * 2);
}

.folio-1 > div {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
  min-width: calc(40% - var(--small-margin) * 2);
}

.folio-1 > div > h1 {
  font-weight: 400;
  max-width: 1200px;
}

.folio-1 > h2 {
  max-width: calc(80%);
}

.folio-2 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.folio-2 > div {
  text-align: center;
  padding: var(--medium-margin);
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.folio-2 > div.active {
  background-color: var(--grey-600);
}

.folio-2 > div:hover {
  background-color: var(--grey-500);
}

.folio-3 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.folio-3 .project h2 {
  font-size: 1.2rem;
  max-width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.folio-3 .project {
  border-bottom: var(--border);
  overflow: hidden;
}

.folio-3 .project.hidden {
  display: none;
}

@media screen and (max-width: 1200px) {
  .refs-1 > div {
    min-width: 66%;
  }
  .refs-1 > h2 {
    max-width: unset;
  }
}
@media screen and (max-width: 650px) {
  .refs-1 > div {
    min-width: 100%;
  }
}

@media screen and (min-width: 1201px) {
  .folio-3 .project:nth-child(5n + 1):nth-last-child(-n + 5),
  .folio-3 .project:nth-child(5n + 1):nth-last-child(-n + 5) ~ .project {
    border-bottom: none;
  }
}

@media screen and (max-width: 1200px) and (min-width: 651px) {
  .folio-2 {
    grid-template-columns: repeat(3, 1fr);
  }
  .folio-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .folio-2 > div {
    border-bottom: var(--border);
  }
  .folio-2 > div:nth-child(3n + 1):nth-last-child(-n + 3),
  .folio-2 > div:nth-child(3n + 1):nth-last-child(-n + 3) ~ div {
    border-bottom: none;
  }
  .folio-3 .project:nth-child(5n + 1):nth-last-child(-n + 5),
  .folio-3 .project:nth-child(5n + 1):nth-last-child(-n + 5) ~ .project {
    border-bottom: var(--border);
  }
  .folio-3 .project:nth-child(3n + 1):nth-last-child(-n + 3),
  .folio-3 .project:nth-child(3n + 1):nth-last-child(-n + 3) ~ .project {
    border-bottom: none !important;
  }
}

@media screen and (max-width: 650px) and (min-width: 501px) {
  .folio-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .folio-2 > div {
    border-bottom: var(--border);
  }
  .folio-2 > div:nth-child(3n + 1):nth-last-child(-n + 3),
  .folio-2 > div:nth-child(3n + 1):nth-last-child(-n + 3) ~ div {
    border-bottom: var(--border);
  }
  .folio-2 > div:nth-child(2n + 1):nth-last-child(-n + 2),
  .folio-2 > div:nth-child(2n + 1):nth-last-child(-n + 2) ~ div {
    border-bottom: none !important;
  }
  .folio-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .folio-3 .project:nth-child(3n + 1):nth-last-child(-n + 3),
  .folio-3 .project:nth-child(3n + 1):nth-last-child(-n + 3) ~ .project {
    border-bottom: var(--border);
  }
  .folio-3 .project:nth-child(2n + 1):nth-last-child(-n + 2),
  .folio-3 .project:nth-child(2n + 1):nth-last-child(-n + 2) ~ .project {
    border-bottom: none !important;
  }
}

@media screen and (max-width: 500px) {
  .folio-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .folio-2 > div {
    border-bottom: var(--border);
  }
  .folio-2 > div:nth-child(3n + 1):nth-last-child(-n + 3),
  .folio-2 > div:nth-child(3n + 1):nth-last-child(-n + 3) ~ div {
    border-bottom: var(--border);
  }
  .folio-2 > div:nth-child(2n + 1):nth-last-child(-n + 2),
  .folio-2 > div:nth-child(2n + 1):nth-last-child(-n + 2) ~ div {
    border-bottom: none !important;
  }
  .folio-3 {
    grid-template-columns: 1fr;
  }
  .folio-3 + .section-back {
    display: none;
  }
  .folio-3 .project:nth-child(2n + 1):nth-last-child(-n + 2),
  .folio-3 .project:nth-child(2n + 1):nth-last-child(-n + 2) ~ .project {
    border-bottom: var(--border);
  }
  .folio-3 .project:last-child {
    border-bottom: none !important;
  }
}

/********************
 PROJECT
*********************/
.proj-head {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 500px;
  align-items: stretch;
}

.proj-head > div:first-child {
  grid-column: 1/3;
  padding: var(--medium-margin);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.proj-head > div:first-child > div {
  flex: 1;
  margin-bottom: var(--medium-margin);
}

.proj-head > div:first-child > div > p {
  font-size: 0.8rem;
}

.proj-head > div:first-child > div > h1 {
  font-weight: 400;
}

.proj-head > div:first-child > h2 {
  max-width: 800px;
  color: var(--grey-450);
}

.proj-head > div:last-child {
  padding: calc(var(--small-margin) * 2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.proj-head > div:last-child > p {
  font-size: 0.9rem;
  font-family: var(--drivemono);
}

.proj-head > div:last-child > p > span {
  color: var(--grey-450);
}

.proj-content {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: calc(var(--small-margin) * 2) 0;
  padding: var(--medium-margin);
  padding-bottom: calc(var(--small-margin) * 3);
}

.proj-content img {
  max-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proj-content > div {
  display: flex;
  align-items: stretch;
  max-width: 100%;
  width: 100%;
  gap: calc(var(--small-margin) * 2) 0;
}

.proj-content > div > div {
  flex: 1 1 auto;
}

@media screen and (max-width: 992px) {
  .proj-head {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .proj-head > div:first-child {
    border-bottom: var(--border);
  }

  .proj-head > div:first-child > div > h1 {
    margin-bottom: 60px;
  }

  .proj-head > div:last-child > img {
    margin-bottom: 20px;
  }

  .proj-content > div {
    flex-direction: column;
  }

  .proj-content > div > div {
    width: 100%;
  }
}

/********************
 REFERENCES
*********************/
.refs-1 {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--small-margin) * 2);
}

.refs-1 > div {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
  min-width: calc(40% - var(--small-margin) * 2);
}

.refs-1 > div > h1 {
  font-weight: 400;
}

.refs-1 > h2 {
  max-width: calc(80%);
}

.refs-2 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: none;
}

.refs-2 > a {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: var(--border);
  padding: calc(var(--small-margin) * 2);
}

.refs-2 > a > img {
  max-width: 100%;
  transition: opacity 0.2s ease-in-out;
}

.refs-2 > a:hover > img {
  opacity: 0.6;
}

@media screen and (min-width: 1200px) {
  .refs-2 a:nth-child(5n + 1):nth-last-child(-n + 5),
  .refs-2 a:nth-child(5n + 1):nth-last-child(-n + 5) ~ a {
    border-bottom: none;
  }
}

@media screen and (max-width: 1200px) {
  .refs-1 > div {
    min-width: 66%;
  }
  .refs-1 > h2 {
    max-width: unset;
  }
}

@media screen and (max-width: 1200px) and (min-width: 651px) {
  .refs-2 {
    grid-template-columns: repeat(3, 1fr);
  }
  .refs-2 a:nth-child(5n + 1):nth-last-child(-n + 5),
  .refs-2 a:nth-child(5n + 1):nth-last-child(-n + 5) ~ a {
    border-bottom: var(--border);
  }
  .refs-2 a:nth-child(3n + 1):nth-last-child(-n + 3),
  .refs-2 a:nth-child(3n + 1):nth-last-child(-n + 3) ~ a {
    border-bottom: none !important;
  }
}

@media screen and (max-width: 650px) {
  .refs-1 > div {
    min-width: 100%;
  }
  .refs-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .refs-2 > a:nth-child(3n + 1):nth-last-child(-n + 3),
  .refs-2 > a:nth-child(3n + 1):nth-last-child(-n + 3) ~ a {
    border-bottom: var(--border);
  }
  .refs-2 > a:nth-child(2n + 1):nth-last-child(-n + 2),
  .refs-2 > a:nth-child(2n + 1):nth-last-child(-n + 2) ~ a {
    border-bottom: none !important;
  }
}

/********************
 ARTICLES
*********************/
.articles-1 {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--small-margin) * 2);
}

.articles-1 > div {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
  min-width: calc(33% - var(--small-margin) * 2);
}

.articles-1 > div > h1 {
  font-weight: 400;
}

.articles-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.articles-2 > a {
  color: var(--white);
  transition: background-color 0.2s ease-in-out;
  padding: var(--medium-margin);
  height: 100%;
  border-bottom: var(--border);
}

.articles-2 > a:hover {
  background-color: var(--grey-500);
}

.articles-2 > a > img {
  width: 100%;
  height: 16vw;
  object-fit: cover;
  margin: 20px 0;
}

.articles-2 > a > p:first-child {
  color: var(--grey);
  width: max-content;
}

.articles-2 > a > h2 + p {
  font-family: var(--drivemono);
  margin: 5px 0 20px;
  font-size: 0.9rem;
}

.articles-2 > a > span {
  display: block;
  border-bottom: 1px solid var(--white);
  padding: 2px;
  width: max-content;
  margin-top: 20px;
}

@media screen and (min-width: 993px) {
  .articles-2 a:nth-child(3n + 1):nth-last-child(-n + 3),
  .articles-2 a:nth-child(3n + 1):nth-last-child(-n + 3) ~ a {
    border-bottom: none;
  }
}

@media screen and (max-width: 992px) {
  .articles-1 > div {
    min-width: calc(50% - var(--small-margin) * 2);
  }
  .articles-2 > a > img {
    height: 25vw;
  }
}

@media screen and (max-width: 992px) and (min-width: 501px) {
  .articles-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .articles-2 a:nth-child(3n + 1):nth-last-child(-n + 3),
  .articles-2 a:nth-child(3n + 1):nth-last-child(-n + 3) ~ a {
    border-bottom: var(--border);
  }
  .articles-2 a:nth-child(2n + 1):nth-last-child(-n + 2),
  .articles-2 a:nth-child(2n + 1):nth-last-child(-n + 2) ~ a {
    border-bottom: none !important;
  }
}

@media screen and (max-width: 620px) {
  .articles-1 > div {
    min-width: 100%;
  }
  .articles-2 {
    grid-template-columns: 1fr;
  }
  .articles-2 > a:nth-child(2n + 1):nth-last-child(-n + 2),
  .articles-2 > a:nth-child(2n + 1):nth-last-child(-n + 2) ~ a {
    border-bottom: var(--border);
  }
  .articles-2 > a:last-child {
    border-bottom: none !important;
  }
  .articles-2 > a > img {
    height: 50vw;
  }
}

.article .section-content {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.article .section-content > div:nth-child(2) {
  grid-column: 2/5;
  padding: var(--medium-margin);
  font-size: 1.1rem;
}

.article-head {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-head > div {
  width: 100%;
}

.article-head > div:first-child > div {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.article-head > div:first-child > div > h1 {
  font-weight: 400;
}

.article-head > div:first-child > p {
  font-family: var(--drivemono);
  font-size: 0.9rem;
  margin-top: 5px;
}

.article-head > div:last-child > p {
  margin-bottom: 20px;
}

.article-content > figure,
.article-content > figure > img {
  margin: 0;
  max-width: 100%;
  height: auto;
}

.article-content > p,
.article-content > figure {
  margin-bottom: 20px;
  line-height: 1.4;
  letter-spacing: 0.03rem;
}

.article-content > figure.image {
  margin: 40px 0;
}

.article-content figure {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.article-content figure img {
  width: 100%;
}

.article-content figure.image-style-align-right {
  display: inline-flex;
  float: right;
  margin-left: 40px;
}

.article-content figure.image-style-align-left {
  display: inline-flex;
  float: left;
  margin-right: 40px;
}

.article-content figure.has-caption > img {
  max-width: 70%;
}

.article-content figure.has-caption > figcaption {
  font-family: var(--drivemono);
  display: flex;
  flex-direction: column;
  max-width: 100px;
  font-size: 0.9rem;
  line-height: 1;
}

.article-content figure.has-caption > figcaption::before {
  content: "←";
  font-family: var(--montreal);
  line-height: 1.2;
  font-size: 1rem;
}

.article-content > ul,
.article-content > ol {
  padding-left: 20px;
}

.article-content table {
  width: 100%;
}

.article-content table,
.article-content td {
  border: 1px solid var(--grey);
  background-color: rgb(28, 28, 28, 0.2);
  border-collapse: collapse;
}

.article-content td {
  padding: var(--small-margin);
}

.article-content p a,
.article-foot p a,
.article-head p a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 0.3rem;
  transition: opacity 0.2s ease-in-out;
}

.article-content p a:hover,
.article-foot p a:hover,
.article-head p a:hover {
  opacity: 0.5;
}

.article-foot > h2 {
  margin-bottom: 60px;
}

@media screen and (max-width: 1200px) {
  .article .section-content {
    display: block;
  }

  .article .section-content > div:nth-child(2) {
    grid-column: unset;
  }
}

/********************
 STUDIO
*********************/
.studio-1 {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(3, 1fr);
}

.studio-1 > div:first-child {
  grid-column: 1/3;
  padding: var(--medium-margin);
  min-height: var(--hl100vh);
  min-height: var(--hl100svh);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.studio-1 > div:first-child > div {
  display: flex;
  justify-content: space-between;
  min-width: calc(50% - var(--small-margin));
}

.studio-1 > div:first-child > div > h1 {
  font-weight: 400;
}

.studio-1 > div:first-child > h2 {
  max-width: calc(100% - var(--small-margin) * 3);
  margin-bottom: var(--medium-margin);
}

.studio-1 > div:last-child {
  position: relative;
  overflow: hidden;
}

.studio-1 > div:last-child > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
}

.studio-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.studio-2 > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--medium-margin);
  gap: var(--medium-margin);
}

.studio-2 > div > img {
  max-width: 100%;
}

.studio-2 > div:nth-child(2) > div {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.studio-2 > div:nth-child(2) > div > img {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.studio-2 > div:nth-child(2) > div > .p {
  position: absolute;
  z-index: 2;
  bottom: var(--small-margin);
  left: var(--small-margin);
  max-width: calc(100% - var(--small-margin) * 2);
  font-family: var(--drivemono);
}

.studio-3 > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: var(--border);
  align-items: center;
  transition: background-color 0.2s ease-in-out;
}

.studio-3 > div:not(.studio-space):hover {
  background-color: var(--grey-500);
}

.studio-space {
  height: calc(60px + 2rem);
}

.studio-3 > div:last-child {
  border-bottom: none;
}

.studio-3 > div > a {
  color: var(--white);
  padding: var(--medium-margin);
  grid-column: 1/3;
  width: max-content;
  position: relative;
  display: block;
  max-width: 100%;
}

.studio-3 > div > a::after {
  display: block;
  content: "";
  width: 0;
  height: 2px;
  background-color: var(--white);
  transition: width 0.2s ease-in-out;
}

.studio-3 > div > a:hover::after {
  width: 100%;
}

.studio-3 > div > .p {
  padding: var(--medium-margin);
  padding-right: 80px;
}

.studio-4 {
  padding: var(--medium-margin);
}

.studio-4 > div {
  position: relative;
  overflow: hidden;
  padding-bottom: 35%;
  margin-bottom: 60px;
}

.studio-4 > div > img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (max-width: 992px) {
  .studio-1 {
    display: block;
  }

  .studio-1 > div:first-child {
    min-height: 500px;
    margin-bottom: 40px;
    gap: 40px;
  }

  .studio-1 > div:last-child {
    min-height: 500px;
    margin-left: var(--medium-margin);
    width: calc(100% - var(--medium-margin) * 2);
  }

  .studio-2 {
    display: block;
    border-top: 1px solid transparent;
  }

  .studio-2 > div:first-child {
    margin: 40px 0;
  }

  .studio-2 > div:first-child > img {
    display: none;
  }

  .studio-2 > div:nth-child(2) > div {
    min-height: 500px;
  }

  .studio-2 > div:nth-child(2) {
    padding-bottom: 60px;
    border-bottom: var(--border);
  }

  .studio-2 > div:last-child {
    padding-top: 60px;
  }

  .studio-2 > div:last-child > .p {
    margin: 40px 0;
  }

  .studio-3 > div {
    grid-template-columns: 1fr 1fr;
  }

  .studio-3 > div > h2 {
    grid-column: unset;
  }

  .studio-3 > div > .p {
    padding-top: 0;
    padding-right: 20px;
  }

  .studio-4 > div {
    padding-bottom: 50%;
  }
}

@media screen and (max-width: 650px) {
  .studio-1 > div:first-child > div {
    min-width: 100%;
  }

  .studio-3 > div {
    display: block;
    grid-template-columns: 1fr;
  }

  .studio-3 > div > h2 {
    padding-bottom: 10px;
  }

  .studio-4 > div {
    padding-bottom: 70%;
  }
}

/********************
 CONTACT
*********************/
.contact-1 {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(3, 1fr);
}

.contact-1 > div:first-child {
  grid-column: 1/3;
  padding: var(--medium-margin);
  min-height: var(--hm100vh);
  min-height: var(--hm100svh);
  display: flex;
  flex-direction: column;
  gap: 40px;
  justify-content: space-between;
}

.contact-1 > div:first-child > div:first-child {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  min-width: calc(50% - var(--medium-margin));
}

.contact-1 > div:first-child > div:first-child > h1 {
  font-weight: 400;
}

.contact-1 > div:first-child > div:last-child {
  width: 100%;
}

.contact-1 > div:first-child > div:last-child > h2 {
  margin: 20px 0;
}

.contact-1 > div:first-child > div:last-child > a {
  color: var(--white);
  position: relative;
  width: max-content;
  display: block;
}

.contact-1 > div:first-child > div:last-child > a::after {
  display: block;
  content: "";
  width: 0;
  height: 1px;
  background-color: var(--white);
  transition: width 0.2s ease-in-out;
}

.contact-1 > div:first-child > div:last-child > a:hover::after {
  width: 100%;
}

.contact-1 > div:first-child img,
.contact-2 > div:first-child img {
  object-fit: contain;
  width: 70px;
  height: 50px;
  object-position: left;
}

.contact-1 > div:last-child {
  padding: var(--small-margin);
}

.contact-1 > div:last-child > div {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.contact-1 > div:last-child > div > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.contact-2 > div {
  padding: var(--medium-margin);
  height: 100%;
}

.contact-2 .h2 {
  margin: 20px 0;
}

.contact-2 a {
  color: var(--white);
  padding-bottom: 2px;
  width: max-content;
  display: block;
}

.contact-2 a::after {
  display: block;
  content: "";
  width: 0;
  height: 1px;
  background-color: var(--white);
  transition: width 0.2s ease-in-out;
}

.contact-2 a:hover::after {
  width: 100%;
}

.contact-2 > div > div:first-child {
  height: 200px;
  position: relative;
}

.contact-2 > div > div:first-child > img {
  position: absolute;
  left: 0;
  top: 150px;
  height: 50px;
  transition: top 0.2s ease-in-out;
}

/*.contact-2 > div:hover > div:first-child > img {
  top: 0px;
}*/

.contact-2 > div:nth-child(2) > .p:last-child {
  margin-top: 160px;
  font-size: 0.9rem;
}

.contact-2 form {
  transition: opcity 0.4s ease-in-out;
}

.contact-2 form.locked {
  opacity: 0.6;
  pointer-events: none;
}

.contact-2 form div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-2 form input {
  appearance: none;
  outline: none;
  background-color: var(--grey-600);
  color: var(--white);
  border: none;
  padding: 6px 10px;
  font-family: var(--montreal);
  font-size: 1rem;
  margin-bottom: 20px;
  display: block;
  width: 100%;
  transition: background-color 0.2s ease-in-out;
}

.contact-2 form input::placeholder {
  color: var(--grey);
}

.contact-2 form input:hover,
.contact-2 form input:focus {
  background-color: #575757;
}

.contact-2 form button {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  padding: 0;
  padding-bottom: 2px;
  border: none;
  color: var(--white);
  outline: none;
  cursor: pointer;
  font-family: var(--montreal);
  font-weight: 300 !important;
  width: max-content;
  display: block;
}

.contact-2 form button::after {
  display: block;
  content: "";
  width: 0;
  height: 1px;
  background-color: var(--white);
  transition: width 0.2s ease-in-out;
}

.contact-2 form button:hover::after {
  width: 100%;
}

.contact-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.contact-3 > div {
  padding: var(--medium-margin);
}

.contact-3 > div > a {
  margin-top: 5px;
  font-family: var(--drivemono);
  color: white;
  transition: opacity 0.2s ease-in-out;
}

.contact-3 > div > a:hover {
  opacity: 0.6;
}

.contact-4 {
  display: none;
}

@media screen and (max-width: 1400px) {
  .contact-1 {
    display: block;
  }

  .contact-1 > div:last-child {
    display: none;
  }
  .contact-2 {
    grid-template-columns: 1fr 1fr;
  }

  .contact-2 > div:first-child {
    grid-column: 1/3;
    border-bottom: var(--border);
  }

  .contact-1 + .section-back > div:last-child,
  .contact-2 + .section-back > div:last-child,
  .contact-3 + .section-back > div:last-child {
    display: none;
  }

  .contact-2 > div > div:first-child {
    height: 150px;
  }
  .contact-2 > div > div:first-child > img {
    top: 100px;
  }
  /*.contact-2 > div:hover > div:first-child > img {
    top: 0;
  }*/
  .contact-2 > div:nth-child(2) > .p:last-child {
    margin-top: 120px;
  }

  .contact-3 {
    grid-template-columns: 1fr 1fr;
  }

  .contact-3 > div:first-child {
    display: none;
  }
}

@media screen and (max-width: 780px) {
  .contact-1 > div:first-child {
    min-width: 100%;
  }
  .contact-2,
  .contact-3 {
    grid-template-columns: 1fr;
  }
  .contact-2 > div:first-child {
    grid-column: unset;
  }

  .contact-2 > div:nth-child(2) {
    border-bottom: var(--border);
  }

  .contact-2 > div > div:first-child {
    height: 100px;
  }
  .contact-2 > div > div:first-child > img {
    top: 50px;
  }
  /*.contact-2 > div:hover > div:first-child > img {
    top: 0;
  }*/
  .contact-2 > div:nth-child(2) > .p:last-child {
    margin-top: 20px;
  }
  .contact-2 > div {
    padding-bottom: 60px;
  }

  /*.contact-3 > div:nth-child(2) {
    border-bottom: var(--border);
  }*/
  .contact-3 > div:last-child {
    padding-top: 0;
  }

  .contact-4 {
    display: block;
  }
}

@media screen and (max-width: 650px) {
  .contact-1 > div:last-child > h2 br {
    display: none;
  }
}

/********************
 COLLECTIONS
*********************/
.collec-1 {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: calc(var(--small-margin) * 2);
  justify-content: space-between;
}

.collec-1 > div {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  min-width: calc(33% - var(--small-margin) * 2);
}

.collec-1 > div > h1 {
  font-weight: 400;
}

.collec-1 > h2 {
  max-width: 1400px;
}

.collec-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.collec-2 > div {
  font-family: var(--drivemono);
  transition: background-color 0.2s ease-in-out;
  text-align: center;
  padding: var(--medium-margin);
  border-bottom: var(--border);
  cursor: pointer;
}

.collec-2 > div:nth-child(3n + 1):nth-last-child(-n + 3),
.collec-2 > div:nth-child(3n + 1):nth-last-child(-n + 3) ~ div {
  border-bottom: none;
}

.collec-2 > div:hover {
  background-color: var(--grey-500);
}

.collec-2 > div.active {
  background-color: var(--grey-600);
}

.collec-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.collec-3 .product:nth-child(3n + 1):nth-last-child(-n + 3),
.collec-3 .product:nth-child(3n + 1):nth-last-child(-n + 3) ~ .product {
  border-bottom: none;
}

.product-top {
  padding: var(--medium-margin);
}

.product-image {
  display: block;
  position: relative;
  width: 100%;
  padding-bottom: 80%;
  margin-bottom: var(--medium-margin);
  overflow: hidden;
}

.product-image > img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease-in-out;
}

.product-image:hover > img {
  transform: scale(1.05);
}

.product-info {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.product-info > div > p:first-child {
  font-family: var(--drivemono);
  font-size: 0.8rem;
}

.product-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.product-bottom > a:first-child {
  border-right: var(--border);
}

.product-bottom .full-btn {
  padding: 20px;
  white-space: nowrap;
  gap: 10px;
}

.product-space {
  display: none;
  border-top: var(--border);
}

@media screen and (max-width: 992px) {
  .collec-1 > div {
    min-width: calc(50% - var(--small-margin));
  }

  .collec-2 {
    grid-template-columns: 1fr 1fr;
  }

  .collec-2 > div:nth-child(3n + 1):nth-last-child(-n + 3),
  .collec-2 > div:nth-child(3n + 1):nth-last-child(-n + 3) ~ div {
    border-bottom: var(--border);
  }

  .collec-2 > div:nth-child(2n + 1):nth-last-child(-n + 2),
  .collec-2 > div:nth-child(2n + 1):nth-last-child(-n + 2) ~ div {
    border-bottom: none;
  }

  .collec-3 {
    grid-template-columns: 1fr 1fr;
  }

  .collec-3 .product:nth-child(3n + 1):nth-last-child(-n + 3),
  .collec-3 .product:nth-child(3n + 1):nth-last-child(-n + 3) ~ .product {
    border-bottom: var(--border);
  }

  .collec-3 .product:nth-child(2n + 1):nth-last-child(-n + 2),
  .collec-3 .product:nth-child(2n + 1):nth-last-child(-n + 2) ~ .product {
    border-bottom: none;
  }
}

@media screen and (max-width: 670px) {
  .collec-1 > div {
    min-width: 100%;
  }
  .collec-1 > div {
    min-width: calc(50% - var(--small-margin));
  }

  .collec-2 {
    grid-template-columns: 1fr;
  }

  .collec-2 > div:nth-child(2n + 1):nth-last-child(-n + 2),
  .collec-2 > div:nth-child(2n + 1):nth-last-child(-n + 2) ~ div {
    border-bottom: var(--border);
  }

  .collec-2 > div:last-child {
    border-bottom: none !important;
  }

  .collec-2 > div {
    background-color: var(--black);
  }
  .collec-2 > div:hover {
    background-color: var(--grey-500);
  }
  .collec-2 > div.active {
    background-color: var(--grey-600);
  }

  .collec-3 {
    grid-template-columns: 1fr;
  }

  .collec-3 .product:nth-child(2n + 1):nth-last-child(-n + 2),
  .collec-3 .product:nth-child(2n + 1):nth-last-child(-n + 2) ~ .product {
    border-bottom: var(--border);
  }

  .collec-3 .product:last-child {
    border-bottom: none !important;
  }

  .product-bottom > a:first-child {
    border-right: none;
  }

  .product-space {
    display: block;
    height: 100px;
  }
}

/********************
 PRODUCT PAGE
*********************/
.prod-head {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.prod-head > div:first-child {
  grid-column: 1/3;
  display: flex;
  min-height: var(--hm100vh);
  min-height: var(--hm100svh);
  justify-content: space-between;
  flex-direction: column;
}

.prod-head > div:first-child > div:first-child {
  padding: var(--small-margin);
}

.prod-head > div:first-child > div:first-child > p {
  font-family: var(--drivemono);
}

.prod-head > div:first-child > div:first-child > h1 {
  font-weight: 400;
}

.prod-head > div:first-child > div:last-child > h2 {
  padding: var(--small-margin);
}

.prod-head > div:last-child > div {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.prod-head > div:last-child > div > img {
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.prod-head > div:last-child .full-btn {
  display: none;
}

.prod-part {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: 120px;
}

.prod-part > div:first-child {
  grid-column: 1/3;
  padding: var(--small-margin);
  width: 100%;
  height: 100%;
}

.prod-part > div:first-child > div {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  min-height: 30vw;
}

.prod-part > div:first-child > div > img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prod-part > div:last-child {
  padding: var(--small-margin);
  display: flex;
  flex-direction: column;
  gap: 40px;
  justify-content: space-between;
  height: 100%;
}

.prod-part > div:last-child > p {
  line-height: 1.4;
}

.prod-part > div:last-child > h2 {
  font-size: 2.2rem;
  max-width: 450px;
}

.prod-part.reverse > div:first-child {
  grid-column: 2/4;
  order: 2;
}

.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: 120px;
}

.prod-grid > div {
  padding: var(--small-margin);
}

.prod-grid > div:first-child > div {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
  padding-bottom: 150%;
}

.prod-grid > div:first-child > div > img {
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.prod-grid > div:not(:first-child) {
  display: flex;
  height: 100%;
  justify-content: space-between;
  flex-direction: column;
  gap: 40px;
}

.prod-grid > div:not(:first-child) {
  font-family: var(--drivemono);
}

.prod-grid > div:not(:first-child) > h2 {
  font-size: 1.4rem;
}

.prod-grid > div:not(:first-child) > p {
  line-height: 2;
  font-size: 0.8rem;
}

.prod-command > .full-btn {
  border-top: none;
}

.prod-image {
  padding: var(--small-margin);
}

.prod-image > div {
  width: 100%;
  padding-bottom: 50%;
  position: relative;
  overflow: hidden;
}

.prod-image > div > img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (max-width: 992px) {
  .prod-head {
    grid-template-columns: 1fr;
  }

  .prod-head > div:first-child {
    min-height: unset;
    gap: 120px;
  }

  .prod-head > div:first-child .full-btn {
    display: none;
  }

  .prod-head > div:last-child > div {
    height: unset;
    padding-bottom: 70%;
    margin: var(--small-margin);
    width: calc(100% - var(--small-margin) * 2);
    margin-top: 40px;
  }

  .prod-head > div:last-child .full-btn {
    display: flex;
  }

  .prod-empty-1 {
    display: none;
  }

  .prod-part {
    grid-template-columns: 1fr;
  }

  .prod-part > div:first-child {
    grid-column: unset !important;
    order: unset !important;
  }
  .prod-part > div:first-child > div {
    min-height: 70vw;
  }

  .prod-grid {
    grid-template-columns: 1fr 1fr;
  }
  .prod-grid > div:first-child {
    grid-column: 1/3;
  }
  .prod-grid > div:first-child > div {
    padding-bottom: 100%;
  }
  .prod-grid > div:not(:first-child) > h2 {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 650px) {
  .prod-grid > div:not(:first-child) > h2 {
    font-size: 1.2rem;
  }
  .prod-grid > div:first-child > div {
    padding-bottom: 130%;
  }
  .prod-image > div {
    padding-bottom: 90%;
  }
}

@media screen and (max-width: 450px) {
  .prod-grid > div:not(:first-child) > h2 {
    font-size: 1rem;
  }
}

/********************
 SCREENSAVER
*********************/
#screensaver {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 98;
  background-color: var(--black);
  height: 100%;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out;
  padding: var(--medium-margin);
  padding-bottom: calc(var(--small-margin) * 3);
}

#screensaver.active {
  opacity: 1;
  pointer-events: all;
}

#screensaver img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#screensaver > div {
  position: absolute;
  bottom: calc(var(--small-margin) * 4);
  left: calc(var(--small-margin) * 2);
}

@media screen and (max-width: 992px) {
  #screensaver > div {
    left: calc(var(--small-margin) * 3);
  }
}
