@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&family=Oswald:wght@500;700&family=Bebas+Neue&family=Dancing+Script:wght@700&family=Pacifico&display=swap');

:root {
    --text-light: #ffffff;
    --bg-dark: #000000;
    --neon-highlight: #ff0000;
    --neon-blue: #ff0000;
    --qstg-orange: #810000;
    --cream: #fdfae8;
    --qs-footer-bg: #2d3b2b;
    /* Matching the olive/dark-green background from screenshot */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input,
p,
h1,
h2,
span,
button {
    user-select: auto;
}

img {
    pointer-events: none;
}

/* ================= PRELOADER ================= */

#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeOutOverlay .7s ease 1.8s forwards;
    pointer-events: none;
}

@keyframes fadeOutOverlay {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        display: none;
    }
}

.newt-loader {
    position: relative;
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    transform: rotate(45deg);
}

.newt-loader span {
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 0 28px rgba(255, 255, 255, .45);
    animation: newtMove 1.05s ease-in-out infinite;
}

.newt-loader span:nth-child(1) {
    top: 0;
    left: 0;
}

.newt-loader span:nth-child(2) {
    top: 0;
    right: 0;
    animation-delay: .16s;
}

.newt-loader span:nth-child(3) {
    left: 0;
    bottom: 0;
    animation-delay: .32s;
}

@keyframes newtMove {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: .95;
    }

    45% {
        transform: translate(28px, 28px) scale(.72);
        opacity: .35;
    }
}

/* ================= HERO & NAV ================= */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    background-color: #000;
    overflow: hidden;
}

.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: bgEntrance 3s ease 2.5s forwards;
}

.bg-layer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 60%);
}

@keyframes bgEntrance {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInDown 1.5s ease 2.5s forwards;
}

.main-header.scrolled {
    background-color: #000;
    padding: 1rem 3rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-logo {
    height: 40px;
    width: auto;
    z-index: 101;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    pointer-events: auto;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 101;
}

.hamburger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    width: 32px;
    height: 32px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: 0.3s;
}

.hamburger:hover span {
    opacity: 0.8;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    transform: translateY(-5.5px) rotate(-45deg);
}

.sidebar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 400px;
    height: 100vh;
    background-color: #000;
    z-index: 90;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
}

.sidebar-menu.open {
    right: 0;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.8);
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.nav-links li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.nav-links li a:hover {
    color: var(--qstg-orange);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    position: relative;
    z-index: 5;
    padding-bottom: 5vh;
}

.logo-container {
    opacity: 0;
    transform: scale(0.85);
    animation: popInScale 2s cubic-bezier(0.16, 1, 0.3, 1) 3s forwards;
    margin-bottom: 2rem;
    max-width: 800px;
    width: 90%;
}

.vice-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.trailer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.5s ease 3.3s forwards;
}

.play-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.play-circle:hover {
    transform: scale(1.08);
    background-color: #ffffff;
    box-shadow: 0 4px 25px rgba(255, 255, 255, 0.4);
}

.play-triangle {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #000;
    margin-left: 5px;
}

.trailer-text {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    color: var(--text-light);
    opacity: 0;
    animation: fadeInDown 1s ease 4s forwards, bobbing 2s ease-in-out infinite alternate;
}

@keyframes popInScale {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bobbing {
    0% {
        transform: translate(-50%, 0);
    }

    100% {
        transform: translate(-50%, 10px);
    }
}

/* ================= CONTENT ================= */
.content-wrapper {
    position: relative;
    z-index: 10;
    background-color: #000;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Story Context */
.story-section {
    padding: 6rem 2rem;
    text-align: center;
    display: flex;
    justify-content: center;
}

.story-text {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.5;
    color: #ddd;
    max-width: 1000px;
}

.neon-highlight {
    color: var(--neon-highlight);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* Character Spotlights & Grids */
.character-spotlight {
    padding: 5rem 5%;
}

.character-header {
    margin-bottom: 3rem;
}

.character-header.right-align {
    text-align: right;
}

.character-name {
    font-family: 'Bebas Neue', cursive;
    font-size: 5rem;
    color: var(--cream);
    letter-spacing: 2px;
    line-height: 1;
    word-wrap: break-word;
}

.character-quote {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    color: #aaa;
    margin-top: -5px;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 15px;
}

.grid-img {
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    border: 1px solid #222;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #555;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: border 0.3s ease, filter 0.3s ease;
    pointer-events: auto;
}

.grid-img::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: inherit;
    background-size: inherit;
    background-position: inherit;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.grid-img:hover::before {
    transform: scale(1.05);
}

.grid-img:hover {
    border-color: #666;
    filter: brightness(1.1);
}

/* Fix chrome autofill white background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #1a1a1a inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

.jason-grid .large {
    background-image: none !important;
}

.jason-grid .large,
.lucia-grid .large {
    grid-column: span 2;
    grid-row: span 2;
}

.jason-grid .tall,
.lucia-grid .tall {
    grid-column: span 1;
    grid-row: span 2;
}

.jason-grid .medium,
.lucia-grid .medium {
    grid-column: span 1;
    grid-row: span 1;
}

.jason-grid .wide,
.lucia-grid .wide {
    grid-column: span 2;
    grid-row: span 1;
}

.story-scroll-card {
    position: relative;
    min-height: 110vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    isolation: isolate;
}

.story-scroll-card::before {
    content: attr(data-story);
    position: sticky;
    top: 96px;
    align-self: flex-start;
    margin-bottom: 2rem;
    font-family: 'Inter', sans-serif;
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .28em;
    color: rgba(255, 255, 255, .55);
    z-index: 3;
}

.story-scroll-card::after {
    content: "";
    position: absolute;
    inset: 9rem 3% 6rem auto;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .4), transparent);
    transform: scaleY(var(--story-progress, .15));
    transform-origin: top;
    transition: transform .12s linear;
    z-index: 1;
}

.story-scroll-card .character-header {
    position: sticky;
    top: 118px;
    z-index: 2;
    max-width: 920px;
    transform: translateY(var(--story-header-y, 28px));
    opacity: var(--story-opacity, .45);
}

.story-scroll-card .character-grid {
    transform: translateY(var(--story-grid-y, 54px));
    filter: saturate(var(--story-saturation, .72)) contrast(var(--story-contrast, .9));
    transition: filter .12s linear;
}

.story-scroll-card .grid-img {
    opacity: var(--story-image-opacity, .48);
}

.quote-interstitial {
    padding: 10rem 2rem;
    text-align: center;
}

.massive-quote {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    max-width: 1200px;
    margin: 0 auto;
}

/* REPLACED LOCATION WITH CARTEL SHOWCASE */
.cartel-feature {
    position: relative;
    padding: 12rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background: #050505;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.cartel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    opacity: 0.2;
    filter: grayscale(100%) contrast(1.2);
}

.cartel-content {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.cartel-heading {
    font-family: 'Oswald', sans-serif;
    font-size: 7rem;
    color: #fff;
    text-shadow: 2px 2px 0px #800000, 4px 4px 0px #000;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
}

.cartel-sub {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 600;
}

.cartel-separator {
    width: 100px;
    height: 4px;
    background: #800000;
    margin: 2rem auto 0;
}

/* ================= EXACT qstg FOOTER & NEWSLETTER ================= */
.qs-footer {
    background-color: #000000;
    padding: 6rem 2rem 4rem;
    position: relative;
    z-index: 10;
    font-family: 'Inter', sans-serif;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-wishlist {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    text-align: center;
}

.wishlist-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
}

.wishlist-platforms {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.plat-btn {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.3s;
    cursor: pointer;
    pointer-events: auto;
}

.plat-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* The Pill matching exactly the screenshot */
.qs-newsletter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    padding: 1.5rem 3rem;
    width: 100%;
    max-width: 1100px;
    margin-bottom: 4rem;
    background: transparent;
    flex-wrap: wrap;
    pointer-events: auto;
}

.qs-nl-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qs-nl-logo {
    height: 35px;
    width: auto;
    filter: invert(0) brightness(200%);
}

/* Whiten the logo */
.qs-nl-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.qs-nl-center {
    flex: 1;
    font-size: 0.85rem;
    color: #e0e0e0;
    font-weight: 500;
    line-height: 1.4;
    max-width: 450px;
}

.qs-nl-right {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    padding: 5px;
}

.qs-input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    outline: none;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    width: 200px;
}

.qs-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.qs-submit-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.qs-submit-btn:hover {
    transform: scale(1.1);
    color: var(--qstg-orange);
}

.qs-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.qs-links a {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: auto;
}

.qs-links a:hover {
    text-decoration: underline;
}

.qs-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-top: none;
    /* Removed border */
}

.qs-rating-box {
    border: 2px solid #fff;
    padding: 0.5rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    border-radius: 50px;
    font-weight: 900;
    letter-spacing: -1px;
}

.qs-rating-text {
    color: #f0f0f0;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    padding: 12px;
}

@media (max-width: 1024px) {
    .character-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .jason-grid .large,
    .lucia-grid .large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .character-name {
        font-size: 4.5rem;
    }

    .qs-newsletter {
        flex-direction: column;
        align-items: center;
        text-align: center;
        border-radius: 20px;
        padding: 2rem;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 1.5rem;
    }

    .main-header.scrolled {
        padding: 1rem 1.5rem;
    }

    .character-name {
        font-size: 3rem;
    }

    .character-quote {
        font-size: 1.6rem;
    }

    .cartel-heading {
        font-size: 4.5rem;
    }

    .character-grid {
        display: flex;
        flex-direction: column;
    }

    .story-scroll-card {
        min-height: auto;
        padding: 4rem 1.25rem;
    }

    .story-scroll-card::before {
        position: static;
        margin-bottom: 1rem;
    }

    .story-scroll-card::after {
        display: none;
    }

    .story-scroll-card .character-header {
        position: static;
        transform: none;
        opacity: 1;
    }

    .story-scroll-card .character-grid {
        transform: none;
    }

    .grid-img {
        height: 300px;
        pointer-events: auto;
    }

    .massive-quote {
        font-size: 2.5rem;
    }

    .qs-links {
        gap: 1rem;
        flex-direction: column;
        text-align: center;
    }
}
