/* FONTS */
@font-face {
  font-family: 'Inter Variable';
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
  font-named-instance: 'Regular';
  src: url("fonts/Inter-roman.var.woff2?v=3.12") format("woff2");
}

@font-face {
  font-family: 'Inter Variable';
  font-weight: 100 900;
  font-display: swap;
  font-style: italic;
  font-named-instance: 'Italic';
  src: url("fonts/Inter-italic.var.woff2?v=3.12") format("woff2");
}

/* RESET & TYPOGRAPHY */
* {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-size: 20px;
  font-family: "Inter Variable", "Inter", "Adwaita Sans", -apple-system, BlinkMacSystemFont, "Helvetica", "Roboto", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.02em;
  word-spacing: -0.02em;
}

body {
  color: white;
  background-color: #000;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 10px;
  font-weight: 700;
  line-height: 1.25;
}

h2 {
  font-size: 1.25rem;
  margin-top: 4rem;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1rem;
  margin-top: 2rem;
  margin-bottom: 1.2rem;
}

a {
  display: inline-block;
  position: relative;
  text-decoration: none;
  color: white;
  border-radius: 9px;
  cursor: pointer;
  transition: box-shadow 0.35s cubic-bezier(0.17, 0.89, 0.32, 1.28);
}

a:active {
  transform: scale(0.98);
}


header span {
  position: relative;
}

a:not(.link-button)::after {
  /* animated underline */
  content: "";
  height: 1px;
  background-color: white;
  position: absolute;
  width: 0;
  left: 50%;
  bottom: 0;
  opacity: 0;
  transform: scaleX(0.1);
  transition: all 0.13s ease;
}

a:not(.link-button):hover::after {
  opacity: 1;
  width: calc(100% - 0.1em);
  left: 0;
  bottom: 0;
  transform: scaleX(1);
}

ul {
  margin-top: 1em;
  margin-bottom: 0.5em;
}

ul,
ol {
  padding-left: 1em;
}

ul.plain-list {
  list-style-type: none;
  padding-left: 0;
}

p {
  margin-bottom: 1em;
}

/* LAYOUT */
.container {
  width: 85%;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
}

@media (min-width: 600px) {
  .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 2.5rem;
  }
}

@media (min-width: 900px) {
  .grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}


/* SHARED COMPONENTS */
.project-listitem {
  margin: 2rem 0;
}

.project-image {
  display: block;
  width: 100%;
  border-radius: 1rem;
  grid-column-start: 1;
  grid-column-end: 2;
}

.project-description {
  grid-column: 2/4;
}

.project-description>h3 {
  margin: 1rem 0;
}

/* ONE-OFF COMPONENTS */
header {
  margin-top: 1rem;
}

@media (min-width: 900px) {
  header {
    margin-top: 3rem;
  }
}

header .logo {
  font-weight: 700;
}

header .first-word {
  display: inline-block;
  margin-bottom: 3px;
}

header .second-word {
  display: inline-block;
  vertical-align: top;
  margin-left: 20px;
  margin-top: 15px;
}

header .logo::after {
  height: 0.2em;
}

header .logo:hover::after {
  bottom: -0.4em;
}

header>a.logo:not(.link-button):hover::after {
  opacity: 0;
}

header>.logo>.first-word::after,
header>.logo>.second-word::after {
  /* animated underline */
  content: "";
  height: 2px;
  background-color: white;
  position: absolute;
  width: 0;
  left: 0;
  bottom: 0;
  opacity: 1;
  transition: all 0.13s ease;
}

header>.logo:hover>.first-word::after,
header>.logo:hover>.second-word::after {
  opacity: 1;
  width: calc(100% - 0.1em);
  left: 0;
  bottom: 0;
}

header>.logo:hover>.second-word::after {
  transition-delay: 0.10s;
}

header .menu {
  margin-top: 20px;
  text-align: right;
}

header .menu a {
  margin-left: 30px;
}

@media (min-width: 530px) {
  header .menu {
    float: right;
    margin-top: 0;
  }

  header .menu a {
    margin-left: 30px;
    margin-bottom: 5px;
  }
}

.hero {
  position: relative;
  margin: 2rem 0 0;
  height: 160vw;
}

.hero .box {
  position: absolute;
  width: 100vw;
  height: 160vw;
  overflow-x: hidden;
}

.hero .img {
  display: block;
  position: absolute;
}

.hero .bg-image {
  width: 120vw;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -35%);
}

.hero .dots-grid {
  width: 40vw;
  top: 0;
  right: -13%;
}

.hero .dots {
  width: 40vw;
  bottom: 8%;
  left: -4%;
}

.hero h1 {
  position: absolute;
  display: block;
  color: #000;
  font-size: 1rem;
  font-weight: 700;
}

.hero h1.sentence-1 {
  top: 50%;
  left: 1em;
  width: 16em;
}

.hero h1.sentence-2 {
  top: 70%;
  right: 1em;
  width: 12.5em;
}

@media (min-width: 500px) {
  .hero {
    margin: 2rem auto 0;
    height: 650px;
    width: 1000px;
    max-width: 100vw;
  }

  .hero .box {
    height: 650px;
  }

  .hero .bg-image {
    width: 96%;
    max-width: 650px;
    transform: translate(-50%, -45%);
  }

  .hero .dots-grid {
    width: 35vw;
    top: 0;
    right: -13%;
  }

  .hero .dots {
    width: 35vw;
    bottom: 19%;
    left: -4%;
  }

  .hero h1.sentence-1 {
    top: 42%;
    left: 3em;
    width: 16em;
  }

  .hero h1.sentence-2 {
    top: 64%;
    right: 4em;
    width: 12.5em;
  }
}

@media (min-width: 600px) {
  .hero .bg-image {
    max-width: 580px;
  }

  .hero .dots-grid {
    width: 27vw;
    top: 0;
    right: -8%;
  }

  .hero .dots {
    width: 27vw;
    bottom: 17%;
    left: -2%;
  }

  .hero h1 {
    font-size: 1.2rem;
  }
}

@media (min-width: 700px) {
  .hero {
    margin-left: 0;
    margin-bottom: 3rem;
  }

  .hero .box {
    height: 700px;
  }

  .hero .bg-image {
    max-width: 620px;
    transform: translate(-50%, -50%);
  }

  .hero .dots-grid {
    width: auto;
    top: 0;
    right: calc(50% - 21rem);
  }

  .hero .dots {
    width: auto;
    bottom: 15%;
    left: calc(50% - 20rem);
  }

  .hero h1.sentence-1 {
    top: 39%;
    left: calc(50% - 13rem);
    width: 16em;
  }

  .hero h1.sentence-2 {
    top: 61%;
    right: calc(50% - 11rem);
    width: 12.5em;
  }
}

.title {
  margin-top: 6rem;
  margin-bottom: 3rem;
}

@media (min-width: 700px) {
  .title {
    margin-top: 15vw;
    margin-bottom: 4vw;
  }
}

.title {
  white-space-collapse: collapse;
}

.title h1.first-row,
.title h1.second-row {
  display: inline-block;
}

.title h1.first-row::after {
  content: "\00a0";
}

.title h1.second-row {
  margin-left: none;
}

@media (min-width: 700px) {


  .title h1.first-row,
  .title h1.second-row {
    display: block;
  }

  .title h1.first-row::after {
    content: "";
  }

  .title h1.second-row {
    margin-left: 11rem;
  }
}

.content .two-column:last-child {
  grid-column: 1/3;
}

.content .column:last-child {
  /* grid-column: 3/4; */
}

/* FOOTER */
footer {
  margin: 6em 0 3em;
  font-weight: 700;
}

footer .email {
  font-weight: 400;
}

@media (min-width: 900px) {
  footer .email {
    grid-column: 3/4;
  }
}
