:root {
  color-scheme: light;
  --ink: #161514;
  --muted: #605d57;
  --paper: #f7f4ed;
  --panel: #fffaf0;
  --line: #d2c7b7;
  --blue: #164a78;
  --blue-deep: #0d304f;
  --blue-soft: #e8f0f7;
  --green: #385b49;
  --clay: #a4543a;
  --gold: #a77d35;
  --shadow: 0 22px 70px rgba(13, 48, 79, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--blue-deep);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a,
button {
  color: inherit;
}

button {
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(13, 48, 79, 0.94);
  border-bottom: 1px solid rgba(255, 250, 240, 0.18);
  display: flex;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 12px;
  text-decoration: none;
  color: var(--panel);
}

.brand-mark {
  align-items: center;
  background: var(--panel);
  color: var(--blue-deep);
  display: inline-flex;
  height: 40px;
  justify-content: center;
  letter-spacing: 0;
  width: 40px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 26px;
  font-size: 0.94rem;
}

.site-nav a {
  color: rgba(255, 250, 240, 0.72);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--panel);
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 44px;
  padding: 10px;
  width: 44px;
}

.nav-toggle span {
  background: var(--panel);
  display: block;
  height: 2px;
  margin: 5px 0;
  width: 24px;
}

.section-wrap {
  margin: 0 auto;
  max-width: 1240px;
  padding: 96px 32px;
}

.hero {
  background:
    linear-gradient(135deg, rgba(22, 74, 120, 0.98), rgba(13, 48, 79, 1) 64%),
    var(--blue-deep);
  color: var(--panel);
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 0.72fr) minmax(300px, 0.28fr);
  min-height: calc(100vh - 72px);
  max-width: none;
  padding-top: 106px;
}

.hero-copy {
  align-self: end;
}

.hero-brief {
  align-self: end;
  border-left: 1px solid rgba(255, 250, 240, 0.22);
  padding-left: 32px;
}

.eyebrow {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0 0 18px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(4rem, 10vw, 9.8rem);
  letter-spacing: 0;
  line-height: 0.86;
  margin-bottom: 0;
  max-width: 1040px;
}

h2 {
  font-size: clamp(2.2rem, 5.2vw, 5.2rem);
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 0;
}

h3 {
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 0;
}

.hero-brief p,
.agency-note > p,
.markets p {
  color: var(--muted);
  font-size: 1.12rem;
}

.hero .eyebrow {
  color: #f0bd78;
}

.hero-brief p {
  color: rgba(255, 250, 240, 0.78);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  align-items: center;
  border: 1px solid var(--ink);
  display: inline-flex;
  font-weight: 850;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.hero .button {
  border-color: rgba(255, 250, 240, 0.9);
}

.hero .button.primary {
  background: var(--panel);
  color: var(--blue-deep);
}

.hero .button.secondary {
  color: var(--panel);
}

.button.secondary {
  background: transparent;
}

.agency-note {
  align-items: end;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 0.67fr) minmax(300px, 0.33fr);
}

.agency-note,
.work-section,
.services,
#notes,
.contact,
.site-footer {
  background: var(--paper);
}

.section-heading {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(200px, 0.28fr) minmax(0, 0.72fr);
  margin-bottom: 42px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  min-height: 40px;
  padding: 8px 14px;
}

.filter.active,
.filter:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.work-list {
  border-top: 1px solid var(--line);
}

.project-card {
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  padding: 36px 0;
}

.project-card[hidden] {
  display: none;
}

.project-card.featured {
  padding-top: 48px;
}

.project-preview {
  background: transparent;
  border: 0;
  cursor: pointer;
  min-width: 0;
  padding: 0;
  text-align: left;
}

.project-preview img {
  aspect-ratio: 16 / 11;
  border: 1px solid var(--line);
  object-fit: cover;
  width: 100%;
}

.project-preview:hover img {
  filter: saturate(1.08) contrast(1.03);
}

.project-details {
  align-content: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 72px minmax(0, 1fr);
}

.project-details > *:not(.project-number) {
  grid-column: 2;
}

.project-number {
  color: var(--gold);
  font-weight: 900;
  grid-row: 1 / span 4;
}

.project-details > p:first-of-type,
.note-card p {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  margin-bottom: 0;
  text-transform: uppercase;
}

.project-summary {
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: 2px;
  max-width: 640px;
}

.text-link {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  cursor: pointer;
  font-weight: 850;
  justify-self: start;
  padding: 0 0 4px;
}

.text-link:hover {
  color: var(--blue);
}

.services {
  border-top: 1px solid var(--line);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-list article,
.note-card {
  background: rgba(255, 250, 240, 0.58);
  border-left: 1px solid var(--line);
  min-height: 260px;
  padding: 28px;
}

.service-list article:first-child,
.note-card:first-child {
  border-left: 0;
}

.service-list span {
  color: var(--blue);
  display: block;
  font-weight: 900;
  margin-bottom: 64px;
}

.service-list h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.service-list p,
.note-card h3 {
  color: var(--muted);
}

.markets {
  background:
    linear-gradient(135deg, var(--blue-deep), var(--blue) 76%);
  color: var(--paper);
}

.markets .eyebrow {
  color: #efbd69;
}

.markets-inner {
  align-items: center;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 0.68fr) minmax(300px, 0.32fr);
}

.markets p {
  color: #d9d1c2;
  margin-bottom: 0;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.note-card {
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.note-card h3 {
  font-size: 1.35rem;
  line-height: 1.15;
}

.note-card:hover {
  background: var(--blue-soft);
  transform: translateY(-2px);
}

.article-page {
  background: var(--paper);
}

.article-nav {
  display: flex;
}

.article-wrap {
  margin: 0 auto;
  max-width: 900px;
  padding: 120px 32px;
}

.article-wrap h1 {
  color: var(--blue-deep);
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  margin-bottom: 34px;
}

.article-lede {
  color: var(--blue);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.25;
  margin-bottom: 34px;
}

.article-wrap p:not(.eyebrow):not(.article-lede) {
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

.article-back {
  margin-top: 22px;
}

.contact {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.project-modal[hidden] {
  display: none;
}

.project-modal {
  inset: 0;
  position: fixed;
  z-index: 100;
}

.modal-backdrop {
  background: rgba(22, 21, 20, 0.72);
  inset: 0;
  position: absolute;
}

.modal-panel {
  background: var(--panel);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(280px, 0.42fr);
  left: 50%;
  max-height: calc(100vh - 48px);
  max-width: 1120px;
  overflow: auto;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100vw - 48px);
}

.modal-panel img {
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  width: 100%;
}

.modal-content {
  align-content: center;
  display: grid;
  padding: 44px;
}

.modal-content h2 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  margin-bottom: 24px;
}

.modal-content p:not(.eyebrow) {
  color: var(--muted);
  margin-bottom: 28px;
}

.modal-close {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-weight: 850;
  min-height: 42px;
  padding: 8px 14px;
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 2;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 26px 32px;
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 1000px) {
  .hero,
  .agency-note,
  .section-heading,
  .markets-inner,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 76px;
  }

  .hero-brief {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 28px;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .service-list,
  .notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-list article:nth-child(odd),
  .note-card:nth-child(odd) {
    border-left: 0;
  }

  .modal-panel {
    grid-template-columns: 1fr;
  }

  .modal-panel img {
    max-height: 440px;
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 0 18px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    background: var(--blue-deep);
    border-bottom: 1px solid rgba(255, 250, 240, 0.18);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 0;
    padding: 12px 18px 18px;
    position: absolute;
    right: 0;
    top: 72px;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    min-height: 44px;
    padding: 10px 0;
    width: 100%;
  }

  .section-wrap {
    padding: 64px 18px;
  }

  h1 {
    font-size: clamp(3.35rem, 18vw, 5.4rem);
  }

  h2 {
    font-size: clamp(2.3rem, 12vw, 3.5rem);
  }

  .project-details {
    grid-template-columns: 1fr;
  }

  .project-details > *:not(.project-number),
  .project-number {
    grid-column: 1;
  }

  .project-number {
    grid-row: auto;
  }

  .service-list,
  .notes-grid {
    grid-template-columns: 1fr;
  }

  .service-list article,
  .note-card {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .service-list span {
    margin-bottom: 36px;
  }

  .hero-actions,
  .contact-actions,
  .site-footer {
    flex-direction: column;
  }

  .button {
    justify-content: center;
    width: 100%;
  }

  .modal-panel {
    max-height: calc(100vh - 24px);
    width: calc(100vw - 24px);
  }

  .modal-content {
    padding: 28px;
  }

  .article-nav {
    display: none;
  }

  .article-wrap {
    padding: 82px 18px;
  }
}
