/* PREFABRIC project archive and detail pages. */
/* Keep all link states inside project content on the theme palette. */
:is(.projects-page,.single-project-page) a,
:is(.projects-page,.single-project-page) a:is(:visited,:hover,:focus,:active){color:var(--project-link-color,var(--rv-color-dark))}
:is(.project-cta,.project-archive-cta) a{--project-link-color:var(--rv-color-primary)}
:is(.projects-page,.single-project-page) a:is(.button--accent,.button--light){--project-link-color:var(--rv-color-dark)}
:is(.projects-page,.single-project-page) a.button--dark{--project-link-color:var(--rv-color-background)}
.project-cta a.button--light{background:var(--rv-color-background)}
:is(.projects-page,.single-project-page) a:focus-visible{outline:3px solid var(--rv-color-primary);outline-offset:3px}
:is(.project-cta,.project-archive-cta) a:not(.button):is(:hover,:focus){--project-link-color:var(--rv-color-primary-hover)}
.single-project-page .project-cta__actions a:not(.button){color:var(--project-link-color,var(--rv-color-primary))}
.project-breadcrumb{display:flex;flex-wrap:wrap;gap:8px;color:var(--rv-color-text-subtle);font-size:11px}.project-breadcrumb a{color:var(--rv-color-text-muted)}.project-breadcrumb-wrap{padding-top:28px}.project-archive-hero{padding:34px 0 58px;border-bottom:1px solid var(--rv-color-border);background:linear-gradient(135deg,var(--rv-color-background) 35%,var(--rv-color-surface))}.project-archive-hero .project-breadcrumb{margin-bottom:42px}.project-archive-hero__heading{display:flex;align-items:end;justify-content:space-between;gap:60px}.project-archive-hero h1{max-width:850px;margin:10px 0 0;font-size:clamp(40px,5vw,68px);line-height:1.02;letter-spacing:-.05em}.project-archive-hero__heading p{max-width:720px;margin:18px 0 0;color:var(--rv-color-text-muted);font-size:14px;line-height:1.7}.project-archive-hero__heading>strong{display:flex;flex-direction:column;align-items:flex-end;flex:0 0 auto;color:var(--rv-color-dark);font-size:42px;line-height:1}.project-archive-hero__heading>strong span{margin-top:7px;color:var(--rv-color-text-muted);font-size:11px;font-weight:var(--rv-font-weight-medium);text-transform:uppercase;letter-spacing:.12em}.project-archive-content{padding-block:34px 86px}.project-filters{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr)) auto auto;align-items:end;gap:14px;margin-bottom:42px;padding:18px;border:1px solid var(--rv-color-border);border-radius:var(--radius-lg);background:var(--rv-color-background)}.project-filters label{display:grid;gap:7px}.project-filters label span{color:var(--rv-color-text-muted);font-size:10px;font-weight:var(--rv-font-weight-bold);text-transform:uppercase;letter-spacing:.08em}.project-filters select{width:100%;min-height:45px;padding:0 38px 0 13px;border:1px solid var(--rv-color-border);border-radius:8px;background:var(--rv-color-background);color:var(--rv-color-dark);font:inherit;font-size:12px}.project-filters .button{min-height:45px}.project-filters__clear{align-self:center;color:var(--rv-color-text-muted);font-size:11px;text-decoration:underline;text-underline-offset:3px}.project-grid{display:grid;gap:34px 22px}.project-grid--archive{grid-template-columns:repeat(3,minmax(0,1fr))}.project-card{display:block;color:var(--rv-color-dark)}.project-card__image{position:relative;overflow:hidden;aspect-ratio:4/3;border-radius:var(--radius-lg);background:var(--rv-color-surface)}.project-card__image img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease}.project-card:hover .project-card__image img{transform:scale(1.025)}.project-card__image>span{position:absolute;top:16px;right:16px;display:grid;width:40px;height:40px;place-items:center;border-radius:50%;background:rgb(255 255 255/.94);font-size:17px;transition:transform var(--transition),background-color var(--transition)}.project-card:hover .project-card__image>span{transform:rotate(45deg);background:var(--rv-color-primary)}.project-card__image>b{position:absolute;left:14px;bottom:14px;padding:7px 9px;border-radius:999px;background:var(--rv-color-primary);font-size:9px;text-transform:uppercase;letter-spacing:.08em}.project-card__body{position:relative;padding:18px 2px 0}.project-card__location{margin:0 0 7px;color:var(--rv-color-primary);font-size:10px;font-weight:var(--rv-font-weight-bold);text-transform:uppercase;letter-spacing:.08em}.project-card__body h3{margin:0;padding-right:70px;font-size:18px;line-height:1.25;letter-spacing:-.025em}.project-card__meta{margin:10px 0 0;color:var(--rv-color-text-muted);font-size:11.5px;line-height:1.55}.project-card time{position:absolute;right:2px;top:21px;color:var(--rv-color-text-subtle);font-size:10px}.project-empty{padding:70px 30px;border-radius:var(--radius-lg);background:var(--rv-color-surface);text-align:center}.project-empty h2{margin:0;font-size:28px}.project-empty p{margin:12px 0 24px;color:var(--rv-color-text-muted)}.project-pagination{margin-top:48px}.project-pagination ul{display:flex;justify-content:center;gap:7px;margin:0;padding:0;list-style:none}.project-pagination a,.project-pagination span{display:grid;width:40px;height:40px;place-items:center;border:1px solid var(--rv-color-border);border-radius:50%;font-size:12px}.project-pagination .current{border-color:var(--rv-color-primary);background:var(--rv-color-primary)}.project-archive-cta{padding-block:58px;background:var(--rv-color-dark);color:var(--rv-color-on-dark)}.project-archive-cta .site-container{display:flex;align-items:center;justify-content:space-between;gap:50px}.project-archive-cta h2{max-width:750px;margin:8px 0 0;color:var(--rv-color-on-dark);font-size:clamp(30px,4vw,48px);line-height:1.06}

.project-hero{padding-block:28px 82px}.project-hero__heading{display:flex;align-items:end;justify-content:space-between;gap:50px;margin-bottom:34px}.project-hero__heading>div{max-width:900px}.project-hero__location{margin:0;color:var(--rv-color-primary);font-size:11px;font-weight:var(--rv-font-weight-bold);text-transform:uppercase;letter-spacing:.12em}.project-hero h1{margin:12px 0 0;font-size:clamp(42px,5.5vw,76px);line-height:.98;letter-spacing:-.055em}.project-hero__heading>div>p:last-child{max-width:760px;margin:19px 0 0;color:var(--rv-color-text-muted);font-size:15px;line-height:1.7}.project-hero__heading>span{flex:0 0 auto;padding:9px 13px;border-radius:999px;background:var(--rv-color-primary);font-size:10px;font-weight:var(--rv-font-weight-bold);text-transform:uppercase;letter-spacing:.08em}.project-hero__image{overflow:hidden;border-radius:var(--radius-lg);background:var(--rv-color-surface);aspect-ratio:16/7}.project-hero__image img{width:100%;height:100%;object-fit:cover}.project-specs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));margin:18px 0 0;padding:0;border:1px solid var(--rv-color-border);border-radius:var(--radius-lg);overflow:hidden}.project-specs div{padding:20px 17px;background:var(--rv-color-background)}.project-specs div+div{border-left:1px solid var(--rv-color-border)}.project-specs dt{color:var(--rv-color-text-subtle);font-size:9.5px;text-transform:uppercase;letter-spacing:.06em}.project-specs dd{margin:7px 0 0;color:var(--rv-color-dark);font-size:13px;font-weight:var(--rv-font-weight-bold);line-height:1.35}.project-story{background:var(--rv-color-surface)}.project-story__grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);align-items:start;gap:80px}.project-story h2{margin:8px 0 24px;font-size:clamp(30px,3.5vw,48px);line-height:1.08}.project-story__content{color:var(--rv-color-text-muted);font-size:15px;line-height:1.85}.project-story__content>*:first-child{margin-top:0}.project-story aside{padding:30px;border-radius:var(--radius-lg);background:var(--rv-color-background)}.project-story aside h2{margin:0 0 20px;font-size:22px}.project-story aside ul{display:grid;grid-template-columns:1fr;gap:12px;margin:0;padding:0;list-style:none}.project-story aside li{position:relative;padding:12px 12px 12px 37px;border-radius:8px;background:var(--rv-color-surface);color:var(--rv-color-text-muted);font-size:12px;line-height:1.5}.project-story aside li::before{position:absolute;left:14px;color:var(--rv-color-primary);font-weight:var(--rv-font-weight-bold);content:"✓"}.project-gallery-section .section-heading{margin-bottom:34px}.project-gallery__main{display:block;width:100%;padding:0;overflow:hidden;border:0;border-radius:var(--radius-lg);background:var(--rv-color-surface);cursor:zoom-in;aspect-ratio:16/8}.project-gallery__main img{width:100%;height:100%;object-fit:cover}.project-gallery__thumbs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:10px}.project-gallery__thumbs button{height:104px;padding:2px;overflow:hidden;border:2px solid transparent;border-radius:9px;background:var(--rv-color-background)}.project-gallery__thumbs button.is-active{border-color:var(--rv-color-primary)}.project-gallery__thumbs img{width:100%;height:100%;object-fit:cover}.product-lightbox{position:fixed;z-index:10000;inset:0;display:grid;grid-template-columns:auto minmax(0,1200px) auto;align-items:center;gap:18px;padding:30px;background:rgb(4 7 9/.94)}.product-lightbox[hidden]{display:none}.product-lightbox img{max-width:100%;max-height:88vh;margin:auto;object-fit:contain}.product-lightbox button{width:46px;height:46px;border:1px solid rgb(255 255 255/.24);border-radius:50%;background:rgb(255 255 255/.1);color:var(--rv-color-on-dark);font-size:22px}.product-lightbox__close{position:absolute;top:22px;right:22px}.has-lightbox{overflow:hidden}.project-cta{padding-block:74px;background:var(--rv-color-dark);color:var(--rv-color-on-dark)}.project-cta .site-container{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:70px}.project-cta h2{max-width:780px;margin:8px 0 0;color:var(--rv-color-on-dark);font-size:clamp(34px,4.5vw,56px);line-height:1.04}.project-cta p:not(.section-kicker){max-width:690px;color:rgb(255 255 255/.62);line-height:1.7}.project-cta__actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;min-width:360px}.project-cta__actions>a:last-child{grid-column:1/-1;color:var(--rv-color-on-dark);text-align:center;font-size:18px;font-weight:var(--rv-font-weight-bold)}.related-projects .section-heading{align-items:end;margin-bottom:38px}.project-grid--related{grid-template-columns:repeat(4,minmax(0,1fr))}

@media(max-width:1199px){.project-grid--archive{grid-template-columns:repeat(2,minmax(0,1fr))}.project-filters{grid-template-columns:repeat(3,1fr)}.project-filters .button{grid-column:1/3}.project-specs{grid-template-columns:repeat(3,1fr)}.project-specs div:nth-child(4){border-left:0}.project-specs div:nth-child(n+4){border-top:1px solid var(--rv-color-border)}.project-story__grid{gap:45px}.project-grid--related{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.project-archive-hero__heading,.project-hero__heading{align-items:flex-start;flex-direction:column}.project-archive-hero__heading>strong{align-items:flex-start}.project-story__grid,.project-cta .site-container{grid-template-columns:1fr}.project-cta__actions{min-width:0;max-width:460px}.project-gallery__thumbs{grid-template-columns:repeat(4,1fr)}}
@media(max-width:700px){.project-archive-hero{padding:28px 0 42px}.project-archive-hero .project-breadcrumb{margin-bottom:30px}.project-archive-hero h1{font-size:39px}.project-archive-content{padding-block:24px 60px}.project-filters{grid-template-columns:1fr;gap:10px;padding:14px}.project-filters label{gap:5px}.project-filters select{min-height:42px}.project-filters .button{grid-column:auto;min-height:43px}.project-filters__clear{text-align:center}.project-grid--archive,.project-grid--related{grid-template-columns:1fr}.project-card__body h3{font-size:20px}.project-archive-cta .site-container{align-items:flex-start;flex-direction:column}.project-hero{padding-block:20px 60px}.project-hero h1{font-size:40px}.project-hero__heading{margin-bottom:24px}.project-hero__image{aspect-ratio:4/3;border-radius:12px}.project-specs{grid-template-columns:repeat(2,1fr)}.project-specs div:nth-child(odd){border-left:0}.project-specs div:nth-child(even){border-left:1px solid var(--rv-color-border)}.project-specs div:nth-child(n+3){border-top:1px solid var(--rv-color-border)}.project-story__grid{gap:28px}.project-gallery__main{aspect-ratio:4/3;border-radius:12px}.project-gallery__thumbs{display:flex;overflow:auto}.project-gallery__thumbs button{flex:0 0 90px;height:68px}.product-lightbox{grid-template-columns:1fr;padding:18px}.product-lightbox__prev,.product-lightbox__next{position:absolute;bottom:20px}.product-lightbox__prev{left:20px}.product-lightbox__next{right:20px}.project-cta__actions{grid-template-columns:1fr}.project-cta__actions>a:last-child{grid-column:auto}.related-projects .section-heading{align-items:flex-start}}
:is(.projects-page,.single-project-page) a.button--accent{--project-link-color:var(--rv-btn-primary-text)}
.project-card:hover .project-card__image>span,.project-card__image>b,.project-pagination .current,.project-hero__heading>span{color:var(--rv-color-on-primary)}

/* v1.0.2 Project Single polish; product gallery remains unchanged. */
.project-gallery-section{padding-block:clamp(64px,6vw,96px)}
.project-gallery__grid{display:flex;flex-wrap:wrap;justify-content:center;gap:22px}
.project-gallery__item{display:block;flex:0 0 calc((100% - 44px)/3);width:100%;padding:0;overflow:hidden;border:0;border-radius:var(--radius-lg);background:var(--rv-color-surface);cursor:zoom-in;aspect-ratio:16/10}
.project-gallery__item:first-child:nth-last-child(2),.project-gallery__item:first-child:nth-last-child(2)~.project-gallery__item{flex-basis:calc((100% - 22px)/2)}
.project-gallery__item:only-child{flex:0 1 900px;max-width:900px}
.project-gallery__item img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;transition:transform var(--transition)}
.project-gallery__item:is(:hover,:focus-visible) img{transform:scale(1.015)}
.related-projects{padding-block:clamp(64px,6vw,96px)}
.project-grid--related{align-items:stretch}
.related-projects .project-card{display:grid;grid-template-rows:auto 1fr}
.related-projects .project-card__body{display:grid;grid-template-rows:auto auto auto;align-content:start}
.related-projects .project-card__body h3{min-height:45px}
@media(max-width:1023.98px){.project-gallery__item{flex-basis:calc((100% - 22px)/2)}.project-gallery__item:only-child{flex-basis:min(900px,100%)}}
@media(max-width:767.98px){.project-gallery-section,.related-projects{padding-block:64px}.project-gallery__grid{gap:14px}.project-gallery__item,.project-gallery__item:first-child:nth-last-child(2),.project-gallery__item:first-child:nth-last-child(2)~.project-gallery__item{flex-basis:100%;border-radius:12px}.related-projects .project-card__body h3{min-height:0}}
@media(prefers-reduced-motion:reduce){.project-gallery__item img{transition:none}.project-gallery__item:is(:hover,:focus-visible) img{transform:none}}
