
        /* =====================================================
           Same style system as homepage (trimmed to essentials)
           ===================================================== */
        *, *::before, *::after {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            /* Safari on iOS inflates text inside any block wider than the viewport,
               so a page carrying a wide diagram gets larger body copy than a page
               without one — which is why Barcrest and OneFile did not match Software
               Creations on a phone despite identical type rules. The diagrams still
               scroll sideways inside their own figure; only the automatic inflation
               is switched off, so every page now sizes text the same way. */
            -webkit-text-size-adjust: 100%;
            text-size-adjust: 100%;
        }

        body {
            margin: 0;
            font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
            line-height: 1.5;
            color: #111;
            background: #fff;
        }

        img {
            max-width: 100%;
            display: block;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        a:focus-visible {
            outline: 3px solid #111;
            outline-offset: 2px;
        }

        .container {
            width: min(1100px, 100% - 2rem);
            margin-inline: auto;
        }

        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        /* Parallax background layers */
        .parallax-layer {
            position: fixed;
            inset: 0;
            z-index: -3;
            background-size: cover;
            background-position: center;
            transform: translate3d(0, 0, 0);
            will-change: transform;
        }

        .parallax-layer.layer-1 {
            z-index: -3;
            opacity: 0.75;
        }

        .parallax-layer.layer-2 {
            z-index: -2;
            opacity: 0.35;
            mix-blend-mode: multiply;
        }

        .parallax-layer.layer-3 {
            z-index: -1;
            opacity: 0.20;
            mix-blend-mode: overlay;
        }

        .page-overlay {
            position: fixed;
            inset: 0;
            z-index: -1;
            pointer-events: none;
            background: linear-gradient(180deg, rgba(0, 0, 0, .50), rgba(0, 0, 0, .15) 45%, rgba(255, 255, 255, .85) 78%, rgba(255, 255, 255, .98));
        }

        /* Hero */
        header.hero {
            padding-top: 1rem;
        }

        .hero-card {
            border-radius: 18px;
            overflow: hidden;
            box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
            background: rgba(255, 255, 255, .92);
            backdrop-filter: blur(6px);
        }

        .hero-media {
            position: relative;
            min-height: 260px;
        }

        .hero-media img {
            width: 100%;
            height: clamp(260px, 42vw, 420px);
            object-fit: cover;
            display: block;
        }

        /* Overlay image on hero header */
        .hero-media .hero-overlay-img {
            position: absolute;
            top: 1.2rem;
            left: 1.2rem;
            width: auto;
            height: 60%;
            object-fit: contain;
            background: #fff;
            border-radius: 16px;
            padding: 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
            pointer-events: none;
            z-index: 2;
            opacity: 0.98;
            border: 1px solid #eee;
            transition: width 0.2s, height 0.2s, top 0.2s, left 0.2s;
        }

        /* Prevent overlay from covering hero-badge */
        .hero-media {
            display: flex;
            align-items: flex-start;
            position: relative;
        }

        .hero-media img:not(.hero-overlay-img) {
            flex: 1 1 0%;
            min-width: 0;
        }

        .hero-badge {
            position: absolute;
            right: 1rem;
            bottom: 1rem;
            left: unset;
            z-index: 3;
            /* Add top margin to ensure badge sits below logo */
            margin-top: 110px;
        }

        @media (max-width: 900px) {
            .hero-media .hero-overlay-img {
                max-width: 38%;
                padding: 10px 10px 10px 10px;
                min-width: 54px;
            }
        }

        @media (max-width: 560px) {
            .hero-media .hero-overlay-img {
                max-width: 44%;
                padding: 4px 4px 4px 4px;
                min-width: 36px;
            }
        }

        @media (max-width: 900px) {
            .hero-media .hero-overlay-img {
                width: 68px;
                height: 68px;
                top: 0.7rem;
                left: 0.7rem;
                padding: 7px;
            }
        }

        @media (max-width: 560px) {
            .hero-media .hero-overlay-img {
                width: 48px;
                height: 48px;
                top: 0.4rem;
                left: 0.4rem;
                padding: 4px;
            }
        }

        .hero-badge {
            position: absolute;
            inset: auto 1rem 1rem 1rem;
            color: #fff;
            background: rgba(0, 0, 0, .55);
            padding: .85rem 1rem;
            border-radius: 14px;
            max-width: 70ch;
            box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
        }

        .hero-badge h1 {
            margin: 0 0 .35rem;
            font-size: clamp(1.25rem, 2.2vw + .6rem, 2.4rem);
            line-height: 1.15;
        }

        .hero-badge p {
            margin: 0;
            opacity: .95;
        }

        /* Primary link bar */
        nav.primary-links {
            background: rgba(255, 255, 255, .92);
            border-top: 1px solid rgba(0, 0, 0, .08);
            padding: .75rem;
        }

        .link-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
            gap: .5rem;
        }

        .link-grid a {
            display: grid;
            place-items: center;
            text-align: center;
            line-height: 1.25;
            padding: .55rem .4rem;
            border-radius: 12px;
            background: rgba(0, 0, 0, .04);
            font-size: .9rem;
            transition: transform .12s ease, background .12s ease;
        }

        /* The second line of a menu item: what the page is, for anybody who cannot tell from a
           one-word label. Small and quiet, so the label still reads as the link. */
        .link-grid a small {
            display: block;
            font-size: .72rem;
            font-weight: 400;
            opacity: .62;
            margin-top: .1rem;
        }


        .link-grid a:hover {
            background: rgba(0, 0, 0, .07);
            transform: translateY(-1px);
        }

        .link-grid a[aria-current="page"] {
            background: #111;
            color: #fff;
        }

        /* Sections */
        main {
            padding: 1.25rem 0 2.5rem;
        }

        .section {
            margin-top: 1.1rem;
            background: rgba(255, 255, 255, .92);
            border: 1px solid rgba(0, 0, 0, .08);
            border-radius: 18px;
            overflow: hidden;
            box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
        }

        .section-inner {
            padding: 1.25rem;
        }

        .section h2 {
            margin: 0 0 .75rem;
            font-size: 1.35rem;
            line-height: 1.2;
        }

        .muted {
            color: rgba(0, 0, 0, .72);
        }

        /* =====================================================
           Gallery controls
           ===================================================== */
        .controls {
            display: flex;
            gap: .75rem;
            align-items: center;
            flex-wrap: wrap;
        }

        .search {
            flex: 1 1 280px;
            display: flex;
            gap: .5rem;
            align-items: center;
            background: rgba(0, 0, 0, .04);
            border: 1px solid rgba(0, 0, 0, .08);
            border-radius: 14px;
            padding: .6rem .75rem;
        }

        .search input {
            width: 100%;
            border: 0;
            outline: none;
            background: transparent;
            font-size: 1rem;
        }

        /* The outline is off the field so the rounded wrapper can carry it instead — but something
           has to, or a keyboard user cannot see where they are. */
        .search:focus-within {
            outline: 3px solid #111;
            outline-offset: 2px;
        }

        /* Names a control for a screen reader without putting the words on screen. */
        .visually-hidden {
            position: absolute;
            width: 1px;
            height: 1px;
            margin: -1px;
            padding: 0;
            overflow: hidden;
            clip: rect(0 0 0 0);
            clip-path: inset(50%);
            white-space: nowrap;
            border: 0;
        }

        .chip-row {
            display: flex;
            gap: .5rem;
            flex-wrap: wrap;
        }

        .chip {
            border: 1px solid rgba(0, 0, 0, .12);
            background: rgba(0, 0, 0, .03);
            padding: .45rem .7rem;
            border-radius: 999px;
            font-size: .92rem;
            cursor: pointer;
            user-select: none;
        }

        .chip[aria-pressed="true"] {
            background: #111;
            color: #fff;
            border-color: rgba(0, 0, 0, .35);
        }

        /* =====================================================
           Gallery grid
           - Uses <figure> + <figcaption> for semantics (SEO)
           ===================================================== */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
            margin-top: 1rem;
        }

        .tile {
            border-radius: 16px;
            overflow: hidden;
            border: 1px solid rgba(0, 0, 0, .08);
            background: #fff;
            transition: transform .12s ease, box-shadow .12s ease;
        }

        .tile:hover {
            transform: translateY(-2px);
            box-shadow: 0 16px 30px rgba(0, 0, 0, .14);
        }

        .tile a {
            display: grid;
            height: 100%;
        }

        .tile img {
            width: 100%;
            height: 190px;
            object-fit: cover;
        }

        .tile figcaption {
            padding: .85rem .9rem 1rem;
        }

        .tile strong {
            display: block;
            font-size: 1rem;
            margin-bottom: .2rem;
        }

        .tile span {
            display: block;
            font-size: .92rem;
            color: rgba(0, 0, 0, .72);
        }

        /* =====================================================
           Lightbox (simple, accessible-ish)
           ===================================================== */
        dialog#lightbox {
            width: min(980px, calc(100% - 2rem));
            border: 0;
            padding: 0;
            border-radius: 18px;
            overflow: hidden;
            box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
        }

        dialog::backdrop {
            background: rgba(0, 0, 0, .6);
        }

        .lb-head {
            display: flex;
            justify-content: space-between;
            gap: 1rem;
            align-items: center;
            padding: .85rem 1rem;
            background: rgba(255, 255, 255, .96);
            border-bottom: 1px solid rgba(0, 0, 0, .08);
        }

        .lb-head strong {
            font-size: 1rem;
        }

        .lb-close {
            border: 1px solid rgba(0, 0, 0, .15);
            background: rgba(0, 0, 0, .04);
            border-radius: 12px;
            padding: .45rem .65rem;
            cursor: pointer;
            font-weight: 600;
        }

        .lb-media {
            background: #000;
        }

        .lb-media img {
            width: 100%;
            height: auto;
            max-height: 70vh;
            object-fit: contain;
        }

        .lb-body {
            padding: 1rem;
            background: rgba(255, 255, 255, .96);
        }

        /* Footer links block */
        footer {
            padding: 1.25rem 0 2rem;
        }

        .footer-links {
            background: rgba(255, 255, 255, .92);
            border: 1px solid rgba(0, 0, 0, .08);
            border-radius: 18px;
            box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
            overflow: hidden;
        }

        .all-links {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: .65rem;
            margin-top: .75rem;
        }

        .all-links a {
            display: block;
            padding: .5rem .6rem;
            border-radius: 12px;
            background: rgba(0, 0, 0, .04);
            font-size: .92rem;
        }

        .all-links a:hover {
            background: rgba(0, 0, 0, .07);
        }

        /* Mobile responsiveness */
        @media (max-width: 900px) {
            .link-grid {
                grid-template-columns: repeat(5, 1fr);
            }

            .gallery-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .all-links {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 560px) {
            .link-grid {
                display: flex;
                overflow-x: auto;
                gap: .5rem;
                padding-bottom: .25rem;
                scroll-snap-type: x mandatory;
            }

            .link-grid a {
                flex: 0 0 auto;
                min-width: 120px;
                scroll-snap-align: start;
                padding: .7rem .8rem;
                font-size: .95rem;
            }

            .gallery-grid {
                grid-template-columns: 1fr;
            }

            .all-links {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (prefers-reduced-motion: reduce) {
            html {
                scroll-behavior: auto;
            }

            .parallax-layer {
                will-change: auto;
            }

            .tile, .link-grid a {
                transition: none;
            }
        }

        /* =====================================================
           Breadcrumb - sits under the primary links in the header
           ===================================================== */
        nav.breadcrumb {
            background: rgba(255, 255, 255, .92);
            border-top: 1px solid rgba(0, 0, 0, .08);
            padding: .55rem .9rem;
        }

        nav.breadcrumb ol {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: .1rem .45rem;
            font-size: .88rem;
        }

        nav.breadcrumb li {
            display: flex;
            align-items: center;
            gap: .45rem;
            color: rgba(0, 0, 0, .62);
        }

        nav.breadcrumb li + li::before {
            content: "/";
            color: rgba(0, 0, 0, .3);
        }

        nav.breadcrumb a:hover {
            text-decoration: underline;
        }

        nav.breadcrumb [aria-current="page"] {
            color: #111;
            font-weight: 600;
        }

    