body {
  margin: 0;
  padding: 0;
  background: #eaf2ce;
  background: radial-gradient(circle, rgba(234, 242, 206, 1) 0%, rgba(214, 202, 188, 1) 50%, rgba(178, 184, 147, 1) 100%);
}
body.homepage {
  overflow-y: hidden;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, p, blockquote {
  color: #3b402a;
}
blockquote {
  position: relative;
  margin-inline-start: 50px;
  font-size: 0.9em;
  line-height: 1.6em;
}
blockquote::before {
  content: '“';
  color: rgba(59, 64, 42, .75);
  position: absolute;
  top: 30px; 
  left: -55px;
  font-size: 5em;
  font-family: "Hedvig Letters Serif", serif;
}
a {
  color: #751632;
  text-decoration: none;
}

/* Fonts */
.font-ovo {
  font-family: "Hedvig Letters Serif", serif;
  font-weight: 400;
  font-style: normal;
}
.font-geist {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

/* Header */
header {
  position: fixed;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
  padding: 24px 0;
}
#logo {
  margin-left: 48px;
  height: 100px;
}
nav {
  margin: 0 48px;
}
nav ul {
  padding-inline-start: 0;
}
nav ul li {
  display: inline-block;
  margin: 0 0 0 24px;
}
nav ul li a, a.underline-on-hover {
  text-decoration: none;
  color: #3b0817;
  position: relative;
}
nav ul li a:hover, nav ul li a.selected {
  color: #751632;
}
nav ul li a::before, a.underline-on-hover::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: #751632;
  bottom: -4px;
  left: 0;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform .3s ease-in-out;
}

nav ul li a:hover::before, nav ul li a.selected::before, a.underline-on-hover:hover::before {
  transform-origin: left;
  transform: scaleX(1);
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
}
footer ul {
  padding-inline-start: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding-bottom: 24px;
}
footer ul li {
  display: inline-block;
  margin: 0 4px;
}
footer ul li a {
  opacity: .5;
}
footer ul li a:hover {
  opacity: 1;
}

/* Background sparkles */
#sparkles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}
.sparkle {
  display: block;
  position: absolute;
  background-repeat: no-repeat;
  background-position:center;
  background-size: 100% 100%;
  overflow: hidden;
  z-index: 2;
  color: transparent;
  -moz-opacity: 0.0;
  opacity: 0.0;
  animation: rotate 6s linear 0s infinite normal;
  -webkit-animation: rotate 6s linear 0s infinite normal;
  -moz-animation: rotate 8s linear 0s infinite normal;
  -ms-animation: rotate 8s linear 0s infinite normal;
  -o-animation: rotate 8s linear 0s infinite normal;
}
.sparkle.large {
  background-image: url('static/images/sparkle-large.png');
  width: 20px;
  height: 20px;
  top: 10%;
  left: 10%;
}
.sparkle.small {
  background-image: url('static/images/sparkle-small.png');
  width: 15px;
  height: 15px;
  right: 20%;
  bottom: 15%;
}
@keyframes rotate {
  0% {
    -webkit-transform: scale(0.5) rotate(0deg);
    opacity: 0;
  }
  25% {
    -webkit-transform: scale(1) rotate(360deg);
    opacity: 1;
  }
  50% {
    -webkit-transform: scale(0.5) rotate(720deg);
    opacity: 0;
  }
  100% {
    -webkit-transform: scale(0.5) rotate(0deg);
    opacity: 0;
  }
}

#gallery {
  width: 100vh;
  height: 100vw;
  overflow-y: auto;
  overflow-x: hidden;
  transform-origin: right top;
  transform: rotate(-90deg) translateY(-100vh);
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#gallery > figure {
  display: block;
  width: 350px;
  transform: rotate(90deg);
  opacity: .4;
  margin: 30px 0;
  color: #3b402a;
}
#gallery > figure.opacity-1 {
  opacity: 1;
}
#gallery > figure.portrait {
  margin: -110px 0;
}
#gallery > figure.square {
  margin: -40px 0;
}
#gallery > figure:first-child {
  margin-top: 48vw;
}
#gallery > figure:last-child {
  margin-bottom: 48vw;
}
#gallery > figure.skew-top {
  margin-right: -40px;
}
#gallery > figure.skew-bottom {
  margin-left: -50px;
}
#gallery > figure.small {
  width: 300px;
}
#gallery > figure.medium {
  width: 425px;
}
#gallery > figure.large {
  width: 500px;
}
img {
  object-fit: contain;
  max-width: 100%;
}

#gallery figure > figcaption {
  margin: 24px auto 0;
  width: 70%;
  text-align: center;
  opacity: 0;
}
#gallery > figure:hover {
  opacity: 1;
  z-index: 2 !important;
}
#gallery > figure:hover > figcaption {
  opacity: 1;
}

figure.opacity-1 > figcaption {
  opacity: 1;
}
.opacity-1 {
  opacity: 1;
  z-index: 2 !important;
}

/* Mobile styling for homepage */
@media screen and ((max-height: 750px) or (max-width: 475px)) {
  #gallery {
    width: 90vh;
    padding-right: 10vh;
  }
  #gallery figure > figcaption {
    font-size: .8em;
    margin: 12px auto 0;
    width: 60%;
  }
  #gallery > figure {
    max-width: 30vh;
    margin: -5px 0;
  }
  #gallery > figure.portrait {
    margin: -95px 0;
  }
  #gallery > figure.square {
    margin: -40px 0;
  }

  header {
    display: flex;
    flex-direction: column;
  }

  nav {
    margin: 0 16px;
  }
  nav ul li {
    margin: 0 20px;
  }
  #logo {
    margin: 0;
  }
}

/* SERVICES PAGE */
body.custom header, body.custom footer {
  position: relative;
}
body.custom main {
  margin: 24px 48px;
}

/* Splash */
body.custom main section.splash {
  display: flex;
  flex-direction: row;
  justify-content: center;
}
body.custom main section.splash div.splash-image {
  background-image: url('static/images/customs/splash.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  min-height: 400px;
  height: 70vh;
  flex: 4;
  margin-left: -48px;
}
body.custom main section.splash div.splash-description {
  flex: 2;
  margin-right: -48px;
  margin-left: -24px;
}
body.custom main section.splash div.splash-description .splash-description-bg {
  background-color: rgba(39, 45, 30, 0.25);
  margin-top: 15%;
  padding: 6px 32px 6px;
}
body.custom main section.splash h1 {
  color: #fff;
  font-size: 2.25em;
}
body.custom main section.splash .call-to-action {
  font-size: 1em;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 64px;
  justify-self: end;
}
body.custom main section.splash a:hover {
  background: white;
  color: #b10b3c;
}
body.custom main section.splash a {
  background: #b10b3c;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  padding: 1.2em 2em;
  white-space: nowrap;
}

/* Services list on customs page */
body.custom main section.services {
  display: flex;
  flex-direction: row;
  margin: 64px 0;
}
body.custom main div.service {
  display: flex;
  flex-direction: column;
  align-items: start;
  margin: 24px;
  flex: 1;
}
body.custom div.service .service-description {
  flex-grow: 1;
  margin-right: 16px;
}
body.custom div.service .service-description p {
  line-height: 1.6em;
}
.service .service-examples .figures {
  display: flex;
  flex-direction: row;
  margin: 0;
}
.service .service-examples .figures figure {
  width: 30%;
  margin: 0 12px 0 0;
}
.service .service-examples .figures figure a {
  display: flex;
  flex-direction: column;
  justify-content: end;
  text-transform: lowercase;
  margin-top: 12px;
  text-align: right;
  font-weight: 500;
  text-decoration: none;
  font-size: .8em;
  color: #3b0817;
  padding: 12px 12px 8px;
  border: 1px solid rgba(58, 8, 23, 0.25);
}
.service .service-examples .figures figure a:hover {
  background: rgba(255, 255, 255, 0.25);
}
.service .service-examples .figures figure a img {
  margin-bottom: 8px;
}
.service .service-examples h3 {
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 2px;
  font-size: 0.9em;
}

/* Process section on Customs page */
body.custom section.process {
  margin: 120px 0;
  display: flex;
  flex-direction: column;
}
body.custom section.process h2 {
  margin: 0 auto;
  font-weight: 600;
  margin-bottom: 32px;
}
body.custom section.process h3 {
  font-weight: 600;
  margin: 0;
}
body.custom section.process .steps {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
}
body.custom section.process .steps .step {
  font-size: 0.9em;
  line-height: 1.5em;
  text-align: justify;
  margin: 0 -8px;
  padding: 0 20px;
  background: rgba(126, 129, 75, 0.25);
}
body.custom section.process .steps .step p:last-child {
  margin-bottom: 10px;
}
body.custom section.process .steps .step:nth-child(1) {
  margin-bottom: -16px;
}
body.custom section.process .steps .step:nth-child(2) {
  margin-top: 20px;
  margin-left: -4px;
}
body.custom section.process .steps .step:nth-child(3) {
  margin-bottom: -32px;
}
body.custom section.process .steps .step:nth-child(4) {
  margin-top: 8px;
  margin-left: -2px;
}
body.custom section.process .steps .step .step-number {
  margin-bottom: 0;
  font-size: 0.75em;
  text-transform: uppercase;
}


/* Mobile styles for Customs page */
@media screen and ((max-height: 750px) or (max-width: 850px)) {
  .service figure a {
    font-size: .7em;
  }

  body.custom main {
    margin: 24px;
  }
  body.custom main section.splash {
    flex-direction: column;
  }
  body.custom main section.splash div.splash-description {
    margin-right: -24px;
  }
  body.custom main section.splash div.splash-description .splash-description-bg {
    margin-top: -32px;
  }

  body.custom main section.services {
    flex-direction: column;
  }
  body.custom section.services .service .service-examples .figures figure {
    width: 35%;
  }
  .service .service-examples .figures figure a {
    padding: 8px 8px 4px;
  }
  body.custom main div.service {
    margin: 24px 0;
  }

  body.custom section.process {
    margin: 80px 0;
  }
  body.custom section.process .steps {
    flex-direction: column;
  }
  body.custom section.process .steps .step {
    padding: 20px;
  }
  body.custom section.process .steps .step:nth-child(2) {
    margin-top: -6px;
    margin-left: 4px;
    margin-right: -20px;
  }
  body.custom section.process .steps .step:nth-child(3) {
    margin-top: -12px;
  }
  body.custom section.process .steps .step:nth-child(4) {
    margin-right: 4px;
    margin-left: -24px;
  }
}
@media screen and (max-width: 500px) {
  body.custom section.services .service .service-examples .figures figure {
    width: 50%;
  }
}

/* ABOUT PAGE */
body.about header, body.about footer {
  position: relative;
}
body.about main {
  padding: 0 48px 64px;
  display: flex;
  flex-direction: row;
  align-items: center;
}
body.about main figure, body.about main section {
  flex: 1;
}
body.about main figure {
  text-align: right;
}
body.about main p {
  line-height: 1.6em;
}
body.about main section {
  padding: 0 24px;
}
@media screen and ((max-height: 750px) or (max-width: 850px)) {
  body.about main {
    flex-direction: column-reverse;
  }
  body.about main section {
    padding: 0 12px;
  }
}

/* PROJECT PAGES */
body.project header, body.project footer {
  position: relative;
}
body.project main {
  margin: 24px 48px 100px;
  display: flex;
  flex-direction: row;
}
body.project main section.images {
  display: flex;
  flex: 2;
  align-items: center;
}
body.project main section.images figure {
  position: relative;
}
body.project main section.images figure figcaption {
  position: absolute;
  top: 0;
  left: 0;
  text-transform: uppercase;
  font-size: 0.7em;
  font-weight: 600;
  color: #3b0817;
  letter-spacing: 1px;
  background-color: rgba(255, 255, 255, 0.5);
}

body.project main section.images .col1 {
  display: flex;
  flex-direction: column;
  flex: 2;
}
body.project main section.images .col1 figure {
  opacity: 0.6;
  margin: 0;
}
body.project main section.images .col1 figure:nth-child(odd) {
  margin-right: -40px;
  margin-top: 32px;
}
body.project main section.images .col1 figure:nth-child(even) {
  margin-top: -32px;
  margin-left: 48px;
  margin-right: -32px;
}
body.project main section.images .col1 figure:nth-child(3n) {
  margin-top: -24px;
  margin-left: 24px;
  margin-right: -48px;
}
body.project main section.images .col1 figure:hover {
  opacity: 1;
}

body.project main section.images .col2 {
  flex: 4;
}

body.project main section.project-details {
  flex: 1.5;
  padding: 0 24px;
}
body.project main section.project-details h1 {
  margin-bottom: 6px;
}
body.project main section.project-details h2 {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8em;
  margin-top: 0;
  font-weight: 400;
  margin-bottom: 24px;
  line-height: 1.4em;
}
body.project main section.project-details p {
  line-height: 1.5em;
}
body.project main section.project-details blockquote {
  font-style: italic;
}
body.project main section.project-details a.back-to-services-link {
  margin-top: 48px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  font-weight: 500;
  color: #3b0817;
  font-size: 0.9em;
}


/* Mobile styles for Project pages */
@media screen and ((max-height: 750px) or (max-width: 850px)) {
  body.project main {
    flex-direction: column-reverse;
    margin: 24px 24px 100px;
  }
  body.project main section.images {
    flex-direction: column;
  }
  body.project main section.images .col2 figure {
    margin-left: -12px;
    margin-top: -64px;
  }
  body.project main section.images .col1 figure {
    opacity: 1;
  }
  body.project main section.images .col1 figure:nth-child(odd) {
    margin-right: 0;
  }
  body.project main section.images .col1 figure:nth-child(even) {
    margin-right: 16px;
  }
  body.project main section.images figure figcaption {
    font-size: 1em;
  }
  body.project main section.project-details h1 {
    margin-top: 0;
  }
  body.project main section.project-details {
    margin-top: 0;
    display: flex;
    flex-direction: column-reverse;
    padding: 0;
  }
  body.project main section.project-details a.back-to-services-link {
    margin-top: 0;
    margin-bottom: 48px;
  }
}

.mobile-only {
  display: none;
}
@media screen and ((max-height: 750px) or (max-width: 850px)) {
  .mobile-only {
    display: initial;
  }

  nav ul {
    margin: 0;
  }
  footer ul {
    justify-content: end;
    padding: 0 12px 0;
  }
  div.reach-out {
    margin-bottom: 96px;
    display: block;
    text-align: center;
    padding: 0 12px;
  }
  div.reach-out h3 {
    margin-bottom: 12px;
  }
  div.reach-out p {
    margin-bottom: 48px;
  }
  div.reach-out a {
    font-size: 1em;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    background: #b10b3c;
    color: white;
    padding: 12px 24px;
  }
}