:root {
  --ink: #17201b;
  --muted: #66706a;
  --paper: #f7f5ef;
  --stone: #d5cab8;
  --mortar: #e8e2d7;
  --clay: #9e5235;
  --forest: #234335;
  --steel: #43515a;
  --gold: #c69a4a;
  --white: #fffaf2;
  --shadow: 0 24px 80px rgba(24, 32, 27, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

img {
  display: block;
  max-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: 18px;
  padding: 14px clamp(18px, 4vw, 48px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
  background: rgba(255, 250, 242, 0.95);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(23, 32, 27, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-logo {
  display: grid;
  width: 82px;
  height: 62px;
  place-items: center;
  border-radius: 8px;
  background: transparent;
  padding: 0;
  filter: drop-shadow(0 8px 18px rgba(23, 32, 27, 0.22));
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.32rem;
  letter-spacing: 0;
}

.brand small {
  margin-top: 1px;
  color: currentColor;
  font-size: 0.76rem;
  opacity: 0.72;
}

.main-nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.94rem;
  font-weight: 600;
}

.main-nav a {
  opacity: 0.86;
}

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

.header-cta,
.button,
.filter,
.upload-button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.header-cta {
  padding: 11px 18px;
  background: var(--gold);
  color: #18130a;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 140px clamp(18px, 6vw, 72px) 64px;
  overflow: hidden;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(15, 23, 19, 0.86), rgba(15, 23, 19, 0.34) 58%, rgba(15, 23, 19, 0.18)),
    linear-gradient(0deg, rgba(15, 23, 19, 0.56), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  width: min(760px, 100%);
  color: var(--white);
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

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

h1 {
  max-width: 8ch;
  font-size: clamp(5rem, 15vw, 12rem);
  letter-spacing: 0;
}

.hero-logo {
  width: min(300px, 42vw);
  margin: 6px auto 0;
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.34));
}

.hero-logo img {
  width: 100%;
  height: auto;
}

.brand-kicker {
  margin: 4px 0 0;
  color: rgba(255, 250, 242, 0.72);
  font-size: clamp(1.28rem, 3vw, 2.15rem);
  font-weight: 700;
}

.hero-copy {
  max-width: 660px;
  margin: 24px auto 0;
  color: rgba(255, 250, 242, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 20px;
}

.button.primary {
  background: var(--gold);
  color: #1b160c;
}

.button.secondary {
  background: rgba(255, 250, 242, 0.13);
  color: var(--white);
  border: 1px solid rgba(255, 250, 242, 0.45);
}

.section {
  padding: clamp(64px, 8vw, 108px) clamp(18px, 6vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(280px, 1.3fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto 42px;
}

.section-heading.compact {
  margin-bottom: 26px;
}

.section-heading h2,
.quote-band h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.expertise-grid article,
.work-card {
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(23, 32, 27, 0.08);
}

.expertise-grid article {
  min-height: 270px;
  padding: 26px;
}

.card-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 8px;
  background: var(--forest);
  color: var(--white);
  font-weight: 900;
}

.expertise-grid h3,
.work-card h3 {
  font-size: 1.24rem;
}

.expertise-grid p,
.work-card p,
.quote-band p {
  color: var(--muted);
  line-height: 1.62;
}

.achievements {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--ink);
}

.metric {
  min-height: 190px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 34px;
  background: var(--forest);
  color: var(--white);
}

.metric strong {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.metric span {
  color: rgba(255, 250, 242, 0.76);
  font-weight: 700;
}

.current-projects {
  background: var(--paper);
}

.current-projects .section-heading > p {
  align-self: end;
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.project-card {
  min-height: 310px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  overflow: hidden;
  padding: 0 28px 28px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(23, 32, 27, 0.08);
}

.project-comparisons {
  display: grid;
  gap: 18px;
  margin: 0 -28px 4px;
  padding: 18px;
  background: var(--mortar);
}

.project-comparison {
  display: grid;
  gap: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
}

.project-comparison h4 {
  margin: 0;
  padding: 14px 18px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.88rem;
  text-transform: uppercase;
}

.project-visuals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  align-items: stretch;
  background: var(--stone);
  height: 520px;
}

.project-visual {
  position: relative;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  margin: 0;
  overflow: hidden;
  background: #f2eee6;
}

.project-visual-group {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1px;
  height: 100%;
  min-height: 0;
  background: var(--stone);
}

.project-visual-group .project-visual {
  min-height: 0;
  aspect-ratio: auto;
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-visual figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(23, 32, 27, 0.74);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-extra {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  margin: -18px -28px 4px;
  background: var(--stone);
}

.project-extra-visual {
  position: relative;
  min-height: 300px;
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  background: #f2eee6;
}

.project-extra-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-extra-visual figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(23, 32, 27, 0.74);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-card span {
  width: max-content;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(158, 82, 53, 0.12);
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-card h3 {
  font-size: 1.42rem;
}

.project-card p {
  color: var(--muted);
  line-height: 1.62;
}

.project-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--mortar);
}

.project-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--forest);
}

.project-card strong {
  color: var(--forest);
  font-size: 1.4rem;
}

.works {
  background: var(--mortar);
}

.work-tools {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto 22px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter,
.upload-button {
  min-height: 42px;
  padding: 11px 14px;
  background: rgba(255, 250, 242, 0.7);
  color: var(--ink);
}

.filter.active {
  background: var(--forest);
  color: var(--white);
}

.upload-button {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.featured-work {
  max-width: 1180px;
  margin: 0 auto 22px;
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.featured-card img,
.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-copy {
  display: grid;
  align-content: end;
  padding: clamp(26px, 5vw, 50px);
}

.featured-copy p {
  color: rgba(255, 250, 242, 0.76);
  line-height: 1.6;
}

.tag {
  width: max-content;
  margin-bottom: 18px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(198, 154, 74, 0.18);
  color: #f0cc7a;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.gallery-count {
  max-width: 1180px;
  margin: 0 auto 18px;
  color: var(--steel);
  font-size: 0.9rem;
  font-weight: 700;
}

.gallery {
  display: grid;
  grid-auto-flow: dense;
  grid-auto-rows: 115px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
}

.work-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 16px 38px rgba(23, 32, 27, 0.1);
}

.work-card.tall {
  grid-row: span 3;
}

.work-card.wide {
  grid-column: span 2;
  grid-row: span 2;
}

.work-card.standard {
  grid-row: span 2;
}

.work-card figure {
  height: 100%;
  margin: 0;
}

.work-card div {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  color: var(--white);
  background: linear-gradient(0deg, rgba(14, 20, 17, 0.78), rgba(14, 20, 17, 0));
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.work-card:hover div,
.work-card:focus-within div {
  opacity: 1;
  transform: translateY(0);
}

.work-card .tag {
  margin-bottom: 8px;
  background: rgba(255, 250, 242, 0.16);
}

.work-card h3 {
  font-size: 1rem;
}

.work-card p {
  display: none;
  margin-bottom: 0;
}

.gallery-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 34px;
  border: 1px solid rgba(35, 67, 53, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.6);
  color: var(--steel);
  font-weight: 700;
  text-align: center;
}

.quote-band {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 0.8fr);
  gap: clamp(24px, 6vw, 90px);
  padding: clamp(68px, 9vw, 120px) clamp(18px, 6vw, 72px);
  background: var(--forest);
  color: var(--white);
}

.quote-band p {
  align-self: end;
  color: rgba(255, 250, 242, 0.78);
  font-size: 1.08rem;
}

.estimate {
  background: var(--paper);
}

.estimate-form {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 38px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--steel);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d4ccc0;
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  padding: 14px;
}

textarea {
  resize: vertical;
}

.form-submit {
  width: min(100%, 260px);
}

.form-note {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--forest);
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 6vw, 72px);
  background: var(--ink);
  color: var(--white);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span {
  margin-top: 4px;
  color: rgba(255, 250, 242, 0.7);
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .section-heading,
  .featured-card,
  .quote-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 96svh;
    padding-bottom: 80px;
  }

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

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

  .featured-card {
    min-height: auto;
  }

  .featured-card figure {
    height: 340px;
    margin: 0;
  }

  .work-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .upload-button {
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 10px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand > span:last-child {
    display: none;
  }

  .brand-logo {
    width: 66px;
    height: 50px;
  }

  .header-cta {
    padding-inline: 14px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .gallery {
    grid-auto-rows: 132px;
    grid-template-columns: 1fr;
  }

  .work-card,
  .work-card.tall,
  .work-card.wide,
  .work-card.standard {
    grid-column: auto;
    grid-row: span 2;
  }

  .work-card div {
    opacity: 1;
    transform: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
