/* =========================================
   OFFICE CHAIR STUDIOS / DESIGN SYSTEM
   ========================================= */
:root {
    --bg: #080808;
    --panel: #141414;
    --panel-raised: #1d1d1d;
    --text: #f6f4ee;
    --muted: #aaa9a4;
    --line: #393939;
    --accent: #b8f24b;
    --accent-soft: #d8fa9a;
    --accent-dark: #283b19;
    --accent-secondary: #ff795b;
    --accent-shadow: #4b6330;
    --font-display: "BBH Sans Bartle", sans-serif;
    --font-body: "Aldrich", sans-serif;
    --font-heading: "Anton SC", sans-serif;
    --font-secondary: "Quicksand", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px dashed var(--accent); outline-offset: 5px; }

/* =========================================
   SHARED GRAPHIC LANGUAGE
   ========================================= */
.banner, .games-hero, .about-section, .news-section, .game-feature, .future-games { isolation: isolate; }
.eyebrow, .about-label, .news-label, .games-eyebrow, .game-section-label {
    display: inline-block;
    width: fit-content;
    padding: 8px 12px;
    background: var(--accent);
    color: #101010;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.4;
    text-transform: uppercase;
    transform: rotate(-2deg);
}
.about-divider, .news-divider, .game-divider {
    width: 88px;
    height: 8px;
    background: repeating-linear-gradient(110deg, var(--accent) 0 11px, transparent 11px 17px);
    margin: 24px 0 35px;
}
.about-container h2, .news-container h2, .game-feature h2, .future-games h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(32px, 5vw, 66px);
    line-height: 1.2;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    margin-top: 28px;
}
/* END SHARED GRAPHIC LANGUAGE */

/* =========================================
   NAVIGATION
   ========================================= */
.nav {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 25px 0;
}
.nav ul { list-style: none; }
.nav ul li { display: inline-block; }
.nav ul li a {
    display: inline-block;
    padding: 10px 16px;
    border: 2px solid transparent;
    font-family: var(--font-display);
    font-size: clamp(16px, 2vw, 25px);
    line-height: 1.3;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, color .18s ease;
}
.nav ul li a:hover, .nav ul li a:focus-visible {
    transform: rotate(-4deg) translateY(-3px);
    background: var(--accent);
    color: #080808;
}
.nav ul li a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav .Logo, .nav .logo { width: clamp(105px, 15vw, 175px); height: auto; object-fit: contain; }
/* END NAVIGATION */

/* =========================================
   HOMEPAGE HERO
   ========================================= */
.banner {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background: radial-gradient(ellipse at 75% 50%, #27331b, #10150e 38%, #090909 72%);
}
.banner::before, .games-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .27;
    background-image: radial-gradient(var(--accent-soft) 1px, transparent 1px);
    background-size: 18px 18px;
    mask-image: linear-gradient(110deg, transparent 20%, black 100%);
    pointer-events: none;
}
.banner::after {
    content: "";
    position: absolute;
    width: min(42vw, 500px);
    aspect-ratio: 1;
    right: -12%;
    bottom: -30%;
    border: 35px solid rgba(184,242,75,.14);
    border-radius: 50%;
    transform: rotate(-18deg);
    pointer-events: none;
}
.intro {
    position: absolute;
    top: 52%;
    left: 50%;
    width: min(1100px, 92%);
    padding: 20px;
    transform: translate(-50%, -50%);
    text-align: center;
}
.intro h1 {
    font-family: var(--font-display);
    font-size: clamp(34px, 6.3vw, 86px);
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    margin-top: 24px;
    text-shadow: 5px 5px 0 #344a24;
}
.intro p {
    max-width: 800px;
    margin: 20px auto 0;
    font-size: clamp(15px, 1.7vw, 21px);
    line-height: 1.7;
    color: #d1d0cb;
}
.hero-button {
    position: relative;
    display: inline-block;
    margin-top: 34px;
    padding: 17px 28px;
    background: var(--accent);
    color: #080808;
    border: 2px solid var(--text);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 7px 7px 0 var(--accent-shadow);
    transform: rotate(-2deg);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.hero-button:hover { transform: rotate(1deg) translate(3px, 3px); box-shadow: 3px 3px 0 var(--accent-shadow); background: var(--accent-soft); }
/* END HOMEPAGE HERO */

/* =========================================
   ABOUT US
   ========================================= */
.about-section {
    position: relative;
    padding: 115px 8% 125px;
    background: #111;
    border-top: 3px solid var(--accent);
    overflow: hidden;
}
.about-section::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    right: -110px;
    top: 45px;
    background: repeating-linear-gradient(135deg, transparent 0 14px, #34452a 14px 19px);
    transform: rotate(10deg);
    opacity: .6;
    z-index: -1;
}
.about-container { max-width: 920px; margin: 0 auto; }
.about-container p {
    max-width: 830px;
    margin-bottom: 23px;
    color: #cac9c4;
    font-size: clamp(16px, 1.7vw, 20px);
    line-height: 1.9;
}
/* END ABOUT US */

/* =========================================
   LATEST NEWS
   ========================================= */
.news-section {
    padding: 115px 8% 125px;
    background: #090909;
    border-top: 2px solid #2e2e2e;
}
.news-container { max-width: 920px; margin: 0 auto; }
.news-empty {
    position: relative;
    padding: clamp(40px, 6vw, 70px) 30px;
    background: #191919;
    border: 2px solid #52613b;
    box-shadow: 10px 10px 0 #2e3e25;
    text-align: center;
    overflow: hidden;
}
.news-empty::before {
    content: "";
    position: absolute;
    top: -22px;
    left: -22px;
    width: 80px;
    height: 80px;
    border: 8px solid var(--accent-secondary);
    transform: rotate(25deg);
    opacity: .5;
}
.news-empty h3 {
    position: relative;
    font-family: var(--font-heading);
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 400;
    line-height: 1.3;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.news-empty p {
    position: relative;
    max-width: 650px;
    margin: auto;
    color: #bcbab5;
    font-size: clamp(14px, 1.5vw, 17px);
    line-height: 1.8;
}
/* END LATEST NEWS */

/* =========================================
   GAMES PAGE / CONTINUOUS GRAPHIC CANVAS
   ========================================= */
/* One background behind the hero, featured window, and future projects.
   The dot grid no longer restarts at each section boundary. */
main:has(> .games-hero) {
    position: relative;
    isolation: isolate;
    background-color: #10180e;
    background-image:
        radial-gradient(ellipse at 85% 12%, rgba(184,242,75,.16), transparent 43%),
        radial-gradient(ellipse at 10% 84%, rgba(255,121,91,.075), transparent 48%),
        radial-gradient(circle, rgba(184,242,75,.28) 1.4px, transparent 1.8px);
    background-size: 100% 100%, 100% 100%, 22px 22px;
    background-position: center, center, 0 0;
}
/* Keep the existing homepage dots, but avoid doubling them on Games. */
.games-hero::before { display: none; }
/* END GAMES PAGE / CONTINUOUS GRAPHIC CANVAS */

/* =========================================
   GAMES HERO
   ========================================= */
.games-hero {
    position: relative;
    min-height: 75vh;
    min-height: 75svh;
    background: transparent;
    overflow: hidden;
}
.games-hero::after {
    content: "";
    position: absolute;
    right: -100px;
    bottom: -160px;
    width: min(50vw, 550px);
    aspect-ratio: 1;
    border: 42px solid rgba(255,121,91,.12);
    border-radius: 50%;
    pointer-events: none;
}
.games-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(95px, 14vh, 170px) 5% 110px;
}
.games-hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 108px);
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
    margin: 25px 0 15px;
    text-shadow: 6px 6px 0 #3e5129;
}
.games-hero-content p { color: #ccc; font-size: clamp(15px, 1.8vw, 20px); line-height: 1.7; }
/* END GAMES HERO */

/* =========================================
   FLOATING PROJECT WINDOW
   ========================================= */
.game-feature {
    position: relative;
    isolation: isolate;
    z-index: 2;

    width: min(1400px, 90%);
    margin: 25px auto 110px;
    padding: clamp(30px, 5vw, 68px) 0 0;

    background: #171c15;
    border: 3px solid #7e9b54;

    box-shadow:
        inset 2px 2px 0 rgba(246, 244, 238, .14),
        inset -5px -5px 0 rgba(0, 0, 0, .25);

    /* 3D perspective */
    transform: perspective(1400px)
               rotateX(var(--tilt-x, 0deg));

    transform-origin: center center;

    /* Scroll-controlled perspective */
    --tilt-x: 0deg;

    /* Scroll-controlled shadow */
    --cast-x: 0px;
    --cast-y: 38px;
    --cast-skew: 0deg;
    --cast-scale: 1.06;
    --cast-blur: 20px;
    --cast-opacity: .72;
}

/* END FLOATING PROJECT WINDOW */


/* A decorative strip along the top edge of the stationary screen. */
.game-feature::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    right: 0;
    height: 12px;
    background: repeating-linear-gradient(
        100deg,
        var(--accent) 0 28px,
        #151b12 28px 39px
    );
    pointer-events: none;
}

/* A silhouette projected onto the patterned surface beneath the screen. */
.game-feature::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: #020502;
    border: 2px solid rgba(184,242,75,.20);
    opacity: var(--cast-opacity);
    filter: blur(var(--cast-blur));
    transform-origin: center center;
    transform:
        translate(var(--cast-x), var(--cast-y))
        skewX(var(--cast-skew))
        scaleY(var(--cast-scale));
    pointer-events: none;
    will-change: transform;
}

/* No movement is applied to the screen's contents. */
.game-feature > * {
    transform: none;
}

.game-feature-heading { max-width: 1400px; margin: 0 auto 34px; padding: 0 5%; }
.current-game-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    min-height: 610px;
    border-top: 3px solid #5c713d;
    background: #1a1a1a;
}
.current-game-artwork {
    position: relative;
    min-width: 0;
    min-height: 610px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-right: 3px solid #5c713d;
    background: radial-gradient(circle at 35% 45%, #344824, #141914 67%);
}
.current-game-artwork::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .3;
    background-image: radial-gradient(#e2e2e2 1.5px, transparent 1.5px);
    background-size: 17px 17px;
    mask-image: linear-gradient(135deg, black, transparent 70%);
}
.current-game-artwork::after {
    content: "";
    position: absolute;
    width: 80%;
    height: 24px;
    left: -10%;
    bottom: 17%;
    background: repeating-linear-gradient(90deg, var(--accent) 0 30px, #101010 30px 42px);
    transform: rotate(-14deg);
    opacity: .7;
}
.artwork-corner, .artwork-caption {
    position: absolute;
    z-index: 2;
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 1px;
    line-height: 1.5;
    color: #eee;
}
.artwork-corner { top: 28px; left: 28px; }
.artwork-caption {
    bottom: 28px;
    left: 28px;
    padding: 8px 12px;
    background: #eee;
    color: #111;
    transform: rotate(-3deg);
    display: none; /* Retires the old “Identity Undisclosed” caption without HTML changes. */
}
.artwork-geometry {
    position: relative;
    width: clamp(160px, 25vw, 340px);
    aspect-ratio: 1;
    transform: rotate(-12deg);
    transition: transform .3s ease;
}
.current-game-artwork:hover .artwork-geometry { transform: rotate(-5deg) scale(1.06); }
.geometry-square { position: absolute; display: block; border: 18px solid var(--accent); border-radius: 40% 60% 55% 45%; }
.geometry-square:nth-child(1) { inset: 7%; transform: rotate(12deg); }
.geometry-square:nth-child(2) { inset: 20%; border-color: var(--accent-secondary); border-radius: 60% 35% 50% 40%; transform: rotate(42deg); }
.geometry-square:nth-child(3) { inset: 34%; border-width: 12px; border-color: var(--text); border-radius: 45% 55% 35% 65%; transform: rotate(-18deg); }
.geometry-center { position: absolute; width: 18%; aspect-ratio: 1; background: var(--accent); border-radius: 50%; left: 41%; top: 41%; }
.current-game-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(32px, 5vw, 90px);
}
.development-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 13px;
    border: 2px solid var(--accent);
    font-size: 11px;
    letter-spacing: 1px;
    line-height: 1.5;
    transform: rotate(-2deg);
}
.status-dot { flex: 0 0 9px; height: 9px; background: var(--accent); border-radius: 50%; }
.current-game-info h3 {
    max-width: 100%;
    margin: 30px 0 20px;
    font-family: var(--font-display);
    font-size: clamp(26px, 3.1vw, 48px);
    font-weight: 400;
    line-height: 1.3;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.project-info-divider { width: 70px; height: 7px; margin-bottom: 25px; background: var(--accent-secondary); transform: skewX(-20deg); }
.project-subtitle { font-size: 12px; letter-spacing: 1px; color: #e5e2da; margin-bottom: 20px; }
.current-game-info p { max-width: 430px; color: #bbb; font-size: clamp(14px, 1.4vw, 17px); line-height: 1.9; }
/* END CURRENT PROJECT */

/* =========================================
   FUTURE PROJECTS
   ========================================= */
.future-games { position: relative; padding: 105px 8% 125px; background: transparent; border-top: 0; }
.future-games-container { max-width: 1200px; margin: 0 auto; }
.future-games-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.game-placeholder {
    position: relative;
    min-width: 0;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    padding: 25px;
    background: #191919;
    border: 2px solid #53643c;
    box-shadow: 8px 8px 0 #283b19;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.game-placeholder:hover { transform: translate(-3px, -3px) rotate(-1deg); box-shadow: 11px 11px 0 #536d34; }
.game-placeholder::after {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    right: -45px;
    bottom: -45px;
    border: 16px solid #485b34;
    border-radius: 50%;
}
.placeholder-number { font-size: 11px; letter-spacing: 2px; color: #aaa; }
.placeholder-content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; }
.placeholder-plus { font-family: var(--font-heading); font-size: 70px; line-height: 1; color: var(--accent-secondary); transform: rotate(-12deg); }
.placeholder-content h3 { max-width: 100%; font-family: var(--font-display); font-size: clamp(19px, 2.4vw, 30px); font-weight: 400; line-height: 1.4; text-transform: uppercase; overflow-wrap: anywhere; }
.placeholder-content p { font-size: 13px; color: #999; }
/* END FUTURE PROJECTS */

/* =========================================
   FOOTER
   ========================================= */
.site-footer { padding: 75px 8% 30px; background: #111; border-top: 4px solid var(--accent); }
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-main { display: flex; justify-content: space-between; gap: 50px; padding-bottom: 65px; }
.footer-brand h2 { max-width: 520px; font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 34px); font-weight: 400; line-height: 1.35; text-transform: uppercase; }
.footer-brand p { margin-top: 12px; font-size: 13px; color: #aaa; }
.footer-links { display: flex; flex-wrap: wrap; gap: 60px; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.footer-column h3 { margin-bottom: 8px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.footer-column a { max-width: 100%; color: #bbb; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; text-decoration: none; transition: color .2s ease, transform .2s ease; }
.footer-column a:hover { color: var(--accent); transform: translateX(4px); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px; padding-top: 25px; border-top: 2px dashed #444; }
.footer-bottom p { color: #888; font-size: 11px; line-height: 1.7; }
/* END FOOTER */

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    .nav { width: 94%; padding: 16px 0; gap: 4px; }
    .nav ul li a { padding: 8px 5px; font-size: clamp(12px, 3vw, 19px); }
    .nav .Logo, .nav .logo { width: clamp(70px, 20vw, 115px); }
    .intro { top: 54%; width: 96%; }
    .intro h1 { font-size: clamp(29px, 7.2vw, 52px); text-shadow: 3px 3px 0 #344a24; }
    .intro p { font-size: 15px; }
    .eyebrow, .about-label, .news-label, .games-eyebrow, .game-section-label { font-size: 9px; letter-spacing: 1px; }
    .hero-button { padding: 13px 20px; font-size: 12px; }
    .about-section, .news-section { padding: 80px 6% 95px; }
    .news-empty { box-shadow: 6px 6px 0 #2e3e25; }
    .games-hero { min-height: 65vh; min-height: 65svh; }
    .games-hero-content { padding: 90px 6% 100px; }
    .games-hero-content h1 { font-size: clamp(40px, 9vw, 70px); }
    .game-feature {
        width: 92%;
        margin: 15px auto 75px;
        padding: 40px 0 0;
        --cast-x: 8px;
        --cast-y: 18px;
        --cast-blur: 10px;
        --cast-opacity: .65;
    }
    .game-feature > * { transform: none; }
    .game-feature-heading { padding: 0 6%; margin-bottom: 28px; }
    .current-game-card { grid-template-columns: 1fr; }
    .current-game-artwork { min-height: 350px; border-right: 0; border-bottom: 3px solid #5c713d; }
    .artwork-geometry { width: 220px; }
    .current-game-info { padding: 55px 6%; }
    .current-game-info h3 { font-size: clamp(28px, 8vw, 44px); }
    .future-games { padding: 80px 6% 95px; }
    .future-games-grid { grid-template-columns: 1fr; gap: 25px; }
    .game-placeholder { min-height: 260px; }
    .site-footer { padding: 55px 6% 25px; }
    .footer-main { flex-direction: column; gap: 35px; padding-bottom: 45px; }
    .footer-links { gap: 45px; }
}
@media (max-width: 390px) {
    .nav .Logo, .nav .logo { width: 65px; }
    .nav ul li a { font-size: 12px; }
    .artwork-corner { font-size: 9px; left: 16px; }
    .artwork-caption { left: 16px; }
}
/* END MOBILE RESPONSIVENESS */

/* =========================================
   ACCESSIBILITY
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* END ACCESSIBILITY */

/* =========================================
   FLOATING SCREEN / ACCESSIBILITY
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    .game-feature::after {
        transform: translate(9px, 18px);
        filter: blur(12px);
        will-change: auto;
    }
}
/* END FLOATING SCREEN / ACCESSIBILITY */

/* =========================================
   GAMES PAGE / SIDE FRAME
   ========================================= */

body:has(.games-hero) {
    --page-frame-width: clamp(8px, 1.5vw, 22px);
}

/* Continuous left and right borders */
body:has(.games-hero)::before,
body:has(.games-hero)::after {
    content: "";
    position: fixed;

    top: 0;
    bottom: 0;

    width: var(--page-frame-width);
    height: 100vh;

    background: #10170d;

    border-color: #647f43;
    border-style: solid;

    z-index: 100;
    pointer-events: none;
}

/* Left frame */
body:has(.games-hero)::before {
    left: 0;
    border-width: 0 2px 0 0;
    box-shadow: inset -4px 0 0 rgba(184, 242, 75, .12);
}

/* Right frame */
body:has(.games-hero)::after {
    right: 0;
    border-width: 0 0 0 2px;
    box-shadow: inset 4px 0 0 rgba(184, 242, 75, .12);
}

/* Mobile */
@media (max-width: 768px) {
    body:has(.games-hero) {
        --page-frame-width: 6px;
    }
}

/* END GAMES PAGE / SIDE FRAME */

/* =========================================
   GAMES PAGE / TOP FRAME
   ========================================= */

/* Recessed top frame behind the side rails */
body:has(.games-hero) .games-hero {
    border-top: clamp(10px, 1.8vw, 26px) solid #151E11;

    box-shadow:
        inset 0 2px 0 #34452a,
        inset 0 6px 0 rgba(0, 0, 0, .45);
}

/* Mobile */
@media (max-width: 768px) {
    body:has(.games-hero) .games-hero {
        border-top-width: 8px;
    }
}

/* END GAMES PAGE / TOP FRAME */

/* =========================================
   GAMES PAGE / MOBILE PROJECT SHADOW
   ========================================= */

@media (max-width: 768px) {
    .game-feature {
        --cast-x: 0px !important;
        --cast-y: 8px !important;
        --cast-scale: 1 !important;
        --cast-skew: 0deg !important;
        --cast-blur: 10px !important;
        --cast-opacity: 0.4 !important;
        --tilt-x: 0deg !important;
    }
}

/* END GAMES PAGE / MOBILE PROJECT SHADOW */


/* =========================================
   NAVIGATION / LOGO BOOKMARK
   ========================================= */

.nav .Logo,
.nav .logo {
    position: relative;
    z-index: 1;
}

.nav::after {
    content: "";
    position: absolute;

    top: -50px;
    right: -16px;

    width: clamp(125px, 18vw, 205px);
    height: calc(100% + 45px);

    background: rgba(0, 0, 0, 0.5);

    border-radius: 0 0 22px 22px;

    pointer-events: none;
    z-index: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .nav::after {
        right: -10px;
        width: 125px;
        border-radius: 0 0 16px 16px;
    }
}

/* END NAVIGATION / LOGO BOOKMARK */
