* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #f2efe9;
  color: #171614;
  font-family: "DM Sans", Arial, sans-serif;
  overflow-x: hidden;
}
body.lock {
  overflow: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  font: inherit;
}
.wrap {
  width: min(calc(100% - 80px), 1480px);
  margin-inline: auto;
}
.section {
  padding-block: clamp(90px, 11vw, 180px);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 700;
  text-transform: uppercase;
}
.loader {
  position: fixed;
  z-index: 999;
  inset: 0;
  background: #171614;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 10px;
  letter-spacing: 0.2em;
  animation: loaderOut 0.8s 1.1s forwards;
}
.loader-line {
  width: 50px;
  height: 1px;
  background: #fff;
  animation: loadLine 1s;
}
.header {
  height: 82px;
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 60px);
  color: #fff;
  mix-blend-mode: normal;
  background: linear-gradient(#111b, transparent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-icon {
  width: 40px; /* Леко намаляваме размера, за да балансира по-добре с текста */
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  line-height: 1; /* Оправя слепването на двата реда */
  padding-top: 2px; /* Фина оптична настройка за идеална симетрия с логото */
}
.brand-text span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em; /* Дава малко повече въздух на горната дума */
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.85); /* Леко омекотява CARPENTER, за да изпъкне HAMILTON */
}
.brand-text strong {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 46px);
  font-size: 12px;
  font-weight: 600;
}
.nav > a:not(.nav-button) {
  opacity: 0.82;
  transition: 0.2s;
}
.nav > a:hover {
  opacity: 1;
}
.nav-button {
  padding: 13px 19px;
  background: #fff;
  color: #151412;
}
.nav-button span {
  margin-left: 13px;
}
.menu-btn {
  display: none;
  background: none;
  border: 0;
}
.hero {
  position: relative;
  min-height: 100svh;
  background: #25231f;
  color: #fff;
  display: flex;
  align-items: center;
  isolation: isolate;
}
.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}
.hero-media {
  background: url("../images/hero.jpg") center/cover no-repeat;
  z-index: -2;
  background-position: center 57%;
}
.hero-shade {
  z-index: -1;
  background: linear-gradient(90deg, #0b0b0bf2 0%, #0b0b0bd9 45%, #0b0b0b33 80%, transparent 100%),
              linear-gradient(0deg, #0b0b0b80 0%, transparent 60%);
}
.hero-content {
  padding-top: 90px;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.2em;
  margin-bottom: 28px;
}
.hero-kicker span {
  width: 34px;
  height: 1px;
  background: #fff;
}
.hero h1 {
  font: 800 clamp(52px, 8.5vw, 138px) / 0.88 Manrope, sans-serif;
  letter-spacing: -0.065em;
  margin: 0;
  max-width: 1200px;
}
.hero h1 em,
.statement h2 em,
.about h2 em,
.cta h2 em,
.contact h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.04em;
}
.hero-content > p {
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.6;
  max-width: 590px;
  color: #e9e7e2;
  margin: 34px 0 0;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 35px;
}
.button {
  min-height: 52px;
  padding: 0 23px;
  display: inline-flex;
  align-items: center;
  gap: 35px;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
}
.button.light {
  background: #fff;
  color: #111;
}
.button.dark {
  background: #171614;
  color: #fff;
}
.button span,
.text-link span,
.all-link span {
  font-size: 17px;
  letter-spacing: 0;
}
.text-link {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid #fff;
  padding-bottom: 8px;
}
.text-link span {
  margin-left: 12px;
}
.hero-bottom {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
}
.hero-bottom > a {
  text-align: right;
}
.hero-scroll {
  text-align: center;
}
.statement {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.statement-label {
  display: flex;
  gap: 16px;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: #716d65;
}
.statement-label span:first-child {
  color: #171614;
}
.statement-copy {
  max-width: 1000px;
}
.statement h2 {
  font: 700 clamp(42px, 6.3vw, 94px) / 0.98 Manrope, sans-serif;
  letter-spacing: -0.06em;
  margin: 0;
}
.statement-copy > p {
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.6;
  max-width: 630px;
  margin: 40px auto 0;
  color: #625f58;
}
.services {
  background: #1b1a18;
  color: #f6f3ed;
}
.section-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 65px;
}
.section-top h2,
.work .section-top h2 {
  font: 700 clamp(45px, 6vw, 80px) / 0.95 Manrope, sans-serif;
  letter-spacing: -0.06em;
  margin: 10px 0 0;
}
.section-top > p {
  max-width: 370px;
  margin: 0;
  line-height: 1.6;
  color: #98958e;
  font-size: 14px;
}
.service-list {
  border-top: 1px solid #45433e;
}
.service {
  display: grid;
  grid-template-columns: 100px 1fr 40px;
  align-items: center;
  gap: 25px;
  border-bottom: 1px solid #45433e;
  padding: 32px 0;
  transition: 0.35s;
}
.service:hover {
  padding-left: 18px;
  padding-right: 18px;
  background: #22211e;
}
.service-number {
  font-size: 10px;
  color: #77736b;
  letter-spacing: 0.15em;
}
.service h3 {
  font: 600 clamp(25px, 3.2vw, 46px) Manrope, sans-serif;
  margin: 0 0 7px;
  letter-spacing: -0.04em;
}
.service p {
  margin: 0;
  color: #88857d;
  font-size: 14px;
}
.service-arrow {
  font-size: 25px;
}
.all-link {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-bottom: 1px solid #aaa49a;
  padding-bottom: 8px;
}
.all-link span {
  margin-left: 15px;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: -15px 0 45px;
}
.filters button {
  background: transparent;
  border: 1px solid #c3beb4;
  padding: 10px 15px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.2s;
}
.filters button.active,
.filters button:hover {
  background: #171614;
  border-color: #171614;
  color: #fff;
}
.projects {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 70px 24px;
}
.project {
  grid-column: span 5;
}
.project.wide {
  grid-column: span 7;
}
.project-photo {
  display: block;
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #d4d0c8;
}
.project.wide .project-photo {
  aspect-ratio: 1.35/1;
}
.project-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.project-photo:hover img {
  transform: scale(1.045);
}
.project-view {
  position: absolute;
  right: 18px;
  bottom: 18px;
  background: #f2efe9;
  color: #171614;
  padding: 13px 15px;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.3s;
}
.project-view b {
  font-size: 16px;
  margin-left: 15px;
}
.project-photo:hover .project-view {
  opacity: 1;
  transform: none;
}
.project-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  padding-top: 18px;
}
.project-meta span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #77736c;
}
.project-meta h3 {
  font: 600 22px Manrope, sans-serif;
  margin: 7px 0 0;
  letter-spacing: -0.03em;
}
.project-meta p {
  font-size: 12px;
  line-height: 1.55;
  color: #77736c;
  margin: 0;
}
.full-image {
  height: min(75vh, 850px);
  min-height: 520px;
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  isolation: isolate;
}
.full-image-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0b0b0baa, #0b0b0b20),
    url("../images/feature.jpg") center/cover;
  z-index: -1;
}
.full-image-content h2 {
  font: 700 clamp(50px, 8vw, 120px) / 0.88 Manrope, sans-serif;
  letter-spacing: -0.06em;
  margin: 0;
}
.about {
  background: #ddd8cf;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10vw;
}
.about h2 {
  font: 700 clamp(45px, 6.3vw, 90px) / 0.92 Manrope, sans-serif;
  letter-spacing: -0.06em;
  margin: 15px 0 0;
}
.about-right {
  padding-top: 40px;
  max-width: 650px;
}
.about-right p {
  font-size: 14px;
  line-height: 1.7;
  color: #625f58;
  max-width: 570px;
}
.about-right .big-copy {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.45;
  color: #171614;
  margin: 0 0 30px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #aaa49a;
  margin-top: 55px;
}
.facts div {
  padding: 22px 12px 0 0;
}
.facts strong {
  display: block;
  font: 700 27px Manrope, sans-serif;
}
.facts span {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #716d65;
  margin-top: 5px;
}
.cta {
  background: #c7bfb2;
  text-align: center;
}
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta h2 {
  font: 700 clamp(55px, 9vw, 135px) / 0.86 Manrope, sans-serif;
  letter-spacing: -0.07em;
  margin: 25px 0 45px;
}
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10vw;
}
.contact h2 {
  font: 700 clamp(48px, 6vw, 88px) / 0.92 Manrope, sans-serif;
  letter-spacing: -0.06em;
  margin: 15px 0 25px;
}
.contact-intro > p {
  font-size: 15px;
  line-height: 1.65;
  color: #716d65;
  max-width: 420px;
}
.contact-links {
  display: flex;
  flex-direction: column;
}
.contact-links a {
  position: relative;
  border-top: 1px solid #bcb7ad;
  padding: 24px 35px 24px 0;
}
.contact-links a:last-child {
  border-bottom: 1px solid #bcb7ad;
}
.contact-links span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.17em;
  color: #77736b;
  margin-bottom: 8px;
}
.contact-links strong {
  font: 600 clamp(18px, 2vw, 27px) Manrope, sans-serif;
}
.contact-links i {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-style: normal;
  font-size: 20px;
}
.areas {
  background: #171614;
  color: #fff;
}
.areas-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-block: 45px;
}
.areas-inner p {
  margin: 0;
  font: 500 clamp(15px, 1.8vw, 24px) Manrope, sans-serif;
  letter-spacing: -0.02em;
}
footer {
  background: #171614;
  color: #fff;
  padding: 35px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 30px;
}
.footer-grid p,
.footer-grid > span {
  font-size: 10px;
  color: #817d75;
  margin: 0;
}
.footer-grid > span {
  text-align: right;
}

/* --- Lightbox Gallery Styles --- */
.lightbox { 
  position: fixed; 
  z-index: 500; 
  inset: 0; 
  background: rgba(13,13,13,0.95); 
  display: none; 
  align-items: center; 
  justify-content: center; 
}
.lightbox.open { 
  display: flex; 
}
.lb-content { 
  position: relative; 
  max-width: 90vw; 
  max-height: 85vh; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}
.lb-content img, 
.lb-content video { 
  max-width: 100%; 
  max-height: 85vh; 
  object-fit: contain; 
  box-shadow: 0 10px 40px rgba(0,0,0,0.5); 
}
.lb-close { 
  position: absolute; 
  top: 20px; 
  right: 30px; 
  color: #fff; 
  background: none; 
  border: 0; 
  font-size: 45px; 
  font-weight: 200; 
  cursor: pointer; 
  line-height: 1; 
  z-index: 501; 
  transition: 0.2s; 
}
.lb-close:hover { 
  opacity: 0.7; 
}
.lb-prev, 
.lb-next { 
  position: absolute; 
  top: 50%; 
  transform: translateY(-50%); 
  background: none; 
  border: 0; 
  color: #fff; 
  font-size: 60px; 
  font-weight: 200; 
  cursor: pointer; 
  padding: 20px; 
  z-index: 501; 
  opacity: 0.6; 
  transition: 0.3s; 
}
.lb-prev:hover, 
.lb-next:hover { 
  opacity: 1; 
}
.lb-prev { 
  left: 10px; 
}
.lb-next { 
  right: 10px; 
}

@keyframes loadLine {
  from {
    width: 0;
  }
  to {
    width: 50px;
  }
}
@keyframes loaderOut {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
@media (max-width: 850px) {
  .wrap {
    width: min(calc(100% - 30px), 1480px);
  }
  .header {
    height: 70px;
    background: #171614;
  }
  .menu-btn {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .menu-btn i {
    display: block;
    width: 25px;
    height: 1px;
    background: #fff;
  }
  .nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #171614;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 30px 25px;
    gap: 0;
  }
  .nav.open {
    display: flex;
  }
  .nav > a {
    padding: 17px 0;
    border-bottom: 1px solid #333;
  }
  .nav-button {
    text-align: center;
    margin-top: 12px;
  }
  .hero-content {
    padding-top: 100px;
  }
  .hero h1 {
    font-size: clamp(48px, 14vw, 78px);
  }
  .hero-content > p {
    font-size: 15px;
  }
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .hero-shade {
  z-index: -1;
  background: linear-gradient(90deg, #0b0b0bf2 0%, #0b0b0bd9 50%, #0b0b0b33 100%, transparent 100%),
              linear-gradient(0deg, #0b0b0b80 100%, transparent 60%);
  }

  .hero-bottom {
    display: none;
  }
  .statement {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .statement-copy > p {
    margin-top: 25px;
  }
  .section-top {
    display: block;
    margin-bottom: 40px;
  }
  .section-top > p {
    margin-top: 18px;
  }
  .service {
    grid-template-columns: 35px 1fr 25px;
    padding: 25px 0;
  }
  .service:hover {
    padding-left: 0;
    padding-right: 0;
    background: none;
  }
  .service p {
    font-size: 12px;
    line-height: 1.5;
  }
  .filters {
    margin-bottom: 35px;
  }
  .filters button {
    padding: 9px 12px;
  }
  .projects {
    display: block;
  }
  .project {
    margin-bottom: 55px;
  }
  .project-meta {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .project-meta p {
    max-width: 500px;
  }
  .project-view {
    opacity: 1;
    transform: none;
  }
  .full-image {
    height: 65svh;
    min-height: 450px;
  }
  .about-grid,
  .contact {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .about-right {
    padding-top: 0;
  }
  .facts {
    margin-top: 40px;
  }
  .cta h2 {
    font-size: clamp(55px, 16vw, 100px);
  }
  .areas-inner {
    display: block;
  }
  .areas-inner p {
    margin-top: 18px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .footer-grid > span {
    text-align: left;
  }
  .footer-grid p {
    order: 3;
  }

  /* Lightbox Mobile Adjustments */
  .lb-prev, 
  .lb-next { 
    font-size: 40px; 
    padding: 10px; 
  }
  .lb-close { 
    top: 10px; 
    right: 15px; 
    font-size: 35px; 
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  .hero {
    min-height: 680px;
  }
  .hero h1 {
    font-size: clamp(48px, 8vw, 78px);
  }
  .hero-content {
    padding-top: 80px;
  }
  .hero-content > p {
    max-width: 550px;
    margin-top: 20px;
  }
  .hero-actions {
    margin-top: 20px;
  }
}
@media (min-width: 1800px) {
  .wrap {
    width: min(calc(100% - 120px), 1600px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  html {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}