@font-face {
    font-family: "PFDinTextCompPro";
    src: url("../webfont/PFDinTextCompPro-Thin.woff2") format("woff2"),
         url("../webfont/PFDinTextCompPro-Thin.woff") format("woff");
    font-weight: 100 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "PFDinTextCompPro";
    src: url("../webfont/PFDinTextCompPro-Light.woff2") format("woff2"),
         url("../webfont/PFDinTextCompPro-Light.woff") format("woff");
    font-weight: 300 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "PFDinTextCompPro";
    src: url("../webfont/PFDinTextCompPro-Medium.woff2") format("woff2"),
         url("../webfont/PFDinTextCompPro-Medium.woff") format("woff");
    font-weight: 500 900;
    font-style: normal;
    font-display: swap;
}

body.landing-page {
    --topnav-height: 0px;
    --landing-rail-width: 380px;
    --landing-control-width: min(270px, calc(var(--landing-rail-width) - 48px));
    --landing-auth-gap: 42px;
    --landing-terms-gap: 52px;
    --landing-actions-gap: 28px;
    --landing-pink: #ec008c;
    --landing-cyan: #12b8ef;

    min-height: 100vh;
    padding-top: 0;
    overflow-x: hidden;
    background: #000000;
    color: #ffffff;
    letter-spacing: 0.1em;
}

html::-webkit-scrollbar {
    width: 0;
    height: 0;
}

html {
    scrollbar-width: none;
}

body.landing-page::-webkit-scrollbar {
    width: 0;
    height: 0;
}

body.landing-page {
    scrollbar-width: none;
}

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

/* The shared top navigation bar is not rendered on the landing page; only
   its slide-in sidebar (about / contact / login) is reused here. */
.landing-page .mm-sidebar {
    top: var(--topnav-height);
    height: calc(100vh - var(--topnav-height));
}

.landing-shell {
    min-height: 100vh;
    background: #000000;
}

/* Left rail */

.landing-rail {
    position: fixed;
    z-index: 950;
    top: var(--topnav-height);
    left: 0;
    bottom: 0;
    width: var(--landing-rail-width);
    overflow: hidden;
    background: #000000;
}

.landing-rail__panel {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    background: #000000;
    scrollbar-width: none;
}

.landing-rail__panel::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.landing-logo-panel {
    flex: 0 0 auto;
    align-self: flex-start;
    width: 312px;
    margin: 0 0 0 28px;
    display: block;
}

.landing-logo-panel img {
    display: block;
    width: 100%;
    height: auto;
    padding-bottom: 40px;
}

.landing-login-button {
    width: 100%;
    min-height: 51px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--landing-pink);
    color: #ffffff;
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.1em;
    text-decoration: none;
}

.landing-media-library-button {
    font-size: 21px;
    white-space: nowrap;
}

.landing-switch-button.landing-media-library-button {
    background: var(--landing-pink);
    color: #ffffff;
    text-decoration: none;
}

.landing-nav-actions {
    flex: 0 0 auto;
    width: var(--landing-control-width);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    margin: 0 auto var(--landing-terms-gap);
}

.landing-actions {
    flex: 0 0 auto;
    width: var(--landing-control-width);
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 auto var(--landing-actions-gap);
}

.landing-switch-button {
    width: 100%;
    height: 51px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #12b8ef;
    color: #000000;
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.1em;
}

.landing-switch-button.landing-switch-button--compact {
    font-size: 21px;
    white-space: nowrap;
}

.landing-switch-button.is-selected {
    background: #12b8ef;
}

.landing-socials {
    flex: 0 0 auto;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.10);
    margin-top: auto;
}

.landing-socials a {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.62);
    transition:
        color 0.18s ease,
        transform 0.18s ease;
}

.landing-socials svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.landing-socials a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

/* Right matrix */

.right-hero {
    position: relative;
    min-height: 100vh;
    margin-left: var(--landing-rail-width);
    padding-top: var(--topnav-height);
    overflow: hidden;
    background: #000000;
}

.landing-matrix-message,
.landing-matrix-loader {
    min-height: calc(100vh - var(--topnav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.new-releases-grid,
.portfolio-video-grid {
    /* Artwork tile bounds. JS (initLandingGridColumns in main.js) reads these
       and sets an exact `repeat(N, minmax(0, 1fr))` inline so every tile in a
       row is identical and the row is fully covered. The rule below is only the
       no-JS fallback. */
    --album-min-size: 160px;
    --album-max-size: 200px;

    /* Fine mesh drawn over the whole artwork area (legacy site look). */
    --album-grid-overlay-cell: 5px;
    --album-grid-overlay-line: 1px;
    --album-grid-overlay-color: #000000;

    position: relative;
    width: 100%;
    min-height: calc(100vh - var(--topnav-height));
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--album-min-size), 1fr));
    align-content: start;
    gap: 0;
    padding: 0;
    background: #000000;
}

.new-releases-grid::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image:
        linear-gradient(
            to right,
            var(--album-grid-overlay-color) var(--album-grid-overlay-line),
            transparent var(--album-grid-overlay-line)
        ),
        linear-gradient(
            to bottom,
            var(--album-grid-overlay-color) var(--album-grid-overlay-line),
            transparent var(--album-grid-overlay-line)
        );
    background-size: var(--album-grid-overlay-cell) var(--album-grid-overlay-cell);
}

.landing-matrix-sentinel {
    width: 100%;
    height: 1px;
    pointer-events: none;
}

.landing-matrix-status {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 24px 40px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: #000000;
}

.new-release-card {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #000000;
}

.new-release-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    filter: saturate(0.92) contrast(0.95);
}

.portfolio-video-card {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #0b0c12;
    display: flex;
    flex-direction: column;
}

.portfolio-video-media {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    background: #000000;
}

.portfolio-video-thumb {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
    background: #000000;
    cursor: pointer;
}

.portfolio-video-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.01);
    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}

.portfolio-video-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(236, 0, 140, 0.10), rgba(0, 0, 0, 0.34)),
        rgba(0, 0, 0, 0.16);
    transition: background 0.25s ease;
}

.portfolio-video-play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: rgba(236, 0, 140, 0.6);
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    transition:
        transform 0.22s ease,
        background 0.22s ease;
}

.portfolio-video-play-icon::before {
    content: "";
    position: absolute;
    left: 52%;
    top: 50%;
    transform: translate(-42%, -50%);
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 19px solid #000000;
}

.portfolio-video-thumb:hover img {
    transform: scale(1.055);
    filter: saturate(1.12) contrast(1.04);
}

.portfolio-video-thumb:hover .portfolio-video-overlay {
    background:
        radial-gradient(circle at center, rgba(236, 0, 140, 0.18), rgba(0, 0, 0, 0.26)),
        rgba(0, 0, 0, 0.10);
}

.portfolio-video-thumb:hover .portfolio-video-play-icon {
    transform: translate(-50%, -50%) scale(1.08);
    background: var(--landing-pink);
}

.portfolio-video-frame {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #000000;
}

.portfolio-video-info {
    flex: 0 0 auto;
    min-height: 76px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(180deg, rgba(21, 23, 32, 0.98), rgba(10, 11, 17, 1));
}

.portfolio-video-type,
.portfolio-video-title {
    margin: 0;
    padding: 0;
}

.portfolio-video-type {
    color: rgba(255, 255, 255, 0.48);
    font-size: 12px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.portfolio-video-title {
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    line-height: 1.08;
    font-weight: 400;
    letter-spacing: 0.1em;
}

/* Terms modal */

.landing-modal[hidden] {
    display: none;
}

body.landing-modal-is-open {
    overflow: hidden;
}

.landing-modal {
    position: fixed;
    z-index: 2200;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.landing-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
}

.landing-modal__panel {
    position: relative;
    z-index: 1;
    width: min(560px, calc(100vw - 42px));
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: #080808;
    padding: 38px 42px 42px;
    color: #eeeeee;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.62);
    outline: none;
}

.landing-modal__panel h2 {
    margin: 0 40px 20px 0;
    color: #ffffff;
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.1em;
}

.landing-modal__panel p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 18px;
    line-height: 1.45;
    letter-spacing: 0.1em;
}

.landing-modal__body {
    color: rgba(255, 255, 255, 0.72);
}

.terms-text {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: inherit;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.45;
    letter-spacing: 0.1em;
}

.landing-modal__close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 32px;
    line-height: 1;
}

.landing-modal__close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/* Responsive */

@media (min-width: 1200px) and (max-width: 1899px) {
    body.landing-page {
        --landing-rail-width: 300px;
        --landing-control-width: 220px;
        --landing-auth-gap: 16px;
        --landing-terms-gap: 24px;
        --landing-actions-gap: 24px;
    }

    .landing-logo-panel {
        margin-left: 22px;
        width: 235px;
    }

    .landing-login-button {
        min-height: 44px;
        font-size: 22px;
    }

    .landing-switch-button {
        height: 44px;
        font-size: 22px;
    }

    .landing-switch-button.landing-media-library-button {
        font-size: 18px;
    }

    .landing-socials {
        height: 42px;
        gap: 15px;
    }

    .landing-socials a {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 1199px) {
    body.landing-page {
        --landing-rail-width: 280px;
        --landing-auth-gap: 28px;
        --landing-terms-gap: 34px;
        --landing-actions-gap: 24px;
    }

    .landing-logo-panel {
        margin-left: 20px;
        width: 240px;
    }

    .landing-nav-actions,
    .landing-actions {
        width: var(--landing-control-width);
    }

    .landing-login-button {
        min-height: 48px;
        font-size: 23px;
    }

    .landing-media-library-button {
        font-size: 19px;
    }

    .landing-switch-button {
        height: 48px;
        font-size: 24px;
    }

    .landing-socials {
        height: 50px;
        gap: 16px;
    }
}

@media (max-width: 700px) {
    body.landing-page {
        --landing-rail-width: 100%;
        --landing-control-width: min(270px, calc(100vw - 64px));
        --landing-auth-gap: 24px;
        --landing-terms-gap: 34px;
        --landing-actions-gap: 26px;
    }

    .landing-rail {
        position: relative;
        top: auto;
        bottom: auto;
        width: 100%;
        height: auto;
        min-height: 100vh;
        padding-top: var(--topnav-height);
        overflow: visible;
    }

    .landing-rail__panel {
        height: auto;
        min-height: calc(100vh - var(--topnav-height));
        overflow-y: visible;
    }

    .landing-logo-panel {
        align-self: center;
        width: min(270px, calc(100vw - 56px));
        margin: 0 auto;
    }

    .landing-nav-actions,
    .landing-actions {
        width: var(--landing-control-width);
    }

    .landing-switch-button {
        border-radius: 999px;
    }

    .landing-socials {
        height: 50px;
        border-radius: 0;
        padding: 0;
    }

    .right-hero {
        margin-left: 0;
        padding-top: 0;
    }

    .landing-matrix-message,
    .landing-matrix-loader,
    .new-releases-grid,
    .portfolio-video-grid {
        min-height: 60vh;
    }

    .landing-modal__panel {
        padding: 34px 26px 32px;
    }

    .landing-modal__panel h2 {
        font-size: 26px;
    }
}

@media (max-width: 420px) {
    body.landing-page {
        --landing-auth-gap: 20px;
        --landing-terms-gap: 28px;
        --landing-actions-gap: 22px;
    }

    .landing-logo-panel {
        width: min(240px, calc(100vw - 48px));
    }

    .landing-switch-button {
        height: 46px;
        font-size: 23px;
    }

    .landing-switch-button.landing-media-library-button {
        font-size: 19px;
    }

    .landing-socials {
        height: 50px;
    }
}
