/***GLOBAL VARIABLES
*****************************************************/
:root {
/***TEXT***/
    /*--fontSize: clamp(1rem, 1.25vw, 1.5rem);*/
    --fontSizeSmall: 0.95rem;
    --fontSizeMedium: 1.9rem;
    --fontSizeLarge: 3rem;
    --fontWeight: 400;
    --letterSpacing: .02em;
    --wordSpacing: 0em;
    --lineHeight: 1.15;

/***SPACES***/
    --spaceY: calc(var(--fontSizeMedium) * 0.75);
    --spaceX: calc(var(--fontSizeMedium) * 0.75);
    --bodySpaces: 0;
    --rowGutterSmall: calc(var(--fontSizeSmall) * var(--lineHeight));
    --rowGutterMedium: calc(var(--fontSizeMedium) * var(--lineHeight));
    --rowGutterLarge: calc(var(--fontSizeLarge) * var(--lineHeight));
    
    --colGutter: calc(var(--fontSizeMedium) * 0.75);
    --mainTopSpace: calc(var(--rowGutterMedium) * 2);
    --mainBottomSpace: calc(var(--rowGutterMedium) * 3);

/***SIZES***/
    --headerHeight: calc(var(--spaceY)*2 + var(--rowGutterMedium));
    --mainWidth: 100%;
    --mainHeight: calc(100vh - var(--headerHeight) - var(--mainTopSpace) - var(--mainBottomSpace) - var(--footerHeight));
    --indentWidth: 6.6em;
    --mediaWidth: calc(50vw - var(--spaceX)*1.5);
    --footerHeight: calc(var(--spaceY)*2 + var(--rowGutterMedium));

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

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

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

/***TRANSITION***/
    --transitionDuration: 0;
    --transitionDurationSlow: 0.6s;
}
  
/***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: Maison Neue Medium;
    src: url("Maison-Neue-Medium.woff");
}
@font-face {
    font-family: Maison Neue Medium Italic;
    src: url("Maison-Neue-Medium-Italic.woff");
}
.font_size_M {
    font-size: var(--fontSizeMedium);
    line-height: var(--lineHeight);
}
.font_size_L {
    font-size: var(--fontSizeLarge);
    line-height: var(--lineHeight);
}
.font_size_S {
    font-size: var(--fontSizeSmall);
    line-height: var(--lineHeight);
}
.uppercase {
    text-transform: uppercase;
}
.lowercase {
    text-transform: lowercase;
}

/***RESET
*****************************************************/
::-webkit-scrollbar {
    display: none;
}
::-webkit-selection {
    color: var(--textColor);
    background-color: var(--paletteYellow);
}
::-moz-selection {
    color: var(--textColor);
    background-color: var(--paletteYellow);
}
::-ms-selection {
    color: var(--textColor);
    background-color: var(--paletteYellow);
}
::-o-selection {
    color: var(--textColor);
    background-color: var(--paletteYellow);
}
::selection {
    color: var(--textColor);
    background-color: var(--paletteYellow);
}
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: Maison Neue Medium, Arial, Helvetica, sans-serif;
    font-size: var(--fontSizeMedium);
    line-height: var(--lineHeight);
}
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);
    transition-property: color;
    transition-duration: var(--transitionDuration);
}
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 {
    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 {
    width: 100%;
    min-height: var(--headerHeight);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    padding: var(--spaceY) var(--spaceX);
    display: flex;
    justify-content: space-between;
    align-items: start;
    background: var(--backColor);
    z-index: 100;
}
h1.site_name {
    min-height: var(--rowGutterMedium);
    text-transform: uppercase;
}
nav.menu {
    display: inherit;
}
nav.menu ul {
    display: flex;
    justify-content: end;
    gap: var(--colGutter);
}
nav.menu li.menu_item {
    display: inherit;
}

/***CURSOR
*****************************************************/
.cursor {
	position: fixed;
    z-index: 300;
	transform: translate(-50%, -50%);
    width: 25px;
    height: 25px;
    background: var(--paletteYellow);
    border-radius: 50%;
    pointer-events: none;
    transition-property: width, height;
    transition-duration: 0.3s;
}
.cursor.large {
    width: 500px;
    height: 500px;
	pointer-events: auto;
}

/***MAIN CONTENT
*****************************************************/
main.content {
    max-width: var(--mainWidth);
    /*min-height: var(--mainHeight);*/
    position: relative;
    margin-inline: auto;
    margin-block: 0;
    padding-inline: var(--spaceX);    
    display: grid;
    grid-template-columns: var(--gridTemplate);
    gap: var(--colGutter);
}

/***COLUMNS***/
section.info,
section.work {
    height: 100vh;
    padding-block: var(--spaceY) var(--rowGutterMedium);
    overflow-y: scroll;
}
.contact {
    margin-top: var(--rowGutterMedium);
}
article.project:not(:first-child) {
    margin-top: var(--rowGutterMedium);
}
.project .description {
    position: relative;
   /*margin-bottom: var(--rowGutterMedium);*/
}
.project .title {
    position: absolute;
    z-index: 100;
    cursor: pointer;
}
.project .title:hover,
.project .title.active {
    text-decoration: var(--linkDeco);
}
.project .description p {
    text-indent: calc(var(--indentWidth) + var(--colGutter));
}
.project .description .info_button {
    display: inline-block;
    cursor: pointer;
}
.project .description .info_button:hover {
    text-decoration: var(--linkDeco);
}
.project .more {
    position: relative;
    display: grid;
    transition-property: padding-bottom, grid-template-rows, opacity;
    transition-duration: var(--transitionDuration);
}
.project:not(.open) .more {
    grid-template-rows: 0fr;
    padding-bottom: 0;
    opacity: 0;
}
.project.open .more {
    grid-template-rows: 1fr;
    padding-bottom: calc(var(--rowGutterMedium) * 2);
    opacity: 1;
}
.more .stack {
    overflow-y: hidden;
}
.data {
    margin-top: var(--rowGutterMedium);
}
.data .data_row {
    display: flex;
    gap: var(--colGutter);
}
/*
.data .sheet_row:not(.visible) {
    opacity: 0;
}
.data .sheet_row.visible {
    opacity: 1;
}
*/
.data .data_row .row_title {
    width: var(--indentWidth);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.data .data_row .row_content {
    flex: 2;
}
.project.cursor_area {
	position: relative;
}
.media.cursor {
	transform: translate(0%, -50%);
	pointer-events: none;
    /*opacity: 0;*/
    transition-property: width;
    transition-duration: var(--transitionDurationSlow);
}

/***FOLLOWER***/
/*
.follower {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 150;
    transform: translate(calc(-50%), 25px);
    will-change: transform, width, height;
}
*/
/***SLIDER***/
.slider {
    position: relative;
    width: 100%;
    overflow-y: hidden;
}
.slider .slider_media {
    position: relative;
}
.slider .slider_media .media_item {
    width: 100%;
    
}
.slider .slider_media .media_item:not(.active) {
    display: none;
	/*opacity: 0;*/
}
.slider .slider_media .media_item.active {
    display: inline-block;
	/*opacity: 1;*/
}
.slider .slider_media .media_item img {
	max-width: 100%;
    max-height: var(--mediaWidth);
}
.slider .slider_nav {
	position: absolute;
	top: 0;
	display: flex;
	justify-content: space-between;
    width: 100%;
	height: 100%;
}
.slider .slider_nav .prev,
.slider .slider_nav .next {
	display: flex;
	justify-content: center;
	align-items: center;
    width: 50%;
	height: 100%;
	cursor: pointer;
}
.slider .slider_data {
	padding-block: calc(var(--rowGutterSmall)*0.5);
}
.slider .slider_data .data_count {
}
.slider .slider_data .data_caption {
    display: none;
}
/*
.project .media {
    width: 0%;
    margin-top: var(--rowGutterMedium);
    max-height: calc(100vh - var(--spaceY) - var(--rowGutterMedium)*2);
}
.project.cursor_area:hover .media.cursor {
	opacity: 1;
    width: auto;
}
.project .media img {
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}
.project .media .caption {
    padding-top: calc(var(--rowGutterMedium)*0.25);
    background-color: var(--backColor);
    display: none;
}
*/

/***ABOUT
*****************************************************/
.about .title {
    display: inline-block;
    width: var(--indentWidth);
    margin-right: var(--colGutter);
}


/***FOOTER
*****************************************************/
footer {
    width: 100%;
    min-height: var(--footerHeight);
    display: none;
    justify-content: space-between;
    align-items: start;
    padding: var(--spaceY) var(--spaceX);
}
nav.footer_menu ul {
    display: flex;
    justify-content: end;
    gap: var(--colGutter);
}