/* ==========================================================
           PAGE: skills.html
           ========================================================== */
        [data-page="skills"] {
            min-height: 100%;
            background: #060606;
            color: #F2F2F2;
            font-family: 'SF Pro Rounded', ui-rounded, -apple-system, BlinkMacSystemFont, sans-serif;
        }

        /* ---- top bar ---- */
        [data-page="skills"] .sk-topbar {
            position: absolute;
            top: 0; left: 0; right: 0;
            z-index: 5;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 30px 44px 0;
        }

        [data-page="skills"] .sk-nav { display: flex; gap: 54px; }

        [data-page="skills"] .sk-nav a {
            font-size: 15px;
            font-weight: 600;
            color: #F2F2F2;
            text-decoration: none;
            opacity: 0.92;
            transition: opacity 0.2s ease;
        }

        [data-page="skills"] .sk-nav a:hover { opacity: 0.55; }

        [data-page="skills"] .sk-handle {
            font-size: 15px;
            font-weight: 600;
            letter-spacing: 0.02em;
            color: #F2F2F2;
        }

        [data-page="skills"] .sk-spacer { width: 70px; }

        /* ---- hero ---- */
        [data-page="skills"] .sk-hero {
            position: relative;
            height: calc(100vh - 52px);
            min-height: 620px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* the name sits behind the portrait, split to the outer edges so the
           subject stands in the gap - the same composition as the reference */
        [data-page="skills"] .sk-name {
            position: absolute;
            z-index: 1;
            top: 47%;
            left: 0;
            right: 0;
            transform: translateY(-50%) scaleX(0.95);
            display: block;
            text-align: center;
            padding: 0 2vw;
            margin: 0;
            font-family: -apple-system, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
            font-weight: 900;
            font-size: clamp(52px, 17.5vw, 252px);
            line-height: 0.86;
            letter-spacing: -0.05em;
            color: #FFFFFF;
            white-space: nowrap;
            user-select: none;
        }

        /* The photo's own background is black, so it drops straight onto the page
           with no cut-out needed. The mask only feathers the frame edges away. */
        [data-page="skills"] .sk-portrait {
            position: absolute;
            z-index: 2;
            left: 50%;
            top: 2%;
            transform: translateX(-50%);
            height: 128%;
            width: auto;
            /* True alpha, so no mask is needed. The torso runs off the bottom of
               the hero the way the reference does - his shirt is black, so the
               clip is invisible against the page. */
            pointer-events: none;
        }

        /* no portrait file yet: hide the frame rather than showing a broken image */
        [data-page="skills"] .sk-portrait.missing { display: none; }

        [data-page="skills"] .sk-scrollcue {
            position: absolute;
            z-index: 5;
            bottom: 26px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 11px;
            letter-spacing: 0.2em;
            color: rgba(242, 242, 242, 0.4);
        }

        /* ---- skills grid ---- */
        [data-page="skills"] .sk-section {
            max-width: 1180px;
            margin: 0 auto;
            padding: 120px 56px 110px;
        }

        [data-page="skills"] .sk-sectionhead {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            border-top: 1px solid rgba(255, 255, 255, 0.13);
            padding-top: 34px;
            margin-bottom: 54px;
        }

        [data-page="skills"] .sk-sectionhead h2 {
            font-family: 'New York', ui-serif, 'Iowan Old Style', Georgia, serif;
            font-size: 34px;
            font-weight: 600;
            letter-spacing: -0.015em;
            margin: 0;
        }

        [data-page="skills"] .sk-sectionhead span {
            font-size: 12px;
            letter-spacing: 0.14em;
            color: rgba(242, 242, 242, 0.4);
        }

        [data-page="skills"] .sk-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 0;
            background: transparent;
            border-top: 1px solid rgba(255, 255, 255, 0.09);
            border-left: 1px solid rgba(255, 255, 255, 0.09);
        }

        [data-page="skills"] .sk-card {
            background: transparent;
            padding: 38px 34px 42px;
            border-right: 1px solid rgba(255, 255, 255, 0.09);
            border-bottom: 1px solid rgba(255, 255, 255, 0.09);
            transition: background 0.3s ease;
        }

        [data-page="skills"] .sk-card:hover { background: #0e0e10; }

        [data-page="skills"] .sk-card h3 {
            font-family: 'New York', ui-serif, 'Iowan Old Style', Georgia, serif;
            font-size: 22px;
            font-weight: 600;
            line-height: 1.25;
            letter-spacing: -0.01em;
            margin: 0 0 14px;
            color: #F2F2F2;
        }

        [data-page="skills"] .sk-card p {
            font-size: 14.5px;
            line-height: 1.75;
            color: rgba(242, 242, 242, 0.58);
            margin: 0;
        }

        [data-page="skills"] .sk-index {
            display: block;
            font-family: 'SF Mono', Monaco, monospace;
            font-size: 11px;
            letter-spacing: 0.12em;
            color: rgba(242, 242, 242, 0.3);
            margin-bottom: 18px;
        }

        @media (max-width: 820px) {
            [data-page="skills"] .sk-topbar { padding: 20px 22px 0; }
            [data-page="skills"] .sk-nav { display: none; }
            [data-page="skills"] .sk-section { padding: 80px 24px 70px; }
            [data-page="skills"] .sk-cards { grid-template-columns: 1fr; }

            /* The portrait is the hero's whole composition: the name reads
               through it at desktop width. On a phone it crops to a fragment
               and fights the wordmark, so the name stands alone. */
            [data-page="skills"] .sk-portrait { display: none; }
        }
