/* ---------- tokens ---------- */
:root {
  --bg: #f4f1ec;
  --ink: #161513;
  --mute: #8a857c;
  --line: #d9d4cb;
  --wood: #b9a58a;
  --wood-2: #cfc1ab;
  --wood-3: #a28c6e;
  --red: #C8202B;
  --pad: clamp(16px, 3vw, 40px);
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
.caps { text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; }
.mute { color: var(--mute); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--pad);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head nav { display: flex; gap: 24px; }
.site-head nav:last-child { justify-content: flex-end; }
.site-head nav a:hover, .footer a:hover { opacity: 0.55; }
.logo { display: block; width: 166px; background: var(--red); }
.logo img { width: 100%; height: auto; object-fit: contain; }

/* ---------- hero ---------- */
.hero { padding: var(--pad); }
.hero-text {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad);
  padding: 48px 0 24px;
}
.hero-text h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 6vw, 84px); line-height: 0.98; letter-spacing: -0.01em;
}
.hero-text p { max-width: 380px; align-self: end; justify-self: end; }

/* ---------- placeholder photos (swap for <img>) ---------- */
.ph {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(92deg, transparent 0 14px, rgba(0,0,0,.035) 14px 15px),
    linear-gradient(160deg, var(--wood-2), var(--wood) 55%, var(--wood-3));
}
.ph::after {
  content: attr(data-label);
  position: absolute; left: 12px; bottom: 10px;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(22,21,19,.55);
}
.ph.dark { background: linear-gradient(160deg, #3b352d, #241f1a); }
.ph.dark::after { color: rgba(244,241,236,.6); }
.ph.light { background: linear-gradient(160deg, #e6dfd3, #d5cbbb); }

/* ---------- sections ---------- */
section { padding: 72px var(--pad); border-top: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 32px; }
.sec-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.2vw, 44px); }

/* project grid */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px var(--pad); }
.card { display: block; }
.card .ph, .card img { aspect-ratio: 4 / 5; transition: opacity .3s; }
.card > img { height: auto; object-fit: cover; }
.card:hover .ph, .card:hover img { opacity: .85; }
.project-cover {
  aspect-ratio: 4 / 5; padding: clamp(20px, 3vw, 40px);
  display: flex; flex-direction: column; justify-content: space-between;
  background: #e6dfd3; color: #514a3f;
  transition: background .3s;
}
.project-cover-title {
  font-family: var(--serif); font-size: clamp(64px, 9vw, 140px);
  font-weight: 400; line-height: .9; letter-spacing: -.03em;
}
.project-cover > span:last-child { display: flex; justify-content: space-between; }
.card:hover .project-cover { background: #d5cbbb; }
.card .meta { display: flex; justify-content: space-between; padding-top: 12px; }
.card .meta strong { font-weight: 500; }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; margin-top: 18%; }
.span-4 { grid-column: span 4; }
.span-4 .ph { aspect-ratio: 1; }

/* about / services */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); }
.big-copy { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 36px); line-height: 1.2; }
.services { list-style: none; columns: 2; column-gap: var(--pad); }
.services li { padding: 10px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }

/* info blocks */
.info { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--pad); }
.info h3 { margin-bottom: 12px; font-weight: 500; }

/* form */
form { display: grid; gap: 14px; max-width: 520px; }
input, textarea, select {
  font: inherit; color: inherit; background: transparent;
  border: 0; border-bottom: 1px solid var(--ink); padding: 10px 0; outline: none; width: 100%;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-bottom-color: var(--red); box-shadow: 0 1px 0 var(--red); }
button {
  justify-self: start; font: inherit; text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px;
  padding: 14px 28px; background: var(--ink); color: var(--bg); border: 0; cursor: pointer;
}
button:hover { background: var(--red); }
.site-head nav a[href$="#contact"] { color: var(--red); }
.card:hover .meta strong { color: var(--red); }
.foot-logo { grid-column: 1 / -1; margin-top: 40px; }
.foot-logo img { width: min(100%, 520px); height: auto; }

/* footer */
.footer {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--pad);
  padding: 48px var(--pad) 28px; border-top: 1px solid var(--ink);
}
.footer ul { list-style: none; display: grid; gap: 4px; }
.wordmark-xl {
  grid-column: 1 / -1; margin-top: 40px;
  font-size: clamp(48px, 13vw, 210px); letter-spacing: -0.03em; font-weight: 500; line-height: .85;
  text-transform: uppercase;
}

/* ---------- project page ---------- */
.proj-head { padding: 56px var(--pad) 32px; display: grid; grid-template-columns: 2fr 1fr; gap: var(--pad); }
.proj-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 80px); line-height: 1; }
.facts { list-style: none; align-self: end; }
.facts li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.gallery { padding: 0 var(--pad) 72px; display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); }
.gallery .ph, .gallery img { aspect-ratio: 4 / 5; }
.gallery .full { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery .project-photo { height: auto; aspect-ratio: auto; }
.proj-copy { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); padding: 32px 0; }
.next { display: flex; justify-content: space-between; padding: 28px var(--pad); border-top: 1px solid var(--line); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .site-head { grid-template-columns: 1fr auto; }
  .site-head nav.left { display: none; }
  .site-head nav:last-child { gap: 16px; }
  .hero-text, .two-col, .info, .proj-head, .proj-copy { grid-template-columns: 1fr; }
  .hero-text p { justify-self: start; }
  .grid { grid-template-columns: 1fr; gap: 36px; }
  .span-7, .span-5, .span-4 { grid-column: auto; margin-top: 0; }
  .services { columns: 1; }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer > div:first-child { grid-column: 1 / -1; }
  .logo { width: 140px; }
  .gallery { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
