/* Portfolio refinement. Kept separate from the five demo identities. */
body[data-brand="velnori"]:not(.viewer) {
  --paper: #f5f4ef;
  --ink: #20352c;
  --muted: #536259;
  --line: #d4dcd3;
  --accent: #315d4b;
  --navy: #254c3d;
}

.site-header .brand { letter-spacing: -.065em; }
.site-header .nav-link,
.site-header .text-button { text-underline-offset: 6px; }
.site-header .nav-link:hover,
.site-header .text-button:hover { text-decoration: underline; }
.gallery-meta { font-size: 11px; line-height: 1.6; }
.gallery-title { gap: clamp(32px, 4.4vw, 64px); }
.gallery-lead { font-size: 17px; line-height: 1.8; max-width: 45ch; }
.gallery-actions .solid-button { min-height: 50px; border-radius: 6px; }
.gallery-actions .solid-button:hover,
.sales-next .solid-button:hover { background: #173e31; }
.hero-preview { border-radius: 8px; border-color: #c1ccc0; box-shadow: 0 18px 50px #183c2815; }
.preview-bar { min-height: 36px; align-items: center; font-size: 11px; }
.hero-preview-small { border-radius: 6px; box-shadow: 0 12px 26px #183c2824; }
.hero-preview-small .preview-bar { font-size: 10px; min-height: 31px; }
.gallery-description { padding-block: 22px; font-size: 13px; }
.gallery-description strong { font-weight: 700; }

.collection { padding-top: 46px; overflow-x: visible; }
.collection-heading { gap: 28px; margin-bottom: 24px; }
.collection-heading h2 { line-height: 1.16; text-wrap: balance; }
.collection-heading .small-label { font-size: 14px; letter-spacing: 0; max-width: 34ch; }
.collection-tools { align-items: center; padding-bottom: 20px; gap: 16px; }
.filters { gap: 5px; }
.filters button { font-size: 12px; border-radius: 6px; padding-inline: 14px; }
.filters button[aria-pressed="false"] { border-color: #d0d9ce; background: #fcfcf7; }
.filters button[aria-pressed="false"]:hover { border-color: #8da28f; background: #e6ede2; }
.search { min-height: 46px; background: #fcfcf7; border: 1px solid #abbcaa; border-radius: 6px; padding: 10px 13px; }
.search input { font-size: 14px; }
.search-help { font-size: 12px; }
.results { font-size: 13px; margin-block: 10px 0; }

.gallery-project,
.project-card.gallery-project:last-child:nth-child(odd),
.project-grid:has(.project-card[hidden]) .project-card.gallery-project:last-child:nth-child(odd) {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 22px 38px;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid #d4dcd3;
  border-radius: 10px;
  background: #fdfdf9;
}
.gallery-project-heading { font-size: 11px; letter-spacing: .055em; line-height: 1.6; }
.gallery-project-heading > span:first-child { color: #315d4b; font-weight: 700; }
.gallery-project .project-image-link,
.project-card.gallery-project:last-child:nth-child(odd) .project-image-link {
  border-radius: 6px;
  border-color: #bfcbbc;
  aspect-ratio: 1.5;
  padding: 0;
}
.project-browser { height: 34px; font-size: 10px; background: #e8ede5; }
.project-browser > span:first-child { letter-spacing: 2px; font-size: 8px; }
.gallery-project .project-image-link img { height: calc(100% - 34px); }
.gallery-project .project-open {
  min-height: 40px;
  min-width: 82px;
  right: 12px;
  bottom: 12px;
  padding-inline: 14px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 5px;
  background: #fdfdf9;
  box-shadow: 0 2px 9px #10291c18;
}
/* The old circular-arrow hover rotated this entire text label. */
.gallery-project .project-image-link:hover .project-open,
.gallery-project .project-image-link:focus-visible .project-open {
  transform: none;
  background: #254c3d;
  border-color: #254c3d;
  color: #fff;
}
.gallery-project .project-meta,
.project-grid:has(.project-card[hidden]) .project-card.gallery-project:last-child:nth-child(odd) .project-meta {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: .035em;
}
.gallery-project .project-title-row h3,
.project-card.gallery-project:last-child:nth-child(odd) .project-title-row h3,
.project-grid:has(.project-card[hidden]) .project-card.gallery-project:last-child:nth-child(odd) .project-title-row h3 {
  font-size: clamp(30px, 2.7vw, 38px);
  line-height: 1.2;
  letter-spacing: -.055em;
}
.gallery-project .project-title-row > a { border-radius: 50%; align-self: center; }
.gallery-project .project-title-row > a:hover { background: #edf2e8; }
.buyer-fit { font-size: 12px; margin-top: 8px; color: #45634e; }
.project-statement { font-size: 19px; line-height: 1.5; margin-top: 13px; }
.gallery-project .project-description { font-size: 14px; line-height: 1.8; max-width: 48ch; }
.gallery-project .project-tags { margin: 18px 0; gap: 7px; }
.gallery-project .project-tags li { font-size: 11px; border-radius: 4px; padding: 6px 9px; color: #455b4b; background: #edf2e8; }
.project-actions { max-width: 350px; gap: 10px; }
.project-actions .project-visit { font-size: 13px; min-height: 46px; }
.project-contact { font-size: 13px; min-height: 48px; border-radius: 5px; background: #e8eee2; border-color: #a3b69f; }
.project-contact:hover { background: #dce8d5; border-color: #769275; }

.project-rationale { border-block: 1px solid #dde3d9; margin: 17px 0; }
.project-rationale summary {
  cursor: pointer;
  min-height: 46px;
  padding: 12px 0;
  color: #315d4b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}
.project-rationale summary::marker { color: #526e58; font-size: 11px; }
.project-rationale dl { margin: 0 0 16px; font-size: 13px; line-height: 1.75; }
.project-rationale dt { font-weight: 700; color: #20352c; margin-top: 12px; }
.project-rationale dd { margin: 3px 0 0; color: #536259; }

.quality-process {
  width: min(1280px, calc(100% - 96px));
  margin: 64px auto 0;
  padding-block: 32px 16px;
  border-top: 1px solid var(--line);
}
.quality-process-heading { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px 60px; align-items: end; }
.quality-process-heading .eyebrow { grid-column: 1 / -1; color: #526550; font-size: 11px; }
.quality-process-heading h2 { font-size: 36px; font-weight: 400; line-height: 1.2; letter-spacing: -.05em; max-width: 19ch; text-wrap: balance; }
.quality-process-heading > p:not(.eyebrow) { color: #536259; font-size: 14px; line-height: 1.8; max-width: 52ch; }
.quality-process-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: 30px 0 0; gap: 18px; }
.quality-process-steps li { padding: 24px; border: 1px solid #d4dcd3; border-radius: 8px; background: #fafbf5; }
.quality-step-number { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid #bacbb5; border-radius: 50%; color: #315d4b; font-size: 11px; font-weight: 700; }
.quality-process-steps h3 { margin: 18px 0 10px; font-size: 18px; line-height: 1.4; font-weight: 700; letter-spacing: -.03em; }
.quality-process-steps p { font-size: 14px; line-height: 1.8; color: #536259; }

.sales-closing { padding: 42px; margin-top: 48px; border: 1px solid #d0dac9; border-radius: 10px; background: #e9efdf; gap: 40px; }
.sales-closing h2 { margin: 20px 0 18px; font-size: clamp(34px, 3.5vw, 46px); }
.sales-closing .eyebrow { font-size: 11px; line-height: 1.8; }
.sales-closing > div > p { font-size: 15px; }
.sales-next { width: 100%; gap: 14px; }
.sales-next .solid-button { min-height: 50px; border-radius: 5px; }
.sales-closing .sales-note { font-size: 12px; }
.sales-faq { margin-top: 48px; border-top: 0; }
.sales-faq h2 { font-size: 32px; margin-bottom: 24px; }
.sales-faq details { border-top: 1px solid var(--line); border-bottom: 0; padding-inline: 18px; }
.sales-faq details:last-child { border-bottom: 1px solid var(--line); }
.sales-faq details[open] { background: #fafbf5; }
.sales-faq summary { font-size: 15px; padding-block: 20px; }
.sales-faq summary::marker { color: #315d4b; }
.sales-faq details p { padding-left: 0; max-width: 76ch; }
.site-footer { padding-block: 32px 40px; }
body[data-brand="velnori"] dialog { border-radius: 10px; }

.embed .quality-process { display: none; }
.embed .collection { padding-top: 24px; }
.embed .gallery-project { margin-top: 20px; }

@media (min-width: 1600px) {
  .gallery-title { padding-block: 58px 64px; }
}
@media (max-width: 1100px) {
  .collection-tools { flex-wrap: wrap; }
  .search { margin-left: 0; }
  .gallery-project,
  .project-card.gallery-project:last-child:nth-child(odd),
  .project-grid:has(.project-card[hidden]) .project-card.gallery-project:last-child:nth-child(odd) { gap: 20px 28px; padding: 20px; }
  .project-statement { font-size: 18px; }
}
@media (max-width: 1000px) {
  .quality-process { width: calc(100% - 56px); }
  .gallery-lead { font-size: 15px; }
  .sales-closing { padding: 30px; }
  .quality-process-heading { gap: 16px 32px; }
  .quality-process-steps { gap: 12px; }
  .quality-process-steps li { padding: 20px; }
}
@media (max-width: 700px) {
  .gallery-meta { font-size: 10px; gap: 16px; }
  .gallery-title { padding-block: 28px 32px; gap: 30px; }
  .gallery-lead { font-size: 15px; line-height: 1.8; }
  .gallery-actions { gap: 10px 18px; }
  .gallery-actions .solid-button { font-size: 13px; }
  .gallery-actions .text-button { font-size: 13px; }
  .preview-bar { font-size: 10px; }
  .hero-preview-small .preview-bar { font-size: 9px; }
  .gallery-description { font-size: 12px; }
  .gallery-description > p:last-child { max-width: 120px; }
  .collection { padding-top: 24px; }
  .collection-heading .small-label { font-size: 13px; }
  .filters { gap: 6px; }
  .filters button { padding-inline: 11px; font-size: 12px; }
  .search { margin-top: 16px; }
  .search input { font-size: 16px; }
  .search-help { font-size: 11px; line-height: 1.7; }
  .gallery-project,
  .project-card.gallery-project:last-child:nth-child(odd),
  .project-grid:has(.project-card[hidden]) .project-card.gallery-project:last-child:nth-child(odd) {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
    margin-top: 20px;
    gap: 18px;
    border-radius: 8px;
  }
  .gallery-project-heading { font-size: 10px; gap: 14px; }
  .gallery-project-heading > span:last-child { max-width: 125px; }
  .gallery-project .project-image-link,
  .project-card.gallery-project:last-child:nth-child(odd) .project-image-link { grid-column: 1; grid-row: 2; }
  .gallery-project-copy { grid-column: 1; grid-row: 3; }
  .gallery-project .project-title-row h3,
  .project-card.gallery-project:last-child:nth-child(odd) .project-title-row h3,
  .project-grid:has(.project-card[hidden]) .project-card.gallery-project:last-child:nth-child(odd) .project-title-row h3 { font-size: 30px; }
  .gallery-project .project-title-row { flex-wrap: nowrap; gap: 8px; }
  .gallery-project .project-title-row > a { flex-shrink: 0; }
  .gallery-project .project-meta { font-size: 10px; }
  .buyer-fit { font-size: 12px; }
  .project-statement { font-size: 18px; }
  .gallery-project .project-description { font-size: 14px; }
  .project-actions { max-width: none; }
  .project-browser { height: 30px; font-size: 9px; }
  .gallery-project .project-image-link img { height: calc(100% - 30px); }
  .gallery-project .project-open { min-height: 36px; min-width: 74px; font-size: 10px; right: 9px; bottom: 9px; }
  .quality-process { width: calc(100% - 40px); margin-top: 40px; padding-top: 26px; }
  .quality-process-heading { display: block; }
  .quality-process-heading h2 { font-size: 30px; margin: 16px 0; }
  .quality-process-heading > p:not(.eyebrow) { font-size: 14px; }
  .quality-process-steps { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 24px; }
  .quality-process-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px 16px; padding: 20px; }
  .quality-step-number { grid-column: 1; grid-row: 1 / 3; }
  .quality-process-steps h3 { grid-column: 2; margin: 4px 0; font-size: 17px; }
  .quality-process-steps p { grid-column: 2; font-size: 13px; }
  .sales-closing { padding: 24px; margin-top: 32px; }
  .sales-closing h2 { font-size: 32px; }
  .sales-closing > div > p { font-size: 14px; }
  .sales-faq { margin-top: 32px; }
  .sales-faq h2 { font-size: 28px; }
  .sales-faq details { padding-inline: 8px; }
  .sales-faq summary { font-size: 14px; }
  .sales-faq details p { font-size: 14px; line-height: 1.8; }
  .embed .gallery-project { padding: 14px; }
}

/* Keep enlarged catalogue text within the available mobile columns. */
@media(max-width:760px){
 body[data-brand=velnori] .site-header, body[data-brand=velnori] .site-header nav {flex-wrap:wrap;min-width:0}
 .gallery-project-heading>span, .gallery-project .project-title-row h3, .brief-layout>* {min-width:0;overflow-wrap:anywhere}
 .project-brief {overflow-wrap:anywhere}
}
