@font-face {
    font-family: "M5x7";
    src: url("images/assets/m5x7.ttf") format("truetype");
    font-weight: 350;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #100f14;
    --bg-2: #17141f;
    --panel: rgba(255, 255, 255, 0.08);
    --panel-strong: rgba(255, 255, 255, 0.13);
    --text: #fff8ed;
    --muted: #cfc5b8;
    --gold: #e4b566;
    --red: #d46f55;
    --cyan: #8ddfdc;
    --menu-tan: #c9924d;
    --menu-skin: #e1bb82;
    --menu-brown: #6c4c32;
    --ink: #0c0a0f;
    --border: rgba(255, 255, 255, 0.16);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --radius: 8px;
    --font-display: "Press Start 2P", "Radio Canada Big", sans-serif;
    --font-small: "M5x7", "Radio Canada Big", system-ui, sans-serif;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(201, 146, 77, 0.19), transparent 30rem),
        radial-gradient(circle at top right, rgba(225, 187, 130, 0.12), transparent 32rem),
        radial-gradient(circle at 50% 18%, rgba(108, 76, 50, 0.22), transparent 34rem),
        linear-gradient(180deg, #100f14 0%, #19131d 48%, #0d0c11 100%);
    color: var(--text);
    font-family: var(--font-small);
    line-height: 1.35;
    overflow-x: hidden;
}

body.preview-open {
    overflow: hidden;
}

@keyframes ambientFade {
    0%,
    18% {
        opacity: 0.34;
        transform: translate(-51%, -49%) scale(1.03);
    }

    34% {
        opacity: 0.34;
        transform: translate(-50%, -50%) scale(1.09);
    }

    48%,
    100% {
        opacity: 0;
        transform: translate(-49%, -51%) scale(1.14);
    }
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 70%);
}

img,
iframe {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.9rem clamp(1rem, 3vw, 3rem);
    background: rgba(12, 10, 15, 0.66);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    transition: padding 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
    padding-block: 0.55rem;
    background: rgba(12, 10, 15, 0.9);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.brand-mark {
    width: 42px;
    height: 32px;
    aspect-ratio: 1;
    object-fit: contain;
}

.brand-logo {
    width: min(210px, 38vw);
    max-height: 58px;
    object-fit: contain;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.42));
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.site-nav a {
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    color: var(--muted);
    font-family: var(--font-small);
    font-weight: 800;
    font-size: 1.25rem;
    transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.site-nav .nav-cta {
    color: var(--ink);
    background: var(--gold);
    box-shadow: 0 12px 26px rgba(255, 212, 106, 0.22);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
}

.hero {
    position: relative;
    min-height: 94svh;
    display: grid;
    align-items: center;
    justify-items: center;
    padding: 9rem clamp(1rem, 4vw, 4rem) 4rem;
    overflow: hidden;
}

.hero-media,
.hero-media img,
.hero-overlay,
.hero-ambient {
    position: absolute;
    inset: 0;
}

.hero-media {
    z-index: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
    transform: scale(1.08);
    image-rendering: pixelated;
}

.hero-overlay {
    z-index: 1;
    background:
        radial-gradient(circle at 50% 34%, rgba(225, 187, 130, 0.16), transparent 30rem),
        radial-gradient(circle at 50% 72%, rgba(201, 146, 77, 0.12), transparent 32rem),
        linear-gradient(90deg, rgba(12, 10, 15, 0.82) 0%, rgba(12, 10, 15, 0.64) 50%, rgba(12, 10, 15, 0.82) 100%),
        linear-gradient(0deg, var(--bg) 0%, transparent 44%);
}

.hero-ambient {
    z-index: 2;
    overflow: hidden;
    opacity: 0.72;
    mask-image:
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.52) 45%, transparent 78%),
        linear-gradient(to bottom, transparent 0%, black 18%, black 78%, transparent 100%);
    pointer-events: none;
}

.hero-ambient::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 42%, rgba(225, 187, 130, 0.14), transparent 24rem),
        linear-gradient(90deg, rgba(12, 10, 15, 0.58), rgba(12, 10, 15, 0.12), rgba(12, 10, 15, 0.58));
}

.hero-ambient img {
    position: absolute;
    inset: 50% auto auto 50%;
    width: min(86vw, 1180px);
    height: min(58vw, 720px);
    min-height: 420px;
    object-fit: cover;
    border-radius: 18px;
    opacity: 0;
    filter: blur(13px) saturate(1.08) brightness(0.74);
    transform: translate(-50%, -50%) scale(1.03);
    animation: ambientFade 40s infinite ease-in-out;
}

.hero-ambient img:nth-child(2) {
    animation-delay: 10s;
}

.hero-ambient img:nth-child(3) {
    animation-delay: 20s;
}

.hero-ambient img:nth-child(4) {
    animation-delay: 30s;
}

.hero-content {
    position: relative;
    width: min(1360px, 100%);
    z-index: 3;
    text-align: center;
}

.hero-mark {
    width: clamp(72px, 10vw, 132px);
    margin-bottom: 1rem;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
}

.eyebrow {
    margin: 0 0 0.8rem;
    color: var(--gold);
    font-family: var(--font-small);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: clamp(1.05rem, 1.4vw, 1.35rem);
}

h1,
h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    max-width: min(1360px, 100%);
    margin-inline: auto;
    font-size: clamp(1.95rem, 4vw, 4.25rem);
    line-height: 1.08;
    word-spacing: -0.52em;
    text-shadow:
        0 14px 36px rgba(0, 0, 0, 0.45),
        0 0 22px rgba(225, 187, 130, 0.16);
    text-wrap: balance;
}

h1 span {
    display: block;
}

h2 {
    font-size: clamp(1.35rem, 3.4vw, 3rem);
}

.hero-copy {
    max-width: 930px;
    margin: 1.25rem 0 0;
    margin-inline: auto;
    color: #fff2df;
    font-size: clamp(1.55rem, 2.35vw, 2rem);
    font-weight: 700;
    text-shadow: 0 2px 18px rgba(201, 146, 77, 0.15);
}

.hero-actions,
.hero-stats,
.social-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
}

.hero-actions {
    margin-top: 2rem;
    justify-content: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.72rem;
    line-height: 1.35;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.hero-actions .button.primary {
    min-height: 72px;
    padding: 1.25rem 2.1rem;
    font-size: clamp(1rem, 2vw, 1.35rem);
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button.primary {
    background: linear-gradient(135deg, var(--menu-skin), #d89248);
    color: var(--ink);
    box-shadow:
        0 18px 34px rgba(201, 146, 77, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

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

.hero-stats {
    margin-top: 1.45rem;
    justify-content: center;
}

.hero-stats div {
    min-width: 118px;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(225, 187, 130, 0.08);
    backdrop-filter: blur(12px);
}

.hero-stats strong,
.hero-stats span {
    display: block;
}

.hero-stats strong {
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1;
}

.hero-stats span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.section {
    padding: clamp(2.8rem, 6vw, 5rem) clamp(1rem, 4vw, 4rem);
}

.section-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
    gap: clamp(1.4rem, 4vw, 3.2rem);
    align-items: start;
}

.copy-stack {
    color: var(--muted);
    font-size: clamp(1.45rem, 1.9vw, 1.8rem);
    font-weight: 650;
}

.copy-stack p:first-child {
    margin-top: 0;
}

.section-heading {
    max-width: 820px;
    margin-bottom: 1.25rem;
}

.trailer-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #000;
    box-shadow: var(--shadow);
}

.trailer-frame iframe {
    width: 100%;
    height: 100%;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0.6rem;
    margin-top: 0.6rem;
}

.gallery img,
.short-card {
    width: 100%;
    height: 100%;
    min-height: 220px;
    grid-column: span 4;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-2);
    transition: transform 180ms ease, border-color 180ms ease, filter 180ms ease;
}

.gallery img {
    object-fit: cover;
    cursor: zoom-in;
}

.gallery img:nth-of-type(1),
.gallery img:nth-of-type(5) {
    grid-column: span 8;
}

.short-card {
    aspect-ratio: 9 / 16;
    min-height: 420px;
    overflow: hidden;
}

.short-card iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.gallery img:hover,
.short-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 212, 106, 0.55);
    filter: saturate(1.14);
}

.image-preview {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(0.6rem, 2vw, 1.2rem);
    padding: clamp(1rem, 3vw, 2rem);
    background:
        radial-gradient(circle at 50% 50%, rgba(225, 187, 130, 0.14), transparent 34rem),
        rgba(8, 7, 10, 0.92);
    backdrop-filter: blur(16px);
}

.image-preview[hidden] {
    display: none;
}

.image-preview figure {
    margin: 0;
    display: grid;
    justify-items: center;
    gap: 0.8rem;
}

.image-preview img {
    max-width: min(100%, 1320px);
    max-height: 82svh;
    object-fit: contain;
    border: 1px solid rgba(225, 187, 130, 0.35);
    border-radius: var(--radius);
    background: #08070a;
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.62),
        0 0 36px rgba(201, 146, 77, 0.14);
}

.image-preview figcaption {
    color: var(--muted);
    font-size: 1.15rem;
    text-align: center;
}

.preview-close,
.preview-nav {
    border: 1px solid rgba(225, 187, 130, 0.28);
    border-radius: var(--radius);
    background: rgba(225, 187, 130, 0.12);
    color: var(--text);
    font-family: var(--font-small);
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.preview-close:hover,
.preview-nav:hover,
.preview-close:focus-visible,
.preview-nav:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(225, 187, 130, 0.55);
    background: rgba(225, 187, 130, 0.2);
}

.preview-close {
    position: absolute;
    top: clamp(0.75rem, 2vw, 1.5rem);
    right: clamp(0.75rem, 2vw, 1.5rem);
    min-height: 44px;
    padding: 0.55rem 0.85rem;
}

.preview-nav {
    min-width: 72px;
    min-height: 54px;
    padding: 0.65rem 0.8rem;
}

.credits {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent);
}

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

.credit-grid article {
    min-height: 150px;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}

.credit-grid span,
.credit-grid strong {
    display: block;
}

.credit-grid span {
    color: var(--cyan);
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
}

.credit-grid strong {
    margin-top: 0.55rem;
    font-family: var(--font-display);
    font-size: clamp(0.74rem, 1.05vw, 0.96rem);
    line-height: 1.55;
}

.studio-note {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
    padding: 1.2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel-strong);
}

.studio-note p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-weight: 750;
    font-size: 2rem;
}

.studio-logo {
    display: flex;
    justify-self: end;
    margin-right: clamp(1rem, 4vw, 3.5rem);
}

.studio-note img {
    width: min(230px, 44vw);
    display: block;
}

.press-card {
    display: grid;
    grid-template-columns: minmax(140px, 210px) minmax(0, 1fr) auto;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: clamp(1.2rem, 4vw, 2.2rem);
    border: 1px solid rgba(255, 212, 106, 0.28);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(225, 187, 130, 0.16), rgba(201, 146, 77, 0.1)),
        rgba(255, 255, 255, 0.07);
    box-shadow: var(--shadow);
}

.press-capsule {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    object-position: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.press-card p {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--muted);
    font-weight: 750;
    font-size: 1.05rem;
}

.social-grid {
    align-items: stretch;
}

.social-grid a {
    display: grid;
    place-items: center;
    width: min(100%, 230px);
    min-height: 112px;
    padding: 1.2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    transition: transform 160ms ease, background 160ms ease;
}

.social-grid a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.13);
}

.social-grid img {
    max-width: 170px;
    max-height: 58px;
    object-fit: contain;
}

.contact-line {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.05rem;
    font-weight: 750;
}

.contact-line a {
    color: var(--cyan);
}

.site-footer {
    padding: 2rem clamp(1rem, 4vw, 4rem);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #0c0a0f;
}

.site-footer p {
    margin: 0;
    color: #a99f94;
    font-size: 0.85rem;
}

@media (max-width: 960px) {
    .nav-toggle {
        display: inline-block;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 0.65rem);
        left: 1rem;
        right: 1rem;
        display: grid;
        gap: 0.25rem;
        padding: 0.65rem;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: rgba(12, 10, 15, 0.96);
        box-shadow: var(--shadow);
        transform-origin: top;
        transform: scaleY(0.96);
        opacity: 0;
        pointer-events: none;
        transition: opacity 160ms ease, transform 160ms ease;
    }

    .site-nav.is-open {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    .site-nav a {
        border-radius: var(--radius);
    }

    .hero {
        min-height: 88svh;
    }

    .two-column,
    .press-card {
        grid-template-columns: 1fr;
        display: grid;
    }

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

    .gallery img,
    .short-card,
    .gallery img:nth-of-type(1),
    .gallery img:nth-of-type(5) {
        grid-column: span 6;
    }
}

@media (max-width: 640px) {
    .brand-mark {
        width: 42px;
    }

    .brand-logo {
        display: none;
    }

    .hero {
        padding-top: 7rem;
        padding-bottom: 2.5rem;
    }

    .hero-ambient {
        opacity: 0.56;
    }

    .hero-ambient img {
        width: 120vw;
        height: 74svh;
        min-height: 460px;
        filter: blur(15px) saturate(1.02) brightness(0.68);
    }

    h1 {
        font-size: clamp(1.45rem, 8.8vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.2rem, 7vw, 2rem);
    }

    .hero-actions .button,
    .press-card .button {
        width: 100%;
    }

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

    .hero-stats div {
        min-width: 0;
        padding: 0.75rem;
    }

    .hero-stats strong {
        font-size: 1.25rem;
    }

    .hero-stats span {
        font-size: 0.78rem;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery img,
    .short-card,
    .gallery img:nth-of-type(1),
    .gallery img:nth-of-type(5) {
        grid-column: auto;
        min-height: 190px;
    }

    .short-card {
        min-height: 520px;
    }

    .image-preview {
        grid-template-columns: 1fr 1fr;
        align-items: end;
        padding-top: 4.5rem;
    }

    .image-preview figure {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .image-preview img {
        max-height: 72svh;
    }

    .preview-prev,
    .preview-next {
        grid-row: 2;
        width: 100%;
    }

    .credit-grid,
    .studio-note {
        grid-template-columns: 1fr;
        display: grid;
    }

    .studio-logo {
        justify-self: start;
        margin-right: 0;
        margin-left: 0;
    }

    .studio-note img {
        width: min(230px, 70vw);
    }

    .social-grid a {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-ambient img {
        animation: none;
    }

    .hero-ambient img:first-child {
        opacity: 0.28;
    }
}
