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

:root {
  --primary-blue: #49B9D5;
  --primary-yellow: #E5C55B;
  --primary-red: #C93D4A;
  --shade: #162125;
  --tint: #D8EAF0;
  --white: #fff;
  --content-width: 1440px;
  --gap-large: 20px;
  --gap-small: 10px;
  --padding-border: 4vw;
  --border-radius: 2.5rem;

  /*
  Clamps
  */

  --h5: clamp(0.94rem, 0.09vi + 0.92rem, 1rem);
  --h4: clamp(1.13rem, 0.3vi + 1.07rem, 1.33rem);
  --h3: clamp(1.35rem, 0.61vi + 1.23rem, 1.78rem);
  --h2: clamp(1.62rem, 1.07vi + 1.41rem, 2.37rem);
  --h1: clamp(1.94rem, 1.73vi + 1.6rem, 3.16rem);

  /* --h1: clamp(2.4883rem, 2.3273rem + 0.8049vw, 3.0518rem);
  --h2: clamp(2.0736rem, 1.9685rem + 0.5254vw, 2.4414rem);
  --h3: clamp(1.728rem, 1.6637rem + 0.3216vw, 1.9531rem);
  --h4: clamp(1.44rem, 1.405rem + 0.175vw, 1.5625rem);
  --h5: clamp(1.2rem, 1.1857rem + 0.0714vw, 1.25rem); */
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: "sofia-pro", sans-serif;
  font-weight: 500;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "obviously-wide", sans-serif;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
  max-width: 20ch;
}

/* Heading Tags */

h1 {
  font-weight: 800;
  font-size: var(--h1);
}

h2 {
  font-weight: 800;
  font-size: var(--h2);
}

h3 {
  font-weight: 700;
  font-size: var(--h3);
}

h4 {
  font-size: var(--h4);
}

h5 {
  font-size: var(--h5);
}

/* Heading Classes */
.h1 {
  font-weight: 800;
  font-size: var(--h1);
  font-family: "obviously-wide", sans-serif;
  line-height: 1;
  margin: 0;
  max-width: 20ch;
}

.h2 {
  font-weight: 800;
  font-size: var(--h2);
}

.h3 {
  font-weight: 700;
  font-size: var(--h3);
}

.h4 {
  font-size: var(--h4);
}

.h5 {
  font-size: var(--h5);
}

p {
  margin: 0;
  max-width: 55ch;
  line-height: 1.45;
}

.p {
  font-size: 1rem;
}

p.large {
  font-size: 1.25rem;
}

img {
  max-width: 100%;
}

/*
SCROLL ANIMATIONS
*/


[data-animation="fadeIn"] {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity cubic-bezier(0.550, 0.085, 0.680, 0.530) .3s, transform cubic-bezier(0.550, 0.085, 0.680, 0.530) .3s;
}

[data-animation="fadeIn"].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-fadein="delayed"] {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-fadein="delayed"].fade-in {
  opacity: 1;
}

/*
SCROLL ANIMATIONS
*/


.loading-animation {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}

.loading-layer {
  position: absolute;
  inset: 0;
  transition: transform .5s cubic-bezier(0.550, 0.085, 0.680, 0.530);
  will-change: transform;
}

.loading-layer.white {
  background-color: var(--white);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-layer.blue {
  background-color: var(--primary-blue);
  z-index: 3;
  transition-delay: 0.1s;
}

.loading-layer.yellow {
  background-color: var(--primary-yellow);
  z-index: 2;
  transition-delay: 0.3s;
}

.loading-layer.red {
  background-color: var(--primary-red);
  z-index: 1;
  transition-delay: 0.4s;
}

.loading-layer.hide {
  transform: translateY(-100%);
}





/* @keyframes bgAnimation {
  0% {
    background-color: var(--primary-yellow);
  }

  50% {
    background-color: var(--primary-blue);
  }

  100% {
    background-color: var(--primary-red);
  }
} */


.top-nav.scrolled {
  padding: 1rem 1.25rem;
  outline: 1px solid var(--shade);
  width: calc(100% - var(--padding-border)*2);
  top: 1.5%;
  background-color: var(--white);

  & .brand img {
    width: 2rem;
  }
}

.top-nav {
  position: fixed;
  top: 0;
  border-radius: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding-inline: var(--padding-border); */
  padding-block: 1.5rem;
  width: calc(100% - var(--padding-border) * 2);
  left: 50%;
  right: 50%;
  translate: -50% 0;
  z-index: 998;
  transition: all .3s ease-out;

  & .brand {
    transition: width .3s ease-out;
  }

  & .brand img {
    transition: width .2s ease-out;
    width: 40px;
  }

  & .hamburger {
    display: none;
  }

  & a {
    text-decoration: none;
    color: var(--shade);
  }

  & .nav-link-wrap {
    display: inherit;
    gap: 1rem;
    align-items: center;

    & ul {
      display: flex;
      gap: .25rem;
      margin: 0;
      padding: 0;

      & li {
        list-style: none;

        & a {
          padding: .4rem .7rem .5rem .7rem;
          border-radius: 50px;
          transition: background-color .2s ease-out, rotate .2s ease-out;
          display: inline-block;

          &:hover {
            background-color: var(--tint);
            rotate: 2deg;
          }
        }
      }
    }

    & .link-wrap {
      display: inherit;
      gap: 1.25rem;
    }
  }
}

.top-nav.darkmode {
  background-color: transparent;
  outline: 1px solid transparent;

  & ul {
    & li {
      & a {
        color: #fff;

        &:hover {
          background-color: #D8EAF015;
        }
      }
    }
  }

  & .button {
    color: #fff;
    outline: 1px solid white;

    &:hover {
      background-color: transparent;
      box-shadow: 5px 5px var(--tint);
    }
  }
}

section {
  margin-block: 6rem;
}

.button {
  font-family: "obviously-wide", sans-serif;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .01em;
  text-transform: uppercase;
  outline: 1px solid var(--shade);
  border-radius: 50px;
  padding: .8rem 1.5rem 1rem 1.5rem;
  display: inline-block;
  transition: background-color .2s ease-out, color .2s ease-out, box-shadow .2s ease-out, rotate .2s ease-out, opacity .5s ease-in-out, transform .5s ease-in-out, padding .2s ease-out;
  cursor: pointer;
  box-shadow: 0 0 0 var(--shade);
  text-decoration: none;
  color: var(--shade);

  &:hover {
    background-color: var(--tint);
    color: var(--shade);
    rotate: 4deg;
    box-shadow: 5px 5px var(--shade);
  }
}

.small {
  font-size: .7rem;
  padding: .25rem 1rem .5rem 1rem;
}

.container {
  max-width: var(--content-width);
  margin-inline: auto;
  padding: var(--padding-border);
}

/* ### HERO ### */

#hero {
  width: 100%;
  min-height: 80vh;
  padding-inline: calc(var(--padding-border) / 2);
  margin-top: 5rem;
  display: flex;
  /* margin-bottom: 0; */

  & .assets-mobile {
    display: none;
  }

  & .container {
    background-color: var(--tint);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
  }

  & .h1-wrap {
    width: 80%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .05em .8em;

    & .word-wrap {
      /* background: yellow; */
      overflow: clip;

      & span {
        display: inline-block;
        translate: 0 100%;
        transition: translate .8s cubic-bezier(0.79, 0.33, 0.14, 0.53);
      }

      & span.showtext {
        translate: 0 0;
      }
    }
  }

  & .text-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
    max-width: 991px;
    width: 100%;
    justify-content: center;

    & .alair-logo {
      position: static;
      width: 50px;
    }

    & img {
      position: absolute;
      display: block;
      max-width: 15vw;
    }

    & .abacus {
      left: 10%;
      bottom: -5%;
      width: 20vw;
    }

    & .star {
      left: 10%;
      top: 10%;
      width: 5vw;
    }

    .lock {
      width: 7.5vw;
      right: 10%;
      top: 10%
    }

    .openbox {
      max-width: 25vw;
      bottom: -2.5%;
      right: 2.5%;
      scale: -1 1;
    }

    & .floating {
      animation: float 2s ease-in-out alternate infinite;
    }
  }
}

@keyframes float {
  from {
    translate: 0 0;
  }

  to {
    translate: 0 10%;
  }
}

/* ### CONTENT ### */

#content {
  margin-top: 0;
  padding-block: 5rem;

  .container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;

    & h2 {
      display: inline;
    }
  }

  & img {
    max-width: 100%;
    width: 90%;
    position: absolute;
  }

  & .img-wrap {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
  }

  & .marquee {
    width: 100%;
    padding-top: 2rem;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: var(--gap-large);

    &:hover .marquee-content {
      animation-play-state: paused;
    }

    & .marquee-content {
      display: flex;
      height: inherit;
      min-width: 120%;
      justify-content: space-around;
      flex-grow: 0;
      flex-shrink: 0;
      flex-basis: auto;
      gap: var(--gap-large);
      align-items: center;
      animation: scroll-large 10s linear infinite;

      & .img-clip {
        width: 100%;
        aspect-ratio: 1 / 1;
        background-size: contain;
        background-repeat: no-repeat;
      }

      & .img-clip:nth-child(1) {
        background-image: url(../img/dynamic/cart_dynamic.png);
      }

      & .img-clip:nth-child(3) {
        background-image: url(../img/front/cart_front.png);
      }

      & .img-clip:nth-child(2) {
        background-image: url(../img/isometric/cart_isometric.png);
      }
    }
  }

  & .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-template-areas:
      "res color textures"
      "res angles custom";
    max-width: 1200px;
    width: 100%;
    margin-inline: auto;
    aspect-ratio: 2 / 1;
    gap: 1rem;

    & .cell {
      border-radius: 2rem;
      overflow: clip;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    & h3 {
      padding: 2rem;
    }

    & .cell:nth-child(1) {
      background-color: var(--primary-blue);
      grid-area: res;
      padding-top: 2rem;

      & .img-wrap {
        border-radius: 2rem 2rem 2rem 0;
        height: 100%;

        & img {
          height: 100%;
          width: 200%;
          left: -25%;
          object-fit: contain;
        }
      }
    }

    & .cell:nth-child(2) {
      background-color: var(--primary-yellow);
      grid-area: color;

      & .img-wrap {
        min-height: 150px;

        & img {
          height: 175%;
          object-fit: contain;
          top: -5%;
          left: 50%;
          right: 50%;
          translate: -50%;
        }
      }
    }

    & .cell:nth-child(3) {
      background-color: var(--shade);
      color: #fff;
      grid-area: textures;

      & .img-wrap {
        min-height: 150px;

        & img {
          height: 145%;
          object-fit: contain;
          top: -10%;
          left: 50%;
          right: 50%;
          translate: -50%;
        }
      }
    }

    & .cell:nth-child(4) {
      background-color: var(--tint);
      grid-area: angles;

      & .img-wrap {
        min-height: 150px;
        border-radius: 2rem 2rem 0 0;
        overflow: visible;

        & img {
          height: 175%;
          object-fit: contain;
          bottom: -5%;
          left: 50%;
          right: 50%;
          translate: -50%;
        }
      }
    }

    & .cell:nth-child(5) {
      background-color: var(--primary-red);
      grid-area: custom;

      & .img-wrap {
        min-height: 150px;

        & img {
          height: 150%;
          object-fit: contain;
          bottom: 0;
          right: 0;
        }
      }
    }
  }
}


& .customization {
  grid-area: 3/3/4/4;
  background-color: var(--primary-red);
  display: flex;
  justify-content: flex-end;

  & img {
    top: -20%;
    width: 50%;
    right: 5%;
  }
}

/* ### EXAMPLES ### */

#examples {
  --sticky-offset: 5rem;

  & .container {
    display: flex;
    /* gap: 3rem; */
    padding: 0;
    max-width: var(--content-width);
    min-height: 200vh;
    width: 100%;
    justify-content: center;
    align-items: flex-start;
  }

  & .text-wrap {
    display: flex;
    justify-content: flex-end;
    /* background-color: violet; */
    padding-left: var(--padding-border);
    position: sticky;
    top: 0;
    height: 100vh;
  }

  & .content-wrap {
    display: inherit;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    max-width: calc(var(--content-width) / 2);
  }

  & .sticky-wrap {
    width: 100%;
    max-width: calc(var(--content-width) / 2);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    margin-right: 2rem;
    gap: 2rem;
  }

  & .img-wrap {
    width: 86%;
    display: inherit;
    align-items: center;
    justify-content: center;
    background-color: var(--tint);
    padding: calc(var(--padding-border) / 2);
    aspect-ratio: 1 / 1;
    border-radius: var(--border-radius);
    padding: 4rem;

    & img {
      width: 100%;
      height: 100%;
      aspect-ratio: 1 / 1;
      object-fit: contain;
    }
  }

  & .img-wrap:nth-child(1) {
    background-color: var(--primary-blue);
  }

  & .img-wrap:nth-child(2) {
    background-color: var(--primary-yellow);
  }

  & .img-wrap:nth-child(3) {
    background-color: var(--primary-red);
  }
}

/* ### STICKY DARK SIDE ### */

#sticky-dark-side {
  background-color: var(--shade);
  position: relative;
  border-radius: var(--border-radius);
  height: 300vh;
  overflow-x: clip;

  & .container {
    position: sticky;
    top: 0;
    height: 100vh;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;

    & h2 {
      text-align: center;
      font-size: clamp(1rem, calc(10vw + 1rem), 8rem);
    }
  }

  & img {
    max-width: 400px;
    position: absolute;
    z-index: 1;
    left: 50%;
    right: 50%;
    translate: -50%;
  }

  & .magnet {
    top: 20%;
    translate: -100%;
  }

  & .rubik {
    top: 35%;
    translate: 10%;
  }

  & .present {
    max-width: 450px;
    top: 50%;
    translate: -100%;
  }

  & .compass {
    bottom: 5%;
    translate: 10%;
  }
}


/* ### DARK SIDE ### */

#dark-side {
  padding: var(--padding-border);

  & .container {
    background-color: var(--shade);
    color: var(--tint);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    margin: auto;
    max-width: 1200px;
    padding: 80px;
  }

  & .text-wrap {
    gap: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
  }


  & .img-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    max-height: 25rem;

    & img {
      object-fit: contain;
    }
  }
}

/** ### TESTIMONIAL ### **/

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100% - var(--gap-small)));
  }
}

@keyframes scroll-large {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100% - var(--gap-large)));
  }
}

#testimonials {

  & .marquee {
    display: flex;
    gap: var(--gap-small);

    &:hover .marquee-wrap {
      animation-play-state: paused;
    }
  }

  & .marquee-wrap {
    display: flex;
    min-width: 100%;
    justify-content: space-around;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
    grid-column-gap: var(--gap-small);
    animation: scroll 60s linear infinite;
  }

  & .testimonial {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-radius: var(--border-radius);
    padding: calc(var(--padding-border) * 1.25) calc(var(--padding-border) * 1) calc(var(--padding-border) * .75) calc(var(--padding-border) * 1);
    text-align: center;
    align-items: center;
    flex-shrink: 0;
    transition: translate .2s ease-out, rotate .2s ease-out, box-shadow .2s ease-out;
    transform-origin: top right;
    box-shadow: 0 0 0 var(--shade);

    &:hover {
      translate: -2% -2.5%;
      rotate: 2deg;
      box-shadow: 20px 20px 0 var(--shade);
    }
  }

  & .person {
    display: flex;
    align-items: center;
    gap: 1rem;

    & .profile-picture {
      width: 50px;
      height: 50px;
      border-radius: 50%;
    }

    & .mohammed {
      background-size: cover;
      background-image: url(../img/mohammed.jpg);
    }

    & .robin {
      background-size: cover;
      background-image: url(../img/robin.jpg);
    }

    & .przemyslaw {
      background-size: cover;
      background-image: url(../img/thalion_pb.jpg);
    }

    & .name {
      & .h5 {
        font-family: "obviously-wide", sans-serif;
        font-weight: 600;
        font-size: .75rem;
      }

      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }
  }

  & .yellow {
    background-color: var(--primary-yellow);
  }

  & .blue {
    background-color: var(--primary-blue);
  }

  & .red {
    background-color: var(--primary-red);
  }
}

/* ### OVERVIEW ### */

#overview {
  .container {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4em;
    align-items: center;
    text-align: center;
  }

  .head-wrap {
    display: inherit;
    flex-direction: inherit;
    align-items: center;
    gap: 2rem;
  }

  .filter-wrap {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 100%;
    z-index: 1;
    bottom: 5dvh;
    translate: 0 100%;
    opacity: 0;
    transition: translate .3s ease-in-out, opacity .3s ease-in-out;

    &.in-view {
      translate: 0 0;
      opacity: 1;
    }

    & .gallery-filter li {
      list-style: none;
      cursor: pointer;
    }

    & .gallery-filter:nth-child(1) {
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
      -webkit-touch-callout: none;
      user-select: none;

      & ul {
        padding: .8125rem;
        gap: 1.5rem;
      }

      & li {
        display: flex;
        align-items: center;
        transition: scale .2s ease-in-out;


        & .tag {
          pointer-events: none;
          aspect-ratio: 1 / 1;
          width: 28px;
          overflow: clip;
          border-radius: 50%;
          display: inline;
          background-size: cover;
          scale: .8;
        }

        & .col-tag {
          pointer-events: none;
          background-image: url(../img/colorful-tag.webp);
        }

        & .bnw-tag {
          pointer-events: none;
          background-image: url(../img/bnw-tag.webp);
        }
      }

      & .active {
        scale: 1.25;
        outline: 2px solid var(--tint);
        outline-offset: -1px;
        border-radius: 50%;
      }
    }

    & .gallery-filter:nth-child(2) {

      & li {
        padding: .5rem 1rem;
        border-radius: 50px;
        transition: background-color .2s ease-out, color .2s ease-out, opacity .2s ease-out, rotate .2s ease-out;

        &:hover {
          background-color: var(--tint);
          rotate: 2deg;
        }
      }

      & .active {
        background-color: var(--shade);
        color: var(--white);

        &:hover {
          background-color: var(--shade);
          opacity: .8;
        }
      }
    }

    & ul {
      margin: 0;
      outline: 1px var(--shade) solid;
      background-color: var(--white);
      padding: .5rem;
      border-radius: 50px;
      display: flex;
      flex-wrap: wrap;
      gap: .5rem;
      flex-wrap: wrap;
    }
  }
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: var(--gap-large);
  width: 100%;

  & .cell.show {
    animation: fadeIn 0.5s ease;
  }

  & .cell.hide {
    display: none;
  }

  & .cell {
    border-radius: var(--border-radius);
    outline: 1px var(--tint) solid;
    padding: 2rem;

    & img {
      object-fit: contain;
      width: 100%;
      height: auto;
    }
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* ### PRICING ### */

#pricing {
  border-radius: calc(var(--border-radius) * 1.5);
  background-color: var(--tint);
  margin-inline: var(--padding-border);
  padding: var(--padding-border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;

  & .text-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding-block: 2rem;
  }

  & p {
    margin-bottom: 1.5rem;
  }

  & .pricing-card-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--gap-large);
    width: 100%;
    align-items: start;
    max-width: 1200px;
  }

  & .pricing-card {
    max-width: 20rem;
    padding: 3rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;

    & .logo-wrap {
      display: flex;
      align-items: center;
      gap: .75rem;

      & h3 {
        font-weight: 600;
      }

      & .seperator {
        width: 1px;
        height: 20px;
        background-color: var(--shade);
      }
    }

    & .pricing-wrap {
      display: inherit;
      flex-direction: inherit;
      align-items: flex-start;
      gap: 1rem;
      text-align: left;

      & h4 {
        font-size: 2rem;
        font-weight: 800;
      }
    }

    & .feature-wrap {
      display: inherit;
      flex-direction: inherit;
      gap: 1rem;

      & p {
        margin: 0;
      }
    }

    & .button {
      width: 100%;
    }
  }

  & ul {
    margin: 0;
    display: flex;
    flex-direction: inherit;
    align-items: flex-start;
    padding: 0 0 0 1.6rem;
    text-align: left;

    & li {
      font-size: 1rem;
      line-height: 1.5;
      list-style-image: url('data:image/svg+xml, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -3 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check"><g transform="scale(0.7), translate(0,7)" transform-origin="center"> <path d="M20 6 9 17l-5-5"/> </g></svg>');

      &::marker {
        font-size: 3em;
        line-height: 0.1;
        stroke: var(--shade);
      }
    }
  }

  & .dark {
    background-color: var(--shade);
    box-shadow: 0 0 0 var(--white);
    color: var(--tint);

    & .button {
      outline: 1px solid var(--tint);
      color: var(--tint);

      &:hover {
        background-color: var(--shade);
        box-shadow: 5px 5px 0 var(--white);
      }
    }

    & .logo-wrap {
      & .seperator {
        background-color: var(--tint);
      }
    }

    & li {
      list-style-image: url('data:image/svg+xml, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -3 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check"><g transform="scale(0.7), translate(0,7)" transform-origin="center"> <path d="M20 6 9 17l-5-5"/> </g></svg>');
    }
  }
}

/* ### FOOTER ### */

footer {
  .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem var(--padding-border) 2rem var(--padding-border);
  }

  & img {
    width: 50px;
  }

  & ul {
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;

    & li {
      list-style: none;

      & a {
        text-decoration: none;
        color: var(--shade);
      }
    }
  }
}


#impressum {
  min-height: 100vh;

  & h1 {
    margin-bottom: 2rem;
  }

  & .container {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 2rem;
  }

  & .imp-subwrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    & .text-subwrap {
      display: inherit;
      flex-direction: inherit;
      margin-bottom: 1rem;
    }

    & h2 {
      margin-bottom: 1.5rem;
      font-weight: 700;
    }

    & p {
      max-width: 100%;
    }

    & .p-space {
      margin-bottom: 1rem;
    }

    & strong {
      margin-bottom: .5rem;
    }

    .link {
      color: var(--shade);
      text-decoration: none;
      position: relative;
      display: inline-block;

      &::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -10%;
        width: 0;
        height: 1.5px;
        background-color: var(--shade);
        transition: width .2s ease-out;
      }

      &::before {
        content: '';
        position: absolute;
        left: 0;
        bottom: -10%;
        width: 100%;
        height: 1.5px;
        background-color: #16212530;
        transition: width .2s ease-out;
      }

      &:hover::after {
        width: 100%;
      }
    }
  }
}



@media screen and (max-width: 991px) {

  .top-nav {
    padding-block: 2rem;
    position: fixed;

    & .hamburger {
      display: block;
      margin-right: 1px;
      width: 20px;
      height: 20px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      position: relative;
      cursor: pointer;

      & span {
        position: absolute;
        inset: 50%;
        translate: -50% -50%;
        border-radius: 50px;
        width: 20px;
        height: 2px;
        background-color: var(--shade);
        transition: top .2s ease-in-out, rotate .2s ease-in-out;
      }

      & span:nth-child(1) {
        top: 30%;
      }

      & span:nth-child(2) {
        top: 70%;
      }
    }

    & .open {
      & span:nth-child(1) {
        top: 50%;
        rotate: 45deg;
      }

      & span:nth-child(2) {
        top: 50%;
        rotate: -45deg;
      }
    }

    & .open+.nav-link-wrap {
      translate: 0 0;
    }

    & .nav-link-wrap {
      /* background-color: #49B9D5; */
      display: block;
      position: absolute;
      width: 100%;
      left: 0;
      translate: 150% 0;
      top: 110%;
      z-index: -10;
      background-color: var(--white);
      padding: 1.5rem 1rem 1rem 1rem;
      transition: translate .2s cubic-bezier(0.550, 0.085, 0.680, 0.530);
      outline: 1px solid var(--shade);
      outline-offset: -1px;
      border-radius: var(--border-radius);


      & .link-wrap ul {
        display: block;

        & a {
          display: block;
          padding: .75rem 1.25rem;
          font-size: 1.25rem;
          transition: background-color .3s ease-out, padding-inline .3s ease-out, rotate .3s ease-out;
          /* margin-bottom: .25rem; */

          &:hover {
            background-color: var(--tint);
            rotate: 1deg;
          }
        }
      }

      & .button {
        margin-top: 2rem;
        width: 100%;
        display: flex;
        justify-content: center;
        padding-block: .8rem 1rem;
      }
    }
  }

  .darkmode {

    & .hamburger {
      & span {
        background-color: var(--white);
      }
    }

    & .nav-link-wrap {
      background-color: var(--shade);
      outline: 1px solid var(--tint);
    }

    & .button {
      &:hover {
        rotate: 1deg;
        background-color: var(--shade);
        box-shadow: 5px 5px 0 var(--white);
      }
    }

    & .nav-link-wrap .link-wrap ul {
      & a {
        &:hover {
          background-color: #D8EAF030;
        }
      }
    }
  }

  /* ### Adjustments HERO ### */

  #hero {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 0;
    padding: var(--padding-border);

    & .container {
      align-items: flex-start;
      width: 100%;
      grid-area: 1 / 1 / -2 / -1;
      padding: 3rem 2rem 8rem 2rem;
      display: grid;
      grid-template-rows: repeat(6, 1fr);

      & .abacus,
      .openbox,
      .lock,
      .star {
        display: none;
      }

      & .text-wrap {
        grid-row: 1 / -2;
        gap: 1.25rem;
      }
    }

    & .assets-mobile {
      display: flex;
      margin-inline: auto;
      aspect-ratio: 1 / 1;
      width: 100%;
      grid-area: -3 / 2 / -1 / -2;
      z-index: 1;
      position: relative;
      background-image: url(../img/dynamic/abacus_dynamic.png);
      animation: assetAnimation 2s infinite steps(1);
      background-size: contain;
      background-repeat: no-repeat;
    }
  }

  /* ### Adjustments CONTENT ### */

  #content {
    padding-top: 0;

    & .grid {
      aspect-ratio: auto;
      grid-template-columns: repeat(2, 1fr);
      grid-template-areas:
        "res res"
        "color color"
        "textures textures"
        "angles angles"
        "custom custom";

      & .cell:nth-child(1) {
        padding-top: 0;

        & .img-wrap {
          min-height: 150px;

          & img {
            height: 175%;
            top: -5%;
            left: 50%;
            right: 50%;
            translate: -50%;
          }
        }
      }

      & .cell:nth-child(1),
      & .cell:nth-child(4),
      & .cell:nth-child(5) {
        flex-direction: column-reverse;

        & img {
          top: -5%;
        }
      }

      & .marquee {
        padding-top: 1rem;
        padding-bottom: 3rem;

        & .marquee-content {
          min-width: 100%;
        }
      }
    }
  }

  /* ### ADJUSTMENTS EXAMPLES ### */


  #examples {
    & .container {
      flex-direction: column;
      align-items: center;
      padding: var(--padding-border);
      gap: 3rem;

      & .text-wrap {
        padding: 0;
        width: 100%;
        height: auto;
        position: static;

        & .content-wrap {
          width: 100%;
          max-width: 100%;
          gap: 1.5rem
        }
      }

      & .sticky-wrap {
        margin-right: auto;

        & .img-wrap {
          padding: 1.5rem;

          & img:nth-child(1) {
            width: 100%;
            object-fit: contain;
          }
        }
      }

      & .img-wrap {
        width: 100%;
      }
    }
  }

  /* ### STICKY DARK SIDE ### */

  #sticky-dark-side {
    height: 150vh;

    & img {
      max-width: 200px;
    }

    & .present {
      max-width: 250px;
    }
  }

  /* ### PRICING ADJUSTMENTS ### */

  #pricing {
    padding: 0;
    gap: 0;


    & .text-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2rem;
      padding: calc(var(--padding-border) * 3.5) calc(var(--padding-border) * 2) calc(var(--padding-border) * 1) calc(var(--padding-border) * 2);
    }

    & p {
      margin-bottom: 1.5rem;
    }

    & .pricing-card-wrap {
      width: 100%;
      align-items: start;
      max-width: none;
      padding: var(--padding-border);
    }

    & .pricing-card {
      max-width: 100%;
      width: 100%;

      & .logo-wrap {
        display: flex;
        align-items: center;
        gap: .75rem;

        & h3 {
          font-weight: 600;
        }

        & .seperator {
          width: 1px;
          height: 20px;
          background-color: var(--shade);
        }
      }

      & .pricing-wrap {
        display: inherit;
        flex-direction: inherit;
        align-items: flex-start;
        gap: 1rem;
        text-align: left;

        & h4 {
          font-size: 2rem;
          font-weight: 800;
        }
      }

      & .feature-wrap {
        display: inherit;
        flex-direction: inherit;
        gap: 1rem;

        & p {
          margin: 0;
        }
      }

      & .button {
        width: 100%;
      }
    }

    & ul {
      margin: 0;
      display: flex;
      flex-direction: inherit;
      align-items: flex-start;
      padding: 0 0 0 1.6rem;
      text-align: left;

      & li {
        font-size: 1rem;
        line-height: 1.5;
        list-style-image: url('data:image/svg+xml, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -3 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check"><g transform="scale(0.7), translate(0,7)" transform-origin="center"> <path d="M20 6 9 17l-5-5"/> </g></svg>');

        &::marker {
          font-size: 3em;
          line-height: 0.1;
          stroke: var(--shade);
        }
      }
    }

    & .dark {
      background-color: var(--shade);
      box-shadow: 0 0 0 var(--white);
      color: var(--tint);

      & .button {
        outline: 1px solid var(--tint);
        color: var(--tint);

        &:hover {
          background-color: var(--shade);
          box-shadow: 5px 5px 0 var(--white);
        }
      }

      & .logo-wrap {
        & .seperator {
          background-color: var(--tint);
        }
      }

      & li {
        list-style-image: url('data:image/svg+xml, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -3 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check"><g transform="scale(0.7), translate(0,7)" transform-origin="center"> <path d="M20 6 9 17l-5-5"/> </g></svg>');
      }
    }
  }
}

@media screen and (max-width: 576px) {

  p.large {
    font-size: 1rem;
    font-weight: 500;
  }


  /* ### Adjustments HERO ### */

  #hero {
    display: grid;
    grid-template-columns: repeat(8, 1fr);

    & .h1-wrap {
      width: 100%;
    }
  }

  #testimonials {
    & .marquee {
      overflow-x: clip;

      & .marquee-wrap {

        & .testimonial {
          gap: 1.5rem;
          padding: 3rem 1rem;

          & h2 {
            max-width: 15ch;
          }

          & p {
            max-width: 30ch;
          }
        }
      }
    }
  }

  #overview {
    & .asset-grid {
      grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
      gap: .75rem;

      & .cell {
        padding: 1.25rem;
      }
    }
  }

  footer {
    & .container {
      gap: 1rem;
    }
  }
}

@keyframes assetAnimation {
  0% {
    background-image: url(../img/dynamic/abacus_dynamic.png);
  }

  25% {
    background-image: url(../img/dynamic/openbook_dynamic.png);
  }

  50% {
    background-image: url(../img/dynamic/lock_dynamic.png);
  }

  75% {
    background-image: url(../img/dynamic/star_dynamic.png);
  }
}