@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');
:root {
    --bg:#111416;
    --surface:#1b2023;
    --text:#f2f1ee;
    --muted:#b5b8b9;
    --orange:#ff8b24;
    --line:#343a3e;
    --max:1180px
}



* {
    box-sizing:border-box
}



html {
    scroll-behavior:smooth;
    scroll-padding-top:95px
}



body {
    margin:0;
    background:var(--bg);
    color:var(--text);
    font:16px/1.75 Inter,Arial,sans-serif
}



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



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



button {
    font:inherit
}



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



h1,h2,h3 {
    font-family:'Barlow Condensed',Impact,sans-serif;
    line-height:1.08
}



h1 {
    font-size:clamp(3.8rem,7vw,7rem);
    margin-bottom:28px
}



h2 {
    font-size:clamp(2.7rem,4.5vw,4.3rem);
    margin-bottom:24px
}



h3 {
    font-size:2rem;
    margin-bottom:16px
}



p {
    color:var(--muted);
    margin-bottom:20px
}



h1 em {
    font-style:normal;
    color:var(--orange)
}



.lead {
    font-size:clamp(1.08rem,1.5vw,1.3rem);
    color:#e1e1df;
    line-height:1.65
}



.eyebrow {
    font-size:.75rem;
    font-weight:700;
    letter-spacing:.2em;
    color:var(--orange);
    text-transform:uppercase;
    margin-bottom:16px
}



header {
    position:sticky;
    top:0;
    z-index:10;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
    padding:13px max(5%,calc((100% - var(--max))/2));
    background:rgba(17,20,22,.97);
    border-bottom:1px solid var(--line)
}



header>a {
    width:190px;
    flex-shrink:0
}



header nav {
    display:flex;
    gap:25px
}



header nav a {
    font-size:.83rem;
    font-weight:600;
    color:#c9cccd;
    white-space:nowrap
}



header nav a:hover {
    color:var(--orange)
}



#menu {
    display:none;
    background:none;
    border:1px solid var(--line);
    color:var(--text);
    padding:8px 12px;
    border-radius:4px
}



main>section {
    padding:100px max(5%,calc((100% - var(--max))/2));
    border-bottom:1px solid var(--line)
}



.dark {
    background:#171b1e
}



.hero {
    min-height:650px;
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:center;
    gap:8%;
    background:radial-gradient(ellipse at 75% 40%,#29201b,#111416 55%)
}



.hero-art {
    border:1px solid #3d332b;
    background:#151b1c;
    padding:35px 25px;
    box-shadow:0 25px 80px #0005
}



.actions {
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:30px
}



.button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:13px 20px;
    border:1px solid transparent;
    border-radius:3px;
    font-size:.83rem;
    font-weight:700;
    line-height:1.4;
    transition:background .2s,transform .2s
}



.button:hover {
    transform:translateY(-2px)
}



.primary {
    background:var(--orange);
    color:#171717
}



.primary:hover {
    background:#ffac57
}



.secondary {
    border-color:#686b6c
}



.secondary:hover {
    border-color:var(--orange);
    color:var(--orange)
}



.heading {
    max-width:790px;
    margin-bottom:45px
}



.feature {
    display:grid;
    grid-template-columns:1.1fr .9fr;
    align-items:center;
    gap:8%;
    margin-bottom:50px
}



.info-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px
}



.panel {
    padding:30px;
    background:var(--surface);
    border:1px solid var(--line)
}



.panel p:last-child {
    margin-bottom:0
}



.og {
    display:grid;
    grid-template-columns:1fr 220px;
    align-items:center;
    gap:40px;
    margin-top:35px;
    padding:35px;
    background:#191d20;
    border:1px solid var(--line)
}



.og img {
    width:100%;
    max-height:220px;
    object-fit:contain
}



.crew {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:24px
}



.crew article {
    background:var(--surface);
    border:1px solid var(--line);
    overflow:hidden
}



.crew img {
    width:100%;
    height:320px;
    object-fit:contain;
    background:radial-gradient(ellipse,#333a3d,#1b2023 70%);
    padding:18px
}



.crew article>div {
    padding:25px 30px 30px
}



.crew article p:last-child {
    margin-bottom:0
}



.story-art {
    min-height:340px;
    background:linear-gradient(135deg,#29211c,#15191b);
    border:1px solid var(--line);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:35px;
    padding:40px
}



.story-art img {
    max-width:380px
}



.story-art span {
    font-family:'Barlow Condensed',sans-serif;
    letter-spacing:.25em;
    color:var(--orange)
}



.status {
    display:inline-block;
    margin-top:12px;
    padding:5px 10px;
    border:1px solid #5b4937;
    color:#e7a76c;
    font-size:.7rem;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase
}



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



.games .panel {
    display:flex;
    flex-direction:column;
    align-items:flex-start
}



.games .status {
    margin-top:auto
}



.community {
    text-align:center;
    background:radial-gradient(ellipse at center,#29201b,#111416 70%)
}



.community h2 {
    font-size:clamp(3rem,6vw,5.5rem)
}



.community>p:not(.eyebrow) {
    max-width:680px;
    margin-left:auto;
    margin-right:auto
}



.community .button {
    margin-top:15px
}



footer {
    display:flex;
    align-items:center;
    gap:25px;
    padding:35px max(5%,calc((100% - var(--max))/2));
    background:#0b0d0e
}



footer img {
    width:65px;
    height:65px;
    object-fit:cover;
    border-radius:50%
}



footer strong {
    font-family:'Barlow Condensed',sans-serif;
    font-size:1.5rem
}



footer p {
    font-size:.75rem;
    margin:0
}



footer a {
    margin-left:auto;
    font-size:.8rem;
    color:var(--orange)
}



footer small {
    font-size:.7rem;
    color:#777
}



@media(max-width:1000px) {
    header {
    flex-wrap:wrap
}



header nav {
    gap:15px
}



header nav a {
    font-size:.75rem
}



.hero {
    gap:5%
}



main>section {
    padding-top:80px;
    padding-bottom:80px
}



.games {
    grid-template-columns:1fr 1fr
}



.games .panel:last-child {
    grid-column:1/-1
}


}



@media(max-width:700px) {
    html {
    scroll-padding-top:75px
}



header {
    padding:12px 5%;
    flex-wrap:nowrap
}



header>a {
    width:150px
}



#menu {
    display:block
}



header nav {
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:#171b1e;
    padding:15px 5% 25px;
    border-bottom:1px solid var(--line);
    flex-direction:column;
    align-items:stretch;
    gap:0
}



header nav.open {
    display:flex
}



header nav a {
    font-size:.95rem;
    padding:10px 0
}



main>section {
    padding:65px 6%
}



.hero {
    min-height:0;
    grid-template-columns:1fr;
    gap:40px
}



.hero-art {
    padding:20px
}



.feature {
    grid-template-columns:1fr;
    gap:30px
}



.info-grid,.crew,.games {
    grid-template-columns:1fr
}



.games .panel:last-child {
    grid-column:auto
}



.crew img {
    height:280px
}



.og {
    grid-template-columns:1fr;
    gap:15px
}



.og img {
    max-width:160px
}



.story-art {
    min-height:260px;
    padding:25px
}



.actions {
    flex-direction:column
}



.button {
    width:100%
}



footer {
    flex-wrap:wrap;
    padding:30px 6%
}



footer a {
    margin-left:0
}



footer small {
    width:100%
}


}



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



*,*:before,*:after {
    transition:none!important;
    animation:none!important
}


}




/* Collection carousel */
.collection-intro {
    display: block;
    max-width: 850px;
}



.carousel {
    margin: 35px 0 55px;
}



.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}



.carousel-count {
    margin: 0;
    font-size: .85rem;
}



.carousel-buttons {
    display: flex;
    gap: 8px;
}



.carousel-buttons button,
.dialog-close {
    cursor: pointer;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 3px;
}



.carousel-buttons button {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
}



.carousel-buttons button:hover,
.dialog-close:hover {
    border-color: var(--orange);
    color: var(--orange);
}



.carousel-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    padding: 4px 0 18px;
}



.carousel-card {
    flex: 0 0 calc((100% - 54px) / 4);
    min-width: 0;
    padding: 0;
    border: 1px solid var(--line);
    background: var(--surface);
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform .2s, border-color .2s;
}



.carousel-card:hover {
    transform: translateY(-4px);
    border-color: var(--orange);
}



.carousel-card img {
    width: 100%;
    height: auto;
}



.card-dialog {
    position: fixed;
    max-width: min(92vw, 620px);
    max-height: 92vh;
    padding: 28px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
}



.card-dialog::backdrop {
    background: rgba(0, 0, 0, .85);
}



.card-dialog img {
    max-height: 75vh;
    width: auto;
    margin: auto;
    object-fit: contain;
}



.card-dialog p {
    text-align: center;
    margin: 12px 0 0;
}



.dialog-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    font-size: 1.5rem;
}



@media (max-width: 1000px) {
    .carousel-card {
    flex-basis: calc((100% - 36px) / 3);
}


}



@media (max-width: 700px) {
    .carousel-card {
    flex-basis: calc((100% - 12px) / 2);
}



    .carousel-track {
    gap: 12px;
}



    .card-dialog {
    padding: 20px 12px;
}


}



@media (max-width: 420px) {
    .carousel-card {
    flex-basis: 75%;
}


}



/* =========================================================
   Featured collection and interactive gallery
   ========================================================= */
.collection-featured {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, .65fr);
    align-items: center;
    gap: 40px;
    margin: 35px 0 45px;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--line);
}



#featured-card {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}



#featured-image {
    width: 100%;
    max-height: 580px;
    object-fit: contain;
}



.carousel-track {
    scroll-snap-type: none;
    scroll-behavior: auto;
    cursor: grab;
    user-select: none;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
}



.carousel-track.is-dragging {
    cursor: grabbing;
}



.carousel-card {
    touch-action: auto;
    user-select: none;
}



.carousel-card img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}



.carousel-buttons button {
    touch-action: none;
    user-select: none;
}



.carousel-buttons button:disabled {
    opacity: .35;
    cursor: default;
}



/* Mechanix speech bubbles */
.crew-portrait {
    position: relative;
    outline-offset: -4px;
}



.crew-portrait:focus-visible {
    outline: 2px solid var(--orange);
}



.crew-portrait img {
    transition: transform .25s ease;
}



.crew-portrait:hover img,
.crew-portrait:focus img {
    transform: scale(1.035);
}



.crew-bubble {
    position: absolute;
    left: 50%;
    top: 12px;
    bottom: auto;
    width: max-content;
    max-width: calc(100% - 36px);
    padding: 10px 15px;
    background: #f2f1ee;
    color: #171717;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 5px 20px #0006;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity .2s, transform .2s, visibility .2s;
    pointer-events: none;
}



.crew-bubble::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: #f2f1ee;
}



.crew-portrait:hover .crew-bubble,
.crew-portrait:focus .crew-bubble {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}



/* Stories */
.story-feature {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 7%;
    margin-bottom: 30px;
}



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



.story-grid h3 {
    font-size: 1.65rem;
}



.story-note {
    margin-top: 25px;
    padding: 30px;
    border-left: 3px solid var(--orange);
    background: var(--surface);
}



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



/* Games */
.garage-feature {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 35px;
    margin-bottom: 25px;
}



.garage-feature h3 {
    font-size: clamp(2.5rem, 4vw, 4rem);
}



.garage-art {
    margin: 0;
}



.garage-art img {
    width: 100%;
    border: 1px solid var(--line);
}



.garage-art figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: .75rem;
}



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



.games .panel:last-child {
    grid-column: auto;
}



@media (max-width: 900px) {
    .collection-featured,
    .story-feature,
    .garage-feature {
    grid-template-columns: 1fr;
}



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


}



@media (max-width: 700px) {
    .collection-featured {
    padding: 18px;
    gap: 20px;
}



    .garage-feature {
    padding: 20px;
}



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



    .story-note {
    padding: 22px;
}


}



@media (prefers-reduced-motion: reduce) {
    .crew-portrait img,
    .crew-bubble {
    transition: none;
}


}



/* Mechanix dialogue: anchored above the portrait, not at its feet. */
.crew-portrait {
    position: relative;
    overflow: visible;
}
.crew-portrait .crew-bubble {
    top: 12px;
    bottom: auto;
    z-index: 5;
}
.crew-portrait .crew-bubble::after {
    top: 100%;
    bottom: auto;
}
.crew article {
    overflow: visible;
}

/* Shop */
.shop-feature {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 7%;
    margin-top: 36px;
}
.shop-art img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}
.shop-copy h3 {
    margin-top: 0;
}
.shop-copy .button {
    margin-top: 12px;
}
@media (max-width: 700px) {
    .shop-feature {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.studio-credit {
    text-align: center;
    font-size: 0.8rem;
    color: #aaa;
}

.studio-credit a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.studio-credit a:hover {
    color: var(--orange);
}