:root {
  --ivory: #f5f1e9;
  --paper: #fbf9f4;
  --ink: #24231f;
  --muted: #777269;
  --line: #dcd5c9;
  --taupe: #c7b9a3;
  --white: #fffdf8;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400; /* DM Sans Regular */
  font-size: 15px;
  line-height: 1.65;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.shell { width: min(1160px, calc(100% - 48px)); margin: auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 241, 233, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(36, 35, 31, 0.1);
}

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

.brand {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 23px;
  letter-spacing: .17em;
  line-height: .9;
  white-space: nowrap;
}

.brand small {
  display: block;
  text-align: center;
  font: 500 9px var(--sans);
  letter-spacing: .42em;
  margin-top: 8px;
}

.navlinks { display: flex; align-items: center; gap: 28px; }
.navlinks button, .mobile-menu button {
  border: 0;
  background: none;
  padding: 8px 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  letter-spacing: .04em;
}

.navlinks button:hover, .navlinks button.active { color: var(--ink); }
.navlinks button.active { border-bottom: 1px solid var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 19px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  letter-spacing: .025em;
  cursor: pointer;
  transition: transform .2s, background .2s;
}

.btn:hover { transform: translateY(-2px); background: #3a3832; }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--white); }

.menu-toggle { display: none; background: none; border: 1px solid var(--line); padding: 8px 11px; }
.mobile-menu { display: none; padding: 0 0 18px; gap: 14px; flex-wrap: wrap; }
.mobile-menu.open { display: flex; }

.page { display: none; min-height: 65vh; animation: fade .35s ease; }
.page.active { display: block; }

@keyframes fade {
  from { opacity: .25; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .19em;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}

h1, h2, h3, h4, h5, h6, .serif {
  font-family: var(--serif);
  font-weight: 500; /* Cormorant Garamond Medium */
  letter-spacing: -.035em;
}

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

h1 {
  font-size: clamp(46px, 6.2vw, 78px);
  line-height: .99;
  margin: 18px 0 24px;
  max-width: 680px;
}

h2 {
  font-size: clamp(36px, 4.2vw, 54px);
  line-height: 1.05;
  margin-bottom: 18px;
}

h3 {
  font-size: 26px;
  line-height: 1.15;
  margin: 0 0 10px;
}

.lead { max-width: 540px; color: #615d55; font-size: 15px; line-height: 1.85; }
.section { padding: 86px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.section-head p { max-width: 420px; color: var(--muted); margin-bottom: 4px; }

.hero { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 52px; padding: 60px 0 78px; min-height: 540px; }
.hero-copy { padding: 12px 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-image { height: 450px; position: relative; overflow: hidden; background: #c8c0b4; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.72); }

.image-label {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 13px 16px;
  background: rgba(245, 241, 233, .93);
  font-size: 11px;
  letter-spacing: .04em;
}

.scroll-note { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 36px; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 22px; }
.project { border: 0; padding: 0; text-align: left; background: none; cursor: pointer; display: block; width: 100%; color: inherit; }
.project-image { height: 270px; overflow: hidden; background: #ddd4c7; position: relative; }
.project-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; filter: saturate(.78); }
.project:hover img { transform: scale(1.035); }

.project-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 13px; align-items: start; }
.project-meta small { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 4px; }
.project-meta strong { font-family: var(--serif); font-weight: 500; font-size: 23px; }

.arrow { font-size: 20px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.filter { background: transparent; border: 1px solid var(--line); padding: 8px 13px; font-size: 11px; cursor: pointer; color: var(--muted); }
.filter.active, .filter:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.service-list { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 65px 1fr 1fr; gap: 22px; padding: 27px 0; border-bottom: 1px solid var(--line); align-items: start; }
.service-num { font-family: var(--serif); font-weight: 500; font-size: 25px; color: var(--muted); }
.service-row p { color: var(--muted); max-width: 390px; margin: 3px 0; }
.service-row h3 { font-size: 29px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.portrait { min-height: 440px; background: #d3c6b4; overflow: hidden; }
.portrait img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; display: block; filter: saturate(.65); }
.founder-signature { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 30px; margin-top: 28px; }
.small-note { font-size: 11px; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; }
.contact-item { padding: 15px 0; border-bottom: 1px solid var(--line); }
.contact-item small { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .13em; }

.contact-form { display: grid; gap: 17px; }
.field label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, .5);
  padding: 13px 14px;
  border-radius: 0;
  outline: none;
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.form-status { font-size: 12px; color: var(--muted); min-height: 22px; }

.quote-band { background: #e8e0d3; padding: 40px; margin-top: 65px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.quote-band p { font-family: var(--serif); font-weight: 500; font-size: 31px; line-height: 1.2; margin: 0; max-width: 640px; }

.footer { border-top: 1px solid var(--line); padding: 28px 0 36px; margin-top: 60px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.footer p { font-size: 10px; color: var(--muted); margin: 0; }
.footer-brand { font-family: var(--serif); font-weight: 500; letter-spacing: .15em; font-size: 17px; }

.modal { position: fixed; inset: 0; background: rgba(20, 19, 17, .72); z-index: 50; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal-card { background: var(--ivory); max-width: 700px; width: 100%; padding: 18px; position: relative; }
.modal-card img { width: 100%; max-height: 360px; object-fit: cover; display: block; }
.modal-close { position: absolute; right: 26px; top: 26px; border: 0; background: var(--ivory); font-size: 22px; width: 38px; height: 38px; cursor: pointer; }
.modal-card h3 { margin-top: 18px; }
.prototype-note { font-size: 11px; color: var(--muted); margin-top: 12px; }

@media(max-width:800px){
  .shell { width: min(100% - 32px, 620px); }
  .nav { min-height: 68px; }
  .navlinks { display: none; }
  .menu-toggle { display: block; }
  .nav > .btn { display: none; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 50px 0 54px; min-height: 0; }
  .hero-image { height: 360px; grid-row: 1; }
  .hero-copy { grid-row: 2; }
  .section { padding: 60px 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 12px; }
  .project-image { height: 220px; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .portrait, .portrait img { min-height: 340px; }
  .service-row { grid-template-columns: 38px 1fr; gap: 10px; }
  .service-row p { grid-column: 2; }
  .quote-band { padding: 28px; display: block; }
  .quote-band .btn { margin-top: 22px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 10px; }
  h1 { font-size: clamp(44px, 11vw, 66px); }
}

@media(max-width:480px){
  .project-grid { grid-template-columns: 1fr; gap: 25px; }
  .project-image { height: 245px; }
  .hero-image { height: 300px; }
  .brand { font-size: 20px; }
  .quote-band p { font-size: 27px; }
  .section { padding: 48px 0; }
}