@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Libre+Baskerville:ital@0;1&display=swap");

:root {
  --ink: #11110f;
  --coal: #24211d;
  --paper: #f7f4ee;
  --mist: #ece7dc;
  --white: #ffffff;
  --muted: #6f6a62;
  --line: #ddd6c8;
  --gold: #b58b33;
  --clay: #9b513d;
  --olive: #687260;
  --shadow: 0 24px 70px rgba(22, 20, 17, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid rgba(221, 214, 200, 0.85);
  background: rgba(247, 244, 238, 0.93);
  backdrop-filter: blur(16px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 35px rgba(17, 17, 15, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 32px;
}

.brand img {
  width: 184px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--coal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 12px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 2px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: relative;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 4px;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .menu-toggle span {
  background: transparent;
}

body.nav-open .menu-toggle span::before {
  top: 2px;
  transform: rotate(45deg);
  background: var(--ink);
}

body.nav-open .menu-toggle span::after {
  top: 0;
  transform: rotate(-45deg);
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 156px 0 72px;
  overflow: hidden;
  color: var(--white);
  background: var(--coal);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(17, 17, 15, 0.92), rgba(17, 17, 15, 0.55) 44%, rgba(17, 17, 15, 0.12)),
    linear-gradient(0deg, rgba(17, 17, 15, 0.72), rgba(17, 17, 15, 0.06) 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: calc(100svh - 228px);
  align-content: end;
  gap: 44px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

.hero h1,
.page-hero h1 {
  max-width: 880px;
  margin-bottom: 24px;
  font-size: clamp(48px, 9vw, 112px);
  line-height: 0.93;
  letter-spacing: -0.045em;
}

.serif {
  font-family: "Libre Baskerville", Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2vw, 24px);
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

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

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

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

.button.outline {
  border-color: var(--line);
  color: var(--ink);
}

.section {
  padding: 108px 0;
}

.section.tight {
  padding: 76px 0;
}

.section.dark {
  background: var(--coal);
  color: var(--white);
}

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

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.5fr);
  gap: 46px;
  align-items: end;
  margin-bottom: 44px;
}

.section-head h2,
.split-copy h2,
.cta-panel h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.section-head p,
.split-copy p,
.lead {
  color: var(--muted);
  font-size: 17px;
}

.section.dark .section-head p,
.section.dark .lead {
  color: rgba(255, 255, 255, 0.72);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.split-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split-copy {
  max-width: 610px;
}

.fact-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.fact-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.fact-item strong {
  color: var(--clay);
  font-size: 20px;
}

.service-grid,
.project-grid,
.contact-grid,
.value-grid {
  display: grid;
  gap: 22px;
}

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

.service-card,
.project-card,
.contact-card,
.value-card,
.timeline-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.service-card,
.value-card {
  padding: 28px;
}

.service-card small,
.project-card small,
.tag {
  color: var(--clay);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.service-card h3,
.value-card h3,
.project-card h3 {
  margin: 16px 0 12px;
  font-size: 24px;
  line-height: 1.16;
}

.service-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

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

.project-card {
  overflow: hidden;
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-card:hover img {
  transform: scale(1.04);
}

.project-card-body {
  padding: 24px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(104, 114, 96, 0.13);
  color: var(--olive);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status.done {
  background: rgba(181, 139, 51, 0.16);
  color: #87631e;
}

.page-hero {
  padding: 170px 0 84px;
  background: var(--coal);
  color: var(--white);
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 19px;
}

.page-hero.with-image {
  position: relative;
  overflow: hidden;
}

.page-hero.with-image img {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(46vw, 680px);
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.page-hero.with-image .container {
  position: relative;
  z-index: 2;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.timeline-item {
  padding: 28px;
}

.timeline-item strong {
  color: var(--gold);
  font-size: 34px;
}

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

.project-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  padding: 10px 15px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.project-list {
  display: grid;
  gap: 28px;
}

.project-row {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.project-row[hidden] {
  display: none;
}

.project-row-media {
  overflow: hidden;
  border-radius: 6px;
  background: var(--mist);
}

.project-row-media img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.project-row-body {
  display: grid;
  align-content: center;
  padding: 26px 18px;
}

.project-row h2 {
  margin: 12px 0 16px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.detail-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-grid strong {
  display: block;
  margin-top: 6px;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.gallery-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
}

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

.archive-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.archive-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

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

.archive-card h3 {
  margin: 8px 0 6px;
  font-size: 20px;
}

.contact-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.contact-card {
  padding: 30px;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.contact-list a,
.contact-list span {
  display: block;
  color: var(--muted);
}

.contact-list strong {
  display: block;
  color: var(--ink);
}

.contact-form {
  display: grid;
  gap: 16px;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  padding: 14px 15px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(181, 139, 51, 0.16);
}

.map-frame {
  height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 44px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
}

.cta-panel p {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer {
  padding: 58px 0;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 0.8fr;
  gap: 34px;
  align-items: start;
}

.footer-logo {
  width: 176px;
  margin-bottom: 18px;
}

.footer-grid h3 {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-grid p,
.footer-grid li {
  color: var(--muted);
  font-size: 14px;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li + li {
  margin-top: 8px;
}

.copyright {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    position: fixed;
    inset: 82px 0 auto 0;
    display: grid;
    gap: 0;
    padding: 16px 20px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }

  body.nav-open .site-nav {
    transform: translateY(0);
  }

  .site-nav a {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .hero {
    padding-top: 128px;
  }

  .hero-content {
    min-height: calc(100svh - 190px);
  }

  .section-head,
  .split,
  .contact-grid,
  .project-row,
  .cta-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .project-grid,
  .timeline,
  .value-grid,
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero.with-image img {
    width: 100%;
    opacity: 0.22;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .brand img {
    width: 154px;
  }

  .nav-wrap {
    min-height: 76px;
  }

  .site-nav {
    top: 76px;
  }

  .hero {
    padding: 114px 0 36px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(46px, 16vw, 64px);
  }

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

  .button {
    width: 100%;
  }

  .section {
    padding: 72px 0;
  }

  .page-hero {
    padding: 130px 0 58px;
  }

  .service-grid,
  .project-grid,
  .timeline,
  .value-grid,
  .archive-grid,
  .detail-grid,
  .gallery-strip,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .project-row {
    padding: 12px;
  }

  .project-row-media img {
    min-height: 250px;
  }

  .project-row-body {
    padding: 18px 8px 8px;
  }

  .cta-panel {
    padding: 28px;
  }
}
