* {
      margin: 0;
      padding: 0;
      -webkit-margin-before: 0;
      margin-block-start: 0;
      -webkit-margin-after: 0;
      margin-block-end: 0;
      border-width: 0;
      background: none;
      text-decoration: none;
      color: inherit;
}

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

:root {
      --c-black: #0B0B0B;
      --c-white: #F9F9F9;
      --c-grey: #BCC3D1;
      --c-dark-grey: #838383;
      --c-main: #EEFFC3;
      --c-lime-background: rgba(225, 255, 148, 0.5);
}

[data-theme='high'] {
      --c-grey: #0B0B0B;
      --c-dark-grey: #0B0B0B;
      --c-lime-background: rgba(238, 252, 201, 0.951);
}

html {
      font-size: 16px;
      /*       scroll-behavior: smooth; */
}

body {
      background-color: var(--c-white);
}

button {
      cursor: pointer;
}

main {
      min-height: 100dvh;
}

img {
      width: 100%;
      height: 100%;
      display: block;
}

hr {
      width: 100%;
      height: 1px;
      background-color: var(--c-black);
}

.hidden {
      opacity: 0;
}

.desktop-only {
      display: none;
}

@media (min-width: 720px) {

      .desktop-only {
            display: block;
      }
}

.picture.animated {
      opacity: 0;
      transform: scale(.95) translateY(0);
      transition: all .5s ease-out;
}

.picture.move {
      opacity: 1;
      transform: scale(1) translateY(0);
}

/** LANDING **/

#landing {
      height: calc(25dvh + 12vw);
      width: 100dvw;
      display: flex;
      justify-content: center;
      align-items: start;
      position: sticky;
      margin-top: calc(25dvh - 12vw);
      margin-bottom: 3rem;
      top: 3rem;
      z-index: -1;
}

#landing-home {
      height: calc(50dvh + 12vw);
      width: 100dvw;
      display: flex;
      justify-content: center;
      align-items: start;
      position: sticky;
      margin-top: calc(50dvh - 12vw);
      top: 3rem;
      z-index: -1;
}

#landing-animation {
      height: 100dvh;
      width: 100dvw;
      position: absolute;
      overflow: hidden;
      top: 0;
      left: 0;
      z-index: 2;
      touch-action: none;
      overscroll-behavior: contain;
}

#landing-animation img {
      position: absolute;
      opacity: 0;
      transform: translate(-50%, -50%) scale(0);
}

#landing-animation img.portrait {
      height: 40vw;
      width: auto;
}

#landing-animation img.landscape {
      height: auto;
      width: 40vw;
}

@media (hover: hover) {
      #landing-animation {
            overscroll-behavior: auto;
      }
}

@media (min-width: 720px) {
      #landing {
            height: max-content;
            margin-top: 3rem;
            margin-bottom: 10rem;
      }

      #landing-animation img.portrait {
            height: 30vw;
            width: auto;
      }

      #landing-animation img.landscape {
            height: auto;
            width: 30vw;
      }
}

/** PROJECTS **/

.projects-container {
      padding: 0 .25rem;
}

.project {
      position: relative;
      display: block;
}

.project-image-grid {
      padding: 0 .5rem;
}

h3.project-title {
      display: flex;
      justify-content: space-between;
      align-items: start;
      gap: .5rem;
      line-height: 1;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 100%;
      color: var(--c-grey);
}

.project-title-text {
      padding: .4rem .5rem .3rem .5rem;
      border-radius: 1rem;
      width: auto;
      transition: .5s all ease-in-out;
}

.project-title-text.high-contrast {
      background: var(--c-white) !important;
}

@media (min-width: 720px) {

      .projects-container {
            padding: 0 .25rem;
      }

      h3.project-title {
            display: grid;
            grid-template-columns: auto max-content;
            grid-template-columns: 2fr 2fr max-content;
      }

      .project-title-text {
            width: max-content;
      }

      .project-image-grid {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
      }

      a.project:hover .project-title-text,
      a.project:focus-visible .project-title-text {
            background: rgba(255, 255, 255, 0.25);
            box-shadow: 3px 3px 6px 0 rgba(0, 0, 0, 0.15), -3px -3px 6px 0 rgba(0, 0, 0, 0.15) inset, 3px 3px 6px 0 rgba(255, 255, 255, 0.85) inset, -3px -3px 6px 0 rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(3px);
            color: var(--c-black);
      }

      .col-1-1 {
            grid-column: 1 / span 1;
      }

      .col-1-2 {
            grid-column: 1 / span 2;
      }

      .col-1-3 {
            grid-column: 1 / span 3;
      }

      .col-1-4 {
            grid-column: 1 / span 4;
      }

      .col-1-5 {
            grid-column: 1 / span 5;
      }

      .col-2-1 {
            grid-column: 2 / span 1;
      }

      .col-2-2 {
            grid-column: 2 / span 2;
      }

      .col-2-3 {
            grid-column: 2 / span 3;
      }

      .col-2-4 {
            grid-column: 2 / span 4;
      }

      .col-3-1 {
            grid-column: 3 / span 1;
      }

      .col-3-2 {
            grid-column: 3 / span 2;
      }

      .col-3-3 {
            grid-column: 3 / span 3;
      }

      .col-4-1 {
            grid-column: 4 / span 1;
      }

      .col-4-2 {
            grid-column: 4 / span 2;
      }

      .col-5-1 {
            grid-column: 5 / span 1;
      }
}

/** PROJECT **/

.project-image-wrapper {
      position: relative;
      width: 100%;
      padding-bottom: var(--padding-mobile);
}

@media (min-width: 721px) {
      .project-image-wrapper {
            padding-bottom: var(--padding-desktop);
      }
}

.project-image-container {
      position: absolute;
      inset: 0;
}

.project-info {
      margin-top: 5rem;
      background: var(--c-lime-background);
      box-shadow: -2px -2px 0.5px -2px rgba(255, 255, 255, 0.70) inset, 1px 1px 2px 1px rgba(255, 255, 255, 0.70) inset, 0 0 26.869px 0 rgba(220, 241, 165, 0.50) inset, 0 2px 8px 2px rgba(0, 0, 0, 0.15);
      backdrop-filter: blur(5px);
      padding: 0 .75rem;
}

.project-info-title {
      padding: 1rem 0 3rem 0;
      display: flex;
      justify-content: center;
      align-items: center;
}

.section-title {
      border: 1px solid var(--c-black);
      border-radius: 5rem;
      padding: .3rem .5rem .2rem .5rem;
}

.project-gallery {
      padding: 0 .75rem;
}

.project-meta-container {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
      margin-top: 2rem;
}

@media (min-width: 720px) {

      .project-gallery {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
      }

      .col-1 {
            grid-column: span 1;
      }

      .col-2 {
            grid-column: span 2;
      }

      .col-3 {
            grid-column: span 3;
      }

      .col-4 {
            grid-column: span 4;
      }

      .col-5 {
            grid-column: span 5;
      }

      .project-info-container {
            max-width: 720px;
      }

      .project-meta-container {
            grid-template-columns: 1fr 1fr 1fr;
      }

      .project-info {
            display: flex;
            flex-direction: column;
            align-items: center;
      }

      .project-info-title {
            padding: 4rem 0;
            display: flex;
            justify-content: center;
            align-items: center;
      }

}

/** ABOUT **/

.about.project-description,
.about.project-info {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4rem;
}

.about.project-description {
      gap: 2rem;
}

.about.project-description.animated,
.offers-container.animated,
.about-text.animated {
      opacity: 0;
      transform: scale(.9);
      transition: all .5s ease-out;
}

.about.project-description.move,
.offers-container.move,
.about-text.move {
      transform: scale(1);
      opacity: 1;
}

.offers-container {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      perspective: 800px;
}

.offer {
      background: #ffffffab;
      border: 2px solid #ffffff;
      border-radius: .5rem;
      padding: 1rem;
      display: flex;
      flex-direction: column;
      align-items: start;
      gap: 1rem;
      box-shadow: 4px 4px 8px 0 rgba(0, 0, 0, 0.05);
      transition: transform 0.4s ease, box-shadow 0.4s ease;
      transform-style: preserve-3d;
      transform-origin: center;
}

.offer:hover {
      transform: translateZ(8px);
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.offer img {
      border-radius: .25rem;
      height: 4rem;
      width: auto;
      margin-bottom: 2rem;
}

.about-me-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2rem
}

.about-portrait img {
      border-radius: 15rem;
      width: 80vw;
      height: 80vw;
      max-width: 320px;
      max-height: 320px;
}

.about-portrait.animated {
      opacity: 0;
      transform: translateY(2rem) scale(.9);
      transition: all .5s ease-out;
}

.about-portrait.move {
      opacity: 1;
      transform: translateY(0) scale(1);
      transition: all .5s ease-out;
}

.contact-options {
      display: flex;
      flex-wrap: wrap;
      gap: .5rem;
      justify-content: center;
      align-items: center;
      max-width: 620px;
}

@media (min-width: 720px) {

      .offers-container {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 1rem;
            max-width: 920px;
      }

      .offer {
            padding: .5rem;
      }

      .about-me.project-info-title {
            padding: 1rem 0 0 0;
      }

      .following.project-info-title {
            padding: 1rem 0 3rem 0;
      }

      .about-me-container {
            display: flex;
            flex-direction: row;
            align-items: start;
            gap: 4rem;
            max-width: 920px;
      }

}

@media (min-width: 1048px) {

      .offer {
            padding: 1rem;
      }
}

/* Base mask button function replaced manually */
.cta-container {
      position: relative;
      overflow: hidden;
      background: #ffffffab;
      cursor: pointer;
      color: var(--c-black);
      border-radius: 5rem;
      transition: 0.5s;
      height: 3rem;
      width: max-content;
      display: block;
}

.cta-container .mask-container {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      display: flex;
      justify-content: center;
      align-items: center;
      overflow: hidden;
}

.cta-container .mask {
      width: 101%;
      height: 3rem;
      background: var(--c-black);
      -webkit-mask: url("/assets/icons/natureSmaller.png");
      mask: url("/assets/icons/natureSmaller.png");
      -webkit-mask-size: 19600px 60px;
      mask-size: 19600px 60px;
      -webkit-mask-position: -19320px 0;
      mask-position: -19320px 0;
      -webkit-animation: ani .7s steps(70) forwards;
      animation: ani .7s steps(70) forwards;
      padding: .5rem 1rem;
      transition: all .7s ease-out;
      transform: scale(1);
}

.cta-container:hover .mask,
.cta-container:focus-visible .mask {
      -webkit-animation: ani2 0.7s steps(70) forwards;
      animation: ani2 0.7s steps(70) forwards;
      transform: scale(1.1);
}

.cta-container:hover,
.cta-container:focus-visible {
      box-shadow: -4px -4px 1px -4px rgba(255, 255, 255, 0.70) inset,
            2px 2px 4px 2px rgba(255, 255, 255, 0.70) inset,
            0 0 53.738px 0 rgba(220, 241, 165, 0.50) inset,
            0 4px 16px 4px rgba(0, 0, 0, 0.15);
      transform: scale(1.025);
      color: var(--c-white);
}

.mas {
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: .5rem 1rem;
      height: 3rem;
      z-index: 1;
}

/* animations */
@-webkit-keyframes ani {
      from {
            -webkit-mask-position: 0 0;
            mask-position: 0 0;
      }

      to {
            -webkit-mask-position: -19320px 0;
            mask-position: -19320px 0;
      }
}

@keyframes ani {
      from {
            -webkit-mask-position: 0 0;
            mask-position: 0 0;
      }

      to {
            -webkit-mask-position: -19320px 0;
            mask-position: -19320px 0;
      }
}

@-webkit-keyframes ani2 {
      from {
            -webkit-mask-position: -19320px 0;
            mask-position: -19320px 0;
      }

      to {
            -webkit-mask-position: 0px 0;
            mask-position: 0px 0;
      }
}

@keyframes ani2 {
      from {
            -webkit-mask-position: -19320px 0;
            mask-position: -19320px 0;
      }

      to {
            -webkit-mask-position: 0px 0;
            mask-position: 0px 0;
      }
}

/** IMPRINT **/

.imprint-container {
      padding: 2rem 0;
      display: flex;
      flex-direction: column;
      gap: 2rem;
}

.imprint *,
.privacy * {
      margin-bottom: .5rem;
}

.imprint-container li {
      margin-left: 2rem;
}

@media (min-width: 720px) {

      .imprint-container {
            padding: 2rem;
      }

      .imprint-container .project-info-title {
            margin-bottom: 2rem;
      }
}

@media (min-width: 920px) {

      .imprint-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            max-width: 1200px;
      }
}

/** ERROR **/

.error-container {
      padding: 2rem;
      padding-top: 4rem;
}