:root {
  --ink: #5f5f5f;
  --muted: #afaeae;
  --logo-richard: #c9c9c9;
  --logo-ostell: #999999;
  --page: 980px;
  --gap: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  width: min(var(--page), calc(100% - 40px));
  min-height: 150px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.wordmark {
  color: var(--logo-richard);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -2.2px;
  white-space: nowrap;
}
.wordmark-richard { color: var(--logo-richard); }
.wordmark-ostell { color: var(--logo-ostell); }
.nav { display: flex; gap: 45px; align-items: center; }
.nav a { color: #111; font-size: 14px; }
.nav a[aria-current="page"] { color: var(--muted); }

.page { width: min(var(--page), calc(100% - 40px)); margin: 0 auto; }
.home-stage { position: relative; width: calc(100% + 56px); margin-left: -28px; container-type: inline-size; }
.home-hero { width: 100%; max-width: none; }
.home-copy-mask {
  position: absolute;
  inset: 0 auto 0 0;
  width: 36.8%;
  background: #fff;
  pointer-events: none;
}
.home-copy {
  height: 100%;
  margin-left: 28px;
  padding-bottom: .50em;
  color: #d8d8d8;
  font-size: 6.18cqw;
  line-height: .82;
  font-weight: 700;
  letter-spacing: -.174cqw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  white-space: nowrap;
}

.advisory-grid {
  display: grid;
  grid-template-columns: 247px 1fr;
  gap: 42px;
  align-items: start;
  padding-bottom: 50px;
}
.portrait { width: 219px; margin: 0; filter: grayscale(1); }
.advisory-copy { font-size: 20px; line-height: 1.25; }
.advisory-copy h1, .advisory-copy h2 {
  color: #555;
  font-size: 22px;
  margin: 0 0 26px;
}
.advisory-copy h2 { margin-top: 24px; }
.advisory-copy p { margin: 0 0 27px; }
.advisory-copy .expertise p { margin-bottom: 25px; }
.advisory-copy strong { color: #555; }
.contact { display: inline-block; margin-top: 22px; color: #111; }

.section { margin: 0 0 70px; }
.section-title {
  margin: 0 0 8px;
  color: #777;
  font-size: 24px;
  font-weight: 400;
}
.section-role {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
}
.daks-section { margin-bottom: 70px; }
.daks-section + .daks-section { margin-top: 70px; }
.daks-section.heading-only { margin-top: 70px; margin-bottom: 70px; }
.banner-image { width: 100%; margin: 0 0 26px; }

.masonry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}
.masonry-column { display: grid; gap: var(--gap); align-content: start; }
.masonry img { width: 100%; height: auto; background: #f5f5f5; }

.interior-section { margin-bottom: 62px; }
.interior-title {
  margin: 0 0 22px;
  color: #777;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: .02em;
}

.top-link {
  display: block;
  width: min(var(--page), calc(100% - 40px));
  margin: 25px auto 55px;
  color: #111;
  font-size: 13px;
}

.guest-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
}
.guest-card { width: min(350px, calc(100% - 40px)); }
.guest-card h1 { color: #222; font-size: 42px; font-weight: 400; margin: 0 0 10px; }
.guest-card p { color: #333; margin: 0 0 55px; }
.guest-card input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #777;
  padding: 10px 2px;
  font: inherit;
  outline: none;
}
.guest-card button {
  width: 100%;
  margin-top: 50px;
  border: 0;
  background: #718496;
  color: white;
  padding: 15px;
  font: inherit;
  cursor: pointer;
}
.guest-error { min-height: 22px; margin: 12px 0 0 !important; color: #8a2f2f !important; font-size: 14px; }

.projects-page { padding-top: 70px; padding-bottom: 80px; }
.projects-page > h1 {
  margin: 0 0 70px;
  color: var(--muted);
  font-size: 28px;
  font-weight: 400;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 55px 70px;
  padding: 0;
}
.project-card {
  display: grid;
  justify-items: stretch;
  align-content: start;
  gap: 12px;
  width: 100%;
  color: #222;
  font-size: 14px;
  text-align: center;
}
.project-cover {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f5f5f5;
}
.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .18s ease;
}
.project-card:hover .project-cover img,
.project-card:focus-visible .project-cover img { opacity: .78; }

@media (min-width: 761px) {
  .site-header,
  .page,
  .top-link {
    width: min(var(--page), calc(100% - 40px));
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: auto;
    padding: 25px 0 28px;
    align-items: flex-start;
    flex-direction: column;
    gap: 23px;
  }
  .wordmark { font-size: 30px; }
  .nav { width: 100%; gap: 0; justify-content: space-between; }
  .nav a { font-size: 12px; }
  .home-stage { width: 100%; margin-left: 0; }
  .home-copy-mask { display: none; }
  .advisory-grid { grid-template-columns: 1fr; gap: 25px; }
  .portrait { width: 180px; margin: 0; }
  .advisory-copy { font-size: 17px; }
  .advisory-copy h1, .advisory-copy h2 { font-size: 19px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  :root { --gap: 8px; }
  .page, .site-header, .top-link { width: calc(100% - 28px); }
  .nav { flex-wrap: wrap; justify-content: flex-start; column-gap: 24px; row-gap: 14px; }
  .masonry { gap: var(--gap); }
  .section-title { font-size: 20px; }
  .section-role { font-size: 16px; }
  .daks-section { margin-bottom: 54px; }
  .daks-section + .daks-section { margin-top: 54px; }
  .daks-section.heading-only { margin-top: 54px; margin-bottom: 54px; }
  .interior-title { font-size: 14px; }
  .project-grid { gap: 40px 24px; }
}
