:root {
  --ink: #f3efe8;
  --muted: #b7aa9a;
  --paper: #141210;
  --white: #1e1b18;
  --line: #3a342c;
  --stone: #d4b06a;
  --gold: #d4b06a;
  --gold-ink: #1a140c;
  --header-h: 84px;
  --logo-h: 64px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
.wrap { width: min(var(--wrap), calc(100% - 2rem)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.site-header {
  position: sticky; top: 0; z-index: 20;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}
.brand img {
  height: var(--logo-h);
  width: auto;
  max-width: none;
}
.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-family: Montserrat, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.site-nav a[aria-current="page"],
.nav-social a { color: var(--gold); }
.nav-social { display: flex; gap: 0.8rem; }
.nav-social a { letter-spacing: 0.04em; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
}
.nav-toggle-box {
  display: grid;
  gap: 5px;
  width: 18px;
  margin: 0 auto;
}
.nav-toggle-box span {
  display: block;
  height: 2px;
  background: var(--gold);
}

h1, h2, h3 {
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin: 0 0 0.6rem; }
.kicker {
  font-family: Montserrat, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 0.5rem;
}
.page-hero { padding: 4.5rem 0 2rem; }
.hero {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: flex-end;
  padding: 4rem 0 5.5rem;
  background-color: #100e0c;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-copy { max-width: 920px; }
.hero h1 { font-size: clamp(3rem, 7vw, 6.2rem); }
.hero h1 span { display: block; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { color: #f6f1e8; max-width: 38rem; }
.project-photo { width: 100%; max-height: 640px; object-fit: cover; margin: 0 0 1.5rem; }
.lede { font-size: 1.3rem; max-width: 40rem; color: var(--muted); }
.fly { opacity: 1; transform: none; }

.section { padding: 2.5rem 0; }
.cards, .project-grid, .team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card, .project-card, .team-card, .quote {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.25rem;
}
.project-card { padding: 0; overflow: hidden; }
.project-card a { text-decoration: none; display: block; color: inherit; }
.project-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project-card-body { padding: 1.25rem; }
.project-card h2, .team-card h2 { font-size: 1.15rem; margin: 0.4rem 0; }
.meta { color: var(--muted); font-size: 0.95rem; }
.quote-carousel { max-width: 760px; margin-inline: auto; }
.quote {
  position: relative;
  overflow: hidden;
  margin: 0;
  min-height: 16rem;
  padding: 2.4rem 2rem 1.6rem 2rem;
}
.quote-mark {
  position: absolute;
  top: -0.6rem;
  left: 0.4rem;
  z-index: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}
.quote p { position: relative; z-index: 1; font-size: 1.35rem; }
.quote .meta { margin-top: 1rem; letter-spacing: 0.08em; text-transform: uppercase; }
.quote-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 0.8rem;
}
.quote-controls button {
  font-family: Montserrat, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}
.quote-dots { display: flex; gap: 0.4rem; }
.quote-dots button {
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border-radius: 50%;
}
.quote-dots button[aria-pressed="true"] { background: var(--gold); }

.prose { max-width: 44rem; }
.prose h2 { font-size: 1.5rem; }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
.filters button {
  font: inherit;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); }

.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
label { display: block; font-size: 0.9rem; margin: 0.8rem 0 0.25rem; }
input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  background: #141210;
}
button[type="submit"], .button {
  margin-top: 1rem;
  background: var(--gold);
  color: var(--gold-ink);
  border: 0;
  font-family: Montserrat, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 1.2rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.form-note { color: var(--muted); }
.hp { position: absolute; left: -9999px; }

.site-footer {
  margin-top: 3rem;
  background: #0d0c0b;
  color: #f3efe8;
  padding: 2.5rem 0;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1rem; }
.site-footer a { color: var(--gold); }
.map-wrap { margin-top: 1.25rem; }
.map-wrap iframe { width: 100%; height: 260px; border: 1px solid var(--line); }
.map-wrap p { margin: 0.35rem 0 0; }

.reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    animation: rise 0.55s ease forwards;
  }
  .fly {
    opacity: 0;
    transform: translateY(42px);
    animation: fly 0.9s cubic-bezier(.16, 1, .3, 1) forwards;
    animation-delay: var(--d, 0s);
  }
}
@keyframes fly {
  to { opacity: 1; transform: none; }
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; --logo-h: 52px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .cards, .project-grid, .team-grid, .contact-layout, .footer-grid, form .row {
    grid-template-columns: 1fr;
  }
}
