/* portfolio.css — extracted from portfolio.php, no visual change */
        :root {
            color-scheme: dark;
            --thumb: 4 / 3;
            --max: 1152px;
            --gutter: 10vw;
            --logo-size: 26px;
            --spine-x: calc(var(--logo-size) / 2);
            --gap: 16px;
            --year-space: 48px;
            --year-pad-top: 41px;
            --scale: 1.024;
            --node: 19px;
            --node-stroke: 3px;
            --node-hole: 6.5px;
            --inset: 32px;
            --frame-left: calc(var(--spine-x) + (var(--node) / 2) + 18px);
        }
        * { box-sizing: border-box; }
        body {
            margin: 0;
            color: #f4f6fb;
            font-family: Outfit, sans-serif;
            background: #000;
        }
        .pack { position: relative; }
        .wrap {
            position: relative;
            width: min(var(--max), calc(100% - (var(--gutter) * 2)));
            margin-inline: auto;
        }
        .year .wrap::before {
            content: "";
            position: absolute;
            left: calc(var(--spine-x) - 0.5px);
            top: calc(var(--year-pad-top) * -1);
            bottom: calc(var(--year-space) * -1);
            width: 1px;
            background: rgba(255,255,255,0.34);
            pointer-events: none;
            z-index: 2;
            /* Gap the spine through the node hole so the wash shows, not the line. */
            --punch-y: calc(var(--year-pad-top) + 24px);
            -webkit-mask-image: radial-gradient(circle var(--node-hole) at 50% var(--punch-y), transparent var(--node-hole), #000 calc(var(--node-hole) + 0.5px));
            mask-image: radial-gradient(circle var(--node-hole) at 50% var(--punch-y), transparent var(--node-hole), #000 calc(var(--node-hole) + 0.5px));
        }
        .year:last-child .wrap::before {
            bottom: 0;
            background: linear-gradient(
                to bottom,
                rgba(255,255,255,0.34),
                rgba(255,255,255,0.34) calc(100% - 140px),
                transparent
            );
        }
        .year {
            position: relative;
            isolation: isolate;
            padding: var(--year-pad-top) 0 var(--year-space);
        }
        .ambient {
            position: absolute;
            inset: 0;
            z-index: 0;
            pointer-events: none;
            overflow: hidden;
        }
        .ambient img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: blur(80px) saturate(1.65);
            opacity: 0.4;
            transform: scale(1.15);
        }
        .year > *:not(.ambient) { position: relative; z-index: 1; }

        .year-head {
            display: flex;
            align-items: center;
            margin-bottom: 26px;
            min-height: 48px;
            padding-left: calc(var(--frame-left) + var(--inset));
            padding-right: var(--inset);
            position: relative;
        }
        .node {
            position: absolute;
            left: var(--spine-x);
            top: 50%;
            width: var(--node);
            height: var(--node);
            transform: translate(-50%, -50%);
            box-sizing: border-box;
            border-radius: 50%;
            border: var(--node-stroke) solid #f4f6fb;
            background: transparent;
            z-index: 3;
        }
        .year-head h2 {
            margin: 0;
            font-weight: 500;
            font-synthesis: none;
            font-size: 48px;
            letter-spacing: -0.03em;
            line-height: 1;
        }
        .count {
            margin-left: auto;
            font-size: 24px;
            font-weight: 300;
            opacity: 0.55;
        }

        .glass {
            background: rgba(255,255,255,0.07);
            border: 1px solid rgba(255,255,255,0.14);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
        }
        .hi {
            display: block;
            position: relative;
            border-radius: 24px;
            color: inherit;
            text-decoration: none;
            transform-origin: 50% 50%;
            transition: transform 280ms cubic-bezier(.2,.8,.2,1), box-shadow 280ms ease;
        }
        .hi-clip {
            position: relative;
            border-radius: 24px;
            background: #111;
            clip-path: inset(0 round 24px);
        }
        .hi .visual {
            position: relative;
            width: 100%;
            aspect-ratio: 13 / 8;
            max-height: 28rem;
            background: #111;
        }
        .hi .visual img,
        .card .visual img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            display: block;
            opacity: 1;
            transition: opacity 220ms ease;
        }
        .card .visual img {
            transform: scale(1.001);
            transition: opacity 220ms ease, transform 420ms ease;
        }
        .visual.is-wait > img { opacity: 0; }
        .thumb-wait {
            position: absolute;
            inset: 0;
            display: grid;
            place-items: center;
            opacity: 0;
            pointer-events: none;
            z-index: 1;
            transition: opacity 180ms ease;
        }
        .visual.is-wait .thumb-wait { opacity: 1; }
        .hi-bar {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 3;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            height: 68px;
            padding: 0 28px;
            overflow: hidden;
            background: rgba(10, 10, 12, 0.38);
        }
        .hi-bar-wash {
            position: absolute;
            inset: -48px;
            z-index: 0;
            pointer-events: none;
        }
        .hi-bar-wash img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: blur(40px) saturate(1.7);
            transform: scale(1.08);
        }
        .hi-bar::after {
            content: "";
            position: absolute;
            inset: 0;
            background: rgba(8, 8, 10, 0.18);
            pointer-events: none;
            z-index: 0;
        }
        .hi-stroke {
            position: absolute;
            inset: 0;
            border-radius: 24px;
            border: var(--frame-stroke) solid var(--frame-stroke-c);
            pointer-events: none;
            z-index: 6;
            box-sizing: border-box;
        }
        .hi, .feat, .rest, .more {
            margin-left: var(--frame-left);
            width: calc(100% - var(--frame-left));
            max-width: 100%;
        }
        .hi-bar h3,
        .hi-bar .chip { position: relative; z-index: 1; }
        .hi-bar h3 {
            margin: 0;
            min-width: 0;
            font-size: 28px;
            font-weight: 500;
            letter-spacing: 0.04em;
            line-height: 1;
            text-transform: uppercase;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .hi-bar .chip {
            flex: none;
            max-width: 55%;
            font-size: 12px;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            text-align: right;
            opacity: 0.72;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .feat, .rest {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: var(--gap);
            margin-top: var(--gap);
        }
        .feat, .rest { align-items: stretch; }
        .card {
            border-radius: 16px;
            display: flex;
            flex-direction: column;
            height: 100%;
            color: inherit;
            text-decoration: none;
            transform-origin: 50% 50%;
            transform: translateZ(0);
            backface-visibility: hidden;
            transition: transform 280ms cubic-bezier(.2,.8,.2,1), box-shadow 280ms ease;
            background: rgba(255,255,255,0.07);
            border: 0;
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
        }
        .card-clip {
            position: relative;
            display: flex;
            flex-direction: column;
            flex: 1;
            height: 100%;
            border-radius: 16px;
            overflow: hidden;
        }
        .card .frame-stroke { border-radius: 16px; }
        .card .visual {
            position: relative;
            aspect-ratio: var(--thumb);
            overflow: hidden;
            border-radius: 16px 16px 0 0;
            background: #16181f;
        }
        .card .body {
            padding: 12px 16px 14px;
            flex: 1;
        }
        .card small {
            display: block;
            opacity: 0.5;
            font-size: 12px;
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }
        .card h4 { margin: 0.15rem 0 0; font-weight: 500; font-size: 18px; text-transform: uppercase; }

        .sheen {
            pointer-events: none;
            position: absolute;
            inset: 0;
            opacity: 0;
            mix-blend-mode: screen;
            background: linear-gradient(to bottom left, rgba(255,255,255,0.58) 0%, rgba(255,255,255,0) 38%);
            transform: translate(18%, -18%);
            transition: opacity 280ms ease, transform 420ms ease;
            z-index: 2;
            border-radius: inherit;
        }
        .hi:hover,
        .card:hover {
            transform: translateY(-4px) scale(var(--scale)) translateZ(0);
            box-shadow: 0 16px 28px rgba(18, 22, 30, 0.32);
        }
        .hi:hover .sheen,
        .card:hover .sheen { opacity: 1; transform: translate(0, 0); }

        .more {
            overflow-anchor: none;
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: var(--gap);
            border-radius: 14px;
            padding: 10px 14px;
            color: inherit;
            font: inherit;
            font-size: 14px;
            text-align: left;
            cursor: pointer;
            background: rgba(255,255,255,0.05);
            border: 1px dashed rgba(255,255,255,0.28);
        }
        .chev {
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 5px 0 5px 7px;
            border-color: transparent transparent transparent currentColor;
            flex: none;
            transition: transform 200ms ease;
        }
        .year.open .chev { transform: rotate(90deg); }
        .rest { display: none; }
        .year.open .rest { display: grid; }
        .wide-only { display: inline; }
        .narrow-only { display: none; }
        @media (min-width: 900px) {
            .rest .from-featured { display: none; }
            .collapse-when-narrow { display: none; }
        }
        @media (max-width: 899px) {
            :root { --gutter: 5vw; }
            .year .wrap::before, .node { display: none; }
            .hi, .feat, .rest, .more { margin-left: 0; width: 100%; }
            .year-head { padding-inline: 16px; min-height: 36px; }
            .year-head h2 { font-size: 36px; }
            .count { font-size: 18px; }
            .feat, .year.open .rest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .feat .card:nth-child(n+3) { display: none; }
            .wide-only { display: none; }
            .narrow-only { display: inline; }
            .hi .visual { max-height: 16rem; }
            .hi-bar {
                justify-content: space-between;
                align-items: center;
                height: auto;
                min-height: 52px;
                padding: 14px;
                gap: 8px;
            }
            .hi-bar h3 { font-size: 20px; }
            .hi-bar .chip {
                flex: 0 1 auto;
                max-width: 58%;
                font-size: 10px;
                letter-spacing: 0.04em;
                white-space: normal;
                line-height: 1.3;
                text-align: right;
            }
        }


.page-portfolio .scene { padding-top: var(--nav-h); }
.page-portfolio .site-foot { position: relative; z-index: 3; }
html:has(.page-portfolio),
body.page-portfolio {
    overflow-x: hidden;
}
.page-portfolio .scene,
.page-portfolio .pack {
    overflow-x: clip;
    max-width: 100%;
}

