/* START RESET */
html, body, div, section, article, header, footer, figure, span, h1, h2, h3, h4, h5, h6, p, br, table, th, tr, td, img, code, dl, dt, dd, ol, ul, li, fieldset, form, label {
    margin: 0;
    border: 0;
    padding: 0;
    font-size: 100%;
    font-weight: normal;
  }
  html {
    background: white;
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
  }
  
  body {
    min-height: 100vh;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    /* font-family: 'Open Sans', sans-serif; */
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
    background-color: white;
    color: black;
    fill: black;
  }
  * {
    color: inherit;
    fill: inherit;
  }
  *, *:before, *:after {
    box-sizing: border-box;
  }
  img, svg {
    display: block;
    width: 100%;
    height: auto;
  }
  h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
  }
  .hidden {
    visibility: hidden;
  }
  .theme-light {
    background: white;
    color: black;
  }
  .theme-dark {
    background: black;
    color: white;
  }
  .theme-dark.grey {
    background: #222;
  }
  /* END RESET */
  h1 {
    font-weight: bold;
    font-size: 24px;
    line-height: 32px;
  }
  h2 {
    font-size: 48px;
    line-height: 56px;
  }
  h2 span {
    display: inline-block;
    position: relative;
  }
  h3 {
    font-size: 18px;
    line-height: 24px;
    /* font-weight: 700; */
  }
  hr {
    margin: 24px 0 !important;
  }
  ul li {
    margin-left: 24px;
  }
  a {
    font-weight: bold;
    text-decoration: none;
  }
  .container {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
  }
  #resume .container {
    position: relative;
  }
  #resume .container:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    border-top: dashed 1px white;
  }
  main .container {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  #experience .container {
    /* padding-top: 0; */
  }
  .experience-footer {
    margin-top: 24px;
    border-top: 1px dashed white;
    padding-top: 24px;
  }
  nav {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    flex-wrap: nowrap;
    color: black;
    background: white;
    /* transform: translateY(-100%);
    transition: all 300ms ease-in-out; */
  }
  .menu-visible nav {
    transform: translateY(0);
  }
  nav .container {
    display: flex;
    flex-flow: row wrap;
    width: 100%;
    padding-top: 0;
    padding-bottom: 0;
  }
  .logo {
    display: flex;
  }
  .logo h1 {
    display: block;
    align-self: center;
  }
  .logo h1 span {
    display: block;
    float: left;
    font-weight: 700;
    font-size: 14px;
    line-height: 24px;
    margin-right: 4px;
  }
  .logo h1.logo-bordered > span {
    display: block;
    float: left;
    padding: 4px 8px;
    border: solid 2px black;
  }
  .logo .blackOnWhite {
    color: black;
  }
  .logo .whiteOnBlack {
    color: white;
    background: black;
  }
  .logo .hide {
    display: none;
  }
  .ic-white {
    display: block;
    width: 24px;
    height: 24px;
    background: white;
    border: black solid 4px;
  }
  nav .menu {
    display: none;
    list-style: none;
    flex-flow: row wrap;
    justify-content: flex-end;
    margin-left: auto;
    /* margin-right: -8px; */
  }
  nav .menu li {
    list-style: none;
    margin: 0;
  }
  nav .menu li a {
    display: block;
    position: relative;
    padding: 24px 8px;
    font-size: 12px;
    line-height: 16px;
    transition: all 300ms ease-out;
  }
  nav .menu li a:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 4px;
    background-color: black;
    opacity: 0;
    transition: all 300ms ease-in-out;
    transition-delay: 0.3s;
  }
  nav .menu li a.active,
  nav .menu li a.active:hover {
    opacity: 1;
    cursor: default;
  }
  nav .menu li a.active:before {
    /* background-color: magenta; */
    width: 100%;
    opacity: 1;
  }
  .social {
    font-size: 0;
  }
  nav .social {
    display: none;
    margin-left: 8px;
  }
  footer {
    position: relative;
    z-index: 100;
  }
  footer .social {
    margin-left: -12px;
  }
  .social:after {
    content: '';
    display: table;
    clear: both;
  }
  .social li {
    display: block;
    float: left;
    margin-left: auto;
  }
  .social li + li {
    margin-left: 16px;
  }
  .social li a {
    display: block;
    width: 48px;
    height: 48px;
    background-size: 24px;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 300ms ease-out;
  }
  nav .social li a {
    width: 32px;
    height: 64px;
    background-size: 16px;
  }
  .social li a:hover {
    transform: scale(1.1);
  }
  .social .twitter {
    background-image: url(../images/social-twitter-white.svg);
  }
  .social .linkedin {
    background-image: url(../images/social-linkedin-white.svg);
  }
  .social .behance {
    background-image: url(../images/social-behance-white.svg);
  }
  .social .dribbble {
    background-image: url(../images/social-dribbble-white.svg);
  }
  .social .github {
    background-image: url(../images/social-github-white.svg);
  }
  .social .email {
    background-image: url(../images/social-email-white.svg);
  }
  .social .twitter-black {
    background-image: url(../images/social-twitter-black.svg);
  }
  .social .linkedin-black {
    background-image: url(../images/social-linkedin-black.svg);
  }
  .social .behance-black {
    background-image: url(../images/social-behance-black.svg);
  }
  .social .dribbble-black {
    background-image: url(../images/social-dribbble-black.svg);
  }
  .social .github-black {
    background-image: url(../images/social-github-black.svg);
  }
  .social .email-black {
    background-image: url(../images/social-email-black.svg);
  }
  .social svg {
    width: 24px;
    height: 24px;
  }
  .btn,
  .btn-linkedin {
    display: inline-block;
    background: black;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    line-height: 0;
  }
  .theme-dark .btn,
  .theme-dark.grey .btn {
    background: white;
    color: black;
  }
  .btn-linkedin:before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    margin: 0 4px 0 0;
    padding: 0;
    background-image: url(../images/social-linkedin-white.svg);
    background-size: 16px;
    background-position: center;
    background-repeat: no-repeat;
  }
  .theme-dark .btn-linkedin {
    background: white;
    color: black;
  }
  .theme-dark .btn-linkedin:before {
    background-image: url(../images/social-linkedin-black.svg);
  }
  .btn-outline {
    display: inline-block;
    vertical-align: middle;
    line-height: 20px;
    font-weight: bold;
    padding: 16px 48px;
    border: solid 1px white;
  }
  .btn-label {
    display: inline-block;
    vertical-align: middle;
    line-height: 20px;
    font-weight: bold;
  }
  .hero {
    display: flex;
    flex-wrap: row wrap;
    position: relative;
    z-index: -1;
    width: 100%;
    color: black;
    min-height: 90vh;
    padding: 0;
    overflow: hidden;
  }
  .splash {
    display: flex;
    flex-wrap: row wrap;
    position: relative;
    width: 100%;
    min-height: 100vh;
  }
  header {
    display: flex;
    flex: 0 0 100%;
    align-self: center;
    background: black;
    color: white;
    height: 100vh;
    width: 100%;
    position: relative;
  }
  header h1 {
    display: flex;
    align-self: center;
    font-size: 192px;
    line-height: 100%;
    font-weight: 900;
  }
  header h1:before {
    content: '';
    display: inline-block;
    vertical-align: bottom;
    width: 144px;
    height: 144px;
    background: white;
    margin-right: 16px;
  }
  /* header:before { */
  .animated-bg {
    display: block;
    position: fixed;
    z-index: -1;
    bottom: 0;
    left: 0;
    height: 50vh;
    /* width: calc(60vh * 60%); */
    width: auto;
    aspect-ratio: 3/5;
    transition: all 600ms ease-out;
    mix-blend-mode: multiply;
    visibility: hidden;
    opacity: 0;
  }
  .hero.active .animated-bg {
    visibility: visible;
    opacity: 1;
  }
  .animated-bg video,
  .animated-bg .video {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 800px;
    transition: all 300ms ease-in-out;
    visibility: hidden;
    opacity: 0;
  }
  /* header:after {
    background-image: url(../images/brett-white-pixels.jpg);
    opacity: 0;
  }
  @keyframes pixelate {
    0% {opacity: 0;}
    20% {opacity: 0;}
    40% {opacity: 1;}
    80% {opacity: 1;}
    100% {opacity: 0;}
  }
  header:after {
    animation-name: pixelate;
    animation-duration: 4s;
    animation-iteration-count: infinite;
  } */
  .hero .container {
    display: flex;
    margin-top: 0;
    flex: 0 0 100%;
    min-height: 100vh;
    /* margin-top: 64px; */
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .hero .container:after {
    content: '';
    display: table;
    clear: both;
  }
  .hero .bio > * + * {
    margin-top: 24px;
  }
  h1.title-xl {
    font-size: 56px;
    line-height: 110%;
  }
  .hero .bio h1 span {
    display: inline-block;
    position: relative;
  }
  .hero .bio p {
    font-size: 20px;
    line-height: 32px;
  }
  section {
    width: 100%;
  }
  /* .cv {
    margin: 48px auto 0;
  } */
  .cv h1 {
    font-weight: bold;
  }
  .cv h2 {
    font-size: 20px;
    line-height: 32px;
    font-weight: normal;
  }
  .roles > li {
    display: block;
    list-style: none;
    margin-left: 0;
    border-top: dashed 1px white;
    padding-top: 24px;
  }
  .roles > li:first-child {
    margin-top: 0 !important;
  }
  .roles .thumb {
    width: 100%;
    height: auto;
    margin: 0 auto;
  }
  .roles > li h1 {
    font-weight: bold;
  }
  .roles > li h1 a {
    transition: opacity 300ms ease-in-out;
  }
  .roles > li h1 a:hover {
    opacity: 0.5;
  }
  .roles > li h1 {
    font-size: 20px;
  }
  .roles > li h3 {
    font-weight: bold;
    font-size: 16px;
  }
  .roles > li p a {
    font-weight: bold;
  }
  .roles > li .flex-row {
    display: flex;
    flex-wrap: wrap;
  }
  .roles > li figure {
    flex: 0 0 12%;
    position: relative;
  }
  .roles > li figure .thumb {
    border-width: 2px;
  }
  .roles > li article {
    flex: 0 0 88%;
    padding-left: 24px;
  }
  .roles > li + li {
    margin-top: 24px;
  }
  .roles > li ul {
    margin-top: 24px;
  }
  .roles > li ul > li {
    list-style-type: none;
    margin-top: 16px;
    margin-left: 0;
    padding-left: 24px;
    position: relative;
  }
  .roles > li h3 {
    font-weight: bold;
  }
  .roles > li article > * + * {
    margin-top: 0;
  }
  .roles > li.sub-role {
    border-top: none;
    margin-top: 0;
    padding-top: 16px;
  }
  .roles > li.parent.sub-role {
    padding-top: 24px;
  }
  .roles > li.sub-role figure:before {
    content: '';
    display: block;
    position: absolute;
    top: 16px;
    bottom: -16px;
    left: 50%;
    border-left: solid 1px white;
  }
  .roles > li.sub-role.last-child figure:before,
  .roles > li.sub-role.sub-contract.last-child figure:before {
    content: '';
    display: none;
  }
  .roles > li.sub-role.sub-contract figure:before {
    border-left: solid 1px white;
  }
  .roles > li.sub-role.parent {
    border-top: dashed 1px white;
    margin-top: 24px;
  }
  .roles > li.sub-role figure:after {
    content: '';
    display: block;
    position: absolute;
    top: 8px;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 4px;
    transform: translateX(-4px);
    background-color: white;
  }
  .roles > li.sub-role.parent figure:after,
  .roles > li.sub-role.sub-contract figure:after {
    display: none;
  }
  .roles > li.latest-role {
    border-top: none;
  }
  article > * {
    display: block;
  }
  article:after {
    content: '';
    display: table;
    clear: both;
  }
  article > * + * {
    margin-top: 16px;
  }
  main {
    position: relative;
    z-index: 100;
    background: white;
  }
  main .col article h1 {
    font-size: 20px;
    font-weight: bold;
  }
  .sidebar h1 {
    font-weight: bold;
    text-transform: capitalize;
    margin-bottom: 24px;
  }
  .sidebar p {
    margin-bottom: 24px;
  }
  .invert {
    background: black;
  }
  .invert * {
    color: lightgray;
    fill: white;
  }
  #intro p {
    font-size: 36px;
    line-height: 56px;
  }
  #skills {
    background: #eee;
  }
  footer .container {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .button {
    display: inline-block;
    font-size: 16px;
    line-height: 24px;
    padding: 16px 64px;
    color: white;
    text-decoration: none;
    border: solid 2px white;
  }
  .copyright {
    margin-top: 24px;
    font-size: 12px;
  }
  .listing {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -16px;
  }
  .listing li {
    flex: 0 0 50%;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .listing article {
    margin: 0;
    padding: 16px;
  }
  .listing article * + * {
    margin: 0;
    line-height: 100%;
    margin-top: 8px;
  }
  .listing .title {
    font-size: 16px;
    line-height: 20px;
    font-weight: bold;
    margin-top: 16px;
  }
  .listing .author {
    font-size: 14px;
    font-weight: normal;
  }
  .listing.press li {
    flex: 0 0 100%;
    padding: 16px;
  }
  .listing.press article {
    padding: 0;
  }
  .thumb {
    filter: saturate(0);
    transition: all 0.5s ease-out;
    border-radius: 8px;
    border: solid 8px white;
    box-shadow: 0px 8px 24px rgba(0,0,0,0.2);
    opacity: 0;
  }
  .thumb:hover {
    filter: saturate(1);
    box-shadow: 0px 16px 32px rgba(0,0,0,0.2);
    cursor: pointer;
  }
  .thumb img {
    width: 100%;
    height: auto;
  }
  .thumb.lazyloaded {
    opacity: 1;
  }
  .media {
    display: block;
    position: relative;
    padding-bottom: 56.25%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .media iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  ul.awards.listing {
    border: none;
    padding: 0;
    margin-top: 8px;
  }
  .listing.awards li {
    flex: 0 0 33%;
    border: none;
    padding: 0;
    margin: 0;
  }
  .listing.awards li:before,
  .listing.awards li:after {
    display: none;
  }
  .awards {
    margin: 0;
  }
  .awards li article {
    padding: 0;
    position: relative;
    /* border-left: solid 1px white; */
    margin-top: 8px;
    margin-right: 16px;
  }
  .award {
    transition: all 0.5s ease-in-out;
    opacity: 0;
  }
  .award.lazyloaded {
    opacity: 1;
  }
  /* .awards li article:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 16px;
    width: 2px;
    background: white;
  } */
  .sketches {
    display: block;
    position: absolute;
    width: 240px;
    height: 400px;
    bottom: 32%;
    left: 40%;
    visibility: hidden;
    opacity: 0;
    z-index: 1;
    transition: all 300ms ease-in-out;
  }
  .sketch {
    position: absolute;
    height: auto;
    transform: scale(0.75);
    transition: all 300ms ease-out;
  }
  .sketch.pop {
    width: 48px;
    top: 0;
    left: 80px;
  }
  .sketch.lightbulb {
    width: 64px;
    top: 0;
    left: 0;
  }
  .sketch.pencil {
    width: 88px;
    left: 40px;
    top: 64px;
  }
  .sketch.laptop {
    width: 112px;
    top: 160px;
    left: 16px;
  }
  .sketch.coffee {
    width: 64px;
    top: 72px;
    left: 132px;
  }
  .sketch.kindle {
    width: 56px;
    top: 240px;
    left: 112px;
  }
  .sketch.transform {
    width: 104px;
    bottom: 0;
    left: 0;
  }
  .sketch.squiggle {
    width: 48px;
  }
  .content.bio {
    align-self: center;
    flex: 0 0 70%;
    /* max-width: 480px; */
    margin-left: auto;
    text-align: right;
  }

  @media only screen and (min-width: 320px) {
    .container {
      padding-left: 24px;
      padding-right: 24px;
    }
    .content.bio {
      flex: 0 0 80%;
    }
    nav .menu {
      display: flex;
    }
    .animated-bg video,
    .animated-bg .video {
      visibility: visible;
      opacity: 1;
    }
  }

  @media only screen and (min-width: 400px) {
    .container {
      padding: 80px 24px;
    }
    .hero {
      padding: 0;
    }
    .hero .container {
      display: flex;
      margin-top: 0;
      flex: 0 0 100%;
      min-height: auto;
    }
    .content.bio {
      flex: 0 0 70%;
    }
    nav .menu li a {
      font-size: 14px;
    }
  }


  @media only screen and (min-width: 400px) and (min-height: 720px) {
    .hero .container {
      min-height: 100vh;
      margin-top: 0;
      padding-top: 80px;
      padding-bottom: 80px;
    }
  }

  @media only screen and (min-width: 580px) {
    .container {
      max-width: 1200px;
      padding: 120px 48px;
    }
    nav .social {
      display: flex;
    }
    /* header .container {
      margin-top: 80px;
    } */
  }

  @media only screen and (min-width: 800px) {
    main .container {
      padding-top: 80px;
      padding-bottom: 80px;
    }
    .hero {
      min-height: 100vh;
    }
    .logo h1 span {
      font-size: 24px;
      /* line-height: 32px; */
      text-align: left;
      min-width: auto;
    }
    .logo .hide {
      display: block;
      /* float: right; */
    }
    nav .container {
      padding: 0 48px;
    }
    nav .menu li a {
      padding: 32px 16px;
      margin-left: 0;
    }
    nav .menu li a:hover {
      opacity: 0.5;
    }
    nav .social {
      margin-left: 16px;
    }
    .social li a,
    nav .social li a {
      width: 48px;
      height: 80px;
      background-size: 20px;
    }
    .theme-light {
      background: white;
    }
    .theme-dark {
      background: black;
    }
    .thumb:hover {
      transform: scale(1.1);
    }
    .flex-row {
      display: flex;
      flex-wrap: wrap;
    }
    .sidebar {
      flex: 0 0 30%;
      padding: 0 24px 0 0;
    }
    .content { 
      flex: 0 0 70%;
    }
    .cv {
      margin-top: 0;
    }
    .flex-align-right {
      margin-left: auto;
    }
    .flex-align-left {
      margin-right: auto;
    }
    .flex-align-center {
      margin: auto;
      flex: 0 0 100%;
      align-self: center;
      text-align: center;
    }
    .listing li {
      flex: 0 0 33%;
    }
    .listing.press li {
      flex: 0 0 50%;
    }
    .listing.awards li {
      flex: 0 0 25%;
    }
    .roles > li figure {
      flex: 0 0 8%;
    }
    .roles > li article {
      flex: 0 0 92%;
    }
    .roles > li.latest-role {
      border-top: dashed 1px white;
    }
    .connect .container {
      min-height: 40vh;
    }
    .connect article {
      align-self: center;
    }
  }

  @media only screen and (min-width: 880px) and (min-height: 720px) {
    .listing li {
      flex: 0 0 25%;
    }
    .listing.awards li {
      flex: 0 0 20%;
    }
    .content.bio {
      text-align: left;
      margin-left: 30%;
    }
    .animated-bg {
      height: 80vh;
    }
    h1.title-xl {
      font-size: 72px;
    }
  }

  @media only screen and (min-width: 1240px) and (min-height: 720px) {
    .sketches {
      visibility: visible;
      opacity: 1;
    }
    h1.title-xl {
      font-size: 96px;
    }
  }

  /* @media only screen and (min-width: 1024px) {
    .sketches {
      position: fixed;
    }
  } */