    :root {
        --bg: #fff8f0;
        --ink: #221833;
        --coral: #ff5d73;
        --tangerine: #ff9f1c;
        --lime: #8ac926;
        --sky: #1982c4;
        --grape: #6a4c93;
        /* Translucent, warm "darker-than-background" tint instead of solid ink —
           mirrors the multiply-blended .bg-icons so shadows read as the cream bg
           darkened, not a hard purple-black block. Tune lightness/alpha here. */
        --shadow-col: rgba(120, 102, 72, 0.18);
        /* Even lighter tint used on hover, paired with a down-right nudge. */
        --shadow-hover: rgba(150, 132, 98, 0.11);
        --card-shadow: 6px 6px 0 var(--shadow-col);
    }
    * { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
        font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
        background: var(--bg);
        color: var(--ink);
        line-height: 1.65;
    }
    img { max-width: 100%; }
    .wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }

    /* animated semiotic icon background; multiply blend means each icon is
       painted as a slightly-darker shade of whatever gradient is beneath it,
       so the tint adapts to the radial gradients without hardcoded colors */
    .bg-icons {
        position: fixed; inset: 0; z-index: 0;
        pointer-events: none; mix-blend-mode: multiply;
    }

    .skip-link {
        position: absolute; left: -9999px; top: 0; z-index: 100;
        background: var(--ink); color: #fff; padding: 0.6rem 1.2rem; font-weight: 700;
    }
    .skip-link:focus { left: 0; }

    nav.top {
        display: flex; justify-content: space-between; align-items: center;
        padding: 1.5rem 0; flex-wrap: wrap; gap: 1rem;
    }
    .logo {
        font-size: 1.4rem; font-weight: 800;
        background: var(--ink); color: #fff;
        padding: 0.3rem 1rem; border-radius: 12px;
        display: inline-block;
    }
    .nav-links { display: flex; gap: 0.6rem; list-style: none; flex-wrap: wrap; }
    .nav-links a {
        text-decoration: none; color: var(--ink); font-weight: 700; font-size: 0.85rem;
        border: 2px solid var(--ink); border-radius: 999px; padding: 0.35rem 1rem;
        background: #fff; transition: transform 0.15s, box-shadow 0.15s;
        display: inline-block;
    }
    .nav-links a:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow-hover); }
    .nav-links li:nth-child(1) a:hover { background: #ffe5e9; }
    .nav-links li:nth-child(2) a:hover { background: #fff1d6; }
    .nav-links li:nth-child(3) a:hover { background: #ecf7d4; }
    .nav-links li:nth-child(4) a:hover { background: #ddeefb; }
    .nav-links li:nth-child(5) a:hover { background: #ece4f6; }
    .nav-links li:nth-child(6) a:hover { background: #ffe5e9; }
    .nav-links li:nth-child(7) a:hover { background: #fff1d6; }

    .hero { padding: 5rem 0 4rem; text-align: center; }
    .hero .bubble {
        display: inline-flex; align-items: center;
        background: var(--lime); color: var(--ink);
        font-weight: 800; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
        border: 2px solid var(--ink); border-radius: 999px;
        padding: 0.5rem 1.2rem; margin-bottom: 1.75rem;
        box-shadow: 3px 3px 0 var(--shadow-col);
    }
    .hero h1 {
        font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 900;
        line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 1.5rem;
    }
    .hero h1 .w1 { color: var(--coral); }
    .hero p.sub { font-size: 1.15rem; max-width: 56ch; margin: 0 auto 2.5rem; font-weight: 600; }
    .btn {
        display: inline-block; text-decoration: none; font-weight: 800; font-size: 1rem;
        border: 2px solid var(--ink); border-radius: 14px; padding: 0.8rem 1.8rem;
        margin: 0 0.4rem 0.6rem; color: var(--ink);
        transition: transform 0.15s, box-shadow 0.15s;
        box-shadow: 4px 4px 0 var(--shadow-col); cursor: pointer;
        font-family: inherit; background: #fff;
    }
    .btn:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--shadow-hover); }
    .btn-coral { background: var(--coral); color: #fff; }
    .btn-white { background: #fff; }

    /* tech logo marquee; compositor-only animation: transform is the sole animated
       property, so the whole track moves on the GPU with zero layout/paint work */
    .marquee {
        margin: 3rem auto 0; max-width: 720px; overflow: hidden; position: relative;
        border: 2px solid var(--ink); border-radius: 16px; background: #fff;
        box-shadow: var(--card-shadow); padding: 1rem 0;
        contain: layout paint;
    }
    .marquee-track {
        display: flex; gap: 3rem; width: max-content; padding-left: 3rem;
        animation: scroll 22s linear infinite;
        will-change: transform;
        transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
    }
    .marquee:hover .marquee-track { animation-play-state: paused; }
    @keyframes scroll {
        from { transform: translate3d(0, 0, 0); }
        to { transform: translate3d(-50%, 0, 0); }
    }
    .marquee img { width: 44px; height: 44px; object-fit: contain; display: block; }
    .marquee::before, .marquee::after {
        content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2;
        pointer-events: none;
    }
    .marquee::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
    .marquee::after { right: 0; background: linear-gradient(270deg, #fff, transparent); }
    @media (prefers-reduced-motion: reduce) {
        .marquee-track { animation: none; }
    }

    section { padding: 4rem 0; }
    .section-tag {
        display: inline-block; font-weight: 800; font-size: 0.78rem;
        text-transform: uppercase; letter-spacing: 0.12em;
        border: 2px solid var(--ink); border-radius: 999px;
        padding: 0.3rem 1rem; margin-bottom: 1.2rem;
        box-shadow: 3px 3px 0 var(--shadow-col);
    }
    .tag-coral { background: var(--coral); color: #fff; }
    .tag-sky { background: var(--sky); color: #fff; }
    .tag-tangerine { background: var(--tangerine); }
    .tag-lime { background: var(--lime); }
    .tag-grape { background: var(--grape); color: #fff; }
    h2.sec { font-size: 2.1rem; font-weight: 900; margin-bottom: 1.25rem; letter-spacing: -0.02em; }
    .hl { padding: 0 0.25rem; border-radius: 4px; font-weight: 700; }
    .hl-y { background: #ffe9b3; }
    .hl-p { background: #ffd9e0; }
    .hl-g { background: #e3f5c5; }

    /* about grid + profile card */
    .about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 2.5rem; align-items: start; }
    .profile-card {
        border: 2px solid var(--ink); border-radius: 20px; background: #fff;
        box-shadow: var(--card-shadow); padding: 1.75rem; text-align: center;
        position: sticky; top: 1.5rem;
    }
    .profile-img {
        width: 170px; height: 170px; border-radius: 50%; object-fit: cover;
        border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--coral);
        margin-bottom: 1.1rem;
    }
    .profile-card h3 { font-size: 1.5rem; font-weight: 900; }
    .profile-title { font-weight: 700; color: var(--coral); margin-bottom: 0.6rem; }
    .profile-tagline { font-size: 0.9rem; margin-bottom: 1.25rem; }
    .social-list { display: flex; flex-direction: column; gap: 0.7rem; text-align: left; }
    .social-item {
        display: flex; align-items: center; gap: 0.8rem;
        border: 2px solid var(--ink); border-radius: 12px; background: var(--bg);
        padding: 0.6rem 0.9rem; text-decoration: none; color: var(--ink);
        transition: transform 0.15s, box-shadow 0.15s; cursor: pointer;
    }
    .social-item:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow-hover); background: #fff; }
    .social-item svg { width: 22px; height: 22px; flex-shrink: 0; }
    .social-name { font-weight: 800; font-size: 0.85rem; line-height: 1.2; }
    .social-handle { font-size: 0.75rem; word-break: break-all; }
    .social-arrow { margin-left: auto; font-weight: 800; }
    .copy-feedback { font-size: 0.72rem; color: var(--lime); font-weight: 800; opacity: 0; transition: opacity 0.3s; }
    .copy-feedback.show { opacity: 1; }

    .about-text p { max-width: 66ch; margin-bottom: 1rem; font-size: 1.05rem; }
    .about-text a { color: var(--sky); font-weight: 700; }

    /* project cards */
    .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; margin-top: 2rem; }
    .card {
        background: #fff; border: 2px solid var(--ink); border-radius: 18px;
        padding: 1.6rem; box-shadow: var(--card-shadow);
        transition: transform 0.15s, box-shadow 0.15s;
        text-decoration: none; color: inherit; display: flex; flex-direction: column;
    }
    .card:hover { transform: translate(-3px, -3px); box-shadow: 12px 12px 0 var(--shadow-hover); }
    .card:nth-child(5n+1) { background: #fff4f6; }
    .card:nth-child(5n+2) { background: #f0f7ff; }
    .card:nth-child(5n+3) { background: #fffaef; }
    .card:nth-child(5n+4) { background: #f4fff0; }
    .card:nth-child(5n+5) { background: #f8f3ff; }
    .card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.6rem; }
    .card p { font-size: 0.93rem; flex: 1; }
    .stamp {
        display: inline-block; font-size: 0.65rem; font-weight: 800; text-transform: uppercase;
        letter-spacing: 0.08em; border: 2px solid var(--ink); border-radius: 6px;
        padding: 0.1rem 0.5rem; margin-left: 0.4rem; vertical-align: middle;
        background: #eee;
    }
    .stamp.pub { background: var(--lime); }
    .techs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
    .tech {
        display: inline-flex; align-items: center; gap: 0.35rem;
        font-size: 0.72rem; font-weight: 700; border: 2px solid var(--ink);
        border-radius: 999px; padding: 0.15rem 0.6rem; background: #fff;
    }
    .tech img { width: 13px; height: 13px; }
    .cta-note { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.9rem; color: var(--grape); }

    /* project grouping: public-first */
    .group-label {
        display: inline-block; font-weight: 800; font-size: 0.85rem;
        text-transform: uppercase; letter-spacing: 0.1em;
        border: 2px solid var(--ink); border-radius: 12px;
        padding: 0.35rem 1rem; margin: 2.2rem 0 0.4rem;
        box-shadow: 3px 3px 0 var(--shadow-col);
    }
    .group-label.sketch { background: #ece4f6; }
    .subgroup { margin-top: 3.5rem; }
    .card.featured-public {
        grid-column: 1 / -1;
        background: #f4fff0 !important;
        border-width: 3px;
    }

    /* GitHub contribution graph */
    .contrib-card {
        border: 2px solid var(--ink); border-radius: 18px; background: #fff;
        box-shadow: var(--card-shadow); padding: 1.6rem; margin-top: 2.5rem;
    }
    .contrib-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.1rem; }
    .contrib-head h3 { font-size: 1.15rem; font-weight: 800; }
    .contrib-total { font-weight: 800; font-size: 0.85rem; color: var(--grape); }
    .contrib-scroll { overflow-x: auto; padding-bottom: 0.5rem; }
    .contrib-inner {
        display: grid; width: max-content; gap: 4px 6px;
        grid-template-areas: ". months" "days grid";
        grid-template-columns: auto 1fr;
    }
    .contrib-months {
        grid-area: months; display: grid; gap: 3px;
        font-size: 0.68rem; font-weight: 800; height: 1.1em;
    }
    .contrib-months span { grid-row: 1; white-space: nowrap; }
    .contrib-days {
        grid-area: days; display: grid;
        grid-template-rows: repeat(7, 12px); gap: 3px;
        font-size: 0.66rem; font-weight: 800; text-align: right;
        line-height: 12px; padding-right: 2px;
    }
    .contrib-grid {
        grid-area: grid;
        display: grid; grid-auto-flow: column;
        grid-template-rows: repeat(7, 12px);
        grid-auto-columns: 12px; gap: 3px; width: max-content;
    }
    .contrib-grid i {
        width: 12px; height: 12px; border-radius: 3.5px;
        background: #f0ead9;
    }
    .contrib-grid i.l1 { background: #d6ecae; }
    .contrib-grid i.l2 { background: #aedd6e; }
    .contrib-grid i.l3 { background: #8ac926; }
    .contrib-grid i.l4 { background: #5c9613; }
    .contrib-legend {
        display: flex; align-items: center; gap: 4px; justify-content: flex-end;
        margin-top: 0.7rem; font-size: 0.72rem; font-weight: 700;
    }
    .contrib-legend i { width: 12px; height: 12px; border-radius: 3.5px; display: inline-block; }
    .contrib-fallback { font-size: 0.9rem; }
    .contrib-fallback a { color: var(--sky); font-weight: 700; }

    /* game cards with screenshots */
    .game-card { padding: 0; overflow: hidden; }
    .game-shot {
        border-bottom: 2px solid var(--ink); aspect-ratio: 16/10; overflow: hidden;
        background: var(--ink); display: flex; align-items: center; justify-content: center;
    }
    .game-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s; }
    .card:hover .game-shot img { transform: scale(1.05); }
    .game-body { padding: 1.3rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }

    /* sketches */
    .sketch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1.6rem; margin-top: 2rem; }
    .sketch-card {
        background: #fff; border: 2px solid var(--ink); border-radius: 18px;
        box-shadow: var(--card-shadow); overflow: hidden; display: flex; flex-direction: column;
    }
    .sketch-thumb {
        position: relative; aspect-ratio: 16/10; border-bottom: 2px solid var(--ink);
        background: var(--ink); display: flex; align-items: center; justify-content: center;
        color: #fff; font-size: 3rem;
    }
    .sketch-thumb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.65; }
    .pc-badge {
        position: absolute; top: 0.7rem; left: 0.7rem; z-index: 3;
        background: var(--tangerine); border: 2px solid var(--ink); border-radius: 999px;
        font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
        padding: 0.15rem 0.6rem; color: var(--ink);
    }
    .play-overlay {
        position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
        align-items: center; justify-content: center; gap: 0.5rem;
        text-decoration: none; color: #fff; font-weight: 800; font-size: 0.85rem;
        background: rgba(34, 24, 51, 0.35); transition: background 0.2s;
        text-transform: uppercase; letter-spacing: 0.08em;
    }
    .play-overlay:hover { background: rgba(34, 24, 51, 0.6); }
    .play-button {
        width: 58px; height: 58px; border-radius: 50%; background: var(--coral);
        border: 2px solid #fff; display: flex; align-items: center; justify-content: center;
        font-size: 1.4rem; box-shadow: 3px 3px 0 rgba(0,0,0,0.4);
    }
    .sketch-body { padding: 1.3rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
    .sketch-body h3 { font-size: 1.15rem; font-weight: 800; }
    .sketch-body p { font-size: 0.93rem; }
    .controls {
        border: 2px dashed var(--ink); border-radius: 12px; padding: 0.8rem 1rem;
        background: var(--bg); font-size: 0.85rem;
    }
    .controls h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.4rem; color: var(--grape); }
    .controls ul { list-style: none; }
    .controls li { padding: 0.15rem 0; }
    kbd {
        background: var(--ink); color: #fff; border-radius: 5px; padding: 0.05rem 0.4rem;
        font-size: 0.78rem; font-family: monospace;
    }
    .sketch-link {
        align-self: flex-start; margin-top: auto;
        text-decoration: none; color: var(--ink); font-weight: 800; font-size: 0.8rem;
        border: 2px solid var(--ink); border-radius: 999px; padding: 0.3rem 0.9rem;
        background: #fff; transition: transform 0.15s, box-shadow 0.15s;
        text-transform: uppercase; letter-spacing: 0.06em;
    }
    .sketch-link:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--shadow-hover); background: #ecf7d4; }
    .sketch-card.placeholder {
        border-style: dashed; align-items: center; justify-content: center;
        text-align: center; padding: 2.5rem 1.5rem; background: transparent; box-shadow: none;
    }
    .sketch-card.placeholder h3 { font-weight: 800; opacity: 0.6; margin-bottom: 0.4rem; }
    .sketch-card.placeholder p { font-size: 0.9rem; opacity: 0.6; }

    /* skills */
    .skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.6rem; margin-top: 2rem; }
    .skill-col h3.col-title {
        font-size: 1.1rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em;
        margin-bottom: 1.2rem; text-align: center;
        border: 2px solid var(--ink); border-radius: 999px; padding: 0.4rem;
        box-shadow: 3px 3px 0 var(--shadow-col);
    }
    .skill-col:nth-child(1) h3.col-title { background: #ddeefb; }
    .skill-col:nth-child(2) h3.col-title { background: #ffe9b3; }
    .skill-col:nth-child(3) h3.col-title { background: #ffd9e0; }
    .skill-card {
        border: 2px solid var(--ink); border-radius: 16px; background: #fff;
        box-shadow: 4px 4px 0 var(--shadow-col); padding: 1.2rem 1.3rem; margin-bottom: 1.2rem;
        transition: transform 0.15s, box-shadow 0.15s;
    }
    .skill-card:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--shadow-hover); }
    .skill-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.5rem; }
    .skill-head img { width: 38px; height: 38px; object-fit: contain; }
    .skill-head h4 { font-size: 1.05rem; font-weight: 800; }
    .skill-level {
        display: inline-block; font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
        letter-spacing: 0.08em; border: 2px solid var(--ink); border-radius: 6px;
        padding: 0.08rem 0.5rem; margin-bottom: 0.55rem;
    }
    .lvl-expert { background: var(--coral); color: #fff; }
    .lvl-high { background: var(--tangerine); }
    .lvl-mid { background: #ddeefb; }
    .lvl-learn { background: #ece4f6; }
    .skill-card p { font-size: 0.85rem; }

    .center-cta { margin-top: 3rem; text-align: center; }

    /* contact */
    .contact-box {
        border: 2px solid var(--ink); border-radius: 24px;
        background: linear-gradient(120deg, #ffd9e0, #ffe9b3, #e3f5c5, #ddeefb);
        box-shadow: var(--card-shadow); padding: 3rem 2rem; text-align: center;
    }
    .contact-box p { max-width: 46ch; margin: 0 auto 2rem; font-size: 1.05rem; }

    footer { text-align: center; padding: 3rem 0; font-weight: 700; font-size: 0.85rem; }

    @media (max-width: 880px) {
        .about-grid { grid-template-columns: 1fr; }
        .profile-card { position: static; max-width: 420px; margin: 0 auto; }
    }
    @media (max-width: 600px) {
        .hero { padding: 3.5rem 0 3rem; }
        section { padding: 3rem 0; }
    }

/* ============================================================
   Cross-document view transitions (MPA).
   Every page linking this sheet opts in; thumbnails on listing
   pages share view-transition-names with game-page heroes, so
   the clicked card morphs into the hero on navigation.
   ============================================================ */
@view-transition { navigation: auto; }
::view-transition-group(*) {
    animation-duration: 0.45s;
    animation-timing-function: cubic-bezier(0.22, 0.9, 0.3, 1);
}
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.3s; }
@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
}

/* ============================================================
   Subpage template (game detail pages, games.html, sketches.html)
   ============================================================ */
.content-wrapper { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }

.site-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 0; flex-wrap: wrap; gap: 1rem;
}
.site-nav .logo {
    font-size: 1.4rem; font-weight: 800;
    background: var(--ink); color: #fff;
    padding: 0.3rem 1rem; border-radius: 12px;
    display: inline-block;
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 2px; }
@media (max-width: 700px) {
    .nav-toggle { display: block; }
    .site-nav .nav-links { display: none; width: 100%; flex-direction: column; }
    .site-nav .nav-links.open { display: flex; }
}

/* project hero */
.project-hero {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem;
    align-items: center; padding: 4rem 0 3rem;
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.hero-tag {
    display: inline-block; font-weight: 800; font-size: 0.72rem;
    text-transform: uppercase; letter-spacing: 0.1em;
    border: 2px solid var(--ink); border-radius: 999px;
    padding: 0.25rem 0.8rem; background: #fff;
    box-shadow: 2px 2px 0 var(--shadow-col);
}
.hero-meta .hero-tag:nth-child(1) { background: #ffe9b3; }
.hero-meta .hero-tag:nth-child(2) { background: #ddeefb; }
.hero-meta .hero-tag:nth-child(3) { background: #ffd9e0; }
.project-hero .hero-title {
    font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 900;
    line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 0.6rem;
}
.project-hero .hero-subtitle { font-size: 1.1rem; font-weight: 600; color: var(--grape); margin-bottom: 1.6rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.stat-item {
    border: 2px solid var(--ink); border-radius: 14px; background: #fff;
    box-shadow: 4px 4px 0 var(--shadow-col); padding: 0.7rem 1.1rem;
    display: flex; flex-direction: column; min-width: 96px;
}
.stat-value { font-weight: 900; font-size: 1.05rem; }
.stat-label { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--grape); }
.hero-visual {
    border: 2px solid var(--ink); border-radius: 18px; overflow: hidden;
    box-shadow: var(--card-shadow); background: var(--ink);
    aspect-ratio: 16 / 10;
}
.hero-visual img, .hero-visual iframe, .hero-media-placeholder, .hero-media-placeholder iframe {
    width: 100%; height: 100%; display: block; border: 0; object-fit: cover;
}
@media (max-width: 820px) { .project-hero { grid-template-columns: 1fr; padding-top: 2.5rem; } }

/* sections */
.project-main { padding-bottom: 2rem; }
.project-section { padding: 2.6rem 0; }
.section-header { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.8rem; }
.section-title { font-size: 1.7rem; font-weight: 900; letter-spacing: -0.01em; white-space: nowrap; }
.dashed-line { flex: 1; border-top: 3px dashed var(--ink); opacity: 0.35; }
.two-column-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 760px) { .two-column-grid { grid-template-columns: 1fr; } }
.lead-text { font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; }
.text-content p { margin-bottom: 1rem; }

.stat-card {
    border: 2px solid var(--ink); border-radius: 16px; background: #fff;
    box-shadow: var(--card-shadow); padding: 1.4rem 1.5rem;
}
.stat-card h3 { font-weight: 900; margin-bottom: 0.8rem; font-size: 1.05rem; }
.feature-list { list-style: none; }
.feature-list li { padding: 0.35rem 0 0.35rem 1.4rem; position: relative; font-size: 0.95rem; }
.feature-list li::before { content: "★"; position: absolute; left: 0; color: var(--coral); font-size: 0.85rem; }

/* mechanic / document cards (template "program-card" on subpages) */
.programs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.programs-grid .program-card, .project-article .program-card, a.program-card {
    border: 2px solid var(--ink); border-radius: 16px; background: #fff;
    box-shadow: 4px 4px 0 var(--shadow-col); padding: 1.4rem 1.5rem;
    transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none; color: inherit; display: block;
}
.programs-grid .program-card:hover, a.program-card:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--shadow-hover); }
.programs-grid .program-card:nth-child(3n+1) { background: #fff4f6; }
.programs-grid .program-card:nth-child(3n+2) { background: #f0f7ff; }
.programs-grid .program-card:nth-child(3n+3) { background: #fffaef; }
.card-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.programs-grid h3 { font-weight: 800; font-size: 1.05rem; margin-bottom: 0.5rem; }
.programs-grid p { font-size: 0.92rem; }
.program-name { display: flex; align-items: center; gap: 0.7rem; font-weight: 800; font-size: 1.05rem; margin-bottom: 0.5rem; }
.program-header { margin-bottom: 0.6rem; }
.program-label {
    display: inline-block; font-size: 0.65rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.08em; border: 2px solid var(--ink); border-radius: 6px;
    padding: 0.1rem 0.5rem; background: #ece4f6;
}
.program-level { font-size: 0.8rem; font-weight: 700; color: var(--grape); margin-bottom: 0.4rem; }

/* media */
.media-showcase, .article-media {
    border: 2px solid var(--ink); border-radius: 18px; overflow: hidden;
    box-shadow: var(--card-shadow); background: var(--ink);
}
.media-showcase iframe { display: block; width: 100%; border: 0; }
.article-media img { display: block; width: 100%; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.media-item {
    border: 2px solid var(--ink); border-radius: 16px; overflow: hidden;
    box-shadow: 4px 4px 0 var(--shadow-col); background: #fff;
}
.media-item img, .media-item iframe { display: block; width: 100%; border: 0; }
.media-item p { padding: 0.7rem 1rem; font-size: 0.85rem; font-weight: 600; }

/* sustain-a-city article extras */
.project-article { padding-bottom: 2rem; }
.article-section { padding: 2rem 0; }
.eyebrow {
    display: inline-block; font-weight: 800; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 0.15em; color: var(--grape);
    margin-bottom: 0.6rem;
}
.project-article .about-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .project-article .about-grid { grid-template-columns: 1fr; } }

/* generic page hero (sketches.html) */
.page-hero { text-align: center; padding: 4rem 0 2.5rem; }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 900; margin-bottom: 0.8rem; }
.page-hero p { font-weight: 600; max-width: 56ch; margin: 0 auto; }

/* legacy template button used on game pages */
.cta-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    text-decoration: none; font-weight: 800; font-size: 1rem;
    border: 2px solid var(--ink); border-radius: 14px; padding: 0.8rem 1.8rem;
    color: var(--ink); background: #fff;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 4px 4px 0 var(--shadow-col); cursor: pointer;
}
.cta-btn:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--shadow-hover); }
.cta-btn .icon { width: 1em; height: 1em; }

/* contrast guard: any text living inside a dark media frame stays light */
.hero-visual, .hero-media-placeholder, .media-showcase, .article-media, .sketch-thumb {
    color: #fff;
}
.article-media figcaption { padding: 0.7rem 1rem; font-size: 0.85rem; font-weight: 600; }

/* embedded video sizing: always fill the frame at 16:9, never the
   iframe's 300x150 default or a fixed pixel height */
.article-media iframe, .media-showcase iframe, .media-item iframe {
    width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; border: 0;
}

/* public credit quote (from thebricksytrail.co.uk acknowledgements) */
.credit-quote {
    position: relative;
    border: 2px solid var(--ink); border-radius: 18px;
    background: #fff; color: var(--ink);
    box-shadow: var(--card-shadow);
    padding: 1.7rem 2rem 1.6rem 2.4rem; margin: 3.5rem 0 0;
    font-size: 1.08rem; line-height: 1.7; max-width: 760px;
    font-style: italic;
}
.credit-quote::before {
    content: "\201C"; position: absolute; top: -0.35em; left: 0.35rem;
    font-size: 3.6rem; font-weight: 900; font-style: normal;
    color: var(--coral); line-height: 1;
}
.credit-quote::after {
    content: "\201D"; position: absolute; bottom: -0.55em; right: 0.7rem;
    font-size: 3.6rem; font-weight: 900; font-style: normal;
    color: var(--coral); line-height: 1;
}
.credit-quote .hl { font-style: normal; font-weight: 700; }
.credit-quote strong { font-style: normal; }
.credit-quote.flush { margin-top: 0; }
.credit-quote p + p { margin-top: 0.9rem; }
.credit-quote cite {
    display: block; margin-top: 1rem; font-style: normal;
    font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--grape);
}
.credit-quote cite a { color: var(--sky); }
