:root {
  color-scheme: only light;
  --paper: #edece5;
  --graphite: #2f333f;
  --ink: var(--graphite);
  --on-graphite: #f1f1f1;
  --on-graphite-muted: #d8dce2;
  --muted: #525661;
  --line: #c5c6ca;
  --slate-blue: #555974;
  --steel-blue: #abc2d6;
  --gold: var(--slate-blue);
}

.mast .brand img { filter: drop-shadow(0 0 .4px #24241f); }
.cover h1 { color: inherit; margin-top: 0; }
.cover-image { background: #c9ccd1; }
.directory, .service-list, .team-row, .city-list { border-top-color: var(--ink); }

.nav-proposal { color: var(--slate-blue); border-color: var(--slate-blue); }
.btn, .nav-proposal:hover, .nav-proposal:focus-visible {
  background: var(--slate-blue);
  color: #fff;
}
.btn:hover, .btn:focus-visible {
  background: var(--ink);
}
.nav-proposal:focus-visible, .btn:focus-visible, .skip:focus-visible {
  outline-color: var(--slate-blue);
}

.cover-band, .case, .footer { background: var(--graphite); color: var(--on-graphite); }
.cover .lead, .case-copy > p:not(.overline) { color: var(--on-graphite-muted); }
.case .overline { color: var(--steel-blue); }
.cover h1 em { color: inherit; }
.cover .link, .case-copy .link { text-decoration-color: var(--steel-blue); }
.footer {
  --muted: var(--on-graphite-muted);
  --line: #858997;
}
.footbar > span { text-wrap: balance; }
.mobile-menu nav { background: var(--paper); }
.contact-controls select { border-color: var(--muted); background-color: var(--paper); }

.interior-page { background: var(--graphite); }
.interior-page > .ed-section { background: var(--paper); }
.interior-page > :is(.ed-intro, .ed-related) {
  --ink: var(--on-graphite);
  --muted: var(--on-graphite-muted);
  --line: #5c606e;
  --gold: var(--steel-blue);
}
.interior-page > .ed-related { border-top: 0; }
.ed-intro .btn { border: 1px solid var(--steel-blue); }
.ed-intro .btn:is(:hover, :focus-visible) {
  color: var(--graphite);
  background: var(--paper);
}
.ed-intro > .ed-heading p { margin: 0; }
.contact-panel .contact-controls { grid-template-columns: minmax(0, 1fr); margin: 0; }
.contact-panel > * { min-width: 0; }

body:has(.state-contact) { min-height: 100svh; display: flex; flex-direction: column; }
.interior-page:has(.state-contact) { display: flex; flex: 1; flex-direction: column; }
.state-contact { flex: 1; }
.state-contact .ed-heading p { margin: .75rem 0 0; }
.reach { align-items: start; }
.state-phones { border-bottom: 1px solid var(--line); }
.state-phones details { border-top: 1px solid var(--line); }
.state-phones summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding-block: .8rem;
  list-style: none;
  cursor: pointer;
  font: 400 clamp(1.8rem, 2.5vw, 2.65rem)/1.2 var(--serif);
}
.state-phones summary::-webkit-details-marker { display: none; }
.state-phones summary::after {
  content: "";
  width: .55rem;
  height: .55rem;
  margin-inline-end: .3rem;
  border: solid var(--slate-blue);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.state-phones details[open] summary::after { transform: rotate(225deg); }
.state-phones ul { margin: 0; padding: 0 0 .75rem; list-style: none; }
.state-phones a { display: inline-flex; align-items: center; min-height: 44px; }

.client-band {
  background: var(--graphite);
  color: var(--on-graphite);
}
.client-band-inner { padding-block: clamp(3rem, 6vw, 6rem); }
.client-window:focus-visible {
  outline: 2px solid var(--steel-blue);
  outline-offset: 2px;
}
.client-window {
  display: flex;
  overflow-x: auto;
  margin-top: clamp(1.7rem, 4vw, 3.4rem);
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  border-block: 1px solid #5c606e;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #8592a5 var(--ink);
}
.client-window[data-ready] { scrollbar-width: none; }
.client-window[data-ready]::-webkit-scrollbar { display: none; }
.client-list {
  --logo-gap: clamp(1.7rem, 5vw, 4.5rem);
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--logo-gap);
  margin: 0;
  padding: 0 var(--logo-gap) 0 0;
  list-style: none;
}
.client-list li {
  flex: 0 0 auto;
  width: clamp(8.5rem, 14vw, 12rem);
  height: clamp(4.8rem, 7vw, 6.4rem);
}
.client-list img { width: 100%; height: 100%; object-fit: contain; }

@media (min-width: 64rem) {
  .mastbar { min-height: clamp(4.75rem, 5.5vw, 5.25rem); }

  .cover {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(2.5rem, 3.6vw, 3.75rem);
    padding-block: clamp(2rem, 3vw, 2.875rem);
  }
  .cover h1 .middle { display: inline; }
  .cover .actions { margin-top: 1rem; }
  .cover-image { height: auto; aspect-ratio: 5 / 3; }

  .directory {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.375rem;
    padding-block: clamp(2rem, 2.6vw, 2.75rem) clamp(2.5rem, 3.5vw, 3.75rem);
  }
  .index-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 2.8vw, 2.75rem);
  }
  .index-row, .index-row:first-child {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0 0;
    border-top: 1px solid var(--line);
    border-bottom: 0;
  }
  .index-row h3 { text-wrap: balance; }
  .index-row p { margin-top: .5rem; }

  .client-band-inner, .reach { padding-block: clamp(2.5rem, 3.5vw, 3.75rem); }
  .client-window { margin-top: 1.5rem; padding-block: 1rem; }

  .ed-intro .ed-crumb { padding-block: .875rem; }
  .ed-opening {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2.5rem, 3.6vw, 3.75rem);
    padding-block: clamp(2rem, 3vw, 2.875rem);
  }
  .ed-opening .ed-heading > p {
    max-width: 54ch;
    margin-block: 1rem;
    line-height: 1.55;
  }
  .ed-image { padding-bottom: .375rem; }
  .ed-image img { aspect-ratio: 16 / 9; object-position: 50% 35%; }

  :where(.interior-page:has(.ed-opening)) :is(.ed-grid, .ed-related) {
    gap: clamp(2.5rem, 3.6vw, 3.75rem);
    padding-block: clamp(2.25rem, 3.5vw, 3.75rem);
  }
  .service-item summary { padding-block: .875rem; }
  .service-copy { margin-bottom: 1.25rem; }

  .ed-grid:has(> .team-row) { grid-template-columns: 1fr; row-gap: 1.375rem; }
  .team-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 2.8vw, 2.75rem);
    border-top: 0;
  }
  .team-person { padding: 1rem 0 0; border-top: 1px solid var(--line); border-bottom: 0; }
}
