:root {
    --heading-font: "Cormorant Garamond", Georgia, serif;
    --body-font: "IBM Plex Mono", "Courier New", monospace;
    --black: #030302;
    --ink: #f5ead8;
    --muted: #b8aa97;
    --red: #d83245;
    --red-dark: #5b0b16;
    --red-deep: #180407;
    --bone: #e4d6c0;
    --max: 1180px;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("../assets/fonts/CormorantGaramond-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("../assets/fonts/IBMPlexMono-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--black);
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 20% 14%, rgba(216, 50, 69, 0.16), transparent 28%),
        radial-gradient(circle at 82% 70%, rgba(118, 144, 109, 0.12), transparent 30%),
        var(--black);
    cursor: url("assets/cursor/cursor-open.png") 10 10, auto;
    font-family: var(--body-font);
    font-size: 17px;
    line-height: 1.45;
}

body.is-hovering-rat {
    cursor: url("assets/cursor/cursor_point.png") 10 10, pointer;
}

body.is-dragging-rat {
    cursor: url("assets/cursor/cursor-grab.png") 10 10, grabbing;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: 0;
    content: "";
    pointer-events: none;
    background-image: radial-gradient(rgba(245, 234, 216, 0.22) 0.6px, transparent 0.6px);
    background-size: 5px 7px;
    opacity: 0.08;
}

body::after {
    position: fixed;
    inset: 0;
    z-index: 0;
    content: "";
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 44%, rgba(0, 0, 0, 0.76));
}

a,
button {
    cursor: url("assets/cursor/cursor_point.png") 13 8, pointer;
}

a {
    color: #ff4b5c;
    text-decoration-color: rgba(255, 75, 92, 0.52);
    text-underline-offset: 4px;
}

a:hover,
a:focus-visible {
    color: var(--ink);
    background: var(--red-dark);
    text-decoration-color: transparent;
}

img {
    max-width: 100%;
}

.site-header,
main,
.site-footer {
    position: relative;
}

.site-header,
.site-footer {
    z-index: 3;
}

.hero-copy,
.fact-slab,
.story-section,
.feature-band,
.screenshots,
.press-page {
    position: relative;
    z-index: 2;
}

.rat-canvas {
    position: fixed;
    inset: 0;
    z-index: 1;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    opacity: 0.78;
    filter: saturate(0.82) contrast(1.08);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0;
}

.studio-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-size: 13px;
    text-decoration: none;
    text-transform: uppercase;
}

.studio-mark img {
    width: 32px;
    height: auto;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 18px;
    font-size: 13px;
    text-transform: uppercase;
}

nav a {
    color: var(--muted);
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    align-items: end;
    min-height: min(760px, calc(100vh - 20px));
    overflow: hidden;
    border-top: 1px solid rgba(245, 234, 216, 0.22);
    border-bottom: 1px solid rgba(245, 234, 216, 0.18);
}

.hero-bg,
.hero-vignette {
    position: absolute;
    inset: 0;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-vignette {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.26) 45%, rgba(0, 0, 0, 0.68)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78));
}

.hero-copy,
.fact-slab {
    position: relative;
    z-index: 1;
}

.hero-copy {
    width: min(760px, calc(100% - 32px));
    margin-left: max(16px, calc((100vw - var(--max)) / 2));
    padding: 90px 0 76px;
}

h1,
h2,
h3,
p,
figure {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 18px;
}

h1 img {
    display: block;
    width: min(720px, 100%);
    height: auto;
    filter: drop-shadow(0 0 20px rgba(216, 50, 69, 0.32));
}

.hero-lede {
    max-width: 46rem;
    margin-bottom: 28px;
    color: var(--bone);
    font-size: clamp(20px, 2.4vw, 30px);
    line-height: 1.16;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid rgba(245, 234, 216, 0.34);
    color: var(--ink);
    background: rgba(0, 0, 0, 0.42);
    font-size: 13px;
    text-decoration: none;
    text-transform: uppercase;
}

.button.primary {
    border-color: rgba(216, 50, 69, 0.86);
    background: rgba(91, 11, 22, 0.82);
}

.fact-slab {
    position: absolute;
    right: max(16px, calc((100vw - var(--max)) / 2));
    bottom: 76px;
    z-index: 2;
    display: grid;
    gap: 0;
    width: clamp(260px, 22vw, 340px);
    border: 1px solid rgba(245, 234, 216, 0.28);
    background: transparent;
}

.fact-slab p {
    display: grid;
    grid-template-columns: minmax(84px, 0.34fr) minmax(0, 1fr);
    gap: 14px;
    margin: 0;
    padding: 13px 14px 13px 13px;
    border-bottom: 1px solid rgba(245, 234, 216, 0.18);
}

.fact-slab p:last-child {
    border-bottom: 0;
}

.fact-slab span {
    color: var(--muted);
    text-transform: uppercase;
}

.story-section,
.screenshots,
.feature-band {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}

.story-section {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 72px);
    padding: 84px 0 54px;
}

.section-heading h2 {
    margin-bottom: 0;
    color: var(--ink);
    font-family: var(--heading-font);
    font-size: clamp(40px, 5vw, 72px);
    font-weight: 400;
    line-height: 1;
}

.story-body {
    color: var(--bone);
}

.story-body p {
    margin-bottom: 18px;
}

.feature-band {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border: 1px solid rgba(245, 234, 216, 0.2);
    background: rgba(10, 3, 4, 0.56);
}

.feature-band article {
    min-width: 0;
    padding: 22px;
    border-right: 1px solid rgba(245, 234, 216, 0.14);
}

.feature-band article:last-child {
    border-right: 0;
}

.feature-band span {
    color: var(--red);
    font-size: 12px;
}

h3 {
    margin-bottom: 10px;
    color: var(--ink);
    font-family: var(--heading-font);
    font-size: 27px;
    font-weight: 400;
    line-height: 1.05;
}

.feature-band p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
}

.screenshots {
    padding: 84px 0 40px;
}

.carousel {
    display: grid;
    gap: 14px;
}

.carousel-stage {
    position: relative;
    margin: 0;
    border: 1px solid rgba(245, 234, 216, 0.22);
    background: #080303;
}

.carousel-stage img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.carousel-stage figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 13px 15px;
    color: var(--bone);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.34));
    font-size: 13px;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.carousel-controls button,
.thumbnail-strip button {
    appearance: none;
    border: 1px solid rgba(216, 50, 69, 0.58);
    color: var(--ink);
    background: rgba(10, 3, 4, 0.72);
    font: inherit;
}

.carousel-controls button {
    min-width: 86px;
    padding: 8px 12px;
    text-transform: uppercase;
}

.carousel-controls p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.thumbnail-strip {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
}

.thumbnail-strip button {
    padding: 0;
    overflow: hidden;
    opacity: 0.64;
}

.thumbnail-strip button.is-active,
.thumbnail-strip button:hover,
.thumbnail-strip button:focus-visible {
    opacity: 1;
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

.thumbnail-strip img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 42px;
    border-top: 1px solid rgba(245, 234, 216, 0.16);
    color: var(--muted);
    font-size: 13px;
}

.site-footer p {
    margin: 0;
}

.press-page {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 70px;
}

.press-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
    gap: 34px;
    align-items: end;
    padding: 36px;
    border: 1px solid rgba(245, 234, 216, 0.22);
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.22)),
        url("assets/hero-red-moon.png") center / cover;
}

.press-hero h1 {
    margin: 0;
    font-family: var(--heading-font);
    font-size: clamp(52px, 8vw, 108px);
    font-weight: 400;
    line-height: 0.92;
}

.press-hero p {
    margin-bottom: 0;
    color: var(--bone);
}

.asset-section {
    padding-top: 44px;
}

.asset-section h2 {
    margin-bottom: 18px;
    font-family: var(--heading-font);
    font-size: 44px;
    font-weight: 400;
}

.asset-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.asset-card {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(245, 234, 216, 0.16);
    background: rgba(10, 3, 4, 0.58);
}

.asset-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.04);
}

.asset-card.logo-card img {
    padding: 18px;
}

.asset-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 980px) {
    .hero,
    .story-section,
    .press-hero {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding-top: 110px;
    }

    .fact-slab {
        position: relative;
        right: auto;
        bottom: auto;
        width: min(420px, calc(100% - 32px));
        margin: 0 16px 32px auto;
    }

    .feature-band,
    .asset-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .thumbnail-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    body {
        font-size: 16px;
    }

    .site-header,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    nav {
        justify-content: flex-start;
    }

    .hero {
        min-height: 720px;
    }

    .feature-band,
    .asset-grid {
        grid-template-columns: 1fr;
    }

    .feature-band article {
        border-right: 0;
        border-bottom: 1px solid rgba(245, 234, 216, 0.14);
    }

    .feature-band article:last-child {
        border-bottom: 0;
    }

    .thumbnail-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .rat-canvas {
        display: none;
    }
}
