/* Naswood project index + single project compact redesign. */
:root {
  --nwhs-project-ink: #2f302f;
  --nwhs-project-muted: #746f69;
  --nwhs-project-accent: #cc8a56;
  --nwhs-project-paper: #f5f1eb;
  --nwhs-project-line: rgba(47, 48, 47, .13);
}

.nwhs-project-shell {
  width: min(100% - 60px, 1380px);
  margin-inline: auto;
}

.nwhs-project-index-main,
.nwhs-project-detail-main {
  background: #fff;
  color: var(--nwhs-project-ink);
}

.nwhs-project-index-hero {
  padding: 175px 0 58px;
  background:
    linear-gradient(120deg, rgba(204, 138, 86, .12), transparent 42%),
    var(--nwhs-project-paper);
  border-bottom: 1px solid var(--nwhs-project-line);
}

.nwhs-project-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(47, 48, 47, .56);
}

.nwhs-project-breadcrumb a {
  color: inherit;
  transition: color .25s ease;
}

.nwhs-project-breadcrumb a:hover {
  color: var(--nwhs-project-accent);
}

.nwhs-project-breadcrumb strong {
  color: var(--nwhs-project-ink);
  font-weight: 500;
}

.nwhs-project-index-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  align-items: end;
  gap: 60px;
}

.nwhs-project-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--nwhs-project-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.3;
}

.nwhs-project-index-heading h1,
.nwhs-project-detail-copy h1 {
  margin: 0;
  color: var(--nwhs-project-ink);
  font-family: inherit;
  font-size: clamp(38px, 5vw, 70px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.02;
}

.nwhs-project-index-heading p {
  margin: 0;
  max-width: 520px;
  color: var(--nwhs-project-muted);
  font-size: 17px;
  line-height: 1.75;
}

.nwhs-project-index-content {
  padding: 42px 0 92px;
}

.nwhs-project-filter {
  display: grid;
  grid-template-columns: minmax(210px, .85fr) repeat(2, minmax(220px, 1fr)) auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 38px;
  padding: 18px;
  border: 1px solid var(--nwhs-project-line);
  background: #fff;
  box-shadow: 0 12px 35px rgba(47, 48, 47, .055);
}

.nwhs-project-filter-heading {
  display: flex;
  min-height: 54px;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding-right: 14px;
  border-right: 1px solid var(--nwhs-project-line);
}

.nwhs-project-filter-heading > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nwhs-project-filter-heading small {
  color: var(--nwhs-project-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}

.nwhs-project-filter-heading strong {
  color: var(--nwhs-project-ink);
  font-size: 17px;
  font-weight: 600;
}

.nwhs-project-filter-heading a {
  width: fit-content;
  margin-top: 3px;
  color: var(--nwhs-project-accent);
  font-size: 12px;
  line-height: 1.3;
}

.nwhs-project-filter label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.nwhs-project-filter label > span {
  color: var(--nwhs-project-muted);
  font-size: 12px;
  font-weight: 600;
}

.nwhs-project-filter select {
  width: 100%;
  height: 48px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--nwhs-project-line);
  border-radius: 0;
  outline: none;
  background-color: #faf9f7;
  color: var(--nwhs-project-ink);
  font-size: 14px;
  box-shadow: none;
  transition: border-color .25s ease, background-color .25s ease;
}

.nwhs-project-filter select:focus {
  border-color: var(--nwhs-project-accent);
  background: #fff;
}

.nwhs-project-filter > button {
  height: 48px;
  padding: 0 22px;
  border: 1px solid var(--nwhs-project-ink);
  background: var(--nwhs-project-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease;
}

.nwhs-project-filter > button:hover {
  border-color: var(--nwhs-project-accent);
  background: var(--nwhs-project-accent);
}

.nwhs-project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 20px;
}

.nwhs-project-card {
  min-width: 0;
  border: 1px solid var(--nwhs-project-line);
  background: #fff;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.nwhs-project-card:hover {
  border-color: rgba(204, 138, 86, .45);
  box-shadow: 0 18px 44px rgba(47, 48, 47, .1);
  transform: translateY(-4px);
}

.nwhs-project-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--nwhs-project-paper);
}

.nwhs-project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .75, .25, 1);
}

.nwhs-project-card:hover .nwhs-project-card-media img {
  transform: scale(1.045);
}

.nwhs-project-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 20, 20, .38), transparent 56%);
  pointer-events: none;
}

.nwhs-project-card-index {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

.nwhs-project-card-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(47, 48, 47, .3);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: .15em;
}

.nwhs-project-card-body {
  display: flex;
  min-height: 215px;
  flex-direction: column;
  padding: 19px 18px 18px;
}

.nwhs-project-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.nwhs-project-card-meta span,
.nwhs-project-detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  background: var(--nwhs-project-paper);
  color: var(--nwhs-project-muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}

.nwhs-project-card h2 {
  margin: 0 0 9px;
  color: var(--nwhs-project-ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.28;
}

.nwhs-project-card h2 a {
  color: inherit;
}

.nwhs-project-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 16px;
  color: var(--nwhs-project-muted);
  font-size: 13px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.nwhs-project-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: auto;
  color: var(--nwhs-project-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: color .25s ease, gap .25s ease;
}

.nwhs-project-card-link:hover {
  gap: 12px;
  color: var(--nwhs-project-accent);
}

.nwhs-project-pagination {
  margin-top: 48px;
}

.nwhs-project-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nwhs-project-pagination a,
.nwhs-project-pagination span {
  display: grid;
  min-width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--nwhs-project-line);
  color: var(--nwhs-project-ink);
  font-size: 13px;
}

.nwhs-project-pagination .current,
.nwhs-project-pagination a:hover {
  border-color: var(--nwhs-project-accent);
  background: var(--nwhs-project-accent);
  color: #fff;
}

.nwhs-project-empty {
  padding: 70px 30px;
  border: 1px solid var(--nwhs-project-line);
  background: var(--nwhs-project-paper);
  text-align: center;
}

.nwhs-project-empty span {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 600;
}

.nwhs-project-empty p {
  margin: 0 0 22px;
  color: var(--nwhs-project-muted);
}

.nwhs-project-empty a {
  display: inline-flex;
  padding: 13px 19px;
  background: var(--nwhs-project-ink);
  color: #fff;
}

/* Single project */
.nwhs-project-detail-hero {
  padding: 155px 0 70px;
  background: var(--nwhs-project-paper);
}

.nwhs-project-detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(440px, 1.12fr);
  align-items: stretch;
  gap: 58px;
}

.nwhs-project-detail-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 18px 0;
}

.nwhs-project-detail-copy .nwhs-project-breadcrumb {
  margin-bottom: 48px;
}

.nwhs-project-detail-copy h1 {
  max-width: 760px;
  font-size: clamp(38px, 4.5vw, 66px);
}

.nwhs-project-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
}

.nwhs-project-detail-location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 0;
  color: var(--nwhs-project-muted);
  font-size: 14px;
}

.nwhs-project-detail-location span {
  color: var(--nwhs-project-accent);
  font-size: 18px;
}

.nwhs-project-detail-cover {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background: #ded9d1;
}

.nwhs-project-detail-cover img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.nwhs-project-detail-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 45%, rgba(20, 20, 20, .22));
  pointer-events: none;
}

.nwhs-project-detail-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 480px;
  place-items: center;
  color: rgba(47, 48, 47, .35);
  font-size: 26px;
  letter-spacing: .16em;
}

.nwhs-project-story-section {
  padding: 88px 0;
}

.nwhs-project-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  align-items: start;
  gap: 82px;
}

.nwhs-project-story h2,
.nwhs-project-section-heading h2,
.nwhs-project-video-grid h2 {
  margin: 0;
  color: var(--nwhs-project-ink);
  font-size: clamp(30px, 3.4vw, 50px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.08;
}

.nwhs-project-story-content {
  margin-top: 30px;
  color: var(--nwhs-project-muted);
  font-size: 17px;
  line-height: 1.85;
}

.nwhs-project-story-content > :first-child {
  margin-top: 0;
}

.nwhs-project-story-content > :last-child {
  margin-bottom: 0;
}

.nwhs-project-story-content p {
  margin: 0 0 20px;
}

.nwhs-project-story-content h2,
.nwhs-project-story-content h3,
.nwhs-project-story-content h4 {
  margin: 32px 0 14px;
  color: var(--nwhs-project-ink);
  font-size: 24px;
  line-height: 1.25;
}

.nwhs-project-story-empty {
  margin-top: 28px;
  padding: 18px;
  border-left: 3px solid var(--nwhs-project-accent);
  background: var(--nwhs-project-paper);
  color: var(--nwhs-project-muted);
}

.nwhs-project-facts {
  position: sticky;
  top: 120px;
  padding: 28px;
  border: 1px solid var(--nwhs-project-line);
  background: #fff;
  box-shadow: 0 18px 45px rgba(47, 48, 47, .07);
}

.nwhs-project-facts dl {
  margin: 0;
}

.nwhs-project-facts dl > div {
  display: grid;
  grid-template-columns: minmax(90px, .8fr) minmax(0, 1.2fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--nwhs-project-line);
}

.nwhs-project-facts dt {
  color: var(--nwhs-project-muted);
  font-size: 12px;
  font-weight: 500;
}

.nwhs-project-facts dd {
  margin: 0;
  color: var(--nwhs-project-ink);
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.nwhs-project-map-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding: 14px 16px;
  background: var(--nwhs-project-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: background .25s ease;
}

.nwhs-project-map-link:hover {
  background: var(--nwhs-project-accent);
  color: #fff;
}

.nwhs-project-gallery-section {
  padding: 82px 0;
  background: var(--nwhs-project-paper);
}

.nwhs-project-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.nwhs-project-section-heading > span {
  color: var(--nwhs-project-muted);
  font-size: 13px;
}

.nwhs-project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 185px;
  gap: 14px;
}

.nwhs-project-gallery-grid a {
  position: relative;
  display: block;
  overflow: hidden;
  background: #ddd8d1;
}

.nwhs-project-gallery-grid a.is-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.nwhs-project-gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.nwhs-project-gallery-grid a:hover img {
  transform: scale(1.04);
}

.nwhs-project-gallery-grid a > span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: rgba(255, 255, 255, .88);
  color: var(--nwhs-project-ink);
  font-size: 18px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .25s ease, transform .25s ease;
}

.nwhs-project-gallery-grid a:hover > span {
  opacity: 1;
  transform: translateY(0);
}

.nwhs-project-video-section {
  padding: 88px 0;
}

.nwhs-project-video-grid {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 72px;
}

.nwhs-project-video-grid p {
  max-width: 420px;
  margin: 22px 0 0;
  color: var(--nwhs-project-muted);
  font-size: 16px;
  line-height: 1.7;
}

.nwhs-project-video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #1f2020;
}

.nwhs-project-video-frame iframe,
.nwhs-project-video-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.nwhs-project-video-frame > a {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #fff;
  font-size: 17px;
}

.nwhs-project-detail-footer {
  padding: 38px 0 76px;
  border-top: 1px solid var(--nwhs-project-line);
}

.nwhs-project-detail-footer a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--nwhs-project-ink);
  font-size: 14px;
  font-weight: 600;
  transition: color .25s ease, gap .25s ease;
}

.nwhs-project-detail-footer a:hover {
  gap: 14px;
  color: var(--nwhs-project-accent);
}

@media (max-width: 1180px) {
  .nwhs-project-filter {
    grid-template-columns: minmax(185px, .8fr) repeat(2, minmax(190px, 1fr));
  }

  .nwhs-project-filter > button {
    grid-column: 2 / -1;
  }

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

  .nwhs-project-detail-hero-grid {
    grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr);
    gap: 38px;
  }
}

@media (max-width: 900px) {
  .nwhs-project-shell {
    width: min(100% - 40px, 1380px);
  }

  .nwhs-project-index-hero {
    padding-top: 145px;
  }

  .nwhs-project-index-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .nwhs-project-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nwhs-project-filter-heading {
    grid-column: 1 / -1;
    min-height: auto;
    padding: 0 0 13px;
    border-right: 0;
    border-bottom: 1px solid var(--nwhs-project-line);
  }

  .nwhs-project-filter > button {
    grid-column: 1 / -1;
  }

  .nwhs-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nwhs-project-detail-hero-grid,
  .nwhs-project-story-grid,
  .nwhs-project-video-grid {
    grid-template-columns: 1fr;
  }

  .nwhs-project-detail-hero {
    padding-top: 135px;
  }

  .nwhs-project-detail-copy .nwhs-project-breadcrumb {
    margin-bottom: 32px;
  }

  .nwhs-project-detail-cover,
  .nwhs-project-detail-cover img,
  .nwhs-project-detail-placeholder {
    min-height: 410px;
  }

  .nwhs-project-story-grid,
  .nwhs-project-video-grid {
    gap: 42px;
  }

  .nwhs-project-facts {
    position: static;
  }

  .nwhs-project-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .nwhs-project-shell {
    width: min(100% - 30px, 1380px);
  }

  .nwhs-project-index-hero {
    padding: 125px 0 40px;
  }

  .nwhs-project-breadcrumb {
    margin-bottom: 24px;
    font-size: 11px;
  }

  .nwhs-project-index-heading h1,
  .nwhs-project-detail-copy h1 {
    font-size: 38px;
  }

  .nwhs-project-index-heading p {
    font-size: 15px;
    line-height: 1.65;
  }

  .nwhs-project-index-content {
    padding: 24px 0 65px;
  }

  .nwhs-project-filter {
    grid-template-columns: 1fr;
    margin-bottom: 25px;
    padding: 14px;
  }

  .nwhs-project-filter > button {
    grid-column: auto;
  }

  .nwhs-project-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .nwhs-project-card-body {
    min-height: 190px;
  }

  .nwhs-project-detail-hero {
    padding: 120px 0 42px;
  }

  .nwhs-project-detail-hero-grid {
    gap: 30px;
  }

  .nwhs-project-detail-cover,
  .nwhs-project-detail-cover img,
  .nwhs-project-detail-placeholder {
    min-height: 290px;
  }

  .nwhs-project-story-section,
  .nwhs-project-gallery-section,
  .nwhs-project-video-section {
    padding: 58px 0;
  }

  .nwhs-project-story h2,
  .nwhs-project-section-heading h2,
  .nwhs-project-video-grid h2 {
    font-size: 31px;
  }

  .nwhs-project-story-content {
    font-size: 15px;
    line-height: 1.75;
  }

  .nwhs-project-facts {
    padding: 20px;
  }

  .nwhs-project-facts dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .nwhs-project-facts dd {
    text-align: left;
  }

  .nwhs-project-section-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .nwhs-project-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 150px;
  }

  .nwhs-project-gallery-grid a.is-featured {
    grid-column: 1 / -1;
    grid-row: span 2;
  }

  .nwhs-project-video-grid {
    gap: 28px;
  }
}
