@font-face {
  font-family: "Bebas Neue";
  src: url("../fonts/bebas-neue-latin-ext.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Bebas Neue";
  src: url("../fonts/bebas-neue-latin.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #111111;
  --fg: #ffffff;
  --muted: #999999;
  --field: #3a3a3a;
  --gutter: 58px;
  --gap: 5px;
  --font: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

.site { min-height: 100vh; display: flex; flex-direction: column; }
.content { flex: 1; padding: 0 var(--gutter); }

/* Header */
.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px var(--gutter) 52px;
  min-height: 160px;
}
.nav { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); display: flex; gap: 24px; margin-top: -5px; }
.nav a, .mobile-nav a {
  font-size: 19px;
  line-height: 19px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.nav a:hover, .nav a.active, .mobile-nav a.active { color: var(--fg); }
.logo { display: block; width: 476px; max-width: calc(100% - 2 * 380px); }
.logo img { width: 100%; height: auto; }

.menu-toggle {
  display: none;
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; background: none; padding: 11px 9px; cursor: pointer;
}
.menu-toggle span { display: block; height: 2px; background: var(--fg); margin: 4px 0; transition: transform .25s, opacity .25s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { display: none; }

/* Gallery covers */
.covers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .details {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 20px; text-align: center;
  background: rgba(17, 17, 17, .8);
  opacity: 0; transition: opacity .3s ease;
}
.cover:hover .details, .cover:focus-visible .details { opacity: 1; }
.cover .t { font-size: 24px; line-height: 28px; text-transform: uppercase; color: var(--fg); }
.cover .y, .cover .d { font-size: 16px; line-height: 20px; color: var(--muted); text-transform: uppercase; }

/* Page header */
.page-header { text-align: center; padding: 30px 0 80px; max-width: 800px; margin: 0 auto; }
.page-header h1 { font-size: 30px; line-height: 54px; font-weight: 400; margin: 0; text-transform: uppercase; }
.page-header .desc { font-size: 20px; line-height: 26px; color: var(--muted); margin: 10px 0 0; text-transform: uppercase; }
.page-header .desc + .desc { margin-top: 2px; }
.page-header .desc a { color: var(--fg); }

/* Modules */
.modules { display: flex; flex-direction: column; gap: 0; }
.module { margin: 0 0 0; }
.module.image { margin: 0; }
.module.image img { width: 100%; height: auto; }
.module.image a { display: block; cursor: zoom-in; }

.module.grid { display: flex; flex-wrap: wrap; gap: var(--gap); margin: var(--gap) 0; }
.module.grid::after { content: ""; flex-grow: 1000000; }
.grid-item { position: relative; display: block; overflow: hidden; cursor: zoom-in; background: #000; }
.grid-item i { display: block; }
.grid-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.grid-item:hover img { opacity: .85; }

.module.video { width: var(--w, 100%); min-width: 280px; max-width: 100%; margin: 40px auto; }
.module.video video { width: 100%; height: auto; background: #191919; }

.module.text {
  max-width: 800px; margin: 0 auto; text-align: center;
  font-size: 20px; line-height: 26px; color: var(--muted); text-transform: uppercase;
}
.module.text div + div { margin-top: 26px; }
.modules.services .module.image { margin-bottom: 70px; }
.modules.narrow { max-width: 800px; margin: 0 auto; }

/* Other projects */
.other { margin-top: 110px; }
.other h3 { text-align: center; font-weight: 400; font-size: 24px; text-transform: uppercase; margin: 0 0 40px; }

/* Contact form */
.contact-form { width: 600px; max-width: 100%; margin: 0 auto; text-align: left; }
.contact-form .field { margin-bottom: 30px; }
.contact-form label { display: block; font-size: 16px; text-transform: uppercase; margin-bottom: 8px; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 0; border-radius: 3px; background: var(--field); color: var(--fg);
  font-family: var(--font); font-size: 16px; padding: 11px 11px; outline: none; letter-spacing: .02em;
}
.contact-form textarea { min-height: 132px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { box-shadow: 0 0 0 1px #777; }
.contact-form ::placeholder { color: #8f8f8f; text-transform: uppercase; }
.contact-form button {
  font-family: var(--font); font-size: 16px; text-transform: uppercase;
  background: #fff; color: #111; border: 0; border-radius: 20px; padding: 11px 25px; cursor: pointer; transition: opacity .2s;
}
.contact-form button:hover { opacity: .85; }
.contact-form button[disabled] { opacity: .5; cursor: default; }
.contact-form .invalid { box-shadow: 0 0 0 1px #c55; }
.form-status { font-size: 18px; color: var(--muted); min-height: 1em; margin: 20px 0 0; text-transform: uppercase; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer {
  text-align: center; font-size: 18px; line-height: 20px; color: var(--muted);
  text-transform: uppercase; padding: 64px var(--gutter) 100px;
}

.back-to-top {
  position: fixed; right: 30px; bottom: 30px; width: 60px; height: 60px; border-radius: 50%;
  background: rgba(68, 68, 68, .85); color: #fff; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 5;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(10, 10, 10, .97);
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s;
}
.lightbox.open { opacity: 1; }
.lightbox img { max-width: calc(100vw - 140px); max-height: calc(100vh - 80px); width: auto; height: auto; object-fit: contain; user-select: none; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer; padding: 16px; opacity: .7; transition: opacity .2s;
}
.lightbox button:hover { opacity: 1; }
.lightbox .lb-close { top: 10px; right: 14px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 16px; }
body.lb-lock { overflow: hidden; }

/* Responsive */
@media (max-width: 1100px) {
  .logo { max-width: 46%; margin-left: 30%; }
}
@media (max-width: 768px) {
  :root { --gutter: 0px; }
  .site-header { min-height: 160px; padding: 40px 60px 40px 20px; }
  .nav { display: none; }
  .logo { width: 270px; max-width: 78%; margin: 0 auto; }
  .menu-toggle { display: block; }
  .mobile-nav {
    display: flex; flex-direction: column; align-items: center; gap: 22px;
    padding: 0 0 40px;
  }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav a { font-size: 26px; line-height: 26px; }
  .covers { grid-template-columns: 1fr; }
  .cover .details { opacity: 0; }
  .page-header { padding: 10px 20px 50px; }
  .module.text, .contact-form { padding: 0 20px; }
  .modules.narrow { padding: 0; }
  .module.video { width: 80%; }
  .module.grid .grid-item { flex-basis: 100% !important; }
  .other { margin-top: 70px; }
  .lightbox img { max-width: 100vw; max-height: calc(100vh - 120px); }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 0; transform: none; }
  .back-to-top { right: 16px; bottom: 16px; width: 50px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
