:root {
    --black: #0d0e0e;
    --charcoal: #171817;
    --charcoal-warm: #22211f;
    --white: #f4f1ea;
    --muted: #aaa69d;
    --red: #a82320;
    --red-bright: #c62d28;
    --line: rgba(255, 255, 255, 0.18);
    --page: min(86rem, calc(100vw - 3rem));
    --header-height: 5rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--white);
    background:
        linear-gradient(180deg, rgba(7, 8, 8, 0.52), rgba(7, 8, 8, 0.84)),
        url("../images/gallery/screenshot-01.webp") center / cover fixed no-repeat,
        var(--black);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

body.menu-open,
body.dialog-open {
    overflow: hidden;
}

img {
    display: block;
    height: auto;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 2px solid var(--red-bright);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--black);
    background: var(--white);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    min-height: var(--header-height);
    border-bottom: 1px solid var(--line);
    background: rgba(13, 14, 14, 0.94);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: grid;
    width: var(--page);
    min-height: var(--header-height);
    margin: 0 auto;
    grid-template-columns: 11.5rem 1fr auto;
    gap: 2rem;
    align-items: center;
}

.brand img {
    width: 100%;
}

.primary-navigation {
    display: flex;
    gap: clamp(0.9rem, 1.8vw, 1.8rem);
    justify-content: center;
}

.primary-navigation a,
.header-buy {
    position: relative;
    padding: 0.4rem 0;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.primary-navigation a::after,
.header-buy::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: var(--red-bright);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.primary-navigation a:hover::after,
.primary-navigation a:focus-visible::after,
.header-buy:hover::after,
.header-buy:focus-visible::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    padding: 0;
    border: 0;
    color: var(--white);
    background: transparent;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.menu-icon {
    position: relative;
    width: 1.3rem;
    height: 1rem;
    margin-left: 0.75rem;
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
}

.menu-icon::after {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 1px;
    background: currentColor;
    content: "";
}

.hero {
    display: grid;
    width: var(--page);
    min-height: calc(100svh - var(--header-height));
    margin: 0 auto;
    padding: clamp(4rem, 9vw, 8rem) 0;
    align-content: center;
    text-align: center;
}

.hero-logo {
    width: min(37rem, 78vw);
    margin: 0 auto 2.25rem;
}

.hero-intro {
    max-width: 43rem;
    margin: 0 auto 2.25rem;
    color: #d0ccc3;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.1rem, 1.7vw, 1.4rem);
    line-height: 1.55;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.button {
    display: inline-flex;
    min-height: 3rem;
    padding: 0 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    background: transparent;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color 180ms ease, background 180ms ease;
}

.button:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.button-solid {
    border-color: var(--red);
    background: var(--red);
}

.button-solid:hover {
    border-color: var(--red-bright);
    background: var(--red-bright);
}

.button:disabled {
    cursor: wait;
    opacity: 0.6;
}

.section {
    padding: clamp(5rem, 10vw, 9rem) 0;
}

.section-inner {
    width: var(--page);
    margin: 0 auto;
}

.section-heading {
    max-width: 48rem;
    margin: 0 auto clamp(3rem, 6vw, 5rem);
    text-align: center;
}

.eyebrow {
    margin: 0 0 1rem;
    color: #ef5b54;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

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

h1,
h2 {
    margin-bottom: 1.4rem;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.08;
}

h2 {
    font-size: clamp(2.3rem, 4vw, 3.8rem);
}

.section-heading > p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.story {
    background: rgba(24, 25, 24, 0.985);
}

.story-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(19rem, 0.85fr);
    gap: clamp(2.5rem, 7vw, 7rem);
    align-items: center;
}

.story-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    object-fit: cover;
}

.story-copy p {
    color: var(--muted);
}

.story-copy p:last-child {
    margin-bottom: 0;
}

.story-lead {
    margin-bottom: 1.4rem;
    color: var(--white) !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.45;
}

.awards {
    background: rgba(23, 24, 23, 0.97);
}

.awards-grid {
    display: grid;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.award {
    display: grid;
    min-height: 16rem;
    padding: 1.5rem;
    overflow: hidden;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    place-items: center;
}

.award img {
    width: 100%;
    max-height: 12rem;
    object-fit: contain;
    transition: transform 300ms ease;
}

.award:hover img {
    transform: scale(1.025);
}

.trailers {
    background: rgba(13, 14, 14, 0.76);
}

.films-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.film-card {
    min-width: 0;
}

.trailer-frame {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
}

.trailer-frame::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.4), transparent 45%);
    content: "";
}

.trailer-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms ease;
}

.trailer-frame:hover img {
    transform: scale(1.02);
}

.play {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: grid;
    width: 4.5rem;
    height: 4.5rem;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    place-items: center;
    transform: translate(-50%, -50%);
}

.film-card h3 {
    margin: 1.25rem 0 0.3rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    font-weight: 400;
    line-height: 1.2;
}

.film-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.gallery {
    padding-top: clamp(3rem, 6vw, 5rem);
    background: rgba(13, 14, 14, 0.82);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.gallery-grid a {
    overflow: hidden;
    border: 1px solid var(--line);
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 400ms ease, filter 400ms ease;
}

.gallery-grid a:hover img {
    filter: contrast(1.03) saturate(1.06);
    transform: scale(1.02);
}

.physical {
    background: var(--charcoal-warm);
}

.physical-layout {
    display: grid;
    grid-template-columns: minmax(17rem, 0.75fr) minmax(20rem, 1fr);
    gap: clamp(3rem, 8vw, 8rem);
    align-items: center;
}

.physical-cover {
    justify-self: center;
}

.physical-cover img {
    max-height: 38rem;
    filter: drop-shadow(0 2rem 1.5rem rgba(0, 0, 0, 0.3));
    transition: transform 350ms ease;
}

.physical-cover:hover img {
    transform: translateY(-0.25rem);
}

.physical-copy {
    max-width: 38rem;
}

.physical-copy p:not(.eyebrow) {
    color: var(--muted);
}

.metacritic-score {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0.25rem 0 0.5rem;
    padding: 0.5rem 0.85rem 0.5rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: var(--white);
    background: #080808;
    transition: border-color 180ms ease, background 180ms ease;
}

.metacritic-score:hover {
    border-color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.05);
}

.metacritic-score-number {
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    place-items: center;
    background: #6c9e2e;
    color: #11160d;
    font-family: var(--display);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.metacritic-score-copy {
    display: grid;
    gap: 0.1rem;
    text-align: left;
}

.metacritic-score-copy strong {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metacritic-score-copy small,
.metacritic-score-source {
    color: var(--muted);
    font-size: 0.72rem;
}

.metacritic-score-source {
    margin-left: 0.35rem;
    white-space: nowrap;
}

.psvr2-note {
    margin: 1.6rem 0;
    padding: 1.25rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
}

.stores {
    padding-bottom: 7rem;
    background: rgba(13, 14, 14, 0.86);
    text-align: center;
}

.store-grid {
    display: grid;
    max-width: 58rem;
    margin: 3rem auto 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.store-grid a {
    display: grid;
    min-height: 7rem;
    padding: 1.25rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    place-items: center;
    transition: background 180ms ease;
}

.store-grid a:hover {
    background: rgba(255, 255, 255, 0.06);
}

.contact {
    border-top: 1px solid var(--line);
    background: rgba(13, 14, 14, 0.96);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(17rem, 0.75fr) minmax(25rem, 1.25fr);
    gap: clamp(3rem, 8vw, 8rem);
}

.contact-copy p {
    color: var(--muted);
}

.contact-links {
    display: flex;
    margin-top: 1.75rem;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}

.contact-links a {
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
}

.contact-form {
    display: grid;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.contact-form label:not(.consent):not(.form-trap) {
    display: grid;
    gap: 0.45rem;
}

.contact-form label > span:first-child {
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 0;
    color: var(--white);
    background: rgba(255, 255, 255, 0.035);
}

.contact-form input,
.contact-form select {
    min-height: 3rem;
    padding: 0 0.75rem;
}

.contact-form textarea {
    min-height: 10rem;
    padding: 0.75rem;
    resize: vertical;
}

.contact-form select option {
    color: var(--white);
    background: var(--charcoal);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-bottom-color: var(--red-bright);
    outline: 0;
}

.consent {
    display: grid;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.8rem;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
}

.consent input {
    width: 1rem;
    min-height: 1rem;
    margin-top: 0.25rem;
}

.consent a {
    color: var(--white);
}

.form-trap {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.form-actions {
    display: flex;
    min-height: 3rem;
    gap: 1.25rem;
    align-items: center;
}

.form-status {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.form-status.is-error {
    color: #ff8c85;
}

.form-status.is-success {
    color: #a9d9a3;
}

.site-footer {
    display: flex;
    width: var(--page);
    margin: 0 auto;
    padding: 2.5rem 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    align-items: center;
    justify-content: space-between;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-logo {
    width: 8rem;
}

.media-dialog {
    width: min(92vw, 80rem);
    max-width: none;
    max-height: 92vh;
    padding: 0;
    overflow: visible;
    border: 1px solid var(--line);
    color: var(--white);
    background: #080808;
}

.media-dialog::backdrop {
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
}

.dialog-content {
    display: grid;
    width: 100%;
    max-height: 88vh;
    place-items: center;
}

.dialog-content iframe,
.dialog-content img {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 88vh;
    border: 0;
    object-fit: contain;
}

.dialog-content iframe {
    aspect-ratio: 16 / 9;
}

.dialog-close {
    position: absolute;
    z-index: 2;
    top: -2.75rem;
    right: 0;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: var(--white);
    background: #080808;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
}

@media (max-width: 1050px) {
    .header-inner {
        grid-template-columns: 10rem 1fr auto;
        gap: 1rem;
    }

    .primary-navigation {
        gap: 0.8rem;
    }

    .primary-navigation a {
        font-size: 0.58rem;
    }

    .awards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    :root {
        --header-height: 4.75rem;
    }

    .header-inner {
        grid-template-columns: 9.5rem 1fr auto;
    }

    .menu-toggle {
        display: inline-flex;
        justify-self: end;
        align-items: center;
    }

    .primary-navigation {
        position: fixed;
        z-index: 99;
        top: var(--header-height);
        right: 0;
        left: 0;
        display: grid;
        max-height: calc(100svh - var(--header-height));
        padding: 1.25rem 1.5rem 2rem;
        overflow-y: auto;
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        background: #111211;
        box-shadow: 0 1.5rem 2.5rem rgba(0, 0, 0, 0.55);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-0.75rem);
        transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
    }

    .primary-navigation.is-open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .primary-navigation a {
        padding: 0.9rem 0;
        border-bottom: 1px solid var(--line);
        font-size: 1rem;
        letter-spacing: 0.06em;
    }

    .primary-navigation a::after {
        display: none;
    }

    .header-buy {
        display: none;
    }

    .story-layout,
    .physical-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .films-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .physical-cover {
        order: 2;
    }

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

@media (max-width: 560px) {
    :root {
        --page: calc(100vw - 2rem);
    }

    .header-inner {
        grid-template-columns: 8.75rem 1fr;
    }

    .hero {
        min-height: calc(92svh - var(--header-height));
    }

    .hero-logo {
        width: min(31rem, 88vw);
    }

    .actions,
    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .metacritic-score {
        width: 100%;
    }

    .metacritic-score-source {
        display: none;
    }

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

    .award {
        min-height: 11rem;
        padding: 1rem;
    }

    .gallery-grid {
        gap: 0.4rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
