/*  __    _  _  _     */
/* /__|  / \|_)|_||   */
/* \_||__\_/|_)| ||__ */
/* VARIABLES: containers, margins, colors */
:root {
  --max-width: 1440px;
  --padding-page-x: max(100px, calc(calc(100vw - var(--max-width)) / 2));

  --default-font-size: 16px;
  --default-line-height: 120%;
  --color-black: #140014;
  --color-dark-purple: #290029;
  --color-medium-purple: #564756;
  --color-light-purple: #800080;
  --color-white: #FFFFFF;
  --color-dark-grey: #848586;
  --color-light-grey: #E9E6E9;
  --color-cream: #ECEBE4;

  --transition-speed: .5s;
}

/* RESET */
* {
  padding: 0;
  margin: 0;
}

body {
  font-family: 'Albert Sans', sans-serif;
  font-size: var(--default-font-size);
  line-height: var(--default-line-height);
  font-weight: 400; /* light */
  font-style: normal;
  font-variation-settings: "wdth" 100, "YTLC" 500;
  color: var(--color-black);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1 {
  font-size: calc(var(--default-font-size) * 1.5);
  line-height: 1.5em;
}

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

p a {
  text-decoration: underline;
}

a.active {
  text-decoration: underline;
}

ul {
  list-style: none;
}
ul, ol {
  list-style-position: inside;
}

p {
  margin-bottom: 1em;
}

/* animated logo */
@keyframes color-rotate {
  0% { color: blue; }
  25% {color: red; }
  50% { color: green; }
  75% { color: magenta; }
  100% { color: blue; }
}

@keyframes bouncing-arrow {
  0% { padding-left: 30px; padding-right: 5px; }
  5% { padding-left: 35px; padding-right: 0px; }
  10% { padding-left: 30px; padding-right: 5px; }
  15% { padding-left: 35px; padding-right: 0px; }
  20% { padding-left: 30px; padding-right: 5px; }
  100% { padding-left: 30px; padding-right: 5px; }
}

.logo div {
  position: relative;
}

.logo svg {
  position: absolute;
  left: 0;
}

.logo svg {
  animation: color-rotate 6s linear infinite;
}

.logo button {
  border: none;
  background: none;
  font-size: 50px;
  line-height: 50px;
  animation: bouncing-arrow 3s linear infinite, color-rotate 6s linear infinite;
  float: right;
  cursor: pointer;
}
/* end animated logo */

/* HEADER */
body > header {
  display: flex;
  justify-content: space-between;
  background: var(--color-white);
  position: sticky;
  top: 0;
  padding: 16px;
  z-index: 1;
}

body > header .logo img {
  height: 16px;
  width: auto;
}

body > header nav ul {
  display: flex;
  font-weight: 200;
}

body > header nav li a.active {
  text-decoration: none;
  position: relative;
  font-weight: 500;
}

body > header nav li a.active:after {
  content: " ";
  border-bottom: 3px solid var(--color-light-purple);
  position: absolute;
  width: calc(100% - 12px);
  left: 3px;
  bottom: -6px;
}

body > main {
  z-index: 0;
}

/* FOOTER */
body > footer {
  text-align: center;
  margin-top: auto;
  padding: 30px 0px;
}

body > footer nav ul {
  display: flex;
  justify-content: center;
  gap: 45px;
  margin-bottom: 20px;
}

/* HOME LANDING */
.landing {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-white);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: left var(--transition-speed) ease-in-out;
}

.landing.hidden {
  left: -100vw;
}

.landing.logo div {
  height: 50px;
  max-width: 80%;
  cursor: pointer;
}

/* HOME */
.home {
  overflow: hidden;
}
.home .carousel {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  align-items: stretch;
  scrollbar-color: transparent transparent;
}

.home .carousel a  {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.home .carousel a img {
  width: 100%;
  padding: 0px 30px;
  box-sizing: border-box;
  /* window height - header height - footer height */
  height: calc(100vh - 60px - 128px);
  object-fit: cover;
}

/* MORE BUTTON (LIST AND WORK DETAIL) */
.more {
  border: none;
  background: none;
  cursor: pointer;
}
.more span {
  color: var(--color-white);
  background-color: var(--color-dark-purple);
  padding: 8px;
  border-radius: 50%;
  width: 1em;
  height: 1em;
  display: inline-block;
  line-height: .8em;
  font-weight: 700;
  transition: background .5s, transform .5s;
  margin-bottom: 4px;
}

.more:hover span {
  transform: rotate(-180deg);
  background-color: var(--color-light-purple);
}

/* WORK LIST */
.filters {
  border-bottom: 1px solid var(--color-dark-grey);
  margin-bottom: 30px;
  overflow-x: scroll;
  -ms-overflow-style: none;
  scrollbar-width: none;
  position: sticky;
  top: 60px;
  background: var(--color-white);
}
.filters::-webkit-scrollbar {
  display: none;
}

.filters ul {
  width: max-content;
  padding: 10px 0px;
}

.filters ul li {
  display: inline;
  padding: 10px 24px;
  color: var(--color-dark-grey);
  cursor: pointer;
}

.filters ul li.active, .filters ul li:hover {
  color: var(--color-black);
}

.filters ul span {
  position: relative;
}

.filters ul li.active span:after {
  content: " ";
  border-bottom: 3px solid var(--color-light-purple);
  position: absolute;
  width: calc(100% - 12px);
  left: 3px;
  bottom: -10px;
}

.work-list main {
  text-align: center;
}


.work-list main a img.intersect {
  opacity: 0;
}

.work-list main a img {
  width: 100%;
  aspect-ratio: 343 / 245;
  object-fit: cover;
  padding: 8px 16px;
  box-sizing: border-box;
  transition: opacity .5s;
  opacity: 1;
}

/* ONE WORK */
.work-one nav.back {
  padding: 16px;
  box-sizing: border-box;
}
.work-one nav.back a {
  color: var(--color-dark-grey);
}
.work-one nav.back a:hover {
  color: var(--color-black);
}

.work-one main {
  padding: 0px 16px;
  box-sizing: border-box;
}

.work-one main h2 {
  font-size: calc(var(--default-font-size) * 0.8);
  font-weight: 400;
  padding-bottom: .5em;
}

.work-one main img {
  width: 100%;
  object-fit: cover;
  box-sizing: border-box;
  padding-bottom: 16px;
}

.work-one main .more ~ section {
  max-height: 0;
  overflow: hidden;
}

.work-one main section {
  max-height: 1000px;
  overflow: hidden;
  transition: max-height ease-in-out 1s;
}

.work-one button.more span {
  margin-right: 8px;
}

/* PRESS */
.press main {
  padding: 16px;
  box-sizing: border-box;
}

.press table {
  margin-top: 16px;
  border-collapse: collapse;
}
.press table tr.intersect {
  opacity: 0;
}

.press table tr {
  opacity: 1;
  transition: opacity .5s;
}

.press table th {
  text-align: left;
}
.press table tbody td {
  border-bottom: 1px solid var(--color-black);
  padding: 8px 0px;
}

.press tr a img {
  margin: 0px 16px;
  height: 1em;
}

.press button.more {
  display: block;
  margin: 8px auto;
}

/* CONTACT */
.contact main {
  padding: 16px;
}

input, select, textarea {
  width: 100%;
  box-sizing: border-box;
  margin: 3px 0px 20px 0px;
  padding: 8px;
  border: 1px solid var(--color-dark-grey);
}

textarea {
  height: 8em;
}

input[type=submit] {
  display: inline-block;
  border: none;
  height: 44px;
  line-height: 44px;
  padding: 0px 15px;
  color: var(--color-white);
  background: var(--color-dark-purple);
  transition: background .5s;
}

input[type=submit]:hover {
  background: var(--color-light-purple);
}

.contact section {
  background-color: var(--color-light-grey);
  padding: 20px 60px;
  text-align: center;
}

.contact section h2 {
  font-size: calc(var(--default-font-size) * 1.5);
  margin-bottom: 16px;
}
/* ABOUT */
.about section {
  padding: 32px 0px;
  position: sticky;
  top: 60px;
  min-height: calc(100vh - 60px - 128px);
  box-sizing: border-box;
}

.about section:nth-child(2n+2) {
  background: var(--color-white);
}

.about section:nth-child(2n+1) {
  background: var(--color-light-grey);
}

.about section h2 {
  text-align: left;
  margin-bottom: 1em;
}

.about section.statement {
  background-image: url("../images/about/statementAnkeVertical.fd6d25b4c524.jpg");
  background-size: cover;
  background-position: bottom right;
  background-repeat: no-repeat;
  color: var(--color-white);
  box-sizing: border-box;
  height: calc(100vh - 60px);
}

.about section figure {
  background-size: calc(100% - 32px) auto;
  background-position: top center;
  background-repeat: no-repeat;
}


.about section.interdisciplinary-exploration figure {
  min-height: 72vw;
  background-image: url("../images/about/dressingLight.db3e50110a40.jpg");
}

.about section.educational-professional-background figure {
  min-height: 30vw;
  background-image: url("../images/about/SAIC.65f1863fe7b0.png");
  background-size: 30% auto;
}

.about section ul {
  list-style: disc;
  margin-left: 2em;
}

.about section ul li p {
  margin-bottom: .5em;
}
.about section > div, .about section > figure {
  padding: 0px 16px;
  box-sizing: border-box;
}

/* GDPR consent banner */
.gdpr-banner {
  position: fixed;
  bottom: 0;
  right: 0;
  width: min(100vw, 500px);
  z-index: 5;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  background-color: #fff;
  border: solid 1px #eee;
  flex-wrap: wrap;
  align-items: flex-end;
  margin: 10px calc(10px + var(--padding-page-x));
}

.gdpr-message {
  padding: 15px 0;
}

.gdpr-control {
  display: contents;
}

.gdpr-control .label, .gdpr-control a {
  height: 2.5rem;
  display: inline-block;
  box-sizing: border-box;
  border: 1px solid #eee;
  padding: 10px;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: 50%;
  cursor: pointer;
  align-items: center;
}

.hidden {
  display: none;
}

.cookies h2 {
  margin-top: 1em;
  font-size: 1.2em;
}
.cookies h3 {
  margin-top: .5em;
  font-size: 1em;
}

.cookies th, .cookies td {
  border: 1px solid #eee;
  padding: 10px;
  font-weight: normal;
}

.cookies main ul {
  list-style: disc inside;
}

.cookies a {
  overflow-wrap: anywhere;
}

@media (max-width: 700px){
  .cookies section {
    padding: 0 20px;
  }
  .cookies table thead {
    display: none;
  }

  .cookies table tr{
    display: block;
    margin-bottom: 40px;
  }

  .cookies table td {
    display: block;
  }
}


/******************************/
/* MOBILE ONLY                */
/******************************/
@media (max-width: 900px) {
  body > header nav ul {
    position: absolute;
    left: -100vw;
    width: 100vw;
    top: 60px;
    height: calc(100vh - 60px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    gap: 2em;
    font-size: 20px;
    font-weight: 400;
    background: var(--color-white);
    transition: left ease-in-out var(--transition-speed);
  }
  body > header .logo {
    margin: 4px 0px;
  }

  body > header nav button {
    border: none;
    background: none;
    height: 24px;
    cursor: pointer;
  }

  body.nav > header nav ul {
    left: 0px;
  }
}

/******************************/
/* DESKTOP                    */
/******************************/
@media (min-width: 900px) {
  :root {
    --transition-speed: 1.5s;
    --default-font-size: 20px;
  }

  .no-desktop {
    display: none;
  }

  body {
    font-size: var(--default-font-size);
  }

  body > header, body > footer, main {
    padding-left: var(--padding-page-x);
    padding-right: var(--padding-page-x);
  }

  body > header {
    padding: 30px calc(var(--padding-page-x) + 20px);
  }

  body > header .logo img {
    height: 20px;
  }

  body > header nav ul {
    flex-direction: row;
    gap: 30px;
  }

  h1 {
    text-align: center;
  }

  /* HOME */
  .home .carousel a img {
    padding: 0px;
    /* window height - header height - footer height */
    height: calc(100vh - 90px - 158px);
    object-fit: contain;
  }

  /* ABOUT */
  .about section {
    padding: 0;
    height: calc(100vh - 90px);
    display: flex;
  }
  .about section > div, .about section > figure {
    flex: 50%;
    height: 100%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
  }
  .about section figure {
    background-size: 80% auto;
    background-position: center;
    background-repeat: no-repeat;
  }
  .about section.statement {
    background-position: top right;
    background-image: url("../images/about/statementAnke.ce77cc80d000.jpg");
  }
  .about section.interdisciplinary-exploration figure {
    min-height: unset;
  }
  .about section.bio figure {
    background-image: url("../images/about/portraitAnke.daddf6ab3987.jpg");
  }

  .about section.exhibitions figure {
    background-image: url("../images/about/illuminate.d7e94300c633.jpg");
  }

  /* WORK LIST */
  .work-list main {
    display: flex;
    flex-wrap: wrap;
  }

  .work-list main nav {
    border-top: 1px solid var(--color-dark-grey);
    flex: 0 0 100%;
  }

  .work-list main a {
    flex: 0 0 calc(100% / 3);
  }

  .work-list main a img {
    padding: 8px;
  }

  .work-list main button {
    flex: 0 0 100%;
  }

  .filters {
    /* sticky */
    top: 105px;
  }

  .filters ul {
    margin: auto;
  }

  /* WORK ONE */
  .work-one main, .work-one nav.back {
    padding-left: calc(var(--padding-page-x) + 60px);
    padding-right: var(--padding-page-x);
  }

  .work-one nav.back {
    font-size: calc(var(--default-font-size) * 0.8);
  }

  .work-one main .header {
    position: sticky;
    top: 105px;
    background: var(--color-white);
  }

  .work-one h1 {
    text-align: left;
  }

  .work-one .flex-container {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
  }

  .work-one .flex-elem {
    flex: 0 0 49%;
    height: calc(100vh - 90px - 128px);
    overflow: scroll;
    cursor: row-resize;
  }

  .work-one main section {
    padding-right: 60px;
  }

  .work-one figure {
    position: relative;
  }
  .work-one figure img {
    transition: 1s opacity;
  }

  .work-one figure iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    box-sizing: border-box;
    padding-bottom: 21px;
    opacity: 0;
  }
  .work-one figure button {
    border: none;
    background: none;
    font-size: 90px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 2;
    cursor: pointer;
    text-shadow: 1px 1px 2px #fff, -1px -1px 2px #fff, 1px -1px 2px #fff, -1px 1px 2px #fff
  }

  .work-one figure.playing img {
    opacity: 0;
  }
  .work-one figure.playing iframe {
    opacity: 1;
    transition: 1s opacity 1s;
    z-index: 1;
  }

  .work-one figure.playing button {
    display: none;
  }

  /* PRESS */
  .press main {
    padding-left: var(--padding-page-x);
    padding-right: var(--padding-page-x);
  }

  .press main > p {
    text-align: center;
  }

  .press main table {
    margin: auto;
  }

  .press tr a img {
    opacity: 0;
    transition: opacity .5s;
  }

  .press tr:hover a img {
    opacity: 1;
  }

  /* CONTACT */
  .contact main {
    padding-left: var(--padding-page-x);
    padding-right: var(--padding-page-x);
  }

  .contact main > * {
    max-width: 550px;
    margin: auto;
  }

  .contact main form div {
    column-count: 2;
  }

  .contact main p {
    text-align: center;
    font-size: calc(var(--default-font-size) * 0.8);
    margin-bottom: 1em;
  }

  /* captcha */
  div.captcha {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-bottom: 20px;
  }
  div.captcha > * {
    margin-bottom: 20px;
  }
  div.captcha input {
    width: 10em;
  }

  /* form errors */
  .errorlist {
    color: red;
  }
}
