@font-face {
  font-family: 'DecimaMonoProRegular';
  src: url('fonts/DecimaMonoProRegular.woff2') format('woff2'),
  url('fonts/DecimaMonoProRegular.woff') format('woff'),
  url('fonts/DecimaMonoProRegular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'DecimaMonoProBold';
  src: url('fonts/DecimaMono-Bold.woff2') format('woff2'),
  url('fonts/DecimaMono-Bold.woff') format('woff'),
  url('fonts/DecimaMono-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: 'DecimaMonoProItalic';
  src: url('fonts/DecimaMonoPro-Italic.woff2') format('woff2'),
  url('fonts/DecimaMonoPro-Italic.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  font-family: 'DecimaMonoProRegular', sans-serif;
  text-transform: uppercase;
}

body {
  color: #43433E;
  background-color: #fdfbf6;
}

a, a:link {
  font-size: 14px;
  text-decoration: none;
  color: #43433E;
  border-bottom: 1px solid;
}
a:visited {
  color: #43433E;
}

.header {
  height: 28px;
  padding: 55px 45px;
  margin-bottom: 60px;
}

.progress {
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  width: 0;
  height: 5px;
  background-color: #F7F7EF;
  display: none;
  transition: width 0.2s ease-out;
}
.logo {
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 120px;
}

.main {
  counter-reset: number;
}
.menu {
  display: inline-block;
}
a.menu-item {
  font-size: 14px;
  display: inline-block;
  line-height: 28px;
  vertical-align: middle;
  margin-right: 100px;
  border-bottom: none;
}
a.menu-item:last-child {
  margin-right: 0;
}
a.menu-item:link, a.menu-item:visited {
  color: #43433E;
  text-decoration: none;
}
a.menu-item.active {
  color: #000;
  text-decoration: underline;
  font-style: italic;
}

.intro {
  color: #43433E;
  margin: 0 45px 100px 45px;
  transition: opacity 0.2s ease-out;
}
.intro.faded {
  opacity: 0;
}
.intro p {
  font-size: 32px;
  line-height: 150%;
  font-family: 'DecimaMonoProBold', sans-serif;
  margin-bottom: 35px;
}

.projects {
  margin: 0px 0px;
}
.projects-list {
  margin-bottom: 70px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
}
.projects-title.faded {
  opacity: 0;
}
.projects-title span {
  font-family: 'DecimaMonoProBold';
}
.projects-title {
  font-family: 'DecimaMonoProBold';
  color: #43433E;
  font-size: 32px;
  line-height: 118.8%;
  margin: 0 45px 35px 45px;
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: #000 1px solid;

}
a.project-item {
  position: relative;
  display: block;
  width: 25%;
  /*height: 180px;*/
  padding: 45px 45px 60px 45px;
  box-sizing: border-box;
  text-decoration: none;
  color: #43433E;
  font-size: 14px;
  border-bottom: none;
  counter-increment: number;
  position: relative;
}
.project-item:hover {
  background-color: rgba(255,255,255,0.9);
}
.project-item-descr {
  margin: 10px 0;
}
.project-item-client {
  position: absolute;
  bottom: 44px;
  display: none;
}
.project-item-client::before {
  content: '[ ';
}
.project-item-client::after {
  content: ' ]';
}

.project-item:hover .project-item-client {
  display: block;
}

.footer {
  box-sizing: border-box;
  height: 60px;
  padding: 20px 45px;
  text-align: right;
  margin-top: 160px;
}
.footer-item {
  font-size: 14px;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  margin-right: 45px;
  border-bottom: 1px solid;
  cursor: pointer;
}
.footer-item:last-child {
  margin-right: 0;
}
.footer-contactus {
  display: none;
  text-align: left;
  white-space: nowrap;
  position: absolute;
  bottom: 25px;
  right: 0;
  padding: 25px;
  background-color: rgba(0, 0, 0, 0.2);
  line-height: 160%;
}

.backgrounds {
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.body-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
}
.body-bg-item {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: all 0.3s ease-in-out;
  background-size: cover;
  background-position: center center;
}
.body-bg-item.visible {
  opacity: 1;
}
.hidden {
  opacity: 0.1;
}
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.9);
  line-height: 100vh;
  text-align: center;
}

/* narrow desktops or tablets */
@media all and (max-width: 1152px) {
  .header, .footer, a.project-item {
    padding-left: 20px;
    padding-right: 20px;
  }
  .intro, .projects-title {
    margin-right: 20px;
    margin-left: 20px;
  }
  a.project-item {
    width: 50%;
  }

  .intro p {
    font-size: 28px;
  }
  .projects-title {
    font-size: 28px;
  }
  .header {
    margin-bottom: 30px;
  }
  .intro {
    margin-bottom: 80px;
  }

  /* wedo */
  .allprojects .row.heading {
    display: none;
  }
  .allprojects .row {
    flex-wrap: wrap;
  }
  .ap-inds, .ap-serv {
    display: none;
  }
  .ap-proj {
    order: 1;
  }
  .ap-clie {
    order: 2;
  }
  .cell {
    flex-basis: 100% !important;
    border-bottom: 0;
  }

}

.allprojects {
  position: relative;
}

#customLine {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
}

@media (max-width: 767px) {
  .logo {
    margin-right: 30px;
  }
  a.menu-item {
    margin-right: 20px;
  }
}
@media (max-width: 430px) {
  .menu {
    display: block;
    margin-top: 8px;
  }
  a.menu-item {
    margin-right: 20px;
  }
  a.project-item {
    width: 100%;
  }
  .footer-item {
    margin-right: 15px;
  }

  .header {
    padding-top: 35px;
    padding-bottom: 50px;
  }
  .intro p {
    font-size: 22px;
  }
  .projects-title {
    font-family: 'DecimaMonoProRegular';
    font-size: 14px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: #000 1px solid;
  }
  .header {
    margin-bottom: 0px;
  }
  .intro {
    margin-bottom: 100px;
  }
  a.project-item {
    padding-top: 30px;
  }

}

/* mobile (iPhone 14 Pro Max = 430x932 */
@media (hover: none) and (max-width: 430px) {

  /* prevent address bar from hiding */
  html {
    /*background-color: red;*/
    overflow: hidden;
    width: 100%;
  }
  body {
    height: 100%;
    position: fixed;
    /* prevent overscroll bounce*/
    /*background-color: lightgreen;*/
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    /* iOS velocity scrolling */
  }

  .progress {
    display: block;
  }
  .footer {
    position: relative;
    background: rgba(255,255,255,0.9);
  }
  .footer-contactus {
    background: rgba(255,255,255,0.9);
    bottom: 37px;
    right: -20px;
  }
  .projects-list {
    margin-bottom: 0;
  }
  a.project-item .project-item-title, a.project-item .project-item-descr, a.project-item .project-item-client {
    font-family: 'DecimaMonoProBold';
    margin-right: 25px;
  }
  .project-item-descr, .project-item-client {
    margin: 10px 40px 10px 0;
  }
  a.project-item {
    transition: all 0.1s ease-out;
    padding-top: 30px;
    padding-bottom: 30px;
    height: 100vh;
    margin-right: 0px;
    /*margin-bottom: 400px;*/
    /*opacity: 0;*/
    font-family: 'DecimaMonoProBold';
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    mix-blend-mode: exclusion;
    /*right: 20px;*/
  }
  a.project-item::before {
    content: counter(number);
    position: absolute;
    right: 20px;
    line-height: 22px;
    font-size: 14px;
    font-family: 'DecimaMonoProRegular';
  }
  a.project-item:hover {
    background-color: transparent;
  }
  a.project-item.active {
    opacity: 1;
    background-color: rgba(255,255,255,0.9)
  }
  .project-item-client {
    position: static;
    display: block;
  }
  .touch-hide {
    display: none;
  }
  .hidden {
    opacity: 1;
  }
}

/* ----------
   WE DO
   ---------- */

.allprojects {
  display: flex;
  flex-direction: column;
}
.content-margins {
  margin: 0 45px 100px 45px;
}
.row {
  display: flex;
  width: 100%;
}

.cell {
  flex-basis: auto;
  flex: 1;
  padding: 1em;
  border-bottom: 1px solid black;
}
.cell.year {
  font-family: DecimaMonoProBold;
  padding-top: 64px;
  padding-bottom: 8px;
}
.row.heading .cell {
  color: #b1afac;
  border-bottom: none;
}
.row.heading+.row .cell.year {
  padding-top: 16px;
}
.row.clickable>.cell {
  cursor: pointer;
}
.row.clickable.show .ap-serv-more {
  display: none;
}
.row.clickable.show .ap-serv-others {
  display: inline;
}
.searchbar {
  border-bottom: 1px solid;
}
.searchbar input {
  width: 100%;
  font-size: 36px;
  color: #43433E;
  font-family: DecimaMonoProItalic;
  background: transparent;
}
.ap-serv-more {
  cursor: pointer;
  border-bottom: #43433E 1px solid;
  font-size: 15px;
}
.ap-serv-others {
  display: none;
}
.ap-proj {
  font-family: DecimaMonoProBold;
}
.ap-inds, .ap-serv {
  font-family: DecimaMonoProItalic;
}
.cell.ap-awar {
  padding-bottom: 12px;
}

.aw-shortlist, .aw-bronze, .aw-silver, .aw-gold, .aw-granprix {
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
  margin-bottom: 0px;
}
.aw-shortlist:before, .aw-bronze:before, .aw-silver:before, .aw-gold:before, .aw-granprix:before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: #000 1px solid;
  border-radius: 9px;
  vertical-align: middle;
}
.aw-shortlist:after, .aw-bronze:after, .aw-silver:after, .aw-gold:after, .aw-granprix:after {
  content: attr(data-aw);
  display: inline-block;
  margin: 0 3px;
  border-bottom: #000 1px solid;
  vertical-align: middle;
}
/*.aw-shortlist:after { top: -4px; left: 12px; }*/
.aw-shortlist:before { background-color: #E5E5E5; width: 8px; height: 8px; margin-left: 1px; }
.aw-bronze:before { background-color: #D7B894; }
.aw-silver:before { background-color: #C1C1C1; }
.aw-gold:before { background-color: #FDD15E; }
.aw-granprix:before { background-color: #ff0000; }

/* festivals & cats */
.aw-shortlist, .aw-bronze, .aw-silver, .aw-gold, .aw-granprix {
  position: relative;
}
.aw-shortlist:hover::before, .aw-shortlist:hover::after,
.aw-bronze:hover::before, .aw-bronze:hover::after,
.aw-silver:hover::before, .aw-silver:hover::after,
.aw-gold:hover::before, .aw-gold:hover::after,
.aw-granprix:hover::before, .aw-granprix:hover::after
{
  position: relative;
  z-index: 2;
}

.row:hover .aw-shortlist:before, .row:hover .aw-shortlist:after,
.row:hover .aw-bronze:before, .row:hover .aw-bronze:after,
.row:hover .aw-silver:before, .row:hover .aw-silver:after,
.row:hover .aw-gold:before, .row:hover .aw-gold:after,
.row:hover .aw-granprix:before, .row:hover .aw-granprix:after {
  position: relative;
  z-index: 2;
}

.aw-fest {
  flex-direction: row;
  flex-basis: 50%;
  flex-wrap: wrap;
  display: none;
  background: #F7F7EF;
  border: 1px solid;
  padding: 40px 5px 0 5px;
  position: absolute;
  top: -5px;
  left: -5px;
  z-index: 1;
  width: 250px;
}
.fn {
  box-sizing: border-box;
  width: 40%;
  font-family: DecimaMonoProItalic;
  font-size: 11px;
  padding-right: 5px;
  padding-bottom: 5px;
}
.ct {
  box-sizing: border-box;
  width: 60%;
  font-family: DecimaMonoProRegular;
  font-size: 9px;
  padding-bottom: 5px;
}

@media all and (max-width: 1152px) {
  /* wedo tablets and less */
  .content-margins {
    margin: 0 20px 20px 20px
  }
  .searchbar input {
    font-size: 16px;
  }
  .allprojects .row.heading {
    display: none;
  }
  .allprojects .row {
    flex-wrap: wrap;
    cursor: pointer;
  }
  .cell.year {
    padding-left: 0;
    font-family: DecimaMonoProRegular;
  }
  .ap-inds, .ap-serv-more {
    display: none;
  }
  .ap-proj {
    font-family: DecimaMonoProRegular;
    order: 1;
    border-bottom: 0;
    font-size: 14px;
    padding: 12px 0 6px 0;
    position: relative;
  }
  .ap-proj:after {
    content: '+';
    position: absolute;
    right: 0;
    top: 10px;
    font-size: 20px;
    font-family: DecimaMonoProItalic;
  }
  .ap-clie {
    order: 2;
    border-bottom: 0;
    font-size: 11px;
    font-family: DecimaMonoProItalic;
    padding: 0;
  }
  .ap-awar {
    order: 3;
    padding: 1em 0;
  }
  .cell {
    flex-basis: 100%;
  }
  .cell.ap-awar {
    padding: 12px 0;
  }
  .cell.coll {
    /*padding-top: 0;*/
    height: 20px;
  }
  .ap-awar.coll:before {
    content: '';
  }
  .ap-awar:before {
    content: 'AWARDS: ';
    font-size: 11px;
    font-family: DecimaMonoProItalic;
  }
  .aw-shortlist, .aw-bronze, .aw-silver, .aw-gold, .aw-granprix {
    margin-bottom: 0;
  }
  .aw-shortlist:before, .aw-bronze:before, .aw-silver:before, .aw-gold:before, .aw-granprix:before {
    width: 12px;
    height: 12px;
    border-radius: 7px;
  }
  .aw-shortlist:after, .aw-bronze:after, .aw-silver:after, .aw-gold:after, .aw-granprix:after {
    font-size: 12px;
  }

}
