:root {
  color-scheme: light;
  --bg: #f7f3ed;
  --surface: #ffffff;
  --surface-muted: #efe7dc;
  --ink: #171412;
  --ink-soft: #665d54;
  --line: rgba(51, 39, 30, 0.13);
  --accent: #b46b2a;
  --accent-strong: #d57a1f;
  --pine: #536a43;
  --shadow: 0 24px 70px rgba(64, 42, 24, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.is-locked {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section-band {
  padding: 96px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  margin: 0;
  color: #fff;
  font-size: 76px;
  line-height: 0.97;
  font-weight: 800;
}

h2 {
  margin: 0;
  font-size: 50px;
  line-height: 1.04;
  font-weight: 760;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
}

p {
  font-size: 18px;
  line-height: 1.6;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 64px;
  color: rgba(255, 255, 255, 0.9);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-nav.is-solid {
  color: var(--ink);
  background: rgba(247, 243, 237, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px);
}

.site-nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}

.site-nav__links a {
  color: inherit;
  opacity: 0.82;
  text-decoration: none;
}

.site-nav__links a:hover,
.site-nav__links a:focus-visible {
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 2px;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 132px 0 92px;
  background: #111;
}

.hero__image,
.hero picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
  transform: scale(1.02);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(37, 22, 12, 0.34), rgba(46, 31, 20, 0.17) 34%, rgba(22, 14, 8, 0.66)),
    linear-gradient(90deg, rgba(43, 27, 17, 0.54), rgba(65, 39, 18, 0.08));
}

.hero__content {
  position: relative;
  color: #fff;
}

.hero__lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 22px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-strong), #a9581c);
  box-shadow: 0 10px 28px rgba(180, 107, 42, 0.28);
}

.button--ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.intro__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: end;
}

.intro__copy p {
  margin: 0;
  color: var(--ink-soft);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 42px;
}

.service-tile {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.service-tile__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 56px;
  border-radius: 8px;
  color: #fff;
  background: #3b3028;
  font-size: 20px;
  font-weight: 800;
}

.service-tile p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.showcase {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #17110d;
  padding: 0 0 88px;
}

.showcase__media,
.showcase__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.showcase__media img {
  object-fit: cover;
}

.showcase__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(61, 35, 16, 0.04), rgba(26, 16, 10, 0.74));
}

.showcase__content {
  position: relative;
}

.showcase__content h2 {
  max-width: 880px;
}

.showcase__content p:not(.eyebrow) {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.stats {
  background: #201713;
  color: #fff;
  padding: 64px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.stat {
  padding: 32px 26px;
  background: #2a201a;
}

.stat strong {
  display: block;
  font-size: 42px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

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

.gallery {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery__item {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #d9dddf;
  cursor: pointer;
}

.gallery__item:nth-child(1),
.gallery__item:nth-child(6),
.gallery__item:nth-child(11) {
  grid-column: span 2;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.045);
}

.gallery__caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(14px);
  font-size: 14px;
  text-align: left;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 72px 22px 22px;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1200px, 100%);
  max-height: calc(100vh - 140px);
  border-radius: 8px;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.lightbox__close,
.lightbox__step {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.lightbox__close {
  top: 18px;
  right: 18px;
}

.lightbox__step {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__step--prev {
  left: 18px;
}

.lightbox__step--next {
  right: 18px;
}

.lightbox__label {
  position: absolute;
  left: 22px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.contact {
  background: #fffaf3;
}

.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: start;
}

.contact__copy p:not(.eyebrow) {
  color: var(--ink-soft);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  padding: 14px 15px;
  outline: none;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(180, 107, 42, 0.76);
  box-shadow: 0 0 0 4px rgba(180, 107, 42, 0.13);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--pine);
  font-size: 14px;
}

.site-footer {
  padding: 28px 0;
  color: var(--ink-soft);
  background: #efe7dc;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
}

.brand--footer {
  color: var(--ink);
}

@media (max-width: 980px) {
  h1 {
    font-size: 60px;
  }

  h2 {
    font-size: 40px;
  }

  .intro__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .section-inner,
  .gallery {
    width: min(100% - 28px, 1120px);
  }

  .section-band {
    padding: 72px 0;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 32px;
  }

  p,
  .hero__lead {
    font-size: 17px;
  }

  .site-nav {
    height: 58px;
  }

  .menu-toggle {
    display: block;
    position: fixed;
    top: 8px;
    right: 14px;
    z-index: 25;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.58);
    background: rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(14px);
  }

  .site-nav__links {
    position: absolute;
    top: 58px;
    left: 14px;
    right: 14px;
    display: none;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(247, 243, 237, 0.97);
    box-shadow: 0 14px 44px rgba(64, 42, 24, 0.16);
    backdrop-filter: blur(20px);
  }

  .site-nav.is-open .site-nav__links {
    display: grid;
    gap: 14px;
  }

  .hero {
    min-height: 88vh;
    padding-bottom: 58px;
  }

  .hero__content,
  .hero__lead {
    max-width: 350px;
  }

  .hero__actions {
    max-width: 350px;
    flex-direction: column;
    align-items: flex-start;
  }

  .service-grid,
  .stats__grid,
  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .gallery__item,
  .gallery__item:nth-child(1),
  .gallery__item:nth-child(6),
  .gallery__item:nth-child(11) {
    grid-column: span 1;
    min-height: 300px;
  }

  .showcase {
    min-height: 620px;
  }

  .lightbox__step {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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