/* Website portfolio and its shared interior banner. */
:root {
    --bs-body-font-family: var(--gitech-font);
    --bs-font-sans-serif: var(--gitech-font);
}
.project-gallery {
    --gallery-ink: #13231b; --gallery-muted: #48564e; --gallery-line: #d9e1da;
    padding: 0 0 clamp(48px, 6vw, 88px); background: #fff; color: var(--gallery-ink);
    font-family: var(--gitech-font);
}
.gallery-intro h1 {
    margin: 0; color: var(--gallery-ink); font-size: clamp(1.95rem, 3.55vw, 3.5rem);
    line-height: 1.08; letter-spacing: -.048em; font-weight: 700;
}
.gallery-intro p { margin: .6rem 0 0; color: var(--gallery-muted); font-size: 1rem; line-height: 1.6; }
.gallery-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 23px; }
.gallery-tools[hidden], .portfolio-case[hidden], .viewer-paging[hidden] { display: none; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.gallery-filters button {
    background: #fff; border: 1px solid #b8c6bc; border-radius: 999px; color: #304c3a;
    padding: .48rem 1rem; min-height: 42px; font: 600 .835rem/1.3 var(--gitech-font);
}
.gallery-filters button:hover { background: #edf6ec; }
.gallery-filters button[aria-pressed=true] { color: #08240e; background: var(--gitech-green); border-color: var(--gitech-green); }
.gallery-count { color: var(--gallery-muted); font-size: .84rem; }
.portfolio-grid { margin-top: clamp(20px, 2.6vw, 38px); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(20px, 2.6vw, 38px); }
.portfolio-case {
    --canvas: #e1e9e1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: white;
    border: 1px solid var(--gallery-line); border-radius: 18px; scroll-margin-top: 100px;
}
.portfolio-case[data-group="Security"] { --canvas: #e1e8eb; }
.portfolio-case[data-group="Healthcare"] { --canvas: #dceae8; }
.portfolio-case[data-group="Digital platforms"] { --canvas: #e4e4ef; }
.case-visual {
    display: grid; place-items: center; position: relative; isolation: isolate; overflow: hidden;
    padding: clamp(18px, 3vw, 44px); background: var(--canvas); border-bottom: 1px solid var(--gallery-line);
}
.case-visual::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .48;
    background-image: radial-gradient(#687b6a80 .85px, transparent 1px); background-size: 12px 12px;
}
.case-window {
    min-width: 0; width: 100%; background: white; border: 1px solid #17271c45; border-radius: 9px;
    overflow: hidden; box-shadow: 0 8px 18px #253c2d16; transition: transform .2s ease;
}
.case-visual:hover .case-window { transform: translateY(-3px); }
.case-chrome {
    display: flex; align-items: center; gap: .7rem; padding: 0 .75rem; height: 30px; background: #f7f9f7;
    color: #405349; font: 550 .72rem/1.2 var(--gitech-font); border-bottom: 1px solid #cbd5cd;
}
.case-chrome i { margin-left: auto; }
.case-lights { width: 6px; height: 6px; background: #9cafa2; border-radius: 50%; box-shadow: 9px 0 #b8c6bc, 18px 0 #d1dcd4; margin-right: 18px; }
.case-host { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-window img { display: block; width: 100%; height: auto; aspect-ratio: 720 / 430; object-fit: cover; object-position: top; }
.case-copy { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(20px, 2.4vw, 34px); }
.case-sector { display: flex; align-items: center; gap: .65rem; margin: 0 0 .6rem; color: #316342; font-size: .73rem; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; }
.case-sector::before { content: ""; flex: none; width: 18px; height: 2px; background: var(--gitech-green); }
.case-copy h2 { margin: 0; color: var(--gallery-ink); font-weight: 680; font-size: clamp(1.4rem, 2.25vw, 2rem); line-height: 1.12; letter-spacing: -.036em; }
.case-copy .project-desc { max-width: 54ch; margin: .7rem 0 1.15rem; color: var(--gallery-muted); font-size: 1rem; line-height: 1.6; }
.case-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; margin-top: auto; }
.case-actions a { display: inline-flex; gap: .55rem; align-items: center; justify-content: center; min-height: 44px; font-weight: 650; font-size: .86rem; text-decoration: none; }
.case-preview { background: #f2f7f2; border: 1px solid #acbcaf; padding: .5rem .95rem; border-radius: 999px; color: #182f20; }
.case-preview:hover { background: #e1efdf; color: #14291a; }
.case-visit { color: #245e33; }
.case-visit:hover { color: #245e33; text-decoration: underline; text-underline-offset: 3px; }
.revamp-note { display: flex; align-items: center; gap: .5rem; margin: -.35rem 0 1rem; color: #76510e; font-size: .8rem; font-weight: 650; }
.revamp-note span { width: 7px; height: 7px; border-radius: 50%; background: #a77519; }
@media (min-width: 850px) {
    .portfolio-grid:not(.is-filtered) .portfolio-case:first-child {
        display: grid; grid-template-columns: minmax(0, 1.36fr) minmax(0, .84fr); grid-column: 1/-1;
        color: white; background: #12241a; border-color: #24432b;
    }
    .portfolio-grid:not(.is-filtered) .portfolio-case:first-child .case-visual { background: #dce9dc; border: 0; }
    .portfolio-grid:not(.is-filtered) .portfolio-case:first-child .case-copy { justify-content: center; padding: clamp(24px, 3.5vw, 54px); }
    .portfolio-grid:not(.is-filtered) .portfolio-case:first-child .case-sector { color: #bfe5c5; }
    .portfolio-grid:not(.is-filtered) .portfolio-case:first-child h2 { color: white; font-size: clamp(2.25rem, 3.8vw, 3.8rem); }
    .portfolio-grid:not(.is-filtered) .portfolio-case:first-child .project-desc { color: #e0e9e1; }
    .portfolio-grid:not(.is-filtered) .portfolio-case:first-child .case-actions { margin-top: .5rem; }
    .portfolio-grid:not(.is-filtered) .portfolio-case:first-child .case-visit { color: white; }
    .portfolio-grid:not(.is-filtered) .portfolio-case:first-child .case-preview { color: #0c2712; background: var(--gitech-green); border-color: var(--gitech-green); }
}
.viewer-paging { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 7px clamp(12px, 2vw, 22px); background: #f3f7f3; border-top: 1px solid #d4dfd5; }
.viewer-paging button { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; border: 0; background: transparent; color: #24492e; font: 650 .86rem/1.3 var(--gitech-font); }
.viewer-paging button:hover { text-decoration: underline; }
.viewer-paging span { font-size: .8rem; color: #48564e; }
.project-gallery :focus-visible { outline: 3px solid #197437; outline-offset: 2px; }
.project-gallery .case-visual:focus-visible { outline-offset: -4px; }
@media (max-width: 720px) {
    .portfolio-grid { grid-template-columns: minmax(0,1fr); }
    .gallery-tools { align-items: flex-start; }
    .gallery-filters { gap: 5px; }
    .gallery-filters button { min-height: 44px; padding: .45rem .82rem; }
    .case-visual { padding: clamp(13px, 4.6vw, 24px); }
}
@media (prefers-reduced-motion: reduce) {
    .case-window { transition: none; }
    .case-visual:hover .case-window { transform: none; }
}
