:root {
  --bg: #f1efed;
  --header-bg: #ffffff;
  --ink: #111;
  --muted: #6f6b66;
  --gutter: 28px;
  --gap: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.075em;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* Page background used on Portfolio, About, FAQs and Contact (#RRGGBBAA, so slightly translucent) */
body.bg-light { background: #f7f5f2e8; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 40px;
  padding: 30px var(--gutter) 26px;
  background: var(--header-bg);
}

.logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 27px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.site-nav { display: flex; gap: 32px; }

.site-nav a {
  font-family: "Avenir Next", "Avenir", "Nunito Sans", "Helvetica Neue", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.125em;
  text-transform: uppercase;
  color: #444;
  transition: color 0.2s;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { font-weight: 600; }

/* ---------- Portfolio grid ---------- */
.portfolio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px var(--gap);
  padding: 22px var(--gutter) 90px;
  max-width: 1600px;
  margin: 0 auto;
  list-style: none;
}

.project a { display: block; }

/* Swap the .ph placeholder for <img src="images/your-photo.jpg" alt="..."> */
.project picture { display: block; }
.project .ph,
.project img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: opacity 0.35s ease;
}
.project a:hover .ph,
.project a:hover img { opacity: 0.82; }

.project .ph {
  background:
    linear-gradient(160deg, rgba(255,255,255,.28), rgba(0,0,0,.08)),
    var(--tone, #cfc6bb);
}

.project h2 {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.075em;
  color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 30px var(--gutter) 44px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.site-footer p { margin: 0; }
.site-footer .sep { margin: 0 10px; }
.site-footer .sep-mid { margin: 0 10px; }
.site-footer a { transition: color 0.2s; }
.site-footer a:hover { opacity: .65; }
.site-footer .contact-line { color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
.site-footer .contact-line a { color: var(--ink); }
.site-footer .group { display: inline-flex; align-items: center; }
.site-footer .social { display: inline-flex; align-items: center; }
.site-footer .social + .social { margin-left: 14px; }
.site-footer .copy { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .portfolio { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  :root { --gutter: 18px; --gap: 18px; }
  .site-header { position: static; padding-top: 24px; }
  .logo { font-size: 22px; }
  .portfolio { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- Inner pages ---------- */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px var(--gutter) 100px;
}

.page p { margin-bottom: 1.6em; line-height: 1.85; }

/* About */
.about {
  display: grid;
  grid-template-columns: 5fr 6fr;
  grid-template-areas: "bio      photo";
  gap: 0 36px;
  align-items: start;
}
.about .bio { grid-area: bio; }
.about .bio p:last-child { margin-bottom: 0; }
/* Services sits on a white band that runs edge to edge, down to the footer. */
.page.about-page { padding-bottom: 0; }
.about .services-section {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 5fr 6fr;
  grid-template-areas:
    "title title"
    "text  media";
  gap: 0 36px;
  align-items: start;
  margin-top: 64px;
  padding: 64px 0 100px;
  background: #fff;
  box-shadow: 0 0 0 100vmax #fff;
  clip-path: inset(0 -100vmax);
}
.about h2 { grid-area: title; margin: 0 0 24px; }
.about .services-media { grid-area: media; }
.about .services-text { grid-area: text; }
.about .services-text > :last-child { margin-bottom: 0; }

/* The frame is as tall as the bio text and as wide as the photo's own shape
   needs, so the whole photo shows, uncropped. */
.about .portrait-frame {
  grid-area: photo;
  position: relative;
  align-self: stretch;
  justify-self: start;
  aspect-ratio: 1685 / 2000;
  overflow: hidden;
  background: #d9d6d1;
}
.about .portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about h1,
.about h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 30px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
}
.about .role {
  margin: 4px 0 30px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
}
.about .services {
  margin: 0 0 1.6em;
  padding: 0;
  list-style: none;
}
.about .services li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 0.7em;
  line-height: 1.75;
}
.about .services li::before {
  content: "–";
  position: absolute;
  left: 0;
}

/* Work samples beside the Services text */
.about .work { margin: 0 0 32px; }
.about .work:last-child { margin-bottom: 0; }
.about .work picture { display: block; }
.about .work img { display: block; width: 100%; height: auto; }
.about .work.plan { max-width: 440px; margin-left: auto; margin-right: auto; }

/* Contact */
.contact .address { margin-bottom: 44px; }
.contact .address p { margin: 0; line-height: 1.9; }
.contact .intro { margin: 0 0 44px; }
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px 28px;
}
.contact-form label {
  display: block;
  font-size: 12px;
  color: var(--ink);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 8px 0;
  border: 0;
  border-bottom: 2px solid #b7b3ae;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.04em;
  outline: none;
  transition: border-color 0.2s;
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--ink); }
.contact-form .full { grid-column: 1 / -1; }
.contact-form button {
  justify-self: start;
  padding: 13px 38px;
  border: 1px solid var(--ink);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.contact-form button:hover { background: var(--ink); color: var(--bg); }
.contact-form button:disabled { opacity: 0.45; cursor: default; background: transparent; color: var(--ink); }
.form-note { grid-column: 1 / -1; font-size: 12px; color: var(--ink); }
.form-note:empty { display: none; }
.form-note a { color: inherit; }
.form-note[data-state="pending"] { opacity: 0.6; }
.form-note[data-state="sent"] { color: var(--ink); }
.form-note[data-state="error"] { color: #a1362c; }

/* Honeypot. Off-screen rather than display:none, which some bots skip over. */
.contact-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* FAQs */
.faqs { max-width: 760px; }
.faqs details { border-bottom: 1px solid #c9c5bf; }
.faqs details:first-of-type { border-top: 1px solid #c9c5bf; }
.faqs summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 34px 22px 0;
  position: relative;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 300;
}
.faqs details[open] summary::after { content: "–"; }
.faqs details p { padding-bottom: 12px; margin: 0; max-width: 62ch; line-height: 1.85; }
.faqs details p + p { padding-top: 0; }

@media (max-width: 800px) {
  .about {
    grid-template-columns: 1fr;
    grid-template-areas: "photo" "bio";
  }
  .about .services-section {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "text" "media";
    margin-top: 44px;
    padding: 44px 0 64px;
  }
  .about .services-text { margin-bottom: 32px; }
  .about .portrait-frame {
    align-self: auto;
    justify-self: stretch;
    aspect-ratio: auto;
    height: min(115vw, 520px);
    margin-bottom: 32px;
  }
  .about .portrait { object-position: 50% 8%; }
  .about h2 { margin: 0 0 20px; }
}
@media (max-width: 620px) {
  .contact-form { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Project pages ---------- */
.project-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px var(--gutter) 90px;
}
.project-page .back {
  display: inline-block;
  margin-bottom: 26px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.project-page .back:hover { color: var(--ink); }
.project-page h1 {
  margin-bottom: 30px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 30px;
  letter-spacing: 0.1em;
  line-height: 1.2;
}
.gallery { --row-gap: 28px; column-count: 2; column-gap: var(--row-gap); } /* fallback without JS */
.gallery.js { column-count: auto; }
.gallery.js .row { display: flex; gap: var(--row-gap); margin-bottom: var(--row-gap); }
/* Each photo is a <picture> wrapping the <img>, so the flex item that gallery.js
   sizes is the <picture>. The <img> just fills it. */
.gallery picture {
  display: block;
  margin-bottom: var(--gap);
  break-inside: avoid;
}
.gallery.js picture { min-width: 0; margin: 0; }
.gallery.js img { min-width: 0; margin: 0; }
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  break-inside: avoid;
  background: #e2ded9;
}
@media (max-width: 620px) {
  .gallery { --row-gap: 18px; column-count: 1; }
  .project-page h1 { font-size: 25px; }
}

/* ---------- Home page (full-screen photo) ---------- */
body.home {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: #2b2a28;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}
.home main { flex: 1; }
.home .site-header { position: relative; background: transparent; }
.home .logo,
.home .site-nav a,
.home .site-nav a:hover { color: #fff; }
.home .site-nav a { text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.home .logo { text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }

/* Phones: the footer contact line splits into two centered rows */
@media (max-width: 620px) {
  .site-footer .contact-line { flex-direction: column; gap: 8px; }
  .site-footer .sep-mid { display: none; }
}
@media (max-width: 400px) {
  .site-footer .contact-line { font-size: 11px; letter-spacing: 0.03em; }
  .site-footer .sep { margin: 0 6px; }
}

/* ---------- Phone menu (three bars) ---------- */
.menu-toggle { display: none; }

@media (max-width: 620px) {
  .site-header {
    position: relative;
    z-index: 20;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 22px var(--gutter);
  }
  .logo { font-size: 22px; letter-spacing: 0.13em; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin: -8px -8px -8px 0;
    padding: 8px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
  }
  .menu-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
    transition: transform 0.25s, opacity 0.2s;
  }
  .nav-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 6px var(--gutter) 14px;
    background: var(--header-bg);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a {
    padding: 14px 0;
    font-size: 13px;
    border-bottom: 1px solid #d8d4ce;
  }
  .site-nav a:last-child { border-bottom: 0; }

  /* on the home page the bars and panel sit over the photo */
  .home .menu-toggle span { background: #fff; }
  .home .site-nav { background: rgba(24, 23, 21, .82); box-shadow: none; }
  .home .site-nav a { border-bottom-color: rgba(255, 255, 255, .22); }
}

/* very small phones: keep the wordmark clear of the menu button */
@media (max-width: 350px) {
  .logo { font-size: 19px; letter-spacing: 0.1em; }
}

/* ---------- Service Areas page ---------- */
.service-areas { max-width: 760px; }
.service-areas h1,
.service-areas h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.2;
}
.service-areas h1 { font-size: 30px; letter-spacing: 0.1em; margin-bottom: 20px; }
.service-areas h2 { font-size: 22px; letter-spacing: 0.1em; margin: 40px 0 10px; }
.service-areas .lede { margin-bottom: 8px; }
.service-areas section p { margin-bottom: 0; }
.service-areas .cta { margin-top: 48px; }
.service-areas a,
.about .services-text a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 620px) {
  .service-areas h1 { font-size: 25px; }
  .service-areas h2 { font-size: 20px; margin-top: 32px; }
}

/* ---------- SEO / accessibility helpers ---------- */
/* Heading that search engines and screen readers read but that is not shown on screen */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.faqs p a { text-decoration: underline; text-underline-offset: 3px; }
