* { box-sizing: border-box; }
:root { color-scheme: dark; --bg: #0b0a0c; --ink: #f8f1e6; --muted: #bcb2af; --red: #ff674e; --line: #302629; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 system-ui, sans-serif; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }
.skip { position: fixed; z-index: 3; top: 8px; left: 8px; padding: 8px 14px; background: var(--ink); color: var(--bg); transform: translateY(-150%); }
.skip:focus { transform: none; }
.shell { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); background: #100e10; }
.top-inner, .footer { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 1.2rem; font-weight: 950; letter-spacing: -.05em; white-space: nowrap; }
.brand img { border: 1px solid var(--line); border-radius: 7px; }
.brand span { color: var(--red); }
nav, .actions { display: flex; align-items: center; gap: clamp(14px, 3vw, 38px); }
nav a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 700; }
nav a:hover, .secondary:hover { color: var(--red); }
.hero { position: relative; isolation: isolate; overflow: hidden; background: #0b080a; border-bottom: 1px solid var(--line); }
.hero-art, .hero::after { position: absolute; inset: 0; }
.hero-art { left: 23%; z-index: -2; }
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 65% 40%; }
.hero::after { content: ""; z-index: -1; background: linear-gradient(90deg,#0b080a 14%,rgba(11,8,10,.95) 27%,rgba(11,8,10,.62) 48%,transparent 76%), linear-gradient(0deg,#0b080a,transparent 25%); }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: clamp(560px, 52vw, 735px); padding-block: 70px 100px; }
.eyebrow, .art-credit, .tag { color: var(--red); font: 700 .76rem/1.5 ui-monospace, monospace; letter-spacing: .15em; }
.eyebrow { margin: 0 0 22px; }
.eyebrow i { display: inline-block; width: 7px; height: 7px; margin-right: 8px; transform: rotate(45deg); background: var(--red); }
.eyebrow span { color: var(--muted); padding-inline: 5px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-weight: 950; letter-spacing: -.078em; }
h1 { font-size: clamp(3rem, 6.35vw, 6.4rem); line-height: .96; margin-bottom: 24px; }
h1 em { font-style: normal; }
h1 span, h2 span, .secondary span { color: var(--red); }
h2 { font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1; margin-bottom: 30px; }
h3 { font-size: 1.35rem; margin-bottom: 6px; }
.intro { color: var(--muted); font-size: clamp(1rem, 2vw, 1.22rem); max-width: 39ch; margin-bottom: 25px; }
.actions { flex-wrap: wrap; }
.button, .secondary { display: inline-flex; align-items: center; gap: 16px; font-size: .92rem; font-weight: 800; text-decoration: none; }
.button { padding: 13px 20px; background: var(--red); color: #110b0a; border-radius: 4px; }
.button:hover { background: var(--ink); }
.secondary { padding-block: 9px; }
.art-credit { position: absolute; bottom: 17px; right: 0; color: #e0cec8; font-size: .62rem; }
.section { padding-block: clamp(54px, 7vw, 95px); }
.notice { padding: 26px; border: 1px solid var(--line); border-radius: 6px; background: #151114; overflow-wrap: anywhere; }
.notice p { color: var(--muted); margin-bottom: 0; }
.notice .tag { color: var(--red); margin-bottom: 8px; }
.notice .platform { margin-top: 12px; font-weight: 700; }
.empty { display: flex; align-items: center; gap: 24px; }
.empty-mark { flex: 0 0 53px; display: grid; place-items: center; min-height: 53px; border: 1px solid #704039; border-radius: 4px; color: var(--red); font-size: 25px; }
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 18px; }
.studio-band { border-block: 1px solid var(--line); background: radial-gradient(ellipse at 86% 40%, #31171b, transparent 60%), #130f13; }
.studio { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 35px; }
.studio-mark { display: grid; place-items: center; }
.studio-mark img { display: block; width: min(100%, 245px); height: auto; mask-image: radial-gradient(ellipse closest-side, black 86%, transparent 100%); }
.footer { color: var(--muted); }
@media (max-width: 650px) {
    .shell { width: calc(100% - 36px); }
    .top-inner { min-height: 66px; }
    .brand { gap: 6px; font-size: 1.05rem; }
    .brand img { width: 35px; height: 35px; }
    .hero-art { left: 0; bottom: 26%; }
    .hero-art img { object-position: 66% 30%; }
    .hero::after { background: linear-gradient(0deg,#0b080a 18%,rgba(11,8,10,.94) 37%,rgba(11,8,10,.2) 76%); }
    .hero-inner { min-height: 610px; justify-content: flex-end; padding-bottom: 65px; }
    .eyebrow { letter-spacing: .1em; }
    .studio { grid-template-columns: 1fr; gap: 16px; }
    .notice { padding: 18px; }
    .empty { gap: 13px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.top { border-color: var(--red); }
.hero h1 { border-left: 5px solid var(--red); padding-left: clamp(14px, 2vw, 30px); font-size: clamp(2.6rem, 5.4vw, 5.6rem); max-width: 11ch; }
.hero h1 em { display: block; }
.hero .button { border-radius: 0; }
.services-title { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); font-size: clamp(2rem, 4vw, 3.8rem); letter-spacing: -.06em; }
.services-title::before { content: ""; width: .24em; height: .64em; flex: none; background: var(--red); transform: skewX(-27deg); }
.services-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.service { display: grid; justify-items: center; align-content: start; gap: 10px; padding: 16px 18px 24px; text-align: center; border: 1px solid #403336; border-radius: 6px; background: #151114; }
.service .tag { justify-self: start; }
.service svg { color: var(--red); }
.service h3 { margin: 2px 0 0; line-height: 1.2; }
.service p { margin: 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 970px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) {
    .top-inner { flex-wrap: wrap; gap: 8px 16px; padding-block: 10px; }
    nav { flex-wrap: wrap; column-gap: 14px; row-gap: 4px; }
    nav a { font-size: .82rem; padding-block: 5px; }
    .hero h1 { font-size: clamp(2.15rem, 8vw, 3.5rem); }
    .services { grid-template-columns: 1fr; }
    .services-title::after { display: none; }
}

.top-inner { flex-wrap: wrap; padding-block: 10px; }
.top nav { flex-wrap: wrap; gap: 4px clamp(12px, 2vw, 28px); }
.content-page { min-height: 65vh; }
.content-page > h1 { font-size: clamp(2.6rem, 7vw, 6rem); line-height: 1; overflow-wrap: anywhere; }
.content-page h2 { font-size: clamp(1.65rem, 3.5vw, 3rem); margin: 32px 0 14px; }
.notice h2 { margin-top: 0; }
.service a, .project-card a { text-decoration: none; }
.service a:hover, .project-card a:hover, .filters a:hover { color: var(--red); }
.filters { margin-bottom: 26px; }
.filters a { text-decoration: none; border: 1px solid var(--line); padding: 6px 12px; border-radius: 4px; }
.filters a[aria-current] { border-color: var(--red); color: var(--red); }
.project-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; margin-bottom: 18px; }
.project-image { display: block; width: 100%; max-width: 960px; max-height: 68vh; object-fit: contain; background: #100e10; border: 1px solid var(--line); border-radius: 6px; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 78ch; }
.studio-form { max-width: 720px; display: grid; gap: 9px; margin-block: 20px; }
.studio-form label { font-weight: 750; }
.studio-form :is(input:not([type=checkbox]), textarea, select) { width: 100%; padding: 11px; border: 1px solid #59494d; border-radius: 4px; background: var(--bg); color: var(--ink); font: inherit; margin-bottom: 6px; }
.studio-form :is(input, textarea, select):focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.studio-form .button { justify-self: start; border: 0; cursor: pointer; }
.validation-summary-valid { display: none; }
.validation-summary-errors { color: var(--red); }
.admin-message { margin: 10px 0; }
.admin-message summary { cursor: pointer; font-weight: 750; }
.admin-message p { margin-top: 12px; }

.featured-projects { padding-top: 0; }
.featured-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0 24px; margin-bottom: 22px; }
.featured-heading h2 { margin-bottom: 0; }
.project-gallery a { display: block; }
.project-gallery img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #100e10; border: 1px solid var(--line); border-radius: 6px; }
.project-gallery a:hover img { border-color: var(--red); }

.platform-list { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; padding: 0; margin: 0 0 20px; }
.platform-list li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 5px; background: #151114; font-weight: 650; }
.platform-list svg { color: var(--red); }
.story-card h2 { margin: 0 0 10px; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.04em; }


.project-breadcrumb { padding-block: 18px; }
.project-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .87rem; }
.project-breadcrumb li { overflow-wrap: anywhere; }
.project-breadcrumb li + li::before { content: "/"; margin-right: 12px; color: var(--red); }
.project-breadcrumb [aria-current] { color: var(--ink); }
.project-breadcrumb a { text-decoration: none; }
.project-breadcrumb a:hover { text-decoration: underline; }
.project-hero { border-block: 1px solid var(--line); background: radial-gradient(ellipse at 85% 25%, #321819, transparent 64%), #110d11; }
.project-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: clamp(24px, 5vw, 76px); padding-block: clamp(35px, 6vw, 88px); }
.project-hero-text-only { grid-template-columns: minmax(0, 760px); }
.project-category { display: inline-flex; align-items: center; text-decoration: none; margin-bottom: 18px; }
.project-category:hover { text-decoration: underline; }
.project-intro h1 { font-size: clamp(2.8rem, 6.4vw, 6.4rem); line-height: .98; margin-bottom: 19px; overflow-wrap: anywhere; }
.project-summary { max-width: 46ch; color: var(--muted); font-size: clamp(1rem, 1.65vw, 1.25rem); margin-bottom: 23px; }
.project-links { gap: 12px; }
.project-links .button { margin: 0; }
.project-link-outline { color: var(--ink); border: 1px solid #886064; background: transparent; }
.project-link-outline:hover { color: #110b0a; }
.project-cover { aspect-ratio: 16 / 10; overflow: hidden; display: grid; place-items: center; padding: clamp(6px, 1vw, 12px); border-radius: 12px; border: 1px solid #624045; background: #0d0b0e; box-shadow: 0 18px 45px #0007; }
.project-cover img { width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: 6px; }
.project-content { padding-block: clamp(42px, 6vw, 78px); }
.project-content h2 { font-size: clamp(1.9rem, 4.4vw, 3.5rem); margin-bottom: 22px; }
.project-story { display: grid; grid-template-columns: minmax(160px, .55fr) minmax(0, 1.45fr); gap: 0 clamp(24px, 5vw, 72px); }
.project-story > .eyebrow { grid-column: 1 / -1; margin-bottom: 12px; }
.project-story-row { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; border-top: 1px solid var(--line); padding: 19px 0; }
.project-story-row:last-child { border-bottom: 1px solid var(--line); }
.project-story-row h3 { line-height: 1.25; margin: 0 0 8px; }
.project-step { color: var(--red); font: 700 .85rem/1.8 ui-monospace, monospace; }
.project-story-row p { grid-column: 2; margin: 0; color: var(--muted); }
.project-media { margin-top: clamp(40px, 7vw, 86px); }
.project-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.project-gallery a { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #151114; text-decoration: none; }
.project-gallery a:hover { border-color: var(--red); }
.project-gallery img { display: block; width: 100%; aspect-ratio: 5 / 6; object-fit: contain; background: #100e10; }
.project-gallery-label { display: flex; justify-content: space-between; padding: 10px 13px; color: var(--muted); font-size: .88rem; }
.project-back { margin-top: 28px; }
.project-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 720px) {
    .project-hero-grid, .project-story { grid-template-columns: minmax(0, 1fr); }
    .project-story-row { grid-template-columns: 30px minmax(0, 1fr); }
}

.site-footer { border-top: 1px solid var(--line); background: radial-gradient(ellipse at 100% 0%, #29171a, transparent 55%), #100e10; }
.site-footer-grid { display: grid; grid-template-columns: 1.4fr .85fr .75fr 1fr; align-items: start; gap: 28px; padding-block: clamp(32px, 5vw, 64px); }
.site-footer-brand p { color: var(--muted); margin: 14px 0 0; max-width: 32ch; }
.site-footer-links { display: grid; justify-items: start; gap: 8px; }
.site-footer h2 { margin: 0 0 4px; font-size: 1rem; line-height: 1.4; letter-spacing: 0; }
.site-footer-links a, .site-footer-bottom a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--red); }
.site-footer-cta { padding: 14px 16px; border: 1px solid var(--line); border-radius: 7px; background: #161114; }
.site-footer-cta .secondary { color: var(--red); padding-block: 4px; }
.site-footer-cta .secondary:hover { color: var(--ink); }
.site-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; border-top: 1px solid var(--line); padding-block: 16px; color: var(--muted); font-size: .88rem; }
@media (max-width: 900px) {
    .site-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
    .site-footer-grid { column-gap: 16px; }
    .site-footer-brand, .site-footer-cta { grid-column: 1 / -1; }
}



.contact-page { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: clamp(30px, 6vw, 80px); }
.contact-intro h1 { font-size: clamp(2.65rem, 5.7vw, 5.5rem); line-height: 1; overflow-wrap: anywhere; margin-bottom: 20px; }
.contact-intro h1 span { color: var(--red); }
.contact-page .contact-panel { padding: clamp(19px, 3.8vw, 42px); background: #151114; border: 1px solid var(--line); border-top-color: #a54940; border-radius: 10px; }
.contact-page .contact-panel h2 { margin: 0 0 5px; font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
.contact-panel-heading p, .contact-support p { margin: 0; color: var(--muted); }
.contact-page .studio-form { background: transparent; border: 0; padding: 0; margin: 22px 0 0; }
.contact-page .contact-panel > .notice { margin-top: 16px; }
.contact-info { margin-block: 28px; }
.contact-info h2, .contact-support h2 { margin: 0 0 10px; font-size: 1.12rem; letter-spacing: -.025em; }
.contact-info dl { margin: 0; }
.contact-info dl > div { display: grid; grid-template-columns: minmax(68px, .32fr) minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.contact-info dt { color: var(--muted); font-size: .9rem; }
.contact-info dd { margin: 0; overflow-wrap: anywhere; }
.contact-info address { font-style: normal; white-space: pre-line; }
.contact-info a:hover, .contact-support a { color: var(--red); }
.contact-support { margin-top: 28px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 7px; background: #100e10; }
@media (max-width: 780px) {
    .contact-page { grid-template-columns: minmax(0, 1fr); }
}

.hero-art { overflow: hidden; container-type: size; }
.hero-art > picture { display: block; width: 100%; height: 100%; }
.hero-art > .hero-solar, .hero-embers, .hero-motion { display: none; }
@media (prefers-reduced-motion: no-preference) {
    .hero-art > .hero-solar {
        display: block;
        position: absolute;
        width: max(100cqw, 150cqh);
        height: max(100cqh, 66.667cqw);
        left: calc((100% - max(100cqw, 150cqh)) * .65);
        top: calc((100% - max(100cqh, 66.667cqw)) * .40);
        pointer-events: none;
    }
    .solar-wave { animation: solar-wave-rise 4.4s ease-out infinite; }
    .solar-wave-outer { animation-delay: -2.2s; }
    .solar-wave path {
        fill: none;
        stroke: url(#solar-flame-color);
        stroke-width: 3.5px;
        stroke-linecap: round;
        stroke-dasharray: 22 7 7 8 13 10 20 13;
        filter: drop-shadow(0 0 4px #ff671b) drop-shadow(0 0 8px #ff3d16);
        animation: solar-wave-flow 4.4s linear infinite;
    }
    .solar-wave path + path { stroke-width: 1.6px; animation-delay: -1.4s; }
    .solar-wave-outer path { stroke-width: 2.5px; animation-delay: -2.2s; }
    .hero-embers { position: absolute; display: block; inset: 16% 3% 8% 35%; z-index: 0; pointer-events: none; }
    .hero-embers i {
        position: absolute;
        left: var(--x);
        top: var(--y);
        width: var(--size, 3px);
        aspect-ratio: 1;
        border-radius: 50%;
        background: #ffb278;
        box-shadow: 0 0 8px 2px #f14b28aa;
        animation: ember-rise var(--time, 9s) linear var(--delay) infinite;
    }
    .hero-embers i:nth-child(1) { --x: 26%; --y: 73%; --delay: -2s; }
    .hero-embers i:nth-child(2) { --x: 42%; --y: 80%; --delay: -6s; --time: 11s; }
    .hero-embers i:nth-child(3) { --x: 64%; --y: 45%; --delay: -3s; --size: 2px; }
    .hero-embers i:nth-child(4) { --x: 88%; --y: 59%; --delay: -7s; --time: 12s; }
    .hero-embers i:nth-child(5) { --x: 53%; --y: 28%; --delay: -5s; --size: 2px; }
    .hero-embers i:nth-child(6) { --x: 18%; --y: 52%; --delay: -1s; --time: 13s; }
    .hero-inner > :is(.eyebrow, h1, .intro, .actions) { animation: hero-arrive .68s cubic-bezier(.2,.72,.3,1) backwards; }
    .hero-inner > h1 { animation-delay: .08s; }
    .hero-inner > .intro { animation-delay: .15s; }
    .hero-inner > .actions { animation-delay: .22s; }
    .hero-motion { position: absolute; bottom: 44px; right: 0; display: inline-flex; align-items: center; gap: 7px; padding: 4px 8px; color: var(--ink); background: #0b080ad9; border: 1px solid var(--line); border-radius: 4px; font-size: .75rem; cursor: pointer; }
    .hero-motion input { margin: 0; accent-color: var(--red); }
    .hero:has(.hero-motion input:checked) :is(.solar-wave, .solar-wave path, .hero-embers i) { animation-play-state: paused; }
    .service, .project-card { transition: transform .23s ease, border-color .23s ease, box-shadow .23s ease; }
    .service:focus-within, .project-card:focus-within { border-color: var(--red); box-shadow: 0 12px 26px #0005; }
    @media (hover: hover) {
        .service:hover, .project-card:hover { transform: translateY(-4px); border-color: #92534a; box-shadow: 0 12px 26px #0005; }
    }
    @media (max-width: 650px) {
        .hero-art > .hero-solar { left: calc((100% - max(100cqw, 150cqh)) * .66); top: calc((100% - max(100cqh, 66.667cqw)) * .30); }
        .hero-embers { inset: 11% 5% 36% 24%; }
    }
}
@keyframes ember-rise {
    0% { opacity: 0; transform: translate(0, 22px); }
    22% { opacity: .66; }
    72% { opacity: .38; }
    100% { opacity: 0; transform: translate(32px, -78px); }
}
@keyframes hero-arrive {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}



@media (prefers-reduced-motion: no-preference) {
    .home-reveal { animation: home-reveal .74s cubic-bezier(.2,.72,.3,1) backwards; }
    .project-card.home-reveal:nth-child(2), .service.home-reveal:nth-child(2) { animation-delay: 85ms; }
    .project-card.home-reveal:nth-child(3), .service.home-reveal:nth-child(3) { animation-delay: 170ms; }
    .service.home-reveal:nth-child(4) { animation-delay: 255ms; }
    .hero:has(.hero-motion input:checked) ~ section .home-reveal { animation: none; }
}
@keyframes home-reveal {
    from { opacity: .12; translate: 0 30px; }
    to { opacity: 1; translate: 0 0; }
}



@keyframes solar-wave-rise {
    0% { opacity: 0; transform: translate(2px, 1px); }
    26% { opacity: .88; }
    70% { opacity: .56; }
    100% { opacity: 0; transform: translate(-15px, -11px); }
}
@keyframes solar-wave-flow {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -100; }
}

@media (min-width: 651px) and (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }
    #main { view-transition-name: page-content; }
    ::view-transition-old(root) { display: none; }
    ::view-transition-new(root) { animation: none; }
    ::view-transition { pointer-events: none; overflow: clip; }
    ::view-transition-group(page-content) { animation: none; }
    ::view-transition-old(page-content) { animation: page-fade-out .16s ease-in both; }
    ::view-transition-new(page-content) { animation: page-fade-in .32s cubic-bezier(.22,.7,.35,1) both; }
}
@keyframes page-fade-out {
    to { opacity: 0; transform: translateY(-5px); }
}
@keyframes page-fade-in {
    from { opacity: 0; transform: translateY(10px); }
}



@media (max-width: 650px) and (prefers-reduced-motion: no-preference) {
    #main { animation: mobile-page-arrive .24s ease-out; }
}
@keyframes mobile-page-arrive {
    from { opacity: .58; translate: 0 5px; }
}
