.project-page { --project-max: 1620px; }
.projects-main,.project-detail-main { max-width: var(--project-max); margin-inline: auto; }
.project-intro { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(35px,7vw,110px); align-items: end; padding: clamp(50px,7vw,104px) var(--gutter) 64px; }
.project-intro h1 { font-size: clamp(58px,7.7vw,112px); line-height: .98; letter-spacing: -.065em; font-weight: 500; margin-top: 20px; }
.project-intro h1 span,.project-detail-intro h1 span { color: var(--gold); }
.project-intro .fine-rule { margin-bottom: 0; }
.project-intro-copy h2 { font-size: clamp(28px,3vw,39px); letter-spacing: -.055em; font-weight: 500; margin-bottom: 17px; }
.project-intro-copy p,.detail-summary { color: var(--muted); font-size: 16px; line-height: 1.85; max-width: 535px; word-break: keep-all; overflow-wrap: anywhere; }
.project-collection { padding: 0 var(--gutter) clamp(48px,7vw,90px); }
.project-collection-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-block: 21px 28px; border-top: 1px solid var(--line); }
.project-collection-heading > span:last-child { color: var(--muted); font-size: 13px; }
.project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 27px 23px; }
.project-card { display: flex; flex-direction: column; border-top: 1px solid #a3a49d; background: #f6f6f4; min-width: 0; }
.project-card-main { padding: 24px 23px 20px; display: flex; flex-direction: column; align-items: start; flex: 1; min-height: 260px; gap: 16px; transition: background .2s; }
.project-card-main:hover { background: #eeeeeb; }
.project-card-main:focus-visible { outline-offset: -3px; }
.project-card-top { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.project-card-type { font-weight: 600; letter-spacing: .12em; }
.project-card-top time { font-variant-numeric: tabular-nums; }
.project-card-title { margin-top: 7px; }
.project-card h2 { font-size: clamp(20px,1.8vw,26px); line-height: 1.42; font-weight: 500; letter-spacing: -.045em; word-break: keep-all; overflow-wrap: anywhere; }
.project-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin-top: 10px; }
.small-line { width: 1px; height: 12px; background: #b0b1aa; }
.project-tagline { color: #4f504b; font-size: 15px; font-weight: 500; word-break: keep-all; line-height: 1.5; }
.project-room-label { color: var(--muted); font-size: 13px; line-height: 1.6; word-break: keep-all; }
.project-detail-label { color: var(--ink); font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--gold); padding-bottom: 5px; margin-top: auto; }
.project-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 17px 23px; border-top: 1px solid #e2e3df; color: var(--muted); font-size: 12px; }
.project-source-link { font-size: 12px; font-weight: 500; color: var(--ink); padding-block: 4px; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.project-list-note { font-size: 13px; color: var(--muted); line-height: 1.75; margin-top: 26px; word-break: keep-all; }
.project-breadcrumb { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; padding: 33px var(--gutter) 0; color: var(--muted); font-size: 13px; }
.project-breadcrumb a { font-weight: 600; color: var(--ink); letter-spacing: .1em; }
.project-breadcrumb a:hover { text-decoration: underline; }
.project-detail-intro { padding: clamp(38px,6vw,76px) var(--gutter) 54px; display: grid; grid-template-columns: minmax(0,1.55fr) minmax(230px,.65fr); gap: clamp(32px,7vw,105px); align-items: end; }
.project-detail-intro h1 { font-size: clamp(34px,4.65vw,72px); font-weight: 500; line-height: 1.23; letter-spacing: -.055em; margin-top: 16px; word-break: keep-all; overflow-wrap: anywhere; }
.detail-tagline { font-size: clamp(21px,2.2vw,29px); font-weight: 500; line-height: 1.5; margin-top: 22px; letter-spacing: -.04em; }
.project-detail-intro .fine-rule { margin-block: 25px; }
.project-facts { border-top: 1px solid var(--line); padding-top: 20px; min-width: 0; }
.project-facts dl { margin: 0 0 23px; }
.project-facts dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.project-facts dt { color: var(--muted); font-size: 14px; }
.project-facts dd { font-size: 15px; font-weight: 500; margin: 0; text-align: end; }
.project-facts .outline-link { display: block; width: 100%; text-align: center; background: var(--ink); color: white; border-color: var(--ink); }
.project-facts .outline-link:hover { background: #41413d; }
.project-facts > p { color: var(--muted); font-size: 13px; line-height: 1.65; margin-top: 13px; word-break: keep-all; }
.project-detail-content { padding: 0 var(--gutter) 55px; }
.project-stage { border-top: 1px solid var(--line); padding-block: 43px; }
.stage-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 25px; }
.stage-head h2,.project-original h2 { font-size: clamp(25px,3vw,36px); font-weight: 500; letter-spacing: -.045em; line-height: 1.45; margin-top: 9px; }
.stage-head > span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.room-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 36px; }
.room-item { border-top: 1px solid var(--line); padding: 20px 0 22px; }
.room-name { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.room-name h3 { font-size: 19px; font-weight: 500; letter-spacing: -.03em; }
.room-name > span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.room-item p { color: var(--muted); font-size: 16px; line-height: 1.85; margin-top: 13px; word-break: keep-all; overflow-wrap: anywhere; }
.stage-link { display: inline-block; margin-top: 4px; }
.project-original { padding: 38px 35px; background: #f4f4f2; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.project-original p:not(.section-label) { color: var(--muted); font-size: 15px; line-height: 1.7; margin-top: 10px; word-break: keep-all; }
.project-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; }
.project-next { color: var(--muted); font-size: 14px; text-align: end; line-height: 1.5; }
.project-next:hover { text-decoration: underline; }
@media (max-width: 1050px) {
 .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 740px) {
 .project-intro { grid-template-columns: 1fr; gap: 26px; padding-bottom: 42px; }
 .project-intro h1 { font-size: clamp(52px,12.7vw,80px); }
 .project-detail-intro { grid-template-columns: 1fr; gap: 30px; }
 .project-detail-intro h1 { font-size: clamp(36px,8.5vw,54px); }
 .project-original { align-items: start; flex-direction: column; padding: 28px 24px; }
}
@media (max-width: 600px) {
 .project-grid { grid-template-columns: 1fr; gap: 18px; }
 .project-collection-heading { align-items: flex-start; flex-wrap: wrap; gap: 8px; padding-block: 18px 22px; }
 .project-card-main { min-height: 230px; padding: 21px 20px 17px; gap: 13px; }
 .project-card h2 { font-size: 23px; }
 .project-card-bottom { padding: 15px 20px; }
 .project-intro { padding-top: 46px; }
 .project-breadcrumb { padding-top: 26px; gap: 9px; }
 .project-detail-intro { padding-bottom: 38px; }
 .room-list { grid-template-columns: 1fr; }
 .project-stage { padding-block: 34px; }
 .project-bottom { align-items: flex-start; flex-direction: column; gap: 15px; }
 .project-next { text-align: start; }
}
/* Budget navigation keeps the original editorial project design. */
.project-filterbar { border-top: 1px solid var(--line); padding-block: 25px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; }
.filter-caption h2 { font-size: 22px; font-weight: 500; letter-spacing: -.04em; margin-top: 5px; }
.project-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.project-filters button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; line-height: 1.4; color: var(--ink); background: #fff; border: 1px solid #d6d7d1; padding: 12px 16px; min-height: 44px; cursor: pointer; white-space: nowrap; transition: border-color .2s, background .2s, color .2s; }
.project-filters button:hover { border-color: #84867e; }
.project-filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-count { font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.project-filters button[aria-pressed="true"] .filter-count { color: #d7d7ce; }
.project-empty { display: grid; justify-items: start; gap: 18px; padding: 36px 25px; border-top: 1px solid var(--line); background: #f6f6f4; }
.project-empty h3 { font-size: 22px; font-weight: 500; letter-spacing: -.035em; word-break: keep-all; }
.project-empty p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.project-empty .outline-link { background: transparent; cursor: pointer; }
.project-card[hidden], .project-filterbar[hidden], .project-empty[hidden] { display: none; }
@media (max-width: 740px) {
  .project-filterbar { gap: 16px; padding-block: 22px 23px; }
  .project-filters { width: 100%; gap: 7px; }
  .project-filters button { padding: 11px 12px; font-size: 13px; }
}
@media (max-width: 360px) {
  .project-filters { gap: 6px; }
  .project-filters button { padding-inline: 9px; gap: 6px; }
}

/* The PROJECT introduction uses the same original living-room photography as HOME. */
.projects-main { max-width: none; }
.projects-main .project-collection { max-width: var(--project-max); margin-inline: auto; }
.project-intro.project-background {
  min-height: clamp(340px,34vw,510px);
  color: #fff;
  background-color: #2b2924;
  background-image: linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.31)), linear-gradient(0deg,rgba(0,0,0,.48),transparent 70%), url('/assets/home-cabinetry.webp');
  background-size: cover;
  background-position: center 52%;
  padding-bottom: clamp(46px,6vw,80px);
}
.project-background .section-label { color: #f0eee9; }
.project-background h1, .project-background .project-intro-copy h2 { color: #fff; }
.project-background .project-intro-copy p { color: #f0eee9; }
.project-background + .project-collection { padding-top: 28px; }
@media (max-width: 740px) {
  .project-intro.project-background {
    min-height: 340px;
    background-image: linear-gradient(0deg,rgba(0,0,0,.78),rgba(0,0,0,.34)), url('/assets/home-cabinetry.webp');
    background-position: 62% center;
    align-content: end;
    padding-bottom: 38px;
  }
  .project-background + .project-collection { padding-top: 16px; }
}

/* Local copies of the blog's actual representative images. */
.project-card-photo { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #e9e8e3; }
.project-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .35s; }
.project-card-main:hover .project-card-photo img { transform: scale(1.025); }
.project-feature-photo {
  display: grid; grid-template-columns: minmax(0,1.8fr) minmax(220px,.8fr);
  align-items: center; gap: clamp(22px,4vw,54px); padding: clamp(28px,4vw,46px) 0;
  border-top: 1px solid var(--line);
}
.project-feature-photo figure { min-width: 0; margin: 0; }
.project-feature-photo figure img { display: block; width: 100%; max-height: 580px; height: auto; object-fit: contain; object-position: center; background: #f6f5f2; }
.project-feature-photo.is-thumbnail { grid-template-columns: minmax(0,238px) minmax(0,1fr); }
.project-feature-photo.is-thumbnail figure img { max-width: 238px; }
.project-feature-photo figcaption,.project-room-photo figcaption { margin-top: 9px; color: var(--muted); font-size: 13px; }
.project-photo-copy h2 { font-size: clamp(24px,2.7vw,35px); font-weight: 500; letter-spacing: -.04em; margin-top: 8px; }
.project-photo-copy > p:not(.section-label) { margin: 12px 0 20px; color: var(--muted); font-size: 15px; line-height: 1.75; word-break: keep-all; }
.project-photo-copy .outline-link { display: inline-block; }
.project-room-photo { margin-top: 18px; }
.project-room-photo img { max-width: 100%; max-height: 420px; width: auto; height: auto; object-fit: contain; }
@media (max-width:740px) {
  .project-feature-photo,.project-feature-photo.is-thumbnail { grid-template-columns: 1fr; gap: 20px; }
  .project-feature-photo figure { justify-self: start; width: 100%; }
  .project-feature-photo.is-thumbnail figure { max-width: 238px; }
}

/* A blog-style, locally hosted gallery in construction order. */
.project-detail-content#project-photos { scroll-margin-top: calc(var(--header) + 14px); }
.project-detail-content .project-stage { padding-block: clamp(34px,5vw,62px); }
.project-detail-content .room-list { grid-template-columns: minmax(0,1fr); row-gap: 14px; }
.project-detail-content .room-item { padding: 26px 0 30px; }
.project-detail-content .room-name { margin-bottom: 16px; }
.project-detail-content .room-name h3 { font-size: clamp(19px,2.2vw,25px); }
.room-gallery { display: grid; align-items: start; justify-items: center; gap: 12px; margin-top: 4px; }
.gallery-cols-1 { grid-template-columns: minmax(0,1fr); }
.gallery-cols-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.gallery-cols-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.gallery-media { display: block; width: min(100%,var(--source-width)); min-width: 0; margin-inline: auto; cursor: zoom-in; }
.gallery-media img { display: block; width: 100%; height: auto; object-fit: contain; }
.gallery-note { color: var(--muted); font-size: 14px; line-height: 1.75; word-break: keep-all; }
.gallery-summary-note { border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 24px; }
.gallery-dialog { width: min(96vw,1200px); max-width: 96vw; max-height: 94vh; margin: auto; padding: 0; background: #1c1c1a; color: #fff; border: 0; overflow: auto; }
.gallery-dialog::backdrop { background: rgba(17,17,16,.89); }
.gallery-dialog-inner { padding: 15px clamp(12px,2.5vw,26px) 20px; }
.gallery-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.gallery-dialog-header span { font-size: 13px; color: rgba(255,255,255,.83); }
.gallery-dialog button { background: none; color: #fff; border: 1px solid rgba(255,255,255,.55); padding: 10px 15px; min-height: 44px; font-size: 14px; cursor: pointer; }
.gallery-dialog button:disabled { opacity: .4; cursor: default; }
.gallery-dialog-visual { display: grid; place-items: center; width: 100%; min-height: 180px; }
.gallery-dialog-visual img { width: auto; height: auto; max-width: 100%; max-height: 70vh; object-fit: contain; }
.gallery-dialog-caption { font-size: 14px; text-align: center; line-height: 1.65; margin: 12px 0; }
.gallery-dialog-controls { display: flex; align-items: center; justify-content: center; gap: 10px; }
@media (max-width:740px) {
  .gallery-cols-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:600px) {
  .room-gallery { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .project-detail-content .room-item { padding-block: 22px 26px; }
  .gallery-dialog { max-height: 96vh; }
  .gallery-dialog-visual img { max-height: 67vh; }
}

/* Editorial portfolio: warm off-white, unembellished photographs and confident typography. */
.project-page { background: #faf9f6; --line: #e0dcd5; }
.project-intro.project-background {
  min-height: clamp(350px,39vw,565px);
  background-image: linear-gradient(0deg,rgba(26,22,19,.65),rgba(26,22,19,.06) 77%), url('/assets/home-cabinetry.webp');
  background-position: 50% 51%;
}
.project-intro.project-background h1 { font-weight: 500; letter-spacing: -.06em; }
.project-background .project-intro-copy p { text-shadow: 0 1px 9px rgba(0,0,0,.45); }
.project-collection { padding-top: 26px; }
.project-grid { column-gap: clamp(18px,2.5vw,38px); row-gap: clamp(34px,4vw,60px); }
.project-card { border-top: 0; background: transparent; border-bottom: 1px solid var(--line); }
.project-card-main { padding: 0 0 18px; gap: 12px; }
.project-card-main:hover { background: transparent; }
.project-card-photo { background: #ece9e2; aspect-ratio: 4/3; }
.project-card-photo img { object-fit: cover; }
.project-card-photo:has(img[width="386"]) img { object-fit: contain; }
.project-card-main:hover .project-card-photo:has(img[width="386"]) img { transform: none; }
.project-card-top { margin-top: 5px; font-size: 11px; }
.portfolio-index { color: #907446; font-variant-numeric: tabular-nums; }
.project-card-title { margin-top: 0; }
.project-card h2 { font-size: clamp(22px,2.1vw,30px); font-weight: 500; }
.project-meta { margin-top: 6px; }
.project-tagline { font-size: 14px; }
.project-card-bottom { padding: 14px 0; }
.project-detail-main { max-width: 1450px; }
.project-breadcrumb { padding-top: 34px; }
.project-detail-intro { align-items: center; padding-bottom: clamp(42px,6vw,85px); }
.project-facts { background: #f0eee8; padding: 22px 25px; border: none; border-left: 2px solid #b69a6b; }
.project-facts .outline-link { min-height: 44px; }
.detail-summary { color: #514c46; max-width: 640px; }
.stage-jump { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-block: 1px solid var(--line); padding: 15px 0; }
.stage-jump > div { display: flex; gap: 12px; flex-wrap: wrap; }
.stage-jump a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 17px; background: #f0ede7; font-size: 14px; color: #37332d; }
.stage-jump a:hover { background: #e6e0d4; }
.stage-jump small { color: #8b7042; font-variant-numeric: tabular-nums; font-size: 12px; }
.stage-jump a span { margin-left: 6px; }
.project-detail-content .project-stage { border-top: 0; padding-block: clamp(40px,5.5vw,86px); }
.project-detail-content .project-stage + .project-stage { border-top: 1px solid var(--line); }
.stage-head { margin-bottom: clamp(24px,4vw,42px); align-items: end; }
.stage-head .section-label { color: #8a6d42; display: flex; gap: 12px; align-items: center; }
.stage-no { font-size: 27px; font-weight: 400; letter-spacing: -.045em; }
.stage-head h2 { font-size: clamp(33px,4vw,51px); line-height: 1.2; font-weight: 500; }
.stage-head > span { padding-bottom: 4px; }
.project-detail-content .room-list { row-gap: 0; }
.project-detail-content .room-item { display: grid; grid-template-columns: minmax(170px,.75fr) minmax(0,2.6fr); align-items: start; gap: 14px 36px; padding: clamp(24px,3vw,42px) 0; }
.project-detail-content .room-name { grid-column: 1; flex-direction: column; align-items: start; gap: 12px; margin: 0; }
.project-detail-content .room-name h3 { line-height: 1.42; font-size: clamp(20px,2vw,26px); word-break: keep-all; }
.project-detail-content .room-name > span { color: #817b71; letter-spacing: .04em; }
.project-detail-content .room-gallery { grid-column: 2; grid-row: 1 / span 2; margin: 0; align-items: start; gap: clamp(10px,1.6vw,22px); justify-items: center; }
.project-detail-content .room-item p { grid-column: 1; color: #5e5850; font-size: 15px; line-height: 1.85; margin: 0; }
.room-gallery .gallery-media { max-width: var(--source-width); width: 100%; margin: 0; position: relative; }
.room-gallery .gallery-media img { aspect-ratio: auto; height: auto; max-width: 100%; display: block; }
.room-gallery.gallery-cols-3:has([data-ratio="landscape"]) { grid-template-columns: repeat(2,minmax(0,1fr)); }
.room-gallery.gallery-cols-3 [data-ratio="landscape"] { grid-column: 1/-1; }
.room-gallery.gallery-cols-2:has([data-ratio="landscape"]):has([data-ratio="portrait"]) [data-ratio="landscape"] { grid-column: 1/-1; }
.room-gallery .gallery-media:hover { outline: 1px solid #b69a6b; outline-offset: 3px; }
.gallery-note { background: #f1efe9; padding: 18px 22px; }
#before-heading,#after-heading { scroll-margin-top: calc(var(--header) + 20px); }
.project-original { background: #eeebe4; }
@media (max-width: 740px) {
  .project-intro.project-background { min-height: 350px; background-image: linear-gradient(0deg,rgba(26,22,19,.72),rgba(26,22,19,.11) 85%), url('/assets/home-cabinetry.webp'); background-position: center; }
  .project-detail-content .room-item { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .project-detail-content .room-name { flex-direction: row; align-items: baseline; justify-content: space-between; }
  .project-detail-content .room-gallery { grid-column: 1; grid-row: auto; }
  .project-detail-content .room-item p { grid-column: 1; }
  .stage-jump { align-items: start; flex-direction: column; gap: 8px; }
  .stage-jump > div { width: 100%; }
  .stage-jump a { flex: 1 1 120px; justify-content: space-between; }
  .project-facts { padding: 18px; }
}
@media (max-width: 600px) {
  .room-gallery.gallery-cols-2,.room-gallery.gallery-cols-3,.room-gallery.gallery-cols-3:has([data-ratio="landscape"]) { grid-template-columns: minmax(0,1fr); }
  .project-detail-content .room-gallery .gallery-media { width: min(100%,var(--source-width)); }
  .project-card-photo { aspect-ratio: 4/3; }
}

/* Compact, interactive public-complex map; selectable list also works when tiles fail. */
.project-map-section { max-width: var(--project-max); padding: clamp(34px,5vw,60px) var(--gutter) 10px; margin-inline: auto; }
.project-map-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.project-map-heading h2 { font-size: clamp(24px,3vw,34px); font-weight: 500; letter-spacing: -.04em; margin-top: 7px; }
.project-map-heading > p { font-size: 13px; color: var(--muted); }
.project-map-layout { display: grid; grid-template-columns: minmax(0,1.75fr) minmax(245px,1fr); border: 1px solid #dfdad0; background: #f3f0e9; }
.project-map-visual { min-width: 0; }
.project-map-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 13px; gap: 10px; background: #f9f7f2; border-bottom: 1px solid #dfdad0; }
.project-map-regions { display: flex; gap: 6px; }
.project-map-regions button { min-height: 38px; padding: 7px 18px; border: 1px solid #c9c1b4; background: transparent; color: #5b554b; font-size: 13px; cursor: pointer; }
.project-map-regions button[aria-pressed="true"] { background: #312b24; color: #fff; border-color: #312b24; }
.project-map-top > span { color: #876941; font-size: 12px; }
.project-map-canvas { position: relative; height: 290px; overflow: hidden; isolation: isolate; background: #e8e5dd; }
.project-map-tiles,.project-map-markers { position: absolute; inset: 0; overflow: hidden; }
.project-map-tiles img { position: absolute; width: 256px; height: 256px; max-width: none; }
.project-map-markers { pointer-events: none; }
.project-map-pin { pointer-events: auto; position: absolute; transform: translate(-50%,-50%); background: #8d6c3d; border: 2px solid white; color: white; font-size: 11px; font-weight: 700; min-width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0 5px; box-shadow: 0 1px 4px #35250c55; }
.project-map-pin[aria-pressed="true"] { background: #272621; outline: 2px solid #cbb079; z-index: 3; }
.project-map-zoom { position: absolute; right: 10px; top: 10px; display: grid; overflow: hidden; border: 1px solid #b6afa0; background: white; }
.project-map-zoom button { min-width: 37px; min-height: 36px; border: 0; border-bottom: 1px solid #ddd9d0; background: #fff; color: #29241d; font-size: 19px; cursor: pointer; }
.project-map-zoom button:last-child { border-bottom: 0; }
.project-map-zoom button:disabled { color: #aaa; cursor: default; }
.project-map-status { position: absolute; bottom: 19px; left: 8px; right: 8px; margin: 0; background: #fffdf6ed; padding: 6px 9px; color: #514b3c; font-size: 11px; pointer-events: none; text-align: center; }
.project-map-attribution { position: absolute; bottom: 0; right: 0; font-size: 10px; background: #fffd; color: #333; padding: 2px 5px; }
.project-map-info { padding: 20px clamp(14px,2vw,26px); display: flex; flex-direction: column; gap: 11px; }
.project-map-info label { font-size: 12px; letter-spacing: .06em; color: #766547; font-weight: 600; }
.project-map-info select { font: inherit; font-size: 14px; color: #2e2a24; padding: 12px 10px; background: #fff; border: 1px solid #cfc8bb; max-width: 100%; min-height: 44px; }
.project-map-selection h3 { margin: 3px 0 5px; font-size: 22px; font-weight: 500; letter-spacing: -.04em; }
.project-map-selection > p { font-size: 13px; color: #645e53; margin-bottom: 8px; line-height: 1.45; }
.project-map-links { display: grid; gap: 5px; }
.project-map-links a { min-height: 38px; padding: 8px 0; border-top: 1px solid #dcd5c8; font-size: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-map-links a:hover { text-decoration: underline; }
.project-map-note { margin-top: auto; font-size: 12px; line-height: 1.65; color: #625d52; word-break: keep-all; }
@media(max-width: 740px) {
  .project-map-heading { align-items: start; flex-direction: column; gap: 6px; }
  .project-map-layout { grid-template-columns: minmax(0,1fr); }
  .project-map-canvas { height: 260px; }
}
.project-detail-content .room-copy { grid-column: 1; min-width: 0; display: grid; gap: 14px; }
.project-detail-content .room-gallery { grid-row: 1; }
.project-detail-content .room-copy p { grid-column: auto; }
@media (max-width: 740px) {
  .project-detail-content .room-gallery { grid-row: auto; }
}

/* Preserve the original scene by masking legacy marks in their source coordinates. */
.gallery-media,.project-card-photo,.gallery-dialog-photo { position: relative; }
.photo-brand {
  position: absolute;
  z-index: 1;
  left: var(--brand-x);
  top: var(--brand-y);
  width: var(--brand-w);
  height: var(--brand-h);
  background: transparent;
  pointer-events: none;
  display: block;
  overflow: visible;
}
/* Retain the photographs as uploaded. At the former watermark only, soften the
   background through a feathered local-photo treatment; never add a white tile. */
.gallery-media,.project-card-photo,.gallery-dialog-photo { overflow: hidden; }
.photo-brand::before {
  content: "";
  position: absolute;
  inset: -12%;
  background: var(--brand-tint,transparent);
  -webkit-backdrop-filter: blur(clamp(9px,1.9vw,26px));
  backdrop-filter: blur(clamp(9px,1.9vw,26px));
  -webkit-mask-image: linear-gradient(to right,transparent 0%,#000 16%,#000 84%,transparent 100%),linear-gradient(to bottom,transparent 0%,#000 16%,#000 84%,transparent 100%);
  mask-image: linear-gradient(to right,transparent 0%,#000 16%,#000 84%,transparent 100%),linear-gradient(to bottom,transparent 0%,#000 16%,#000 84%,transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  pointer-events: none;
}

.photo-brand[hidden] { display:none; }
/* Blog thumbnails use a centered square crop of the matching representative shot. */
.project-card-photo { aspect-ratio: 1 / 1; }
.project-card-photo img,.project-card-photo:has(img[width="386"]) img { object-fit: cover; object-position: 50% 50%; }
.project-card-main:hover .project-card-photo img,.project-card-main:hover .project-card-photo:has(img[width="386"]) img { transform: none; }
.project-card-main:hover .project-card-photo { filter: brightness(.975); }
/* Keep the exact image and overlay geometry aligned when the photo viewer resizes. */
.gallery-dialog-photo {
  width: min(100%,var(--photo-native-width),calc(70vh * var(--photo-ratio)));
  aspect-ratio: var(--photo-ratio);
  display: block;
}
.gallery-dialog-photo > img { display:block; width:100%; height:100%; max-height:none; object-fit:contain; }
@media (max-width:600px) {
  .gallery-dialog-photo { width: min(100%,var(--photo-native-width),calc(67vh * var(--photo-ratio))); }
  .gallery-dialog-photo > img { max-height:none; }
}
.gallery-dialog-photo { clip-path: inset(0); }

/* HI DESIGN / portfolio catalogue. Spacious two-column editorial composition,
   preserving the centered, square framing of each actual blog representative photo. */
.project-page { --portfolio-accent:#92723f; --portfolio-paper:#faf9f6; }
.project-collection { padding-top: clamp(48px,6vw,88px); }
.portfolio-heading {
  display:flex; justify-content:space-between; align-items:end; gap:28px;
  padding-bottom:30px; border-bottom:1px solid #c9c2b6;
}
.portfolio-heading .section-label { color:var(--portfolio-accent); letter-spacing:.18em; }
.portfolio-heading h2 { font-size:clamp(34px,4.3vw,57px); font-weight:500; letter-spacing:-.065em; line-height:1.2; margin-top:9px; }
.portfolio-heading > p { font-size:16px; line-height:1.85; color:#675f54; text-align:right; word-break:keep-all; }
.project-filterbar { border-top:0; padding:24px 0 23px; gap:18px 30px; border-bottom:1px solid #e2ddd4; }
.filter-caption h2 { font-size:20px; }
.project-filters { gap:5px; }
.project-filters button { background:transparent; border:1px solid transparent; padding:11px 13px; min-height:44px; }
.project-filters button[aria-pressed="true"] { background:#292722; color:#fff; border-color:#292722; }
.project-filters button:hover:not([aria-pressed="true"]) { border-color:#cfc4b5; background:#f1eee8; }
.project-collection-heading { border-top:0; padding:23px 0 26px; }
.project-collection-heading .section-label { color:#87734d; font-size:12px; letter-spacing:.16em; }
.project-grid {
  max-width:1110px; margin-inline:auto; display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start;
  column-gap:clamp(28px,5vw,78px); row-gap:clamp(46px,6vw,86px);
}
.project-card { min-width:0; background:none; border:0; }
.project-card-main { display:flex; flex-direction:column; align-items:stretch; min-height:0; padding:0; gap:0; }
.project-card-main:hover { background:transparent; }
.project-card-photo { aspect-ratio:1/1; background:#ece9e3; border:1px solid #e7e3db; }
.project-card-photo img,.project-card-photo:has(img[width="386"]) img { object-fit:cover; object-position:center; }
.project-card-main:hover .project-card-photo { filter: none; }
.project-card-copy { display:flex; flex-direction:column; align-items:start; padding:23px 0 18px; gap:11px; }
.project-card-top { margin:0; font-size:12px; gap:9px; color:#6f685d; }
.project-card-type { color:var(--portfolio-accent); font-weight:600; letter-spacing:.145em; }
.project-card-title { margin:2px 0 0; width:100%; }
.project-card h2 { font-size:clamp(24px,2.35vw,33px); font-weight:500; line-height:1.35; letter-spacing:-.05em; }
.project-meta { font-size:14px; color:#71685c; gap:12px; margin-top:9px; }
.project-meta .small-line { background:#bfb6a6; height:12px; }
.project-tagline { color:#38352e; font-weight:500; font-size:16px; line-height:1.6; }
.project-room-label { color:#726c61; font-size:13px; line-height:1.7; }
.project-detail-label { font-size:14px; font-weight:500; letter-spacing:-.02em; border-bottom:1px solid #a98853; margin-top:6px; padding-bottom:5px; transition:color .18s; }
.project-card-main:hover .project-detail-label { color:#94703c; }
.project-card-bottom { padding:13px 0 0; border-top:1px solid #dcd5ca; color:#716a60; font-size:13px; }
.project-source-link { font-size:13px; font-weight:500; text-decoration:none; padding-block:7px; }
.project-source-link:hover { text-decoration:underline; text-underline-offset:4px; }
@media (min-width:1001px) {
  /* Stagger only the visible cards; changing the budget filter retains the same ordered rhythm. */
  @supports selector(:nth-child(2n of :not([hidden]))) {
    .project-grid > .project-card:nth-child(2n of :not([hidden])) { margin-top:clamp(32px,4.5vw,66px); }
  }
}
@media (max-width:740px) {
  .project-collection { padding-top:40px; }
  .portfolio-heading { align-items:start; flex-direction:column; gap:12px; padding-bottom:22px; }
  .portfolio-heading > p { text-align:left; }
  .portfolio-break { display:none; }
  .project-filters { gap:3px; }
  .project-filters button { padding-inline:9px; border:1px solid #e0dacf; }
  .project-grid { column-gap:22px; row-gap:42px; }
  .project-card-copy { padding:17px 0 14px; gap:9px; }
  .project-card h2 { font-size:22px; }
}
@media (max-width:600px) {
  .project-grid { grid-template-columns:minmax(0,1fr); row-gap:42px; }
  .project-card-photo { aspect-ratio:1/1; }
  .project-card h2 { font-size:26px; }
  .project-card-top { font-size:12px; }
  .project-collection-heading { padding-block:19px 18px; align-items:center; }
}

/* Case-study typography: distinct stages, a balanced facts rail and unaltered image ratios. */
.case-studio { font-size:12px; letter-spacing:.1em; color:#887347; font-weight:600; margin-bottom:14px; }
.case-studio span { margin-inline:6px; color:#c0b398; }
.project-detail-intro { gap:clamp(28px,6.5vw,90px); }
.project-detail-intro .section-label { color:#786b56; line-height:1.5; }
.project-detail-intro h1 { line-height:1.19; }
.detail-tagline { margin-top:18px; color:#595146; font-weight:500; }
.detail-summary { font-size:16px; line-height:1.95; }
.project-facts { background:#fdfcf9; border-left:0; border-top:2px solid #ae8d53; padding:23px 24px; }
.project-facts dl div { border-color:#e3ddd3; }
.project-facts .outline-link { font-weight:500; }
.stage-jump { background:#f0ede6; border:0; padding:15px 21px; }
.stage-jump > .section-label { color:#78674a; }
.stage-jump a { background:#faf9f6; border:1px solid #dcd3c3; justify-content:center; min-width:112px; }
.project-detail-content .project-stage { padding-block:clamp(43px,6vw,83px); }
.stage-head { padding:0 0 22px; margin-bottom:12px; border-bottom:1px solid #c8beac; }
.stage-head .section-label { letter-spacing:.16em; }
.stage-head h2 { font-size:clamp(32px,4.2vw,51px); line-height:1.15; font-weight:500; margin-top:11px; }
.stage-head > span { font-size:14px; color:#776f62; }
.project-detail-content .room-item { padding:clamp(22px,3.7vw,46px) 0; gap:20px clamp(24px,4vw,58px); border-color:#e3ded4; }
.project-detail-content .room-item:first-child { border-top:0; }
.project-detail-content .room-copy { gap:18px; }
.project-detail-content .room-name h3 { font-size:clamp(22px,2.15vw,29px); line-height:1.35; }
.project-detail-content .room-name > span { font-size:13px; }
.project-detail-content .room-copy p { line-height:1.95; font-size:15px; color:#5e574d; word-break:keep-all; }
.project-detail-content .room-gallery { gap:clamp(10px,1.6vw,18px); }
.project-detail-content .gallery-media { outline-offset:2px; }
.project-bottom { border-top:1px solid #c9c1b1; padding-top:25px; }
@media (max-width:740px) {
  .project-detail-content .room-copy { gap:12px; }
  .project-detail-content .room-name h3 { font-size:23px; }
  .stage-jump { padding:15px; }
  .stage-jump a { min-width:0; justify-content:center; }
  .project-facts { padding:18px; }
  .project-detail-content .room-gallery { gap:12px; }
}

/* Minimal portfolio catalogue: the real representative photo, project name,
   and floor area are the only visible details on each entry. */
.project-collection { padding-top:clamp(42px,6vw,75px); }
.portfolio-heading { padding-bottom:20px; align-items:center; }
.portfolio-heading h2 { font-size:clamp(25px,3vw,38px); margin:0; font-weight:500; letter-spacing:-.055em; }
.project-filterbar { padding-block:16px 25px; border-bottom:0; }
.project-filters { gap:8px; }
.project-filters button { padding:10px 20px; min-height:44px; font-size:15px; border:1px solid #ded8cc; }
.project-filters button[aria-pressed="true"] { background:#2a2925; color:#fff; border-color:#2a2925; }
.project-grid { max-width:1110px; gap:clamp(34px,5vw,61px) clamp(22px,4.4vw,64px); }
.project-grid > .project-card { margin-top:0; }
@supports selector(:nth-child(2n of :not([hidden]))) {
  .project-grid > .project-card:nth-child(2n of :not([hidden])) { margin-top:0; }
}
.project-card-main { padding:0; gap:0; min-height:0; }
.project-card-copy { width:100%; display:flex; flex-direction:row; align-items:baseline; justify-content:space-between; gap:12px; padding:18px 0 0; }
.project-card-copy h2 { font-size:clamp(20px,2vw,29px); font-weight:500; line-height:1.38; min-width:0; }
.project-area { color:#817052; font-size:clamp(15px,1.35vw,19px); font-weight:500; white-space:nowrap; font-variant-numeric:tabular-nums; flex-shrink:0; }
.project-card-main:hover .project-card-copy h2 { color:#896b3d; }
.project-card-main:hover .project-card-photo { filter:brightness(.985); }
@media(max-width:740px) {
  .portfolio-heading { padding-bottom:16px; }
  .project-filters { gap:6px; }
  .project-filters button { padding:10px 13px; font-size:14px; }
  .project-card-copy { padding-top:13px; }
}
@media(max-width:600px) {
  .project-grid { grid-template-columns:minmax(0,1fr); row-gap:33px; }
  .project-card-copy h2 { font-size:21px; }
  .project-area { font-size:16px; }
}

/* Single-image automatic project gallery. Image aspect ratios and the existing
   transparent brand treatments remain unchanged, including in enlarged view. */
.case-view-page { background:#faf9f6; }
.case-view-main { max-width:1440px; padding:0 var(--gutter) 45px; }
.case-view-heading {
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  padding:clamp(24px,3.5vw,45px) 0 23px;
}
.case-view-heading > div { min-width:0; }
.case-view-heading h1 { font-size:clamp(23px,3.1vw,43px); font-weight:500; letter-spacing:-.055em; line-height:1.24; word-break:keep-all; overflow-wrap:anywhere; }
.case-view-area { font-size:16px; color:#8a744d; margin-top:6px; font-variant-numeric:tabular-nums; }
.case-back { flex:none; border-bottom:1px solid #aa956e; color:#5b5344; font-size:14px; padding:12px 7px 7px; line-height:1.2; }
.case-back:hover { color:#292621; }
.case-carousel { --case-height:clamp(290px,calc(100svh - 335px),700px); }
.case-gallery-stage { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:20px; }
.case-gallery-stage > .gallery-media { display:block; width:min(100%,var(--source-width)); margin:0; }
.case-carousel.is-ready .case-gallery-stage {
  display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,1fr); place-items:center; position:relative; height:var(--case-height);
  overflow:hidden; background:#f1efe9; isolation:isolate;
}
.case-carousel.is-ready .case-gallery-stage > .gallery-media {
  width:min(100%,calc(var(--source-width) * 1.35),calc(var(--case-height) * var(--slide-aspect)));
  aspect-ratio:var(--slide-aspect); margin:0; position:relative; flex:none; overflow:hidden;
}
.case-carousel .gallery-media > img { display:block; width:100%; height:auto; object-fit:contain; }
.case-carousel .gallery-media[hidden],.case-controls[hidden] { display:none!important; }
.case-carousel.is-ready .case-gallery-stage > .gallery-media:not([hidden]) { animation:case-photo-in .35s ease-out both; }
@keyframes case-photo-in { from {opacity:.92;} to {opacity:1;} }
.case-controls {
  display:flex; justify-content:space-between; align-items:center; gap:12px; padding:16px 0 0;
}
.case-status { display:flex; align-items:center; gap:15px; color:#6c6458; font-size:13px; white-space:nowrap; }
.case-slide-count { color:#514c44; font-variant-numeric:tabular-nums; letter-spacing:.06em; }
.case-controls-actions { display:flex; align-items:center; gap:6px; }
.case-controls-actions button { min-width:64px; min-height:44px; border:1px solid #d9d2c5; background:transparent; padding:9px 14px; color:#302d28; font-size:14px; cursor:pointer; }
.case-controls-actions button[data-case-play] { min-width:98px; background:#282722; color:#fff; border-color:#282722; }
.case-controls-actions button:hover:not(:disabled) { background:#e9e4da; color:#282722; }
.case-controls-actions button[data-case-play]:hover:not(:disabled) { background:#514c42; color:#fff; }
.case-controls-actions button:disabled { opacity:.5; cursor:default; }
.case-view-page .gallery-dialog-caption { display:none; }
@media(max-width:600px) {
  .case-view-main { padding-bottom:24px; }
  .case-view-heading { padding:21px 0 17px; gap:10px; }
  .case-view-heading h1 { font-size:24px; }
  .case-view-area { font-size:15px; }
  .case-carousel { --case-height:clamp(285px,calc(100svh - 245px),620px); }
  .case-controls { flex-wrap:wrap; padding-top:11px; gap:9px; }
  .case-controls-actions { gap:5px; margin-left:auto; }
  .case-controls-actions button { min-width:51px; padding:8px 9px; font-size:13px; }
  .case-controls-actions button[data-case-play] { min-width:77px; }
}
@media(max-width:360px) {
  .case-controls { justify-content:center; }
  .case-controls-actions { margin-left:0; }
}
@media(prefers-reduced-motion:reduce) { .case-carousel.is-ready .gallery-media:not([hidden]) { animation:none; } }

/* v31: a consistent transparent HI DESIGN signature at the lower right of every
   project image, independent of the cover crop and legacy-brand mask location. */
.project-card-photo::after,
.gallery-media::after,
.gallery-dialog-photo::after {
  content:""; position:absolute; z-index:2; right:3%; bottom:3%;
  width:clamp(44px,18%,104px); aspect-ratio:480/252;
  background:transparent url('/assets/logo.webp') center / contain no-repeat;
  filter:drop-shadow(0 0 .65px rgba(255,255,255,.8)) drop-shadow(0 0 1px rgba(255,255,255,.5));
  pointer-events:none;
}
.project-card-copy { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px 12px; align-items:baseline; }
.project-date { grid-column:1/-1; color:#777064; font-size:14px; font-variant-numeric:tabular-nums; line-height:1.5; }
.project-date span { margin-right:4px; }
.case-view-area { display:flex; align-items:baseline; gap:9px; flex-wrap:wrap; }
.case-date { font-size:14px; color:#777064; }
.case-date-separator { color:#b9aa94; }
@media(max-width:600px) { .project-date,.case-date { font-size:14px; } }

/* Four-up catalogue: smaller desktop cards show the existing photographs closer
   to their source resolution, without changing the reference-photo square crop. */
.project-grid { max-width:1110px; grid-template-columns:repeat(4,minmax(0,1fr)); column-gap:clamp(16px,2vw,26px); row-gap:clamp(32px,4.5vw,54px); }
.project-card-copy h2 { font-size:clamp(17px,1.45vw,21px); line-height:1.42; overflow-wrap:anywhere; }
.project-area { font-size:15px; }
/* Modest display-only contrast improves legibility without altering source files. */
.project-card-photo > img, .case-carousel .gallery-media > img, .gallery-dialog-photo > img { image-rendering:auto; filter:contrast(1.025); }
.project-card-main:hover .project-card-photo { filter:none; }
@media(max-width:1100px) { .project-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:900px) { .project-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .project-grid { grid-template-columns:minmax(0,1fr); row-gap:33px; } .project-card-copy h2 { font-size:21px; } }
