/* Yritys page styles — VERBATIM from design-source GI - Yritys.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;
            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 ===== */

        /* ---- New page shared styles ---- */
        .page-section { max-width: 1600px; margin: 0 auto; padding: 7rem 2rem; }
        .page-grid { display: grid; grid-template-columns: 200px 1fr; gap: 5rem; align-items: start; }
        .page-eyebrow { position: sticky; top: 7rem; font-family:'Open Sans',sans-serif; font-size:var(--text-small); text-transform:uppercase; letter-spacing:0.18em; font-weight:700; color:var(--accent); }
        .page-eyebrow::before { content:""; display:block; width:32px; height:1px; background:var(--accent); margin-bottom:1rem; }
        .page-body { min-width:0; }
        .page-body h2 { font-family:'NORD',sans-serif; font-weight:400; text-transform:uppercase; font-size:var(--fluid-title); line-height:1.1; color:var(--ink); margin:0 0 1.75rem; max-width:20ch; }
        .page-body h3 { font-family:'Open Sans',sans-serif; font-weight:700; font-size:var(--text-h3); color:var(--ink); margin:2.5rem 0 1rem; }
        .page-body p { font-family:'Open Sans',sans-serif; font-size:var(--text-body); line-height:1.8; color:var(--ink-soft); margin:0 0 1.5rem; max-width:64ch; }
        .page-body .lead-para { font-size:var(--text-body); line-height:1.7; color:var(--ink); font-weight:400; margin-bottom:1.5rem; }
        .page-body ul { margin:0 0 1.5rem; padding-left:1.2rem; max-width:64ch; }
        .page-body li { font-family:'Open Sans',sans-serif; font-size:var(--text-body); line-height:1.8; color:var(--ink-soft); margin-bottom:0.6rem; }

        .stats-band { background:var(--bg-subtle); border-top:1px solid var(--border); border-bottom:1px solid var(--border); padding:5rem 2rem; }
        .stats-inner { max-width: 1600px; margin:0 auto; display:grid; grid-template-columns:repeat(4,1fr); gap:2.5rem; }
        .stat-num { font-family:'NORD',sans-serif; font-weight:400; font-size:var(--fluid-h2); letter-spacing:-0.02em; line-height:1; color:var(--ink); margin-bottom:0.85rem; }
        .stat-label { font-family:'Open Sans',sans-serif; font-size:var(--text-meta); line-height:1.5; color:var(--muted); }

        .split-section { max-width: 1600px; margin:0 auto; padding:0 2rem 7rem; display:grid; grid-template-columns:1fr 1fr; gap:4.5rem; align-items:center; }
        .split-media { aspect-ratio:4/3; overflow:hidden; background:var(--bg-subtle); }
        .split-media img { width:100%; height:100%; object-fit:cover; display:block; }
        /* Tiimikuvagalleria — vaihtuva kuvakierto, vakio kuvasuhde (crop) */
        .team-gallery { position:relative; overflow:hidden; background:var(--ink); }
        .team-gallery img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition:opacity 900ms ease; }
        .team-gallery img.active { opacity:1; }
        .team-gallery::after { content:""; position:absolute; left:0; right:0; bottom:0; height:90px; background:linear-gradient(180deg, transparent, rgba(0,0,0,0.38)); pointer-events:none; }
        .team-gallery-dots { position:absolute; left:0; right:0; bottom:1.1rem; display:flex; justify-content:center; gap:0.5rem; z-index:2; }
        .team-gallery-dot { width:8px; height:8px; border-radius:50%; border:none; padding:0; background:rgba(255,255,255,0.45); cursor:pointer; transition:background .2s ease, transform .2s ease; }
        .team-gallery-dot:hover { background:rgba(255,255,255,0.8); }
        .team-gallery-dot.active { background:#fff; transform:scale(1.25); }
        .split-text .section-eyebrow { margin-bottom:1.25rem; }
        .split-text p { font-family:'Open Sans',sans-serif; font-size:var(--text-body); line-height:1.8; color:var(--ink-soft); margin:0 0 1.25rem; }

        .section-eyebrow { font-family:'Open Sans',sans-serif; font-size:var(--text-small); text-transform:uppercase; letter-spacing:0.22em; font-weight:700; color:var(--accent); }
        .section-title { font-family:'NORD',sans-serif; font-weight:400; text-transform:uppercase; font-size:var(--fluid-title); line-height:1.1; color:var(--ink); margin:0 0 1rem; }

        .values-section { max-width: 1600px; margin:0 auto; padding:7rem 2rem; }
        .values-head { margin-bottom:3rem; max-width:60ch; }
        .values-head .section-title { margin-top:1.25rem; }
        .values-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }
        .value-card { background:var(--bg-subtle); border:1px solid var(--border); padding:2.5rem 2rem; transition:border-color .25s ease, transform .4s cubic-bezier(.22,1,.36,1); }
        .value-card:hover { border-color:var(--ink); transform:translateY(-4px); }
        .value-card h3 { font-family:'NORD',sans-serif; font-weight:400; text-transform:uppercase; font-size:var(--text-lede); color:var(--ink); margin:0 0 1rem; line-height:1.15; }
        .value-card p { font-family:'Open Sans',sans-serif; font-size:var(--text-small); line-height:1.8; color:var(--ink-soft); margin:0; }

        .eaa-band { background:var(--ink); color:white; padding:5.5rem 2rem; }
        .eaa-inner { max-width:1000px; margin:0 auto; text-align:center; display:flex; flex-direction:column; align-items:center; gap:1.75rem; }
        .eaa-inner img { height:60px; width:auto; filter:brightness(0) invert(1); opacity:0.92; }
        .eaa-inner p { font-family:'Open Sans',sans-serif; font-size:var(--text-body); line-height:1.8; color:rgba(255,255,255,0.8); max-width:62ch; margin:0; }
        .eaa-inner a { color:white; text-decoration:underline; text-underline-offset:3px; }

        .btn-accent { display:inline-flex; align-items:center; gap:0.75rem; padding:1rem 2.5rem; background:var(--accent); color:white; font-family:'Open Sans',sans-serif; font-size:var(--text-meta); font-weight:700; text-transform:uppercase; letter-spacing:0.14em; border:none; cursor:pointer; text-decoration:none; position:relative; overflow:hidden; isolation:isolate; transition:color .25s ease; }
        .btn-accent::before { content:""; position:absolute; inset:0; background:var(--ink); transform:translateX(-101%); transition:transform .45s cubic-bezier(.22,1,.36,1); z-index:-1; }
        .btn-accent:hover { color:white; }
        .btn-accent:hover::before { transform:translateX(0); }

        [data-reveal] { opacity:0; transform:translateY(24px); transition:opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
        [data-reveal].in { opacity:1; transform:none; }
        @media (prefers-reduced-motion: reduce) { [data-reveal] { opacity:1; transform:none; } }

        @media (max-width:900px) {
            .page-section { padding:4rem 1.5rem; }
            .page-grid { grid-template-columns:1fr; gap:2rem; }
            .page-eyebrow { position:static; }
            .split-section { grid-template-columns:1fr; gap:2rem; padding:0 1.5rem 4rem; }
            .values-section { padding:4rem 1.5rem; }
            .values-grid { grid-template-columns:1fr; }
        }
        @media (max-width:760px) {
            .stats-inner { grid-template-columns:1fr 1fr; gap:2rem; }
        }
    

/* ===== next style block ===== */
.page-banner-bg { background-image: url('assets/yritys-hero-toimisto.jpg'); background-position: center; }

/* ===== 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 ===== */

    /* === 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; }
    
