/* ============================================================
/* KEY VALUES
/* ============================================================

Off-white: #F2EDE0
Off-black: #171715
Gray:      #818181
Red:       #C4282A
*/

/* ============================================================
/* Font Declarations
/* ============================================================ */

@font-face {
  font-family: 'Clarendon';
  src: url('/assets/fonts/ClarendonBT.woff2') format('woff2'),
       url('/assets/fonts/ClarendonBT.woff') format('woff');
}

@font-face {
  font-family: 'Fremont';
  src: url('/assets/fonts/Fremont-Bold.woff2') format('woff2'),
       url('/assets/fonts/Fremont-Bold.woff') format('woff');
}

/* ============================================================
/* General Ruleset
/* ============================================================ */

/* ------------------------------------------------------------
/* General Declarations
/* ------------------------------------------------------------ */

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: #C4282A;
  color: #F2EDE0;
}

::-moz-selection {
  background-color: #C4282A;
  color: #F2EDE0;
}

html,
body {
  margin: 0;
  padding: 0;
  margin-left: auto;
  margin-right: auto;
}

body {
  color: #818181;
  background-color: #171715;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  font-family: "Gotham SSm A", "Gotham SSm B", Helvetica, Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 1em;
  -webkit-font-smoothing: antialiased;
}

hr {
  border: 0;
  margin: 0;
  width: 100%;
}

/* ------------------------------------------------------------
/* Typography
/* ------------------------------------------------------------ */

p {
  font-size: 65%;
  line-height: 150%;
  max-width: 30rem;
  text-align: justify;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  hyphens: auto;
}

a {
  color: #818181;
  text-decoration: none;
  transition: color 0.2s ease-out;
}

p a {
  box-shadow: inset 0 -1px 0 #555;
}

a:hover, a:active {
  color: #C4282A;
}

h1, h1 a {
  font-family: Fremont, sans-serif;
  color: #F2EDE0;
  font-size: 2rem;
  line-height: 105%;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.025em;
}

h2 {
  font-family: Fremont, sans-serif;
  color: #F2EDE0;
  font-size: 1.2rem;
  line-height: 90%;
  margin: 1rem 0;
  letter-spacing: -0.025em;
}

h2.full {
  margin-bottom: 0;
}

h3 {
  font-family: Clarendon, serif;
  color: #F2EDE0;
  font-size: 0.95rem;
  line-height: 130%;
  margin: 1rem 0 0.25rem 0;
  letter-spacing: 0.05rem;
}

/* ============================================================
/* LAYOUT
/* ============================================================ */

/* ------------------------------------------------------------
/* Navigation
/* ------------------------------------------------------------ */

nav {
  background-color: #171715;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1rem 0 1rem 1.5rem;
  z-index: 9000;
}

nav a {
  text-decoration: none;
  margin-right: 1.5rem;
  font-family: Fremont, sans-serif;
  font-size: 1rem;
  color: #F2EDE0;
}

nav svg {
  transition: fill 0.2s ease-out;
}

nav svg:hover {
  fill: #C4282A;
}

/* Middle-alignment fix bc of Fremont’s dimensions */
nav a:not(:first-child) {
  padding-bottom: 0.25rem;
}

/* ------------------------------------------------------------
/* Columns
/* ------------------------------------------------------------ */

.container {
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  padding: 2rem;
  padding-bottom: 5rem;
}

.container.stretch {
  align-items: stretch;
  height: 100%;
}

.full {
  width: 100%;
  padding-right: 1rem;
}

.half {
  width: 100%;
  padding-right: 1rem;
}

.quarter {
  width: 50%;
  padding-right: 1rem;
}

.flex {
  display: flex;
  flex-wrap: wrap;
}

.half .quarter {
  width: 50%;
}
.half .quarter:last-child {
  padding-right: 0;
}

/* ============================================================
/* PAGE SPECIFIC STYLES
/* ============================================================ */

/* ------------------------------------------------------------
/* Homepage
/* ------------------------------------------------------------ */

div.home {
  align-self: center !important;
}

div.home.notcenter {
  align-self: flex-start !important;
  padding-top: calc(50vh - 10em); /* so director and editor headline begin at same point */
}

@media (min-width: 800px) {
  div.home.notcenter {
    /*height: 18em;*/
    padding-top: calc(50vh - 13em); /* so director and editor headline begin at same point */
  }
}

div.home p {
  font-family: Clarendon, serif;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: #818181;
  max-width: none;
  text-align: left;
  -webkit-hyphens: none;
  -moz-hyphens: none;
  hyphens: none;
}

/* ------------------------------------------------------------
/* Contact
/* ------------------------------------------------------------ */

.contact {
  max-width: 68rem;
  align-content: flex-start;
}

.contact img {
  width: 100%;
  max-width: 10rem;
  margin-top: 1.5rem;
}

.contact h3 {
  margin-bottom: 2px;
}

.contact h3+p {
  margin-top: 0;
  /*font-size: 70%;*/
  /*line-height: 1.55;*/
}

.social {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.contact .social {
  margin-bottom: 0;
}

.social a {
  display: inline-block;
  text-decoration: none;
    width: 1rem;
  line-height: 1.5rem;
  box-shadow: none;
  margin-right: 1rem;
}

.social a svg {
  width: 100%;
}

.social a path {
  transition: fill 0.2s ease-out;
}

.social a:hover path {
  fill: #C4282A;
}

.epbox {
  margin: 2rem 0 2.5rem;
}

.contactblurb~.quarter.extend h3 {
  margin-top: 0.7rem;
}

/* ------------------------------------------------------------
/* Directors List
/* ------------------------------------------------------------ */

p.directors {
  max-width: none;
}

p.directors a {
  display: block;
  font-size: 1.4rem;
  white-space: nowrap;
  line-height: 150%;
  text-decoration: none;
  box-shadow: none;
}

/* ------------------------------------------------------------
/* Director Page
/* ------------------------------------------------------------ */

div.directorphoto {
  margin: -2rem -2rem 1.5rem -2rem;
}

div.directorphoto img {
  width: 100%;
}

div.directorphoto img.projectpreview {
  display: none;
}

ul.projects {
  padding: 0;
  margin: 2rem 0 4rem 0;
  list-style: none;
}

ul.projects a {
  display: inline-block;
  text-decoration: none;
  padding-bottom: 1.5rem;
}

h2.projectname {
  transition: color 0.2s ease-out;
  margin: 0;
  line-height: 1.1;
}

.clientname {
  font-family: Clarendon, serif;
  color: #818181;
  font-size: 1rem;
  letter-spacing: 0.05rem;
  line-height: 1.2rem;
}

a:hover h2.projectname {
  color: #C4282A;
}

a.active h2.projectname {
  color: #C4282A;
}

div.half.videos {
  padding-right: 0;
}

div.swiper-slide:not(:last-child) {
  margin-bottom: 1.5rem;
}

.swiper-pagination { display: none; }

.swiper-container {
  width: 100%;
}

div.projectinfo {
  margin-top: 2rem;
  border-top: 1px solid rgba(242,237,224,0.1);
  padding: 2rem 0;
  display: none;
}

h2.otherprojects {
  border-top: 1px solid rgba(242,237,224,0.1);
  padding: 2rem 0 0;
  margin: 2rem 0;
  display: none;
}

@media (max-width: 800px) {
  /* Show Project Title and "Other Projects" header on small viewports */
  h2.otherprojects,
  div.projectinfo { display: block; }

  /* Hide active project on small viewports */
  ul.projects li.active { display: none; }
}


/* ============================================================
/* MEDIA QUERIES
/* ============================================================ */

@media (max-width: 600px) {
  div.extend { width: 100% !important; }
}

@media (min-width: 600px) {
  nav {
    padding: 2rem 2rem 2rem 4rem;
  }

  .container {
    padding: 4rem 4rem 8rem 4rem;
  }

  div.home p {
    font-size: 3.2vw;
    width: 80%;
    line-height: 1.2;
  }

  div.home h1 {
    font-size: 6vw;
    line-height: 105%;
  }

  p.directors {
    width: 100% !important;
  }

  div.directorphoto {
    margin: 0 0 2rem 0;
    z-index: 8000;
  }

  div.swiper-slide:not(:last-child) { margin-bottom: 4rem; }
}

@media (min-width: 800px) {

  .contactblurb {
    width: 75%;
  }

  .contactblurb p {
    max-width: none;
    padding-right: 4rem;
  }

  .half {
    width: 50%;
    padding-right: 2rem;
  }

  .quarter {
    width: 25%;
    padding-right: 2rem;
  }

  p.directors {
    width: 100% !important;
  }

  p.columnize {
    -webkit-columns: 2;
    -moz-columns: 2;
    columns: 2;
    -webkit-column-gap: 5vw;
    -moz-column-gap: 5vw;
    column-gap: 5vw;
  }

  p.directors a {
    font-size: 3.1vw;
  }

  div.directorphoto {
    width: 50vw;
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9999;
  }

  div.directorphoto img {
    width: 50vw;
    height: 100vh;
    object-fit: cover;
    object-position: 50% 50%;
    transition: opacity 0.3s ease-in-out;
    position: absolute;
  }

  div.directorphoto img:first-child {
    opacity: 1;
  }

  div.directorphoto img.projectpreview {
    opacity: 0;
    display: block;
  }

  .social {
    margin-bottom: 3rem;
  }

  /* ------- Video Carousel --------- */

  .swiper-container {
      position: fixed;
      top: 0;
      bottom: 0;
      right: 0;
      width: 50%;
      height: 100vh;
      padding: 0 4rem 0 4rem;
      background-color: #11110F;
      z-index: 9999;
  }

  .swiper-slide {
    height: 0;
    padding-bottom: 56.25%;
    margin-bottom: 0;
  }

  div.swiper-slide:not(:last-child) { margin-bottom: 0; }

  .swiper-pagination {
    display: block;
  }

  .swiper-container-vertical>.swiper-pagination-bullets {
    right: 1.75rem;
  }

  .swiper-container-vertical>.swiper-pagination-bullets .swiper-pagination-bullet {
    background-color: #818181; margin: 15px 0; opacity: 0.33;
  }

  .swiper-container-vertical>.swiper-pagination-bullets .swiper-pagination-bullet-active {
    opacity: 1;
  }

  .swiper-slide-prev, .swiper-slide-next {
    opacity: 0.25;
    filter: grayscale(1);
  }
}

@media (min-width: 1000px) {
  /* change split from 50/50 to golden section */
  main:not(.contact) div.half { width: 38.2%; padding-right: 5rem; }
  ul.credits { margin-top: 4rem; }
  .swiper-container,
  div.directorphoto { width: 61.8%; }
  div.directorphoto img { width: 100%; }

  /* set max font size values */
  /* absolute values computed from width */
  div.home p {
    font-size: 39px;
  }

  div.home h1 {
    font-size: 72px;
    width: 70vw;
  }

  p.directors a {
    font-size: 32px;
  }

  p.directors {
    width: 841px;
    -webkit-column-gap: 60px;
    -moz-column-gap: 60px;
    column-gap: 60px;
  }
}

@media (max-width: 350px) {
  /* Nav fixes on very small screens */
  nav a {
    margin-right: 1rem;
    font-size: 0.85rem;
  }
  nav svg {
    width: 2rem;
  }
}

@media (max-width: 800px) {
  .staffinfo {
    display: none;
  }
}
