/************
 * Variables
 **/
/************
 * Mixins
 **/
.gutters {
  padding: 0 4vw;
}
.fancy-underline {
  position: relative;
  text-decoration: none;
}
.fancy-underline:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #aaa;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}
.fancy-underline:hover:after {
  transform: scaleX(1);
  transform-origin: left;
}
/************
 * Styles
 **/
html {
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}
body {
  padding: 0;
  margin: 0;
  background: #fff;
  color: #333;
  font-family: 'Playfair Display';
}
body.modal--open {
  overflow: hidden;
}
*,
*:after,
*:before {
  box-sizing: border-box;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Work Sans';
  font-weight: 600;
}
a {
  color: #000;
}
section .title {
  font-size: 1.2rem;
  margin-top: 5rem;
  margin-bottom: 3rem;
  color: #8c8c8c;
}
.page {
  border-top: solid 8px #eee;
}
.page__header {
  padding: 0 4vw;
  padding-top: 8vh;
  padding-bottom: 8vh;
}
.page__header .header__title {
  margin: 0.5rem 0;
  font-size: 1.8rem;
  color: #ccc;
}
.page__header .header__name {
  margin: 0.5rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: #8c8c8c;
}
.page__content .content__intro,
.page__content .content__positions {
  padding: 0 4vw;
}
.page__content .content__intro p {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 1rem 0;
}
@media only screen and ( max-width: 480px ) {
  .page__content .content__intro p {
    font-size: 1.75rem;
  }
}
.page__content .content__positions .positions {
  margin: 0;
  padding: 0;
  list-style: none;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.page__content .content__positions .positions .position {
  margin-right: 10vw;
}
@media only screen and ( max-width: 480px ) {
  .page__content .content__positions .positions .position {
    width: 70%;
    margin-right: 0;
    margin-bottom: 1rem;
  }
}
.page__content .content__positions .positions .position .organization {
  font: 600 1.1rem 'Work Sans';
  margin: 0.2rem 0;
}
.page__content .content__positions .positions .position .organization a {
  position: relative;
  text-decoration: none;
  color: inherit;
}
.page__content .content__positions .positions .position .organization a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #aaa;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}
.page__content .content__positions .positions .position .organization a:hover:after {
  transform: scaleX(1);
  transform-origin: left;
}
.page__content .content__positions .positions .position .role {
  font-style: italic;
  color: #888;
  margin: 0.2rem 0;
}
.page__content .content__work .title {
  padding: 0 4vw;
}
.page__content .content__work .projects {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.page__content .content__work .projects .project {
  width: 33.3333333%;
  overflow: hidden;
}
.page__content .content__work .projects .project:nth-child(8n + 7),
.page__content .content__work .projects .project:nth-child(8n + 8) {
  width: 50%;
}
@media only screen and ( max-width: 640px ) {
  .page__content .content__work .projects .project,
  .page__content .content__work .projects .project:nth-child(8n + 7),
  .page__content .content__work .projects .project:nth-child(8n + 8) {
    width: 50%;
  }
}
@media only screen and ( max-width: 480px ) {
  .page__content .content__work .projects .project,
  .page__content .content__work .projects .project:nth-child(8n + 7),
  .page__content .content__work .projects .project:nth-child(8n + 8) {
    width: 100%;
  }
}
.page__content .content__work .projects .project a {
  transition: 0.5s cubic-bezier(0.785, 0.135, 0.15, 0.86);
  display: block;
  padding-top: 75%;
  text-indent: -9999px;
  height: 0;
  max-height: 0;
  overflow: hidden;
  background-color: #eee;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
.page__content .content__work .projects .project a:hover {
  transform: scale(1.05);
}
.page__content .content__work .project-modal {
  transition: transform 0.35s cubic-bezier(0.785, 0.135, 0.15, 0.86), opacity 0.35s cubic-bezier(0.785, 0.135, 0.15, 0.86), background-position 0.65s cubic-bezier(0.19, 1, 0.22, 1);
  transform: scale(0.95);
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  background-color: #eee;
  background-position: center 35%;
  background-size: 80%;
  background-repeat: no-repeat;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  cursor: pointer;
}
@media only screen and ( max-width: 480px ) {
  .page__content .content__work .project-modal {
    background-size: 120%;
  }
}
.page__content .content__work .project-modal .caption {
  position: absolute;
  bottom: 3vw;
  left: 3vw;
  width: 94vw;
  text-align: center;
}
@media only screen and ( max-width: 480px ) {
  .page__content .content__work .project-modal .caption {
    bottom: 20vw;
  }
}
.page__content .content__work .project-modal .caption p {
  margin: 0 auto;
  font-style: italic;
}
.page__content .content__work .project-modal .caption p strong {
  font-family: 'Work Sans';
  font-weight: 600;
  font-style: normal;
  padding-right: 0.75em;
  margin-right: 0.4em;
  border-right: solid 1px rgba(0, 0, 0, 0.5);
}
.page__content .content__work .project-modal.modal--dark .caption {
  color: #fff;
}
.page__content .content__work .project-modal.modal--dark .caption strong {
  border-color: rgba(255, 255, 255, 0.3);
}
.modal--open .page__content .content__work .project-modal {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
.page__content .content__work .project-modal.modal--from-right {
  transition: 0s;
  background-position: 85% 35%;
}
.page__content .content__work .project-modal.modal--from-left {
  transition: 0s;
  background-position: 15% 35%;
}
.page__footer {
  padding: 0 4vw;
  padding-top: 2vh;
  padding-bottom: 2vh;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
}
.page__footer .contact {
  position: relative;
  text-decoration: none;
  -ms-flex-order: 1;
      order: 1;
  line-height: 1;
  font-style: italic;
}
.page__footer .contact:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #aaa;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}
.page__footer .contact:hover:after {
  transform: scaleX(1);
  transform-origin: left;
}
.page__footer .social {
  -ms-flex-order: 2;
      order: 2;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
  height: 30px;
}
.page__footer .social li,
.page__footer .social li a,
.page__footer .social li svg {
  display: inline-block;
  width: 30px;
  height: 30px;
}
.page__footer .social li svg {
  transition: 0.35s;
  opacity: 0.25;
}
.page__footer .social li a:hover svg {
  opacity: 1;
}
