html, body, div, main, article, img, p, * {
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
  font-size: 16px;
}

body {
  font-family: ISOCPEUR, sans-serif;
  font-size: 1rem;
  letter-spacing: -.01em;
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #111;
  width: 100%;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
  font-size: 1.15rem;
  letter-spacing: -.01em;
  margin: 1rem 0;
  line-height: 1.35;
}

h1 {
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: .15em;
  text-transform: uppercase;
  kerning: auto;
  margin: 1rem 0;
  font-kerning: normal;
  -webkit-font-kerning: normal;
}

h1 a {
  text-decoration: none;
  color: #888;
  position: relative;
  transition: all .3s;
}

h1 a:after {
  content: "";
  display: block;
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -3px;
  background-color: #eb2227;
  transition: width .3s ease-out;
  opacity: 0;
}

h1 a:hover {
  color: #111;
  width: 100%;
}

h1 a:hover:after {
  width: calc(100% - 4px);
  opacity: 1;
}

.home-page {
  width: 100%;
  height: 100%;
}

.home-page .swiper-container {
  height: 100%;
}

.home-page .swiper-wrapper {
  height: 100%;
}

.home-page .swiper-slide {
  background-position: left center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #fff;
}

.home-page .swiper-pagination {
  background-color: yellow;
}

.home-page .swiper-slide.intro0 {
  background-image: url("/images/intro0.png");
}

.home-page .swiper-slide.intro1 {
  background-image: url("/images/intro1.png");
}

.home-page .swiper-slide.intro2 {
  background-image: url("/images/intro2.png");
}

.home-page .swiper-slide.intro3 {
  background-image: url("/images/intro3.png");
}

/* Navigation */

aside nav {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 3px 1fr;
}

aside nav .left {
  position: relative;
  text-align: right;
  padding: .5rem;
}

aside nav .right {
  position: relative;
  text-align: left;
  padding: .5rem;
}

aside nav a {
  text-decoration: none;
  color: #888;
  font-size: 1rem;
  letter-spacing: -.02em;
  transition: all .3s cubic-bezier(.22, .48, .52, 1.38);
}

aside nav a:hover {
  color: #eb2227;
  letter-spacing: .05em;
}

aside nav a.active {
  color: #111;
}

aside a.logo {
  display: block;
  position: absolute;
  left: 3.8rem;
  bottom: 2rem;
  transition: all .3s cubic-bezier(.22, .48, .5, 1.47);
  transform-origin: 25% 50%;
  z-index: 100;
}

aside a.logo:hover {
  transform: scale(1.05);
}

aside a.logo img {
  display: block;
  width: auto;
  height: 100px;
}

nav .urban-design {
  display: block;
  width: calc(100% - 1rem);
  font-size: 1.2rem;
  text-align: right;
  position: absolute;
  top: 18%;
  right: .5rem;
}

nav .architecture {
  display: block;
  width: calc(100% - 1rem);
  font-size: 1.35rem;
  text-align: right;
  position: absolute;
  top: 30%;
  right: .5rem;
}

nav .contact {
  display: block;
  width: calc(100% - 1rem);
  font-size: 1.1rem;
  position: absolute;
  text-align: right;
  top: 62%;
  right: .5rem;
}

nav .about {
  display: block;
  width: calc(100% - 1rem);
  font-size: 1.1rem;
  position: absolute;
  top: 5%;
  left: .5rem;
}

nav .feasibility {
  display: block;
  width: calc(100% - 1rem);
  font-size: 1.15rem;
  position: absolute;
  top: 38%;
  left: .5rem;
}

nav .interior {
  display: none;
  width: calc(100% - 1rem);
  font-size: 1.2rem;
  position: absolute;
  top: 50%;
  left: .5rem;
}

nav .line {
  background-color: #eb2227;
}

/* Layout */

main {
  display: grid;
  grid-column-gap: 0;
  grid-template-columns: calc(100% - 22rem) 22rem;
  width: 100%;
  height: 100%;
  min-height: 30rem;
}

article {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-self: center;
  width: auto;
  height: 100%;
}

article .header {
  padding: 2rem;
  height: 7rem;
}

article .header.two-columns {
  display: grid;
  grid-template-columns: min-content auto;
  grid-gap: 0;
}

article .header h1 {
  margin: 0;
  white-space: nowrap;
}

article .header h2 {
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: .15em;
  text-transform: uppercase;
  kerning: auto;
  margin: 0;
  font-kerning: normal;
  -webkit-font-kerning: normal;
}

article .header h2 {
}

article .header p {
  margin: 0;
}

article .content {
  padding: 0 2rem 2rem 2rem;
  display: flex;
  flex: 1;
  align-items: center;
}

article .contact {
  padding: 0 2rem 2rem 2rem;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-evenly;
}

article .contact p {
  font-size: 1.5rem;
}

article .contact a {
  color: #111;
  text-decoration: none;
  position: relative;
}

article .contact a:after {
  content: "";
  display: block;
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -3px;
  background-color: #eb2227;
  transition: width .3s ease-out;
  opacity: 0;
}

article .contact a:hover:after {
  width: 100%;
  opacity: 1;
}

article.portfolio {
  max-height: 100vh;
}

article .slider {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  height: 100%;
}

article img {
  width: 100%;
  height: auto;
}

article h1 {
  margin: 0;
}

aside {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 22rem;
  height: 100%;
}

.about-page {
  padding: 2.5rem;
  margin: 0 auto;
  max-width: 80rem;
}

.about-page img {
  display: block;
  margin-bottom: 2.5rem;
}

.about-page p {
  margin: 1rem 0 1rem auto;
}

/* Project grid */

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 0;
}

.project-grid img {
  width: 100%;
  height: auto;
}

.project-grid a {
  display: block;
  border: 1px solid transparent;
}

.project-grid a:hover {
  border: 1px solid #ccc;
}

.hidden {
  display: none;
}

/* Swiper */

.swiper-container {
}

.swiper-wrapper {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  width: calc(100vw - 22rem);
  height: calc(100vh - 7rem);
}

.swiper-slide {
  padding: 0 3.25rem 2.5rem 3.25rem;
  text-align: center;
  align-content: center;
  display: flex;
}

.swiper-slide > img {
  width: auto;
  display: block;
  margin: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
}

.swiper-button-next,
.swiper-button-prev {
  color: #fff;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 2rem;
  color: #888;
  transition: color .3s;
}

.swiper-button-next:hover::after,
.swiper-button-prev:hover::after {
  font-size: 2rem;
  color: #eb2227;
}

.swiper-pagination.swiper-pagination-bullets {
  bottom: 1.1rem;
}

.swiper-pagination.swiper-pagination-progressbar {
  top: auto;
  bottom: 1.1rem;
  height: 3px;
}

.swiper-pagination-progressbar {
  background: #eee;
}

.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
  background: #eb2227;
}

.swiper-pagination-bullet {
  border-radius: 0;
  width: 1rem;
  height: 3px;
  background: #888;
}

.swiper-pagination-bullet-active {
  background-color: #eb2227;
}