:root {
  --brand: #425BB5;
  --brand-dark: #35499c;
  --ink: #2d2f36;
  --muted: #6b7078;
  --line: #e5e8f0;
  --bg-soft: #f6f7fb;
  --white: #ffffff;
  --font-text: 'Neue Haas Grotesk Text', 'Open Sans', sans-serif;
  --font-display: 'Neue Haas Grotesk Display', 'Playfair Display', serif;
  --reveal-duration: .7s;
  --reveal-ease: cubic-bezier(.22, 1, .36, 1);
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

h1 {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 56px;
}

h4 {
  font-family: var(--font-text);
  text-transform: capitalize;
  letter-spacing: 2px;
  position: relative;
  color: var(--brand);
  margin-left: 40px;
  font-weight: 700;
}

h4:before {
  position: absolute;
  width: 30px;
  left: -40px;
  content: "";
  display: block;
  height: 2px;
  background: var(--brand);
  top: 9px;
}

body {
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 26px;
  color: var(--ink);
}

.size-50 {
  font-size: 44px;
  line-height: 48px;
}

.h-50 {
  height: 40px;
}

a {
  color: var(--brand);
  -webkit-transition: color .2s ease;
  transition: color .2s ease;
}

a:hover {
  color: var(--brand-dark);
  text-decoration: none;
}

a:focus {
  color: var(--brand-dark);
  text-decoration: none;
}

/* ============ Preloader ============ */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
  z-index: 10000;
}

#status,
.preloader {
  top: 50%;
  left: 50%;
  position: absolute;
}

#status {
  width: 100px;
  height: 100px;
  margin: -50px 0 0 -50px;
}

.preloader {
  height: 40px;
  width: 40px;
  margin-top: -20px;
  margin-left: -20px;
}

.preloader:before {
  content: "";
  display: block;
  position: absolute;
  left: -1px;
  top: -1px;
  height: 100%;
  width: 100%;
  -webkit-animation: rotation 1s linear infinite;
  animation: rotation 1s linear infinite;
  border: 2px solid var(--brand);
  border-top: 2px solid transparent;
  border-radius: 100%;
}

@media only screen and (min-width:768px) {
  .preloader {
    height: 60px;
    width: 60px;
    margin-top: -30px;
    margin-left: -30px;
  }
  .preloader:before {
    left: -2px;
    top: -2px;
    border-width: 2px;
  }
}

@-webkit-keyframes rotation {
  from {
    -webkit-transform: rotate(0);
    transform: rotate(0);
  }
  to {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}

@keyframes rotation {
  from {
    -webkit-transform: rotate(0);
    transform: rotate(0);
  }
  to {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}

/* ============ Navigation ============ */

header {
  text-align: center;
  -webkit-transition: all .5s;
  transition: all .5s;
  height: 65px;
  z-index: 100;
}

nav ul {
  display: inline-block;
  padding-left: 0;
  list-style: none;
  padding: 20px;
  margin-bottom: 0;
  -webkit-transition: all .5s;
  transition: all .5s;
}

nav li {
  display: inline-block;
  margin: 10px;
}

nav li a {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #444;
  font-size: 11px;
  font-weight: bold;
}

nav li a:hover,
nav li a.active {
  color: var(--brand);
}

.nav-toggle {
  display: none;
}

.bg-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 8px rgba(66, 91, 181, .06);
}

.bg-nav ul {
  padding: 10px;
}

/* ============ Sections ============ */

.section {
  padding: 90px 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-head {
  margin-bottom: 8px;
}

/* ============ Back to top ============ */

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 24px;
  line-height: 46px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(66, 91, 181, .28);
  opacity: 0;
  visibility: hidden;
  -webkit-transform: translateY(10px);
  transform: translateY(10px);
  -webkit-transition: opacity .3s var(--reveal-ease), visibility .3s var(--reveal-ease), -webkit-transform .3s var(--reveal-ease);
  transition: opacity .3s var(--reveal-ease), visibility .3s var(--reveal-ease), -webkit-transform .3s var(--reveal-ease);
  transition: opacity .3s var(--reveal-ease), visibility .3s var(--reveal-ease), transform .3s var(--reveal-ease);
  transition: opacity .3s var(--reveal-ease), visibility .3s var(--reveal-ease), transform .3s var(--reveal-ease), -webkit-transform .3s var(--reveal-ease);
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  -webkit-transform: none;
  transform: none;
}

.to-top:hover {
  background: var(--brand-dark);
  box-shadow: 0 10px 24px rgba(66, 91, 181, .34);
}

/* ============ Reveal-on-scroll animations ============ */

[data-reveal] {
  opacity: 0;
  will-change: transform, opacity;
  -webkit-transition: opacity var(--reveal-duration) var(--reveal-ease),
    -webkit-transform var(--reveal-duration) var(--reveal-ease);
  transition: opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease);
  -webkit-transition-delay: var(--reveal-delay, 0ms);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal="fade-up"] {
  -webkit-transform: translateY(30px);
  transform: translateY(30px);
}

[data-reveal="fade-left"] {
  -webkit-transform: translateX(-32px);
  transform: translateX(-32px);
}

[data-reveal="fade-right"] {
  -webkit-transform: translateX(32px);
  transform: translateX(32px);
}

[data-reveal="zoom-in"] {
  -webkit-transform: scale(.96);
  transform: scale(.96);
}

[data-reveal].is-revealed {
  opacity: 1;
  -webkit-transform: none;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
    -webkit-transition: none;
    transition: none;
  }
  .home-video {
    display: none;
  }
}

/* ============ Hero ============ */

#home {
  position: relative;
  overflow: hidden;
  background:
    -webkit-linear-gradient(rgba(255, 255, 255, .88), rgba(255, 255, 255, .88)),
    url(../img/background_home.jpg) center/cover no-repeat;
  background:
    linear-gradient(rgba(255, 255, 255, .88), rgba(255, 255, 255, .88)),
    url(../img/background_home.jpg) center/cover no-repeat;
  min-height: 100vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.home-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  z-index: 0;
}

#home::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: -webkit-linear-gradient(rgba(255, 255, 255, .88), rgba(255, 255, 255, .88));
  background: linear-gradient(rgba(255, 255, 255, .88), rgba(255, 255, 255, .88));
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 58%;
  flex: 1 1 58%;
}

.hero-eyebrow {
  margin: 0 0 14px 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: none;
}

.hero-eyebrow:before {
  display: none;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 52px;
  line-height: 58px;
  margin: 0 0 18px 0;
  color: var(--ink);
}

.hero-tagline {
  color: var(--muted);
  font-size: 17px;
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-ctas {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 12px;
}

.cta {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid var(--brand);
  border-radius: 4px;
  color: var(--brand);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .5px;
  background: transparent;
  -webkit-transition: all .25s ease;
  transition: all .25s ease;
}

.cta:hover {
  background: var(--brand);
  color: #fff;
}

.cta-primary {
  background: var(--brand);
  color: #fff;
}

.cta-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.hero-photo {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 300px;
  flex: 0 0 300px;
}

#profilepic {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(66, 91, 181, .18);
}

/* ============ About ============ */

.about-content {
  max-width: 780px;
  color: var(--ink);
}

.about-content p {
  margin-bottom: 16px;
  color: #3f434c;
}

.about-content strong {
  color: var(--brand);
}

.about-themes {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  max-width: 780px;
}

.about-themes span {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #3f434c;
  -webkit-transition: border-color .25s var(--reveal-ease), color .25s var(--reveal-ease), background-color .25s var(--reveal-ease);
  transition: border-color .25s var(--reveal-ease), color .25s var(--reveal-ease), background-color .25s var(--reveal-ease);
}

.about-themes span:hover {
  border-color: var(--brand);
  color: var(--brand);
  background-color: rgba(66, 91, 181, .05);
}

/* ============ Timeline (Experience / Education) ============ */

.timeline {
  padding-left: 0;
  list-style: none;
  position: relative;
}

.timeline:before {
  background-color: #c8cde0;
  content: '';
  margin-left: -1px;
  position: absolute;
  top: 0;
  left: 2em;
  width: 2px;
  height: 100%;
}

.timeline-event {
  position: relative;
}

.timeline-event:hover .timeline-event-icon {
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  background-color: var(--brand);
}

.timeline-event:hover .timeline-event-thumbnail {
  box-shadow: inset 40em 0 0 0 var(--brand);
}

.timeline-event-copy {
  padding: 1.4em 2em 2em 2em;
  position: relative;
  top: -1.875em;
  left: 4em;
  width: calc(100% - 4em);
}

.timeline-event-copy h3 {
  font-family: var(--font-display);
  font-size: 1.6em;
  font-weight: 700;
  margin: 0 0 2px 0;
}

.timeline-event-copy h4 {
  font-size: 1.05em;
  margin: 0 0 8px 0;
  color: var(--muted);
  text-transform: none;
  letter-spacing: .5px;
}

.timeline-event-copy h4:before {
  display: none;
}

.timeline-event-copy strong {
  font-weight: 700;
}

.timeline-event-copy p:not(.timeline-event-thumbnail) {
  padding-bottom: .8em;
}

.timeline-event-location {
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}

.exp-project {
  margin-top: 8px;
}

.exp-project strong {
  color: var(--brand);
}

.exp-bullets {
  padding-left: 18px;
  color: #3f434c;
}

.exp-bullets li {
  margin-bottom: 8px;
}

.timeline-event-icon {
  -webkit-transition: -webkit-transform .3s var(--reveal-ease);
  transition: -webkit-transform .3s var(--reveal-ease);
  transition: transform .3s var(--reveal-ease);
  transition: transform .3s var(--reveal-ease), -webkit-transform .3s var(--reveal-ease);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  background-color: var(--brand);
  outline: 10px solid var(--bg-soft);
  display: block;
  margin: 0.5em 0.5em 0.5em -0.5em;
  position: absolute;
  top: 0;
  left: 2em;
  width: 1em;
  height: 1em;
}

.timeline-event-thumbnail {
  -webkit-transition: box-shadow 0.5s ease-in 0.1s;
  transition: box-shadow 0.5s ease-in 0.1s;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  background-color: #2b2f3a;
  box-shadow: inset 0 0 0 0 var(--brand);
  display: inline-block;
  margin-bottom: 1em;
  padding: 0.3em 1em 0.25em 1em;
}

/* ============ Projects ============ */

.projects-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-transition: -webkit-transform .3s var(--reveal-ease), box-shadow .3s var(--reveal-ease), border-color .3s var(--reveal-ease);
  transition: -webkit-transform .3s var(--reveal-ease), box-shadow .3s var(--reveal-ease), border-color .3s var(--reveal-ease);
  transition: transform .3s var(--reveal-ease), box-shadow .3s var(--reveal-ease), border-color .3s var(--reveal-ease);
  transition: transform .3s var(--reveal-ease), box-shadow .3s var(--reveal-ease), border-color .3s var(--reveal-ease), -webkit-transform .3s var(--reveal-ease);
}

.project-card:hover {
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
  border-color: #ccd4e9;
  box-shadow: 0 14px 32px rgba(66, 91, 181, .09);
}

.project-head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.project-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin: 0;
  color: var(--ink);
}

.status-badge {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid;
}

.status-in-development {
  color: #9a6a00;
  background: #fff7e0;
  border-color: #f0d894;
}

.status-academic {
  color: #4b5563;
  background: #eef1f6;
  border-color: #d5dbe6;
}

.project-desc {
  color: #3f434c;
  margin: 0 0 14px 0;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
}

.project-highlight {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  margin: -6px 0 14px 0;
}

.project-tags {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.project-tags span {
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--muted);
  background: var(--bg-soft);
}

.project-links {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: auto;
}

.project-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--brand);
}

.project-link:hover {
  color: var(--brand-dark);
}

.projects-more {
  margin-top: 32px;
  color: var(--muted);
}

/* ============ Skills ============ */

.skills-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-group {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 26px;
}

.skill-group h3 {
  font-family: var(--font-text);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 16px 0;
}

.skill-items {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chip {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  color: #3f434c;
  background: var(--bg-soft);
  -webkit-transition: border-color .25s var(--reveal-ease), color .25s var(--reveal-ease), background-color .25s var(--reveal-ease);
  transition: border-color .25s var(--reveal-ease), color .25s var(--reveal-ease), background-color .25s var(--reveal-ease);
}

.skill-logo {
  width: 16px;
  height: 16px;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  display: block;
}

.skill-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
  background-color: rgba(66, 91, 181, .05);
}

/* ============ Recognition ============ */

.recognition-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 720px;
}

.recognition-list li {
  position: relative;
  padding: 14px 0 14px 34px;
  border-bottom: 1px solid var(--line);
  color: #3f434c;
}

.recognition-list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 10px;
  height: 10px;
  background: var(--brand);
  border-radius: 2px;
}

.recognition-list li:last-child {
  border-bottom: none;
}

.recognition-list strong {
  color: var(--ink);
}

/* ============ Contact ============ */

.contact-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-info {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 32%;
  flex: 1 1 32%;
  min-width: 260px;
}

.contact-info h3 {
  font-family: var(--font-text);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 6px 0;
}

.contact-info p {
  margin-bottom: 20px;
}

.contact-form-wrap {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 60%;
  flex: 1 1 60%;
  min-width: 280px;
}

#contact-form input,
#contact-form textarea {
  height: 50px;
  margin-bottom: 10px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

#contact-form textarea {
  height: auto;
  padding-top: 12px;
}

#contact-form label {
  display: block;
  margin-bottom: .2em;
  font-size: 13px;
  color: var(--ink);
}

#contact-form label.error {
  margin-top: 10px;
  margin-bottom: 1em;
  font-size: 12px;
  color: #D33E43;
  margin-left: 10px;
}

#contact-form input[type="text"].error,
#contact-form input[type="email"].error,
#contact-form textarea.error {
  border-color: #D33E43;
}

textarea {
  resize: none;
}

#success,
#error {
  display: none;
}

#success p,
#error p {
  display: block;
}

#success p {
  color: var(--brand);
  font-size: 15px;
  text-align: center;
  padding: 10px;
  border: 2px solid var(--brand);
  margin-top: 10px;
}

#error p {
  color: #D33E43;
  font-size: 15px;
  text-align: center;
  padding: 10px;
  border: 2px solid #D33E43;
  margin-top: 10px;
}

#submit {
  background-color: var(--brand);
  color: #fff;
  padding: 10px 40px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: bold;
  width: 100%;
  border: none;
  -webkit-transition: background-color .2s ease;
  transition: background-color .2s ease;
}

#submit:hover {
  background-color: var(--brand-dark);
}

#submit:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.hp-wrap {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.social {
  padding-left: 0;
  list-style: none;
  margin-top: 20px;
}

.social li {
  float: left;
}

.social li a {
  color: var(--ink);
  font-size: 35px;
  margin-right: 15px;
  -webkit-transition: color .3s;
  transition: color .3s;
}

.social li a:hover {
  color: var(--brand);
}

/* ============ Responsive ============ */

@media (max-width: 1199px) {
  .projects-grid,
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .hero-grid {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    text-align: center;
  }
  .hero-copy {
    -webkit-box-flex: 0;
    -ms-flex: none;
    flex: none;
  }
  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }
  .hero-photo {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
  }
  #profilepic {
    max-width: 240px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .timeline-event-copy {
    left: 2em;
    width: calc(100% - 2em);
  }
  .projects-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  header {
    height: 60px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle {
    display: inline-block;
    position: absolute;
    right: 18px;
    top: 50%;
    width: 34px;
    height: 34px;
    padding: 6px 5px;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    cursor: pointer;
    z-index: 110;
  }

  .nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 4px auto;
    background: #444;
    -webkit-transition: all .3s var(--reveal-ease);
    transition: all .3s var(--reveal-ease);
  }

  .nav-open .nav-toggle span:nth-child(1) {
    -webkit-transform: translateY(6px) rotate(45deg);
    transform: translateY(6px) rotate(45deg);
  }

  .nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .nav-toggle span:nth-child(3) {
    -webkit-transform: translateY(-6px) rotate(-45deg);
    transform: translateY(-6px) rotate(-45deg);
  }

  nav ul {
    display: block;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    background: #fff;
    -webkit-transition: max-height .4s var(--reveal-ease);
    transition: max-height .4s var(--reveal-ease);
  }

  .nav-open nav ul {
    max-height: 480px;
    padding: 10px 0 16px;
    border-top: 1px solid var(--line);
  }

  nav li {
    display: block;
    margin: 0;
  }

  nav li a {
    display: block;
    padding: 11px 16px;
  }
}

@media (max-width: 500px) {
  h1 {
    font-size: 36px;
    line-height: 40px;
  }
  .size-50 {
    font-size: 34px;
    line-height: 38px;
  }
  .hero-title {
    font-size: 32px;
    line-height: 38px;
  }
  .hero-tagline {
    font-size: 15px;
  }
  #home {
    padding: 120px 0 60px 0;
  }
}

@media (max-width: 431px) {
  .project-head {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
  }
}
