/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #3f3f3f;
  font-size: 1em;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

h1, h2, h3 {
  font-family: 'Darker Grotesque', sans-serif;
  letter-spacing: 0.01em;
  font-weight: 600;
}

/*h1 {
  font-size: 4.5em;
  line-height: 0.95em;
  margin: 0.5em 0;
}*/

h1 {
  font-size: 3em;
  line-height: 1em;
  margin: 0.5em 0;
}

h1 span {
  color: #F15151;
}

h2 {
  font-size: 3em;
  text-align: center;
}

#work h2 {
  margin-top: 0em;
}

footer h2 {
  line-height: 0.875em;
  text-align: left;
  margin: 0;
}

h3 {
  font-size: 2.5em;
  line-height: 1.05em;
}

h3.project-title {
  color: #fff;
  margin: 0.2em 0 0.8em;
}

h4 {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 1.25em;
  line-height: 1.4em;
}

p {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 1em;
  line-height: 1.5em;
}

.text-brow, .section-brow {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  font-size: 0.875em;
}

.footnotes {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 0.75em;
}

.experience-title {
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  font-size: 1.25em;
  line-height: 1.25em;
}

.experience-subtitle {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 0.875em;
  line-height: 1em;
  letter-spacing: 0.01em;
  margin-top: 8px;
}

a:link, a:visited {
  color: #3f3f3f;
}

a:hover {
  color: #F15151;
}

a.button, .button-basic {
  padding: 0.7em 1em 0.8em;
  border-radius: 0.6em;
  border: 2px solid transparent;
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  transition: all 0.3s ease-out;
  text-decoration: none;
}

a.black-button {
  background-color: #000;
  color: #fff;
}

a:hover.black-button {
  background-color: transparent;
  border: 2px solid #3f3f3f;
  color: #3f3f3f;
}

.white-button {
  background-color: #fff;
  color: #3f3f3f;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.12);
  cursor: default;
}

.outline-button {
  background: transparent;
  color: #fff;
  font-size: 0.875em;
  cursor: default;
}

.card-3 .outline-button {
  border: solid 2px #066661;
}

.card-4 .outline-button {
  border: solid 2px #B77C26;
}

/** Nav **/

header {
  background: #F9F2EE;
  padding: 1.2em 1.5em;
}

nav {
  font-family: 'Darker Grotesque', sans-serif;
  font-weight: 600;
  font-size: 1.25em;
  letter-spacing: 0.02em;
  max-width: 1040px;
  margin: 0 auto;
  height: 3em;
}

nav a:link {
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0.3em 0.5em 0.4em;
  transition: all 0.3s ease-out;
}

nav a:hover, .nav-items li a:focus {
  border-radius: 8px;
  border: 2px solid #3f3f3f;
  color: #3f3f3f;
}

a:link.logo {
  padding: 0;
  border:none;
}

a:hover.logo {
  border: none;
}

.logo {
  width: 44px;
  height: 46px;
  background-image: url("../img/jc-logo.svg");
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
  vertical-align: top;
}

.nav-items {
  display: inline-block;
  margin: 0.4em 0;
  float:right;
}

.nav-items li {
  float: left;
  list-style: none;
  margin-left: 0.5em;
  padding: 0.3em 0 0.4em;
}

/** Hamburger **/
.menu-wrap {
  display: none;
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 1;
}

.menu-wrap .toggler {
  position: absolute;
  top:0;
  right: 0;
  z-index: 2;
  cursor: pointer;
  width: 40px;
  height: 40px;
  opacity: 0;
}

.menu-wrap .hamburger {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: 32px;
  height: 32px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-wrap .hamburger > div {
  position: relative;
  width: 100%;
  height: 2px;
  background-color: #3f3f3f;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.menu-wrap .hamburger > div::before,
.menu-wrap .hamburger > div::after {
  content: '';
  position: absolute;
  z-index: 1;
  top: -8px;
  width: 100%;
  height: 2px;
  background: inherit;
}

.menu-wrap .hamburger > div::after {
  top: 8px;
}

.menu-wrap .toggler:checked + .hamburger > div {
  transform: rotate(45deg);
}

.menu-wrap .toggler:checked + .hamburger > div:before,
.menu-wrap .toggler:checked + .hamburger > div:after {
  top: 0;
  transform: rotate(90deg);
}

.menu-wrap .toggler:checked ~ .mobileMenu {
  visibility: visible;
}

.menu-wrap .toggler:checked ~ .mobileMenu > div {
  transform: scale(1);
  transition-duration: 0.4s;
}

.menu-wrap .mobileMenu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-wrap .mobileMenu > div {
  background: #fff;
  border-radius: 50%;
  width: 300vh;
  height: 300vh;
  margin-left: 100vw;
  margin-top: -100vh;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: all 0.3s ease-out;
}

#about-page .menu-wrap .mobileMenu > div {
  background: #F9F2EE;
}

.menu-wrap .mobileMenu > div > ul {
  margin-left: -100vw;
  margin-top: 100vh;
  list-style: none;
  text-align: center;
  padding-left: 0;
}

.menu-wrap .toggler ~ .mobileMenu > div > ul {
  opacity: 0;
  transition: opacity 0s ease;
}

.menu-wrap .toggler:checked ~ .mobileMenu > div > ul {
  opacity: 1;
}

.menu-wrap .toggler:checked ~ .mobileMenu > div > ul > li {
  transform: translateY(0);
  opacity: 1;
}

.menu-wrap .mobileMenu > div > ul > li {
  padding: 0.5em 0;
  font-size: 1.5em;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
  transition-delay: 0.4s;
}

.menu-wrap .mobileMenu > div > ul > li:nth-child(1) {
  transition-delay: 0.5s;
}

.menu-wrap .mobileMenu > div > ul > li:nth-child(2) {
  transition-delay: 0.6s;
}

.menu-wrap .mobileMenu > div > ul > li:nth-child(3) {
  transition-delay: 0.7s;
}


/** Home Hero **/

#home-hero, #work, #about-hero, #resume, footer {
  width: auto;
  padding: 0px 1.5em;
}

#home-hero {
  height: 720px;
  background: #F9F2EE;
}

.content-wrapper {
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
}

.home-hero-text {
  display: inline-block;
  width: 49%;
  padding-top: 160px;
  vertical-align: top;
}

.home-hero-text h4 {
  max-width: 440px;
  margin-bottom: 2em;
}

.hero-portrait-wrapper {
  display: inline-block;
  width: 50%;
  height: 720px;
}

.home-portrait-bg {
  display: block;
  width: 100%;
  height: inherit;
  background-image: url("../img/portrait-bg.png");
  background-position: right 36%;
  background-repeat: no-repeat;
  background-size: 90% auto;
  vertical-align: top;
}

.home-portrait {
  display: block;
  width: 100%;
  height: inherit;
  background-image: url("../img/portrait-bw.png");
  background-position: 1.5em bottom;
  background-repeat: no-repeat;
  background-size: contain;
}

/** Work Section **/

#work {
  padding: 3.5em 24px 0em;
}

.project-cards {
  margin-top: 64px;
  display: grid;
  grid-gap: 80px;
  grid-template-columns: repeat(2, 1fr);
}

.project-card {
  /*max-width: 480px;*/
  /*height: 754px;*/
}

.card-2 {
  margin-top: 240px;
}

.card-3 {
  margin-top: -240px;
}

.card-image {
  height: 480px;
  border-radius: 1em 1em 0 0;
}

.card-text {
  padding: 40px 48px;
  border-radius: 0px 0px 1em 1em;
}

.card-1 .card-image {
  background: linear-gradient(180deg, #E8F9FF 0%, #FFE5D1 100%);
}

.card-1 .card-text {
  background: #BD4F00;
}

.card-2 .card-image {
  background: linear-gradient(180deg, #FFDFDF 0%, #DAE8FC 100%);
}

.card-2 .card-text {
  background: #3950A3;
}

.card-3 .card-image {
  background: linear-gradient(180deg, #E6D9EE 0%, #BCDBDB 100%);
}

.card-3 .card-text {
  background: #004945;
}

.card-4 .card-image {
  background: linear-gradient(180deg, #D1DAFC 0%, #FCEACF 100%);
}

.card-4 .card-text {
  background: #A46303;
}

.project-thumbnail {
  width: inherit;
  height: inherit;
  display: block;
  background-repeat: no-repeat;
  background-size: cover;
}

.card-1 .project-thumbnail {
  background-image: url("../img/thumbnails/tangerine.png");
}

.card-2 .project-thumbnail {
  background-image: url("../img/thumbnails/navis.png");
  background-position: center center;
}

.card-3 .project-thumbnail {
  background-image: url("../img/thumbnails/diabetes.png");
}

.card-4 .project-thumbnail {
  background-image: url("../img/thumbnails/ar.png");
  background-position: center center;
}

/** Footer Styles **/

footer {
  background: #F6F6F6;
  padding: 4em 24px 4em;
  margin-top: 7em;
}

footer .logo, footer h2 {
  display: inline-block;
}

footer .logo {
  margin-right: 1.5em;
  margin-top: 12px;
}

footer .content-wrapper {
  display: grid;
  grid-gap: 80px;
  grid-template-columns: repeat(2, 1fr);
}

footer p {
  max-width: 360px;
}

/** About Styles **/

#about-page header {
  background: #fff;
}

#about-hero {
  height: auto;
}

#about-hero .content-wrapper {
  display: grid;
  grid-template-columns: auto 60%;
  grid-gap: 80px;
  background-image: url("../img/about-bg.png");
  background-size: 45% auto;
  background-position: top 15% left;
  background-repeat: no-repeat;
}

#about-hero .home-hero-text, .home-hero-text h4 {
  width: 100%;
  max-width: 100%;
}

#about-hero .home-hero-text {
  padding-top: 120px;
}

#resume {
  padding-top: 3em;
}

#resume .content-wrapper {
  display: grid;
  grid-template-columns: auto 60%;
  grid-column-gap: 80px;
  grid-row-gap: 56px;
  grid-template-rows: repeat(3, auto);
}

.section-brow {
  text-align: right;
  color: #232093;
}

.experience-wrapper {
  margin-bottom: 2em;
}

.logo-lockup {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 48px 48px;
  grid-column-gap: 8px;
  grid-row-gap: 32px;
}

.logo-container {
  background-repeat: no-repeat;
  background-size: 80% auto;
}

.msft {
  background-image: url("../img/logos/msft.png");
  background-position: left top;
}

.tang {
  background-image: url("../img/logos/tang.png");
  background-position: center top;
}

.bmgf {
  background-image: url("../img/logos/bmgf.png");
  background-position: right top;
}

.fb {
  background-image: url("../img/logos/fb.png");
  background-position: left top;
}

.lilly {
  background-image: url("../img/logos/lilly.png");
  background-position: center top;
  background-size: auto 100%;
}



@media only screen and (max-width: 1024px) {
  body {font-size:90%;}

  #home-hero {
    height: 560px;
  }

  #hero {
    height: 560px;
  }

  .home-hero-text {
    padding-top: 120px;
    padding-bottom: 4em;
  }

  .home-portrait-bg {
    background-position: right 56%;
    background-size: 90% auto;
  }

  .card-image {
    height: 400px;
    border-radius: 1em 1em 0 0;
  }

  .card-text {
    padding: 2.5em;
  }

  .project-cards {
    margin-top: 2em;
    grid-gap: 2em;
    grid-template-columns: repeat(2, 1fr);
  }

  .card-2 {
    margin-top: 200px;
  }

  .card-3 {
    margin-top: -200px;
  }

  .lilly {
    background-size: auto 75%;
  }

  footer {
    margin-top: 6em;
  }

}

@media only screen and (max-width: 768px) {
  /* Style adjustments for viewports that meet the condition */
  .nav-items {
    display: none;
  }

  .menu-wrap {
    display: block;
  }

  #mobileMenu {
    display: block;
  }

  #hero {
    display: none;
    position: relative;
  }

  #home-hero {
    height: auto;
    padding-bottom: 5em;
    background-image: url("../img/portrait-bg-small.png");
    background-size: 70% auto;
    background-repeat: no-repeat;
    background-position: top right -40%;
  }

  .home-hero-text {
    width: 80%;
  }

  .project-cards {
    margin-top: 2em;
    grid-gap: 2em;
    grid-template-columns: repeat(1, 1fr);
  }

  .card-1 .project-thumbnail {
    background-position: top center;
  }

  .card-2 .project-thumbnail {
    background-position: top center;
  }

  .card-3 .project-thumbnail {
    background-position: top left;
  }

  .card-4 .project-thumbnail {
    background-position: center center;
    background-size: contain;
  }

  .card-2 {
    margin-top: 0px;
  }

  .card-3 {
    margin-top: 0px;
  }

  #about-hero .content-wrapper {
    grid-template-columns: auto 70%;
    grid-gap: 2em;
    background-size: 60% auto;
    background-position: top 15% left;
    background-repeat: no-repeat;
  }

  #about-hero .home-hero-text {
    padding-bottom: 0;
  }

  #resume .content-wrapper {
    display: grid;
    grid-template-columns: auto 70%;
    grid-column-gap: 2em;
    grid-row-gap: 3em;
  }

  footer {
    margin-top: 4em;
  }

  footer .content-wrapper {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(1, 1fr);
  }

  footer .logo, footer h2 {
    display: block;
  }

  footer h2 {
    margin-top: 0.3em;
  }

}

@media only screen and (max-width: 480px) {
  body {font-size:80%;}

  #mobile-bg {
    background-size: 70% auto;
    background-position: top right -45%;
  }

  .home-hero-text {
    width: 90%;
    padding-top: 7em;
  }

  h1 span {
    color: #3f3f3f;
  }

  .card-1 .project-thumbnail {
    background-position: center left;
  }

  #about-hero .home-hero-text {
    padding-top: 60px;
  }

  #about-hero {
    background-image: url("../img/about-bg.png");
    background-size: 70% auto;
    background-position: top right -40%;
    background-repeat: no-repeat;
  }

  #about-hero .content-wrapper {
    grid-template-columns: 100%;
    grid-gap: 0em;
    background-image: none;
  }

  #resume .content-wrapper {
    display: grid;
    grid-template-columns: 100%;
    grid-column-gap: 0em;
    grid-row-gap: 3em;
  }

  .logo-lockup {
    grid-row-gap: 0em;
  }

  .lilly {
    background-size: auto 65%;
  }

  .section-brow {
    text-align: left;
  }
}
/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
