:root {
    color-scheme: dark;
    --background: #0c121b;
    --surface: #131e2c;
    --border: #314154;
    --text: #f2f6fb;
    --muted: #b2c1d0;
    --accent: #a5e5bd;
}
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    background-image: radial-gradient(ellipse at 78% 8%, #182a31 0%, transparent 36rem);
    background-color: var(--background);
    color: var(--text);
    font: 1rem/1.6 system-ui, -apple-system, sans-serif;
}
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { color: #d0f7df; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3 { line-height: 1.16; margin: 0; }
p { margin: .65em 0 0; }
figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; border-radius: .6rem; }
figcaption { font-size: .875rem; color: var(--muted); margin-top: .5rem; }
.wrap { width: min(70rem, calc(100% - 2.5rem)); margin-inline: auto; }
.skip-link { position: absolute; inset: .5rem auto auto .5rem; transform: translateY(-200%); }
.skip-link:focus { transform: none; z-index: 1; background: var(--background); padding: .5rem; }
.site-header { border-bottom: 1px solid var(--border); }
.navigation, .site-footer, .section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-block: .9rem;
}
.wordmark { color: var(--text); font-weight: 725; letter-spacing: -.02em; text-decoration: none; }
.nav-links, .footer-links, .card-links, .archive-list, .home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem 1.2rem;
}
.nav-links a, .footer-links a {
    color: var(--muted);
    font-size: .9rem;
    text-decoration: none;
}
.nav-links a:hover, .footer-links a:hover, .nav-links [aria-current] { color: var(--text); text-decoration: underline; }
.portfolio-hero, .page-intro { padding-block: clamp(2.6rem, 6vw, 5rem) clamp(1.8rem, 4vw, 3.2rem); }
.portfolio-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: clamp(1.4rem, 4.5vw, 4rem);
    align-items: center;
}
h1 { font-size: clamp(2.45rem, 5vw, 4.6rem); letter-spacing: -.052em; line-height: 1.04; text-wrap: balance; }
.hero-copy > p:not(.eyebrow), .page-intro > p:not(.eyebrow) {
    max-width: 62ch;
    color: var(--muted);
    margin-top: 1rem;
    font-size: clamp(1rem, 1.9vw, 1.16rem);
}
.eyebrow {
    margin: 0 0 .55rem;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 720;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.work-card, .text-panel, .play-section, .archive-section, .venture-card {
    padding: clamp(1.05rem, 2.6vw, 1.75rem);
    border: 1px solid var(--border);
    border-radius: .85rem;
    background: var(--surface);
}
.hero-art {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid #58655c;
    border-radius: .95rem;
    background: #263636;
    box-shadow: 0 1rem 2.75rem #03070c80;
}
.hero-art img {
    width: 100%;
    aspect-ratio: 5 / 3;
    object-fit: cover;
    border-radius: 0;
}
.hero-art figcaption {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .2rem 1rem;
    padding: .7rem 1rem;
    margin: 0;
    border-top: 1px solid #4b5e5c;
    background: #17252a;
}
.hero-art figcaption a { font-size: 1rem; font-weight: 720; }
.work-card h2, .work-card h3 { font-size: 1.25rem; }
.home-actions { gap: .55rem; margin-top: 1.25rem; }
.home-button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .47rem .9rem;
    border: 1px solid var(--border);
    border-radius: .5rem;
    font-size: .95rem;
    font-weight: 680;
    text-decoration: none;
}
.home-button:hover { border-color: var(--accent); }
.home-button--primary { background: var(--accent); border-color: var(--accent); color: #10231a; }
.home-button--primary:hover { background: #d0f7df; color: #10231a; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.15rem); margin-bottom: .9rem; letter-spacing: -.035em; }
.work-grid, .venture-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .8rem; }
.work-card, .venture-card { grid-column: span 2; }
.work-card--featured { grid-column: span 3; }
.work-card > p:not(.eyebrow), .play-section p { color: var(--muted); }
.card-links { margin-top: 1rem; font-size: .9rem; }
.play-section, .archive-section, .text-panel { margin: 1rem 0; }
.game-showcase { margin-top: 2rem; }
.section-bar { padding: 0 0 .9rem; }
.section-bar .section-title { margin: 0; }
.game-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
}
.game-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: .75rem;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
}
.game-card:hover, .game-card:focus-visible { color: var(--text); border-color: var(--accent); }
.game-card__image { overflow: hidden; }
.game-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.game-card__caption { padding: .8rem 1rem 1rem; }
.game-card__caption h3 { font-size: 1.14rem; }
.game-card__caption > span { display: block; color: var(--accent); margin-top: .28rem; font-size: .89rem; }
.reel-panel video {
    display: block;
    width: min(100%, 53rem);
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 1rem auto 0;
    background: #080d15;
    border-radius: .55rem;
}
.publishing-step { position: relative; overflow: hidden; border-top: 2px solid #50806f; }
@keyframes art-arrival {
    from { transform: scale(1.045); }
    to { transform: scale(1); }
}
@keyframes frame-light {
    from { border-color: #96a86e; }
    to { border-color: #58655c; }
}
@keyframes publishing-signal {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
@media (prefers-reduced-motion: no-preference) {
    .hero-art { animation: frame-light 1.6s ease-out both; }
    .hero-art img { animation: art-arrival 1.4s cubic-bezier(.22, .65, .22, 1) both; }
    .game-card img { transition: transform .36s ease-out; }
    .game-card:hover img, .game-card:focus-visible img { transform: scale(1.035); }
    .publishing-step::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--accent), transparent);
        animation: publishing-signal .8s ease-in-out both;
    }
    .publishing-step:nth-child(2)::before { animation-delay: .65s; }
    .publishing-step:nth-child(3)::before { animation-delay: 1.3s; }
}
.site-footer { margin-top: 2.3rem; border-top: 1px solid var(--border); }
.text-panel { max-width: 56rem; }
.text-panel > h2:not(:first-child), .text-panel article { margin-top: 1.2rem; }
.text-panel > .home-button { margin-top: 1rem; }
.muted { color: var(--muted); font-size: .9rem; }
.fr-promo { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 1.5rem; }
.play-section figure { margin-top: .8rem; }
.fr-promo figure { margin-top: 0; }
.fr-promo__pitch { font-weight: 700; }
.feature-list { padding-inline-start: 1.15rem; }
.feature-list li + li { margin-top: .3rem; }
.archive-list { margin-top: 1rem; }
@media (max-width: 800px) {
    .portfolio-hero, .fr-promo { grid-template-columns: 1fr; }
    .work-card, .venture-card { grid-column: span 3; }
}
@media (max-width: 550px) {
    .wrap { width: calc(100% - 1.75rem); }
    .navigation { gap: .45rem; align-items: flex-start; flex-direction: column; }
    .nav-links { gap: .4rem .9rem; }
    .work-card, .venture-card { grid-column: 1 / -1; }
    .game-grid { grid-template-columns: 1fr; }
}
@media print {
    :root { color-scheme: light; --text: #111; --muted: #333; --background: #fff; --surface: #fff; --accent: #111; }
    .site-header, .site-footer, .skip-link, .home-actions { display: none; }
    .page-intro { padding-block: 1rem; }
    .text-panel { border: 0; padding: 0; }
    .text-panel article { break-inside: avoid; }
}
