:root {
  color-scheme: light;
  --bg: #faf9f6;
  --text: #191918;
  --muted: #575653;
  --accent: #191918;
  --line: #d9d6d0;
  --site-inset: clamp(18px, 2vw, 72px);
  --column-gap: clamp(16px, 2vw, 42px);
}
body:has(.header) {
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Arial, "Malgun Gothic", sans-serif;
  letter-spacing: -.018em;
}
.header {
  border: 0;
  min-height: auto;
  padding-block: clamp(18px, 1.6vw, 50px) 0;

}
.header > .wordmark {
  grid-column: 1 / 8;
  justify-self: start;
  display: block;
  font-size: clamp(36px, 3.4vw, 102px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.06em;
}
.masthead-description {
  grid-column: 8 / -1;
  justify-self: end;
  align-self: center;
  margin: 0;
  font-size: clamp(12px, 1vw, 19px);
  line-height: 1.3;
  text-align: right;
  letter-spacing: -.012em;
}
.primary-nav {
  grid-column: 1 / -1;
  display: flex;
  justify-self: start;
  width: auto;
  flex-wrap: wrap;
  gap: clamp(12px, 1.6vw, 30px);
  font-size: clamp(13px, .9vw, 16px);
}
.primary-nav a { padding: 5px 0 7px; line-height: 1.2; }
.primary-nav a[aria-current], .primary-nav a:hover { color: inherit; text-decoration: underline; text-underline-offset: 5px; }
.works-page { position: relative; padding-top: 32px; }
.works-controls { position: absolute; right: 0; top: 3px; z-index: 5; font-size: 14px; }
.works-controls summary { cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.works-page .filter-bar {
  background: var(--bg);
  border: 1px solid var(--line);
  margin: 10px 0 0;
  padding: 10px 14px;
  max-width: calc(100vw - 40px);
}
.filters button[aria-pressed=true]::before { display: none; }
.filters button[aria-pressed=true] { text-decoration: underline; text-underline-offset: 4px; }
.works-page .project-grid { column-gap: var(--column-gap); row-gap: 16px; }
.project-link { display: block; }
.project-card { padding-top: 20px; }
.project-card:first-child, .project-card:nth-child(3) { padding-top: clamp(42px, 6vw, 110px); }
.project-card:nth-child(2) { padding-top: 0; }
.card-caption { position: static; color: var(--text); margin: 0 0 8px; }
.card-caption h2 { font-size: clamp(15px, 1vw, 20px); font-weight: 600; line-height: 1.2; margin: 0; }
.card-caption p { color: var(--muted); font-size: clamp(12px, .82vw, 16px); line-height: 1.28; margin: 4px 0 0; }
.card-media { background: #e9e6e0; }
.project-link:hover img { transform: scale(1.015); }
.preview-button { bottom: 12px; right: 12px; background: #faf9f6; color: #191918; border-color: #faf9f6; }
.preview-button:hover { background: white; }
.sample-note { line-height: 1.6; }
dialog { background: var(--bg); color: var(--text); }
.editorial-head { padding-block: 42px 30px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.editorial-head h1, .detail h1 { font-size: clamp(32px, 3.2vw, 76px); font-weight: 400; }
.editorial-head h2, .about-chapter h2 { font-weight: 400; }
.about-chapter { padding-block: clamp(36px, 5.5vw, 120px); }
.about-page .about-chapter p { line-height: 1.68; }
.contact-list a, .contact-link, .editorial-link { text-decoration: underline; text-underline-offset: 4px; }
body:has(.header) > footer { padding-top: clamp(36px, 5vw, 86px); }
.footer-top h2 { font-weight: 400; }

@media (max-width: 720px) {

  .header > .wordmark { font-size: clamp(28px, 6.2vw, 43px); }
  .primary-nav { margin-top: 46px; }

  .works-page { padding-top: 34px; }
  .project-card, .project-card:first-child, .project-card:nth-child(3) { padding-top: 0; }
  .works-page .project-grid { row-gap: 24px; }
  .editorial-head { padding-top: 30px; }
}


.editorial-head .page-lead h2, .about-page .page-lead .about-deck { font-size: clamp(16px, 1.15vw, 22px); }
.news-row h3, .about-chapter h2 { font-size: clamp(16px, 1.35vw, 24px); }
.footer-top h2 { font-size: clamp(24px, 2.3vw, 48px); }

.primary-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  margin-top: clamp(38px, 6.2vw, 142px);
  padding: 8px var(--site-inset);
  background: var(--bg);
}
html { scroll-padding-top: 64px; }
@media (max-width:720px) { .primary-nav { margin-top: 46px; } }.primary-nav { width: 100%; box-sizing: border-box; }

/* A one-time cue as the menu first reaches the top. */
.nav-marker { height: 1px; margin-top: clamp(38px, 6.2vw, 142px); }
.primary-nav { margin-top: 0; }
.primary-nav a { font-weight: 600; }
.primary-nav.nav-cue { animation: nav-arrival 720ms ease-in-out; }
@keyframes nav-arrival {
  0%, 100% { background-color: var(--bg); }
  42% { background-color: #eae5db; }
}
body:has(.header) > .site-credit {
  width: 100%;
  margin: clamp(48px, 7vw, 104px) 0 0;
  border: 0;
  background: #eae9e4;
  padding: clamp(48px, 7vw, 96px) var(--site-inset);
  text-align: center;
}
.site-credit p {
  margin: 0;
  color: #575653;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0;
}
@media (max-width:720px) { .nav-marker { margin-top: 46px; } }
@media (prefers-reduced-motion: reduce) { .primary-nav.nav-cue { animation: none; } }

body:has(.header) > .site-credit {
  margin-top: clamp(18px, 2vw, 32px);
  padding-block: clamp(16px, 1.8vw, 28px);
}
.profile-opening, .profile-chapters {
  display: grid;
  grid-template-columns: repeat(12,minmax(0,1fr));
  gap: var(--column-gap);
}
.profile-opening { padding-block: clamp(22px, 3.5vw, 60px) 0; }
.profile-copy { grid-column: span 5; }
.profile-copy h1 { font-size: clamp(25px, 2.4vw, 46px); line-height: 1.1; letter-spacing: -.04em; }
.about-page .profile-subtitle { margin-block: 12px 24px; color: var(--text); }
.profile-image { grid-column: 7 / -1; margin: 0; align-self: start; }
.profile-image img, .profile-detail img { width: 100%; display: block; height: auto; aspect-ratio: 10 / 7; object-fit: cover; }
.profile-chapters { border-top: 1px solid var(--line); margin-top: clamp(24px, 3.6vw, 62px); padding-top: clamp(24px, 3vw, 48px); }
.profile-chapters section:first-child { grid-column: span 5; }
.profile-chapters section:last-child { grid-column: 7 / -1; }
.profile-detail { width: min(420px, 100%); margin: 18px 0 0 auto; }
@media(max-width:720px) {
  .profile-copy, .profile-image, .profile-chapters section:first-child, .profile-chapters section:last-child { grid-column: 1 / -1; }
  .profile-detail { margin-left: 0; }
}

.contact-opening {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--column-gap);
  padding-block: clamp(24px, 4vw, 72px);
  align-items: center;
}
.contact-copy { grid-column: span 5; min-width: 0; }
.contact-copy h1 { font-size: clamp(38px, 4.5vw, 78px); line-height: 1.02; letter-spacing: -.06em; }
.contact-page .contact-lead { color: var(--text); font-size: clamp(18px, 2vw, 28px); margin-block: 14px 18px; }
.contact-copy .contact-list { margin-top: 24px; }
.contact-copy .contact-list > div { padding-block: 12px; }
.contact-copy dd { font-weight: 600; }
.contact-copy address span { color: var(--muted); font-size: .88em; font-weight: 400; }
.contact-visual { grid-column: 7 / -1; margin: 0; }
.contact-visual img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 40%; filter: grayscale(1); }
.contact-visual figcaption { color: var(--muted); font-size: 11px; margin-top: 8px; }
@media (max-width: 720px) {
  .contact-copy, .contact-visual { grid-column: 1 / -1; }
  .contact-visual img { aspect-ratio: 16 / 10; }
}

/* An architectural trace passes through the space between the two labels. */
.header > .wordmark { grid-column: 1 / 4; }
.header > .masthead-description { grid-column: 10 / -1; }
.masthead-skyline {
  grid-column: 4 / 10;
  width: 100%;
  height: clamp(30px, 3.2vw, 72px);
  align-self: center;
  color: #9e4435;
  pointer-events: none;
}
.skyline-beam { animation: skyline-sweep 6.8s linear infinite; }
@keyframes skyline-sweep {
  0% { transform: translateX(0); }
  89%, 100% { transform: translateX(1380px); }
}
@media (max-width: 720px) {
  .header > .wordmark { grid-column: 1 / 8; grid-row: 1; }
  .header > .masthead-description { grid-column: 8 / -1; grid-row: 1; }
  .masthead-skyline { grid-column: 1 / -1; grid-row: 2; height: 25px; margin-top: 12px; }
  .nav-marker { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .skyline-beam { animation: none; }
  .skyline-trace { mask: none; opacity: .5; }
}
