/* Projects showcase (2026-11-02). Loaded only by the projects pages, not part of the site
   bundle: the rest of the site does not pay for it. */

.h-orange-in { color: var(--orange); }
.pj-hero { min-height: 520px; }
.pj-hero-one { min-height: 460px; }
.pj-crumbs { display: flex; gap: 10px; align-items: center; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; margin-bottom: 14px; }
.pj-crumbs a { color: var(--orange); text-decoration: none; }
.pj-crumbs a:hover { text-decoration: underline; }

/* category chips: one row that scrolls sideways on phones, sticks under the header */
/* under the slim header of a scrolled page (v2-pages.css: 82 px, phones 76, + its 3 px orange line) */
.pj-filter { position: sticky; top: 85px; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid #e3e7ec; }
.pj-filter-in { display: flex; gap: 10px; overflow-x: auto; padding-top: 14px; padding-bottom: 14px; scrollbar-width: none; }
.pj-filter-in::-webkit-scrollbar { display: none; }
.pj-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid #cfd6de; color: var(--navy); font: 600 15px/1 var(--body); text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.pj-chip span { font-size: 12px; background: #eef1f4; color: #4a5866; border-radius: 999px; padding: 3px 7px; }
.pj-chip:hover { border-color: var(--navy); }
.pj-chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.pj-chip.on span { background: var(--orange); color: #111; }

/* featured project: the slider large, next to its story */
.pj-featured { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 60px; padding-bottom: 20px; }
.pj-feat-img { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; }
.pj-feat-img img { width: 100%; height: 100%; object-fit: cover; }
.pj-feat-text h2 { font: 800 clamp(26px, 2.6vw, 38px)/1.15 var(--head); color: var(--navy); margin: 10px 0 14px; }
.pj-feat-text p { font-size: 18px; line-height: 1.65; margin-bottom: 18px; }
.pj-facts-inline { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 26px; }
.pj-facts-inline li { background: #eef1f4; color: var(--navy); border-radius: 6px; padding: 6px 12px; font-weight: 600; font-size: 14px; }
.pj-facts-light li { background: rgba(255,255,255,.14); color: #fff; }

/* the grid of cards */
.pj-list { padding-top: 40px; padding-bottom: 70px; }
.pj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.pj-card { border-radius: 14px; background: #fff; box-shadow: 0 2px 10px rgba(19,45,68,.09); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.pj-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(19,45,68,.16); }
.pj-card.pj-new { animation: pj-in .45s ease both; }
@keyframes pj-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pj-card-link { display: block; color: inherit; text-decoration: none; }
.pj-card-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.pj-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pj-card:hover .pj-card-img img { transform: scale(1.05); }
/* on hover the Before wipes in from the left over the After, like a curtain, and wipes back
   out when the pointer leaves (02.11.2026: a fade was too quiet for the comparison) */
.pj-card-before { position: absolute; inset: 0; background: center / cover no-repeat; clip-path: inset(0 100% 0 0); transition: clip-path .75s cubic-bezier(.65, 0, .35, 1); }
.pj-card-before b { position: absolute; left: 12px; bottom: 12px; background: rgba(9,24,39,.82); color: #fff; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 4px; opacity: 0; transition: opacity .3s .35s; }
.pj-card-before.ready.show { clip-path: inset(0 0 0 0); }
.pj-card-before.ready.show b { opacity: 1; }
.pj-badge { position: absolute; top: 12px; left: 12px; background: var(--orange); color: #111; font: 700 12px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 7px 10px; border-radius: 4px; }
.pj-card-body { display: block; padding: 16px 18px 20px; }
.pj-cat { display: inline-block; color: #8a5a00; font: 700 12px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.pj-card-title { display: block; font: 700 19px/1.3 var(--head); color: var(--navy); margin: 6px 0 6px; }
.pj-meta { display: block; color: #5b6b79; font-size: 14px; }
.pj-more { text-align: center; margin-top: 40px; }
.pj-count { margin-top: 12px; color: #5b6b79; font-size: 14px; }
.pj-empty { font-size: 18px; text-align: center; padding: 40px 0; }

/* before / after slider */
.ba { margin: 0 0 28px; }
.ba-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; user-select: none; touch-action: pan-y; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.35); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--orange); box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.ba-knob::before, .ba-knob::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border: 6px solid transparent; }
.ba-knob::before { left: 7px; border-right-color: #111; }
.ba-knob::after { right: 7px; border-left-color: #111; }
.ba-tag { position: absolute; top: 14px; background: rgba(9,24,39,.82); color: #fff; font: 700 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 4px; pointer-events: none; }
.ba-tag-b { left: 14px; }
.ba-tag-a { right: 14px; background: var(--orange); color: #111; }
/* the range input covers the frame invisibly: dragging anywhere moves the line */
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba-range:focus-visible + .ba-line, .ba-frame:focus-within .ba-knob { outline: 3px solid #fff; outline-offset: 3px; }
.ba figcaption { margin-top: 12px; color: #4a5866; font-size: 15px; text-align: center; }
/* the show (projects.js): while the line glides it glows, and the label of a side that is
   fully hidden fades out */
.ba-line, .ba-knob, .ba-tag { transition: box-shadow .3s, opacity .3s; }
.ba.is-anim .ba-line { box-shadow: 0 0 22px rgba(255,255,255,.95); }
.ba.is-anim .ba-knob { box-shadow: 0 0 0 7px rgba(255,255,255,.35), 0 4px 14px rgba(0,0,0,.3); }
.ba-all-before .ba-tag-a, .ba-all-after .ba-tag-b { opacity: 0; }
/* Before / After buttons: a pill that sits on the bottom edge of the frame */
.ba-seg { position: relative; z-index: 2; display: flex; justify-content: center; margin-top: -23px; }
.ba-seg-in { display: inline-flex; gap: 2px; background: #fff; border-radius: 999px; padding: 4px; box-shadow: 0 6px 20px rgba(19,45,68,.2); }
.ba-seg-b { border: 0; background: transparent; color: var(--navy); font: 700 13px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 11px 20px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.ba-seg-b:hover { background: var(--navy); color: #fff; }
.ba-seg-b:focus-visible { outline: 3px solid var(--orange); outline-offset: 1px; }

/* one project */
.pj-one { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 50px; align-items: start; padding-top: 50px; padding-bottom: 40px; }
.pj-h { font: 800 clamp(24px, 2.2vw, 32px)/1.2 var(--head); color: var(--navy); margin: 10px 0 16px; }
.pj-hint { color: #5b6b79; margin: -6px 0 18px; }
.pj-story p { font-size: 18px; line-height: 1.75; margin-bottom: 18px; }
.pj-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 30px; }
.pj-gal-item { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; }
.pj-gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pj-gal-item:hover img { transform: scale(1.05); }
.pj-side { position: sticky; top: 105px; }
.pj-side-card { background: var(--navy); color: #fff; border-radius: 14px; padding: 26px; }
.pj-side-card h2 { color: #fff; font: 800 22px/1.2 var(--head); margin-bottom: 14px; }
.pj-side-card dl { margin: 0 0 22px; }
.pj-side-card dt { color: var(--orange); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; margin-top: 12px; }
.pj-side-card dd { margin: 4px 0 0; line-height: 1.5; }
.pj-side-card dd a { color: #fff; }
.pj-side-card .btn { width: 100%; min-width: 0; text-align: center; }
.pj-side-call { display: block; text-align: center; color: #fff; margin-top: 12px; font-weight: 600; }
.pj-related { padding-bottom: 70px; }

@media (max-width: 900px) {
  .pj-filter { top: 79px; }
  .pj-featured, .pj-one { grid-template-columns: 1fr; gap: 26px; }
  .pj-featured { padding-top: 34px; }
  .pj-side { position: static; }
  .pj-hero { min-height: 440px; }
  .pj-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (min-width: 560px) and (max-width: 900px) { .pj-grid { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .pj-card, .pj-card-img img, .pj-gal-item img, .pj-card-before, .pj-card-before b, .ba-line, .ba-knob, .ba-tag { transition: none; }
  .pj-card.pj-new { animation: none; }
}
.pj-demo { background: #fff3cd; color: #5c4400; text-align: center; font-weight: 700; padding: 10px 16px; }

/* Projects by city (04.11.2026): city cards on /projects, slider rows on /projects/<city>. */
.pj-cities { padding: 52px 16px 10px; }
.pj-cities h2 { font: 800 clamp(24px, 2.4vw, 34px)/1.15 var(--head); color: var(--navy); margin: 6px 0 22px; }
.pj-city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.pj-city { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; color: #fff; text-decoration: none; box-shadow: 0 6px 22px rgba(0,0,0,.10); }
.pj-city img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pj-city:hover img { transform: scale(1.05); }
.pj-city-body { position: absolute; inset: auto 0 0 0; padding: 44px 16px 14px; background: linear-gradient(to top, rgba(10,20,40,.86), rgba(10,20,40,0)); display: flex; flex-direction: column; gap: 2px; }
.pj-city-name { font: 800 22px/1.1 var(--head); }
.pj-city-count { font-size: 13.5px; opacity: .9; }
.pj-crumb { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.pj-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.pj-tags i { font-style: normal; font-size: 12.5px; padding: 3px 9px; border-radius: 999px; background: #eef2f7; color: #334155; }
.pj-card-body .pj-tags { margin-top: 8px; }
.pj-rows { padding: 36px 16px 20px; display: flex; flex-direction: column; gap: 46px; }
.pj-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 34px; align-items: center; }
.pj-row-flip .pj-row-media { order: 2; }
.pj-row-text h2 { font: 800 clamp(22px, 2.2vw, 30px)/1.15 var(--head); color: var(--navy); margin: 6px 0 12px; }
.pj-row-text p { font-size: 17px; line-height: 1.6; }
.pj-row .ba { margin: 0; }
.btn-sm { padding: 10px 18px; font-size: 15px; margin-top: 14px; }
.pj-svc-band { background: var(--navy); color: #fff; padding: 56px 16px; margin-top: 30px; }
.pj-svc-band h2, .pj-steps-band h2 { font: 800 clamp(22px, 2.4vw, 32px)/1.15 var(--head); margin: 6px 0 22px; }
.pj-svc-band .kicker { color: var(--orange); }
.pj-svc-band h2 { color: #fff; }
.pj-svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.pj-svc { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 12px; background: rgba(255,255,255,.07); color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.12); transition: background .2s; }
.pj-svc:hover { background: rgba(255,255,255,.13); }
.pj-svc b { font: 700 18px/1.25 var(--head); }
.pj-svc span { font-size: 15px; line-height: 1.55; opacity: .9; }
.pj-steps-band { padding: 56px 16px; background: #f4f6fa; }
.pj-steps-band h2 { color: var(--navy); }
.pj-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: none; }
.pj-steps li { background: #fff; border-radius: 12px; padding: 20px; font-size: 15.5px; line-height: 1.55; box-shadow: 0 4px 16px rgba(0,0,0,.05); }
.pj-steps li b { display: block; color: var(--navy); margin-bottom: 6px; font-size: 17px; }
@media (max-width: 860px) {
  .pj-row { grid-template-columns: 1fr; gap: 18px; }
  .pj-row-flip .pj-row-media { order: 0; }
  .pj-rows { gap: 36px; }
}

.pj-cities-lead { margin: -12px 0 20px; color: #475569; font-size: 17px; }

/* City pages (17.11.2026): real local jobs as before/after sliders, two per row on computers */
.city-jobs { padding: 64px 0 24px; }
.city-jobs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px 28px; margin-top: 28px; }
.city-job .ba { margin: 0; }
.city-job h3 { font-size: 1.15rem; margin: 14px 0 6px; }
.city-job h3 a { color: inherit; }
.city-job p { margin: 0; color: #4a5866; line-height: 1.55; }
.city-job-meta { color: #7a8794; font-size: .9em; white-space: nowrap; }
