:root {
  --ink: #f4efdf;
  --muted: #d2c9a9;
  --gold: #b58b3c;
  --olive: #9da37c;
  --moss: #232718;
  --moss-deep: #14180f;
  --button: #898d63;
  --panel: rgba(20, 24, 15, 0.78);
  color-scheme: dark;
  font-family: Inter, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 88% 78%, rgba(103, 111, 72, 0.22), transparent 32rem),
    linear-gradient(135deg, #1d2114 0%, var(--moss-deep) 100%);
  color: var(--ink);
}

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

.site-shell {
  position: relative;
  width: min(100%, 1180px);
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(27, 31, 19, 0.94), rgba(18, 21, 14, 0.98));
}

.hero {
  position: relative;
  min-height: 75svh;
  padding: 2.25rem 1.4rem 1.4rem;
  isolation: isolate;
}

.hero__photo {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("assets/images/hero-entry.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.95;
  transform: translate3d(0, var(--hero-parallax-y, 0), 0) scale(var(--hero-parallax-scale, 1.12));
  transform-origin: center top;
  will-change: transform;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(15, 18, 11, 0.86) 0%, rgba(15, 18, 11, 0.2) 35%, rgba(16, 19, 12, 0.94) 78%),
    linear-gradient(90deg, rgba(13, 17, 10, 0.72), rgba(13, 17, 10, 0.14) 56%, rgba(13, 17, 10, 0.58));
}

.hero__leaf {
  position: absolute;
  right: -2.8rem;
  bottom: -1.2rem;
  z-index: -1;
  width: 13rem;
  aspect-ratio: 1;
  opacity: 0.11;
  background: url("assets/icons/leaf-watermark.svg") center / contain no-repeat;
  transform: rotate(-18deg);
}

.hero__content {
  display: grid;
  min-height: calc(75svh - 3.65rem);
  align-content: space-between;
  gap: 2rem;
  padding-top: 12.5rem;
}

.brand {
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

header.brand {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 1000;
  display: grid;
  justify-items: center;
  width: min(100%, 1180px);
  padding: 0.8rem 1rem 0.95rem;
  background: rgba(20, 24, 15, 0.94);
  box-shadow: 0 0.8rem 2.2rem rgba(0, 0, 0, 0.26);
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
  transition:
    padding 360ms ease,
    background 360ms ease,
    box-shadow 360ms ease;
}

.brand__identity {
  width: 11rem;
  margin: 0 auto;
  transition: width 360ms ease;
}

.brand__mark {
  width: 6.1rem;
  margin: 0 auto 0.35rem;
  transition: width 360ms ease, margin 360ms ease;
}

.brand__name {
  margin: 0;
  font-size: clamp(1rem, 5.8vw, 1.45rem);
  line-height: 1;
  text-align: center;
  transition: font-size 360ms ease;
}

.brand__subname {
  position: relative;
  width: fit-content;
  margin: 0.36rem auto 0;
  padding: 0 0.55rem;
  color: var(--muted);
  font-size: 0.53rem;
  letter-spacing: 0.58em;
  line-height: 1;
  transition: font-size 360ms ease, margin 360ms ease;
}

.brand__subname::before,
.brand__subname::after {
  position: absolute;
  top: 50%;
  width: 1.1rem;
  height: 1px;
  background: var(--gold);
  content: "";
}

.brand__subname::before {
  right: 100%;
}

.brand__subname::after {
  left: 100%;
}

.brand__estimate {
  display: grid;
  width: min(25rem, calc(100vw - 2.5rem));
  gap: 0.38rem;
  margin: 0.85rem auto 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(181, 139, 60, 0.45);
  background: rgba(20, 24, 15, 0.86);
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 0.8rem 2.2rem rgba(0, 0, 0, 0.26);
  transition:
    width 360ms ease,
    gap 360ms ease,
    margin 360ms ease,
    padding 360ms ease,
    font-size 360ms ease,
    letter-spacing 360ms ease,
    line-height 360ms ease,
    box-shadow 360ms ease;
}

.brand__estimate a {
  color: var(--gold);
  font-size: 1.75rem;
  letter-spacing: 0.18em;
  text-decoration: none;
  white-space: nowrap;
  transition: font-size 360ms ease, letter-spacing 360ms ease;
}

.brand__estimate-text {
  display: grid;
  gap: 0.1rem;
  transition: gap 360ms ease;
}

.brand__estimate-text span {
  white-space: nowrap;
}

.brand__estimate a:focus-visible,
.brand__estimate a:hover {
  color: var(--ink);
  outline: 2px solid rgba(244, 239, 223, 0.72);
  outline-offset: 3px;
}

@media (max-width: 859px) {
  header.brand.is-gallery-compact {
    padding: 0.5rem 0.75rem 0.62rem;
  }

  header.brand.is-gallery-compact .brand__identity {
    width: 8.1rem;
  }

  header.brand.is-gallery-compact .brand__mark {
    width: 4.5rem;
    margin-bottom: 0.2rem;
  }

  header.brand.is-gallery-compact .brand__name {
    font-size: clamp(0.8rem, 4.3vw, 1.03rem);
  }

  header.brand.is-gallery-compact .brand__subname {
    margin-top: 0.26rem;
    font-size: 0.42rem;
  }

  header.brand.is-gallery-compact .brand__estimate {
    width: min(25rem, calc(100vw - 1.5rem));
    gap: 0.22rem;
    margin-top: 0.5rem;
    padding: 0.52rem 0.55rem;
    font-size: clamp(0.56rem, 2.55vw, 0.76rem);
    letter-spacing: 0.045em;
    line-height: 1.18;
  }

  header.brand.is-gallery-compact .brand__estimate-text {
    grid-template-columns: max-content max-content;
    justify-content: center;
    gap: 0.25em;
  }

  header.brand.is-gallery-compact .brand__estimate a {
    font-size: clamp(0.88rem, 4.8vw, 1.12rem);
    letter-spacing: 0.08em;
  }
}

.intro {
  max-width: 26rem;
  padding-top: 3.4rem;
}

.intro h1 {
  max-width: 8.5em;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.15rem, 16vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.intro__kicker {
  width: fit-content;
  margin: 0.85rem 0 0;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.55rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 4vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.32em;
  line-height: 1;
  text-transform: uppercase;
}

.intro__copy {
  max-width: 23rem;
  margin: 0.9rem 0 0;
  color: #fff9ea;
  font-size: 0.87rem;
  line-height: 1.35;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.services li {
  display: grid;
  min-height: 5.4rem;
  align-content: end;
  justify-items: center;
  border-left: 1px solid rgba(244, 239, 223, 0.22);
  padding: 0 0.3rem;
  text-align: center;
}

.services li:first-child {
  border-left: 0;
}

.services img {
  width: min(3.7rem, 21vw);
  height: 3rem;
  object-fit: contain;
}

.services span {
  margin-top: 0.3rem;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
}

.projects {
  position: relative;
  padding: 0 0 1.7rem;
  background: rgba(14, 17, 10, 0.92);
}

.projects h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(181, 139, 60, 0.24);
  border-bottom: 1px solid rgba(181, 139, 60, 0.24);
}

.project-card {
  position: relative;
  min-width: 0;
  margin: 0;
  border-left: 1px solid var(--moss-deep);
  overflow: hidden;
  background: #16190f;
}

.project-card:first-child {
  border-left: 0;
}

.project-card img {
  width: 100%;
  aspect-ratio: 1 / 1.18;
  object-fit: cover;
  transition: transform 420ms ease, filter 420ms ease;
}

.project-card h3 {
  position: absolute;
  inset: auto 0 0;
  margin: 0;
  padding: 1.1rem 0.45rem 0.45rem;
  background: linear-gradient(180deg, transparent, rgba(13, 16, 9, 0.8));
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(0.4rem);
  transition: opacity 260ms ease, transform 260ms ease;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(12.2rem, calc(100% - 3rem));
  min-height: 2.6rem;
  margin: 1.1rem auto 0;
  gap: 1.8rem;
  background: linear-gradient(180deg, #969a72, var(--button));
  color: #fff9ea;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 200ms ease, filter 200ms ease;
}

.button img {
  width: 1.7rem;
}

.button:focus-visible,
.button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  outline: 2px solid rgba(244, 239, 223, 0.72);
  outline-offset: 3px;
}

.project-card:focus-within img,
.project-card:hover img {
  filter: saturate(1.08) contrast(1.05);
  transform: scale(1.035);
}

.project-card:focus-within h3,
.project-card:hover h3,
.is-touch .project-card h3 {
  opacity: 1;
  transform: translateY(0);
}

.gallery {
  padding: 3rem 1rem 3.5rem;
  background:
    radial-gradient(circle at 12% 8%, rgba(157, 163, 124, 0.14), transparent 22rem),
    linear-gradient(180deg, rgba(20, 24, 15, 0.98), #10130c);
}

.gallery__header {
  width: min(100%, 58rem);
  margin: 0 auto 1.2rem;
}

.gallery__header p {
  margin: 0 0 0.45rem;
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gallery__header h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 10vw, 4.2rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 0.55rem;
  width: min(100%, 58rem);
  margin: 0 auto;
}

.gallery__item {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #16190f;
  cursor: zoom-in;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
  transition: filter 320ms ease, transform 420ms ease;
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item--wide img {
  aspect-ratio: 16 / 9;
}

.gallery__item--tall img {
  aspect-ratio: 4 / 5;
}

.gallery__item:focus-within img,
.gallery__item:hover img {
  filter: saturate(1.02) contrast(1.05);
  transform: scale(1.025);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1rem;
  border: 0;
  background: rgba(8, 10, 6, 0.9);
  cursor: zoom-out;
  touch-action: pan-y;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(100%, 72rem);
  max-height: calc(100svh - 2rem);
  object-fit: contain;
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.45);
}

.lightbox__close {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(244, 239, 223, 0.42);
  background: rgba(20, 24, 15, 0.76);
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.34);
}

.lightbox__arrow {
  position: fixed;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(2.65rem, 12vw, 4rem);
  height: clamp(2.65rem, 12vw, 4rem);
  border: 1px solid rgba(244, 239, 223, 0.38);
  border-radius: 999px;
  background: rgba(20, 24, 15, 0.7);
  color: var(--ink);
  cursor: pointer;
  font-size: clamp(2.1rem, 9vw, 3.6rem);
  line-height: 1;
  transform: translateY(-50%);
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.34);
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}

.lightbox__arrow--previous {
  left: max(0.7rem, env(safe-area-inset-left));
}

.lightbox__arrow--next {
  right: max(0.7rem, env(safe-area-inset-right));
}

.lightbox__arrow:focus-visible,
.lightbox__arrow:hover {
  background: rgba(181, 139, 60, 0.82);
  color: #fff9ea;
  outline: 2px solid rgba(244, 239, 223, 0.72);
  outline-offset: 3px;
}

body.has-lightbox {
  overflow: hidden;
}

@media (min-width: 560px) {
  .site-shell {
    box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.4);
  }

  .hero {
    padding: 3rem clamp(2rem, 6vw, 5rem) 2rem;
  }

  .hero__content {
    min-height: 40rem;
  }

  .intro {
    padding-top: 9rem;
  }

  .services {
    max-width: 38rem;
  }

  .projects {
    padding-bottom: 2.5rem;
  }

  .gallery {
    padding: 4rem clamp(2rem, 5vw, 4rem) 4.5rem;
  }

  .gallery__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .gallery__item--tall {
    grid-row: span 2;
  }

  .gallery__item--tall img {
    aspect-ratio: 1 / 1.35;
  }
}

@media (min-width: 860px) {
  .site-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: 82svh;
  }

  .hero__photo {
    background-size: cover;
    background-position: center top;
    opacity: 0.9;
  }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(15, 18, 11, 0.92) 0%, rgba(15, 18, 11, 0.72) 38%, rgba(15, 18, 11, 0.26) 100%),
      linear-gradient(180deg, rgba(15, 18, 11, 0.5), rgba(15, 18, 11, 0.92) 92%);
  }

  .hero__content {
    width: min(42rem, 58vw);
  }

  header.brand {
    display: flex;
    align-items: center;
    width: min(100%, 1180px);
    gap: clamp(1.4rem, 3vw, 2.6rem);
    padding: 0.85rem clamp(2rem, 6vw, 5rem);
  }

  .brand__identity {
    margin: 0;
  }

  .brand__estimate {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex: 1;
    width: auto;
    min-width: 0;
    gap: 1rem;
    margin: 0;
    padding: 0.95rem 1.15rem;
  }

  .intro {
    padding-top: 5rem;
  }

  .intro h1 {
    max-width: 9.5em;
    font-size: clamp(5.6rem, 8vw, 7.5rem);
  }

  .intro__copy {
    font-size: 1rem;
  }

  .services {
    width: min(32rem, 100%);
  }

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

  .project-card img {
    aspect-ratio: 16 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
