/* ---------------------------------- INIT ---------------------------------- */
:root {
  --base-color: #FFF;
  --secondary-color: #003000;
  --accent-color: #00ff00;
  --main-color: #000;
  --font-fallback: "Roboto", sans-sans;
  --gap1: 1.3em;
  --gap2: 2em;
  --gap3: 3em;
}

@media (hover: none) and (pointer: coarse) {
  :focus {
    outline: 0 !important;
    -webkit-tap-highlight-color: transparent;
  }
}
.closeBtn {
  outline: 0;
  -webkit-tap-highlight-color: transparent;
}

.dynamic-header {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

body {
  overflow-x: hidden;
  visibility: visible;
  min-height: 100vh;
  background-color: var(--main-color);
  color: var(--base-color);
  overscroll-behavior: none;
}

.no-scroll {
  overflow: hidden;
}

body, h1, h2, h3, h4, h5, h6, p, a, img, ul, li, span {
  margin: 0;
  padding: 0;
  text-decoration: none;
  list-style: none;
  font-family: "Nohemi", var(--font-fallback);
  font-weight: 400;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

h3, h4, h5, h6, p, ul, li, span {
  position: relative;
}

a {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  color: var(--base-color);
  cursor: pointer;
}

main {
  overflow: hidden;
}

p::selection, a::selection, h1::selection, h2::selection, h3::selection, h4::selection, h5::selection, h6::selection, ul::selection, li::selection, span::selection {
  color: var(--accent-color);
  background-color: transparent;
}

img::selection {
  background-color: transparent;
}

/* ---------------------------------- BASE ---------------------------------- */
.video-wrapper {
  overflow: hidden;
}

.video-wrapper > video {
  height: 100%;
  width: 100%;
  object-fit: cover;
  background-size: cover;
  overflow: hidden;
}

.mobile {
  display: none;
}

@media only screen and (max-width: 992px) {
  .mobile {
    display: block;
  }
}
.button {
  color: var(--accent-color);
  transition: font-size 0.3s ease, font-weight 0.3s ease;
}

.button:hover {
  font-weight: 600;
}

.closeBtn:hover::after {
  transform: rotate(90deg);
}

@media only screen and (max-width: 768px) {
  .button:hover {
    font-weight: inherit;
  }
}
.main-cursor {
  display: inline-block;
  position: fixed;
  z-index: 900;
  pointer-events: none;
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  filter: blur(0.1em);
  background-color: red;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  transition: transform 0.3s ease, opacity 0.5s ease-in-out;
}

.cursor {
  position: fixed;
  z-index: 900;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.5s ease-in-out;
  transform: translate(-50%, -50%) scale(0);
  transform-origin: center center;
}

.cursor, .main-cursor {
  opacity: 0;
}

.cursor.visible, .main-cursor.visible {
  opacity: 1;
}

header ~ .main-cursor {
  background-color: blue;
}

img, video {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

img.fade, video.fade {
  opacity: 1;
}

.fade {
  animation-name: fade;
  animation-duration: 0.5s;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.txt-filter {
  width: 100%;
  height: 100vh;
  position: absolute;
  background: linear-gradient(rgba(0, 0, 0, 0.35), 60%, rgba(0, 0, 0, 0.25));
  z-index: 1;
}

.fixed {
  position: fixed;
}

.negative {
  color: var(--secondary-color);
}

/* ---------------------------------- MAIN ---------------------------------- */
#border {
  opacity: 0.8;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  border-width: 1em;
  border-style: solid;
  border-color: var(--accent-color);
  position: fixed;
  z-index: 99999;
  width: 100vw;
  height: 100vh;
  filter: blur(5em);
  transform: scale(1);
  pointer-events: none;
  transition: opacity 1.5s ease-in-out;
}

.side-margins {
  padding: 0 var(--gap2) 0 var(--gap2);
}

@media only screen and (max-width: 768px) {
  .side-margins {
    padding: 0 1em 0 1em;
  }
}
li {
  margin-bottom: 0.15em;
}

.bundle-list-item {
  margin-bottom: var(--gap1);
}

.bundle-list-item > * {
  margin-bottom: 0.15em;
}

.opacity-mid {
  opacity: 0.6;
}

/* ---------------------------------- HEADER ---------------------------------- */
header {
  position: fixed;
  z-index: 800;
  bottom: 0;
  margin-bottom: var(--gap3);
}

.header--wrapper {
  grid-column: 5/7;
  padding-bottom: 3.5em;
  display: flex;
  flex-direction: column;
  scale: 1.1;
}

.base-header > svg:first-child {
  margin-bottom: -0.5em;
}

.base-header > svg:nth-child(2) {
  margin-left: 4em;
}

.secondary-header > svg:first-child {
  margin-bottom: -1.5em;
}

.secondary-header > svg:nth-child(2) {
  margin-left: 4em;
}

.secondary-header > svg:nth-child(3) {
  margin-left: 2em;
}

svg > text, g {
  user-select: none;
}

@media only screen and (max-width: 1200px) {
  .header--wrapper {
    grid-column: 3/5;
    justify-self: center;
    scale: 1;
  }
}
@media only screen and (max-width: 992px) {
  .header--wrapper {
    grid-column: 2/4;
  }
}
@media only screen and (max-width: 768px) {
  header {
    margin-bottom: 0;
  }
  .header--wrapper {
    grid-column: 1/3;
    justify-self: center;
  }
}
/* ---------------------------------- GRIDS ---------------------------------- */
.base-grid, .modal {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-gap: var(--gap1);
  width: -moz-available;
  width: -webkit-fill-available;
  width: fill-available;
}

.visual-grid {
  display: grid;
  top: 0;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  min-height: 100vh;
}

@media only screen and (max-width: 992px) {
  .base-grid, .modal {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media only screen and (max-width: 768px) {
  .base-grid, .modal {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 0.5em;
  }
}
/* ---------------------------------- MODALE ---------------------------------- */
.modal {
  display: none;
  opacity: 0;
  position: fixed;
  z-index: 900;
  left: 0;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: opacity 0.3s ease-in-out;
}

.modal-content {
  position: relative;
  grid-column: 2/6;
  display: grid;
  grid-template-columns: 1fr 2fr;
  column-gap: var(--gap1);
  color: var(--secondary-color);
  z-index: 900;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 30px;
  height: fit-content;
  max-height: auto;
  max-width: 65em;
  cursor: default;
}

.modal-content > p {
  grid-column: 1;
  grid-row: 2;
}

.modal-content > ul {
  grid-column: 2;
  grid-row: 2;
}

.modal-content::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: var(--accent-color);
  filter: blur(0.45em);
  border-radius: 0.3em;
}

.closeBtn {
  width: fit-content;
  justify-self: end;
}

.close {
  display: block;
  text-align: right;
  grid-column: 2;
  grid-row: 1;
}

.close::after {
  display: inline-flex;
  content: "";
  background-image: url("/assets/general/svgs/cross.svg");
  height: 0.8em;
  width: 0.8em;
  margin-left: 0.4em;
  margin-bottom: 0.05em;
  background-repeat: no-repeat;
  vertical-align: -0.05em;
  transition: transform 0.5s ease;
  transform: rotate(0deg);
}

.close:hover, .close:focus {
  text-decoration: none;
  outline: none;
  cursor: pointer;
}

@media only screen and (max-width: 992px) {
  .modal-content {
    grid-column: 1/5;
  }
}
@media only screen and (max-width: 768px) {
  .modal {
    overflow-y: auto;
  }
  .modal-content {
    grid-column: 1/3;
    row-gap: var(--gap1);
    top: var(--gap3);
    transform: translate(-50%, 0);
  }
  .modal-content > p, .modal-content > ul {
    grid-column: span 2;
  }
  .modal-content > p {
    grid-row: 2;
  }
  .modal-content > ul {
    grid-row: 3;
  }
}
@media only screen and (max-width: 992px) {
  .close {
    display: block;
  }
}
/* ---------------------------------- PROJECT CARDS ---------------------------------- */
#fadingImage {
  opacity: 0;
}

.scroll-wrapper {
  margin: 50vh 0;
  display: flex;
  justify-content: center;
}

.project-container {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.image-section {
  position: absolute;
}

.project-card {
  position: relative;
  z-index: 1;
}

.project-card > h3 {
  will-change: auto;
  transition: transform 0.5s, padding 1s, color 0.2s, opacity 0.2s, font-weight 1s;
  opacity: 0.25;
  font-weight: 520;
}

.project-card.active h3 {
  padding: 0.3em 0;
  opacity: 1;
  color: var(--accent-color);
  font-weight: 600;
}

#project-link {
  cursor: pointer;
}

#project-link:hover ~ .cursor {
  transform: translate(-50%, -50%) scale(1.1);
}

#project-link:hover ~ .main-cursor {
  transform: translate(-50%, -50%) scale(0);
}

@media only screen and (max-width: 992px) {
  .project-card.active h3 {
    padding: 0;
  }
  #project-link:hover ~ .cursor {
    transform: translate(-50%, -50%) scale(1);
  }
}
@media only screen and (max-width: 768px) {
  .scroll-wrapper {
    min-height: 50vh;
    margin: 50vh 0;
  }
}
/* ---------------------------------- PROJECTS ---------------------------------- */
.content-section {
  position: absolute;
  z-index: 600;
  margin-top: var(--gap3);
}

.project-title {
  grid-column: 1/5;
  margin-top: -0.05em;
}

.content--description {
  grid-column: 5/7;
}

.txt-gap {
  padding-bottom: var(--gap1);
}

.dropdown-title {
  cursor: pointer;
}

.dropdown-title::selection {
  background-color: transparent;
}

.dropdown-title::after {
  display: inline-flex;
  content: "";
  background-image: url("/assets/general/svgs/arrow.svg");
  height: 0.8em;
  width: 0.8em;
  margin-left: 0.4em;
  margin-bottom: 0.05em;
  background-repeat: no-repeat;
  vertical-align: -0.05em;
  transition: transform 0.5s ease;
  transform: rotate(0deg);
}

.dropdown-title.open::after {
  transform: rotate(180deg);
}

.dropdown-item {
  opacity: 0;
  transform: translateY(-0.2em);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-item.show {
  opacity: 1;
  transform: translateY(0);
}

@media only screen and (min-width: 1900px) {
  .project-title {
    grid-column: 1/4;
  }
}
@media only screen and (max-width: 992px) {
  .content--description {
    grid-column: 1/3;
    grid-row: 2;
  }
  .content-about {
    padding-bottom: 10em;
  }
}
@media only screen and (max-width: 768px) {
  .project-title {
    grid-column: 1/3;
  }
  .content--description {
    grid-column: 1/3;
    grid-row: 2;
  }
}
.visual-grid img {
  max-height: 100vh;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-grid video {
  max-height: 100vh;
  width: 100%;
  object-fit: cover;
}

.splash-video {
  height: 100vh;
  width: 100vw;
}

.img_animation {
  transition: transform 2s ease-out;
  will-change: transform;
  overflow: hidden;
  transform: scale(1.05);
}

.p_img-full {
  grid-column: span 4;
  max-height: 100vh;
  overflow: hidden;
}

.p_img-half {
  grid-column: span 2;
  max-height: 100vh;
  overflow: hidden;
}

@media only screen and (max-width: 992px) {
  .p_img-half {
    grid-column: span 4;
    aspect-ratio: 4/5;
    width: 100vw;
  }
}
.p_img-quarter {
  grid-column: span 1;
  max-height: 60vh;
  overflow: hidden;
}

@media only screen and (max-width: 992px) {
  .p_img-quarter {
    grid-column: span 2;
    max-height: 60vh;
    overflow: hidden;
  }
}
.pos-top {
  object-position: center 15%;
}

.pos-center {
  object-position: center 50%;
}

.pos-bottom {
  object-position: center 85%;
}

.static-image {
  min-height: 100vh;
  opacity: 1;
  will-change: transform;
  transition: transform 2s ease-out, opacity 1s ease-out;
}

.project-card-img {
  min-height: 100vh;
  opacity: 1;
  will-change: transform, opacity;
  transition: transform 2s ease-out, opacity 0.5s ease-in-out;
}

/* ---------------------------------- PAGINATION ---------------------------------- */
.pagination {
  grid-column: span 4;
  background-color: #000;
}

.pagination--project-txt {
  text-align: end;
  margin: 2em 0em 25vh 0em;
}

.pagination--project-txt > a {
  cursor: pointer;
}

.pagination--project-txt > a > img {
  padding-left: var(--gap2);
  height: 20em;
  width: auto;
}

.pagination--project-txt:hover ~ .cursor {
  transform: translate(-50%, -50%) scale(1.1);
}

@media only screen and (max-width: 992px) {
  .pagination--project-txt:hover ~ .cursor {
    transform: translate(-50%, -50%) scale(1);
  }
}
.pagination--project-txt:hover ~ .main-cursor {
  transform: translate(-50%, -50%) scale(0);
}

.pagination--label {
  cursor: pointer;
}

.pagination--label::after {
  display: inline-flex;
  content: "";
  background-image: url("/assets/general/svgs/arrow.svg");
  height: 0.9em;
  width: 0.9em;
  margin-left: 0.4em;
  background-repeat: no-repeat;
  vertical-align: -0.05em;
  transform: rotate(-90deg);
}

/* ---------------------------------- FOOTER ---------------------------------- */
.footer {
  position: fixed;
  column-span: 2;
  z-index: 600;
  color: var(--accent-color);
  bottom: 0;
  width: -moz-available;
  width: -webkit-fill-available;
  width: fill-available;
  margin-bottom: 1.3em;
  align-items: baseline;
}

.secondary-footer {
  grid-column: 3/5;
  position: unset;
  z-index: 1200;
  bottom: 0;
  width: -moz-available;
  width: -webkit-fill-available;
  width: fill-available;
  margin: 1.3em 0;
  align-items: baseline;
}

@media only screen and (max-width: 768px) {
  .footer {
    bottom: unset;
  }
  .secondary-footer {
    grid-column: 1/5;
    margin: 2em 0;
    justify-content: center;
  }
}
.footer--copyright {
  grid-column: 1/2;
}

.footer--links {
  display: inline-block;
  grid-column: 2/4;
}

.footer--mark {
  grid-column: 7/4;
  text-align: right;
  color: var(--accent-color);
  line-height: 1.1em;
}

.footer--links > a {
  margin-right: var(--gap1);
  white-space: nowrap;
}

@media only screen and (max-width: 768px) {
  footer {
    top: 0;
    margin-bottom: auto;
    margin-top: 1em;
  }
  .footer--links {
    grid-column: 2/3;
    display: flex;
    justify-content: space-between;
  }
  .footer--links > a {
    margin-right: 0;
  }
  .footer--mark {
    line-height: 0.95em;
  }
}
/* ---------------------------------- 404 ---------------------------------- */
.center-text--wrapper {
  text-align: center;
  position: absolute;
  z-index: 100;
  height: 100vh;
}

.center-text {
  grid-column: 3/5;
  align-self: center;
}

.center-text > .subtitle-2 {
  margin-bottom: 0.8em;
}

@media only screen and (max-width: 992px) {
  .center-text {
    grid-column: 2/4;
    align-self: center;
  }
}
@media only screen and (max-width: 768px) {
  .center-text {
    grid-column: span 2;
    align-self: start;
    margin-top: var(--gap3);
  }
}
