@import url("/css/reset.css");

/* Common
--------------------------------------- */
body {
    font-size: 1em;
    line-height: 1;
    font-family: BalboaPlus-Fill, sans-serif;
    color: #1c1c1c;
    letter-spacing: -0.1em;
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: subpixel-antialiased !important; 
    text-rendering: optimizeLegibility !important;
}
@media only screen and (min-width: 769px) {
  body {
    /* letter-spacing: -0.1em; */
  }
}

html {
  font-size: 62.5%;
}
::-moz-selection {
    background: #999;
    text-shadow: none;
}
::selection {
    background: #999;
    text-shadow: none;
}
hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}
img {
    vertical-align: middle;
}
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}
img {
  width: 100%;
  max-width: 100%;
}
video {
  max-width: 100%;
  height: auto;
}
a {
  text-decoration: none;
  color: #1c1c1c;
}
li {
  list-style-type: none;
}
/* header
--------------------------------------- */
header {
  font-size: 1.2rem;
  line-height: 1.3;
  padding: 15px;
  letter-spacing: -0.02em;
}
header li {
  text-align: center;
}
h1 {
  display: block;
  max-width: 880px;
  padding: 0 30px;
  left: 50%;
  transform: translateX(-50%);
  position: relative;
}
@media only screen and (max-width: 768px) {
  header li:last-child {
    display: none;
  }
}
@media only screen and (min-width: 769px) {
  header {
    font-size: 1.5rem;
    padding: 35px;
  }
  header ul {
    display: flex;
  }
  header li:first-child {
    text-align: left;
  }
  header li:last-child {
    text-align: right;
  }
  header li {
    flex: 1 1 calc(100% / 3);
  }
  header li.center {
    flex-basis: 440px;
  }
}

/* Contents
--------------------------------------- */
picture.hero {
  padding-top: 15px;
  display: block;
}
#copy {
  padding: 80px 0;
  background-image: url("/img/noise.gif");
  background-size: 200px;
}
h2 {
  font-size: 2.8rem;
  line-height: 1.2;
  text-align: center;
  max-width: 700px;
  max-width: 1100px;
  left: 50%;
  transform: translateX(-50%);
  position: relative;
  padding: 0 10px;
  /* margin: 1.3em 0; */
  letter-spacing: -0.08em;
}
@media only screen and (min-width: 769px) {
  h2 {
    font-size: 6.6rem;
    letter-spacing: -0.03em;
  }
}

/* Cases
--------------------------------------- */
h3 {
  font-size: 5.4rem;
  text-align: center;
  margin-bottom: 0.75em;
  transition: all 300ms ease-out;
  letter-spacing: -0.08em;
  color: #FFF;
}
@media only screen and (min-width: 769px) {
  h3 {
    letter-spacing: -0.03em;
  }
}
.bg h3 {
  color: #000;
}
section#cases {
  padding: 50px 10px 10px 10px;
  background-color: #000;
  transition: all 300ms ease-out;
  position: relative;
  overflow: hidden;
}
section#cases.bg_white {
  background-color: #FFF;
}
figure {
  position: relative;
}
p.category {
  font-size: 14px;
  margin: 0.3em 0 0 0;
  position: absolute;
  color: #FFF;
  mix-blend-mode: difference;
  z-index: 100;
  bottom: 0.5em;
  left: 1em;
}
ul.showcase {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  padding: 0 5px;
}
ul.showcase li {
  /* padding: 1px; */
}
ul.showcase.md li {
  flex: 1 1 calc(100% / 2);
}
ul.showcase.sm li {
  flex: 1 1 calc(100% / 2);
}
@media only screen and (min-width: 769px) {
  ul.showcase.md li {
    flex: 1 1 calc(100% / 3);
  }
  ul.showcase.lg li {
    flex: 1 1 calc(100% / 2);
  }
}
@media only screen and (min-width: 769px) {
  h3 {
    font-size: 7rem;
  }
  section#cases {
    padding: 85px 10px 20px 10px;
  }
  ul.showcase.sm li {
    flex: 1 1 calc(100% / 4);
  }
  p.category {
    font-size: 16px;
  }
}
div.wrap-credit {
  padding: 15px 5px 5px 5px;
  margin-bottom: 3em;
  height: 42px;
}
div.wrap-credit p.credit {
  font-size: 21px;
}
div.wrap-credit p.note {
  font-size: 12px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: bold;
  letter-spacing: 0;
  float: right;
}


/* Contact
--------------------------------------- */
section.contact {
  background: #9b59b6;
  animation: bg-color 12s;
  animation-iteration-count: infinite;
  padding: 50px 0;
}
@media only screen and (min-width: 769px) {
  section.contact {
    padding: 85px 0;
  }
}
@-webkit-keyframes bg-color {
  0% { background-color: #f35642; }
  33% { background-color: #3f4145; }
  66% { background-color: #002a83; }
  100% { background-color: #f35642; }
}
@keyframes bg-color {
  0% { background-color: #f35642; }
  33% { background-color: #3f4145; }
  66% { background-color: #002a83; }
  100% { background-color: #f35642; }
}
section.contact h3 {
  color: #FFF;
}
form {
  max-width: 630px;
  padding: 0 15px;
  margin: 0 auto;
}
input {
  font-size: 18px;
  height: 70px;
  width: 100%;
  padding-left: 1em;
  margin-bottom: 12px;
  border: 1px solid #FFF;
  background-color: transparent;
  color: #FFF;
}
textarea {
  font-size: 18px;
  height: 200px;
  padding-top: 25px;
  width: 100%;
  padding-left: 1em;
  margin-bottom: 12px;
  border: 1px solid #FFF;
  background-color: transparent;
  color: #FFF;
}
::-webkit-input-placeholder {
  font-size: 18px;
  line-height: 18px;
  font-family: BalboaPlus-Fill, sans-serif;
  color: #FFF;
}
:-ms-input-placeholder {
  font-family: BalboaPlus-Fill, sans-serif;
  font-size: 18px;
  top: -2px;
}
:-moz-placeholder {
  font-family: BalboaPlus-Fill, sans-serif;
  font-size: 18px;
  top: -2px;
}
::-moz-placeholder {
  font-family: BalboaPlus-Fill, sans-serif;
  font-size: 18px;
  top: -2px;
}
button {
  font-size: 16px;
  padding: 28px 0 20px 0;
  line-height: 16px;
  width: 80%;
  background-color: #FFF;
  color: #000;
  text-align: center;
  border: none;
  font-family: BalboaPlus-Fill, sans-serif;
  left: 50%;
  transform: translateX(-50%);
  position: relative;
  cursor: pointer;
}
button:hover {
  opacity: 0.8;
}

@media only screen and (min-width: 769px) {
  input {
    font-size: 22px;
    height: 90px;
    margin-bottom: 16px;
  }
  textarea {
    font-size: 22px;
    height: 230px;
    padding-top: 30px;
    margin-bottom: 20px;
  }
  ::-webkit-input-placeholder {
    font-size: 22px;
    line-height: 22px;
  }
  :-ms-input-placeholder {
    font-size: 22px;
  }
  :-moz-placeholder {
    font-size: 22px;
  }
  ::-moz-placeholder {
    font-size: 22px;
  }
  button {
    font-size: 20px;
    padding: 32px 0 24px 0;
  }
}






/* ================================================================
   Helper classes
   ================================================================ */
.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}
