:root {
  --brick: #7B1E22;
  --brick-dark: #5E1518;
  --brick-light: #9B3035;
  --cream: #F4ECE1;
  --paper: #FBF8F3;
  --ink: #22201E;
  --muted: #5F5A55;
  --line: #E2D8CB;
  --radius: 10px;
  --max: 1160px;
  --head: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --body: 'Source Sans 3', 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brick); }
h1, h2, h3 {
  font-family: var(--head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); text-transform: uppercase; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .85rem;
  color: var(--brick);
  font-weight: 500;
  margin-bottom: .6em;
  display: block;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 1rem;
  font-weight: 500;
  padding: 14px 26px;
  border-radius: 6px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--brick); color: #fff; }
.btn-primary:hover { background: var(--brick-dark); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--brick); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,248,243,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand { display: block; width: 250px; }
.brand svg { width: 100%; height: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .95rem;
  color: var(--ink);
  text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--brick); }
.nav .btn { color: #fff; padding: 10px 18px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background-color: var(--brick-dark);
  background-image:
    linear-gradient(100deg, rgba(26,24,23,.94) 0%, rgba(26,24,23,.82) 42%, rgba(26,24,23,.35) 100%),
    url("assets/projects/hero.jpg");
  background-size: cover;
  background-position: center 40%;
  padding: 120px 0 130px;
}
.hero .eyebrow { color: #E8B9A6; }
.hero p.lead { font-size: 1.25rem; max-width: 620px; color: #EDE6DC; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px;
  font-family: var(--head); letter-spacing: .08em; text-transform: uppercase; font-size: .9rem; color: #D9CFC3;
}
.hero-badges span::before { content: "■"; color: var(--brick-light); margin-right: 8px; font-size: .7em; vertical-align: 2px; }

/* Sections */
section { padding: 90px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  border-top: 4px solid var(--brick);
}
.alt .card { background: var(--paper); }
.card .icon { width: 46px; height: 46px; color: var(--brick); margin-bottom: 16px; }
.card p { color: var(--muted); margin: 0; }

/* Split */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.check { list-style: none; padding: 0; margin: 20px 0 0; }
.check li { padding-left: 32px; position: relative; margin-bottom: 14px; }
.check li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px;
  background: var(--brick); border-radius: 3px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.panel {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 40px;
  background-image: linear-gradient(rgba(34,32,30,.94), rgba(34,32,30,.94)), url("assets/brick.svg");
  background-size: auto, 120px 60px;
}
.panel h3 { color: #fff; }
.creds { display: grid; gap: 18px; margin-top: 24px; }
.cred { border-left: 3px solid var(--brick-light); padding-left: 16px; }
.cred strong { display: block; font-family: var(--head); font-size: 1.4rem; letter-spacing: .04em; color: #fff; font-weight: 500; }
.cred span { color: #BFB5AA; font-size: .95rem; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--head); font-size: 2.6rem; font-weight: 600; color: var(--brick); line-height: 1;
}
.step p { color: var(--muted); }

/* CTA band */
.band { background: var(--brick); color: #fff; padding: 56px 0; }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.band h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.band .btn { background: #fff; color: var(--brick); }
.band .btn:hover { background: var(--cream); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list svg { width: 26px; height: 26px; flex: none; color: var(--brick); margin-top: 3px; }
.contact-list .label { display: block; font-family: var(--head); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--muted); }
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 600; word-break: break-word; }
.contact-list a:hover { color: var(--brick); }
form.contact { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.field { margin-bottom: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid #CFC4B6; border-radius: 6px; background: var(--paper);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brick); outline-offset: 1px; border-color: var(--brick); }
textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .9rem; color: var(--muted); margin-top: 12px; }

/* Page header (inner pages) */
.page-hero {
  background: var(--ink);
  background-image: linear-gradient(rgba(34,32,30,.9), rgba(34,32,30,.9)), url("assets/brick.svg");
  background-size: auto, 120px 60px;
  color: #fff; padding: 80px 0 70px;
}
.page-hero .eyebrow { color: #E8B9A6; }
.page-hero p { color: #D9CFC3; max-width: 640px; font-size: 1.15rem; margin: 0; }
.prose { max-width: 780px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }

/* Footer */
.site-footer { background: #1A1817; color: #BFB5AA; padding: 60px 0 30px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; }
.site-footer a { color: #E4DCD2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-logo { width: 240px; margin-bottom: 16px; }
.legal { border-top: 1px solid #34302D; margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .88rem; }

/* Responsive */
@media (max-width: 900px) {
  .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 920px) {
  body { font-size: 17px; }
  section { padding: 64px 0; }
  .hero { padding: 72px 0 80px; }
  .brand { width: 200px; }
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; text-align: center; border-bottom: 0; }
  .row { grid-template-columns: 1fr; }
  form.contact, .panel { padding: 24px; }
}

/* Reviews */
.reviews { column-count: 2; column-gap: 24px; }
.review {
  margin: 0 0 24px; break-inside: avoid; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 32px 28px; position: relative;
}
.review::before {
  content: "\201C"; position: absolute; top: -6px; right: 22px;
  font-family: Georgia, serif; font-size: 7rem; line-height: 1; color: var(--brick); opacity: .14;
}
.review .tag {
  display: inline-block; font-family: var(--head); text-transform: uppercase; letter-spacing: .1em;
  font-size: .78rem; color: var(--brick); background: #F3E3DC; padding: 4px 10px; border-radius: 4px; margin-bottom: 16px;
}
.review blockquote { margin: 0; font-size: 1.05rem; }
.review blockquote p { margin: 0 0 .9em; }
.review figcaption { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.review figcaption strong { font-family: var(--head); font-weight: 500; font-size: 1.1rem; letter-spacing: .03em; }
.review figcaption span { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .reviews { column-count: 1; } }

/* Projects */
.ba { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 16px; align-items: center; margin-bottom: 56px; }
.ba figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: #ddd; }
.ba img { width: 100%; height: 100%; object-fit: cover; }
.ba figcaption span {
  position: absolute; left: 12px; top: 12px; font-family: var(--head); text-transform: uppercase; letter-spacing: .12em;
  font-size: .8rem; background: rgba(26,24,23,.85); color: #fff; padding: 5px 10px; border-radius: 4px;
}
.ba figcaption span.after { background: var(--brick); }
.ba-text { padding-left: 24px; }
.ba-text h3 { font-size: 1.6rem; }
.ba-text p { color: var(--muted); margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filters button {
  font: 500 .9rem var(--head); text-transform: uppercase; letter-spacing: .08em; cursor: pointer;
  background: var(--paper); color: var(--ink); border: 1px solid #CFC4B6; border-radius: 999px; padding: 9px 18px;
}
.filters button:hover { border-color: var(--brick); color: var(--brick); }
.filters button.on { background: var(--brick); border-color: var(--brick); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.shot { margin: 0; position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 5; background: #E9E1D6; }
.shot[hidden] { display: none; }
.shot a { display: block; width: 100%; height: 100%; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px; color: #fff; font-size: .9rem; line-height: 1.35;
  background: linear-gradient(transparent, rgba(0,0,0,.72)); pointer-events: none; opacity: 0; transition: opacity .25s;
}
.shot:hover img { transform: scale(1.04); }
.shot:hover figcaption, .shot a:focus-visible + figcaption { opacity: 1; }
.more { text-align: center; margin-top: 30px; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(12,11,10,.94); display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); border-radius: 6px; object-fit: contain; }
.lightbox figcaption { color: #E4DCD2; margin-top: 12px; text-align: center; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer; font-size: 2.4rem; line-height: 1; width: 52px; height: 52px; border-radius: 50%; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 14px; right: 14px; font-size: 2rem !important; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
@media (hover: none) { .shot figcaption { opacity: 1; } }
@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .ba { grid-template-columns: 1fr 1fr; }
  .ba-text { grid-column: 1 / -1; padding: 8px 0 0; }
}
@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .shot figcaption { font-size: .8rem; padding: 28px 10px 8px; }
  .lightbox { padding: 56px 8px 70px; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
  .lb-prev { left: calc(50% - 64px); } .lb-next { right: calc(50% - 64px); }
}

/* Review highlights (home) */
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.highlight { margin: 0; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brick); border-radius: var(--radius); padding: 30px 28px 24px; display: flex; flex-direction: column; }
.highlight blockquote { margin: 0 0 20px; font-family: Georgia, 'Times New Roman', serif; font-size: 1.18rem; line-height: 1.55; flex: 1; }
.highlight figcaption { border-top: 1px solid var(--line); padding-top: 14px; }
.highlight figcaption strong { display: block; font-family: var(--head); font-weight: 500; font-size: 1.1rem; letter-spacing: .03em; }
.highlight figcaption span { color: var(--muted); font-size: .92rem; }
.review h3 { font-size: 1.25rem; margin-bottom: .6em; }
@media (max-width: 900px) { .highlights { grid-template-columns: 1fr; } }
