/* Projektit listing styles — VERBATIM from design-source GI - Projects.html. */


        @font-face { font-family: 'NORD'; src: url('fonts/NORD-Thin.otf') format('opentype'); font-weight: 100; font-style: normal; font-display: swap; }
        @font-face { font-family: 'NORD'; src: url('fonts/NORD-Book.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
        @font-face { font-family: 'NORD'; src: url('fonts/NORD-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
        @font-face { font-family: 'NORD'; src: url('fonts/NORD-Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        /* :root → tokens.css */
        html, body { background: var(--bg); color: var(--ink); }
        body {
            font-family: 'Open Sans', sans-serif;
            line-height: 1.7;
            -webkit-font-smoothing: antialiased;
        }
        h1, h2, h3 { font-family: 'NORD', sans-serif; font-weight: 400; text-transform: uppercase; }

        a { color: inherit; }

        /* ---------------- HEADER (transparent over banner) ---------------- */
        .header {
            position: absolute;
            top: 0; left: 0; right: 0;
            z-index: 100;
            padding: 1.5rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 300ms ease;
        }
        .header::after {
            content: "";
            position: absolute;
            left: 2rem; right: 2rem; bottom: 0;
            height: 1px;
            background: rgba(255, 255, 255, 0.25);
            transition: background 300ms ease;
        }
        .header.scrolled {
            position: fixed;
            background: white;
        }
        .header.scrolled::after { background: var(--border); }
        .header.scrolled .nav-link { color: var(--ink-soft); }
        .header.scrolled .nav-link:hover { color: var(--accent); }
        .header.scrolled .logo .logo-white { display: none; }
        .header.scrolled .logo .logo-dark { display: block; }
        .logo { display: flex; align-items: center; text-decoration: none; }
        .logo img { display: block; height: 35.2px; width: auto; transition: opacity 300ms ease; }
        .logo .logo-dark { display: none; }
        .nav { display: flex; gap: 2rem; align-items: center; }
        .nav-item { position: relative; font-size: var(--text-small); line-height: 1.7; }
        .nav-trigger {
            display: inline-flex; align-items: center; gap: 0.4rem;
            background: none; border: none; padding: 0; margin: 0; cursor: pointer;
            font: inherit; color: inherit; line-height: 1.7;
            letter-spacing: inherit; text-transform: inherit;
            vertical-align: middle; height: auto;
        }
        .nav-trigger .chev {
            width: 8px; height: 8px;
            border-right: 1px solid currentColor;
            border-bottom: 1px solid currentColor;
            transform: translateY(-2px) rotate(45deg);
            transition: transform 200ms ease;
        }
        .nav-item.open .nav-trigger .chev { transform: translateY(1px) rotate(-135deg); }
        .nav-dropdown {
            position: absolute; top: 100%; left: 50%;
            transform: translateX(-50%) translateY(-4px);
            margin-top: 0.5rem; min-width: 180px;
            background: rgba(0, 0, 0, 0.45);
            backdrop-filter: blur(20px) saturate(140%);
            -webkit-backdrop-filter: blur(20px) saturate(140%);
            padding: 0.6rem 0;
            display: flex; flex-direction: column; align-items: flex-start;
            opacity: 0; visibility: hidden; pointer-events: none;
            transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms;
            z-index: 110;
        }
        .nav-dropdown::before {
            content: ""; position: absolute;
            top: -0.6rem; left: 0; right: 0; height: 0.6rem;
        }
        .nav-item.open .nav-dropdown {
            opacity: 1; visibility: visible; pointer-events: auto;
            transform: translateX(-50%) translateY(0);
            transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 0s;
        }
        .nav-dropdown a {
            display: inline-block; position: relative;
            margin: 0 1.5rem; padding: 0.7rem 0;
            color: rgba(255, 255, 255, 0.7);
            font-size: var(--text-meta); font-weight: 400;
            text-transform: uppercase; letter-spacing: 0.08em;
            text-decoration: none;
            transition: color 200ms ease;
            white-space: nowrap;
        }
        .nav-dropdown a::after {
            content: ''; position: absolute;
            left: 0; bottom: 0.4rem; width: 100%; height: 1px;
            background: white;
            transform: scaleX(0); transform-origin: left;
            transition: transform 300ms ease;
        }
        .nav-dropdown a:hover { color: white; }
        .nav-dropdown a:hover::after { transform: scaleX(1); }
        .header.scrolled .nav-dropdown {
            background: white;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
            border: 1px solid var(--border);
        }
        .header.scrolled .nav-dropdown a { color: var(--ink-soft); }
        .header.scrolled .nav-dropdown a::after { background: var(--accent); }
        .header.scrolled .nav-dropdown a:hover { color: var(--accent); }

        .nav-link {
            font-weight: 400; font-size: var(--text-small);
            text-transform: uppercase; letter-spacing: 0.08em;
            color: white; text-decoration: none;
            transition: color 200ms ease;
            position: relative; padding-bottom: 4px;
        }
        .nav-link::after {
            content: ''; position: absolute;
            left: 0; bottom: 0; width: 100%; height: 1px;
            background: currentColor;
            transform: scaleX(0); transform-origin: left center;
            transition: transform 300ms ease;
        }
        .nav-link:hover::after { transform: scaleX(1); }
        .nav-link.active::after { transform: scaleX(1); }
        .nav-link:hover { color: white; }

        .lang-switcher {
            display: flex; align-items: center; gap: 0.5rem;
            margin-left: 2rem; padding-left: 2rem;
            border-left: 1px solid rgba(255, 255, 255, 0.25);
            font-size: var(--text-meta); text-transform: uppercase;
            letter-spacing: 0.15em; font-weight: 400;
        }
        .lang-switcher a {
            color: rgba(255, 255, 255, 0.6);
            text-decoration: none;
            transition: color 200ms ease;
        }
        .lang-switcher a.active { color: white; }
        .lang-switcher a:hover { color: white; }
        .lang-switcher .divider { color: rgba(255, 255, 255, 0.35); }
        .header.scrolled .lang-switcher { border-left-color: var(--border); }
        .header.scrolled .lang-switcher a { color: var(--ink-soft); opacity: 0.5; }
        .header.scrolled .lang-switcher a.active { color: var(--ink); opacity: 1; }
        .header.scrolled .lang-switcher a:hover { color: var(--accent); opacity: 1; }
        .header.scrolled .lang-switcher .divider { color: var(--border); }

        .menu-toggle {
            display: none; position: relative;
            width: 44px; height: 44px;
            background: none; border: none; cursor: pointer; padding: 0;
            z-index: 210;
        }
        .menu-toggle span {
            position: absolute; left: 10px; right: 10px;
            height: 1.5px; background: white; border-radius: 1px;
            transition: top 300ms cubic-bezier(0.22, 1, 0.36, 1) 300ms,
                        transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
                        background 300ms ease;
        }
        .menu-toggle span:nth-child(1) { top: 16px; }
        .menu-toggle span:nth-child(2) { top: 21.25px; }
        .menu-toggle span:nth-child(3) { top: 26.5px; }
        .header.scrolled .menu-toggle span { background: var(--ink); }

        body.menu-open .menu-toggle span {
            background: white;
            transition: top 300ms cubic-bezier(0.22, 1, 0.36, 1),
                        transform 300ms cubic-bezier(0.22, 1, 0.36, 1) 300ms;
        }
        body.menu-open .menu-toggle span:nth-child(1) { top: 21.25px; transform: rotate(45deg); }
        body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
        body.menu-open .menu-toggle span:nth-child(3) { top: 21.25px; transform: rotate(-45deg); }

        .mobile-menu {
            position: fixed; inset: 0; z-index: 200;
            background: var(--ink); color: white;
            opacity: 0; visibility: hidden; pointer-events: none;
            transition: opacity 400ms ease, visibility 0s linear 400ms;
            display: flex; flex-direction: column;
            overflow-y: auto; overscroll-behavior: contain;
        }
        body.menu-open .mobile-menu {
            opacity: 1; visibility: visible; pointer-events: auto;
            transition: opacity 400ms ease, visibility 0s linear 0s;
        }
        .mobile-menu-backdrop-img {
            position: absolute; inset: 0;
            background: url('assets/helsinki-harbor.jpg') center/cover no-repeat;
            opacity: 0.18; filter: grayscale(40%) contrast(0.95);
            pointer-events: none; z-index: 0;
        }
        .mobile-menu-inner {
            position: relative; z-index: 1;
            display: flex; flex-direction: column;
            min-height: 100%;
            padding: 6rem 2rem 2.5rem; gap: 2.5rem;
        }
        .mobile-menu-close {
            position: absolute; top: 1rem; right: 1.25rem;
            width: 44px; height: 44px;
            background: none; border: none; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            color: white; z-index: 2;
        }
        .mobile-menu-close svg {
            width: 20px; height: 20px; stroke: currentColor;
            stroke-width: 1.8; fill: none; stroke-linecap: round;
        }
        .mobile-menu nav { display: flex; flex-direction: column; gap: 0.25rem; }
        .mobile-menu-item { border-bottom: 1px solid rgba(255,255,255,0.12); }
        .mobile-menu-link {
            display: flex; align-items: center; justify-content: space-between;
            font-family: 'NORD', sans-serif; font-size: var(--text-h2); font-weight: 400;
            text-transform: uppercase; letter-spacing: 0.03em;
            color: white; text-decoration: none;
            padding: 1.1rem 0;
            background: none; border: none; width: 100%; cursor: pointer;
        }
        body.menu-open { overflow: hidden; }

        /* HERO ENTRANCE — shared site-wide pattern */
        @keyframes heroFadeUp {
            from { opacity: 0; transform: translateY(22px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        .hero-anim {
            opacity: 0;
            animation: heroFadeUp 1100ms cubic-bezier(0.22, 1, 0.36, 1) both;
            animation-delay: calc(250ms + var(--i, 0) * 140ms);
            will-change: opacity, transform;
        }
        @media (prefers-reduced-motion: reduce) {
            .hero-anim { animation: none; opacity: 1; transform: none; }
        }

        /* ---------------- PAGE BANNER ---------------- */
        .page-banner {
            position: relative;
            height: 72vh; min-height: 560px; max-height: 820px;
            overflow: hidden;
            background: #1a1a1a;
            color: white;
            display: flex; align-items: flex-end;
        }
        .page-banner-bg {
            position: absolute; inset: 0;
            background-image: url('https://www.gullsten-inkinen.com/wp-content/uploads/2025/10/AH-VALLILAN-VOIMALA-103.jpg');
            background-size: cover; background-position: center;
            opacity: 0.85;
            transform: scale(1.04);
        }
        .page-banner::after {
            content: ""; position: absolute; inset: 0;
            background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.25) 35%, rgba(0,0,0,0.65) 100%);
        }
        .page-banner-inner {
            position: relative; z-index: 2;
            width: 100%;
            max-width: 1600px;
            margin: 0 auto;
            padding: 0 2rem 4.5rem;
        }
        .page-banner-eyebrow {
            font-family: 'Open Sans', sans-serif;
            font-size: var(--text-small);
            text-transform: uppercase; letter-spacing: 0.22em;
            font-weight: 700;
            color: rgba(255,255,255,0.85);
            margin-bottom: 1rem;
            display: inline-flex; align-items: center; gap: 0.85rem;
        }
        .page-banner-eyebrow::before {
            content: ""; width: 28px; height: 1px;
            background: rgba(255,255,255,0.7);
        }
        .page-banner-title {
            font-family: 'NORD', sans-serif; font-weight: 400;
            font-size: var(--fluid-banner);
            line-height: 1.05; letter-spacing: 0.01em;
            text-transform: uppercase;
            text-shadow: 0 2px 14px rgba(0,0,0,0.35);
            margin: 0 0 1rem;
        }
        .page-banner-lede {
            font-family: 'Open Sans', sans-serif;
            font-size: var(--text-body);
            line-height: 1.55;
            color: rgba(255,255,255,0.92);
            max-width: 620px;
            text-shadow: 0 1px 6px rgba(0,0,0,0.35);
        }

        /* ---------------- FILTER BAR (minimal, text-based) ---------------- */
        .filterbar {
            position: sticky;
            top: 0;
            z-index: 80;
            background: rgba(255,255,255,0.92);
            backdrop-filter: blur(14px) saturate(140%);
            -webkit-backdrop-filter: blur(14px) saturate(140%);
            border-bottom: 1px solid var(--border);
            transition: top 250ms ease, box-shadow 200ms ease, background 200ms ease;
        }
        /* When the scrolled header is fixed at the top, push the sticky filterbar
           down so it doesn't disappear underneath it. */
        body.header-scrolled .filterbar {
            top: 80px;
        }
        .filterbar.stuck {
            box-shadow: 0 6px 24px rgba(0,0,0,0.04);
            background: rgba(255,255,255,0.96);
        }
        .filterbar-inner {
            max-width: 1600px;
            margin: 0 auto;
            padding: 1.1rem 2rem;
            display: flex;
            align-items: center;
            gap: 2rem;
            flex-wrap: wrap;
            row-gap: 0.85rem;
        }
        .filter-controls {
            display: flex;
            align-items: center;
            gap: 1.75rem;
            margin-left: auto;
            flex: 1;
            justify-content: flex-end;
        }

        /* Dropdown trigger (shared style for Category + Sort) */
        .filter-dropdown {
            position: relative;
            display: inline-block;
        }
        .filter-dropdown-trigger {
            appearance: none;
            -webkit-appearance: none;
            border: none;
            background: transparent;
            padding: 0.4rem 1.35rem 0.4rem 0;
            font-family: 'Open Sans', sans-serif;
            font-size: var(--text-meta);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.13em;
            color: var(--ink);
            cursor: pointer;
            outline: none;
            white-space: nowrap;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            line-height: 1.2;
        }
        .filter-dropdown-trigger .label-prefix {
            color: var(--muted);
            font-weight: 700;
        }
        .filter-dropdown-trigger::after {
            content: "";
            position: absolute;
            right: 0; top: 50%;
            width: 6px; height: 6px;
            border-right: 1px solid var(--ink);
            border-bottom: 1px solid var(--ink);
            transform: translateY(-75%) rotate(45deg);
            pointer-events: none;
            transition: transform 200ms ease;
        }
        .filter-dropdown.open .filter-dropdown-trigger::after {
            transform: translateY(-25%) rotate(-135deg);
        }
        .filter-dropdown-trigger:hover { color: var(--accent); }
        .filter-dropdown-trigger:hover::after { border-color: var(--accent); }

        .filter-dropdown-menu {
            position: absolute;
            top: calc(100% + 0.85rem);
            right: 0;
            min-width: 280px;
            background: white;
            border: 1px solid var(--border);
            box-shadow: 0 12px 36px rgba(0,0,0,0.10);
            padding: 0.4rem 0;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-4px);
            transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms;
            z-index: 90;
        }
        .filter-dropdown.open .filter-dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
            transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 0s;
        }
        .filter-dropdown-option {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1.25rem;
            width: 100%;
            text-align: left;
            background: none;
            border: none;
            padding: 0.7rem 1.1rem;
            font-family: 'Open Sans', sans-serif;
            font-size: var(--text-small);
            font-weight: 400;
            color: var(--ink-soft);
            cursor: pointer;
            transition: background 150ms ease, color 150ms ease;
        }
        .filter-dropdown-option:hover {
            background: var(--bg-subtle);
            color: var(--ink);
        }
        .filter-dropdown-option.active {
            color: var(--accent);
            font-weight: 700;
        }
        .filter-dropdown-option .opt-count {
            font-size: var(--text-meta);
            color: var(--muted);
            font-variant-numeric: tabular-nums;
            font-weight: 400;
        }
        .filter-dropdown-option.active .opt-count { color: var(--accent); }

        .filter-search {
            position: relative;
            display: flex; align-items: center;
            flex: 1;
            max-width: 360px;
        }
        .filter-search input {
            border: none;
            border-bottom: 1px solid var(--border);
            background: transparent;
            padding: 0.5rem 0 0.5rem 1.65rem;
            font-family: 'Open Sans', sans-serif;
            font-size: var(--text-small);
            color: var(--ink);
            width: 100%;
            outline: none;
            transition: border-color 200ms ease;
        }
        .filter-search input::placeholder { color: var(--muted); font-weight: 400; }
        .filter-search input:focus { border-bottom-color: var(--ink); }
        .filter-search svg {
            position: absolute;
            left: 0;
            width: 14px; height: 14px;
            stroke: var(--muted);
            stroke-width: 1.5; fill: none;
        }

        .filter-reset {
            background: none;
            border: none;
            cursor: pointer;
            color: var(--muted);
            font-family: 'Open Sans', sans-serif;
            font-size: var(--text-micro);
            text-transform: uppercase;
            letter-spacing: 0.13em;
            font-weight: 700;
            padding: 0.4rem 0;
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            opacity: 0;
            pointer-events: none;
            transition: opacity 200ms ease, color 200ms ease;
            white-space: nowrap;
        }
        .filter-reset.visible { opacity: 1; pointer-events: auto; }
        .filter-reset:hover { color: var(--accent); }
        .filter-reset::before {
            content: "\00d7";
            font-size: var(--text-body);
            line-height: 0.7;
            font-weight: 400;
        }

        /* ---------------- RESULTS META ---------------- */
        .results-meta {
            max-width: 1600px;
            margin: 0 auto;
            padding: 2rem 2rem 0.5rem;
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 1rem;
            flex-wrap: wrap;
        }
        .results-count {
            font-family: 'Open Sans', sans-serif;
            font-size: var(--text-small);
            color: var(--muted);
            font-weight: 400;
        }
        .results-count strong {
            color: var(--ink);
            font-weight: 700;
            font-variant-numeric: tabular-nums;
        }
        .results-active-tag {
            font-family: 'Open Sans', sans-serif;
            font-size: var(--text-small);
            color: var(--ink);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        /* ---------------- GRID ---------------- */
        .projects {
            max-width: 1600px;
            margin: 0 auto;
            padding: 2rem 2rem 6rem;
        }
        /* Mosaic: 8-col grid, rows alternate [wide, wide, narrow] / [narrow, wide, wide]
           wide = span 3 (37.5%), narrow = span 2 (25%). Each "set" = 6 cards = 2 rows. */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(8, 1fr);
            grid-auto-rows: clamp(240px, 22vw, 320px);
            gap: 10px;
        }
        .project-card {
            position: relative;
            display: block;
            text-decoration: none;
            color: white;
            overflow: hidden;
            background: #111;
            outline: 0 solid transparent;
            transition: outline-color 200ms ease;
            grid-column: span 2;
        }
        /* Wide cards: 1st, 2nd, 5th, 6th in each 6-card set */
        .projects-grid > .project-card:nth-child(6n+1),
        .projects-grid > .project-card:nth-child(6n+2),
        .projects-grid > .project-card:nth-child(6n+5),
        .projects-grid > .project-card:nth-child(6n+6) {
            grid-column: span 3;
        }
        /* (6n+3 and 6n+4 stay span 2 — the narrow ones) */
        .project-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
        .project-card-img {
            position: absolute; inset: 0;
            width: 100%; height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 1200ms cubic-bezier(0.22, 1, 0.36, 1),
                        filter 350ms ease,
                        opacity 350ms ease;
            opacity: 0;
        }
        .project-card-img.loaded { opacity: 1; }
        .project-card:hover .project-card-img { transform: scale(1.06); }
        .project-card::before {
            content: "";
            position: absolute; inset: 0;
            background: linear-gradient(180deg,
                rgba(0,0,0,0) 35%,
                rgba(0,0,0,0.35) 70%,
                rgba(0,0,0,0.75) 100%);
            z-index: 1;
            transition: background 700ms cubic-bezier(0.22, 1, 0.36, 1);
            pointer-events: none;
        }
        .project-card:hover::before {
            background: linear-gradient(180deg,
                rgba(0,0,0,0.1) 0%,
                rgba(0,0,0,0.5) 40%,
                rgba(0,0,0,0.8) 100%);
        }
        .project-card-category {
            position: absolute;
            top: 1rem; left: 1rem;
            z-index: 3;
            font-family: 'Open Sans', sans-serif;
            font-size: var(--text-meta);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.18em;
            color: white;
            padding: 0.45rem 0.75rem;
            background: rgba(0,0,0,0.35);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            line-height: 1;
        }

        /* Bottom-left text stack (same pattern as frontpage carousel card) */
        .project-card-body {
            position: absolute;
            text-align: left;
            left: 0; right: 0; bottom: 0;
            z-index: 2;
            padding: 1.5rem;
            color: white;
            display: grid;
            grid-template-rows: auto auto 0fr;
            row-gap: 0.45rem;
            transition: grid-template-rows 700ms cubic-bezier(0.22, 1, 0.36, 1);
        }
        .project-card:hover .project-card-body,
        .project-card:focus-visible .project-card-body {
            grid-template-rows: auto auto 1fr;
        }
        .project-card-title {
            font-family: 'NORD', sans-serif;
            font-weight: 400;
            text-transform: uppercase;
            font-size: var(--text-h3);
            letter-spacing: 0.02em;
            line-height: 1.2;
            margin: 0;
            color: white;
            text-wrap: balance;
            text-shadow:
                0 1px 2px rgba(0, 0, 0, 0.5),
                0 2px 8px rgba(0, 0, 0, 0.4),
                0 4px 16px rgba(0, 0, 0, 0.45);
        }
        .project-card-meta {
            font-family: 'Open Sans', sans-serif;
            font-size: var(--text-meta);
            font-weight: 400;
            text-transform: uppercase;
            letter-spacing: 0.14em;
            color: rgba(255,255,255,0.88);
            display: flex;
            align-items: center;
            gap: 0.55rem;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        }
        .project-card-meta .dot {
            width: 3px; height: 3px;
            background: currentColor;
            border-radius: 50%;
            opacity: 0.7;
        }
        .project-card-ingress {
            font-family: 'Open Sans', sans-serif;
            font-size: var(--text-body);
            font-weight: 400;
            line-height: 1.5;
            color: rgba(255,255,255,0.95);
            text-shadow: 0 1px 2px rgba(0,0,0,0.55);
            margin: 0;
            overflow: hidden;
            min-height: 0;
            opacity: 0;
            transform: translateY(8px);
            transition: opacity 350ms ease,
                        transform 600ms cubic-bezier(0.22, 1, 0.36, 1),
                        padding-top 700ms cubic-bezier(0.22, 1, 0.36, 1);
            padding-top: 0;
        }
        .project-card:hover .project-card-ingress,
        .project-card:focus-visible .project-card-ingress {
            opacity: 1;
            transform: translateY(0);
            padding-top: 0.4rem;
        }

        /* Uniform grid — no feature tile, all cards equal */

        .grid-empty {
            grid-column: 1 / -1;
            padding: 6rem 1rem;
            text-align: center;
            color: var(--muted);
            font-family: 'Open Sans', sans-serif;
        }
        .grid-empty h3 {
            font-family: 'NORD', sans-serif;
            text-transform: uppercase;
            font-size: var(--text-h3);
            color: var(--ink);
            margin-bottom: 0.75rem;
        }
        .grid-empty button {
            margin-top: 1.5rem;
            font-family: 'Open Sans', sans-serif;
            font-size: var(--text-meta);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            background: var(--ink);
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            cursor: pointer;
            transition: background 200ms ease;
        }
        .grid-empty button:hover { background: var(--accent); }

        .load-more-wrap {
            display: flex;
            justify-content: center;
            margin-top: 3rem;
        }
        .load-more {
            font-family: 'Open Sans', sans-serif;
            font-size: var(--text-meta);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.14em;
            background: white;
            color: var(--ink);
            border: 1px solid var(--ink);
            padding: 1rem 2.25rem;
            cursor: pointer;
            transition: all 250ms ease;
        }
        .load-more:hover { background: var(--ink); color: white; }
        .load-more.hidden { display: none; }

        /* ---------------- CTA + FOOTER (matches frontpage) ---------------- */
        .cta-section {
            position: relative;
            background: var(--ink) url('assets/helsinki-harbor.jpg') center/cover no-repeat fixed;
            color: white;
            padding: 7rem 2rem;
            text-align: center;
            overflow: hidden;
            isolation: isolate;
        }
        .cta-section::before {
            content: ''; position: absolute; inset: 0;
            background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.65) 100%);
            z-index: -1;
        }
        .cta-inner { max-width: 720px; margin: 0 auto; }
        .cta-title {
            font-size: var(--fluid-h2);
            font-family: 'NORD', sans-serif;
            font-weight: 400; text-transform: uppercase;
            margin-bottom: 1rem; line-height: 1.2;
        }
        .cta-lede {
            font-family: 'Open Sans', sans-serif;
            font-size: var(--text-body); line-height: 1.65;
            color: rgba(255,255,255,0.85);
            margin: 0 auto 2.25rem; max-width: 540px;
        }
        .cta-button {
            display: inline-block;
            font-family: 'Open Sans', sans-serif;
            color: white; text-decoration: none;
            text-transform: uppercase; letter-spacing: 0.1em;
            font-size: var(--text-meta); font-weight: 700;
            border: 1px solid white;
            padding: 1rem 2.5rem;
            transition: all 200ms ease;
        }
        .cta-button:hover { background: white; color: var(--ink); }

        .footer {
            background: white;
            padding: 3rem 2rem 2rem;
            border-top: 1px solid var(--border);
        }
        .footer-content { margin: 0 auto; display: flex; justify-content: space-between; gap: 3rem; margin-bottom: 3rem; }
        .footer-section h4 {
            text-transform: uppercase;
            font-family: 'Open Sans', sans-serif;
            font-size: var(--text-lede); letter-spacing: 0;
            margin-bottom: 1.5rem;
            font-weight: 700;
        }
        .footer-section p, .footer-section a {
            font-size: var(--text-small); line-height: 1.8;
            color: var(--ink-soft); text-decoration: none;
        }
        .footer-section a:hover { color: var(--accent); }
        .footer-section--list a { position: relative; padding-left: 0; transition: color 200ms ease, padding-left 300ms cubic-bezier(0.4, 0, 0.2, 1); }
        .footer-section--list a::before {
            content: ''; position: absolute; left: 0; top: 50%;
            width: 0; height: 1px; background: var(--accent);
            transition: width 300ms cubic-bezier(0.4, 0, 0.2, 1);
        }
        .footer-section--list a:hover { padding-left: 18px; }
        .footer-section--list a:hover::before { width: 12px; }
        .footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
        .footer-logo { display: block; height: 32px; width: auto; margin-bottom: 1.25rem; }
        .footer-bottom {
            text-align: center; padding-top: 2rem;
            border-top: 1px solid var(--border);
            font-size: var(--text-meta); color: var(--ink-soft);
        }

        /* ---------------- RESPONSIVE ---------------- */
        @media (max-width: 1100px) {
            .projects-grid {
                grid-template-columns: repeat(2, 1fr);
                grid-auto-rows: clamp(220px, 34vw, 320px);
                gap: 10px;
            }
            .projects-grid > .project-card,
            .projects-grid > .project-card:nth-child(6n+1),
            .projects-grid > .project-card:nth-child(6n+2),
            .projects-grid > .project-card:nth-child(6n+5),
            .projects-grid > .project-card:nth-child(6n+6) { grid-column: span 1; }
        }
        @media (max-width: 900px) {
            .filterbar-inner { padding: 1rem 1.5rem; gap: 1rem; }
            .filter-controls { width: 100%; }
            .filter-search input { width: 100%; }
            .filter-search { flex: 1; }
            .results-meta { padding: 1.5rem 1.5rem 0; }
            .projects { padding: 1rem 1.5rem 4rem; }
            .page-banner-inner { padding: 0 1.5rem 2.5rem; }
        }
        @media (max-width: 720px) {
            .header { padding: 1rem 1.25rem; }
            .header::after { left: 1.25rem; right: 1.25rem; }
            .nav { display: none; }
            .lang-switcher { display: none; }
            .menu-toggle { display: block; }
            .page-banner { height: 38vh; min-height: 280px; }
            .filterbar-inner { padding: 0.85rem 1.25rem; gap: 0.85rem; }
            .filter-controls { gap: 1rem; flex-wrap: wrap; }
            .filter-dropdown-menu { right: auto; left: 0; min-width: 240px; }
            .projects-grid {
                grid-template-columns: 1fr;
                grid-auto-rows: 240px;
                gap: 8px;
            }
            .project-card-title { font-size: var(--text-lede); }
            .projects-grid > .project-card,
            .projects-grid > .project-card:nth-child(6n+1),
            .projects-grid > .project-card:nth-child(6n+2),
            .projects-grid > .project-card:nth-child(6n+5),
            .projects-grid > .project-card:nth-child(6n+6) { grid-column: 1 / -1; }
            .project-card-body { padding: 1.25rem; grid-template-rows: auto auto 1fr; }
            .project-card-ingress { opacity: 1; transform: none; padding-top: 0.4rem; font-size: var(--text-meta); }
            .footer-content { grid-template-columns: 1fr; gap: 2rem; }
            .cta-section { padding: 4.5rem 1.25rem; background-attachment: scroll; }
        }

        @media (prefers-reduced-motion: reduce) {
            * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
        }
        /* Button emphasis + arrow size (brief) */
        .cta-button, .form-submit, .load-more, .hero-btn, .btn-square { font-weight: 700; }
        .arrow, .btn-square-arrow { font-size: 1.35em; line-height: 1; display: inline-block; vertical-align: middle; }
    

/* ===== next style block ===== */

    /* Header fit fix: estä vaakavieritys kapeilla desktop-leveyksillä */
    @media (max-width: 1000px) { .lang-switcher { display: none; } }
    @media (max-width: 880px) { .nav { display: none; } .menu-toggle { display: block; } }
    

/* ===== next style block ===== */

    /* ============================================================
       FILTER VERSIONS — V1 (full-width panel) + V2 (left sidebar)
       + floating version switcher (asiakasvertailua varten)
       ============================================================ */

    /* V3-pudotusvalikot: vieritys kun valintoja yli 5 */
    .filter-dropdown-menu { max-height: 15rem; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
    .filter-dropdown-menu::-webkit-scrollbar { width: 5px; }
    .filter-dropdown-menu::-webkit-scrollbar-track { background: transparent; }
    .filter-dropdown-menu::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
    .filter-dropdown-menu:hover::-webkit-scrollbar-thumb { background: var(--muted); }
    /* ---- content layout wrapper (shared by both versions) ---- */
    .content-wrap { max-width: 1600px; margin: 0 auto; padding: 0 2rem; }
    .results-meta { max-width: none; margin: 0; padding: 2rem 0 0.5rem; }
    .projects { max-width: none; margin: 0; padding: 2rem 0 6rem; }
    .results-meta-left { display: flex; align-items: baseline; gap: 0.5rem 1.25rem; flex-wrap: wrap; }
    .results-active-tag { font-size: var(--text-meta); font-weight: 700; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
    .results-active-tag:empty { display: none; }
    .results-active-tag::before { content: "\2014"; margin-right: 0.55rem; color: var(--border); }
    @property --v2-col { syntax: '<length>'; inherits: false; initial-value: 264px; }
    body[data-fver="2"] .content-wrap {
        display: grid;
        --v2-col: 264px;
        grid-template-columns: var(--v2-col) minmax(0, 1fr);
        column-gap: 2.75rem;
        align-items: start;
        padding-top: 2rem;
        transition: --v2-col 440ms cubic-bezier(0.22, 1, 0.36, 1),
                    column-gap 440ms cubic-bezier(0.22, 1, 0.36, 1);
    }
    @media (min-width: 901px) {
        body[data-fver="2"].v2-collapsed .content-wrap { --v2-col: 0px; column-gap: 0rem; }
    }
    body[data-fver="2"] .results-meta { padding-top: 0; }

    /* ---- V1: filter toggle button ---- */
    .v1-filter-toggle {
        display: inline-flex; align-items: center; gap: 0.55rem;
        background: transparent; border: none; cursor: pointer;
        font-family: 'Open Sans', sans-serif; font-size: var(--text-meta); font-weight: 700;
        text-transform: uppercase; letter-spacing: 0.13em; color: var(--ink);
        padding: 0.4rem 0; line-height: 1.2; transition: color 200ms ease; white-space: nowrap;
    }
    .v1-filter-toggle:hover,
    .v1-filter-toggle.is-open { color: var(--accent); }
    .v1-filter-toggle .ft-icon { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; }
    .v1-filter-count {
        min-width: 19px; height: 19px; padding: 0 5px;
        display: inline-flex; align-items: center; justify-content: center;
        background: var(--accent); color: #fff;
        font-size: var(--text-micro); font-weight: 700; line-height: 1; letter-spacing: 0;
        border-radius: 999px; font-variant-numeric: tabular-nums;
    }
    .v1-filter-count[hidden] { display: none; }

    /* ---- V1: full-width panel ---- */
    .v1-panel { display: none; background: var(--bg-subtle); }
    .v1-panel.open { display: block; border-top: 1px solid var(--border); }
    .v1-panel.open .v1-panel-inner { animation: v1PanelIn 380ms cubic-bezier(0.22, 1, 0.36, 1) both; }
    @keyframes v1PanelIn { from { transform: translateY(-8px); } to { transform: translateY(0); } }
    .v1-panel-inner { max-width: 1600px; margin: 0 auto; padding: 2.75rem 2rem 2.5rem; }
    .v1-panel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 3.5rem; align-items: start; }

    .filter-group-head {
        font-family: 'Open Sans', sans-serif; font-size: var(--text-meta); font-weight: 700;
        text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted);
        margin-bottom: 1rem; display: flex; align-items: center; gap: 0.85rem;
    }
    .filter-group-head::after { content: ''; flex: 1; height: 1px; background: var(--border); }

    /* Pystysuora valintalista (ei laatikoita). Jos rivejä > 4, lista vierii. */
    .v1-opt-list {
        display: flex; flex-direction: column;
        max-height: 178px; overflow-y: auto; overscroll-behavior: contain;
        padding-right: 0.6rem;
        scrollbar-width: thin; scrollbar-color: var(--border) transparent;
    }
    .v1-opt-list::-webkit-scrollbar { width: 5px; }
    .v1-opt-list::-webkit-scrollbar-track { background: transparent; }
    .v1-opt-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
    .v1-opt-list:hover::-webkit-scrollbar-thumb { background: var(--muted); }
    .v1-opt {
        display: flex; align-items: baseline; gap: 0.7rem; width: 100%;
        background: none; border: none; cursor: pointer; text-align: left;
        padding: 0.6rem 0; line-height: 1.3;
        font-family: 'Open Sans', sans-serif; font-size: var(--text-small); font-weight: 400;
        color: var(--ink-soft); border-bottom: 1px solid var(--border);
        transition: color 160ms ease;
    }
    .v1-opt:last-child { border-bottom: none; }
    .v1-opt-label { flex: 1; }
    .v1-opt .opt-count { font-size: var(--text-meta); color: var(--muted); font-variant-numeric: tabular-nums; }
    .v1-opt:hover { color: var(--ink); }
    .v1-opt.active { color: var(--accent); font-weight: 700; }
    .v1-opt.active .opt-count { color: var(--accent); }

    .filter-clear-link {
        background: none; border: none; cursor: pointer;
        font-family: 'Open Sans', sans-serif; font-size: var(--text-micro);
        text-transform: uppercase; letter-spacing: 0.13em; font-weight: 700;
        color: var(--muted); display: inline-flex; align-items: center; gap: 0.4rem;
        transition: color 200ms ease; padding: 0;
    }
    .filter-clear-link::before { content: "\00d7"; font-size: var(--text-body); line-height: 0.7; font-weight: 400; }
    .filter-clear-link:hover { color: var(--accent); }
    .filter-clear-link[hidden] { display: none; }

    /* ---- V2: left sidebar ---- */
    .v2-sidebar {
        position: sticky; top: 96px; align-self: start; padding-bottom: 1rem;
        display: grid; grid-template-areas: "stack"; overflow: hidden;
    }
    .v2-sidebar-body { grid-area: stack; }
    .v2-sidebar-body { min-width: 220px; transition: opacity 280ms ease, transform 440ms cubic-bezier(0.22, 1, 0.36, 1); }
    body.v2-collapsed .v2-sidebar-body { opacity: 0; transform: translateX(-14px); pointer-events: none; }
    .v2-sidebar-head {
        display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
        font-family: 'NORD', sans-serif; font-weight: 400; text-transform: uppercase;
        font-size: var(--text-body); letter-spacing: 0.04em; color: var(--ink);
        padding-bottom: 1.1rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--ink);
    }
    .v2-collapse {
        flex: none; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
        background: none; border: none; cursor: pointer; color: var(--muted);
        transition: color 180ms ease, transform 180ms ease;
    }
    .v2-collapse svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
    .v2-collapse:hover { color: var(--accent); transform: translateX(-2px); }
    /* collapsed rail (reopen) */
    /* collapsed: vaakatasoinen SUODATA-nappi tuloslaskurin vieressä */
    .v2-rail {
        display: none; align-items: center; gap: 0.55rem;
        cursor: pointer; background: none; border: none; color: var(--ink);
        padding: 0; line-height: 1.2; white-space: nowrap;
        transition: color 200ms ease;
    }
    body.v2-collapsed .v2-rail { display: inline-flex; }
    .v2-rail-icon { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; }
    .v2-rail-label {
        font-family: 'NORD', sans-serif; font-weight: 400; font-size: var(--text-body);
        text-transform: uppercase; letter-spacing: 0.04em; line-height: 1;
        transform: translateY(2px);
    }
    .v2-rail:hover { color: var(--accent); }
    .v2-search { max-width: none; margin-bottom: 1.9rem; }
    .v2-group { margin-bottom: 1.9rem; }
    .v2-list { display: flex; flex-direction: column; }
    .v2-opt {
        display: flex; align-items: center; gap: 0.7rem; width: 100%; text-align: left;
        background: none; border: none; padding: 0.5rem 0; cursor: pointer;
        font-family: 'Open Sans', sans-serif; font-size: var(--text-small); color: var(--ink-soft);
        line-height: 1.35; transition: color 160ms ease;
    }
    .v2-box { width: 13px; height: 13px; flex: none; border: 1px solid var(--muted); transition: all 160ms ease; }
    .v2-label { flex: 1; }
    .v2-count { font-size: var(--text-meta); color: var(--muted); font-variant-numeric: tabular-nums; }
    .v2-opt:hover { color: var(--ink); }
    .v2-opt:hover .v2-box { border-color: var(--ink); }
    .v2-opt.active { color: var(--accent); font-weight: 700; }
    .v2-opt.active .v2-box { background: var(--accent); border-color: var(--accent); }
    .v2-opt.active .v2-count { color: var(--accent); }
    .v2-clear { margin-top: 0.5rem; }

    /* ---- valintamerkit: pallukat-versio (hennot ympyrät, aktiivinen korostuu) ---- */
    body[data-vshape="dots"] .v2-box {
        width: 9px; height: 9px; border-radius: 50%;
        margin: 0 3px 0 4px;
    }
    body[data-vshape="dots"] .v2-opt.active .v2-box {
        background: var(--accent); border-color: var(--accent);
    }

    /* ---- floating version switcher (demo control) ---- */
    .verswitch {
        position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
        z-index: 300; display: flex; align-items: center; gap: 0.9rem;
        background: rgba(18, 18, 18, 0.92);
        backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%);
        color: #fff; padding: 0.5rem 0.5rem 0.5rem 1.15rem;
        border-radius: 999px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.30);
    }
    .verswitch-label {
        font-family: 'Open Sans', sans-serif; font-size: var(--text-micro); font-weight: 700;
        text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.92);
        display: flex; flex-direction: column; line-height: 1.2;
    }
    .verswitch-label small { font-size: var(--text-micro); font-weight: 700; letter-spacing: 0.18em; color: rgba(255, 255, 255, 0.45); }
    .verswitch-seg { display: flex; background: rgba(255, 255, 255, 0.10); border-radius: 999px; padding: 3px; }
    .verswitch-btn {
        appearance: none; border: none; cursor: pointer; background: transparent;
        color: rgba(255, 255, 255, 0.7); font-family: 'Open Sans', sans-serif;
        font-size: var(--text-micro); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
        padding: 0.5rem 1.05rem; border-radius: 999px; transition: all 200ms ease; white-space: nowrap;
    }
    .verswitch-btn:hover { color: #fff; }
    .verswitch-btn.active { background: #fff; color: #141414; }

    /* ---- responsive ---- */
    @media (max-width: 1100px) {
        body[data-fver="2"] .content-wrap { --v2-col: 220px; column-gap: 2rem; }
    }
    @media (max-width: 900px) {
        .content-wrap { padding: 0 1.5rem; }
        .results-meta { padding: 1.5rem 0 0.5rem; }
        .projects { padding: 1rem 0 4rem; }
        .v1-panel-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
        body[data-fver="2"] .content-wrap { grid-template-columns: 1fr; row-gap: 0.5rem; padding-top: 1.5rem; }
        .v2-sidebar { position: static; padding-bottom: 0; display: block; overflow: visible; }
        .v2-sidebar-body { min-width: 0; opacity: 1 !important; transform: none !important; pointer-events: auto !important; }
        .v2-collapse, .v2-rail { display: none; }
    }
    @media (max-width: 720px) {
        .content-wrap { padding: 0 1.25rem; }
        .v1-panel-grid { grid-template-columns: 1fr; }
        .v1-panel-inner { padding: 1.75rem 1.25rem 1.5rem; }
        .verswitch { left: 1rem; right: 1rem; bottom: 1rem; transform: none; justify-content: space-between; padding: 0.45rem 0.5rem 0.45rem 1rem; }
        .verswitch-btn { padding: 0.5rem 0.8rem; font-size: var(--text-micro); }
    }
    

/* ===== next style block ===== */

    /* === Typografian yhtenäistys (palaverin kohta 6) ===
       Yksi tyyli per rooli koko sivustolle. Sijoitettu bodyn loppuun jotta
       voittaa aiemmat hajanaiset säännöt samalla spesifisyydellä. */
    /* Hero-eyebrow: identtinen koko, paino ja viiva kaikilla sivuilla */
    .page-banner-eyebrow { font-weight: 400; color: rgba(255,255,255,0.95); margin-bottom: 1rem; }
    .page-banner-eyebrow::before { width: 28px; height: 1px; background: rgba(255,255,255,0.7); }
    /* Tuntomerkit-osio: ei viivaa ylimmän rivin yläpuolelle */
    .feature-row:nth-child(1), .feature-row:nth-child(2) { border-top: none; padding-top: 0; }
    @media (max-width: 760px) { .feature-row:nth-child(2) { border-top: 1px solid var(--border); padding-top: 1.75rem; } }
    /* Suunnitteluprosessi: ei yläviivaa askeleissa desktopilla */
    @media (min-width: 901px) { .service-process .process-step { border-top: none; padding-top: 0; } }
    /* Sisältökorttien otsikot: yhtenäinen uppercase Open Sans (sama kaikkialla) */
    .value-card h3, .feature-row h3, .process-step h3 {
        font-family: 'Open Sans', sans-serif; font-weight: 700; font-size: var(--text-lede);
        text-transform: uppercase; letter-spacing: 0.08em; line-height: 1.3;
    }
    /* Referenssi-/projektikorttien otsikot yhtenäiseksi */
    .related-card-title {
        font-family: 'NORD', sans-serif; font-weight: 400; font-size: var(--text-h3);
        text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.1;
    }
    /* Painikkeet: yksi paino */
    .cta-button { font-weight: 700; }
    /* Navigaatio: yksi koko/paino kaikilla sivuilla */
    .nav-link, .nav-item { font-size: var(--text-small); font-weight: 400; }
    
