:root {
  --ink: #141414;
  --paper: #f7f4ef;
  --muted: #6e6a63;
  --line: #d9d2c8;
  --charcoal: #20201d;
  --copper: #a85f3c;
  --sage: #7a886a;
  --gold: #c39545;
  --white: #fffdf8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, border 180ms ease;
}

.site-header.scrolled {
  color: var(--ink);
  background: rgba(247, 244, 239, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 30px);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav a {
  padding: 7px 0;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  border-color: currentColor;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--charcoal);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(12, 12, 10, 0.78), rgba(12, 12, 10, 0.2) 55%, rgba(12, 12, 10, 0.5)),
    linear-gradient(0deg, rgba(12, 12, 10, 0.72), rgba(12, 12, 10, 0) 42%);
}

.hero-media {
  position: absolute;
  inset: 0;
  opacity: 0.95;
}

.hero-media img {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  transform: scale(1.035);
  transition: opacity 1200ms ease, transform 5200ms ease;
}

.hero-media img.active {
  opacity: 1;
  transform: scale(1);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(800px, calc(100% - 36px));
  margin: 0 clamp(18px, 6vw, 86px) clamp(62px, 10vh, 110px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--white);
}

.hero h1,
.section-head h2,
.about-section h2,
.contact-section h2 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(2.4rem, 8vw, 7.5rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 253, 248, 0.86);
  font-size: clamp(1rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid currentColor;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.button.secondary {
  color: var(--white);
}

.intro-band {
  padding: clamp(34px, 6vw, 76px) clamp(18px, 6vw, 86px);
  background: var(--charcoal);
  color: var(--white);
}

.intro-band p {
  max-width: 1120px;
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 3.1rem);
  font-weight: 700;
  line-height: 1.08;
}

.work-section,
.about-section,
.contact-section {
  padding: clamp(58px, 8vw, 108px) clamp(18px, 4vw, 56px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 30px;
}

.section-head h2,
.about-section h2,
.contact-section h2 {
  font-size: clamp(2rem, 5.8vw, 5.8rem);
  line-height: 0.94;
}

.filter-bar {
  position: sticky;
  z-index: 10;
  top: 73px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -18px 26px;
  padding: 10px 18px;
  background: rgba(247, 244, 239, 0.9);
  border-block: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.cms-notice {
  margin-bottom: 20px;
  padding: 16px;
  color: var(--white);
  background: var(--charcoal);
  border-left: 4px solid var(--gold);
  line-height: 1.5;
}

.cms-notice code {
  color: var(--gold);
}

.filter {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 14px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter.active,
.filter:hover,
.filter:focus-visible {
  color: var(--white);
  background: var(--charcoal);
  border-color: var(--charcoal);
}

.gallery {
  columns: 4 260px;
  column-gap: 10px;
}

.photo {
  position: relative;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  overflow: hidden;
  break-inside: avoid;
  color: var(--white);
  background: var(--charcoal);
  border: 0;
  cursor: zoom-in;
  isolation: isolate;
}

.photo img,
.photo video {
  height: auto;
  filter: saturate(0.96) contrast(1.02);
  transition: transform 460ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 460ms ease,
    opacity 460ms ease;
}

.photo video {
  width: 100%;
}

.photo span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 54px;
  opacity: 0;
  color: rgba(255, 253, 248, 0.94);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.photo span em {
  color: rgba(255, 253, 248, 0.68);
  font-style: normal;
}

.photo::after {
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  content: "";
  opacity: 0;
  background:
    linear-gradient(0deg, rgba(11, 9, 7, 0.72), rgba(11, 9, 7, 0.18) 58%, transparent),
    linear-gradient(90deg, rgba(168, 95, 60, 0.18), rgba(195, 149, 69, 0.08));
  transition: opacity 300ms ease;
}

.photo:hover img,
.photo:hover video,
.photo:focus-visible img,
.photo:focus-visible video {
  filter: saturate(1.03) contrast(1.04) brightness(0.96);
  transform: scale(1.012);
}

.photo:hover span,
.photo:hover::after,
.photo:focus-visible span,
.photo:focus-visible::after {
  opacity: 1;
}

.photo span {
  z-index: 1;
}

.photo:hover span,
.photo:focus-visible span {
  transform: translateY(0);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.62fr);
  gap: clamp(32px, 8vw, 92px);
  background: var(--white);
  border-block: 1px solid var(--line);
}

.about-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.72;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.services article {
  min-height: 260px;
  padding: clamp(28px, 4vw, 54px);
  border-right: 1px solid var(--line);
}

.services article:last-child {
  border-right: 0;
}

.services span {
  color: var(--copper);
  font-weight: 800;
}

.services h3 {
  margin: 38px 0 12px;
  font-size: clamp(1.35rem, 2.5vw, 2.5rem);
  line-height: 1;
}

.services p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.contact-section {
  background: var(--charcoal);
  color: var(--white);
}

.contact-section .eyebrow {
  color: var(--gold);
}

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

.contact-links a,
.contact-links span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid rgba(255, 253, 248, 0.48);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: var(--charcoal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: inherit;
  text-underline-offset: 4px;
}

.lightbox {
  width: min(1180px, calc(100vw - 32px));
  max-height: calc(100svh - 28px);
  padding: 14px;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.1), rgba(255, 253, 248, 0.03)),
    rgba(20, 20, 18, 0.72);
  border: 1px solid rgba(255, 253, 248, 0.16);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition: opacity 220ms ease, transform 220ms ease;
}

.lightbox::backdrop {
  background:
    radial-gradient(circle at 20% 12%, rgba(195, 149, 69, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(9, 8, 7, 0.9), rgba(25, 22, 18, 0.82));
  backdrop-filter: blur(14px) saturate(0.84);
}

.lightbox[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.lightbox img,
.lightbox video {
  width: 100%;
  max-height: calc(100svh - 112px);
  object-fit: contain;
  background: var(--charcoal);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
}

.lightbox p {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 12px 2px 0;
  color: rgba(255, 253, 248, 0.82);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  min-height: 38px;
  padding: 0 14px;
  color: var(--white);
  background: rgba(20, 20, 18, 0.58);
  border: 1px solid rgba(255, 253, 248, 0.24);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  transition: background 180ms ease, border 180ms ease, transform 180ms ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(255, 253, 248, 0.16);
  border-color: rgba(255, 253, 248, 0.5);
  transform: translateY(-1px);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  z-index: 2;
  min-height: 44px;
  min-width: 72px;
  padding: 0 16px;
  color: var(--white);
  background: rgba(20, 20, 18, 0.58);
  border: 1px solid rgba(255, 253, 248, 0.24);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
  transition: background 180ms ease, border 180ms ease, transform 180ms ease;
}

.lightbox-prev {
  left: max(16px, calc((100vw - 1180px) / 2 - 86px));
}

.lightbox-next {
  right: max(16px, calc((100vw - 1180px) / 2 - 86px));
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: rgba(255, 253, 248, 0.16);
  border-color: rgba(255, 253, 248, 0.5);
  transform: translateY(-50%) translateY(-1px);
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    padding: 16px 18px;
  }

  .main-nav {
    max-width: 220px;
    gap: 9px 14px;
    font-size: 0.68rem;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-media {
    display: block;
  }

  .hero-copy {
    margin-bottom: 38px;
  }

  .about-section,
  .services {
    grid-template-columns: 1fr;
  }

  .services article {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .site-footer {
    display: grid;
  }

  .lightbox-nav {
    top: 50%;
    bottom: auto;
    min-width: 48px;
    width: 48px;
    min-height: 48px;
    padding: 0;
    overflow: hidden;
    color: transparent;
    transform: translateY(-50%);
  }

  .lightbox-nav:hover,
  .lightbox-nav:focus-visible {
    transform: translateY(-50%) translateY(-1px);
  }

  .lightbox-nav::before {
    color: var(--white);
    font-size: 1.15rem;
    line-height: 1;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-prev::before {
    content: "<";
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-next::before {
    content: ">";
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 0.92rem;
  }

  .main-nav a[href="#about"],
  .main-nav a[href="#contact"] {
    display: none;
  }

  .hero-copy {
    width: calc(100% - 28px);
    margin-inline: 14px;
  }

  .button {
    width: 100%;
  }

  .gallery {
    columns: 2 150px;
  }
}
