/***GLOBAL VARIABLES
*****************************************************/
:root {
/***TEXT***/
    /*--fontSize: clamp(1rem, 1.25vw, 1.5rem);*/
    --fontSizeSmall: 0.9rem;
    --fontSizeMedium: 1.1rem;
    --fontSizeLarge: 4rem;
    --fontWeight: 400;
    --letterSpacing: -0.01em;
    --wordSpacing: 0em;
    --lineHeightNatural: 1.2;
    --lineHeightLow: 1.1;

/***SPACES***/
    --spaceY: calc(var(--fontSizeMedium) * 1.2);
    --spaceX: calc(var(--fontSizeMedium) * 1.2);
    --bodySpaces: 0;
    --rowGutterMedium: calc(var(--fontSizeMedium) * var(--lineHeightNatural));
    --rowGutterLarge: calc(var(--fontSizeLarge) * var(--lineHeightLow));
    --rowGutterSmall: calc(var(--fontSizeSmall) * var(--lineHeightNatural));
    --colGutter: calc(var(--fontSizeMedium) * 1);
    --mainTopSpace: calc(var(--rowGutter) * 2);
    --mainBottomSpace: calc(var(--rowGutter) * 3);

/***SIZES***/
    --headerHeight: calc(var(--spaceY)*2 + var(--rowGutterMedium));
    --headerWidth: calc(var(--spaceX)*2 + var(--fontSizeMedium));
    --mainWidth: 100%;
    --mainHeight: calc(100vh - var(--headerHeight) - var(--mainTopSpace) - var(--mainBottomSpace) - var(--footerHeight));
    --footerHeight: calc(var(--spaceY)*2 + var(--rowGutter));

/***GRIDS***/
    --gridTemplate: repeat(12, 1fr);
    --gridGap: var(--rowGutter) var(--colGutter);

/***COLOR***/
    --paletteWhite: #FFFFFF;
    --paletteGray: #CCCCCC;
    --paletteBlack: #000000; 
    --paletteAlpha: transparent;
    --backColor: var(--paletteWhite);
    --textColor: var(--paletteBlack);
    --linkColor: var(--paletteBlack);
    --hoverColor: var(--paletteGray);

/***DECORATION***/
	--borderWidth: auto;
    --linkDeco: underline var(--borderWidth);
    --borderLine: var(--borderWidth) solid var(--textColor);
    --underlineOffset: 4px;

/***TRANSITION***/
    --transitionDuration: 0.15s;
    --transitionDurationSlow: 0.3s;
}
  
/***FONTS
*****************************************************/
* {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -o-text-size-adjust: 100%;
	text-size-adjust: 100%;
    -webkit-font-smoothing: smooth;
	-moz-font-smoothing: smooth;
    -moz-osx-font-smoothing: smooth;
	-ms-font-smoothing: smooth;
    -o-font-smoothing: smooth;
    text-rendering: geometricPrecision;
}
@font-face {
    font-family: Diatype Programm;
    src: url("assets/Diatype_Programm.woff");
}
.font_size_small {
    font-size: var(--fontSizeSmall);
    line-height: var(--lineHeightNatural);
}
.font_size_medium {
    font-size: var(--fontSizeMedium);
    line-height: var(--lineHeightNatural);
}
.font_size_large {
    font-size: var(--fontSizeLarge);
    letter-spacing: var(--letterSpacing);
    line-height: var(--lineHeightLow);
}
.uppercase {
    text-transform: uppercase;
}
.lowercase {
    text-transform: lowercase;
}

/***RESET
*****************************************************/
::-webkit-scrollbar {
    display: none;
}
::-webkit-selection {
    color: var(--backColor);
    background-color: var(--textColor);
}
::-moz-selection {
    color: var(--backColor);
    background-color: var(--textColor);
}
::-ms-selection {
    color: var(--backColor);
    background-color: var(--textColor);
}
::-o-selection {
    color: var(--backColor);
    background-color: var(--textColor);
}
::selection {
    color: var(--backColor);
    background-color: var(--textColor);
}
img::-webkit-selectio {
    color: transparent;
    background-color: transparent;
}
img::-moz-selection {
    color: transparent;
    background-color: transparent;
}
img::-ms-selection {
    color: transparent;
    background-color: transparent;
}
img::-o-selection {
    color: transparent;
    background-color: transparent;
}
img::selection {
    color: transparent;
    background-color: transparent;
}
*,
*::before,
*::after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
}
html {
    /*color-scheme: light dark;*/
    scroll-behavior: smooth;
}
body {
    position: relative;
    margin: var(--bodySpaces);
    color: var(--textColor);
    background: var(--backColor);
    font-family: "Diatype Programm", Arial, Helvetica, sans-serif;
    font-size: var(--fontSizeMedium);
    line-height: var(--lineHeightNatural);
}
ul {
    display: block;
    list-style-type: none;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0;
    margin-inline-end: 0;
    padding-inline-start: 0;
}
li {
  display: inline;
}
a {	
    color: var(--linkColor);
    text-decoration: none;
    transition-property: color;
    transition-duration: var(--transitionDuration);
}
a:hover {	
    text-decoration: var(--linkDeco);
    /*text-underline-offset: var(--underlineOffset);*/
}
h1, h2, h3 {
    margin: 0;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding: 0;
    font-size: var(--fontSizeMedium);
    font-style: normal;
    font-weight: 400;
}
p {
    display: block;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding-inline-start: 0;
}
span {
    display: inline;
}
form, input, textarea, submit,
iframe, embed, audio {
    margin: 0;
    padding: 0;
    color: var(--textColor);
    background: transparent;
    border: 0;
    outline: none;
    font: inherit;
    font-size: inherit;
}
input:focus, textarea:focus {
    outline: none;
}
input[name="submit"] {
	cursor: pointer;
}
:-webkit-input-placeholder {
	/*internet explorer*/
	color: var(--textColor);
}
::-moz-input-placeholder {
	/*mozilla edge*/
    color: var(--textColor);
}
::-ms-input-placeholder {
	/*microsoft edge*/
    color: var(--textColor);
}
::-o-input-placeholder {
	/*microsoft edge*/
    color: var(--textColor);
}
::placeholder {
	/*chrome, firefox, opera, safari*/
    color: var(--textColor);
}
img, video, iframe {
    vertical-align: middle;
}
img.lazy,
video.lazy {
    opacity: 0;
    transition: opacity var(--transitionDuration);
}
img.lazy.loaded,
video.lazy.loaded {
    opacity: 1;
}

/***HEADER AND MENU
*****************************************************/
header {
	position: fixed;
    bottom: calc(var(--headerHeight)*-1);
    left: 0;
    z-index: 100;
    width: 100vh;
    height: var(--headerHeight);
    padding: var(--spaceY) var(--spaceX);
    display: flex;
    justify-content: space-between;
    align-items: center;
	transform: rotate(-90deg);
    transform-origin: top left;
}
header a:hover {
    text-underline-offset: calc(var(--fontSizeSmall) * 0.4);
}
h1.site_name {
	/*
    position: fixed;
    bottom: calc(var(--spaceY)*0.75);
    left: calc(var(--spaceX)*2);
    rotate: -90deg;
    transform-origin: left;
    transform: translate(0, -50%);
    */
}
nav.menu {
	/*
    position: fixed;
    top: calc(var(--spaceY)*0.6);
    left: calc(var(--spaceX)*2);
    rotate: -90deg;
    transform-origin: left;
    transform: translate(-100%, -50%);
    */
}
nav.menu ul {
    display: flex;
    justify-content: end;
    gap: var(--colGutter);
}
nav.menu li.menu_item {
    display: inherit;
}

/***MAIN CONTENT
*****************************************************/
main.content {
    max-width: var(--mainWidth);
    /*min-height: var(--mainHeight);*/
    position: relative;
    padding-block: var(--spaceY) var(--rowGutterMedium);   
    padding-inline:  calc(var(--headerWidth) + var(--spaceX)); 
}

/***LINKS***/
section.text a,
section.about a,
section.contact a,
section.bio a {
    text-decoration: underline;
}

/***INTRO CANVAS***/
canvas {
	/*vertical-align: bottom;*/
	cursor: pointer;
	touch-action: none;
	position: fixed;
	top: 0px;
	left: 0px;
	z-index: 1;
}
canvas#composition {
  background: white;
	/*z-index: 0;*/
}

/***LIST***/
section.list label.list_item a:hover {
	text-underline-offset: calc(var(--fontSizeMedium) * 0.4);
}
section.list label.list_item:not(:last-child) span.separator {
    transform: translateY(25%);
    display: inline-block;
}
/*
section.list label.list_item:not(:last-child) span.separator:after {
    content: "⚹";
}
*/
section.list label.list_item img.cursor {
    max-width: 25vw;
    max-height: 25vw;
    position: fixed;
    object-fit: contain;
    display: none;
    z-index: 300;
    transition-property: transform;
    transition-duration: var(--transitionDurationSlow);
}
/***LEFT TOP***/
section.list label.list_item img.cursor.left.top {
    transform: translate(
        calc(var(--spaceX)*0.5),
        var(--spaceY)
    );
}
/***LEFT BOTTOM***/
section.list label.list_item img.cursor.left.bottom {
    transform: translate(
        calc(var(--spaceX)*0.5),
        calc((100% + (var(--spaceY)*0.5))*-1)
    );
}
/***CENTER TOP***/
section.list label.list_item img.cursor.center.top {
    transform: translate(
        -50%,
        var(--spaceY)
    );
}
/***CENTER BOTTOM***/
section.list label.list_item img.cursor.center.bottom {
    transform: translate(
        -50%,
        calc((100% + (var(--spaceY)*0.5))*-1)
    );
}
/***RIGHT TOP***/
section.list label.list_item img.cursor.right.top {
    transform: translate(
        calc((100% + var(--spaceX)*0.5)*-1),
        var(--spaceY)
    );
}

/***RIGHT BOTTOM***/
section.list label.list_item img.cursor.right.bottom {
    transform: translate(
        calc((100% + var(--spaceX)*0.5)*-1),
        calc((100% + (var(--spaceY)*0.5))*-1)
    );
}
section.list label.list_item a:hover ~ img.cursor {
    display: inline-block;
}

/***THUMB CURSOR***/
.cursor_area {
	position: relative;
}
.cursor {
	/*transform: translate(-50%, -50%);*/
	pointer-events: none;
}

/***MEDIA SLIDER**/
.media {
	position: relative;
	width: 100%;
	height: calc(100vh); /* set via slider script */
    /*position: relative;*/
    padding-block: var(--rowGutterLarge);
}
.media > a {
	position: absolute;
    top: 0;
    left: 0;
	display: inline-block;
	width: 100%;
	height: calc(100% - (var(--rowGutterMedium)*3));
}
.media iframe.vimeo {
	width: 100%;
	height: 100%;
}
.media .slider {
	width: 100%;
	height: 100%;
	position: relative;
}
.media .slider .slides {
	width: 100%;
	height: 100%;
	position: relative;
}
.slider .slides .slide {
	width: 100%;
	height: 100%;
	/*position: absolute;*/
}
.slider .slides .slide:not(.active) {
    display: none;
	/*opacity: 0;*/
}
.slider .slides .slide.active {
    display: inline-block;
	/*opacity: 1;*/
}
.slider .slides .slide .source {
	width: 100%;
	height: 100%;
    object-fit: contain;
}
.slider_nav {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	display: flex;
	justify-content: space-between;
}
.slider_nav .prev,
.slider_nav .next {
	width: 50%;
	height: 100%;
	cursor: pointer;
}
.slider_nav .prev {
	cursor: w-resize;
}
.slider_nav .next {
	cursor: e-resize;
}
.slider_footer,
.video_footer {
	width: 100%;
    margin-top: var(--rowGutterMedium);
}
.slider_footer .count,
.video_footer .controls {
    width: 100%;
	display: flex;
	justify-content: center;
    column-gap: var(--colGutter);
    align-items: center;
    text-align: center;
}
.video_footer .controls .sound_toggle:hover {
    text-decoration: line-through var(--borderWidth) !important;
}
.video_footer .controls .sound_toggle.on {
    text-decoration: none;
}
.video_footer .controls .sound_toggle.off {
    text-decoration: line-through var(--borderWidth) !important;
}

/***TEXT**/


/***CREDITS**/
section.credits {
    margin-top: var(--rowGutterLarge);
    width: calc(50% - var(--colGutter)*0.5);
}

/***INFO**/
section.contact {
    margin-top: var(--rowGutterLarge);
}
section.bio {
    margin-top: var(--rowGutterLarge);
}


/***FOOTER
*****************************************************/
footer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: start;
    gap: 0 var(--colGutter);
    margin-top: calc(var(--rowGutterLarge)*2);
}