@font-face {
  font-family: "Rubik";
  src: url("../assets/Rubik/Rubik-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rubik";
  src: url("../assets/Rubik/Rubik-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #24211c;
  --muted: #726b60;
  --line: #ded6c9;
  --paper: #fbfaf7;
  --soft: #f1ece4;
  --wood: #9a6a35;
  --wood-dark: #60411f;
  --white: #ffffff;
  --shadow: 0 18px 42px rgba(36, 33, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Rubik", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0.8rem clamp(1rem, 4vw, 3.5rem);
  background: rgba(36, 33, 28, 0.78);
  color: var(--white);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 150px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  font-size: 0.95rem;
}

.site-nav a {
  opacity: 0.9;
}

.site-nav a:hover {
  opacity: 1;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.social-link:hover {
  color: #d8b27e;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
  padding-top: 78px;
}

.hero__image {
  position: absolute;
  inset: 0;
}

.hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 18, 15, 0.84), rgba(20, 18, 15, 0.42) 52%, rgba(20, 18, 15, 0.12));
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  width: min(760px, calc(100% - 2rem));
  margin: 0 clamp(1rem, 7vw, 6rem);
}

.eyebrow {
  width: fit-content;
  margin: 0 0 0.9rem;
  padding: 0.28rem 0.5rem;
  border: 1px solid rgba(154, 106, 53, 0.22);
  border-radius: 3px;
  color: var(--wood-dark);
  background: rgba(154, 106, 53, 0.08);
  font-size: 0.78rem !important;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: #f1d2a8;
  border-color: rgba(241, 210, 168, 0.32);
  background: rgba(36, 33, 28, 0.34);
}

.hero__eyebrow {
  margin: 0 0 0.8rem;
  color: #d8b27e;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 520;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 520;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 560;
}

.hero__content p:not(.eyebrow):not(.hero__eyebrow) {
  max-width: 620px;
  margin: 1rem 0 0;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.86);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 560;
}

.button--primary {
  color: var(--white);
  background: var(--wood);
}

.button--primary:hover {
  background: var(--wood-dark);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--white);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section__heading {
  max-width: 790px;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.intro {
  display: grid;
  grid-template-columns: 0.42fr 1.1fr 0.8fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
}

.intro > .eyebrow {
  margin-top: 0.55rem;
}

.intro__text h2 {
  margin-top: 0;
}

.intro__facts {
  display: grid;
  gap: 1rem;
  padding-top: 0.25rem;
}

.services {
  background: var(--soft);
}

.services__inner {
  padding-top: clamp(3.5rem, 6vw, 5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.intro__text p,
.about__content p,
.contact p {
  color: var(--muted);
  font-size: 1.05rem;
}

.intro__facts div {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.intro__facts strong,
.intro__facts span {
  display: block;
}

.intro__facts span {
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.service-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.service-card img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(21, 18, 14, 0.82), rgba(21, 18, 14, 0));
}

.service-card h3 {
  position: absolute;
  z-index: 1;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  color: var(--white);
}

.service-card:hover img {
  transform: scale(1.035);
}

.feature-band {
  position: relative;
  min-height: clamp(340px, 55vw, 540px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.feature-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(23, 20, 16, 0.74), rgba(23, 20, 16, 0.06));
}

.feature-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-band div {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.feature-band h2 {
  max-width: 790px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}

.filter {
  min-height: 40px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
}

.filter.is-active,
.filter:hover {
  color: var(--white);
  border-color: var(--wood);
  background: var(--wood);
}

.projects {
  background: var(--soft);
}

.projects__inner {
  padding-top: clamp(3.5rem, 6vw, 5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.gallery-status {
  margin: -0.3rem 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.project-card {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--soft);
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.project-card span {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.35rem 0.55rem;
  border-radius: 3px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  font-size: 0.85rem;
  font-weight: 560;
}

.project-card:hover img {
  filter: saturate(1.05);
  transform: scale(1.035);
}

.project-card.is-hidden {
  display: none;
}

.load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 1.25rem auto 0;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
}

.load-more:hover {
  border-color: var(--wood);
  color: var(--white);
  background: var(--wood);
}

.load-more[hidden] {
  display: none;
}

.about {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.about__image {
  overflow: hidden;
  background: var(--soft);
}

.about__image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about__content {
  max-width: 620px;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  border-top: 1px solid var(--line);
}

.contact-card {
  display: grid;
  gap: 0.85rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-card address {
  font-style: normal;
  color: var(--muted);
}

.contact-card strong {
  color: var(--ink);
}

.contact-card > a:not(.button) {
  width: fit-content;
  color: var(--wood-dark);
  font-weight: 560;
}

.legal-hero {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: calc(78px + clamp(4rem, 8vw, 7rem)) 0 clamp(2rem, 5vw, 4rem);
  text-align: center;
}

.legal-hero .eyebrow {
  margin-right: auto;
  margin-left: auto;
}

.legal-hero h1 {
  color: var(--ink);
}

.legal-hero > p:not(.eyebrow) {
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
  font-size: 1.05rem;
}

.legal-content {
  padding-top: 0;
}

.legal-card {
  max-width: 880px;
  margin-right: auto;
  margin-left: auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--white);
  box-shadow: var(--shadow);
}

.legal-card h2 {
  margin-top: 2.4rem;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.2;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  color: var(--muted);
}

.legal-card a {
  color: var(--wood-dark);
  font-weight: 560;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 3.5rem);
  color: rgba(255, 255, 255, 0.8);
  background: var(--ink);
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 1rem;
}

.site-footer a:hover {
  color: var(--white);
}

.lightbox {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 4rem 1rem 1rem;
  background: rgba(18, 16, 13, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 6rem);
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: var(--white);
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font-size: 3rem;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox__nav--prev {
  left: 1rem;
}

.lightbox__nav--next {
  right: 1rem;
}

.scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  color: var(--white);
  background: rgba(36, 33, 28, 0.82);
  box-shadow: 0 12px 28px rgba(36, 33, 28, 0.2);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.75rem);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top.is-docked {
  position: absolute;
}

.scroll-top:hover {
  background: var(--wood);
}

.scroll-top svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    top: 78px;
    right: 0;
    left: 0;
    display: none;
    padding: 1rem;
    background: rgba(36, 33, 28, 0.96);
  }

  .site-nav.is-open {
    display: grid;
  }

  .nav-toggle {
    display: block;
  }

  .intro,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 620px) {
  .site-header {
    min-height: 68px;
  }

  .brand img {
    width: 132px;
  }

  .site-nav {
    top: 68px;
  }

  .legal-hero {
    padding-top: calc(68px + 3rem);
  }

  .hero {
    min-height: 100vh;
    padding-top: 68px;
  }

  .hero__image::after {
    background: linear-gradient(0deg, rgba(20, 18, 15, 0.86), rgba(20, 18, 15, 0.28));
  }

  .hero__content {
    margin: 0 1rem 3rem;
  }

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

  .service-card,
  .service-card img {
    min-height: 250px;
  }

  .lightbox {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .lightbox__nav {
    top: auto;
    bottom: 1rem;
    width: 44px;
    height: 44px;
    font-size: 2.25rem;
    transform: none;
  }

  .scroll-top {
    right: 0.9rem;
    bottom: 0.9rem;
    width: 42px;
    height: 42px;
  }

  .site-footer {
    display: grid;
  }
}
