:root {
  --ink: #181818;
  --muted: #62666d;
  --line: #ded8ce;
  --paper: #f7f4ee;
  --white: #fff;
  --blue: #0a66a4;
  --gold: #b78b42;
  --shadow: 0 18px 45px rgba(24, 24, 24, 0.12);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, Arial, Helvetica, sans-serif; }
a { color: inherit; }

.page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 14px clamp(18px, 5vw, 74px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 238, 0.96);
  backdrop-filter: blur(14px);
}

.page-brand img { display: block; width: min(310px, 52vw); height: 52px; object-fit: contain; object-position: left center; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 17px; border-radius: 4px; background: var(--ink); color: var(--white); font-size: .9rem; font-weight: 800; text-decoration: none; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }

.projects-hero { padding: clamp(64px, 9vw, 120px) clamp(18px, 7vw, 110px); }
.projects-hero h1 { max-width: 1250px; margin: 0; font-size: clamp(3rem, 8vw, 7.3rem); line-height: .98; }
.projects-hero > p:last-child { max-width: 970px; margin: 28px 0 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.3rem); line-height: 1.7; }

.featured-projects, .catalog-projects { padding: 24px clamp(18px, 7vw, 110px) clamp(72px, 9vw, 120px); }
.section-heading { max-width: 900px; margin-bottom: 30px; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 5vw, 4.5rem); line-height: 1.05; }
.section-heading > p:last-child:not(.eyebrow) { color: var(--muted); line-height: 1.7; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 10px 28px rgba(24, 24, 24, .06); }
.project-card > img, .project-image-pair { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.project-image-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; }
.project-image-pair img { width: 100%; height: 100%; object-fit: cover; }
.project-card-wide { grid-column: 1 / -1; }
.project-card-wide > img { aspect-ratio: 2.2 / 1; }
.project-info { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; min-height: 235px; padding: 26px; }
.project-info > span { color: var(--gold); font-size: 1.35rem; font-weight: 900; }
.project-info p { margin: 0 0 8px; color: var(--blue); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.project-info h3 { margin: 0; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.25; }
.project-info address, .project-info em { display: block; margin-top: 10px; color: var(--muted); font-style: normal; line-height: 1.55; }
.project-info em { font-style: italic; }

.catalog-projects { background: var(--white); }
.catalog-page-list { display: grid; gap: 28px; margin-top: clamp(48px, 7vw, 90px); }
.catalog-page-list figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: var(--shadow); }
.catalog-page-list img { display: block; width: 100%; height: auto; }
.catalog-page-list figcaption { padding: 14px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }

.page-footer { display: flex; justify-content: space-between; gap: 20px; padding: 25px clamp(18px, 5vw, 74px); background: var(--ink); color: rgba(255,255,255,.78); font-size: .92rem; }
.page-footer p { margin: 0; }
.page-footer a { color: var(--white); font-weight: 800; }

@media (max-width: 760px) {
  .project-grid { grid-template-columns: 1fr; }
  .project-card-wide { grid-column: auto; }
  .project-card-wide > img { aspect-ratio: 16 / 10; }
  .project-info { min-height: auto; padding: 22px; }
}

@media (max-width: 620px) {
  .page-header { min-height: 68px; gap: 12px; }
  .page-brand img { height: 42px; }
  .back-link { padding: 0 12px; font-size: .8rem; }
  .project-info { grid-template-columns: 1fr; }
  .page-footer { flex-direction: column; }
}
