@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:300;font-display:swap;src:url(/assets/fonts/plex-mono-300-cyrillic.d8b7f78a.woff2) format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:300;font-display:swap;src:url(/assets/fonts/plex-mono-300-latin.5dc42711.woff2) format("woff2");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}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/plex-mono-400-cyrillic.9836f315.woff2) format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/plex-mono-400-latin.bb87500e.woff2) format("woff2");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}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/plex-mono-500-cyrillic.caa0275b.woff2) format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/plex-mono-500-latin.d32f0e07.woff2) format("woff2");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}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/plex-mono-600-cyrillic.5877f0f9.woff2) format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/plex-mono-600-latin.ce9a5ca3.woff2) format("woff2");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 {
  --ink: #282828;
  --text: #545352;
  --muted: #6b6a69;
  --line: #d9d8d6;
  --bg: #fff;
  --font: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --container: 1140px;
  --gutter: 20px;
  --header-h: 64px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul { padding: 0; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 400;
  line-height: 1.3;
  text-wrap: balance;
}
h1 { font-size: 29px; }
h2 { font-size: 28px; }
h3 { font-size: 21px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px; top: -48px;
  z-index: 300;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-bottom: 40px; }

.section-title, .page-title {
  margin: 0;
  padding: 70px 0 30px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 12px 24px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.btn:hover { background: var(--ink); color: #fff; }
.btn--light { border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }

/* header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding-inline: 5%;
}
.logo img { width: 180px; height: auto; }

.site-nav ul {
  display: flex;
  gap: 30px;
  margin: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 6px 0;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
  transition: color 0.2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

.menu-toggle { display: none; }

@media (max-width: 767px) {
  .logo img { width: 150px; }
  .menu-toggle {
    display: grid;
    gap: 5px;
    place-content: center;
    width: 44px; height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .menu-toggle span {
    display: block;
    width: 22px; height: 1.5px;
    background: var(--ink);
    transition: transform 0.3s var(--ease-out), opacity 0.2s;
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 12px 24px -12px rgb(0 0 0 / 0.18);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s 0.3s;
  }
  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s var(--ease-out), transform 0.3s var(--ease-out);
  }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .site-nav a { padding: 16px 5%; font-size: 16px; }
}

/* hero */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
  background: #3a3a38;
  color: #fff;
  text-align: center;
}
.hero--short { min-height: 60vh; min-height: 60svh; }
@media (min-width: 1025px) {
  .hero--short { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); }
}
.hero__slides, .hero__slide {
  position: absolute;
  inset: 0;
}
.hero__slides::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.4);
}
.hero--short .hero__slides::after { background: rgb(0 0 0 / 0.3); }
.hero__slide {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 4s ease-in-out;
}
.hero__slide.is-active { opacity: 1; }
.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 40px 10%;
}
.hero__logo { width: 250px; height: auto; }
.hero__title {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4.4vw, 45px);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero .btn { margin-top: 20px; }

/* cards */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 20px;
  margin: 0;
  list-style: none;
}
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; gap: 32px; } }

.card a { display: block; text-decoration: none; }
.card__img {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 5px;
  background: #ecebe8;
}
.card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.card a:hover .card__img img { transform: scale(1.04); }
.card__title {
  display: block;
  padding-top: 20px;
  color: var(--ink);
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.more { margin: 50px 0 0; text-align: center; }

/* about */

.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  max-width: 920px;
  margin-inline: auto;
}
@media (max-width: 767px) { .people { grid-template-columns: 1fr; gap: 56px; } }
.person img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.person__bio { padding-top: 24px; font-size: 14px; }
.person__bio h3 { margin: 0 0 12px; }

/* prose */

.prose { font-size: 15px; line-height: 1.7; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 18px; padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--ink); }
.prose h2 { margin: 0 0 20px; text-transform: uppercase; letter-spacing: 0.03em; }
.prose h3 { margin: 28px 0 12px; }
.prose a { color: var(--ink); text-underline-offset: 3px; }
.prose .center { text-align: center; }
.prose strong { color: var(--ink); font-weight: 600; }

/* project */

.project { max-width: 1000px; margin-inline: auto; }
.project__text { margin-top: 32px; text-align: justify; hyphens: auto; }
@media (max-width: 767px) { .project__text { text-align: left; } }

.gallery__stage { position: relative; }
.gallery__track {
  display: flex;
  margin: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
  background: #ecebe8;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  aspect-ratio: 16 / 9;
}
.gallery__open {
  display: block;
  width: 100%; height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.gallery__open img { width: 100%; height: 100%; object-fit: cover; }

.gallery__nav, .lightbox__prev, .lightbox__next {
  position: absolute;
  top: 50%;
  width: 48px; height: 48px;
  margin-top: -24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.gallery__nav::before, .lightbox__prev::before, .lightbox__next::before {
  content: "";
  position: absolute;
  inset: 15px;
  border: solid #fff;
  border-width: 0 0 2.5px 2.5px;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.5));
}
.gallery__nav--prev, .lightbox__prev { left: 8px; }
.gallery__nav--next, .lightbox__next { right: 8px; }
.gallery__nav--prev::before, .lightbox__prev::before { transform: translateX(4px) rotate(45deg); }
.gallery__nav--next::before, .lightbox__next::before { transform: translateX(-4px) rotate(-135deg); }

.gallery__thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4 * 10px) / 5);
  gap: 10px;
  margin: 10px 0 0;
  overflow-x: auto;
  scrollbar-width: thin;
  list-style: none;
}
.gallery__thumbs button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #ecebe8;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.25s;
}
.gallery__thumbs button:hover, .gallery__thumbs button[aria-current="true"] { opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) {
  .gallery__thumbs { grid-auto-columns: calc((100% - 2 * 8px) / 3.3); gap: 8px; }
  .gallery__nav { display: none; }
}

.related .card__title { text-transform: none; text-align: left; font-weight: 500; letter-spacing: 0; }

/* services */

.services { padding-top: 60px; }
.service { padding-bottom: 70px; }
.service__img { margin: 0 auto 36px; max-width: 1000px; }
.service .prose { max-width: 1000px; margin-inline: auto; }
.service .prose h2 { text-align: center; }
.columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin: 10px 0 8px;
}
@media (max-width: 767px) { .columns { grid-template-columns: 1fr; } }

/* legal */

.legal-text { max-width: 900px; margin: 50px auto 0; }
.legal-text h2 { font-size: 22px; text-transform: none; letter-spacing: 0; margin: 0 0 8px; }
.legal-text h3 { font-size: 18px; }

.not-found { text-align: center; min-height: 40vh; }

/* footer */

.site-footer { padding: 0 var(--gutter) 30px; text-align: center; }
.contacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1000px;
  margin: 20px auto 70px;
  list-style: none;
}
.contacts li + li { border-left: 1px solid var(--text); }
.contacts a {
  display: grid;
  justify-items: center;
  gap: 15px;
  padding: 6px 12px;
  color: var(--ink);
  font-size: 20px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contacts a:hover span { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.contacts svg { width: 34px; height: 34px; fill: var(--ink); }
@media (max-width: 767px) {
  .contacts { grid-template-columns: 1fr; gap: 32px; margin-bottom: 50px; }
  .contacts li + li { border-left: 0; }
  .contacts a { font-size: 18px; }
}

.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 34px;
  font-size: 14px;
}
.legal a { color: var(--text); text-decoration: none; }
.legal a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.copyright { margin: 26px 0 0; font-size: 13px; color: var(--muted); }

/* lightbox */

.lightbox {
  width: 100vw; height: 100vh;
  max-width: none; max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(18 18 17 / 0.94);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img {
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 96px);
  width: auto; height: auto;
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: 12px; right: 16px;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}
@media (min-width: 768px) {
  .lightbox__prev { left: 24px; }
  .lightbox__next { right: 24px; }
}
