:root {
  --graphite: #29242b;
  --ink: #171519;
  --paper: #f5f5f5;
  --soft: #dedcdf;
  --muted: #b8b4b9;
  --line: rgba(245, 245, 245, .28);
  --line-strong: rgba(245, 245, 245, .56);
  --gutter: clamp(18px, 3.2vw, 54px);
  --gap: clamp(12px, 1.4vw, 20px);
  --font: Futura, "Futura PT", "Avenir Next", Avenir, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--graphite);
  color: var(--paper);
  font-family: var(--font);
  font-weight: 300;
  letter-spacing: .01em;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
h1, h2, h3, p, figure { margin-top: 0; }
.shell { padding-inline: var(--gutter); }
.rule { border-top: 1px solid var(--line); }
.skip-link {
  position: fixed;
  z-index: 100;
  top: 0;
  left: -9999px;
  padding: 12px 16px;
  background: var(--paper);
  color: var(--ink);
}
.skip-link:focus {
  top: 10px;
  left: 10px;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: minmax(150px, 25%) 1fr auto;
  align-items: center;
  gap: var(--gap);
  min-height: 112px;
  padding-block: 14px;
  background: rgba(41, 36, 43, .96);
  backdrop-filter: blur(12px);
}
.brand { width: 168px; max-width: 100%; }
.nav { display: flex; justify-content: flex-end; gap: clamp(18px, 2.8vw, 46px); }
.nav a, .eyebrow, .project-meta, .link-arrow, .meta-label, .service-number, .breadcrumb, .filter-note {
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nav a { border-bottom: 1px solid transparent; padding-bottom: 5px; }
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { border-color: currentColor; }
.menu-toggle {
  display: none;
  border: 0;
  padding: 8px 0 8px 12px;
  background: transparent;
  color: var(--paper);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}

.eyebrow, .project-meta, .breadcrumb, .filter-note { color: var(--muted); }
.page-intro {
  display: grid;
  grid-template-columns: minmax(220px, 27%) minmax(0, 1fr);
  gap: clamp(30px, 7vw, 120px);
  padding-top: clamp(52px, 8vw, 108px);
  padding-bottom: clamp(68px, 10vw, 142px);
}
.page-intro .eyebrow { margin-bottom: 0; }
.page-intro-copy { max-width: 900px; }
.page-intro h1, .project-hero h1 {
  margin-bottom: 30px;
  max-width: 14ch;
  overflow-wrap: anywhere;
  hyphens: auto;
  font-size: clamp(42px, 5.4vw, 82px);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.03em;
}
.page-intro h1 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
body.contact-page .page-intro h1 { max-width: 18ch; }
.page-intro .lead {
  max-width: 44rem;
  margin-bottom: 0;
  color: var(--soft);
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.55;
}
.lead-link {
  display: inline-flex;
  align-items: center;
  gap: .65em;
  padding-bottom: .18em;
  border-bottom: 1px solid currentColor;
}
.lead-link::after { content: "↗"; font-size: .8em; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid currentColor;
}
.link-arrow::after { content: "↗"; font-size: 15px; }

.portfolio-list { padding-block: clamp(56px, 8vw, 112px); }
.portfolio-heading {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: end;
  margin-bottom: clamp(38px, 6vw, 80px);
}
.portfolio-heading h2 {
  grid-column: 5 / span 5;
  margin-bottom: 0;
  font-size: clamp(25px, 2.5vw, 38px);
  font-weight: 300;
  line-height: 1.1;
  text-transform: uppercase;
}
.portfolio-heading .filter-note { grid-column: 10 / -1; margin-bottom: 2px; text-align: right; }
.project-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(42px, 7vw, 104px) var(--gap); }
.project-card { position: relative; display: block; min-width: 0; grid-column: span 4; }
.project-card.wide { grid-column: span 7; }
.project-card.tall { grid-column: span 5; }
.project-card.large { grid-column: span 8; }
.project-image {
  overflow: hidden;
  height: auto;
  background: var(--ink);
}
.project-card.tall .project-image, .project-card.large .project-image { height: auto; }
.project-card .project-image img { height: auto; object-fit: contain; }
.project-card img { transition: transform .55s ease, opacity .4s ease; }
.project-card:hover img, .project-card:focus-visible img { transform: scale(1.015); opacity: .78; }
.project-card:focus-visible { outline: 1px solid var(--paper); outline-offset: 8px; }
.project-title { margin: 15px 0 7px; font-size: clamp(19px, 1.8vw, 27px); font-weight: 400; line-height: 1.12; }
.project-meta { margin-bottom: 0; }

.service-list { padding-bottom: clamp(60px, 10vw, 150px); }
.service-row {
  display: grid;
  grid-template-columns: minmax(50px, 8%) minmax(220px, 32%) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
  min-height: 180px;
  padding-block: clamp(28px, 4vw, 58px);
  border-top: 1px solid var(--line);
}
.service-row h2 { margin-bottom: 0; overflow-wrap: break-word; hyphens: auto; font-size: clamp(24px, 2.8vw, 42px); font-weight: 300; line-height: 1.04; }
.service-row p { max-width: 48rem; margin-bottom: 0; color: var(--soft); font-size: 17px; line-height: 1.62; }
.service-number { color: var(--muted); }

.feature, .office-story, .contact-panel {
  display: grid;
  grid-template-columns: minmax(220px, 38%) minmax(0, 1fr);
  gap: clamp(38px, 8vw, 130px);
  align-items: center;
  padding-block: clamp(70px, 10vw, 150px);
}
.feature-image, .office-image { min-height: 440px; height: min(68vh, 760px); }
.feature-copy h2, .office-copy h2, .contact-panel h2 {
  max-width: 13ch;
  margin-bottom: 28px;
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 300;
  line-height: 1.02;
}
.feature-copy p, .office-copy p, .contact-panel p { max-width: 44rem; color: var(--soft); font-size: 17px; line-height: 1.62; }
.team { padding-block: clamp(64px, 9vw, 130px); }
.team > h2 { margin: 0 0 48px 33.333%; font-size: clamp(26px, 2.5vw, 38px); font-weight: 300; text-transform: uppercase; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 4vw, 68px) var(--gap); }
.team-card, .team-card + .team-card { min-height: 0; padding: 0; border: 0; }
.team-photo { aspect-ratio: 1; margin: 0 0 20px; overflow: hidden; background: var(--ink); }
.team-photo img { filter: grayscale(1); object-position: center top; transition: filter .35s ease, transform .45s ease; }
.team-card:hover .team-photo img { filter: grayscale(.2); transform: scale(1.015); }
.team-card:hover .team-photo--neutral img { filter: grayscale(1); transform: none; }
.team-photo--coco img { transform: scale(1.06); }
.team-card:hover .team-photo--coco img { filter: grayscale(1); transform: scale(1.075); }
.team-card h3 { margin: 0 0 12px; font-size: 21px; font-weight: 400; }
.team-card p { color: var(--muted); font-size: 13px; line-height: 1.6; letter-spacing: .08em; text-transform: uppercase; }

.contact-panel { align-items: start; }
.contact-card { padding-top: 4px; }
.contact-card strong { display: block; margin-bottom: 16px; font-size: 12px; font-weight: 400; letter-spacing: .13em; text-transform: uppercase; }
.contact-card address { margin-bottom: 30px; color: var(--soft); font-size: clamp(17px, 1.4vw, 20px); font-style: normal; line-height: 1.7; }
.contact-links { display: grid; gap: 10px; justify-items: start; }
.map-frame { min-height: 420px; background: var(--ink); }
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(1) contrast(.9); }

.project-hero { padding-top: clamp(36px, 6vw, 78px); }
.breadcrumb { margin-bottom: clamp(44px, 7vw, 86px); }
.breadcrumb a { border-bottom: 1px solid var(--line-strong); }
.project-head {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: clamp(30px, 8vw, 130px);
  align-items: end;
  padding-bottom: clamp(50px, 8vw, 100px);
}
.project-facts { display: grid; gap: 16px; margin: 0; }
.project-facts div { display: grid; grid-template-columns: 105px 1fr; gap: 20px; padding-top: 13px; border-top: 1px solid var(--line); }
.project-facts dt { color: var(--muted); font-size: 12px; letter-spacing: .11em; text-transform: uppercase; }
.project-facts dd { margin: 0; color: var(--soft); line-height: 1.45; }
.project-cover { height: auto; min-height: 0; }
.project-cover img { height: auto; object-fit: contain; }
.project-cover.is-placeholder {
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: var(--ink);
  color: var(--muted);
  border-block: 1px solid var(--line);
  font-size: clamp(20px, 3vw, 44px);
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}
.project-story {
  display: grid;
  grid-template-columns: minmax(200px, 28%) minmax(0, 1fr);
  gap: clamp(38px, 8vw, 130px);
  padding-block: clamp(70px, 10vw, 145px);
}
.project-story h2 { margin-bottom: 0; font-size: 12px; font-weight: 400; letter-spacing: .13em; text-transform: uppercase; }
.project-story p { max-width: 48rem; margin-bottom: 0; color: var(--soft); font-size: clamp(18px, 1.6vw, 23px); line-height: 1.62; }
.project-gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; gap: var(--gap); align-items: start; padding-bottom: clamp(70px, 10vw, 150px); }
.gallery-item { grid-column: span 6; min-height: 0; }
.gallery-item.gallery-wide, .gallery-item.gallery-portrait { grid-column: span 6; }
.gallery-item.gallery-full { grid-column: 1 / -1; }
.project-gallery .gallery-item img { height: auto; object-fit: contain; }
.project-next { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; padding-block: clamp(60px, 8vw, 110px); }
.project-next h2 { max-width: 18ch; margin-bottom: 0; font-size: clamp(28px, 3.4vw, 48px); font-weight: 300; }

.legal { display: grid; grid-template-columns: minmax(180px, 25%) minmax(0, 1fr); gap: clamp(34px, 8vw, 130px); padding-block: clamp(58px, 8vw, 110px); }
.legal-nav { position: sticky; top: 142px; align-self: start; display: grid; gap: 12px; color: var(--muted); font-size: 13px; }
.legal-nav a:hover { color: var(--paper); }
.legal-copy { max-width: 58rem; }
.legal-copy section { margin-bottom: 58px; scroll-margin-top: 140px; }
.legal-copy h2 { margin-bottom: 20px; font-size: clamp(24px, 2.4vw, 36px); font-weight: 300; }
.legal-copy h3 { margin: 30px 0 12px; font-size: 18px; font-weight: 400; }
.legal-copy p, .legal-copy li { color: var(--soft); font-size: 16px; line-height: 1.66; }

.site-cta { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); padding-block: clamp(74px, 10vw, 140px); }
.site-cta h2 { grid-column: span 2; margin-bottom: 0; font-size: clamp(32px, 4vw, 58px); font-weight: 300; line-height: 1.02; }
.site-cta h2 span { display: block; }
@media (min-width: 981px) {
  .site-cta h2 span { white-space: nowrap; }
}
.site-cta div { align-self: end; }
.site-cta p { color: var(--soft); line-height: 1.6; }
footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  padding-block: 28px 40px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
}
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }

@media (max-width: 980px) {
  .site-header { min-height: 88px; }
  .nav { gap: 18px; }
  .nav a:nth-child(4) { display: none; }
  .page-intro, .feature, .office-story, .contact-panel { grid-template-columns: 1fr; }
  .page-intro-copy { max-width: 760px; }
  .project-card, .project-card.wide, .project-card.tall, .project-card.large { grid-column: span 6; }
  .project-card.tall .project-image, .project-card.large .project-image, .project-image { height: auto; min-height: 0; }
  .service-row { grid-template-columns: 50px minmax(210px, 38%) 1fr; }
  .project-head { grid-template-columns: 1fr; }
  .project-hero h1 { max-width: 15ch; }
  .project-facts { max-width: 620px; }
  .gallery-item, .gallery-item.gallery-wide, .gallery-item.gallery-portrait { grid-column: span 6; }
  .gallery-item.gallery-full { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .site-header { grid-template-columns: 1fr auto; }
  .brand { width: 138px; }
  .menu-toggle { display: block; }
  .nav::after { content: none !important; }
  .nav {
    position: absolute;
    z-index: 30;
    top: 100%;
    right: 0;
    bottom: auto;
    left: 0;
    display: none;
    grid-template-rows: repeat(5, min-content);
    justify-content: stretch;
    align-content: start;
    gap: 0;
    height: calc(100vh - 88px);
    height: calc(100dvh - 88px);
    padding: 22px var(--gutter) 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--graphite);
    border-top: 1px solid var(--line);
  }
  .nav.is-open { display: grid; }
  .nav a, .nav a:nth-child(4) { display: block; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .page-intro { padding-top: 38px; }
  .page-intro h1 { font-size: clamp(38px, 12vw, 58px); }
  .portfolio-heading { grid-template-columns: 1fr; }
  .portfolio-heading h2, .portfolio-heading .filter-note { grid-column: 1; text-align: left; }
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: 54px 0; }
  .project-card, .project-card.wide, .project-card.tall, .project-card.large { grid-column: 1 / -1; }
  .project-card.tall .project-image, .project-card.large .project-image, .project-image { height: auto; min-height: 0; }
  .service-row {
    grid-template-columns: 42px 1fr;
    min-height: 0;
    padding-block: 14px;
    row-gap: 6px;
  }
  .service-row p { grid-column: 2; }
  body.services-page .page-intro {
    gap: 16px;
    padding-top: 28px;
    padding-bottom: 28px;
  }
  body.services-page .page-intro h1 { margin-bottom: 16px; }
  body.services-page .page-intro .lead { font-size: 16px; line-height: 1.35; }
  body.services-page .service-list { padding-bottom: 48px; }
  body.services-page .service-row {
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 8px;
    row-gap: 3px;
    padding-block: 8px;
  }
  body.services-page .service-row h2 { font-size: 22px; line-height: 1.02; }
  body.services-page .service-row p { font-size: 16px; line-height: 1.35; }
  .feature-image, .office-image { min-height: 350px; height: 55vh; }
  .team > h2 { margin-left: 0; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .project-cover { min-height: 0; height: auto; }
  .project-story { grid-template-columns: 1fr; gap: 26px; }
  .project-gallery { grid-template-columns: 1fr; gap: 18px; }
  .gallery-item, .gallery-item.gallery-wide, .gallery-item.gallery-portrait, .gallery-item.gallery-full { grid-column: 1; min-height: 0; }
  .project-next, .legal, .site-cta { grid-template-columns: 1fr; }
  .legal-nav { position: static; }
  .site-cta h2 { grid-column: 1; }
  footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project-card img { transition: none; }
}
