@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;700&display=swap");

/* Reset (only tags present in the markup) */
html, body, div, span, h1, p, a, img, header, section, article {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article, header, section {
  display: block;
}

*, *:before, *:after {
  box-sizing: border-box;
}

body {
  line-height: 1;
  -webkit-text-size-adjust: none;
}

/* Base typography */
body {
  color: #585858;
  font-family: "Open Sans", sans-serif;
  font-size: 0.9em;
  font-weight: 400;
  line-height: 1.5em;
  background-color: #ffffff;
}

h1 {
  color: #313f47;
  font-family: "Open Sans", sans-serif;
  font-weight: 300;
  font-size: 2.5em;
  line-height: 2em;
  letter-spacing: 0em;
  margin: 0 0 1em 0;
}

p {
  margin: 0 0 2em 0;
}

a {
  transition: color 0.2s ease, border-bottom-color 0.2s ease;
  color: inherit;
  text-decoration: none;
}

/* Wrapper */
#wrapper {
  transition: opacity 0.45s ease;
  opacity: 1;
}

#wrapper > * > .inner {
  width: 100%;
  max-width: 68em;
  margin: 0 auto;
  padding: 0 2.5em;
}

/* Header (empty in this page, kept for top spacing) */
#header {
  padding: 8em 0 0.1em 0;
}

/* Main */
#main {
  padding: 0em 0 6em 0;
}

#main > .inner > header {
  margin: 0 0 3em 0;
}

#main > .inner > header p {
  font-size: 1em;
  margin: 0;
}

/* Tiles grid */
.tiles {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  margin: -1em 0 0 -1em;
}

.tiles article {
  position: relative;
  width: calc(33.33333% - 2.5em);
  margin: 1em 0 0 1em;
}

.tiles article > .image {
  transition: transform 0.5s ease;
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
}

.tiles article > .image img {
  display: block;
  width: 100%;
}

.tiles article > .image:before {
  pointer-events: none;
  transition: background-color 0.5s ease, opacity 0.5s ease;
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  z-index: 1;
}

.tiles article > .image:after {
  pointer-events: none;
  transition: opacity 0.5s ease;
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: 0;
  z-index: 2;
}

.tiles article > a {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  transition: background-color 0.5s ease, transform 0.5s ease;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  padding: 1em;
  border-radius: 4px;
  color: #dddddd;
  text-align: center;
  text-decoration: none;
  z-index: 3;
}

.tiles article > a:hover {
  color: #ffffff;
}

.tiles article > a .content {
  transition: max-height 0.5s ease, opacity 0.5s ease;
  width: 100%;
  max-height: 0;
  line-height: 1.5;
  margin-top: 0.35em;
  opacity: 0;
}

.tiles article > a .content p {
  font-size: 0.8em;
  letter-spacing: 0em;
  text-transform: uppercase;
}

.tiles article:hover > .image {
  transform: scale(1.1);
}

.tiles article:hover > .image:before {
  background-color: #333333;
  opacity: 0.8;
}

.tiles article:hover > .image:after {
  opacity: 0;
}

.tiles article:hover .content {
  max-height: 15em;
  opacity: 1;
}

/* Project detail page: large stacked images (no grid) */
.project-meta {
  list-style: none;
  margin: 0 0 2em 0;
  padding: 0;
}

.project-meta li {
  margin: 0 0 0.5em 0;
}

.project-gallery {
  display: block;
  width: 100%;
  overflow: hidden;
}

.project-gallery .full-image {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 2em 0;
  overflow: hidden;
}

.project-gallery .full-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Sticky top nav */
#site-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background-color: #ffffff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

#site-nav > .inner {
  max-width: none;
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2.5em;
}

#site-nav .logo {
  font-family: "Open Sans", Helvetica, sans-serif;
  font-weight: 100;
  font-size: 1.25em;
  color: #313f47;
  text-align: center;
  padding: 0.75em 0;
}

#site-nav .nav-arrow {
  font-family: "Open Sans", Helvetica, sans-serif;
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1;
  color: #585858;
  transition: color 0.2s ease;
  padding: 0 1.5em;
}

#site-nav .nav-arrow:hover {
  color: #313f47;
}

/* Responsive breakpoints */
@media screen and (max-width: 1680px) {
  body { font-size: 1em; }
}

@media screen and (max-width: 1280px) {
  body { font-size: 1em; }

  .tiles {
    margin: -1em 0 0 -1em;
  }

  .tiles article {
    width: calc(33.33333% - 1em);
    margin: 1em 0 0 1em;
  }
}

@media screen and (max-width: 980px) {
  .tiles {
    margin: -2.5em 0 0 -2.5em;
  }

  .tiles article {
    width: calc(50% - 2.5em);
    margin: 2.5em 0 0 2.5em;
  }
}

@media screen and (max-width: 736px) {
  #wrapper > * > .inner {
    padding: 0 1em;
  }

  #header {
    padding: 4em 0 0.1em 0;
  }

  #main {
    padding: 0em 0 4em 0;
  }

  .tiles {
    margin: -1em 0 0 -1em;
  }

  .tiles article {
    width: calc(50% - 1em);
    margin: 1em 0 0 1em;
  }

  .tiles article:hover > .image {
    transform: scale(1.0);
  }

  .project-gallery .full-image {
    margin: 0 0 1em 0;
  }

  #site-nav > .inner {
    padding: 0 1.25em;
  }

  #site-nav .nav-arrow {
    padding: 0 1em;
  }
}

@media screen and (max-width: 480px) {
  html, body { min-width: 320px; }

  .tiles {
    margin: 0;
  }

  .tiles article {
    width: 100%;
    margin: 1em 0 0 0;
  }
}
</content>