@font-face {
  font-family: Manrope;
  src: url("./assets/fonts/manrope-cyrillic-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Manrope;
  src: url("./assets/fonts/manrope-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Manrope;
  src: url("./assets/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  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 {
  color-scheme: light;
  --paper: #f4f0e9;
  --stone: #e9e3da;
  --ink: #191a18;
  --graphite: #222320;
  --muted: #514f48;
  --muted-on-dark: #cbc6bd;
  --line: #c7c0b5;
  --line-on-dark: #585852;
  --accent: #ff7647;
  --accent-hover: #ff946e;
  --accent-ink: #a23615;
  --focus-on-light: #ad3a18;
  --gutter: clamp(1.5rem, 5.55vw, 7rem);
  --section-space: clamp(4.75rem, 8vw, 9rem);
  --header-height: 5rem;
  font-family: Manrope, Arial, sans-serif;
  font-size: 100%;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + .875rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, ol, figure { margin: 0; }
body {
  min-width: 0;
  line-height: 1.55;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}
img {
  display: block;
  max-width: 100%;
}
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--focus-ring, var(--focus-on-light));
  outline-offset: .25rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1.125rem;
  transform: translateY(calc(-100% - 2rem));
  color: var(--ink);
  background: var(--paper);
}

.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(100% - var(--gutter) * 2, 100rem);
  margin-inline: auto;
}

.site-header, .hero, .projects, .contacts, .site-footer, .gallery-dialog {
  --focus-ring: var(--accent);
  color: var(--paper);
}

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  background: var(--ink);
  border-bottom: 1px solid #333430;
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 1.25rem;
  min-height: calc(var(--header-height) - 1px);
}

.wordmark {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .36em;
  font-size: clamp(1.25rem, 1.65vw, 1.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.065em;
  color: var(--paper);
  text-decoration: none;
}

.wordmark span:last-child { color: var(--accent); }
.site-nav, .footer-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.4vw, 2.75rem);
}
.site-nav {
  flex-wrap: wrap;
  justify-content: center;
}
.site-nav > a, .footer-nav > a {
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}
.site-nav > a:not(.button):hover, .footer-nav a:hover { color: var(--accent); }
.menu-toggle, .site-nav .mobile-cta { display: none; }
.desktop-cta { justify-self: end; }

.button {
  display: inline-flex;
  max-width: 100%;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.45rem;
  border: 1px solid transparent;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: .9375rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.button-primary {
  background: var(--accent);
  color: var(--ink);
}
.button-primary:hover { background: var(--accent-hover); }
.button-outline {
  border-color: #98958e;
  background: #191a183d;
}
.button-outline:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.button-header {
  min-height: 2.75rem;
  padding-inline: 1.125rem;
  border-color: var(--accent);
  color: var(--accent);
  font-size: .875rem;
}
.button-header:hover {
  background: var(--accent);
  color: var(--ink);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  background: #292824;
}

.hero-media, .hero-media::after, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media { z-index: -1; }
.hero-media img {
  object-fit: cover;
  object-position: center 52%;
}
.hero-media::after {
  content: "";
  background: linear-gradient(90deg, #141410cb 0%, #1414108f 46%, #14141016 100%),
              linear-gradient(0deg, #151512a8, transparent 30%);
}

.hero-inner {
  display: flex;
  min-height: clamp(37rem, 76svh, 51rem);
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(4.5rem, 7.9vw, 8rem) 7rem;
}

.hero-main { position: relative; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .8125rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.demo-label {
  width: fit-content;
  margin-bottom: 1.9rem;
}
.demo-label::before {
  width: .58rem;
  height: .58rem;
  flex: none;
  background: var(--accent);
  content: "";
}

h1, h2 {
  font-weight: 800;
  letter-spacing: -.052em;
}
h1 {
  max-width: 70rem;
  font-size: clamp(3.25rem, 6.1vw, 7.45rem);
  line-height: .99;
  word-spacing: .015em;
}
.hero-period, .contacts h2 span { color: var(--accent); }
.hero-description {
  max-width: 27rem;
  margin-top: 1.75rem;
  color: #f1ece4;
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}
.hero-location {
  position: absolute;
  bottom: 1.7rem;
  display: flex;
  width: inherit;
  align-items: center;
  gap: .7rem;
  padding-top: .95rem;
  border-top: 1px solid #e2dcd066;
  color: #f1ece4;
  font-size: .875rem;
  font-weight: 700;
}

.hero-location span {
  width: 1.4rem;
  height: 1px;
  background: var(--accent);
}

.section { padding-block: var(--section-space); }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(15rem, .85fr);
  align-items: end;
  gap: 2.5rem;
  margin-bottom: clamp(2.25rem, 4.4vw, 4.5rem);
}

.section-label {
  margin-bottom: 1.15rem;
  color: var(--muted);
}
.section-label::before {
  width: 1.6rem;
  height: 2px;
  flex: none;
  background: var(--accent-ink);
  content: "";
}
h2 {
  font-size: clamp(2.8rem, 5.7vw, 6rem);
  line-height: 1.01;
}
h3 {
  line-height: 1.23;
  letter-spacing: -.025em;
  font-size: clamp(1.175rem, 1.55vw, 1.55rem);
  font-weight: 800;
}
.section-intro {
  max-width: 26rem;
  padding-bottom: .3rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.42vw, 1.19rem);
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.43fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(2rem, 5.2vw, 5.6rem);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(1.35rem, 3.5vw, 3.5rem);
  padding: 0;
  list-style: none;
}
.service-grid li {
  min-height: 8.4rem;
  padding: 1.15rem 0 1.5rem;
  border-top: 1px solid var(--line);
}
.service-grid li::before {
  display: block;
  width: 1.5rem;
  height: 2px;
  margin: -1.22rem 0 1.1rem;
  background: var(--accent-ink);
  content: "";
}
.service-grid h3 { max-width: 14rem; }
.service-grid p {
  max-width: 18rem;
  margin-top: .58rem;
  color: var(--muted);
}
.services-photo {
  position: relative;
  min-height: 22rem;
  background: #b7ac9e;
}
.services-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.projects { background: var(--graphite); }
.projects .section-label, .contacts .section-label { color: var(--muted-on-dark); }
.projects .section-label::before, .contacts .section-label::before { background: var(--accent); }
.projects .section-intro { color: var(--muted-on-dark); }
.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: clamp(2rem, 4.4vw, 4.4rem) clamp(1.25rem, 2.45vw, 2.5rem);
}
.project {
  grid-column: span 7;
  min-width: 0;
}
.project:nth-child(2), .project:nth-child(3) { grid-column: span 5; }
.project:nth-child(2) { margin-top: clamp(1.25rem, 4vw, 4.25rem); }
.project:nth-child(3) { margin-top: clamp(1.25rem, 3.2vw, 3.5rem); }
.project-link {
  display: block;
  text-decoration: none;
}
.project-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 15 / 9;
  background: #434039;
}
.project:nth-child(2) .project-media, .project:nth-child(3) .project-media { aspect-ratio: 1.32; }
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.project-house img {
  object-position: center 37%;
  filter: saturate(.87);
}
.project-link:hover img, .project-link:focus-visible img { transform: scale(1.035); }
.project-open {
  position: absolute;
  right: .875rem;
  bottom: .875rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  color: var(--ink);
  background: var(--paper);
  font-size: 1.7rem;
  line-height: 1;
  transition: background-color .2s ease;
}

.project-link:hover .project-open, .project-link:focus-visible .project-open {
  background: var(--accent);
}
.project-caption {
  padding: 1.05rem 0 1.15rem;
  border-bottom: 1px solid var(--line-on-dark);
}
.project-caption p {
  margin-top: .25rem;
  color: var(--muted-on-dark);
  font-size: .875rem;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1rem, 2.15vw, 2.25rem);
  list-style: none;
  padding: 0;
}
.process-list li {
  border-top: 1px solid var(--line);
  padding-top: 1.15rem;
}
.step-number {
  display: block;
  margin-bottom: 1.3rem;
  color: var(--accent-ink);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.process-list p {
  margin-top: .65rem;
  color: var(--muted);
}

.faq { background: var(--stone); }
.faq-layout, .contacts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  align-items: start;
  gap: clamp(2rem, 7vw, 8rem);
}
.faq-items { border-top: 1px solid var(--line); }
.faq-items details { border-bottom: 1px solid var(--line); }
.faq-items summary {
  position: relative;
  display: flex;
  min-height: 4.6rem;
  align-items: center;
  padding: .9rem 3rem .9rem 0;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  font-weight: 800;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq-items summary::-webkit-details-marker { display: none; }
.faq-items summary::before, .faq-items summary::after {
  position: absolute;
  right: .3rem;
  top: 50%;
  width: .95rem;
  height: 2px;
  background: var(--accent-ink);
  content: "";
}
.faq-items summary::after {
  transform: rotate(90deg);
  transition: transform .2s ease;
}
.faq-items details[open] summary::after { transform: rotate(0); }
.faq-items summary:hover { color: var(--accent-ink); }
.faq-items details p {
  max-width: 35rem;
  padding: 0 2rem 1.35rem 0;
  color: var(--muted);
}

.contacts { background: var(--ink); }
.contacts-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: end;
}
.contact-location {
  color: var(--paper);
  font-weight: 800;
  font-size: 1.125rem;
}
.contact-details > p:not(.contact-location), .contact-details noscript {
  margin-top: .65rem;
  max-width: 26rem;
  color: var(--muted-on-dark);
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.45rem;
}
.contact-actions .button { min-width: 8.5rem; }
.contact-notice {
  display: flex;
  max-width: 27rem;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: 1rem;
  padding: .62rem .62rem .62rem .9rem;
  border-left: 2px solid var(--accent);
  background: #31312c;
  font-size: .9375rem;
}

.site-footer { background: var(--ink); }
.not-found {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
}
.not-found main { flex: 1; }
.footer-inner { border-top: 1px solid var(--line-on-dark); }
.footer-top, .footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1.4rem;
}
.footer-top {
  align-items: center;
  padding-block: 1.8rem;
}
.footer-nav { flex-wrap: wrap; }
.footer-bottom {
  padding-block: 1.2rem;
  border-top: 1px solid var(--line-on-dark);
  color: var(--muted-on-dark);
  font-size: .875rem;
}

.icon-button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  place-items: center;
  padding: 0;
  border: 1px solid #89867d;
  background: transparent;
  color: var(--paper);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.icon-button:hover {
  background: var(--paper);
  color: var(--ink);
}

.gallery-dialog {
  width: min(100% - 2rem, 72rem);
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid var(--line-on-dark);
  background: var(--ink);
}
.gallery-dialog::backdrop { background: #0a0a09e0; }
body:has(.gallery-dialog[open]) { overflow: hidden; }
.gallery-body { padding: clamp(.75rem, 2.25vw, 1.35rem); }
.gallery-toolbar, .gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.gallery-toolbar { padding-bottom: .75rem; }
.gallery-toolbar .eyebrow {
  color: var(--muted-on-dark);
  font-size: .75rem;
}
.gallery-image {
  width: 100%;
  height: clamp(11rem, 66dvh, 52rem);
  object-fit: contain;
  background: #0d0d0c;
}
.gallery-footer { padding-top: .85rem; }
.gallery-footer h2 {
  font-size: clamp(1.1rem, 2.4vw, 1.8rem);
  letter-spacing: -.045em;
  line-height: 1.15;
}
.gallery-counter {
  margin-top: .25rem;
  color: var(--muted-on-dark);
  font-size: .875rem;
}
.gallery-controls {
  display: flex;
  flex: none;
  gap: .5rem;
}

@media (max-width: 62rem) {
  :root { --header-height: 4.25rem; }
  :root:not(.has-mobile-menu) { scroll-padding-top: .875rem; }
  :root:not(.has-mobile-menu) .site-header { position: static; }
  .header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  :root:not(.has-mobile-menu) .header-inner { padding-top: 1.25rem; }
  .desktop-cta { display: none; }
  .menu-toggle {
    min-height: 2.75rem;
    align-items: center;
    gap: .8rem;
    padding: .25rem 0 .25rem .5rem;
    color: var(--paper);
    border: 0;
    background: transparent;
    font-size: .875rem;
    font-weight: 800;
    cursor: pointer;
  }
  .has-mobile-menu .menu-toggle { display: inline-flex; }
  .menu-icon {
    position: relative;
    width: 1.4rem;
    height: 1rem;
  }
  .menu-icon::before, .menu-icon::after {
    position: absolute;
    left: 0;
    top: .3rem;
    width: 100%;
    height: 2px;
    background: currentColor;
    content: "";
    transition: transform .2s ease;
  }
  .menu-icon::after { top: .7rem; }
  .menu-toggle[aria-expanded="true"] .menu-icon::before {
    transform: translateY(.2rem) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] .menu-icon::after {
    transform: translateY(-.2rem) rotate(-45deg);
  }
  .site-nav {
    display: grid;
    flex-basis: 100%;
    justify-content: stretch;
    gap: 0;
    padding: .4rem 0 1.3rem;
  }
  .has-mobile-menu .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    max-height: calc(100dvh - var(--header-height));
    overflow: auto;
    padding: .4rem var(--gutter) 1.3rem;
    border-bottom: 1px solid var(--line-on-dark);
    background: var(--ink);
  }
  .has-mobile-menu .site-nav.is-open { display: grid; }
  .site-nav > a:not(.button) {
    min-height: 3rem;
    display: flex;
    align-items: center;
    padding: .55rem .2rem;
    border-bottom: 1px solid var(--line-on-dark);
    font-size: 1rem;
  }
  .site-nav .mobile-cta {
    display: inline-flex;
    width: max-content;
    margin-top: 1rem;
  }
  .hero-inner { min-height: clamp(36rem, 72svh, 44rem); }
  .hero-media::after {
    background: linear-gradient(90deg, #141410d6, #141410ad 64%, #14141016),
                linear-gradient(0deg, #151512a8, transparent 30%);
  }
  h1 { font-size: clamp(3.25rem, 7.4vw, 5.35rem); }
  .process-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 2rem;
  }
}

@media (max-width: 44rem) {
  :root { --gutter: clamp(1.125rem, 5.5vw, 2.25rem); }
  .hero-media img { object-position: 57% center; }
  .hero-media::after {
    background: linear-gradient(90deg, #151512b8, #15151270),
                linear-gradient(0deg, #151512c4, #15151238 35%, #15151238 70%, #1515127a);
  }
  .hero-inner {
    min-height: clamp(32rem, 77svh, 40rem);
    padding-block: 4.5rem 6.75rem;
  }
  h1 {
    font-size: clamp(2.5rem, 10.8vw, 4.25rem);
    line-height: 1.01;
  }
  .hero-break { display: none; }
  .demo-label {
    margin-bottom: 1.35rem;
    font-size: .75rem;
  }
  .hero-description {
    max-width: 21rem;
    margin-top: 1.25rem;
  }
  .hero-actions {
    margin-top: 1.55rem;
    gap: .55rem;
  }
  .hero-actions .button {
    min-height: 3.15rem;
    padding-inline: .8rem;
    font-size: .875rem;
  }
  .hero-location { bottom: 1.35rem; }
  .section-heading, .services-layout, .faq-layout, .contacts-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.45rem;
  }
  .section-heading { margin-bottom: 2rem; }
  .section-label { margin-bottom: .9rem; }
  .section-intro { padding-bottom: 0; }
  .services-photo {
    min-height: 0;
    aspect-ratio: 16 / 11;
  }
  .project-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
  }
  .project, .project:nth-child(2), .project:nth-child(3) {
    grid-column: auto;
    margin-top: 0;
  }
  .project:nth-child(n) .project-media { aspect-ratio: 3 / 2; }
  .project-open {
    right: .65rem;
    bottom: .65rem;
    width: 2.5rem;
    height: 2.5rem;
  }
  .process-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .process-list li {
    display: grid;
    grid-template-columns: minmax(2.25rem, max-content) minmax(0, 1fr);
    gap: .4rem .7rem;
    padding-block: 1.15rem;
  }
  .process-list li:last-child { border-bottom: 1px solid var(--line); }
  .step-number {
    margin: .12rem 0 0;
    font-size: 1.15rem;
  }
  .process-list p {
    grid-column: 2;
    margin: 0;
  }
  .faq-layout, .contacts-layout { gap: 2rem; }
  .faq-items summary { min-height: 4rem; }
  .faq-items details p { padding-right: .8rem; }
  .footer-top, .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-top { gap: 1.4rem; }
  .footer-nav { gap: .6rem 1.05rem; }
  .footer-nav a { padding-block: .35rem; }
  .footer-bottom { gap: .4rem; }
  .gallery-image {
    height: auto;
    max-height: 55dvh;
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 25rem) {
  h2 { font-size: clamp(2rem, calc(16vw - .8rem), 2.8rem); }
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .service-grid li { min-height: 0; }
  .service-grid h3, .service-grid p { max-width: none; }
}

@media (max-width: 22rem) {
  h1 { font-size: clamp(2rem, 11.5vw, 2.5rem); }
}

@media (max-height: 30rem) {
  .gallery-body {
    display: grid;
    height: calc(100dvh - 2rem - 2px);
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding-block: .5rem;
  }
  .gallery-toolbar { padding-bottom: .4rem; }
  .gallery-image {
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
  }
  .gallery-footer { padding-top: .4rem; }
}

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