/* Project and review pages extend the shared VenPro typography and navigation. */
.portfolio-page { --soft: #f5f8fc; --rule: #d8e2ef; }
.portfolio-page [hidden] { display: none !important; }
.wrap { width: min(88%, 75rem); margin-inline: auto; }
.portfolio-page button { font: inherit; color: inherit; }
.portfolio-page button:not(:disabled) { cursor: pointer; }
.portfolio-page :is(a,button,summary):focus-visible { outline: 3px solid #155ac1; outline-offset: 3px; }
.portfolio-page .home-nav > a[aria-current="page"] { text-decoration: underline; text-underline-offset: .45em; text-decoration-thickness: 2px; }
.ui-icon { width: 1.12em; height: 1.12em; flex: none; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.section-pad { padding-block: var(--section-space); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--link); font-size: 1rem; font-weight: 600; text-decoration: underline; text-underline-offset: .27em; text-decoration-color: #819ac5; }
.text-link:hover { color: #12397e; text-decoration-color: currentColor; }
#main > .reviews-hero { --hero-focus: 50% 61%; }
.crew-feature .ui-icon { width: 1rem; height: 1rem; }
.work-feature { display: grid; grid-template-rows: minmax(0,1fr) auto; }
.work-feature::after { content: none; }
.work-feature figcaption { position: static; max-width: none; padding: .35rem .85rem; border-radius: 0; text-align: right; }
.media-open { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border-radius: .5rem; border: 0; background: #e8edf3; }
.media-open img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero-sequence {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,2.05fr);
  grid-template-rows: repeat(2,minmax(0,1fr));
  grid-template-areas: "before result" "progress result";
  gap: .25rem;
  min-height: 0;
}
.hero-sequence .media-open { min-height: 0; border-radius: 0; }
.hero-sequence .hero-result img { object-position: center 52%; }
.portfolio-page .hero-sequence button:focus-visible { z-index: 1; outline: 3px solid white; outline-offset: -4px; }
.hero-sequence .hero-before { grid-area: before; }
.hero-sequence .hero-progress { grid-area: progress; }
.hero-sequence .hero-progress img { object-position: center 48%; }
.hero-sequence .hero-result { grid-area: result; }
.photo-pair .media-open img, .card-photo img { transition: transform .3s ease; }
@media (hover:hover) { .photo-pair .media-open:hover img, .card-photo:hover img { transform: scale(1.025); } }
.phase { position: absolute; bottom: .75rem; left: .75rem; display: inline-flex; align-items: center; min-height: 1.7rem; padding: .16rem .63rem; border-radius: .25rem; color: #fff; background: #152243ed; font-size: .83rem; line-height: 1.3; font-weight: 600; }
.hero-result .phase { background: #fff; color: var(--ink); }
.open-symbol { position: absolute; right: .68rem; top: .68rem; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1px solid #ffffff70; border-radius: 50%; background: #fff; color: #173352; box-shadow: 0 1px 7px #17274120; }
.photo-pair .open-symbol { opacity: 0; transition: opacity .16s; }
.photo-pair button:focus-visible .open-symbol, .photo-pair button:hover .open-symbol { opacity: 1; }
#main .gallery-section .section-heading, #main .changes .section-heading { margin-bottom: 1.55rem; }
.gallery-controls { display: flex; justify-content: center; align-items: center; gap: .45rem; flex-wrap: wrap; }
.comparison-link { color: var(--link); text-decoration: underline; text-underline-offset: .2em; }
.gallery-controls { margin-bottom: clamp(1.5rem,3vw,2.4rem); }
.gallery-controls button, .outline-button { min-height: 44px; border: 1px solid #c3cfe0; background: white; border-radius: .375rem; padding: .5rem 1.15rem; font-size: 1rem; font-weight: 600; }
.gallery-controls button:hover, .outline-button:hover { border-color: var(--link); color: var(--link); }
.gallery-controls button[aria-pressed="true"] { background: var(--link); border-color: var(--link); color: white; }
#project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1.8rem,3.2vw,2.9rem) clamp(1rem,2vw,1.8rem); }
.project-card { min-width: 0; }
.card-photo { aspect-ratio: 1.44; }
.card-photo img { object-position: 50% 55%; }
#interior-video .card-photo img { object-position: 50% 12%; }
#exterior-video .card-photo img { object-position: 50% 2%; }
.project-card[id] { scroll-margin-top: 8rem; }
.card-info { padding: .92rem .05rem 0; }
.card-topline { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; color: var(--link); font-size: .9rem; font-weight: 600; line-height: 1.4; }
.card-topline span span { color: #9aa9bd; padding-inline: .15rem; }
.card-topline .file-count { font-weight: 400; color: var(--muted); white-space: nowrap; font-size: .85rem; }
#main .card-info h3 { margin-top: .25rem; }
.project-title { display: inline-block; border: 0; padding: .15rem 0 .25rem; font: inherit; font-weight: inherit; line-height: inherit; text-align: left; background: none; }
.project-title:hover { color: var(--link); text-decoration: underline; text-underline-offset: .16em; }
.card-info p { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.load-row { display: flex; justify-content: center; }
#load-more { margin-top: 2.3rem; color: var(--link); min-height: 50px; padding: .6rem 1.5rem; font-weight: 600; border-color: #a8bbd7; }
.changes { background: var(--soft); border-block: 1px solid var(--rule); }
.feature-picker { display: flex; justify-content: center; align-items: center; gap: .85rem; margin: 0 auto 2rem; }
.feature-picker label { color: var(--ink); font-weight: 600; }
.feature-picker select { font: inherit; color: var(--ink); background-color: white; min-height: 48px; max-width: 100%; padding: .4rem .8rem; border: 1px solid #a8bbd7; border-radius: .4rem; }
.feature-picker select:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
#transformations { scroll-margin-top: 5.5rem; }
.portrait-comparison { max-width: 58rem; margin-inline: auto; }
.portrait-comparison .compare-photo { aspect-ratio: 1.05; }
.portrait-comparison .compare-photo img { object-fit: contain; background: #e9eef4; }
.feature-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1.2rem; margin-bottom: 1rem; }
.feature-heading span { display: flex; align-items: center; gap: .35rem; font-size: .95rem; color: var(--muted); }
.compare-frames { display: grid; grid-auto-columns: minmax(0,1fr); grid-auto-flow: column; gap: clamp(.75rem,2vw,1.6rem); }
.compare-photo { aspect-ratio: 1.45; }
#feature-commercial-glass-partition .compare-photo, #feature-carved-double-doors .compare-photo { aspect-ratio: 1.1; }
#feature-carved-double-doors .compare-photo img, #feature-commercial-glass-partition .compare-photo img { object-fit: contain; background: #e9eef4; }
.compare-photo .phase { font-size: .95rem; padding: .3rem .8rem; }
.compare-frames figcaption { margin: .65rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.invitation { background: var(--pale); border-top: 1px solid var(--rule); }
.invitation-inner { padding-block: clamp(2.5rem,4.4vw,4rem); display: flex; justify-content: space-between; align-items: center; gap: 1.5rem 4rem; }
.invitation h2 { color: var(--link); }
.invitation p { margin-top: .65rem; max-width: 51ch; color: var(--muted); }
.invitation .text-link { margin-top: .3rem; }
.invite-actions { display: flex; flex-wrap: wrap; align-items: center; flex-direction: column; flex-shrink: 0; gap: 0; margin-top: 0; }
.project-viewer { width: min(64rem,96vw); max-height: 96vh; max-height: 96dvh; margin: auto; padding: 0; color: #fff; background: #16223a; border: 1px solid #465671; border-radius: .7rem; overscroll-behavior: contain; }
.project-viewer::backdrop { background: #0b1628e8; }
html:has(.project-viewer[open]) { overflow: hidden; }
.viewer-shell { display: grid; grid-template-rows: auto minmax(0,1fr) auto auto; max-height: 94vh; max-height: 94dvh; }
.viewer-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .7rem 1rem .7rem 1.3rem; }
#viewer-meta, #viewer-position { font-size: .9rem; line-height: 1.4; color: #cfdbed; margin: 0; }
#viewer-title { margin: 0; font-size: 1.3rem; font-weight: 600; line-height: 1.3; }
.viewer-stage { display: grid; place-items: center; overflow: hidden; min-height: 4rem; background: #0b1425; }
.viewer-stage img, .viewer-stage video { display:block; width:100%; height: min(67vh,42rem); height: min(67dvh,42rem); object-fit: contain; }
.project-viewer button { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid #657795; border-radius: .4rem; background: #23344f; color: white; }
.project-viewer button:hover { background: #344c72; }
.project-viewer button:focus-visible { outline-color: white; outline-offset: 2px; }
.viewer-thumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; padding: .6rem .5rem 0; }
.viewer-thumbs button { width: 3.45rem; height: 2.75rem; padding: 2px; border: 2px solid transparent; border-radius: .3rem; background: transparent; overflow: hidden; }
.viewer-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: .12rem; }
.viewer-thumbs button[aria-pressed="true"] { border-color: white; }
.viewer-foot { display: flex; align-items: center; gap: .85rem; justify-content: space-between; padding: .8rem 1rem 1rem; }
.viewer-info { text-align: center; min-width: 0; }
#viewer-caption { margin: 0 auto .2rem; font-size: 1rem; line-height: 1.45; }
@media (max-width: 960px) { #project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 750px) {
  .invitation-inner { align-items: flex-start; }
}
@media (max-width: 620px) {
  #project-grid { grid-template-columns: 1fr; }
  .gallery-controls { justify-content: center; gap: .4rem; }
  .gallery-controls button { padding-inline: .9rem; }
  .card-photo { aspect-ratio: 1.52; }
  .feature-picker { flex-direction: column; align-items: stretch; gap: .3rem; max-width: 24rem; margin-bottom: 1.4rem; }
  .feature-heading { display: block; }
  .feature-heading span { margin-top: .2rem; }
  .compare-frames { grid-auto-flow: row; gap: 1.35rem; }
  .compare-photo { aspect-ratio: 1.4; }
  .invitation-inner { display: block; }
  .invite-actions { align-items: flex-start; flex-direction: row; gap: .2rem 1.2rem; flex-wrap: wrap; margin-top: .85rem; }
  .viewer-head { padding: .55rem .65rem; }
  .viewer-foot { gap: .4rem; padding: .55rem .55rem .7rem; }
  #viewer-caption { font-size: .95rem; }
  .phase { bottom: .45rem; left: .45rem; }
}
@media (max-height: 530px) { .viewer-stage img, .viewer-stage video { height: 48dvh; } .viewer-shell { overflow-y: auto; } }
@media (forced-colors: active) { [aria-pressed="true"] { outline: 2px solid Highlight; } }
