@font-face {
  font-family: Open Sans;
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("/fonts/open-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Open Sans;
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("/fonts/open-sans-latin.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color: #424242;
  font-synthesis: none;
  --red: #b7271a;
  --muted: #777;
  --line: #e7e7e7;
  --content: 1080px;
  background: #fff;
  font-family: Open Sans, Arial, sans-serif;
  line-height: 1.65;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a, button {
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: default;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 5px;
}

h1, h2, p {
  margin: 0;
}

h1 {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.35;
}

h2 {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
}

.container {
  width: min(var(--content),calc(100% - 64px));
  margin-inline-start: auto;
  margin-inline-end: auto;
}

.section {
  padding-block-start: 68px;
  padding-block-end: 80px;
}

.section-heading {
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  display: flex;
}

.section-heading h1 {
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 20px;
}

.text-link, .back-link {
  font-size: 13px;
}

.text-link:hover, .back-link:hover {
  color: var(--red);
}

.skip-link {
  z-index: 100;
  background: #fff;
  padding: 12px 20px;
  position: fixed;
  top: -80px;
  left: 16px;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  z-index: 20;
  background: #fff;
  height: 87px;
  position: relative;
}

.header-inner {
  width: min(var(--content),calc(100% - 64px));
  justify-content: space-between;
  align-items: center;
  height: 100%;
  margin: auto;
  display: flex;
}

.logo img {
  object-fit: contain;
  width: 59px;
  height: 59px;
}

nav {
  gap: 27px;
  display: flex;
}

nav a {
  padding: 12px 0;
  font-size: 14px;
  transition: color .15s;
}

nav a:hover, nav a[aria-current] {
  color: var(--red);
}

.menu-toggle {
  background: none;
  border: 0;
  align-items: center;
  gap: 10px;
  padding: 10px;
  display: none;
}

.hero {
  height: calc(100vh - 87px);
  max-height: 720px;
  color: #fff;
  background: #2b2925;
  height: min(720px, 100svh - 87px);
  min-height: 440px;
  position: relative;
}

.hero-slides {
  height: 100%;
  position: relative;
}

.hero-slide {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s, visibility .8s;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide > img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.hero-slide:after {
  content: "";
  top: 45%;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  background: linear-gradient(#0000, #0000009e);
  position: absolute;
  top: 45%;
  bottom: 0;
  left: 0;
  right: 0;
}

.hero-caption {
  z-index: 1;
  text-align: center;
  text-wrap: balance;
  max-width: 930px;
  margin: auto;
  position: absolute;
  bottom: 82px;
  left: 32px;
  right: 32px;
}

.hero-caption p {
  font-size: 17px;
  line-height: 1.7;
}

.hero-caption a {
  text-transform: uppercase;
  letter-spacing: .07em;
  border-bottom: 1px solid #ffffff80;
  margin-top: 16px;
  padding: 5px 0;
  font-size: 12px;
  display: inline-block;
}

.hero-controls {
  z-index: 2;
  justify-content: center;
  align-items: center;
  gap: 20px;
  display: flex;
  position: absolute;
  bottom: 25px;
  left: 0;
  right: 0;
}

.hero-controls button {
  color: #fff;
  background: none;
  border: 0;
  min-width: 36px;
  min-height: 36px;
  padding: 6px;
}

.hero-dots {
  gap: 7px;
  display: flex;
}

.hero-dots button {
  min-width: 30px;
  padding: 0;
  position: relative;
}

.hero-dots button:after {
  content: "";
  border: 1px solid #fff;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  margin: auto;
  display: block;
}

.hero-dots button[aria-pressed="true"]:after {
  background: #fff;
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 28px;
  display: grid;
}

.project-card-image {
  background: #f3f2f0;
  height: 0;
  padding-bottom: 71%;
  position: relative;
  overflow: hidden;
}

.project-card-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform .4s;
  position: absolute;
  top: 0;
  left: 0;
}

.project-card-arrow {
  opacity: 0;
  background: #ffffffeb;
  place-items: center;
  width: 32px;
  height: 32px;
  transition: opacity .2s;
  display: grid;
  position: absolute;
  bottom: 10px;
  right: 12px;
}

.project-card a:hover img {
  transform: scale(1.025);
}

.project-card a:hover .project-card-arrow {
  opacity: 1;
}

.project-card a:focus-visible .project-card-arrow {
  opacity: 1;
}

.project-card h2 {
  text-transform: uppercase;
  letter-spacing: .045em;
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.65;
}

.project-detail h1 {
  margin: 16px 0 36px;
  font-size: 27px;
}

.back-link {
  color: var(--muted);
}

.gallery {
  gap: 24px;
  max-width: 1050px;
  display: grid;
}

.gallery-item {
  background: #f4f3f1;
  display: block;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: auto;
}

.gallery-item > span {
  background: #ffffffdc;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: 22px;
  display: grid;
  position: absolute;
  bottom: 16px;
  right: 16px;
}

.next-project {
  border-top: 1px solid var(--line);
  justify-content: space-between;
  gap: 20px;
  margin-top: 60px;
  padding-top: 24px;
  display: flex;
}

.next-project > span {
  color: var(--muted);
  font-size: 13px;
}

.next-project a {
  font-size: 15px;
}

.lightbox {
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  max-height: 100svh;
  color: #fff;
  background: #151515;
  border: 0;
  height: 100svh;
  padding: 0;
  overflow: hidden;
}

.lightbox::backdrop {
  background: #151515;
}

.lightbox-toolbar {
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  height: 64px;
  padding: 12px 24px;
  display: flex;
}

.lightbox-caption {
  font-size: 13px;
}

.lightbox button {
  color: #fff;
  background: none;
  border: 0;
  min-width: 44px;
  min-height: 44px;
  font-size: 24px;
}

.lightbox-stage {
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
  gap: 10px;
  height: calc(100% - 64px);
  padding: 0 12px 20px;
  display: grid;
}

.lightbox-image {
  object-fit: contain;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.lightbox-stage > button {
  padding: 0;
}

.about h1 {
  margin-bottom: 30px;
}

.prose {
  max-width: 900px;
  font-size: 15px;
  line-height: 1.9;
}

.prose p + p {
  margin-top: 20px;
}

.services {
  margin-block-start: 12px;
  margin-block-end: 36px;
  padding-left: 20px;
}

.services li {
  padding-left: 4px;
}

.about-images {
  gap: 26px;
  margin-top: 44px;
  display: grid;
}

.about-images img {
  width: 100%;
}

.contact-intro {
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin-top: 26px;
  display: flex;
}

.contact-intro a:hover {
  color: var(--red);
}

.locations {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 48px;
  display: grid;
}

.locations article > img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.locations h2 {
  margin: 24px 0 16px;
  font-size: 16px;
}

address {
  font-size: 14px;
  font-style: normal;
  line-height: 1.9;
}

address span, address a {
  display: block;
}

address a:hover {
  color: var(--red);
}

.certificate-content {
  max-width: 760px;
  margin-top: 40px;
}

.certificate-content h2 {
  margin: 36px 0 24px;
  font-size: 17px;
}

.certificate-image {
  margin-block-start: 28px;
  margin-block-end: 28px;
  display: block;
}

.certificate-image img {
  width: 100%;
}

.site-footer {
  color: #686868;
  background: #f5f5f5;
  border-top: 1px solid #eee;
  font-size: 11px;
}

.footer-inner {
  width: min(var(--content),calc(100% - 64px));
  flex-direction: column;
  gap: 8px;
  margin: auto;
  padding: 27px 0;
  display: flex;
}

.footer-links {
  flex-wrap: wrap;
  gap: 8px 22px;
  display: flex;
}

.footer-divider {
  margin-inline-start: 5px;
  margin-inline-end: 5px;
}

.footer-links a:hover {
  color: var(--red);
}

.not-found {
  min-height: 65vh;
}

.not-found h1 {
  margin: 20px 0;
}

.not-found a {
  margin-top: 24px;
  display: inline-block;
}

@media (min-width: 1600px) {
  :root {
    --content: 1200px;
  }

  .hero {
    height: 760px;
    max-height: 760px;
  }
}

@media (max-width: 980px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .locations {
    gap: 24px;
  }

  .locations h2 {
    font-size: 15px;
  }

  .hero {
    height: 620px;
  }
}

@media (max-width: 700px) {
  .site-header {
    height: 76px;
  }

  .logo img {
    width: 50px;
    height: 50px;
  }

  .header-inner, .container, .footer-inner {
    width: calc(100% - 40px);
  }

  .menu-toggle {
    display: flex;
  }

  nav {
    gap: 17px;
  }

  nav a {
    font-size: 13px;
  }

  #main-nav {
    border-bottom: 1px solid var(--line);
    background: #fff;
    padding: 12px 20px;
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    box-shadow: 0 8px 14px #00000006;
  }

  #main-nav.is-open {
    flex-direction: column;
    gap: 0;
    display: flex;
  }

  #main-nav a {
    padding: 12px;
  }

  .hero {
    height: calc(78vh - 76px);
    min-height: 480px;
    height: calc(78svh - 76px);
    max-height: 680px;
  }

  .hero-caption {
    bottom: 85px;
    left: 24px;
    right: 24px;
  }

  .hero-caption p {
    font-size: 16px;
  }

  .hero-slide > img {
    object-position: 50% center;
  }

  .hero-caption a {
    font-size: 11px;
  }

  .section {
    padding-block-start: 44px;
    padding-block-end: 56px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .section-heading h1 {
    letter-spacing: .06em;
    font-size: 17px;
  }

  .text-link {
    font-size: 12px;
  }

  .project-grid {
    gap: 28px 18px;
  }

  .project-card h2 {
    letter-spacing: .02em;
    margin-top: 10px;
    font-size: 10px;
  }

  .project-card-arrow {
    display: none;
  }

  .gallery {
    gap: 16px;
  }

  .gallery-item > span {
    width: 30px;
    height: 30px;
    bottom: 10px;
    right: 10px;
  }

  .project-detail h1 {
    margin-bottom: 28px;
    font-size: 24px;
  }

  .locations {
    grid-template-columns: 1fr;
    gap: 44px;
    margin-top: 36px;
  }

  .locations article > img {
    aspect-ratio: 16 / 9;
  }

  .locations h2 {
    margin-top: 18px;
    font-size: 18px;
  }

  .lightbox-toolbar {
    padding: 10px 16px;
  }

  .lightbox-caption {
    font-size: 11px;
  }

  .lightbox-stage {
    grid-template-columns: 32px 1fr 32px;
    gap: 3px;
    padding: 0 5px 15px;
  }

  .lightbox-stage > button {
    min-width: 30px;
    font-size: 21px;
  }

  .next-project {
    flex-direction: column;
    gap: 8px;
    margin-top: 40px;
  }

  .prose {
    font-size: 14px;
  }

  .footer-inner {
    padding-block-start: 24px;
    padding-block-end: 24px;
  }

  .footer-links {
    gap: 8px 18px;
  }

  .certificate-content {
    margin-top: 26px;
  }
}

@media (max-width: 430px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card h2 {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, :before, :after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.document-link {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.document-link h2 {
  margin: 0 0 8px;
}

.document-link a:hover {
  color: var(--red);
}

.document-link p {
  color: var(--muted);
  font-size: 12px;
}
