:root {
  --black: #000;
  --white: #fff;
  --body: #333;
  --muted: #7a7a7a;
  --pale: #fafafa;
  --font-ui: Roboto, Arial, sans-serif;
  --font-display: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--white);
  color: var(--body);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 20px;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
}

a {
  color: grey;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  transition: box-shadow 200ms ease, color 200ms ease;
}

a:hover {
  color: var(--black);
}

h1,
h2,
p {
  margin: 0;
}

h2 {
  margin: 20px 0 30px;
  font-family: var(--font-ui);
  font-size: 44px;
  font-weight: 900;
  line-height: 52px;
}

.navbar {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  padding: 3vh 5vw 0;
  color: var(--white);
  pointer-events: none;
}

.brand,
.nav-menu,
.menu-toggle {
  pointer-events: auto;
}

.brand {
  display: block;
  width: 129px;
  height: 129px;
  overflow: visible;
  border-bottom: 0;
  box-shadow: none;
}

.brand img {
  width: 129px;
  height: 129px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 4vh 0 2vh;
}

.link-nav {
  margin: 0;
  padding: 0 0 5px;
  box-shadow: none;
  color: var(--white);
}

.link-nav:hover {
  box-shadow: inset 0 -3px 0 0 rgba(0, 0, 0, 0.5);
  color: var(--black);
}

.link-nav.is-current {
  box-shadow: inset 0 -3px 0 0 rgba(0, 0, 0, 0.5);
  color: #9b9b9b;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-top: 2vh;
  padding: 11px;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08)), url("/assets/gemini.png");
  background-position: center;
  background-size: cover;
  cursor: pointer;
  scroll-snap-align: start;
}

.wrapper-title {
  width: 100%;
  overflow: hidden;
  padding: 0 5vw;
  color: var(--white);
}

.line-mask {
  overflow: hidden;
}

.front-text {
  border: 1px solid transparent;
  color: var(--white);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 14vh;
  font-weight: 400;
  line-height: 16vh;
  transform: translate3d(0, 110%, 0);
  animation: reveal-from-bottom 900ms cubic-bezier(0.22, 1, 0.36, 1) 180ms forwards;
  will-change: transform;
}

.front-text.bold {
  margin-top: 0;
  font-weight: 900;
  transform: translate3d(0, -100%, 0);
  animation-name: reveal-from-top;
  animation-delay: 360ms;
}

.home-subhead {
  display: flex;
  width: 30vw;
  margin-top: 30px;
  align-items: center;
  justify-content: flex-start;
  opacity: 0;
  transform: translate3d(0, 200px, 0);
  animation: subhead-rise 850ms cubic-bezier(0.22, 1, 0.36, 1) 720ms forwards;
  will-change: opacity, transform;
}

.paragraph-3 {
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 300;
  line-height: 32px;
  text-align: right;
}

.constellation {
  color: grey;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 20px;
  opacity: 0;
  text-align: right;
  animation: fade-in 700ms ease 1.1s forwards;
}

.scroll-cue {
  position: absolute;
  right: 0;
  bottom: 40px;
  left: 0;
  width: 22px;
  margin: auto;
  box-shadow: none;
  animation: float-cue 1.8s ease-in-out infinite;
}

.scroll-cue:hover {
  box-shadow: none;
}

.scroll-cue img {
  display: block;
  height: 40px;
  margin: auto;
}

.projects {
  border: 1px solid var(--black);
  background: #dcdee0;
}

.project-panel {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background: #000;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.project-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: var(--project-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.03);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-panel:hover::before,
.project-panel:focus-within::before {
  transform: scale(1);
}

.project-shade {
  position: relative;
  z-index: 1;
  display: flex;
  width: 50%;
  min-height: 100vh;
  align-items: center;
  padding-right: 10vw;
  padding-left: 15vw;
  background: rgba(0, 0, 0, 0.75);
  color: var(--white);
}

.project-info {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.number {
  margin: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 70px;
  font-weight: 400;
  line-height: 60px;
  text-align: right;
}

.project-title {
  margin: 20px 0 30px;
  color: var(--white);
  font-size: 44px;
  font-weight: 900;
  line-height: 52px;
  text-transform: none;
}

.project-description {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 300;
  line-height: 32px;
}

.project-link {
  padding-bottom: 5px;
  box-shadow: inset 0 -2px 0 0 rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.project-link:hover {
  box-shadow: inset 0 -2px 0 0 var(--white);
  color: var(--white);
}

.about-section {
  display: block;
  width: 100%;
  padding: 5vh 0;
  border: 1px solid var(--white);
  background: var(--white);
  scroll-snap-align: start;
}

.wrap-content {
  position: relative;
  width: 40vw;
  margin-left: 310px;
  padding: 20px 5vw 0 0;
}

.accordion-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border: 0;
  background: #eee;
  color: #444;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 15px;
  text-align: left;
  transition: background-color 200ms ease;
}

.accordion-trigger:hover,
.accordion-trigger[aria-expanded="true"] {
  background: #ccc;
}

.accordion-panel {
  padding: 0 18px;
  overflow: auto;
  background: var(--white);
}

.accordion-panel pre {
  margin: 16px 0;
  overflow: auto;
  color: #333;
  font-size: 13px;
  line-height: 1.35;
}

.footer {
  width: 100%;
  padding: 0 5vw;
  border: 1px solid var(--black);
  background: var(--pale);
  scroll-snap-align: start;
}

.footer-inner {
  display: flex;
  width: 90%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 90px 0;
}

.logo-footer {
  width: 147px;
  height: 147px;
  margin-bottom: 30px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  width: 70%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0 20px;
  padding: 20px 0;
}

.footer-links a {
  margin: 0 0 20px;
  padding-bottom: 5px;
  box-shadow: inset 0 -2px 0 0 rgba(0, 0, 0, 0.1);
}

.footer-links a:hover {
  box-shadow: inset 0 -2px 0 0 var(--black);
}

.small-p {
  margin: 0 0 10px;
  color: #b8b8b8;
  font-size: 14px;
  font-weight: 300;
  line-height: 24px;
}

@keyframes float-cue {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

@keyframes reveal-from-bottom {
  from {
    transform: translate3d(0, 110%, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes reveal-from-top {
  from {
    transform: translate3d(0, -100%, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes subhead-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 200px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  .scroll-cue {
    animation: none;
  }

  .front-text,
  .front-text.bold,
  .home-subhead,
  .constellation {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media screen and (max-width: 991px) {
  .front-text {
    font-size: 18vh;
    line-height: 15vh;
  }

  .front-text.bold {
    font-size: 84px;
    line-height: 15vh;
  }

  .home-subhead {
    width: 50vw;
  }

  .project-shade {
    width: auto;
    padding: 10vh 5vw;
  }

  .wrap-content {
    width: 100%;
    margin-right: -23px;
    margin-left: 213px;
    padding-right: 37vw;
  }

  .footer-inner,
  .footer-links {
    width: auto;
  }
}

@media screen and (max-width: 767px) {
  .navbar {
    align-items: flex-start;
  }

  .brand {
    width: 112px;
    height: 112px;
  }

  .brand img {
    width: 112px;
    height: 112px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    width: min(280px, 75vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    padding: 120px 36px;
    background: rgba(0, 0, 0, 0.92);
    transform: translateX(100%);
    transition: transform 200ms ease;
  }

  .nav-menu.is-open {
    transform: translateX(0);
  }

  .link-nav:hover {
    color: var(--white);
  }

  .hero {
    padding-right: 40px;
    padding-left: 40px;
  }

  .wrapper-title {
    margin-bottom: 76px;
    padding: 0;
  }

  .front-text,
  .front-text.bold {
    font-size: 8vh;
    line-height: 8vh;
  }

  .home-subhead {
    width: auto;
  }

  .paragraph-3 {
    text-align: left;
  }

  .project-shade {
    width: 100%;
    padding: 60px 40px;
  }

  .project-title,
  h2 {
    font-size: 30px;
    line-height: 40px;
  }

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

  .about-section {
    padding-right: 40px;
    padding-left: 40px;
  }

  .wrap-content {
    width: auto;
    margin-left: 0;
    padding-right: 0;
  }

  .footer {
    padding-right: 40px;
    padding-left: 40px;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media screen and (max-width: 479px) {
  .hero {
    padding-right: 28px;
    padding-left: 28px;
  }

  .paragraph-3 {
    font-size: 16px;
    line-height: 28px;
  }

  .project-shade {
    padding: 50px 32px;
  }

  .about-section,
  .footer {
    padding-right: 28px;
    padding-left: 28px;
  }

  .accordion-panel {
    padding: 0 12px;
  }
}
