:root {
  --footer-height: 6rem;
  --main-color:  #0c1324;
  --main-color-bright: #6185f0;
  --main-color-rgb: 12, 19, 36;
  --header-height: 7rem;
}

html/* General Reset */
*,
*:after,
*:before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


@font-face {
  font-family: 'CodecPro';
  src:  url('../fonts/CodecPro-Regular.woff2') format('woff2'),
        url('../fonts/CodecPro-Regular.woff') format('woff'),
        url('../fonts/CodecPro-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Bold Font */
@font-face {
  font-family: 'CodecPro-ExtraBold';
  src: url('../fonts/CodecPro-ExtraBold.woff2') format('woff2'),
       url('../fonts/CodecPro-ExtraBold.woff') format('woff'),
       url('../fonts/CodecPro-ExtraBold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}



html {
  color: white;
  background-color: var(--main-color);
  font-family: 'CodecPro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  font-size: 75%;
  text-transform: uppercase;
  overflow-x: hidden;
}

html {
  color: white;
  background-color: var(--main-color);
  font-family: 'CodecPro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  font-size: 75%; /* Base: 12px */
  text-transform: uppercase;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  html { font-size: 77.5%; } /* ~12.4px */
}

@media (min-width: 1024px) {
  html { font-size: 80%; } /* 12.8px */
}

@media (min-width: 1280px) {
  html { font-size: 83.75%; } /* ~13.4px */
}

@media (min-width: 1600px) {
  html { font-size: 86.25%; } /* ~13.8px */
}

@media (min-width: 1920px) {
  html { font-size: 90%; } /* 14.4px */
}

@media (min-width: 2560px) {
  html { font-size: 100%; } 
}

@media (min-width: 3200px) {
  html { font-size: 105%; } /* 16px */
}

@media (min-width: 3840px) {
  html { font-size: 115%; } /* ~17px */
}
/* 

@media (min-width: 480px) and (resolution >= 2dppx) {
  html { font-size: 87.5%; } 
}

@media (min-width: 768px) and (resolution >= 2dppx){
  html { font-size: 106.25%; } 
}

@media (min-width: 1024px) and (resolution >= 2dppx) {
  html { font-size: 112.5%; } 
}

@media (min-width: 1280px) and (resolution >= 2dppx) {
  html { font-size: 118.75%; } 
}

@media (min-width: 1600px) and (resolution >= 2dppx) {
  html { font-size: 125%; }
}

@media (min-width: 1920px) and (resolution >= 2dppx) {
  html { font-size: 131.25%; } 
}

@media screen and (min-width: 2500px) and (resolution >= 2dppx) {
  html { font-size: 137.5%; } 
}

@media screen and (min-width: 3000px) and (resolution >= 2dppx) {
  html { font-size: 150%; }
}

@media screen and (min-width: 3500px) and (resolution >= 2dppx) {
  html { font-size: 175%; } 
} */



.typo-sans {
  font-family: AvenirLTStd-Roman,Helvetica Neue,Helvetica,Arial,sans-serif
}

.typo-sans-light {
  font-family: AvenirLTStd-Light,Helvetica Neue,Helvetica,Arial,sans-serif
}

.line-height-extradense {
  line-height: 0.8em!important
}


.line-height-dense {
  line-height: 1em!important
}

.line-height-normal {
  line-height: 1.4em!important
}

.line-height-medium {
  line-height: 1.6em!important
}

.line-height-large {
  line-height: 1.9em!important
}

.line-height-extralarge {
  line-height: 2.3em!important
}


.typo-tiny         { font-size: 1rem; }
.typo-small        { font-size: 1.2rem; }   
.typo-medium       { font-size: 1.2rem; }   
.typo-mediumlarge  { font-size: 1.68rem;
font-family: 'CodecPro-ExtraBold', sans-serif; }   
.typo-large        { font-size: 2.5rem;
font-family: 'CodecPro-ExtraBold', sans-serif; }   
.typo-extralarge   { font-size: 2.5rem;
font-family: 'CodecPro-ExtraBold', sans-serif; }  

@media (min-width: 480px) {
.typo-tiny         { font-size: 1rem; }
.typo-small        { font-size: 1rem; }   
.typo-medium       { font-size: 1.2rem; }   
.typo-mediumlarge  { font-size: 1.68rem; }   
.typo-large        { font-size: 2.5rem; }   
.typo-extralarge   { font-size: 3.20rem; }  
}

@media (min-width: 720px) {
  .typo-tiny         { font-size: 0.72rem; }
  .typo-small        { font-size: 1rem; }
  .typo-medium       { font-size: 1.19rem; }
  .typo-mediumlarge  { font-size: 1.9rem; }
  .typo-large        { font-size: 2.74rem; }
  .typo-extralarge   { font-size: 3.4rem; }
}

@media (min-width: 960px) {
  .typo-tiny         { font-size: 0.72rem; }
  .typo-small        { font-size: 0.92rem; }
  .typo-medium       { font-size: 1.29rem; }
  .typo-mediumlarge  { font-size: 2.02rem; }
  .typo-large        { font-size: 2.84rem; }
  .typo-extralarge   { font-size: 3.4rem; }
}

@media (min-width:  1120px) {
  .typo-tiny         { font-size: 0.75rem; }
  .typo-small        { font-size: 0.96rem; }
  .typo-medium       { font-size: 1.34rem; }
  .typo-mediumlarge  { font-size: 2.1rem; }
  .typo-large        { font-size: 2.96rem; }
  .typo-extralarge   { font-size: 4rem; }
}

@media (min-width:  1600px) {
  .typo-tiny         { font-size: 0.85rem; }
  .typo-small        { font-size: 1.09rem; }
  .typo-medium       { font-size: 1.52rem; }
  .typo-mediumlarge  { font-size: 2.38rem; }
  .typo-large        { font-size: 3.36rem; }
  .typo-extralarge   { font-size: 4.53rem; }
}

@media (min-width: 1760px) {
  .typo-tiny         { font-size: 1rem; }
  .typo-small        { font-size: 1.28rem; }
  .typo-medium       { font-size: 1.79rem; }
  .typo-mediumlarge  { font-size: 2.80rem; }
  .typo-large        { font-size: 3.95rem; }
  .typo-extralarge   { font-size: 5.33rem; }
}

@media (min-width: 2160px) {
  .typo-tiny         { font-size: 1.15rem; }
  .typo-small        { font-size: 1.48rem; }
  .typo-medium       { font-size: 2.07rem; }
  .typo-mediumlarge  { font-size: 3.24rem; }
  .typo-large        { font-size: 4.58rem; }
  .typo-extralarge   { font-size: 6.18rem; }
}

@media (min-width: 2560px) {
  .typo-tiny         { font-size: 1.3rem; }
  .typo-small        { font-size: 1.67rem; }
  .typo-medium       { font-size: 2.34rem; }
  .typo-mediumlarge  { font-size: 3.66rem; }
  .typo-large        { font-size: 5.5rem; }
  .typo-extralarge   { font-size: 7rem; }
}

@media (min-width: 3200px) {
  .typo-tiny         { font-size: 1.5rem; }
  .typo-small        { font-size: 1.92rem; }
  .typo-medium       { font-size: 2.69rem; }
  .typo-mediumlarge  { font-size: 4.21rem; }
  .typo-large        { font-size: 5.94rem; }
  .typo-extralarge   { font-size: 8rem; }
}

@media (min-width: 3840px) {
  .typo-tiny         { font-size: 2rem; }
  .typo-small        { font-size: 2.24rem; }
  .typo-medium       { font-size: 3.13rem; }
  .typo-mediumlarge  { font-size: 4.9rem; }
  .typo-large        { font-size: 6.92rem; }
  .typo-extralarge   { font-size: 9.32rem; }
}

a {
  color: currentColor;
}

em {
  font-style: italic;
}

.highlight {
  color: var(--highlight-color);
}

body {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: stretch;
  overflow-x: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.background-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;

  /* Composite background using linear + radial gradient */
  background:
    radial-gradient(
      ellipse at center,
      rgba(12, 19, 36, 0.568) 40%,
      rgba(12, 19, 36, 0.377) 100%
    ),
    linear-gradient(
     -20deg,   #050914, #050a17, #070e19, var(--main-color)
    );

  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  pointer-events: none;

}

.nobr {
  white-space: nowrap;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

#hero-section{ 
  margin-top: 3.5rem; /* Adjust for header height (half of the header height) */
}

#team, #projects, #project, #jobs, #impressum-section, #error-section { 
    margin-top: 7rem; 
}

#team .grid-section, #projects .grid-section, #project .grid-section, #jobs .grid-section, #impressum-section .grid-section, #error-section .grid-section { 
    margin-bottom: 0; 
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  max-width: 100%;
  width: 100%;
  height: var(--header-height, 7rem);
  box-sizing: border-box;

  background-color: var(--main-color);

  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  z-index: 1001;
  color: white;
}

.menu-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo svg {
  height: 3rem; 
  width: auto;
  display: block;
}

.burger-icon svg {
  display: block;
  width: 2rem;
  padding-bottom: 0.2rem;
}

.burger-toggle {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 1002;
}

.burger-toggle .close-icon {
  display: none;
  text-transform: uppercase;
}

.close-label {
  display: inline;
}

.menu-open .burger-icon {
  display: none;
}

.menu-open .close-icon {
  display: inline;
}

.menu-open .close-icon .close-x {
  margin-left: 0.5rem;
}

.close-x {
  font-family: 'CodecPro-ExtraBold', sans-serif;
  font-weight: 700;
}

.languages {
  position: relative;
  color: white;
  display: flex;
}

.languages ul {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.languages span {
  pointer-events: none;
  user-select: none;
  line-height: 1em;

}

.languages li.active a {
  opacity: 1;
}

.languages li a {
  opacity: 0.5;
  transition: opacity 0.3s ease;
  text-decoration: none;
}

.languages li:hover a {
  opacity: 1;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #0d1224f8;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.3s ease;
  z-index: 1000;

  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 2rem;
}

.menu-overlay a {
  text-decoration: none;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.menu-overlay ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
  opacity: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4rem;
}

.menu-overlay li {
  opacity: 0;
  transform: translateX(2rem);
  transition: opacity 0.5s ease, transform 0.4s ease;
}

.menu-overlay.open li {
  opacity: 1;
  transform: translateX(0);
}

.menu-overlay li::after {
  content: '';
  display: block;
  width: 2rem;              
  height: 1px;              
  background-color: currentColor;
  opacity: 1;             
  margin: 3.5rem 0 2rem auto;  
}

/* Remove last separator */
.menu-overlay li:last-child::after {
  content: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 2rem; 
}

/* Cascading delay */
.menu-overlay.open li:nth-child(1) {
  transition-delay: 0.2s;
}
.menu-overlay.open li:nth-child(2) {
  transition-delay: 0.3s;
}
.menu-overlay.open li:nth-child(3) {
  transition-delay: 0.4s;
}



/* Effects --------  */
.fade-in {
  transition-delay: .4s;
  transition: .8s;
  opacity: 0;  
}

.fade-in.inView {
  opacity: 1;
}

.slide-up {
  transform: translateY(100px) rotate(0deg) translateZ(0);
  transition-delay: .3s;
  transition: .4s;
}

.slide-up.inView {
  transform: translateY(0);
}

/* Hero Video --------  */
#hero-section {
  display: flex;
  justify-content: center; 
  align-items:start; 
  width: 100%;
  margin-bottom: 4rem;
}

.hero {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.hero picture,
.hero img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vid-container {
  width: 100%;
  position: relative;
  overflow: visible; 
  margin: 0 auto; 
}

.vid-container video {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1;
  z-index: 10;
}

#hero-section .vid-container {
  aspect-ratio: 16 / 9; 
  /* margin-top: 2rem; */
}


/* Featured --------  */
.featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  width: 100%;
  list-style: none;
  margin: 0 auto;
  position: relative;
  justify-content: center; 
}

.featured-img-container {
  width: 100%;
  aspect-ratio: 21/9; 
  position: relative;
  overflow: hidden; 
  margin: 0 auto; 

  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--main-color);
}

.featured-img-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%; 
  background: linear-gradient(to top, var(--main-color) 15%, transparent 100%);
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 0.4s ease;
}

.featured-img-container picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1;

  transition: transform 0.4s ease, filter 0.6s ease;
  will-change: transform, filter;
}

.featured-img-container figcaption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-family: 'CodecPro-ExtraBold', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    text-align: center;
    pointer-events: none;
    z-index: 2;
    max-width: 90%;
}

/* Projects --------  */
.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.projects-wrapper {
  overflow: hidden;
  padding-bottom: 4.5rem;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;

}

.project {
  position: relative;
  width: 100%;
}

.project a {
  display: block;
  overflow: hidden;
  text-decoration: none;
}

.project-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; 
  overflow: hidden;
}

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

.project-info {
  display: block;
  align-content: center;
  justify-content: center;
  grid-column: 1 / -1; 
  margin-bottom: 0.5rem;
  text-align: left;
}

.project-facts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  width: 100%;
}

.project-info h1 {
  margin: 1rem 0 0 0;
}

.project-gallery {
  margin-top: 3rem; 
  width: 100%;
}

.project-gallery ul {
  display: grid;
  grid-template-columns: 1fr; 
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-gallery li {
  width: 100%;
}


.controls {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 0.5rem;
  margin: 0 0 2rem; 
}

.controls .sort button {
  padding: 0.5rem;
  margin-right: 0.5rem;
  font-size: 0.85em;
  background: transparent;
  border: white 1px solid;
  text-decoration: none;
  font-family: 'CodecPro-ExtraBold', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  text-transform: uppercase;
  color: white;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;

}

/* Active Button Style */
.controls .sort button.mixitup-control-active {
  background: white;
  color: black;
}

.genre-separator {
    grid-column: 1 / -1;
    width: 100%;  
    text-align: left;
    margin-top: 2.5rem;
}

@media screen and (min-width: 480px) {
  .projects {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 720px) {
  .projects {
    grid-template-columns: repeat(3, 1fr); 
  }

  .controls .sort button {
    padding: 0.5rem 1.5rem;
  }

}

@media screen and (min-width: 1120px) {

  .projects .project-info {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    left: 0;
    background: var(--main-color);
    z-index: 1;
    padding: 0.5rem;
    opacity: 0;
    -webkit-transition: opacity .3s;
    transition: opacity .3s;
    text-align: center;

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

  .project-info h1 {
    margin-bottom: 0.5rem;
    font-size:  2.2em;
  }

  .project-info .project-info-content {
    width: 90%;
    margin: 0 auto;
  }

  .projects .project:hover .project-info {
    opacity: 0.90;
  }

  .controls .sort button:hover {
    background:rgba(255, 255, 255, 0.493)
  }

  .controls {
    justify-content: flex-start;
  }

  .featured-img-container:hover picture img {
    transform: scale(1.025);
    filter: brightness(1.1);
  }
  .featured-img-container:hover::after {
    opacity: 0.85;
  }

}

/* Grid Section --------  */
.main {
  width: 100%;
  margin: 0 auto ;
  flex-grow: 1;
}

.heading {
  text-align: left;
  align-self: flex-start;
  margin: 6rem 0 2rem;
}
.link-container {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  margin-top: 4rem;
  font-family: 'CodecPro-ExtraBold', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

#about-section .link-container {
  margin-top: 1rem;
}

.link-container a {
  text-align: left;
  white-space: normal; 
}

.link {
  position: relative;
  display: inline;
  font-weight: bold;
  z-index: 0;
  transition: color 0.4s ease;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap; 
}

.link:hover {
  transform: translateX(0.5rem);
  transition: transform 0.3s ease;
}

.grid-section {
  width: 100%;
  padding: 0 2rem 4rem;
  margin: 0 auto 3rem;
  max-width: 100vw;
  display: flex;
  justify-content: center; 
  align-items: center;
  flex-direction: column;
  text-align: left;
  
  box-sizing: border-box;

  position: relative; 
}

#intro-section .grid-section {
  margin-bottom: 1rem;
}

#featured-section .grid-section {
  margin-bottom: 5rem;
}

.bg-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.bg-effect img {
  position: absolute;
  width: 100%; 
  height: auto;
  opacity: 1;
  transform: translate(-50%, -50%);
  top: 50%;  
  left: 50%;
  overflow: visible;
}


.bg-1{
  width: 100vw; 
  display: none;
}

.bg-2 {
  width: 100vw; 
  left:-7vw;
  top: 1.5vw;
}

.bg-3 {
  width: 100vw; 
  display: none;
}

.bg-4 {
  width: 110vw; 
  left: -10vw;
  top: -3vw;
}

.bg-4 picture img {
  width: 120%;
}

.vid-bg-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* Match the aspect ratio of the video */
  overflow: visible;
}

.vid-bg-wrapper .bg-effect {
  position: absolute;
  inset: 0;
  width: 150%;
  height: 150%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.vid-bg-wrapper #intro-carousel-1 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


.vid-bg-wrapper .vid-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.vid-bg-wrapper .bg-effect picture,
.vid-bg-wrapper .bg-effect img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.section-content,
.media-container,
.featured {
  position: relative;
  z-index: 1;
}

.wrapper-large.media-container{
  display: none;
}

.section-content {
  width: 100%;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  overflow: visible;
}

.section-split {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: visible;
}


.flex-5 {
  flex: 5;
}

.flex-4 {
  flex: 4;
}

.flex-3 {
  flex: 3;
}

.flex-2 {
  flex: 2;
}

.flex-1 {
  flex: 1;
}

.textblocks {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;

}

.statement {
  width: 100%;
}

.dynamic-textblocks .statement {
  text-align: left;
  margin-bottom: 1rem;
} 

#about-section .section-split {
  gap: 3rem;
}


#about-section .dynamic-textblocks {
  order: 2;
}



.media-container {
  position: relative;
  display: flex;
  align-items: center;  
  justify-content: center;
  overflow: visible;
}

#about-section .media-container {
  aspect-ratio: 16 / 9;
  order: 1;
  /* align-items: flex-start;  
  justify-content: center; */
}


#about-section .media-container {
   width: 100%;   
  position: relative;
}

#about-section .media-container .team-group-image{
  position: absolute;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  height: auto;
  top: -2rem;
  right: -2rem;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

#about-section .media-container .team-group-image img {
  position: absolute;
  width: 115%; 
  height: auto;
  opacity: 1;
  transform: translate(-55%, -50%);
  top: 50%;  
  left: 50%;
  overflow: visible;
}


.media-container .vid-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  z-index: 1;
  top: 0;
  left: 0;
}

.media-container .vid-container video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;

  -webkit-mask-image: radial-gradient(circle at center 50%, black 55%, transparent 55.5%);
  mask-image: radial-gradient(circle at center 50%, black 55%, transparent 55.5%);

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  -webkit-mask-position: center;
  mask-position: center;

  -webkit-mask-size: cover;
  mask-size: cover;
}

.substatement {
  margin-top: 2rem;
}


#intro-section .substatement {
  width:100%;
  margin-bottom: 3rem;
}

#about-section .substatement {
    margin-top: 1rem;
    margin-bottom: 1rem;
}


#featured-section .statement {
    width: 75%;
}

#contact-section {
  position: relative;
  z-index: 0;
}

#contact-section .grid-section {
  margin-bottom: 1rem;
  min-height: 80vh; 
  display: flex;
  justify-content: flex-end;
}

#contact-section .vid-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 21 / 9; 
  overflow: hidden;
  z-index: -1;
  background-color: rgba(0, 0, 0, 0.658);
}

#contact-section .vid-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: -30%;
  left: 0;

  /* fade out towards bottom */
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 80%);
  mask-image: linear-gradient(to bottom, black 30%, transparent 80%);

   -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  -webkit-mask-position: center;
  mask-position: center;

  -webkit-mask-size: cover;
  mask-size: cover;
}

#jobs .section-content {
  min-height: 100vh;
}

.jobs {
  text-align: left;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
}

.no-positions p {
  font-size: 0.5em;
  font-family: 'CodecPro', sans-serif;
  line-height: 1.6em;
}

.jobs .link-container {
  justify-content: flex-start;
  align-items: flex-end;
  margin: 1.5rem 0;
}

.contact-info {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  text-align: left;
}

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.location {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 2rem;
  width: 100%;
}

.address {
  display: flex;
  flex-direction: column;
}

.address h3 {
  padding-bottom: 1rem;
}

.address dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 2rem 2rem; /* row-gap and column-gap */
}

.address dt {
  grid-column: 1;
  font-family: 'CodecPro-ExtraBold', sans-serif;
  margin: 0;
  white-space: nowrap;
  align-self: center;
}

.address dd {
  grid-column: 2;
  margin: 0;
  text-align: left;
}

.address dd a {
  color: white;
  text-decoration: none;
}

/* Team Gallery */

.team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 4rem;
  column-gap: 0.75rem;
  width: 100%;
  padding: 0;
  list-style: none;
  justify-content: center;
  margin: 0 auto;
}

.tile {
  width: 100%;
}

.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-img-container {
  position: relative;
  background: var(--main-color);
  aspect-ratio: 4/5;
}

.profile-img-container img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Person Info */
.person-info {
  text-align: left;
  color: white;

}

.person-info figcaption {
  font-weight: bold;
  margin: 1rem 0 0.5rem;
}

.person-info p {
  color: #ccc;
  font-size: 0.8em;
}



.person-contact {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(var(--main-color-rgb), 0.95);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: 3.5rem;
  opacity: 0;
  visibility: hidden;
}

.person-contact-mobile {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  color: white;
  display: none;
}

.person-contact p {
  margin: 0.5rem 0;
}

.person-contact p i, .person-contact-mobile p i {
  color: white;
  stroke: white;
  margin-right: 1rem;
  width: 100%;
}

i svg {
  display: inline-block;
  vertical-align: middle; 
  height: 1em;
  width: 1em;
}

/* Career List */
.career-list {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  width: 100%;
  align-items: flex-start; 
}

/* Individual Job Card */
.career-item {
  background: transparent;
  border-bottom: 1px solid;
  overflow: hidden;
  width: 100%;
  margin-bottom: 2rem;
}

/* Job Title Button */
.career-toggle {
  width: 100%;
  padding: 2rem 2rem 2rem 0;
  background: none;
  color: white;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-transform: uppercase;
}

/* Plus Icon */
.toggle-icon {
  transition: transform 0.3s ease;
}

.career-item.active .career-content {
  margin-bottom: 8rem;
}

/* Expanded State */
.career-item.active .toggle-icon {
  transform: rotate(45deg);
}

/* Collapsible Content */
.career-content {
  text-align: left;
  display: none;
  padding: 4rem;
  color: white;
}

/* Open State */
.career-item.active .career-content {
  display: block;
}

.career-details h3 {
  margin: 1rem 0;
  font-weight: 300
}

.career-details p {
  color: #ccc;
  margin-bottom: 2rem;
}

.career-details p span {
  color: white
}

.no-positions {
  margin: 4rem 0;
  text-align: left;
}


/* Mobile first: stacked layout */
.footer {
  display: flex;
  flex-direction: column;    /* stack the 3 blocks vertically */
  align-items: center;       /* center all blocks horizontally */
  padding: calc(var(--footer-height) * 0.5) 2rem;
  height: auto;
  gap: 1rem;
  text-align: center;
  background-color: var(--main-color);
  color: white;
  flex-wrap: nowrap;
  height: auto; /* let height grow */
  position: relative; 
  z-index: 1000; /* ensure footer is above other content */
}

.footer-social {
  order: -1;               /* show socials first */
  display: flex;           /* keep socials in a row */
  justify-content: center; /* center icons horizontally */
  gap: 1.5rem;             /* spacing between icons */
  margin-bottom: 1rem;
}

.footer-left,
.footer-right {
  order: 0;                /* reset order so these come after socials */
  width: 100%;             /* full width on mobile */
  display: flex;
  justify-content: center; /* center their content horizontally */
  margin-bottom: 0;
}

.footer a,
.footer p {
  color: white;
  text-decoration: none;
}

.footer-link {
  white-space: nowrap;
}

.footer-copy {
  margin: 0;
  white-space: nowrap;
  text-align: center;     /* center on mobile */
}

/* Social icon sizes and hover */
.footer-social .icon svg {
  width: 1.5em;
  height: 1.5em;
  display: block;
  fill: white;
}

.footer-social a:hover .icon {
  opacity: 0.8;
}

/* Slider Container */
.slider {
  width: 60%;
  height: 60%;
  position: absolute;
  top: 50%;
  left: 50%;
  
  z-index: 5;
  transform: translate(-50%, -50%);
}

/* Image Carousel */
.slider .image-carousel {
  /* position: relative;
  width: 100%;
  height: 100%;  */
  overflow: hidden;
  position: absolute;
  top: 20%;
  left: 20%;
  width: 60%;
  height: 60%;
}

.slider .image-carousel ul {
  position: relative;
  width: 100%;
  height: 100%;
}

.image-carousel li {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  list-style: none;
}

.image-carousel picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}


/* Image Styling */
.slider .image-carousel img {
  position: absolute;
  top: 0; /* Ensures all images are aligned to the top */
  left: 0; 
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.slider .image-carousel img:nth-child(0) {
  opacity: 1;
}

/* Active Image */
.slider .image-carousel img.active {
  opacity: 1;
}

#impressum-section article{
  margin-bottom: 2rem;
}
#impressum-section h1 {
  margin: 0 0 3rem;
}

#impressum-section .impressum-credit-person{
  margin: 3rem 0;
}

.impressum-credit-person p {
 margin: 1rem 0;
}

.impressum-credit-person h2 {
  margin:  1rem 0;
}

#impressum-section p {
  opacity: 0.8;
}

#impressum-section .label {
  opacity: 0.8;
}

#impressum-section h4 {
  margin: 3rem 0 1rem;
}
#impressum-section h3 {
  margin-bottom: 2rem;
}

#impressum-section a {
  color: rgb(255, 255, 255);
  /* text-transform: lowercase; */
  text-decoration: none;
  font-weight: 700;
  width: 100%;
    text-transform: lowercase;
}

@media screen and (min-width: 480px) {
 
  #about-section .media-container .team-group-image{
    top: -4rem;
  }

    #featured-section .grid-section {
    margin-bottom: 10rem;
  }

}
 
@media screen and (min-width: 720px) {

  .header {
    padding: 0 6rem;
  }

  .header-right {
    gap: 6rem; 
  }

  .menu-overlay {
    padding-right: 6rem;
  }

  .grid-section {
    padding: 0 6rem 4rem;
    margin: 0 auto 6rem;
    text-align: center;
  }

  #intro-section .grid-section {
    margin-bottom: 1rem;
  }

  #featured-section .grid-section {
    margin-bottom: 12rem;
  }

  .section-split {
    gap: 2rem;
  }

  .burger-toggle {
    font-size: 1.1rem;
  }

  .logo svg {
    height: 3rem;
  }

  .controls .sort button {
    padding: 0.5rem 2rem;
    margin: 0 0 0 1.5rem;
  }
  
  #intro-section .substatement {
    margin: 2rem 0 0 0;
    width: 75%;
  }

  #about-section .section-content {
    margin-bottom: 3rem;
  }

  #about-section .media-container .team-group-image img {
    width: 125%; 
    transform: translate(-52%, -50%);
    top: 50%;  
    left: 50%;
      overflow: visible;
  }

   #about-section .media-container .team-group-image{
    top: -6rem;
    overflow: visible;
  }

  .dynamic-textblocks {
    align-items: center;
  }

  .dynamic-textblocks .statement  {
    align-self: center;
    text-align: center;
  }

  .dynamic-textblocks .substatement {
    align-self: center;
  }


  #hero-section .vid-container {
    aspect-ratio: 21 / 9; 
  }

  #contact-section .vid-container {
    aspect-ratio: 21 / 9; 
  }

  .media-container .vid-container {
     aspect-ratio: 1 / 1;
  }
/* 
  .media-container picture,
  .media-container img {
    max-height: 50vh;
  } */

  .bg-2 {
    width: 100vw; 
    left:-12vw;
    top: 1.5vw;
  }

  .bg-4 {
    width: 100vw; 
    left: -10vw;
    top: -2vw;
  } 

 .bg-4 picture img {
    width: 105%;
    height: auto;
  }


}

@media screen and (min-width: 960px) {

  .grid-section {
     margin-bottom: 10rem;
     padding: 0 6rem 6rem;
     text-align: center;
  }

   #intro-section .statement {
    margin-left: 2rem;
  }


  #hero-section {
      margin-bottom: 10rem;
  }

  #intro-section .grid-section {
    margin-bottom: 8rem;
  }
  
  .media-container .vid-container video {
    position: absolute;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    object-fit: cover;
  }

  .media-container .vid-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    z-index: 1;
    top: 0;
    left: 0;
  }

  #about-section .grid-section {
    margin-bottom: 2rem;
  }


  #featured-section .grid-section {
    margin-bottom: 12rem;
  }

  .link-container {
    margin-top: 4rem;
  }

  #about-section .link-container {
    margin-top: 4rem;
  }

  .link-container {
    justify-content: flex-end;
  }

  #intro-section .substatement {
    width: 75%;
    align-self: center;

  }

  #featured-section .statement {
    width: 100%;
    align-self: center;
  }

  #about-section .substatement {
    width: 100%;
  }
  
.dynamic-textblocks {
  display: flex;
  flex-direction: column;
  aspect-ratio: 1 / 1;
  flex-grow: calc(1 / 1);
  flex-basis: 0;
  box-sizing: border-box;
  overflow: visible;
  z-index: 2;
  margin-left: 5rem;
}

.dynamic-textblocks .statement  {
  margin: 0;
  margin-left: 2rem;
  font-size: clamp(2.5rem, 11vw, 25rem);
  white-space: normal;
  display: block;
  text-align: center;
}

.dynamic-textblocks .substatement {
  flex: 0 1 auto;
  max-height: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  margin-left: 2rem;
}


  #about-section .grid-section .section-split {
    gap: 0;
  }

   /* Disable aspect-ratio only in Firefox */
  @supports (-moz-appearance: none) {
    #about-section .media-container {
      aspect-ratio: auto; /* cancels the enforced ratio */
    }
  }

   #about-section .media-container .team-group-image{
    top: -3rem;
    left: 5.5rem;
    overflow: visible;
  }

  #about-section .media-container .team-group-image{
  width: 103%;
  }


  #about-section .media-container .team-group-image img {
  /* height: auto; */
  width: 102%; 
  transform: translate(-51%, -50%);
  top: 50%;  
  left: 50%;
  overflow: visible;
}

  #about-section .dynamic-textblocks {
    order: 1
  }

  #about-section .media-container {
    order: 2;
  }



 .bg-4, .bg-4 picture img {
  aspect-ratio: auto;
 }


  #about-section .section-content {
    margin-bottom: 0;
  }

  #contact-section .vid-container video {
  top: -0;
}

  .footer {
    flex-direction: row;           
    justify-content: space-between;
    align-items: center;
    padding: 2rem 7rem;
    height: var(--footer-height, 4rem);
    text-align: left;
  }

  .footer-social {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    transform: translate(-50%, -50%); 
    margin-bottom: 0;
    gap: 1.5rem;
    display: flex;
  }

  .footer-left,
  .footer-right {
    width: auto;                  
    justify-content: flex-start; 
  }

  .footer-right {
    justify-content: flex-end; 
  }

  .footer-copy {
    text-align: right;
    white-space: nowrap;
    margin-top: 0;
  }

  .jobs {
    text-align: left;
  }

  .no-positions p {
    font-size: 1em;
    line-height: 1.2em;
    font-family: 'CodecPro-ExtraBold', sans-serif;
  }

  .location {
    margin-top: 2rem;
  }

  .jobs .link-container {
    margin-top: 2rem;
  }

  
  .team {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Full-Screen Contact Info (Initially Hidden) */
  .person-contact {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  }

  .person-contact-mobile {
    display: none;
  }

  /* Hover Effect - Show Contact Overlay */
  .profile-img-container:hover .person-contact {
    opacity: 1;
    visibility: visible;
  }

  .featured {
    grid-template-columns: repeat(4, 1fr);
    width: 75%;
  }

  .bg-1{
    left: -20vw;
    width: 25vw; 
    display: block;
  }

  .bg-2 {
    /* width: 50vw; 
    left: -7.5vw;
    top: 1.5vw; */

    width: 58vw; 
    left: -12vw;
    top: 0;
  }
  .bg-3 {
    width: 85vw; 
    left: 8vw;
    top: -2.5vw;
    display: block;
  }

  .bg-4 {
    width: 80vw; 
    left: -8vw;
  } 
  
  .bg-4 picture img {
    width: 105%;
  }

  .wrapper-large.media-container{
    display: flex;
  }

  .wrapper-large.media-container {
    left: 2vw;
  }

   /* .wrapper-large.media-container #intro-carousel-2{
    left: -2vw;
  } */

  .wrapper-small.media-container {
    display: none;
  }

  .slider .image-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
  }

  .media-container .vid-container video {
    /* top: 10.5%;
    left: 7.5%;
    width: 85%;
    height: 85%; */

    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    object-fit: cover;
  } 

  .section-split {
    flex-direction: row;
  }

  .featured-img-container {
    aspect-ratio: 9/15; 
  }

  .media-container picture,
  .media-container img {
    object-fit: cover;
      max-height: 80vh;
  }


  #contact-section {
   margin-top: 6rem;
  }

  .contact-info {
    max-width: 80%;
    width: 60%;
    text-align: right;
  }
  
  #jobs {
    text-align: left;
  }

  #jobs .link-container {
    margin-top: 5rem;
  }

  #contact-section .vid-container video {
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  }

  .location {
    justify-content: flex-end;
  }

  .hero picture,
  .hero img {
  width: 100%;
  height: 100%;
  }

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


}

@media screen and (min-width: 1120px) {

/* 
  .header {
    padding: 0 7rem;
  } */

/* 
  .menu-overlay {
    padding-right: 7rem;
  } */

  /* .grid-section {
     padding: 0 7rem 6rem;
  } */

  .contact-container {
    flex-direction: row;
  }

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

   .bg-3 {
    width: 85vw; 
    left: 8vw;
    top: -2.5vw;
  } 



}

@media screen and (min-width: 1600px) {

}

@media screen and (min-width: 1760px) {
 
}

@media screen and (min-width: 2000px) {

  :root {
    --header-height: 10rem;
    --footer-height: 10rem;
  }

  #team, #projects, #project, #jobs, #hero-section, #impressum-section, #error-section { 
      margin-top: 10rem; 
  }

  .grid-section {
     padding: 0 7rem 8rem;
     margin-bottom: 10rem;
  }

  #hero-section {
    padding-bottom: 8rem;
  }
  
  .header {
      height: 10rem;
  }

  .logo svg {
  height: 5rem;
  }

  .dynamic-textblocks .statement  {
    font-size: clamp(2.5rem, 12vw, 40rem);
  }

}


@media screen and (min-width: 2500px) {

   :root {
    --header-height: 12rem;
    --footer-height:12rem;
  }

  #team, #projects, #project, #jobs, #hero-section, #impressum-section, #error-section { 
      margin-top: 12rem; 
  }

  .grid-section {
     padding: 0 7rem 10rem;
     margin-bottom: 12rem;
  }
  
  #hero-section {
    padding-bottom: 12rem;
  }

  #intro-section, #about-section {
    margin-bottom: 10rem;
  }

 .header {
    height: 12rem;
 }

  .logo svg {
  height: 6rem;
}

}

@media screen and (min-width: 3000px) {
   :root {
    --header-height: 15rem;
    --footer-height:15rem;
  }

  #team, #projects, #project, #jobs, #hero-section, #impressum-section, #error-section { 
      margin-top: 15rem; 
  }

  #hero-section {
    padding-bottom: 15rem;
  }

  .grid-section {
     padding: 0 7rem 12rem;
     margin-bottom: 15rem;
  }
  

 .header {
    height: 15rem;
 }

  .logo svg {
  height: 7.5rem;
}

}


@media screen and (min-width: 4000px) {
    .dynamic-textblocks .statement  {
    font-size: clamp(2.5rem, 13vw, 40rem);
  }
}