/* KALTECH Proje Vitrini 1.8 | okunabilir kurumsal proje portfolyosu.
 * All rules scoped to the plugin. Blocksy's header/footer remain theme-owned. */
.kpv-single,.kpv-archive{--kpv-bg:#171b21;--kpv-alt:#20262e;--kpv-border:#343b45;--kpv-text:#f4f6f7;--kpv-soft:#bdc6d0;--kpv-muted:#a3afbd;--kpv-orange:#fe7203;background:var(--kpv-bg);color:var(--kpv-text);line-height:1.6;overflow-x:clip;font-family:inherit}
.kpv-single *, .kpv-archive *{box-sizing:border-box}
.kpv-single :is(h1,h2,h3,p,figure,dl),.kpv-archive :is(h1,h2,h3,p,figure){margin-top:0}
.kpv-single :is(h1,h2,h3),.kpv-archive :is(h1,h2,h3){color:var(--kpv-text);font-family:inherit;letter-spacing:-.025em;line-height:1.22}
.kpv-single a,.kpv-archive a{color:inherit;text-decoration:none}
.kpv-single a:hover,.kpv-archive a:hover{color:#fff}
.kpv-single button,.kpv-archive button{font:inherit}
.kpv-single :is(a,button,[role=button]):focus-visible,.kpv-archive :is(a,button):focus-visible{outline:2px solid var(--kpv-orange);outline-offset:4px}
.kpv-shell{width:min(1120px,calc(100% - 64px));max-width:1120px;margin-inline:auto}
.kpv-svg{display:inline-block;vertical-align:middle;flex:0 0 auto}
.kpv-eyebrow{display:inline-flex;align-items:center;gap:9px;font-size:11px;font-weight:700;letter-spacing:.12em;color:#cbd4dc;line-height:1.45;text-transform:uppercase}
.kpv-eyebrow__mark,.kpv-eyebrow i{display:inline-block;width:18px;height:2px;flex:0 0 auto;background:var(--kpv-orange)}
/* A quiet top area; the site's own transparent header may sit over it. */
.kpv-masthead{position:relative;background:linear-gradient(115deg,#111821,#1c2835);padding:120px 0 34px;border-bottom:1px solid #2f3946}
.kpv-crumbs{display:flex;align-items:center;flex-wrap:wrap;gap:10px;color:#b7c3cf;font-size:12px;margin-bottom:25px;line-height:1.6}
.kpv-crumbs a:hover{color:#ffb478}
.kpv-crumbs span[aria-current=page]{color:#edf0f4}
.kpv-masthead__bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:25px}
.kpv-masthead__heading{min-width:0}
.kpv-masthead h1{font-size:clamp(31px,3.4vw,48px);font-weight:700;line-height:1.14;margin:4px 0 12px;text-wrap:balance}
.kpv-masthead__meta{color:#bac6d2;font-size:14px;margin:0}
.kpv-masthead__all{display:flex;align-items:center;gap:8px;color:#e5ebef;border-bottom:1px solid #778495;padding-bottom:5px;font-size:12px;white-space:nowrap;margin-bottom:3px}
.kpv-masthead__all svg{height:17px;width:17px}
/* R1.7: Enerva-inspired circular slider; one heading and no visual counter. */
.kpv-slider{padding-top:30px;padding-bottom:30px;scroll-margin-top:115px}
.kpv-slider__heading{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:18px}
.kpv-slider__heading h2{font-size:clamp(23px,2.5vw,31px);margin:0;font-weight:650}
.kpv-slider__counter{font-size:13px;letter-spacing:.04em;white-space:nowrap;color:#c3ccd6;font-variant-numeric:tabular-nums}
.kpv-slider__stage{position:relative;isolation:isolate;width:min(1120px,calc(100% - 36px));margin-inline:auto;--kpv-photo-height:clamp(235px,27vw,315px)}
.kpv-slider__viewport{--kpv-slide-width:min(560px,52vw);width:100%;display:flex;align-items:stretch;gap:14px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:calc((100% - var(--kpv-slide-width))/2);scrollbar-width:none;position:relative;padding:0 calc((100% - var(--kpv-slide-width))/2);touch-action:pan-x pan-y;outline-offset:-3px;cursor:grab;user-select:none;-webkit-user-select:none}
.kpv-slider__viewport::-webkit-scrollbar{display:none}
.kpv-slide{flex:0 0 var(--kpv-slide-width);min-width:0;scroll-snap-align:center;scroll-snap-stop:always;margin:0;display:flex;flex-direction:column;justify-content:flex-start;opacity:.44;transition:opacity .28s ease}
.kpv-slide.is-active{opacity:1}
.kpv-slide__media{width:100%;height:var(--kpv-photo-height);background:#0b1016;border:1px solid #343d48;border-radius:6px;overflow:hidden;display:flex;align-items:center;justify-content:center;pointer-events:none}
.kpv-slide__media img{width:100%;height:100%;object-fit:contain;display:block;max-width:none;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;pointer-events:none}
.kpv-slide figcaption{text-align:center;min-height:18px;font-size:12px;color:#b6c0ca;margin:8px 0 0}
.kpv-slider__viewport.is-dragging{cursor:grabbing;scroll-snap-type:none!important}
.kpv-slider__nav{position:absolute;inset:0 0 auto;width:100%;height:var(--kpv-photo-height);display:flex;align-items:center;justify-content:space-between;z-index:5;pointer-events:none;padding:0 6px}
.kpv-slider__nav button{height:44px;width:44px;min-width:44px;display:grid;place-items:center;pointer-events:auto;cursor:pointer;padding:0!important;margin:0!important;border:0!important;border-radius:50%;background:#fe7203;color:#161b23;box-shadow:0 3px 12px #0005;transition:background .2s ease,transform .2s ease}
.kpv-slider__nav button:hover{background:#ffad43;transform:scale(1.04)}
.kpv-slider__nav button:active{transform:scale(.96)}
.kpv-slider__nav button svg{height:21px;width:21px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round;display:block}
.kpv-slider__credit{font-size:11px;text-align:right;color:#b0bcc7;margin:10px auto 0}
/* Fast in-page navigation, with long tab names safely scrollable on phones. */
.kpv-jump{display:flex;align-items:center;gap:28px;padding:20px 0;border-bottom:1px solid var(--kpv-border)}
.kpv-jump__title{color:#8998a7;letter-spacing:.08em;font-weight:700;font-size:10px;text-transform:uppercase;white-space:nowrap}
.kpv-jump__links{display:flex;align-items:center;flex-wrap:wrap;gap:12px 27px}
.kpv-jump__links a{font-size:13px;font-weight:600;color:#dde3e8;position:relative;text-decoration:none}
.kpv-jump__links a:hover{color:#ff9b4d}
.kpv-jump__links a:after{content:'';position:absolute;left:0;bottom:-7px;width:100%;height:2px;background:var(--kpv-orange);transform:scaleX(0);transform-origin:left;transition:transform .2s}
.kpv-jump__links a:hover:after,.kpv-jump__links a:focus-visible:after{transform:scaleX(1)}
/* Main information: a readable story column + tidy optional metadata panel. */
.kpv-overview{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,.8fr);gap:clamp(30px,5vw,74px);padding-top:54px;padding-bottom:59px;border-bottom:1px solid var(--kpv-border);scroll-margin-top:125px}
.kpv-overview--facts-only{grid-template-columns:1fr}
.kpv-overview__content{min-width:0}
.kpv-overview__content h2{font-size:clamp(26px,2.9vw,35px);margin:13px 0 22px;font-weight:700}
.kpv-prose{max-width:760px;font-size:15px;color:#cdd4dd;line-height:1.85;overflow-wrap:anywhere}
.kpv-prose p{margin:0 0 16px}
.kpv-prose :is(h2,h3,h4){font-size:19px;line-height:1.35;margin:26px 0 11px;letter-spacing:-.015em}
.kpv-prose :is(ul,ol){margin:12px 0 19px;padding-left:23px}
.kpv-prose li{margin:5px 0}
.kpv-prose a{color:#ffab70;text-decoration:underline;text-underline-offset:3px}
.kpv-prose img{height:auto;max-width:100%}
.kpv-prose .wp-block-image{margin:22px 0}
.kpv-prose .wp-block-embed iframe{max-width:100%}
.kpv-scope{margin-top:24px;padding-top:20px;border-top:1px solid var(--kpv-border)}
.kpv-scope h3{font-size:15px;margin:0 0 8px}
.kpv-scope p{color:#bac6d1;font-size:14px;line-height:1.75;margin:0}
.kpv-details{align-self:start;background:var(--kpv-alt);border:1px solid #39434f;border-top:3px solid var(--kpv-orange);padding:23px 25px 15px;border-radius:3px}
.kpv-details h2{font-size:18px;letter-spacing:-.01em;font-weight:700;margin:0 0 7px}
.kpv-details__list{margin:0}
.kpv-details__item{display:grid;grid-template-columns:1fr;gap:3px;padding:12px 0;border-bottom:1px solid #38424e}
.kpv-details__item:last-child{border-bottom:0}
.kpv-details dt{font-size:11px;font-weight:600;letter-spacing:.03em;color:#b0bcc9}
.kpv-details dd{margin:0;font-size:14px;color:#fff;font-weight:600;line-height:1.55;overflow-wrap:anywhere}
.kpv-overview--facts-only .kpv-details{padding:20px 24px}
.kpv-overview--facts-only .kpv-details__list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.kpv-overview--facts-only .kpv-details__item{border:none}
/* A restrained visual narrative: consistent image sizes, ample touch targets. */
.kpv-gallery,.kpv-video,.kpv-products{padding-top:54px;padding-bottom:60px;border-bottom:1px solid var(--kpv-border);scroll-margin-top:125px}
.kpv-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin-bottom:23px}
.kpv-section-heading h2{font-size:clamp(25px,2.75vw,33px);font-weight:700;margin:10px 0 0}
.kpv-section-heading__hint{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:#b7c3cf;white-space:nowrap;margin-bottom:3px}
.kpv-section-heading__hint svg{width:15px;height:15px;color:var(--kpv-orange)}
.kpv-gallery__body .wp-block-gallery,.kpv-gallery__body .wp-block-gallery.has-nested-images{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px!important;margin:0!important;align-items:stretch}
.kpv-gallery__body .wp-block-gallery figure.wp-block-image,.kpv-gallery__body .wp-block-gallery.has-nested-images figure.wp-block-image{display:block;position:relative;width:100%!important;max-width:none!important;min-width:0;margin:0!important;float:none!important;aspect-ratio:1.5;border-radius:3px;overflow:hidden;background:#303b47;cursor:zoom-in}
.kpv-gallery__body .wp-block-gallery figure img,.kpv-gallery__body .wp-block-gallery.has-nested-images figure.wp-block-image img{width:100%;height:100%;max-height:none;display:block;object-fit:cover;transition:transform .25s,filter .25s}
.kpv-gallery__body figure.wp-block-image:hover img{transform:scale(1.035);filter:brightness(.89)}
.kpv-gallery__body figure.wp-block-image:after{content:'+';pointer-events:none;position:absolute;top:10px;right:10px;display:grid;place-items:center;height:32px;width:32px;border-radius:50%;background:rgba(14,20,27,.8);color:#fff;font-size:22px;font-weight:400;opacity:0;transition:opacity .18s}
.kpv-gallery__body figure.wp-block-image:hover:after,.kpv-gallery__body figure.wp-block-image:focus-visible:after{opacity:1}
.kpv-gallery__body figure.wp-block-image figcaption{position:absolute;left:0;right:0;bottom:0;margin:0;padding:25px 13px 10px;background:linear-gradient(transparent,rgba(9,13,19,.88));color:#fff;font-size:11px;line-height:1.5}
.kpv-gallery__body figure.wp-block-image a{display:block;width:100%;height:100%}
.kpv-video__embed{max-width:850px;margin:0 auto;background:#06090d;aspect-ratio:16/9;overflow:hidden;border-radius:4px}
.kpv-video__embed iframe,.kpv-video__embed video{width:100%!important;height:100%!important;max-width:none!important;display:block;border:0}
.kpv-action{display:inline-flex;align-items:center;gap:9px;font-size:13px;color:#e5ebf0;border-bottom:1px solid var(--kpv-orange);padding-bottom:6px;white-space:nowrap}
.kpv-action svg{height:17px;width:17px;color:var(--kpv-orange)}
/* Product, similar-project and archive cards. */
.kpv-products__grid,.kpv-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}
.kpv-product{display:block;background:#212932;border:1px solid #3a4551;border-radius:3px;overflow:hidden;transition:border-color .2s,transform .2s}
.kpv-product:hover{border-color:#8493a3;transform:translateY(-2px)}
.kpv-product__thumb{height:195px;display:grid;place-items:center;background:#303943;color:#a4afba;letter-spacing:.11em;overflow:hidden;font-size:12px}
.kpv-product__thumb img{width:100%;height:100%;object-fit:contain;display:block;transition:transform .2s}
.kpv-product:hover img{transform:scale(1.03)}
.kpv-product__bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px}
.kpv-product__bottom span{font-size:10px;color:#abb9c7;letter-spacing:.09em}
.kpv-product__bottom h3{font-size:17px;margin:7px 0 0}
.kpv-product__bottom svg{color:var(--kpv-orange)}
.kpv-document{padding-top:27px}
.kpv-document a{display:flex;align-items:center;gap:12px;border:1px solid var(--kpv-border);padding:14px 18px;width:max-content;max-width:100%;font-size:13px}
.kpv-document svg:last-child{margin-left:10px;color:var(--kpv-orange)}
.kpv-footer-area{padding-top:48px;padding-bottom:70px}
.kpv-share{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 0 30px;border-bottom:1px solid var(--kpv-border);position:relative}
.kpv-share__label{display:flex;flex-direction:column;gap:3px}
.kpv-share__label span{color:#9eacb8;font-size:10px;letter-spacing:.1em}
.kpv-share__label strong{font-size:15px;color:#f3f6f9}
.kpv-share__buttons{display:flex;align-items:center;gap:9px}
.kpv-share__buttons a,.kpv-share__buttons button{height:42px;width:42px;display:grid;place-items:center;background:#222b35;border:1px solid #53606e;border-radius:50%;color:#f5f7f9;cursor:pointer;padding:0;margin:0;transition:background .2s,border-color .2s}
.kpv-share__buttons :is(a,button):hover,.kpv-share__buttons .is-copied{background:var(--kpv-orange);border-color:var(--kpv-orange);color:#111820}
.kpv-share__buttons svg{width:18px;height:18px}
.kpv-share__status{position:absolute;right:0;bottom:6px;color:#f9bb91;font-size:10px}
.kpv-related{padding-top:45px}
.kpv-related .kpv-section-heading{margin-bottom:23px}
.kpv-card{min-width:0;margin:0}
.kpv-card__image{position:relative;display:block;aspect-ratio:1.55;overflow:hidden;border-radius:3px;background:#2b3540}
.kpv-card__photo{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s}
.kpv-card__image:hover .kpv-card__photo{transform:scale(1.035)}
.kpv-card__arrow{position:absolute;right:13px;bottom:13px;background:var(--kpv-orange);color:#141c24;border-radius:50%;width:34px;height:34px;display:grid;place-items:center;font-size:21px;opacity:0;transition:opacity .2s}
.kpv-card__image:hover .kpv-card__arrow{opacity:1}
.kpv-card__fallback{height:100%;width:100%;display:grid;place-items:center;color:#a3adba;letter-spacing:.12em}
.kpv-card__copy{padding:15px 0 0}
.kpv-card__copy .kpv-eyebrow{font-size:10px;color:#ffa667;letter-spacing:.055em}
.kpv-card__title{font-size:18px;line-height:1.3;margin:7px 0}
.kpv-card__meta{color:#aebbc8;font-size:12px;margin:0}
/* Portfolio archive: retains existing shortcode, taxonomy filters and pagination. */
.kpv-archive__intro{position:relative;padding:139px 0 58px;background:#1a2734;isolation:isolate}
.kpv-archive__photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.15;z-index:-1}
.kpv-archive__intro h1{font-size:clamp(36px,4.5vw,62px);margin:12px 0 10px}
.kpv-archive__intro p{max-width:650px;font-size:15px;color:#cbd3db;margin:0}
.kpv-archive__main{padding-top:33px;padding-bottom:70px}
.kpv-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 30px}
.kpv-filters a{font-size:12px;border:1px solid #465463;border-radius:3px;padding:10px 14px;color:#d6dde5}
.kpv-filters a:hover,.kpv-filters a.is-active{background:var(--kpv-orange);border-color:var(--kpv-orange);color:#11171e}
.kpv-archive .kpv-grid{row-gap:32px}
.kpv-pagination{display:flex;justify-content:center;flex-wrap:wrap;gap:7px;margin-top:44px}
.kpv-pagination :is(a,span){padding:8px 12px;border:1px solid #52606e;font-size:12px;color:#eff3f6}
.kpv-pagination .current{border-color:var(--kpv-orange);color:#ffac6e}
.kpv-empty{color:var(--kpv-muted)}
/* Accessible lightweight full-screen photograph viewer. */
@media(max-width:960px){.kpv-shell{width:calc(100% - 50px)}.kpv-overview{grid-template-columns:minmax(0,1.3fr) minmax(250px,.8fr);gap:32px}.kpv-products__grid,.kpv-grid{gap:15px}.kpv-overview--facts-only .kpv-details__list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:740px){.kpv-masthead{padding-top:110px}.kpv-masthead h1{font-size:clamp(30px,6vw,43px)}.kpv-overview{display:flex;flex-direction:column;gap:25px}.kpv-overview__content{order:1}.kpv-details{order:0}.kpv-details__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 20px}.kpv-details__item:nth-last-child(-n+2){border-bottom:0}.kpv-gallery__body .wp-block-gallery,.kpv-gallery__body .wp-block-gallery.has-nested-images{grid-template-columns:repeat(2,minmax(0,1fr))}.kpv-products__grid,.kpv-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kpv-overview--facts-only .kpv-details__list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.kpv-shell{width:calc(100% - 34px)}.kpv-masthead{padding:100px 0 24px}.kpv-crumbs{font-size:10px;gap:7px;margin-bottom:21px}.kpv-crumbs span[aria-current=page]{max-width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kpv-masthead h1{font-size:clamp(29px,7.5vw,35px);margin:10px 0 8px}.kpv-masthead__meta{font-size:12px}.kpv-masthead__all{display:none}.kpv-eyebrow{font-size:10px;letter-spacing:.09em}.kpv-cover-wrap{padding-top:14px}.kpv-cover{height:auto;aspect-ratio:1.42}.kpv-jump{display:block;padding:14px 0}.kpv-jump__title{display:block;margin-bottom:9px}.kpv-jump__links{display:flex;overflow-x:auto;flex-wrap:nowrap;gap:23px;padding:0 0 5px;scrollbar-width:thin}.kpv-jump__links a{font-size:12px;white-space:nowrap}.kpv-overview{padding-top:32px;padding-bottom:38px;gap:27px}.kpv-overview__content h2{font-size:26px;margin:11px 0 17px}.kpv-prose{font-size:14px;line-height:1.78}.kpv-details{padding:18px 17px 12px}.kpv-details h2{font-size:17px}.kpv-details__list{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}.kpv-details__item{padding:10px 0}.kpv-details dt{font-size:10px}.kpv-details dd{font-size:12px}.kpv-gallery,.kpv-video,.kpv-products{padding-top:39px;padding-bottom:43px}.kpv-section-heading{margin-bottom:18px}.kpv-section-heading h2{font-size:26px;margin-top:8px}.kpv-section-heading__hint{display:none}.kpv-gallery__body .wp-block-gallery,.kpv-gallery__body .wp-block-gallery.has-nested-images{grid-template-columns:1fr;gap:12px!important}.kpv-gallery__body .wp-block-gallery figure.wp-block-image,.kpv-gallery__body .wp-block-gallery.has-nested-images figure.wp-block-image{aspect-ratio:1.6}.kpv-products__grid,.kpv-grid{grid-template-columns:1fr;gap:21px}.kpv-product__thumb{height:190px}.kpv-footer-area{padding-top:34px;padding-bottom:56px}.kpv-share{flex-wrap:wrap;padding-bottom:32px}.kpv-share__buttons{gap:8px}.kpv-related{padding-top:36px}.kpv-card__image{aspect-ratio:1.5}.kpv-card__title{font-size:17px}.kpv-archive__intro{padding:115px 0 46px}.kpv-archive__intro h1{font-size:39px}.kpv-archive__main{padding-top:25px}}
@media(max-width:370px){.kpv-shell{width:calc(100% - 28px)}.kpv-details__list{grid-template-columns:1fr}.kpv-details__item:nth-last-child(-n+2){border-bottom:1px solid #38424e}.kpv-details__item:last-child{border-bottom:0}.kpv-share__label strong{font-size:14px}}
@media(prefers-reduced-motion:reduce){.kpv-single *,.kpv-archive *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
/* Mobile flex overview must stretch its optional fact panel even on very narrow screens. */
@media(max-width:740px){.kpv-overview .kpv-details{align-self:stretch;width:100%}}

/* R1.8 Enerva-style: compact 16:9 central photograph and side previews. */
@media(max-width:740px){
 .kpv-slider{padding-top:22px;padding-bottom:26px}
 .kpv-slider__stage{width:100%;--kpv-photo-height:clamp(205px,58vw,290px)}
 .kpv-slider__viewport{--kpv-slide-width:80vw;gap:11px}
 .kpv-slider__nav{padding-inline:5px}
 .kpv-slider__nav button{height:42px;width:42px;min-width:42px}
 .kpv-slider__nav button svg{height:20px;width:20px}
}
@media(max-width:560px){
 .kpv-slider__heading h2{font-size:23px}
 .kpv-slider__stage{--kpv-photo-height:clamp(185px,58vw,255px)}
 .kpv-slider__viewport{--kpv-slide-width:82vw;gap:9px}
 .kpv-slider__nav button{height:40px;width:40px;min-width:40px}
}
@media(prefers-reduced-motion:reduce){.kpv-slider__viewport{scroll-behavior:auto!important}}

/* R1.8 polish: project-return link is intentionally at the end, not near the title. */
.kpv-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.kpv-back-projects{margin-top:36px;padding-top:21px;border-top:1px solid var(--kpv-border);text-align:left}
.kpv-back-projects a{font-size:13px;font-weight:600;color:#d8e1e9;display:inline-flex;align-items:center;gap:9px;min-height:44px;transition:color .18s ease}
.kpv-back-projects a:hover,.kpv-back-projects a:focus-visible{color:var(--kpv-orange)}
.kpv-section-heading>h2{margin:0}
.kpv-overview__content>h2{margin-top:0}
@media(max-width:560px){.kpv-masthead{padding-top:100px}.kpv-slider__heading{margin-bottom:14px}.kpv-slider__heading h2{font-size:23px}.kpv-back-projects{margin-top:26px}}


/* R1.10 — Kaltech Projeler archive. Images and card text are sourced from WordPress.
   This section is scoped to the archive; R1.8 single-project slider is unchanged. */
.kpv-archive{overflow-x:clip;background:#171b21;--kpv-bg:#171b21;--kpv-orange:#fe7203;min-height:60vh}
.kpv-portfolio-hero{height:clamp(310px,24vw,365px);padding:112px 0 40px;background:linear-gradient(118deg,#151d28 0%,#1e2935 100%);position:relative;isolation:isolate;display:flex;align-items:flex-end;border:0;overflow:hidden}
.kpv-portfolio-hero__media,.kpv-portfolio-hero__shade{position:absolute;inset:0;pointer-events:none}
.kpv-portfolio-hero__media{z-index:-2}
.kpv-portfolio-hero__image{display:block;width:100%;height:100%;object-fit:cover;object-position:center 48%;max-width:none}
.kpv-portfolio-hero__shade{z-index:-1;background:linear-gradient(90deg,rgba(7,12,20,.84),rgba(7,12,20,.43) 62%,rgba(7,12,20,.27)),linear-gradient(0deg,rgba(11,17,24,.52),transparent 74%)}
.kpv-portfolio-hero:not(.has-image) .kpv-portfolio-hero__shade{background:radial-gradient(ellipse at 80% 12%,rgba(254,114,3,.12),transparent 50%),linear-gradient(125deg,#121c2a 0%,#203044 100%)}
.kpv-portfolio-hero__inner{position:relative;z-index:1}
.kpv-portfolio-hero h1{font-size:clamp(38px,4.25vw,58px);font-weight:690;line-height:1.07;letter-spacing:-.035em;margin:0 0 16px;color:#fff;text-shadow:0 2px 12px #0004}
.kpv-portfolio-hero p{font-size:clamp(14px,1.15vw,16px);line-height:1.65;color:#f0f3f6;max-width:520px;margin:0;text-shadow:0 2px 6px #0005}
.kpv-portfolio-content{background:#171b21;padding:40px 0 92px}
.kpv-portfolio-content .kpv-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:33px 22px}
.kpv-portfolio-content .kpv-grid--pair{grid-template-columns:repeat(2,minmax(0,1fr))}
.kpv-portfolio-content .kpv-grid--single{grid-template-columns:minmax(0,1fr)}
.kpv-portfolio-content .kpv-card{min-width:0;display:flex;flex-direction:column;gap:0}
.kpv-portfolio-content .kpv-card__image{display:block;aspect-ratio:1.55;border-radius:7px;position:relative;overflow:hidden;background:#252f3a}
.kpv-portfolio-content .kpv-card__photo{width:100%;height:100%;object-fit:cover;display:block;transition:transform .42s ease}
.kpv-portfolio-content .kpv-card__image:hover .kpv-card__photo{transform:scale(1.03)}
.kpv-portfolio-content .kpv-card__image-shade{pointer-events:none;position:absolute;inset:0;border:1px solid #ffffff12;border-radius:inherit}
.kpv-portfolio-content .kpv-card__copy{padding:18px 0 0;min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.kpv-portfolio-content .kpv-card__category{font-size:12px;color:#ffae78;font-weight:600;margin:0 0 10px;letter-spacing:.006em}
.kpv-portfolio-content .kpv-card__title{font-size:clamp(19px,1.85vw,25px);font-weight:680;line-height:1.25;margin:0 0 9px}
.kpv-portfolio-content .kpv-card__title a:hover{color:#ffb082}
.kpv-portfolio-content .kpv-card__meta{font-size:13px;color:#bfccd8;line-height:1.5;margin:0 0 12px}
.kpv-portfolio-content .kpv-card__summary{font-size:14px;color:#cbd4df;line-height:1.72;max-width:410px;margin:0 0 15px}
.kpv-portfolio-content .kpv-card__more{display:inline-flex;align-items:center;gap:9px;min-height:34px;color:#ffa568;font-size:13px;font-weight:650;margin-top:3px;text-decoration:none}
.kpv-portfolio-content .kpv-card__more svg{width:17px;height:17px;transition:transform .2s}
.kpv-portfolio-content .kpv-card__more:hover svg{transform:translateX(4px)}
/* One project: a large editorial feature without a surrounding faux-card box. */
.kpv-portfolio-content .kpv-grid--single .kpv-card{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(300px,.82fr);align-items:center;gap:clamp(28px,4.5vw,64px);min-height:310px}
.kpv-portfolio-content .kpv-grid--single .kpv-card__image{aspect-ratio:1.78;min-height:0;border-radius:7px}
.kpv-portfolio-content .kpv-grid--single .kpv-card__copy{padding:18px 0}
.kpv-portfolio-content .kpv-grid--single .kpv-card__category{margin-bottom:16px}
.kpv-portfolio-content .kpv-grid--single .kpv-card__title{font-size:clamp(26px,2.5vw,36px);margin-bottom:13px}
.kpv-portfolio-content .kpv-grid--single .kpv-card__summary{max-width:410px}
.kpv-portfolio-content .kpv-filters{margin:0 0 25px;gap:9px;display:flex;flex-wrap:wrap}
.kpv-portfolio-content .kpv-filters a{background:transparent;border:1px solid #4a5763;border-radius:5px;color:#dbe2e9;min-height:40px;display:inline-flex;align-items:center;padding:8px 15px;font-size:13px;transition:background .2s,border-color .2s}
.kpv-portfolio-content .kpv-filters a.is-active,.kpv-portfolio-content .kpv-filters a:hover{border-color:var(--kpv-orange);background:var(--kpv-orange);color:#151a20}
.kpv-portfolio-content .kpv-pagination{margin-top:44px}
.kpv-archive .kpv-empty{font-size:15px;color:#cbd4df}
@media(max-width:900px){
 .kpv-portfolio-content .kpv-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 18px}
 .kpv-portfolio-content .kpv-grid--single{grid-template-columns:minmax(0,1fr)}
 .kpv-portfolio-content .kpv-grid--single .kpv-card{grid-template-columns:minmax(0,1.12fr) minmax(220px,.88fr);gap:24px}
 .kpv-portfolio-content .kpv-grid--single .kpv-card__copy{padding:5px 0}
}
@media(max-width:680px){
 .kpv-portfolio-hero{height:290px;padding:96px 0 33px}
 .kpv-portfolio-hero h1{font-size:clamp(34px,9vw,43px);margin-bottom:11px}
 .kpv-portfolio-hero p{font-size:13px;max-width:320px}
 .kpv-portfolio-hero__shade{background:linear-gradient(0deg,rgba(9,15,22,.83),rgba(9,15,22,.24) 94%)}
 .kpv-portfolio-content{padding:29px 0 64px}
 .kpv-portfolio-content .kpv-grid,.kpv-portfolio-content .kpv-grid--pair{grid-template-columns:1fr}
 .kpv-portfolio-content .kpv-grid--single .kpv-card{display:flex;gap:0;min-height:0}
 .kpv-portfolio-content .kpv-grid--single .kpv-card__image{width:100%;aspect-ratio:1.58}
 .kpv-portfolio-content .kpv-grid--single .kpv-card__copy{padding:19px 0 0}
 .kpv-portfolio-content .kpv-grid--single .kpv-card__title{font-size:clamp(23px,6vw,28px)}
 .kpv-portfolio-content .kpv-filters{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:8px}
 .kpv-portfolio-content .kpv-filters a{white-space:nowrap;flex:0 0 auto}
}
@media(prefers-reduced-motion:reduce){.kpv-portfolio-content .kpv-card__photo,.kpv-portfolio-content .kpv-card__more svg{transition:none}}


/* R1.11 — PROJECT ARCHIVE CARDS ONLY.
   The generated generic Projeler banner is independent of real project thumbnails.
   The single-project slider and related-project cards intentionally retain R1.8 styling. */
.kpv-portfolio-content {padding:44px 0 100px}
.kpv-portfolio-content .kpv-grid,
.kpv-portfolio-content .kpv-grid--pair,
.kpv-portfolio-content .kpv-grid--single {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:34px 23px;align-items:start}
.kpv-portfolio-content .kpv-grid--pair{grid-template-columns:repeat(2,minmax(0,1fr));max-width:760px}
.kpv-portfolio-content .kpv-grid--single{grid-template-columns:minmax(0,495px);max-width:495px}
.kpv-portfolio-content .kpv-card--archive,
.kpv-portfolio-content .kpv-grid--single .kpv-card--archive{
 display:flex;flex-direction:column;gap:0;min-width:0;min-height:0;align-items:stretch;
 background:transparent;border:0;border-radius:0;overflow:visible;
}
.kpv-portfolio-content .kpv-card--archive .kpv-card__image,
.kpv-portfolio-content .kpv-grid--single .kpv-card--archive .kpv-card__image{
 display:block;position:relative;width:100%;min-height:0;aspect-ratio:1.49;
 border-radius:8px;overflow:hidden;background:#24303c;
}
.kpv-portfolio-content .kpv-card--archive .kpv-card__photo{
 display:block;width:100%;height:100%;max-width:none;object-fit:cover;
 transition:transform .36s ease,filter .36s ease;
}
.kpv-portfolio-content .kpv-card--archive:hover .kpv-card__photo,
.kpv-portfolio-content .kpv-card--archive:focus-within .kpv-card__photo{transform:scale(1.025)}
.kpv-portfolio-content .kpv-card--archive .kpv-card__image-shade{
 position:absolute;inset:0;border-radius:inherit;
 border:1px solid rgba(255,255,255,.13);
 background:linear-gradient(180deg,transparent 68%,rgba(10,18,25,.09));
}
.kpv-portfolio-content .kpv-card--archive .kpv-card__copy,
.kpv-portfolio-content .kpv-grid--single .kpv-card--archive .kpv-card__copy{
 display:flex;flex-direction:column;align-items:flex-start;position:relative;
 padding:16px 59px 0 1px;min-width:0;gap:0;
}
.kpv-portfolio-content .kpv-card--archive .kpv-card__category,
.kpv-portfolio-content .kpv-grid--single .kpv-card--archive .kpv-card__category{
 margin:0 0 6px;color:#f6a66b;letter-spacing:.035em;font-size:11px;
 font-weight:650;text-transform:none;line-height:1.5;
}
.kpv-portfolio-content .kpv-card--archive .kpv-card__title,
.kpv-portfolio-content .kpv-grid--single .kpv-card--archive .kpv-card__title{
 color:#f9fafb;font-size:clamp(18px,1.55vw,22px);font-weight:650;line-height:1.35;
 margin:0 0 5px;letter-spacing:-.018em;
}
.kpv-portfolio-content .kpv-card--archive .kpv-card__title a:hover{color:#ffad76}
.kpv-portfolio-content .kpv-card--archive .kpv-card__meta{
 margin:0;line-height:1.5;font-size:12px;font-weight:400;color:#adb9c5;
}
.kpv-portfolio-content .kpv-card--archive .kpv-card__summary{display:none}
.kpv-portfolio-content .kpv-card--archive .kpv-card__more{
 display:grid;place-items:center;position:absolute;right:0;top:17px;
 width:40px;height:40px;min-height:40px;padding:0;margin:0;
 background:#25313d;border:1px solid #50606f;color:#eef3f7;
 border-radius:50%;transition:background .18s,border-color .18s,transform .18s;
}
.kpv-portfolio-content .kpv-card--archive .kpv-card__more svg{height:19px;width:19px;stroke-width:1.75;transition:none}
.kpv-portfolio-content .kpv-card--archive .kpv-card__more:hover,
.kpv-portfolio-content .kpv-card--archive .kpv-card__more:focus-visible{
 background:#fe7203;border-color:#fe7203;color:#151a20;transform:translate(1px,-1px)
}
.kpv-portfolio-content .kpv-card--archive .kpv-card__more:hover svg{transform:none}
.kpv-portfolio-content .kpv-filters{margin:0 0 27px}
.kpv-portfolio-content .kpv-filters a{border-radius:20px}
@media(max-width:950px){
 .kpv-portfolio-content .kpv-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .kpv-portfolio-content .kpv-grid--single{grid-template-columns:minmax(0,495px)}
}
@media(max-width:680px){
 .kpv-portfolio-content{padding:30px 0 65px}
 .kpv-portfolio-content .kpv-grid,
 .kpv-portfolio-content .kpv-grid--pair,
 .kpv-portfolio-content .kpv-grid--single{grid-template-columns:minmax(0,1fr);gap:27px;max-width:none}
 .kpv-portfolio-content .kpv-grid--single .kpv-card--archive{display:flex;gap:0}
 .kpv-portfolio-content .kpv-grid--single .kpv-card--archive .kpv-card__image{aspect-ratio:1.49}
 .kpv-portfolio-content .kpv-card--archive .kpv-card__copy,
 .kpv-portfolio-content .kpv-grid--single .kpv-card--archive .kpv-card__copy{padding:15px 52px 0 0}
 .kpv-portfolio-content .kpv-card--archive .kpv-card__title,
 .kpv-portfolio-content .kpv-grid--single .kpv-card--archive .kpv-card__title{font-size:19px}
 .kpv-portfolio-content .kpv-card--archive .kpv-card__more{width:40px;height:40px;top:12px}
}
@media(prefers-reduced-motion:reduce){
 .kpv-portfolio-content .kpv-card--archive .kpv-card__photo,
 .kpv-portfolio-content .kpv-card--archive .kpv-card__more{transition:none}
}
/* Center the single genuine project card until the portfolio grows. */
.kpv-portfolio-content .kpv-grid--single{margin-inline:auto}


/* R1.12 — Kaltech project archive photography-first, full-card overlay.
   Archive only: preserves the R1.8 detail slider and related-project cards. */
.kpv-portfolio-content .kpv-card--archive.kpv-card--overlay,
.kpv-portfolio-content .kpv-grid--single .kpv-card--archive.kpv-card--overlay {
  display:block; position:relative; min-width:0; min-height:0; margin:0;
  padding:0; background:transparent; border:0; overflow:visible;
}
.kpv-portfolio-content .kpv-card--overlay .kpv-card__cover-link,
.kpv-portfolio-content .kpv-grid--single .kpv-card--overlay .kpv-card__cover-link {
  display:block; width:100%; position:relative; overflow:hidden;
  aspect-ratio:1.48; border-radius:7px;
  background:#28323d; text-decoration:none; color:#fff;
  isolation:isolate; box-shadow:none;
}
.kpv-portfolio-content .kpv-card--overlay .kpv-card__photo {
  display:block; width:100%; height:100%; object-fit:cover; max-width:none;
  transition:transform .42s cubic-bezier(.2,.65,.3,1);
}
.kpv-portfolio-content .kpv-card--overlay:hover .kpv-card__photo,
.kpv-portfolio-content .kpv-card--overlay:focus-within .kpv-card__photo {transform:scale(1.035)}
/* R1.14 — edge-to-edge text protection. Keep the dark fade anchored to the
   CARD, not the text, and remove the inherited pale 1px border/inner shadow. */
.kpv-portfolio-content .kpv-card--overlay .kpv-card__image-shade {
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(to bottom,rgba(5,11,18,.36),transparent 41%);
  border:0; border-radius:inherit; box-shadow:none;
}
/* The tail extends 2px below the photo box so subpixel rounding/radius cannot
   leave a bright strip under the project name on any screen size. */
.kpv-portfolio-content .kpv-card--overlay .kpv-card__cover-link::after {
  content:""; position:absolute; z-index:1; pointer-events:none;
  left:-2px; right:-2px; bottom:-2px; height:calc(66% + 2px);
  background:linear-gradient(to top,
    #070e17 0%,
    rgba(7,14,23,.98) 18%,
    rgba(7,14,23,.82) 43%,
    rgba(7,14,23,.40) 72%,
    rgba(7,14,23,0) 100%);
}
.kpv-portfolio-content .kpv-card--overlay .kpv-card__top-meta {
  position:absolute; left:clamp(16px,2vw,23px); right:12px; top:clamp(15px,2vw,20px);
  z-index:2; display:flex; align-items:center; flex-wrap:wrap;
  gap:7px 17px; color:#fff; font-size:12px; font-weight:550; line-height:1.4;
  opacity:1; transform:translateY(0);
  transition:opacity .24s ease,transform .24s ease;
}
.kpv-portfolio-content .kpv-card--overlay .kpv-card__top-item {
  display:inline-flex; gap:6px; align-items:center; min-width:0; color:inherit;
  text-shadow:0 1px 5px rgba(0,0,0,.68);
}
.kpv-portfolio-content .kpv-card--overlay .kpv-card__top-item svg {
  color:#ff983e; width:15px; height:15px; min-width:15px; stroke-width:1.9;
}
.kpv-portfolio-content .kpv-card--overlay .kpv-card__bottom-copy {
  position:absolute; bottom:clamp(18px,2vw,23px); left:clamp(16px,2vw,23px);
  right:clamp(15px,2vw,22px); z-index:2;
  display:flex; flex-direction:column; align-items:flex-start; gap:7px;
}
.kpv-portfolio-content .kpv-card--overlay .kpv-card__category,
.kpv-portfolio-content .kpv-grid--single .kpv-card--overlay .kpv-card__category {
  display:block; margin:0; color:#ffad67; font-weight:700; font-size:11px;
  line-height:1.45; letter-spacing:.035em; text-transform:none;
  text-shadow:0 1px 4px rgba(0,0,0,.55);
}
.kpv-portfolio-content .kpv-card--overlay .kpv-card__title,
.kpv-portfolio-content .kpv-grid--single .kpv-card--overlay .kpv-card__title {
  display:block; max-width:100%; margin:0; font-size:clamp(19px,1.65vw,24px);
  font-weight:670; line-height:1.28; color:#fff; letter-spacing:-.015em;
  text-shadow:0 2px 9px rgba(0,0,0,.62);
}
.kpv-portfolio-content .kpv-card--overlay .kpv-card__cover-link:focus-visible {
  outline:3px solid #ff963e; outline-offset:4px;
}
/* Desktop hover keeps the photograph uncluttered until interaction.
   Touch and keyboard users always have access to the location and date. */
@media (hover:hover) and (pointer:fine) {
 .kpv-portfolio-content .kpv-card--overlay .kpv-card__top-meta {opacity:0;transform:translateY(-7px)}
 .kpv-portfolio-content .kpv-card--overlay:hover .kpv-card__top-meta,
 .kpv-portfolio-content .kpv-card--overlay:focus-within .kpv-card__top-meta {
   opacity:1; transform:translateY(0)
 }
}
@media (max-width:680px) {
 .kpv-portfolio-content .kpv-grid--single .kpv-card--overlay .kpv-card__cover-link,
 .kpv-portfolio-content .kpv-card--overlay .kpv-card__cover-link {aspect-ratio:1.36}
 .kpv-portfolio-content .kpv-card--overlay .kpv-card__top-meta {font-size:11.5px;gap:7px 12px}
 .kpv-portfolio-content .kpv-card--overlay .kpv-card__title,
 .kpv-portfolio-content .kpv-grid--single .kpv-card--overlay .kpv-card__title {font-size:clamp(19px,5vw,23px)}
}
@media (max-width:350px) {
 .kpv-portfolio-content .kpv-card--overlay .kpv-card__top-meta {gap:5px 10px;font-size:11px}
 .kpv-portfolio-content .kpv-card--overlay .kpv-card__top-item svg {width:13px;height:13px;min-width:13px}
}
@media (prefers-reduced-motion:reduce){
 .kpv-portfolio-content .kpv-card--overlay .kpv-card__photo,
 .kpv-portfolio-content .kpv-card--overlay .kpv-card__top-meta {transition:none}
}
