:root {
  --ink: #171717;
  --muted: #5f625d;
  --line: #ded8cd;
  --paper: #f6f3ec;
  --white: #fffdf8;
  --steel: #31363a;
  --rust: #c86f2f;
  --olive: #4d5d4a;
  --amber: #e4a329;
  --shadow: 0 24px 60px rgba(23, 23, 23, 0.16);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  min-width: 320px;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

.site-header.is-scrolled {
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 1px 0 rgba(23, 23, 23, 0.08);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 2px solid currentColor;
  transform: rotate(45deg);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 12px;
  height: 20px;
  border-right: 5px solid var(--rust);
  border-bottom: 5px solid var(--rust);
}

.brand span:last-child {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-size: 0.96rem;
  line-height: 1;
}

.brand small {
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 800;
  color: var(--rust);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 36px);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

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

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(23, 23, 23, 0.84), rgba(23, 23, 23, 0.35) 52%, rgba(23, 23, 23, 0.18)),
    linear-gradient(0deg, rgba(23, 23, 23, 0.75), rgba(23, 23, 23, 0.03) 48%);
}

.hero-content {
  width: min(780px, calc(100% - 36px));
  margin: 0 0 clamp(112px, 16vh, 172px) clamp(18px, 5vw, 76px);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy {
  width: min(560px, 100%);
  margin: 28px 0 0;
  color: rgba(255, 253, 248, 0.9);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.45;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

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

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

.button-secondary {
  border-color: rgba(255, 253, 248, 0.55);
  color: var(--white);
  background: rgba(255, 253, 248, 0.08);
}

.hero-facts {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 253, 248, 0.24);
  color: var(--white);
  background: rgba(23, 23, 23, 0.58);
  backdrop-filter: blur(10px);
}

.hero-facts span {
  min-height: 78px;
  display: flex;
  align-items: center;
  padding: 18px clamp(18px, 4vw, 42px);
  border-right: 1px solid rgba(255, 253, 248, 0.2);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-facts span:last-child {
  border-right: 0;
}

.section-pad {
  padding: clamp(64px, 9vw, 116px) clamp(18px, 5vw, 76px);
}

.intro,
.work,
.services,
.contact {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(32px, 7vw, 88px);
}

.section-heading h2,
.contact-main h2,
.owner-band h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro-text {
  display: grid;
  gap: 22px;
  align-content: start;
  max-width: 790px;
}

.intro-text p,
.contact-main p,
.owner-band p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.45vw, 1.22rem);
  line-height: 1.7;
}

.work {
  background: var(--white);
}

.filter-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: -18px;
}

.filter {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  background: transparent;
  color: var(--steel);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.gallery {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

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

.image-button {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  padding: 0;
  background: var(--steel);
  cursor: zoom-in;
  overflow: hidden;
}

.image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.project-card:hover .image-button img {
  transform: scale(1.035);
}

.project-card div {
  padding: 18px;
}

.project-card h3,
.service-grid h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.project-card p,
.service-grid p,
.contact-details span {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-grid article {
  min-height: 238px;
  display: grid;
  align-content: space-between;
  gap: 28px;
  padding: clamp(20px, 4vw, 34px);
  background: var(--paper);
}

.service-number {
  color: var(--olive);
  font-weight: 900;
}

.owner-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  padding: clamp(32px, 5vw, 58px) clamp(18px, 5vw, 76px);
  background: var(--ink);
  color: var(--white);
}

.owner-band img {
  width: 100%;
  height: min(580px, 70vh);
  object-fit: cover;
  object-position: 50% 48%;
  border-radius: 8px;
}

.owner-band p:not(.eyebrow) {
  max-width: 580px;
  margin-top: 22px;
  color: rgba(255, 253, 248, 0.78);
}

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

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

.contact-main p {
  max-width: 620px;
  margin-top: 24px;
  color: rgba(255, 253, 248, 0.82);
}

.contact-details {
  display: grid;
  gap: 12px;
  align-content: start;
}

.contact-details article {
  display: grid;
  gap: 6px;
  padding: 20px;
  border: 1px solid rgba(255, 253, 248, 0.25);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.08);
}

.contact-details span {
  margin: 0;
  color: rgba(255, 253, 248, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-details strong {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
}

.contact-details .button {
  width: fit-content;
  margin-top: 8px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(18px, 5vw, 76px);
  background: var(--ink);
  color: rgba(255, 253, 248, 0.76);
  font-size: 0.85rem;
}

.site-footer span:first-child {
  color: var(--white);
  font-weight: 900;
  text-transform: uppercase;
}

.lightbox {
  width: min(1040px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  border: 0;
  border-radius: 8px;
  padding: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(23, 23, 23, 0.78);
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: var(--ink);
}

.lightbox p {
  margin: 12px 0 0;
  font-weight: 900;
  text-transform: uppercase;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 38px;
  border: 1px solid rgba(255, 253, 248, 0.5);
  border-radius: 6px;
  padding: 0 12px;
  background: rgba(23, 23, 23, 0.74);
  color: var(--white);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .site-nav {
    gap: 12px;
    padding-top: 4px;
    font-size: 0.76rem;
  }

  .hero {
    min-height: 850px;
  }

  .hero-content {
    margin: 0 18px 238px;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-facts span {
    min-height: 58px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 253, 248, 0.18);
  }

  .intro,
  .work,
  .services,
  .contact,
  .owner-band {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .site-header {
    position: absolute;
    display: grid;
    gap: 16px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .hero {
    min-height: 900px;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 16px 250px;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 18vw, 4.8rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .owner-band img {
    height: 420px;
  }

  .site-footer {
    display: grid;
  }
}

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