/* Scoped overview styles: project details and the shared header/footer keep their styles. */
body.pf-showcase { margin: 0; background: #f5f5ef; color: #12383b; font-family: Poppins, system-ui, sans-serif; }
.pf-showcase main { --ps-ink: #12383b; --ps-paper: #f5f5ef; --ps-lime: #dcf593; --ps-line: #d7ded6; }
.pf-showcase main *, .pf-showcase main *::before, .pf-showcase main *::after { box-sizing: border-box; }
.pf-showcase main a { color: inherit; text-decoration: none; }
.pf-showcase main button { font: inherit; cursor: pointer; }
.ps-shell { width: min(1440px, 90%); margin-inline: auto; }
.ps-skip { position: fixed; left: 20px; top: -120px; z-index: 2000; padding: 16px 24px; background: white; color: #12383b; }
.ps-skip:focus { top: 12px; }
.pf-showcase main :is(a, button):focus-visible { outline: 3px solid #398cbb; outline-offset: 6px; }
.ps-eyebrow { font-size: 11px; line-height: 1.6; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 26px; }
.ps-dot { display: inline-block; width: 7px; height: 7px; background: var(--ps-lime); border-radius: 50%; margin-right: 8px; }
.ps-hero { position: relative; overflow: hidden; background: #103b3e; color: var(--ps-paper); padding-top: clamp(150px, 18vh, 220px); }
.ps-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 83% 48%, #28625d 0%, transparent 58%); }
.ps-hero-layout { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: center; min-height: 580px; padding-block: 30px 64px; }
.ps-hero-copy { position: relative; z-index: 2; }
.ps-hero h1 { font-size: clamp(48px, 5.7vw, 88px); line-height: 1.08; font-weight: 500; letter-spacing: -.065em; margin: 0 0 28px; }
.ps-hero h1 > span { color: var(--ps-lime); }
.ps-intro { color: #c6d5ce; font-size: clamp(15px, 1.18vw, 18px); line-height: 1.85; max-width: 460px; margin: 0 0 36px; }
.ps-action { display: inline-flex; gap: 28px; align-items: center; justify-content: space-between; border: 1px solid var(--ps-ink); border-radius: 99px; padding: 15px 24px; font-size: 13px; font-weight: 500; background: transparent; color: var(--ps-ink); transition: background .2s, color .2s; }
.ps-action span { font-size: 23px; line-height: 1; }
.ps-action:hover { background: var(--ps-ink); color: var(--ps-paper); }
.pf-showcase main .ps-action-light { background: var(--ps-lime); border-color: var(--ps-lime); color: var(--ps-ink); }
.pf-showcase main .ps-action-light:hover { background: #efffc3; }
.ps-hero-bottom { position: relative; display: flex; justify-content: space-between; gap: 20px; padding-block: 23px; border-top: 1px solid #ffffff26; color: #c6d5ce; font-size: 10px; letter-spacing: .06em; }
.ps-stage { position: relative; height: 510px; isolation: isolate; perspective: 1100px; --pointer-x: 0; --pointer-y: 0; }
.ps-stage-orbit { position: absolute; width: 390px; aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-24deg); border: 1px solid #cbefab32; border-radius: 50%; }
.ps-stage-orbit::before, .ps-stage-orbit::after { content: ''; position: absolute; border: 1px solid #cbefab20; border-radius: 50%; inset: 32px -46px; }
.ps-stage-orbit::after { inset: -32px 46px; }
.ps-scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ps-scene canvas { display: block; width: 100%; height: 100%; opacity: .8; }
.ps-preview-stack { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(calc(var(--pointer-y) * -4deg)) rotateY(calc(var(--pointer-x) * 6deg)); transition: transform .25s ease-out; }
.ps-preview { position: absolute; width: 57%; max-width: 340px; left: 8%; top: 13%; padding: 9px; border: 1px solid #ffffff45; border-radius: 12px; background: #eff1e9; box-shadow: 0 25px 65px #00191c50; transform: rotate(-10deg); color: var(--ps-ink); }
.ps-preview:nth-child(2) { left: 45%; top: 4%; width: 42%; transform: translateZ(-30px) rotate(11deg); }
.ps-preview:nth-child(3) { left: 36%; top: 48%; width: 51%; transform: translateZ(50px) rotate(5deg); }
.ps-preview-top { display: flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 500; padding: 3px 3px 9px; }
.ps-preview-top > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.ps-preview-dot { width: 5px; height: 5px; background: #668574; border-radius: 50%; }
.ps-preview-image { aspect-ratio: 1.22; display: grid; grid-template-rows: minmax(0, 1fr); place-items: center; background: #e1e6de; overflow: hidden; border-radius: 5px; }
.ps-preview:nth-child(2) .ps-preview-image { aspect-ratio: .86; }
.ps-preview-image img { display: block; width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.ps-preview:has(.ps-image-error) { display: none; }
.ps-stage-note { position: absolute; bottom: 6px; left: 7%; font-size: 9px; text-transform: uppercase; letter-spacing: .18em; color: #b5c8bd; }
.ps-work { padding-block: 86px 100px; scroll-margin-top: 28px; }
.ps-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 36px; margin-bottom: 34px; }
.ps-section-heading .ps-eyebrow { margin-bottom: 16px; }
.ps-section-heading h2 { font-size: clamp(36px, 4vw, 60px); font-weight: 500; letter-spacing: -.055em; line-height: 1.1; margin: 0; }
.ps-section-heading > p { max-width: 385px; color: #59716c; font-size: 13px; line-height: 1.8; margin: 0 0 3px; }
.ps-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; margin-bottom: 24px; border-block: 1px solid var(--ps-line); }
.ps-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.ps-filters button { border: 1px solid transparent; border-radius: 30px; padding: 10px 15px; color: #50665f; background: transparent; font-size: 12px !important; transition: background .2s, color .2s; }
.ps-filters button:hover { background: #e4e9df; color: var(--ps-ink); }
.ps-filters button.is-active { background: var(--ps-ink); color: white; }
.ps-result-count { flex: 0 0 auto; font-size: 11px; color: #59716c; margin: 0; }
.ps-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 52px 28px; align-items: start; }
.ps-card { grid-column: span 5; min-width: 0; }
.ps-card:nth-child(4n+1), .ps-card:nth-child(4n+4) { grid-column: span 7; }
.ps-card:nth-child(4n+2) { padding-top: 80px; }
.ps-card:nth-child(4n+3) { padding-top: 25px; }
.ps-card-link { display: block; }
.ps-card-visual { position: relative; margin: 0; width: 100%; height: clamp(270px, 32vw, 490px); padding: clamp(26px, 3vw, 48px); display: grid; place-items: center; background: #e9ebe3; border-radius: 4px; isolation: isolate; }
.ps-card:nth-child(4n+2) .ps-card-visual { height: clamp(300px, 33vw, 510px); background: #e4e8df; }
.ps-card:nth-child(4n+3) .ps-card-visual { height: clamp(290px, 31vw, 470px); background: #e9e5db; }
.ps-card:nth-child(4n+4) .ps-card-visual { background: #e1e8e3; }
.ps-card-visual img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; object-position: center; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.ps-card-index { position: absolute; top: 17px; left: 20px; font-size: 10px; color: #59716c; letter-spacing: .07em; }
.ps-card-open { position: absolute; bottom: 16px; right: 16px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-size: 24px; color: var(--ps-ink); background: #f5f5eff0; transition: background .2s, transform .25s; }
.ps-card-link:hover .ps-card-open, .ps-card-link:focus-visible .ps-card-open { background: var(--ps-lime); transform: rotate(45deg); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .ps-card-link:hover img { transform: translateY(-4px); } }
.ps-card-placeholder { grid-area: 1/1; max-width: 100%; font-size: clamp(24px, 3.3vw, 48px); letter-spacing: -.055em; font-weight: 500; line-height: 1.14; overflow-wrap: anywhere; text-align: center; }
.ps-image-error { visibility: hidden; }
.ps-failed-label { grid-area: 1/1; text-align: center; font-size: clamp(24px, 3vw, 45px); line-height: 1.2; letter-spacing: -.04em; overflow-wrap: anywhere; max-width: 100%; }
.ps-card-visual.has-image-error img { position: absolute; }
.ps-card-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 19px; }
.ps-card-heading h3 { font-size: clamp(21px, 2vw, 29px); line-height: 1.25; letter-spacing: -.045em; font-weight: 500; margin: 0; overflow-wrap: anywhere; }
.ps-project-count { white-space: nowrap; font-size: 10px; color: #59716c; }
.ps-card-services { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 9px; color: #59716c; font-size: 10px; line-height: 1.7; }
.ps-card-services span + span::before { content: '/'; padding-right: 12px; color: #93a29a; }
.ps-state { padding-block: 50px; font-size: 15px; color: #59716c; }
.ps-empty { text-align: center; }
.ps-contact { background: var(--ps-lime); padding-block: 76px; }
.ps-contact-layout { display: flex; justify-content: space-between; align-items: center; gap: 35px; }
.ps-contact h2 { font-size: clamp(40px, 6vw, 84px); letter-spacing: -.065em; line-height: 1.08; font-weight: 500; margin: 0 0 28px; }
.ps-contact h2 em { font-family: Georgia, serif; font-weight: 400; }
.ps-contact p:not(.ps-eyebrow) { font-size: 14px; line-height: 1.8; margin: 0; }
.ps-contact-link { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 200px; height: 200px; flex-shrink: 0; border: 1px solid #12383b70; border-radius: 50%; font-size: 13px; transition: background .25s, color .25s; }
.ps-contact-link > span { font-size: 68px; line-height: 1.2; }
.pf-showcase main .ps-contact-link:hover { background: var(--ps-ink); color: var(--ps-lime); }
@media (min-width: 1000px) { .ps-grid:has(> .ps-card:only-child) { grid-template-columns: repeat(12, minmax(0, 1fr)); } .ps-card:only-child { grid-column: span 8; } }
@media (max-width: 1100px) {
    .ps-hero-layout { min-height: 480px; gap: 10px; }
    .ps-stage { height: 410px; }
    .ps-stage-orbit { width: 290px; }
    .ps-preview { left: 0; width: 62%; }
    .ps-preview:nth-child(2) { left: 49%; width: 46%; }
    .ps-preview:nth-child(3) { left: 31%; width: 61%; top: 48%; }
    .ps-grid { gap: 44px 22px; }
    .ps-card-heading { display: block; }
    .ps-project-count { display: inline-block; margin-top: 8px; }
}
@media (max-width: 760px) {
    .ps-shell { width: 90%; }
    .ps-hero { padding-top: 145px; }
    .ps-hero-layout { grid-template-columns: 1fr; padding-block: 15px 38px; }
    .ps-hero h1 { font-size: clamp(45px, 9.6vw, 70px); }
    .ps-intro { max-width: 520px; }
    .ps-stage { height: 300px; width: min(460px, 100%); margin: 20px auto 0; }
    .ps-scene { display: none; }
    .ps-preview-stack { transform: none; }
    .ps-preview { width: 46%; left: 3%; top: 6%; }
    .ps-preview:nth-child(2) { width: 37%; left: 57%; top: 0; }
    .ps-preview:nth-child(3) { width: 44%; left: 31%; top: 41%; }
    .ps-stage-note { display: none; }
    .ps-hero-bottom { flex-direction: column; gap: 8px; font-size: 9px; }
    .ps-work { padding-block: 52px 65px; }
    .ps-section-heading { flex-direction: column; align-items: start; gap: 18px; }
    .ps-toolbar { display: block; }
    .ps-filters { gap: 5px; }
    .ps-filters button { padding: 9px 11px; min-height: 42px; }
    .ps-result-count { margin: 14px 0 0; }
    .ps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 16px; }
    .ps-grid > .ps-card { grid-column: span 1; padding-top: 0; }
    .ps-grid .ps-card-visual { height: clamp(210px, 39vw, 290px); padding: 28px 16px; }
    .ps-card-heading h3 { font-size: 21px; }
    .ps-card-index { top: 10px; left: 12px; }
    .ps-card-open { width: 32px; height: 32px; bottom: 10px; right: 10px; font-size: 20px; }
    .ps-contact { padding-block: 54px; }
    .ps-contact-link { width: 150px; height: 150px; }
}
@media (max-width: 480px) {
    .ps-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .ps-grid .ps-card-visual { height: clamp(280px, 90vw, 405px); padding: 32px 22px; }
    .ps-card-heading { display: flex; }
    .ps-project-count { margin: 0; }
    .ps-contact-layout { align-items: start; flex-direction: column; }
    .ps-contact-link { width: 124px; height: 124px; font-size: 11px; }
    .ps-contact-link > span { font-size: 48px; }
}
@media (prefers-reduced-motion: reduce) {
    .pf-showcase main *, .pf-showcase main *::before, .pf-showcase main *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .ps-preview-stack { transform: none; }
    .ps-scene { display: none; }
}
