* {
  margin: 0;
  padding: 0;
  -webkit-margin-before: 0;
  margin-block-start: 0;
  -webkit-margin-after: 0;
  margin-block-end: 0;
  border-width: 0;
  background: none;
  text-decoration: none;
  color: inherit;
  font-family: "Geist", sans-serif;
}

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

:root {
  --c-black: #151515;
  --c-black-white: #151515;
  --c-white: #FBFBFB;
  --c-white-black: #FBFBFB;
  --c-red: #E80040;
  --c-turquoise: #A9F6D8;
  --c-turquoise-black: #A9F6D8;
}

[data-theme='high'] {
  --c-red: #151515;
  --c-turquoise: #FBFBFB;
  --c-turquoise-black: #151515;
  --c-black-white: #FBFBFB;
  --c-white-black: #151515;
}

html {
  font-size: 16px;
}

body {
  background-color: var(--c-white);
}

button {
  cursor: pointer;
}

.content-project a,
header a {
  text-decoration: none;
}

/** ANIMATIONS **/

.slide-up {
  opacity: 0;
  transition: all .3s ease-out;
  transform: translate(0, 20px);
}

.slide-header {
  opacity: 0;
  transition: all .25s ease-out;
  transform: translate(0, -20px);
}

.fade-in {
  opacity: 0;
  transition: all .5s ease-out;
}

.move {
  opacity: 1;
  transform: translate(0, 0);
}

/** PAGE LANDING **/

.page-landing {
  min-height: 40dvh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--c-white);
  position: relative;
  z-index: 6;
}

/** LISTS **/

.list {
  margin-bottom: 10rem;
  position: relative;
  z-index: 6;
}

.list a {
  text-decoration: none;
}

.list-entry {
  color: var(--c-red);
  padding: 2rem;
  background-color: var(--c-white);
}

a:hover .list-entry,
a:focus-visible .list-entry {
  background-color: var(--c-red);
  color: var(--c-white);
}

@media screen and (min-width: 720px) {
  .list-entry {
    display: grid;
    gap: .5rem;
  }
}

/** QUOTES **/

.quote {
  grid-column: 1 / -1;
  color: var(--c-red);
  background-color: var(--c-white);
  padding: 3rem 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  gap: 1rem;
  transition: opacity 0.4s ease;
  opacity: 1;
  z-index: 6;
  position: relative;
  overflow-wrap: break-word;
  width: 100%;
}

.quote a {
  text-decoration: none;
}

/** SCROLL-DOWN-BUTTON **/

.scroll-down-button {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
}

.scroll-down-button svg circle {
  fill: var(--c-red);
}

/** SINGLE-PAGE **/

.single-page-content {
  display: grid;
  grid-template-rows: auto;
  gap: 2rem;
  padding-bottom: 4rem;
}

.page-title-container {
  padding: 5.3rem 2rem 2rem 2rem;
  min-height: 25vh;
  background-color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  position: relative;
}

.page-infos {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.page-info {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.content-m {
  background-color: var(--c-white);
  color: var(--c-red);
  padding: 2rem;
}

.content-m>a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.content-rounded {
  margin: 0 .5rem;
  padding: 5rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  background: var(--c-turquoise-black);
  color: var(--c-black-white);
  border-radius: 7.5rem;
  z-index: 10;
  position: relative;
}

.content-rounded-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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


  .single-page-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 0;
  }

  .content-rounded {
    grid-column: 1 / span 2;
    margin: 0 2rem;
    padding: 4.5rem 4.5rem;
  }

  .content-container {
    grid-column: 1 / span 2;
    display: flex;
    flex-wrap: wrap;
  }

  .content-container>* {
    width: 50%;
    height: max-content;
  }
}

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

  .content-container {
    grid-column: 1 / span 4;
  }

  .content-rounded {
    grid-column: 1 / span 4;
    margin: 0 2rem;
    padding: 4.5rem 4.5rem;
  }

  .project-info {
    grid-column: 1 / span 2;
    grid-row: 1;
  }

  .page-info {
    display: grid;
    grid-template-columns: 8rem auto;
    gap: .5rem;
  }

  .project-person {
    grid-row: 2;
    grid-column: 3 / span 1;
  }

  .content-rounded {
    max-width: 800px;
    justify-self: center;
  }
}

/** IMAGE MASKS **/


.shape-mask-architects {
  width: 90%;
  aspect-ratio: 233 / 239;
}

.shape-mask-interior {
  width: 85%;
  aspect-ratio: 225 / 257;
}

.shape-mask-landscape {
  width: 90%;
  aspect-ratio: 254 / 256;
}

.shape-mask-city {
  width: 90%;
  aspect-ratio: 1 / 1;
}

.shape-mask svg {
  width: 100%;
  height: 100%;
  display: block;
}

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

  .page-landing-mask {
    width: 50%;
    height: 60%;
  }
}

/** CONTENT-ROUNDED LINK-BUTTON **/

.rounded-link {
  background-color: var(--c-black-white);
  color: var(--c-white-black);
  padding: .5rem .75rem .5rem 1rem;
  border-radius: 2rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  width: max-content;
  justify-self: center;
}

.rounded-link svg path {
  fill: var(--c-white-black);
}

.rounded-link:hover {
  gap: 1rem;
}

/** KT-TEXT **/

ul.kt-text,
ol.kt-text {
  display: flex;
  flex-direction: column;
  gap: .5rem
}

ul.kt-text {
  margin-left: 1rem;
}

ol.kt-text {
  margin-left: 1.25rem;
}

/** SLIDER **/

.slider-container {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  position: relative;
  z-index: 6;
}

.slider {
  position: relative;
  max-width: 100%;
  margin: auto;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
}

.slide figure {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
}

.slider-controls {
  width: 100%;
  padding: .5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
}

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

  .slide {
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .slide img {
    display: block;
    width: auto;
    max-width: 80%;
    height: auto;
    max-height: 90vh;
    border-radius: 1.5rem;
  }

  .slider-controls {
    width: 100%;
    padding: .5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    position: absolute;
    top: calc(50% - 1rem);
    left: 0;
    z-index: 2;
  }
}

/** PEOPLE GALLERY **/

/** GALLERY **/

.people-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem 0;
  position: relative;
  z-index: 5;
}

.people-gallery .entry {
  width: 100%;
  transition: .4s ease-in-out;
}

.home-person {
  opacity: 1;
  transition: opacity 0.4s ease;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-person>a {
  padding: .5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 85%;
  height: auto;
  flex-direction: column;
  gap: .5rem;
  text-decoration: none;
}

.home-mask {
  width: 100%;
}

.home-person:hover .person-name {
  background-color: var(--c-turquoise);
}

.person-name {
  padding: .25rem .75rem;
  text-align: center;
  border-radius: 5rem;
  transition: all 1s ease;
  background-color: var(--c-white);
}

@media screen and (min-width: 480px) {
  .people-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 1rem 0;
  }
}


@media screen and (min-width: 720px) {
  .people-gallery {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .home-landing {
    border-bottom: 2px solid var(--c-red);
  }

  .home-quote {
    grid-column: 1 / span 3;
    border-bottom: 2px solid var(--c-red);
    border-top: 2px solid var(--c-red);
  }
}

@media screen and (min-width: 1024px) {
  .people-gallery {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  .home-quote {
    grid-column: 1 / span 4;
  }
}

/** PERSON MASKED IMAGES **/

.flip-container {
  width: 100%;
  position: relative;
  aspect-ratio: 1/1;
}

.flip-container img {
  width: 100%;
}

.person-portrait {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1;
  transition: opacity .8s ease-in-out;
  z-index: 2;
}

.person-project {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity .8s ease-in-out;
  z-index: 3;
  transform: scaleX(-1);
}

.flip-inner {
  transform: rotateY(0deg);
  transition: transform 0.8s ease-in-out;
}

.flip-container:hover .flip-inner {
  transform: rotateY(180deg);
}

.flip-container:hover .person-project {
  opacity: 1;
}