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

@font-face {
  font-family: 'Helvetica Neue';
  src: url('../fonts/HelveticaNeueRoman.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('../fonts/HelveticaNeueItalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('../fonts/HelveticaNeueBold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
} 

@font-face {
  font-family: 'Helvetica Neue';
  src: url('../fonts/HelveticaNeueBoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
} 




:root {
  --font-family-main: 'Helvetica Neue', Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

  --color-black: #000;
  --color-white: #fff;
  --color-grey: #636363;

  --font-size-l: 3.75rem;
  --font-size-m: 1.25rem;

  --font-line-height-l: 3.67263rem;
  --font-line-height-m: 1.22419rem;


}

html, body {
  background: var(--color-white);
  color: var(--color-black);
  font-family: var(--font-family-main), Helvetica, Arial, sans-serif;

  cursor: none !important;
}

body {
  font-size: var(--font-size-m);
  line-height: var(--font-line-height-m);
}

main {
  padding-bottom: 5rem;
}


/* ::-moz-selection {
  color: red;
  background: yellow;
}

::selection {
  color: red;
  background: yellow;
} */

.custom-cursor {
  width: 15px;
  height: 15px;
  /* background-color: black; */

  background-color: white;
  mix-blend-mode: difference;

  border-radius: 50%;
  position: absolute;
  pointer-events: none; 
  z-index: 20; 
  transform: translate(-50%, -50%); 
}




/* Metaballs styles*/
.metaball-effect {
  position: relative;
  z-index: 1;
  filter: contrast(40);

  color: #000;
  background: white;
  overflow: hidden !important;
}

.metaball {
  width: 25px;
  height: 25px;

  position: absolute;
  background: black;
  /* mix-blend-mode: difference; */

  border-radius: 50%;
  filter: blur(8px);

  pointer-events: none; 
  display: none; 
  top: 0;
  left: 0;
}

.char {
  display: inline-block; 
  transition: filter 0.4s ease;
}
/* Word spans */
.word {
  display: inline-flex;
  /* flex-wrap: nowrap; */
  /* overflow-wrap: anywhere; */
}





/* TOOL STYLES */
.intro,
#intro {
  width: 100vw;
  height: 100vh;
  overflow: auto;
  position: relative;
  z-index: 10;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.canvas {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Media background */
#media_BG {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 1;
}

#media_BG img,
#media_BG video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Container for metaballs and text */
.metaballs-intro {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
  filter: contrast(40);
  mix-blend-mode: multiply;
}

/* Metaball element */
.metaball-intro {
  width: var(--metaball-size);
  height: var(--metaball-size);
  position: absolute;
  background: black;
  border-radius: 50%;
  filter: blur(var(--metaball-blur));
  pointer-events: none;
  z-index: 100 !important;
  transform: translate(-50%, -50%);
}

/* Text container */
.text-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100vw - 2.5rem);
  height: calc(100dvh - 2.5rem);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Editable text */
.editable-text {
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 10rem);
  padding: 10px 40px 0px 10px;
  font-size: var(--font-size, 50px);
  line-height: 0.85;
  /* letter-spacing: calc(var(--font-size) * -0.15); */
  text-align: center;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  box-sizing: border-box;
  color: inherit;
}


.editable-text:focus {
  outline: none;
  caret-color: transparent;
}

.editable-text p {
  margin: 0;
  padding: 0;
  line-height: inherit;
}

.cursor-enabled:focus {
  caret-color: black;
}

/* Custom blinking cursor */
#blinkingCursor {
  position: absolute;
  width: 4px;
  background-color: black;
  z-index: 102;
  pointer-events: none;
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

#exportCaption {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: -1px;
  filter: blur(.55px);
  mix-blend-mode: multiply;
  color: black;
  font-family: sans-serif;
  z-index: 999;
  pointer-events: none;
}

#controls {
  display: flex;
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: row;
  gap: 0.5rem;
  z-index: 99;
  mix-blend-mode: difference;
  color: #000;
}


.svg-btn {
  width: 30px;
  height: 30px;
  padding: 5px;
  background: black;
  border: none;
  /* border: .5px solid #000; */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* cursor: pointer; */
}

.svg-btn:hover {
  border: 1.3px solid #fff !important;
}

.svg-btn.active {
  border: 1.3px solid #fff;
}





.reset-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  /* cursor: pointer; */
  z-index: 1000;
  fill: #fff; 
  stroke: #fff;
  stroke-width: 60;
  mix-blend-mode: difference;
  transition: fill 0.3s ease;
}

.reset-icon:hover {
  filter: invert(.2);
}


.dg.ac {
  margin: 0px !important;
  top: 0px !important;
  position: absolute !important;
  z-index: 99999 !important;
  color: #000;
}







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


img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

.plyr--full-ui input[type=range] {
  color: #ff0000 !important;
}
  
.plyr--video .plyr__control:focus-visible, 
.plyr--video .plyr__control:hover, 
.plyr--video .plyr__control[aria-expanded=true] {
  background: #ff0000 !important;
}

a:hover {
  cursor: none !important;
}

/* HEADER */
.header {
  display: grid;
  grid-column: 16;
  gap: 1.25rem;
  align-items: center;
  width: 100vw;
  height: auto;
  padding: 1.2rem 1.25rem;

  font-size: var(--font-size-m);
  color: var(--color-white);
  mix-blend-mode: difference;

  pointer-events: none;
  position: fixed;
  z-index: 20;
}

.header .logo {
  grid-column: 1 / 3;
  width: fit-content;
  pointer-events: all;
}

.header .contact {
  color: var(--color-white);
  grid-column: 13 / 17;
}


.back-top-toggle,
.menu-toggle, 
.mobile-overlay {
  display: none;
}




.home-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 25px !important;
}

.home-layout h2 {
  font-size: var(--font-size-m);
  line-height: var(--font-line-height-m);
  font-weight: 700;
}
.home-layout p, .home-layout a  {
  font-size: var(--font-size-m);
  line-height: var(--font-line-height-m);
  font-weight: 400;
  text-decoration: none;
  color: var(--color-black);
  cursor: none !important;
}








/* Layout add-on styles */

.align-bottom {
  justify-content: flex-end;
  padding-bottom: 2px;
}

.align-center {
  /* align-items: center; */
  justify-content: center;
}

.a {
  grid-area: a;
}

.b {
  grid-area: b;
}

.c {
  grid-area: c;
}

.column {
  width: 100%;
  height: 100%; 
  /* background-color: #e5e5e552; */
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.column img, .column video {
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.column h2, .column p {
  width: 100%;
  overflow: visible;
}

.project-text {
  overflow: visible;
}

/* .layout-1-1:hover .project-text h2, 
.layout-1-1:hover .project-text p,
.layout-1-2:hover .project-text div h2, 
.layout-1-2:hover .project-text div p,
.layout-2-1:hover .project-text h2, 
.layout-2-1:hover .project-text p,
.layout-2-2:hover .project-text h2, 
.layout-2-2:hover .project-text p,
.layout-2-3:hover .project-text h2, 
.layout-2-3:hover .project-text p,
.layout-3-1:hover .project-text h2, 
.layout-3-1:hover .project-text p {
  color: red !important;
} */


/* LAYOUT 1-1 */
.layout-1-1 {
  display: grid;
  grid-template-columns: 4fr 12fr;
  grid-template-areas: "a b";
  gap: 1.25rem;
  width: 100vw;
  height: 40.4415vw;
  padding: 0 1.25rem;
}

.layout-1-1.reverse
{
  grid-template-areas: "b a";
  grid-template-columns: 12fr 4fr;
}

.layout-1-1 .a {
  text-align: right;
}

.layout-1-1.reverse .a {
  text-align: left;
}

.layout-1-1 .column:nth-child(2) {
  position: relative; 
  width: 100%;
  height: 100%;
}

.layout-1-1 .column:nth-child(2) img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* object-fit: contain; */
}


/* LAYOUT 1-2 */
.layout-1-2 {
  display: grid;
  grid-template-columns: 5fr 11fr;
  grid-template-areas: "a b";
  gap: 1.25rem;
  width: 100vw;
  height: 19.5705vw; 
  padding: 0 1.25rem;
}

.layout-1-2.reverse
{
  grid-template-areas: "b a";
  grid-template-columns: 11fr 5fr;
}

.layout-1-2 img, .layout-1-2 video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* object-fit: contain; */
}

.layout-1-2 .b {
  align-items: flex-start;
}


.layout-1-2.reverse .b {
  align-items: flex-end;
}


/* LAYOUT 2-1 */
.layout-2-1 {
  display: grid;
  grid-template-columns: 4fr 6fr 6fr;
  grid-template-areas: "a b c";
  gap: 1.25rem;
  width: 100vw;
  height: 40.4415vw;
  padding: 0 1.25rem;
}

.layout-2-1 .column.b,
.layout-2-1 .column.c {
  position: relative;
  width: 100%;
  height: 100%;
}


.layout-2-1 img, .layout-2-1 video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* object-fit: contain; */
}

.layout-2-1.middle-1 {
  grid-template-columns: 6fr 4fr 6fr;
  grid-template-areas: "b a c";
}

.layout-2-1.middle-2 {
  grid-template-columns: 6fr 6fr 4fr;
  grid-template-areas: "b c a";
}

.layout-2-1.reverse {
  grid-template-columns: 6fr 6fr 4fr;
  grid-template-areas: "c b a";
}





/* LAYOUT 2-2 */
.layout-2-2 {
  display: grid;
  grid-template-columns: 4fr 7fr 5fr;
  grid-template-areas: "a b c";
  gap: 1.25rem;
  width: 100vw;
  height: 40.4415vw;
  padding: 0 1.25rem;
}

.layout-2-2 .column.b,
.layout-2-2 .column.c {
  position: relative;
  width: 100%;
  height: 100%;
}

.layout-2-2 img, .layout-2-2 video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* object-fit: contain; */
}


.layout-2-2.middle-1 {
  grid-template-columns: 7fr 4fr 5fr;
  grid-template-areas: "b a c";
}

.layout-2-2.middle-2 {
  grid-template-columns: 7fr 5fr 4fr;
  grid-template-areas: "b c a";
}

.layout-2-2.reverse {
  grid-template-columns: 5fr 7fr 4fr;
  grid-template-areas: "c b a";
}





/* LAYOUT 2-3 */
.layout-2-3 {
  display: grid;
  grid-template-columns: 4fr 5fr 5fr 2fr;
  grid-template-areas: "a b c";
  gap: 1.25rem;
  width: 100vw;
  height: 40.4415vw;
  padding: 0 1.25rem;
}

.layout-2-3 .column.b,
.layout-2-3 .column.c {
  position: relative;
  width: 100%;
  height: 100%;
}

.layout-2-3 img, .layout-2-3 video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* object-fit: contain; */
}


.layout-2-3.middle-1 {
  grid-template-columns: 5fr 4fr 5fr 2fr;
  grid-template-areas: "b a c";
}

.layout-2-3.middle-2 {
  grid-template-columns: 5fr 5fr 4fr 2fr;
  grid-template-areas: "b c a";
}

.layout-2-3.reverse {
  grid-template-columns: 5fr 5fr 4fr 2fr;
  grid-template-areas: "c b a";
}





/* LAYOUT 3-1 */
.layout-3-1 {
  display: grid;
  grid-template-columns: 4fr 7fr 5fr;
  grid-template-areas: "a b c";
  gap: 1.25rem;
  width: 100vw;
  height: 40.4415vw;
  padding: 0 1.25rem;
}

.layout-3-1 .a, .layout-3-1 .b, .layout-3-1 .c {
  height: 40.4415vw;
}

.layout-3-1.middle-1 {
  grid-template-columns: 7fr 4fr 5fr;
  grid-template-areas: "b a c";
}

.layout-3-1.middle-2 {
  grid-template-columns: 7fr 5fr 4fr;
  grid-template-areas: "b c a";
}

.layout-3-1.reverse {
  grid-template-columns: 5fr 7fr 4fr;
  grid-template-areas: "c b a";
}


.layout-3-1 .a img, .layout-3-1 .b img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* object-fit: contain; */
}

.layout-3-1 .c {
  display: flex;
  flex-direction: column;
}

.layout-3-1 .c img {
  width: 100%;
  height: 50%; 
  object-fit: cover;
}


.reverse-column {
  flex-direction: column-reverse;
}

.hide {
  display: none;
}






/* PROJECT PAGE LAYOUT */
.reverse-flex {
  flex-direction: row-reverse;
}

.project_layout h1, 
.project_layout .project_tags ul li,
.cta .cta_title p {
  font-size: var(--font-size-l);
  line-height: var(--font-line-height-l);
  font-weight: 400;
}

code {
  font-family: var(--font-family-main);
  font-size: var(--font-size-l);
  line-height: 5rem;
  font-weight: 400;
}


.project_layout .project_tags ul li,
.suggested_project ul li {
  list-style: none;
}

.project_layout p,
.project_layout a {
  font-size: var(--font-size-m);
  line-height: var(--font-line-height-m);
  font-weight: 400;
  text-decoration: none;
  color: var(--color-black);
}

.cta a {
  font-size: 1.875rem;
  line-height: var(--font-line-height-l);
}

.suggested_project h3 {
  font-size: var(--font-size-m);
  line-height: var(--font-line-height-m);
  font-weight: 700;
}

/* Project Cover */
.project_cover {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 1.25rem;
  width: 100%;
  padding: 0 1.25rem 8.13rem;
  background-color: var(--color-white);
  z-index: 10;
  position: relative;
}

/* Show desktop cover on larger screens and hide mobile cover */
.desktop-cover { display: grid; grid-column: 1 / 17; }
.mobile-cover { display: none; }

.project_cover .desktop-cover .media-container {
  grid-column: 1 / 17;
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  margin-top: 5.4rem;
}

.project_cover .desktop-cover .media-container img,
.project_cover .desktop-cover .media-container video,
.project_cover .desktop-cover .media-container iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;

}

.project_cover .project_title {
  grid-column: 1 / 5;
  grid-row: 2 / 3;
} 
.project_cover .project_tags {
  grid-column: 5 / 10;
  grid-row: 2 / 3;
  padding-bottom: 20px;
} 
.project_cover .project_description {
  grid-column: 11 / 17;
  grid-row: 2 / 3;
} 

/* Project Content */
.project_content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Media Container */
.media-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.media-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.media-container video {
  width: 100%;
  height: auto;
  display: block;
}

.media-container img {
  width: 100%;
  height: auto;
  /* height: 100%; */
  object-fit: cover;
}

/* Project-component-1 */
.project-comp-1 {
  display: flex;
  gap: 1.25rem;
  width: 100%;
  padding: 0 1.25rem;
}

.project-comp-1 .media-container {
  flex: 1;
  /* aspect-ratio: 834 / 725;
  background-color: #636363; */

}

/* Project-component-2 */
.project-comp-2 {
  display: flex;
  width: 100%;
  padding: 0 1.25rem;
}

.project-comp-2 .media-container {
  width: 100%;
  aspect-ratio: 16 / 7;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Project-component-3 */
.project-comp-3 {
  display: flex;
  gap: 1.25rem;
  width: 100%;
  padding: 0 1.25rem;
}

.project-comp-3 .media-container {
  /* flex: 1; */
  aspect-ratio: 8 / 7;
}
.project-comp-3 .media-container iframe,
.project-comp-3 .media-container video,
.project-comp-3 .media-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-comp-3 .project-img-descr {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Project-component-4 */
.project-comp-4 {
  display: flex;
  width: 100%;
  padding: 0 1.25rem;
}

.project-comp-4 .media-container {
  width: 100%;
  height: 100dvh;
  background-color: #e8e8e8;
}
.project-comp-4 .media-container iframe,
.project-comp-4 .media-container video,
.project-comp-4 .media-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Project-component-6 */
.project-comp-6 {
  display: flex;
  width: 100%;
  padding: 0 1.25rem;
}

.project-comp-6 .media-container {
  width: 100%;
  height: auto;
  /* height: 100dvh; */
  aspect-ratio: 16 / 9;
  background-color: #d3d3d3;
}
.project-comp-6 .media-container iframe,
.project-comp-6 .media-container video,
.project-comp-6 .media-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Project-component-5 */
.project-comp-5 {
  display: flex;
  gap: 1.25rem;
  width: 100%;
  padding: 0 1.25rem;
}

.project_content p {
  padding-bottom: 20px;
}

/* CTA Section */
.cta {
  width: 100vw;
  padding: 15rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  column-gap: 1.25rem;
  row-gap: 0;
}
.cta-about {
  row-gap: 4rem;
  padding-bottom: 8rem;
}

.cta .cta_title, .cta .info-container, .cta a {
  grid-column: 5 / 17;
}
.cta div:nth-child(4) {
  padding-top: 1rem;
}

.cta .info-container{
  display: flex;
  gap: 10vw;
}

.info {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.info a {
  font-size: var(--font-size-m);
  line-height: var(--font-line-height-m);
}

.info a:hover, .social a:hover {
text-decoration: underline;
cursor: none !important;
}

.credits-info p {
  padding-top: .05rem;
}


/* Suggested Projects */
.projects_suggestions {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  grid-template-rows: 1fr;
  gap: 1.25rem;
  width: 100%;
  padding: 0 1.25rem;
}

.suggested_project:nth-child(1) {
  grid-area: 1 / 1 / 2 / 9; 
}
.suggested_project:nth-child(2) {
  grid-area: 1 / 9 / 2 / 17; 
}

.suggested_project a {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 1.25rem;
  width: 100%;

  overflow: hidden;
}

.suggested_project a div:nth-child(1) {
  grid-column: 1 / 6; 
}
.suggested_project a div:nth-child(2) {
  grid-column: 6 / 9; 
}


.suggested_cover {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;  
  aspect-ratio: 16 / 8; /* 514 / 346 */
}

.suggested_cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.suggested_project div {
  width: 100%;
}



.bottom-video {
  padding: 5rem 1.25rem 0;
}





/* FOOTER */
.footer-home {
  display: grid;
  align-items: end;
  grid-template-columns: 10fr 6fr;
  gap: 1.25rem;
  width: 100vw;
  height: fit-content;
  padding: 6rem 1.25rem 1.25rem;
}

.footer-details {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.footer-details h3, .footer-details a {
  font-size: var(--font-size-m);
  font-weight: 400;
}

.footer-details a {
  color: var(--color-grey);
}

.footer-details a:hover {
  text-decoration: underline;
  cursor: none !important;
}



.footer-back-top {
  position: relative;
  font-family: var(--font-family-main);
  font-size: var(--font-size-m);
  width: 100%;
  right: 0;
  background-color: transparent;
  color: var(--color-white);
  border: none;
  /* cursor: pointer; */
  z-index: 20;
  pointer-events: auto;
}

.footer-back-top:hover {
  text-decoration: underline;
  cursor: none !important;
}



.clients-marquee {
  --gap: 3.5rem;
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: var(--gap);
}

.marquee__content {
  color: var(--color-APFF-Cream);

  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  gap: var(--gap);
  min-width: 100%;

  padding-left: 1rem;

  /* Enable animation */
  animation: scroll 30s linear infinite 250ms;
  animation-delay: 600ms;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - var(--gap)));
  }
}



.footer-projects {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100vw;
  /* height: fit-content; */
  padding: 6rem 1.25rem 1.25rem;
  position: fixed;
  bottom: 0;

  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.5s ease;
}

.footer-projects a {
  color: white;
  pointer-events: all;
}

.footer-projects a:hover {
  text-decoration: underline;
  cursor: none !important;
}

.footer-projects div {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  width: 70%;
}

.footer-projects button {
  width: fit-content;
  text-align: right;
}

/* ----- layout-3-1 ----- */

/* -------------------------------- */
/* -------------------------------- */
/* -------------------------------- */



/* ----- CONTACT ----- */

.about-visual {
  position: fixed;
  width: 100vw;
  height: 100dvh;
  z-index: 2;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.about-visual video {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: calc(100% - 2.5rem);
  height: auto;
  max-height: 100vh;
}

.about-cover {
  position: relative;
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 1.25rem;
  align-items: end;
  width: 100vw;
  height: 100dvh;
  padding: 0 1.25rem 10vh;
}

.about-cover div:nth-child(1) {
  grid-column: 1 / 7;
}
.about-cover div:nth-child(2) {
  grid-column: 11 / 17;
}

.about-cover p {
  padding-bottom: 1.25rem;
}


.about-bio {
  position: relative;
  display: grid;
  grid-template-columns: repeat(16, 1fr);

  gap: 1.25rem;
  width: 100vw;
  padding: 15vh 1.25rem 25vh;

  z-index: 1;
}

.bio-card {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-areas: "img details";

  align-items: end;
  gap: 1.25rem;
}

.bio-card-full {
  grid-column: 5 / 12;
}

.bio-card-semi {
  grid-column: span 8;
}

.bio-card-reverse {
  grid-template-areas: "details img";
}

.bio-card-reverse .bio-details { 
  text-align: right;
}

.bio-card img {
  grid-area: img;
  object-fit: contain;
}
.bio-details {
  grid-area: details;
  font-size: var(--font-line-height-m);
  font-weight: 700;
}
.bio-details h1 {
  font-size: var(--font-line-height-m);
}

.clients-container {
  position: relative;
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 1.25rem;
  padding:0 1.25rem 25vh;
  align-items: start;
}

.clients-container h2 {
  grid-column: 1 /5;
  font-size: var(--font-line-height-l);
  line-height: var(--font-line-height-l);
  font-weight: 400;
}
.clients {
  grid-column: 5 / 17;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding-top: 1rem;
}

.clients li {
  list-style: none;
}



.services-container {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  padding: 0 1.25rem;
  align-items: start;
}

.services-container div {
  display: flex;
  flex-direction: column;
}

.services-container div h2 {
  font-size: var(--font-line-height-l);
  line-height: var(--font-line-height-l);
  font-weight: 400;
  padding-bottom: 20px;
}

.services-container div a {
  padding-top: 50px;
}

.services-container div a:hover {
  text-decoration: underline;
}


.accordion-section {
  width: 100%;
  max-width: 1693px;
  margin: 0 auto;
  padding: 50px 1.25rem 0;
}
.accordion-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  margin-bottom: 4px;
}
.accordion-divider {
  width: 100%;
  height: 0;
  border-top: 1px solid #000;
  margin-bottom: 8px;
}
.accordion-heading {
  font-size: var(--font-line-height-l);
  line-height: 4rem;
  font-weight: 400;
  transition: background 0.2s;
  user-select: none;
}
.accordion-description {
  padding: 0 0 0px 2px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s;
}

.accordion-item.open .accordion-description {
  max-height: 500px;
  opacity: 1;
  padding: 10px 0 5px;
}

.accordion-item:hover .accordion-description,
.accordion-item:focus-within .accordion-description {
  max-height: 300px;
  opacity: 1;
  padding: 10px 0 5px;
}

.social {
  display: flex;
  flex-direction: column;
  gap: .25rem;

}

.social a {
  font: var(--font-size-m);
  line-height: var(--font-line-height-m);
}


.privacy {
  position: relative;
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 1.25rem;
  align-items: end;
  width: 100vw;
  height: 100dvh;
  padding: 0 1.25rem 10vh;
}

.privacy div {
  grid-column: 1 / 11;
  padding-top: 100px ;
}

@media screen and (max-width: 59.063rem ) { 
  .privacy div {
    grid-column: 1 / 17;
  }
}

.privacy div p {
  padding-bottom: 30px;
}



/* -------------------------------- */



/* ---------- INDEX ------------- */

.project-index {
  margin: 0 auto;
  padding: 200px 1.25rem 0;
}

.related-projects-section {
  padding: 0 1.25rem;
}

.grid-16 {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  align-items: start;
}

.project-header {

  font-weight: 700 !important;
  padding: 1rem 0;
}

.project-grid-row {
  cursor: pointer;
  transition: background 0.18s;
  min-height: 30px;
  border-top: 1px solid black;
}

.project-grid-row:hover {
  background: #f7f7f7;
}

.project-col, .type-col, .date-col, .cta-col {
  font-size: var(--font-size-m);
  line-height: var(--font-line-height-m);
  font-weight: 400;
  text-decoration: none;
  color: var(--color-black);
  padding: 0.75rem 0 0.5rem;
  overflow-wrap: break-word;
}

.project-tags-mobile {
  display: none;
}
.type-col {
  display: block;
}

@media (max-width: 900px) {

  .project-index {
    padding-top: 100px;
  }

  .project-col {
    grid-column: 1 / span 9;
  }
  .project-project-col {
    grid-column: 1 / span 16 !important;
  }

  .date-col, .cta-col {
    display: none !important;
  }
  .type-col {
    grid-column: 10 / span 7 !important;
  }
  .project-tags-mobile {
    display: block;
    font-size: 1rem;
    margin-top: 4px;
  }
}


/* ------------------------------- */




/* -----   COOKIES   -------------- */

.termsfeed-com---nb .cc-nb-main-container {
  width: 40%;
  bottom: 1.25rem !important;
  right: 1.25rem !important;
  position: fixed;
  padding: 1.25rem !important;
  backdrop-filter: blur(15px) !important; 
  border: 1px solid #000 !important;
}

.termsfeed-com---pc-dialog .cc-cp-body-content-entry[active=true], 
.termsfeed-com---nb .cc-nb-main-container,
.termsfeed-com---palette-dark .cc-pc-head,
.termsfeed-com---palette-dark .cc-cp-foot  {
  cursor: auto !important;
}


.cc-nb-buttons-container {
 display: flex !important;
 justify-content: space-between !important;
}

.termsfeed-com---palette-dark .cc-nb-okagree {
  color: #fff !important;
  mix-blend-mode:difference !important;
  background-color: #000 !important;

  text-transform: uppercase !important;
  font-family: var(--font-family-secondary) !important;
  font-size: 0.713rem !important;

  
}

.termsfeed-com---palette-dark .cc-nb-changep {
  background-color: none !important;
  color: #000 !important;
  mix-blend-mode:difference !important;
  margin-left: 1.05rem !important;
  border: none !important;
  border-radius: 0 !important;

  text-transform: uppercase !important;
  font-family: var(--font-family-secondary) !important;
  font-size: 0.713rem !important;
}

.termsfeed-com---palette-dark .cc-nb-changep:active,
.termsfeed-com---palette-dark .cc-nb-changep:hover,
.termsfeed-com---palette-dark .cc-nb-changep:focus,
.termsfeed-com---palette-dark .cc-nb-changep:focus-visible,
.termsfeed-com---palette-dark .cc-nb-buttons-container .cc-nb-okagree:active,
.termsfeed-com---palette-dark .cc-nb-buttons-container .cc-nb-okagree:hover,
.termsfeed-com---palette-dark .cc-nb-buttons-container .cc-nb-okagree:focus,
.termsfeed-com---palette-dark .cc-nb-buttons-container .cc-nb-okagree:focus-visible
 {
  background-color: #1e1e1e !important;
  color: #fff !important;
  outline: none !important;
}


.termsfeed-com---reset button {
  background: none !important;
}

.termsfeed-com---palette-dark .cc-nb-title {
  color: #000 !important;
  font-family: var(--font-family-secondary) !important;
  font-size: 0.813rem !important;
}

.termsfeed-com---reset p {
  margin-top: 0 !important;
  margin-bottom: .6rem !important;
}

.termsfeed-com---nb .cc-nb-text {
  margin-bottom: .8rem !important;
}

.termsfeed-com---palette-dark .cc-nb-text {
  color: #000 !important;
  font-family: var(--font-family-main) !important;
  font-size: 1rem !important;
}

.termsfeed-com---reset button {
  border-radius: 0px !important;
  padding: 0.3rem .8rem !important;
}

.termsfeed-com---palette-dark .cc-cp-foot-save {
  background: #fff !important;
}

.termsfeed-com---pc-dialog .cc-pc-head-close {
  border: none !important;
}

.termsfeed-com---palette-dark .cc-pc-head-lang select {
  border: none !important;
}

.termsfeed-com---pc-dialog .cc-pc-head-close:hover,
.termsfeed-com---pc-dialog .cc-pc-head-close:focus,
.termsfeed-com---pc-dialog .cc-pc-head-close:active,
.termsfeed-com---palette-dark .cc-pc-head-lang select:hover,
.termsfeed-com---palette-dark .cc-pc-head-lang select:focus,
.termsfeed-com---palette-dark .cc-pc-head-lang select:active,
.termsfeed-com---palette-dark .cc-cp-body-content-entry a:hover,
.termsfeed-com---palette-dark .cc-cp-body-content-entry a:focus,
.termsfeed-com---palette-dark .cc-cp-body-content-entry a:active {
  border: none !important;
  outline: none !important; 
  cursor: pointer !important;
}

.termsfeed-com---pc-dialog {
  font-family: var(--font-family-secondary) !important;
}
.termsfeed-com---palette-dark .cc-pc-head-title-headline,
.termsfeed-com---palette-dark .cc-cp-body-content-entry-title {
  font-size: 1.2rem !important;
}

.cc-cp-body-content-entry-text {
  font-family: var(--font-family-main) !important;
}


/* -------------------------------- */
/* -------------------------------- */
/* -------------------------------- */
/* -------------------------------- */
/* -------------------------------- */
/* -------------------------------- */




/* Styles for mobile devices */

@media screen and (max-width: 59.063rem ) { /* 45rem */

  .termsfeed-com---nb .cc-nb-main-container {
    width: calc(100% - 2.5rem);

  }


  .termsfeed-com---palette-dark .cc-nb-changep {
    margin-left: 0rem !important;
  }

  #controls, #blinkingCursor, #metaball {
    display: none !important;
  }

  #canvasWrapper {
    pointer-events: none;
  }

  .editable-text {
    padding-bottom: 35px !important;
    max-height: calc(100dvh - 15rem);
  }

  .desktop-only {
    display: none;
  }

  .custom-cursor {
    display: none;
  }

  main {
    padding-bottom: 0;
  }

  .header {
    justify-content: space-between;
  }

  .header .logo {
    grid-column: 1 / 2;
    width: fit-content;
  }
  .header .logo img {
    height: 34px;
  }

  .header .contact {
    color: var(--color-white);
    grid-column: 2 / 3;
  }

  .menu-toggle {
    display: block;
    grid-column: 2 / 3;
    pointer-events: all;
  }

  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-white);
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 11; 
    overflow: hidden; 
  }

  .mobile-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: left;
  }

  .mobile-menu ul li {
    margin: .5rem 0;
  }

  .mobile-menu ul li a {
    color: var(--color-black);
    font-size: var(--font-size-l);
    line-height: var(--font-line-height-l);
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .mobile-menu ul li a:hover {
    color: #f0f0f0;
  }

  .mobile-overlay.active {
    display: flex; 
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0 1.25rem;
  }




  .back-top-toggle {
    display: block;
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 10;
    mix-blend-mode:difference;
  }

  .footer-back-top {
    display: none;
  }


  .footer-home {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-details {
    grid-row: 1 / 2;
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer-details div {
    min-width: 44vw ;
  }

  .clients-marquee {
    grid-row: 2 / 3;
  }


  .footer-projects {
    position: relative;
    grid-template-columns: repeat(3, 1fr);
    padding: 6rem 1.25rem 5rem;
  }

  .footer-projects a {
    display: none;
  }

  .footer-projects a:nth-child(1) {
    grid-column: 1 / 2;
  }
  .footer-projects a:nth-child(2) {
    grid-column: 2 / 3;
  }
  .footer-projects a:nth-child(3) {
    grid-column: 3 / 4;
  }    
  .footer-projects button {
    display: none;
  }

  

  /* HOME */

  .align-center {
    align-items: flex-start !important; 
  }

  .column h2, .column p {
    font-size: var(--font-size-m); 
  }

  .project-text p,
  .layout-1-1 .c,
  .layout-1-2 .c,
  .layout-2-1 .c,
  .layout-2-2 .c,
  .layout-2-3 .c,
  .layout-3-1 .c {
    display: none;
  }

  .column {
    width: 100%;
    /* height: 100%;  */
    /* background-color: #e5e5e552; */
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
  }
  
  .column img {
    width: 100%; 
    height: auto; 
    object-fit: cover; 
  }

  .layout-1-1,
  .layout-1-1.reverse,
  .layout-2-1,
  .layout-2-1.reverse,
  .layout-2-2,
  .layout-2-2.reverse,
  .layout-2-3,
  .layout-2-3.reverse,
  .layout-3-1,
  .layout-3-1.reverse {
    display: flex;
    flex-direction: column-reverse;
    height: auto; 
    gap: 1.25rem;
  }

  .layout-1-2, .layout-1-2.reverse {
    display: flex;
    flex-direction: column;
    height: auto; 
    gap: 1.25rem;
  }

  .layout-1-1 .a,
  .layout-1-2 .a,
  .layout-2-1 .a,
  .layout-2-2 .a,
  .layout-2-3 .a,
  .layout-3-1 .a {
    text-align: left !important;
  }

  .layout-1-1 .column:nth-child(2),
  .layout-1-2 .column:nth-child(1),
  .layout-2-1 .column:nth-child(2),
  .layout-2-2 .column:nth-child(2),
  .layout-2-3 .column:nth-child(2),
  .layout-3-1 .column:nth-child(1),
  .layout-3-1 .column:nth-child(2) {
    position: relative; 
    width: 100%;
    height: auto;
  }
  
  .layout-1-1 .column:nth-child(2) img,
  .layout-1-2 .column:nth-child(1) img,
  .layout-2-1 .column:nth-child(2) img,
  .layout-2-2 .column:nth-child(2) img,
  .layout-2-3 .column:nth-child(2) img,
  .layout-3-1 .column:nth-child(2) img {
    position: relative;
    width: 100%;
    height: auto;
    object-fit: contain;
    /* height: calc(100vw - 2.5rem); */
    /* object-fit: cover; */
  }




  /* PROJECTS */

  .media-container.empty,
  .project-img-descr.empty,
  .project-descr-left.empty,
  .project-descr-right.empty {
    display: none;
  }

  .project_layout .project_tags ul li,
  .cta .cta_title p {
    font-size: var(--font-size-m);
    line-height: var(--font-line-height-m);
    font-weight: 400;
  }


  .project_cover {
    grid-template-columns: repeat(4, 1fr);
    padding-bottom: 4rem;
  }

  .desktop-cover { display: none; } 
  .mobile-cover { display: grid; grid-column: 1 / 5; }

  .project_cover .mobile-cover .media-container {
    grid-column: 1 / 5;
    grid-row: 1 / 2;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    width: calc(100% + 2.5rem);
    height: 100%;
    aspect-ratio: 2 / 3;   /*  3 / 4  */
  } 

  .project_cover .project_title {
    grid-column: 1 / 5;
    grid-row: 2 / 3;
    padding-right: 0;
  } 
  .project_cover .project_tags {
    grid-column: 1 / 5;
    grid-row: 3 / 4;
    padding-bottom: 2.5rem;
  } 
  .project_cover .project_description {
    grid-column: 1 / 5;
    grid-row: 4 / 5;
  } 


  .project-comp-1, .projects_suggestions  {
    flex-direction: column;
  }
  .project-comp-3 {
    flex-direction: column-reverse;
  }

  .project-comp-5 {
    flex-direction: column;
  }




  .cta a {
    font-size: var(--font-size-m);
    line-height: var(--font-line-height-l);
  }


  .cta .cta_title p {
    font-size: var(--font-size-l);
    line-height: var(--font-line-height-l);
    font-weight: 400;
  }

  .cta {
    grid-template-columns: repeat(1, 1fr);
    padding: 6rem 1.25rem;
  }

  .cta div:nth-child(1), .cta div:nth-child(2), .cta div:nth-child(3), .cta a {
    grid-column: 1 / 2;
  }
  .cta div:nth-child(4) {
    grid-column: 1 / 2;
  }


  .projects_suggestions {
    grid-template-columns: repeat(4, 1fr);
  }

  .projects_suggestions .suggested_project:nth-child(1) {
    grid-column: 1 / 5;
  }

  .projects_suggestions .suggested_project:nth-child(2) {
    display: none;
  }



  /* ABOUT */

  .about-cover {
    grid-template-columns: repeat(1, 1fr);
    height: auto;
    top: 5rem;
    gap: 0;
  }

  .about-cover div:nth-child(1), .about-cover div:nth-child(2) {
    grid-column: 1 / 2;
  } 

  .about-bio {
    grid-template-columns: 1fr;
  }

  .bio-card {
    grid-template-columns: repeat(1, 1fr);
    grid-template-areas:  "img"
                          "details";
  }

  .bio-card-full, .bio-card-semi {
    grid-column: 1 / 2;
  }
  
  .bio-card-reverse {
    grid-template-areas:  "img"
                          "details";
  }
  
  .bio-card-reverse .bio-details { 
    text-align: left;
  }
  
  .clients-container {
    grid-template-columns: repeat(1, 1fr);
  }

  .clients-container h2, .clients {
    grid-column: 1 / 2;
  }

  .services-container {
    grid-template-columns: repeat(1, 1fr);
    gap: 50px;
  }

  .cta a {
    line-height: var(--font-line-height-m);
  }

  .cta-about {
    padding-bottom: 0;
  }


}