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

:root{
  --col-min: 336px;
  /*--row-base: 200px;*/
  --gap: 8px;
}

/* font Alte Hass Grotesk */

/* Regular weight */
@font-face {
  font-family: 'AlteHaasGroteskRegular';
  src: url('../fonts/AlteHaasGroteskRegular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

/* Bold weight */
@font-face {
  font-family: 'AlteHaasGroteskBold';
  src: url('../fonts/AlteHaasGroteskBold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

/* website styles */

body {
	margin: 0;
	padding: 0;
	color: #fff;
	background: #000;
}

.cursor {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FF0000; /* red */
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

.header {
	position: fixed;
	top: 0;
	width: 100%;
	height: 100px;
	background: rgb(0, 0, 0 / 0.7);
	z-index: 999;
	padding: 0.8rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-family: "Instrument Serif", serif;
  color: #FF0000;
  align-items: baseline;
}

.header-left {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}

.header-left-col1 {
	font-family: "Instrument Serif", serif;
	font-style: italic;
	font-size: clamp(24px, 6vw, 28px);
}

.header-left-col2 {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 3rem;
}

.header-left-col2-title {
	font-family: "Instrument Serif", serif;
	font-size: clamp(36px, 6vw, 48px);
}

.header-left-col2-subtitle {
	font-family: "Instrument Serif", serif;
	font-style: italic;	
	font-size: clamp(24px, 6vw, 28px);
}

.header-middle {
	text-align: center;
	font-family: "Instrument Serif", serif;
	font-size: clamp(36px, 6vw, 48px);
}

.header-middle a {
	text-decoration: none;
	color: #FF0000;
}

.header-middle a:hover {
	text-decoration: none;
	color: #FF0000;
}

.header-right {
	display: flex;
	/*align-items: center;*/
	justify-content: right;
	gap: 8px;
	font-family: "Instrument Serif", serif;
	font-size: clamp(24px, 6vw, 28px);
}

.menu-item a,
.menu-item a:link,
.menu-item a:visited,
.menu-item a:active,
.menu-item a:focus {
	text-decoration: none;
	color: #FF0000;
}

.menu-item a:hover {
	background: #ff0000;
	color: #000;
}

.wrapper-hero-video {
	position: fixed;
	width: 100%;
	height: 100svh;
	top: 0;
	z-index: 90;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero-video {
	width: 96%;
	height: auto;
	/*background: url("images/hero-placeholder.jpg");
	background-position: center;
	background-repeat: none;
	background-size: cover;*/
	aspect-ratio: 16/9;
	transition: transform 0.1s linear, opacity 0.2s linear;
}

.hero-video video {
  /*position: absolute;*/
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  /*border-radius: 8px;*/
}

.hero-content {
	position: fixed;
  width: 100%;
  height: 86svh;
  display: grid;
  align-items: end;
  padding: 0 1rem 0 1rem;
  font-family: "Courier Prime", monospace;
	font-weight: 500;
	color: #FF0000;
	font-size: clamp(12px, .7vw, 16px);
	text-transform: uppercase;
}

.hero-content-bottom {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	margin-bottom: 2rem;
}

.hero-content-bottom--col2 {
	text-align: center;
}

.hero-content-bottom--col3 {
	text-align: right;
}

.wrapper-content {
	position: absolute;
	width: 100%;
	z-index: 100;
	/*display: none;*/
}

.wrapper-grid {
	z-index: 100;
	margin: 1rem;
}

.headline {
	position: sticky;
	margin-top: 40vh;
	top: 120px;
	z-index: 91;
	display: flex;
	justify-content: space-between;
	align-items: end;
}

.headline-title {
	text-transform: uppercase;
	font-family: "Neue Haas Grotesk Display Pro", sans-serif;
	font-size: clamp(20px, 1vw, 24px);
	line-height: 1;
	font-weight: 500;
	color: #FF0000;
	max-width: 312px;
	text-align: justify;
	text-align-last: justify;
}

.headline-subtitle {
	text-align: right;
	font-family: "Courier Prime", monospace;
	font-weight: 500;
	color: #FF0000;
	font-size: clamp(12px, .7vw, 16px);
	text-transform: uppercase;
}

/*.grid {
	z-index: 95;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(336px, 1fr));
    /*grid-auto-rows: 242px;
    gap: 1rem;
    margin-top: 50vh;
    padding-bottom: 2000px;
  }

.grid-item {
	background: #3498db;
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
	aspect-ratio: 3/2;
}

.grid-item img {
	width: 100%;
	height: 100%;
	/*position: absolute;
}*/

/* --- Grid (Pinterest-like with row spans) --- */

.grid {
	margin-top: 50svh;
	margin-bottom: 12rem;
}

.grid-project-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--col-min), 1fr));
  grid-auto-rows: calc(var(--col-min) * 2 / 3); /* new line for 3:2 ratio */
  grid-auto-flow: dense;
  gap: var(--gap);
  /*margin-top: 50svh;
  margin-bottom: 6rem;*/
  margin-top: 8px;
}

.grid-item {
  position: relative;
  /*border-radius: 8px;*/
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translateY(20px);
  opacity: 0; /* start hidden for fade-in */
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
  will-change: opacity, transform;
  color: #fff;
}

/* when visible in viewport */
.grid-item.visible {
  transform: translateY(0);
  opacity: 0.94; /* normal resting opacity */
  background: none;
}

.grid-item-hidden {
	cursor: default;
}

/* hover on visible items */
.grid-item.visible:hover {
  opacity: 1;
}

.grid-item.empty{
  background: transparent;
  cursor: default;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
}

.grid-item.special {
  grid-column: span 2; /* spans 2 columns */
  grid-row: span 2;    /* spans 2 rows */
}

.grid-video-detail {
	font-family: "Courier Prime", monospace;
	position: absolute;
	font-size: 1rem;
	bottom: 0.5rem;
	right: 0.5rem;
	background: #000;
	padding: 8px 16px 8px 16px;
	/*border-radius: 16px;*/
	display: flex;
	align-items: center;
	gap: 8px;
}

/* --- Overlay --- */
.overlay {
  position: fixed;
  /*inset: 0;*/
  display: none;
  /*align-items: center;*/
  /*justify-content: center;*/
  /*background: rgba(0,0,4,0.72);*/
  z-index: 2000;
  /*padding: 24px;
  box-sizing: border-box;
  flex-direction: column;*/
  width: 100%;
  justify-content: center;
  overflow-y: hidden;
  transition: 0.3s;
  opacity: 0;
}

.overlay.active { 
	display: flex;
	height: 100dvh;
	opacity: 1;
}

.overlay-inner {
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; 
  background: rgba(13,13,13,0.8);
}

.overlay-content-wrapper {
	background: rgba(0, 0, 0, 1);
	margin-top: 3rem;
  border-radius: 32px 32px 0 0;
  /*padding: 2.5rem;*/
  width: 80%;
  max-width: 80%;
  padding-left: 2.5rem;
	padding-right: 2.5rem;
	height: 400dvh;
	background: #000;
}

.overlay-client-title {
	width: 100%;
	display: flex;
	justify-content: space-between;
	position: sticky;
	top: 0;
	color: #fff;
	font-family: "Instrument Serif", serif;
	font-size: clamp(64px, 8vw, 112px);
	z-index: 9999;
	margin-top: 0px;
	padding-top: 12px;
	padding-bottom: 150px;
	/*background: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));*/
}

.overlay-client-title-left {
	font-style: normal;
}

.overlay-client-title-right {
	font-style: italic;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  width: 100%;
  height: 400px; /* adjust as needed */
  background: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
}

.main-media {
  width: 100%;
  max-height: 64vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  position: sticky;
  margin-top: -192px;
}

.main-media video,
.main-media img {
  width: 100%;
  height: 64vh;
  /*width: auto;
  height: auto;*/
  /*border-radius: 8px;*/
  background: #000;
  display: block;
}

.main-media img { 
	object-fit: contain; 
}



.overlay-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  /*background: rgba(0,0,0,0);*/
  background: none;
  color: #fff;
  border: none;
  cursor: pointer;
  /*padding: 0.5em 0.8em;*/
  z-index: 10;
  /*border-radius: 4px;*/
  transition: 0.2s;
  font-family: "Instrument Serif", serif;
  display: flex;
  opacity: 0.8;
}

.overlay-arrow:hover {
  opacity: 1;
}

.overlay-arrow.left { 
	left: 2px; 
	z-index: 91;
}

.overlay-arrow.right { 
	right: 2px;
	z-index: 91;
}

.overlay-project-content {
	margin-top: 3rem;
}

.project-content-headline {
	font-family: "Neue Haas Grotesk Display Pro", sans-serif;
	font-size: clamp(36px, 1.5vw, 48px);
	font-weight: 500;
	text-transform: uppercase;
	/*text-align: justify;
	text-align-last: justify;*/
	line-height: 1;
	max-width: 36%;
}

.project-content-description-wrapper {
	display: flex;
	justify-content: space-between;
	width: 100%;
	margin-top: 3rem;
}

.project-description-left {
	/*font-family: "Neue Haas Grotesk Display Pro", sans-serif;*/
	font-family: "Instrument Serif", serif;
	font-size: clamp(22px, 1.2vw, 28px);
	font-weight: 400;
	line-height: 1.1;
	max-width: 48%;
}

.project-description-left p {
	margin-block-start: 0;
}

.project-description-right {
	width: 24%;
}

.project-details {
	display: block;
	margin-bottom: 2rem;
	font-family: "Courier Prime", monospace;
	text-transform: uppercase;
}

.project-details-title {
	font-weight: 600;
	font-size: 0.8rem;
	margin-bottom: 8px;
}

.project-details-content {
	padding-bottom: 0.4rem;
	font-weight: 400;
}

.project-related {
	width: 100%;
	margin-top: 12rem;
	margin-bottom: 2rem;
}

.project-related-title {
	font-family: "Instrument Serif", serif;
	color: #fff;
	font-size: clamp(40px, 6vw, 72px);
}

.overlay-thumbs {
	width: 100%;
  overflow-x: auto;
  position: sticky;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}

.overlay-thumbs img {
  max-width: 336px;
  /*border-radius: 8px;*/
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.85;
  transition: transform .12s ease, opacity .12s ease;
}

.overlay-thumbs img:hover { 
	transform: scale(.99); 
	opacity: 1; 
}

.overlay-thumbs img.active{
  opacity: .5;
  /*display: none;*/
}

.close-btn {
  position: absolute;
  top: 3rem;
  right: 22px;
  font-family: "Instrument Serif", serif;
  text-transform: uppercase;
  font-size: 28px;
  color: #000;
  background: #FF0000;
  padding-left: 24px;
  padding-right: 24px;
  border-radius: 50px;
  cursor: pointer;
  user-select: none;
  z-index: 9999;
}

@media (max-width: 640px) {
  :root{ --col-min: 150px; }
  .overlay-thumbs img{ width: 76px; height: 54px; }
}

.wrapper-bio {
	margin-left: 1rem;
	margin-right: 1rem;
	background: #000;
	padding-bottom: 1rem;
}

.bio-content {
	/*margin-left: 4rem;
	margin-right: 4rem;*/
}

.bio-background {
	position: sticky;
	top: 0;
	/*background: #000;*/
	padding-top: 3.5rem;
	z-index: 99;
	display: flex;
	justify-content: right;
	transform: translateY(20px);
  opacity: 0; /* start hidden for fade-in */
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
  will-change: opacity, transform;
}

/* when visible in viewport */
.bio-background.visible {
  transform: translateY(0);
  opacity: 1; /* normal resting opacity */
}

.bio-background img {
	width: auto;
  height: 94svh;
  opacity: .6;
  /*border-radius: 24px;*/
  /*object-fit: cover;
  display: block;*/
}

.bio-content-wrapper {
	margin-left: 4rem;
	margin-right: 4rem;
	z-index: 9999;
	position: relative;
	padding-bottom: 100vh;
}

.bio-headline {
	font-family: "Neue Haas Grotesk Display Pro", sans-serif;
	font-size: clamp(36px, 2.6vw, 64px);
	font-weight: 400;
	line-height: 0.9;
	padding-top: 5vh;
	padding-bottom: 2rem;
	max-width: 100%;
  color: #FF0000;
  text-transform: uppercase;
  font-weight: 500;
  text-align: justify;
  text-align-last: justify;
}

.bio-description {
	/*font-family: "Neue Haas Grotesk Display Pro", sans-serif;*/
	font-family: "Instrument Serif", serif;
	font-size: clamp(20px, 1.7vw, 28px);
	font-weight: 300;
	line-height: 1;
	max-width: 44%;
	margin-top: 4rem;
}

.footer {
	height: 100svh;
	/*background: #000;*/
	padding: 1rem;
	font-family: "Instrument Serif", serif;
	font-size: clamp(24px, 2vw, 32px);
	color: #FF0000;
	display: flex;
	justify-content: space-between;
	align-items: end;
}

.footer a,
.footer a:link,
.footer a:visited,
.footer a:active,
.footer a:focus {
	text-decoration: none;
	color: #FF0000;
}

.footer a:hover {
	background: #ff0000;
	color: #000;
}

.align-right {
	text-align: right;
}

.align-left {
	text-align: left;
}

/* impressum and datenschutz */

.main-wrapper-general {
	width: 100%;
	display: flex;
	/*align-items: end;*/
	height: 100svh;
	margin-top: 10rem;
}

.impressum-content {
	width: 50%;
	padding-left: 1rem;
}

.impressum-blocks {
	font-family: "Instrument Serif", serif;
	font-size: 1.5rem;
	color: #fff;
	margin-bottom: 2rem;
}

.impressum-block-title {
	color: #DFDFDF;
}






