@font-face {
    font-family: 'apfel_grotezkregular';
    src: 
         url('/assets/fonts/apfelgrotezk-regular.eot'),/* IE6-IE8 */
         url('/assets/fonts/apfelgrotezk-regular.eot?#iefix') format('embedded-opentype'),
         url('/assets/fonts/apfelgrotezk-regular.woff2') format('woff2'),
         url('/assets/fonts/apfelgrotezk-regular.woff') format('woff'),
         url('/assets/fonts/apfelgrotezk-regular.ttf')  format('truetype'), /* Safari, Android, iOS */
         url('/assets/fonts/apfelgrotezk-regular.svg#apfel_grotezkregular') format('svg');
    font-display: swap;
    font-weight: 400;
    font-style: normal;
    }
@font-face {
    font-family: 'apfel_grotezmittel';
    src:
        url('/assets/fonts/apfelgrotezk-Mittel.eot'),/* IE6-IE8 */
        url('/assets/fonts/apfelgrotezk-Mittel.woff2') format('woff2'),
        url('/assets/fonts/apfelgrotezk-Mittel.woff') format('woff'),
         url('/assets/fonts/apfelgrotezk-Mittel.ttf')  format('truetype'), /* Safari, Android, iOS */;
    font-display: swap;
    font-weight: 500;
    font-style: normal;
    }
@font-face {
    font-family: 'apfel_grotezkfett';
    src:
        url('/assets/fonts/apfelgrotezk-fett.eot'), /* IE6-IE8 */
        url('/assets/fonts/apfelgrotezk-fett.eot?#iefix') format('embedded-opentype'),
        url('/assets/fonts/apfelgrotezk-fett.woff2') format('woff2'),
        url('/assets/fonts/apfelgrotezk-fett.woff') format('woff'),
        url('/assets/fonts/apfelgrotezk-fett.ttf')  format('truetype'), /* Safari, Android, iOS */
        url('/assets/fonts/apfelgrotezk-fett.svg#apfel_grotezkfett') format('svg');
    font-display: swap;
    font-weight: 800;
    font-style: normal;
    }

* {
  margin: 0;
  padding: 0;
}
::selection{
  color: #000;
  background: #e2f279;
}

:root {
  --padding: 1rem;
  --color-black: #000;
  --color-white: #fff;
  --color-grey: rgba(0, 0, 0, 0.75);
  --color-light: #d0d0d0;
  --color-text: var(--color-black);
  --color-text-grey: var(--color-grey);
  --color-background: var(--color-white);
  --color-code-light-grey:  #cacbd1;
  --color-code-comment:     #a9aaad;
  --color-code-white:       #c5c9c6;
  --color-code-red:         #d16464;
  --color-code-orange:      #de935f;
  --color-code-yellow:      #e2f279;
  --font-family-sans: 'apfel_grotezkregular', Apfel Grotezk, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-family-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

html {
  font-family: var(--font-family-sans);
  color: var(--color-text);
  background: var(--color-background);
  font-size: 16px;
}
@media screen and (min-width: 720px) {
  :root {
    --padding: 1.5rem;
  }
}
@media screen and (min-width: 1800px) {
  :root {
    --padding: 2rem;
  }
  html {
    font-size: 20px;
  }
}
img {
  width: 100%;
}
body {
  padding: 0;
  margin: 0 auto;
}
header, footer {
  padding: var(--padding);
}
main{
  z-index: 50;
}
header{
  z-index: 100;
}
main{
  position: relative;
}
li {
  list-style: none;
  font-size: inherit;
}
a {
  color: currentColor;
  text-decoration: none;
}
button {
  font: inherit;
  background: none;
  border: 0;
  color: currentColor;
  cursor: pointer;
}
strong, b {
  font-weight: 500;
}
small {
  font-size: 1rem;
  color: var(--color-text-grey);
}

.bg-light {
  background-color: var(--color-light);
}
.color-grey {
  color: var(--color-text-grey);
}

.header {
  margin-right: -1rem;
  margin-left: -1rem;
  margin-bottom: 6rem;
}
.navigation {
  font-size: 1.2rem;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-right: -1rem;
  margin-left: -1rem;
  transition: top 0.6s;
}
.scroll-down{
  top:-86px;
}

.logo {
  padding: .5rem 1rem;
  display: flex;
  align-items: center;
  font-weight: 500;
  cursor: pointer;
}

.menu {
  display: flex;
  margin-right: 1rem;
}
.menu a {
  padding: .5rem .5rem;
  border-radius: 1rem;
  display: block;
  background-color: var(--link-bg);
  transition: border-radius .3s;
}
.menu a[aria-current], .menu a:hover{
  text-decoration: none;
  border-radius: 0;
}

.social {
  padding: .5rem;
}
.social a {
  padding: 1rem .5rem;
}

.section {
  padding: 3rem 0;
}

.autogrid {
  --gutter: 3rem;
  --min: 10rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
  grid-auto-flow: dense;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: 500;
  line-height: inherit;
}

h1{
  line-height: 1.125em;
}

.text {
  line-height: 1.5em;
}
.text p{
  max-width: 48rem;
}
.text a {
  text-decoration: underline;
}
.text :first-child {
  margin-top: 0;
}
.text :last-child {
  margin-bottom: 0;
}
.text p,
.text ul,
.text ol {
  margin-bottom: 1.75rem;
}

.text ul p,
.text ol p {
  margin-bottom: 0;
}
.text ul > li {
  list-style: disc;
}
.text ol > li {
  list-style: decimal;
}
.text ul ol,
.text ul ul,
.text ol ul,
.text ol ol {
  margin-bottom: 0;
}
.text h1,
.h1{
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
  line-height: 1.125em;
}

.intro *:not(:last-child){
  margin-bottom: 1.5rem;
}

.text h2,
.h2{
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.text h2,
.h2, h2{
  font-size: 1.6rem;
}
.text h3,
.h3 {
  font-weight: 500;
}
.text .codeblock {
  display: grid;
}
.text code {
  font-family: var(--font-family-mono);
  font-size: 1em;
  background: var(--color-light);
  padding: 0 .5rem;
  display: inline-block;
  color: var(--color-black);
}
.text pre {
  margin: 3rem 0;
  background: var(--color-black);
  color: var(--color-white);
  padding: 1.5rem;
  overflow-x: scroll;
  overflow-y: hidden;
  line-height: 1.5rem;
}
.text pre code {
  padding: 0;
  background: none;
  color: inherit;
}
.text hr {
  margin: 6rem 0;
}
.text dt {
  font-weight: 500;
}
.text blockquote {
  font-size: 1.25rem;
  line-height: 1.325em;
  border-left: 2px solid var(--color-black);
  padding-left: 1rem;
  margin: 3rem 0;
  max-width: 25rem;
}
.text blockquote footer {
  font-size: .875rem;
  font-style: italic;
}
.text figure {
  margin: var(--padding) 0;
}
.text figcaption {
  padding-top: .5rem;
  color: var(--color-text-grey);
}
.text figure ul {
  line-height: 0;
  display: grid;
  gap: 1.5rem;
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}
.text figure ul li {
  list-style: none;
  overflow: hidden;
}

hr {
  border: 0;
  background: currentColor;
  height: 2px;
  width: 1.5rem;
  margin: 3rem auto;
}

.align-center {
  text-align: center;
}

.cta {
  background: var(--color-black);
  color: var(--color-white);
  display: inline-flex;
  justify-content: center;
  padding: .75rem 1.5rem;
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-black);
}

.box {
  background: var(--color-light);
  padding: 1.5rem;
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-light);
}


.video,
.img {
  position: relative;
  display: block;
  --w: 1;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  background: var(--color-black);
}

.block-video, .block-video video{
  max-width: 48rem;
}
.block-video video{
  width: 100%;
}

.img img,
.video iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.img[data-contain] img {
  object-fit: contain;
}
.img-caption,
.video-caption {
  padding-top: .75rem;
  line-height: 1.5em;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  line-height: 1.5em;
  background-color: var(--color-code-yellow);
}

.footer h2{
  font-weight: 500;
  font-size: 2rem;
}
footer p{
  font-size: 2rem;
  line-height: 2rem;
}
.footer p {
  max-width: 42rem;
}
.footer a:hover {
  color: var(--color-text);
}
.footer-links{
  display: flex;
}

.map {
  --w: 2;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  position: relative;
  overflow: hidden;
  background: var(--color-black);
}
.map iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.margin-s {
  margin-bottom: .75rem;
}
.margin-m {
  margin-bottom: 1.5rem;
}
.margin-l {
  margin-bottom: 3rem;
}
.margin-xl {
  margin-bottom: 4.5rem;
}
.margin-xxl {
  margin-bottom: 6rem;
}
.grid > .column {
  margin-bottom: 1.5rem;
}
@media screen and (min-width: 60rem) {
  .text h1,
  .h1,
  .intro h1{
    font-size: 3rem;
    line-height: 1.25em;
  }
  .footer h2{
    font-size: 2rem;
    line-height: 1.25em;
  }
  .grid {
  --columns: 12;
  --gutter: 1.5rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .grid > .column {
    grid-column: span var(--columns);
    margin-bottom: 0;
  }
  .footer-links{
  justify-content: flex-end;
}

}

.note-excerpt {
  line-height: 1.5em;
}
.note-excerpt figure {
  margin-bottom: .5rem;
}
.note-excerpt-title {
  font-weight: 500;
}
.note-excerpt-date {
  color: var(--color-text-grey);
}
.note .text figure img, .note .text figure:not(.gallery){
  max-width: 48rem;
}
.note .text figure img{
  object-position: left;
  flex-wrap: wrap;
}

.text p{
  font-size: 1.2rem;
  line-height: 1.75rem;
}

.project__preview--video{
    width:100%;
    width: -webkit-fill-available;
    width: fill-available;
    height: auto;
}
.project__information, ul.note-tags, ul.tags-container{
  display: flex;
  flex-wrap: wrap;
}
.project__preview--client{
  display: inline-block;
}
.note-tags {
  display: flex;
}
.note-tags a {
  padding: .5rem 1rem;
  display: block;
  background: var(--color-light);
}
.note-tags a:hover {
  background: var(--color-black);
  color: var(--color-white);
}

ul{
  margin-block-start: 0;
  margin-block-end: 0;
}
.project__information time, .project__information li{
  font-size: 1rem;
  line-height: 1rem;
}
.project__information time{
  margin-right: 0.5rem;
  padding: 0.25rem 0;
}
.project__roles{
  display: flex;
}
.project__roles a{
  color:#f6f3f4;
  background-color: #000;
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  margin-right: 0.5rem;
  transition: all .3s;
  text-decoration: none;
}
.project__roles--small a{
  padding: 0.25rem 0.33rem;
  border-radius: 0.5rem;
}
.tags-container .project__roles a{
  font-size: 2rem;
  line-height: 1.25em;
}
.tags-container .project__roles{
  margin-bottom: 0.5rem;;
}
.project__roles a:hover{
  transform: rotate(7.5deg);
}
.project__roles:nth-of-type(even) a:hover{
  transform: rotate(-7.5deg);
}
.projects-grid  figure, .project-cover{
  height: 0;
  padding-bottom: 66%;
  overflow: hidden;
}
.projects-grid, .tag-grid, .about-grid, .gallery-content{
  padding:var(--padding);
}
.tag-grid, .about-grid{
  padding-top: 0;
  padding-bottom: 3rem;
}
.project__preview-titles{
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.25rem;
}
.project__preview-titles, .project__preview-client{
  color: black;
  text-decoration: none;
  position: relative;
  display: block;
}

.project__client{
  font-size: 1.6rem;
  line-height: 2rem;
  margin-bottom: .5rem;
}
.m0{
    margin: 0;
}
.mt1{
    margin-top: .25rem;
}
.mt2{
    margin-top: .5rem;
}
.mt3{
    margin-top: 1rem;
}
.mt4{
    margin-top: 1.5rem;
}
.mt5{
    margin-top: 2rem;
}
.mb1{
    margin-bottom: .25rem;
}
.mb2{
    margin-bottom: .5rem;
}
.mb3{
    margin-bottom: 1rem;
}
.mb4{
    margin-bottom: 1.5rem;
}
.mb5{
    margin-bottom: 2rem;
}

.ml1{
    margin-left: .25rem;
}
.ml2{
    margin-left: .5rem;
}
.m51{
    margin-right: .25rem;
}
.mr2{
    margin-right: .5rem;
}
.note {
  margin: 0 auto;
  padding: var(--padding);
}
.note-header, .project__information, .project__information ul, .project__information ul li{
  overflow: visible;
}
.note-text{
  padding-top: 1.5rem;
}
.button span, .button--h2{
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  border:solid black 1px;
  transition: all .3s;
  text-decoration: none;
}
.button span{
  font-size: 1.25rem;
  font-weight: 400;
}
.button--h2{
  display: inline-block;
}
.button--h2 h2{
  font-size: 2rem;
}
.button--h2:hover {
  transform: rotate(7.5deg);
}

.container-more{
  padding: var(--padding) var(--padding) 4rem; 
}

.projects-grid li {
  width: 100%;
}

@media screen and (min-width: 45em) {
  .button--h2 h2{
  font-size: 3rem;
  }
  .projects-grid  {
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 1.5rem;
    padding-bottom: 3rem;
  }
  .projects-grid  li {
  position: relative;
  --cols: 6;
  --rows: 6;
  }
  .tags-container .project__roles a{
  font-size: 3rem;
  line-height: 1.25em;
}
}

.gallery-item{
  box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.15);
}
.gallery-item--info{
  opacity: 0;
  display: none;
}
.cursor-caption{
  position: fixed;
  opacity: 0;
  left: 0;
  top: 0;
  background-color: black;
  color: white;
  padding: .25rem;
  font-size: 0.85rem;
  z-index: 100;
  transition: opacity 0.3s ease;
}
.cursor-caption.visible{
  opacity: 1;
}
