@font-face {
    font-family: "Inter";
    src: url("assets/fonts/inter-400.woff2") format("woff2");
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
}

@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("assets/fonts/plus-jakarta-sans-700.woff2") format("woff2");
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
}

:root {
    --ink: #07070c;
    --surface: #0d0d15;
    --surface-raised: #13131e;
    --surface-hover: #191925;
    --brand-red: #ef4146;
    --brand-red-soft: rgba(239, 65, 70, 0.12);
    --accent-gold: #d8b365;
    --accent-gold-bright: #f0cb7b;
    --accent-gold-soft: rgba(216, 179, 101, 0.12);
    --text: #f5f3ed;
    --text-soft: #c6c3bd;
    --text-muted: #9a9793;
    --line: rgba(255, 255, 255, 0.1);
    --line-gold: rgba(216, 179, 101, 0.28);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --nav-height: 72px;
    --container: 1180px;
    --space-1: 0.5rem;
    --space-2: 0.875rem;
    --space-3: 1.25rem;
    --space-4: 1.75rem;
    --space-5: 2.5rem;
    --space-6: 4rem;
    --space-7: 6rem;
    --ease: 180ms cubic-bezier(0.2, 0.7, 0.3, 1);
    --red: var(--accent-gold);
    --red-hover: var(--accent-gold-bright);
    --fs-xs: clamp(0.72rem, 0.7rem + 0.1vw, 0.8rem);
    --fs-sm: clamp(0.84rem, 0.81rem + 0.15vw, 0.94rem);
    --fs-base: clamp(0.96rem, 0.92rem + 0.2vw, 1.06rem);
    --fs-md: clamp(1.06rem, 1rem + 0.3vw, 1.22rem);
    --fs-lg: clamp(1.25rem, 1.12rem + 0.6vw, 1.6rem);
    --fs-xl: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
    --fs-2xl: clamp(2.1rem, 1.6rem + 2vw, 3.25rem);
    --fs-3xl: clamp(2.75rem, 1.8rem + 3.6vw, 5.2rem);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 16px);
    color-scheme: dark;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--ink);
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    font-size: var(--fs-base);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 {
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

:focus-visible {
    outline: 3px solid var(--accent-gold-bright);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 12px;
    z-index: 3000;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    background: var(--text);
    color: var(--ink);
    font-weight: 800;
    transform: translateY(-160%);
    transition: transform var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

.navbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--nav-height);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(7, 7, 12, 0.78);
    backdrop-filter: blur(18px) saturate(1.2);
    transition: background var(--ease), border-color var(--ease);
}
.navbar.scrolled {
    background: rgba(7, 7, 12, 0.96);
    border-color: var(--line);
}

.nav-container {
    display: grid;
    grid-template-columns: minmax(105px, 1fr) auto minmax(105px, 1fr);
    align-items: center;
    width: min(1280px, calc(100% - 40px));
    height: 100%;
    margin-inline: auto;
}

.nav-logo { justify-self: start; }
.logo-img { width: auto; height: 49px; object-fit: contain; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color var(--ease), background var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 20px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--accent-gold-bright), var(--accent-gold));
    color: #12100b;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 10px 28px rgba(216, 179, 101, 0.18);
    transition: transform var(--ease), box-shadow var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(216, 179, 101, 0.25); }
.nav-cta-desktop { justify-self: end; }
.nav-links-cta-mobile { display: none; }

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 11px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background: var(--text);
    transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
    position: relative;
    display: grid;
    min-height: min(860px, 100svh);
    padding: calc(var(--nav-height) + 72px) 0 72px;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 34%, rgba(239, 65, 70, 0.11), transparent 23%),
        radial-gradient(circle at 72% 42%, rgba(216, 179, 101, 0.1), transparent 36%),
        linear-gradient(145deg, #08080e 0%, #06060b 55%, #0b0910 100%);
}
.hero::before {
    content: "";
    position: absolute;
    top: 16%;
    right: 7%;
    width: min(42vw, 560px);
    aspect-ratio: 1;
    border: 1px solid rgba(216, 179, 101, 0.13);
    border-radius: 50%;
    box-shadow:
        0 0 0 54px rgba(216, 179, 101, 0.025),
        0 0 0 108px rgba(239, 65, 70, 0.018);
}
.hero-bg, .hero-canvas, .scroll-indicator { display: none; }

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    grid-template-rows: auto auto auto;
    column-gap: clamp(42px, 8vw, 120px);
    align-content: center;
    align-items: center;
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}
.hero-logo {
    grid-column: 2;
    grid-row: 1 / 4;
    width: min(100%, 440px);
    height: auto;
    margin-inline: auto;
    filter: drop-shadow(0 30px 80px rgba(239, 65, 70, 0.16));
}
.hero h1 {
    grid-column: 1;
    margin-bottom: var(--space-3);
    font-size: var(--fs-3xl);
    font-weight: 800;
}
.hero h1::before {
    content: "GAMEQBATOR LABS";
    display: block;
    margin-bottom: var(--space-3);
    color: var(--accent-gold);
    font-family: "Inter", sans-serif;
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: 0.2em;
}
.typewriter-wrap {
    display: block;
    margin-top: 0.12em;
    color: var(--accent-gold-bright);
}
.hero-sub {
    grid-column: 1;
    max-width: 640px;
    margin-bottom: var(--space-4);
    color: var(--text-soft);
    font-size: var(--fs-md);
}
.hero-cta-row {
    grid-column: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font-size: var(--fs-sm);
    font-weight: 800;
    transition: transform var(--ease), background var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold-bright), var(--accent-gold));
    color: #151108;
    box-shadow: 0 12px 32px rgba(216, 179, 101, 0.18);
}
.btn-light {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
}
.btn-light:hover { background: rgba(255, 255, 255, 0.12); }

.page-hero {
    position: relative;
    padding: calc(var(--nav-height) + clamp(64px, 8vw, 104px)) 0 clamp(56px, 7vw, 88px);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 75% 15%, rgba(216, 179, 101, 0.1), transparent 25%),
        linear-gradient(145deg, #09090f, #07070c);
}
.page-hero::after {
    content: "";
    position: absolute;
    right: 8%;
    bottom: -190px;
    width: 380px;
    height: 380px;
    border: 1px solid rgba(216, 179, 101, 0.1);
    border-radius: 50%;
}
.page-hero .container { position: relative; z-index: 1; }
.eyebrow {
    display: block;
    margin-bottom: 13px;
    color: var(--accent-gold);
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.page-hero h1 {
    max-width: 900px;
    margin-bottom: 16px;
    font-size: var(--fs-2xl);
}
.page-hero .lede {
    max-width: 780px;
    margin-bottom: 0;
    color: var(--text-soft);
    font-size: var(--fs-md);
}

.page-header {
    padding: calc(var(--nav-height) + 56px) 0 44px;
    text-align: center;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}
.page-header-logo { width: 90px; margin: 0 auto 16px; }
.page-header h1 { margin-bottom: 10px; font-size: var(--fs-2xl); }
.page-header p { color: var(--text-muted); }

.section {
    position: relative;
    padding: clamp(68px, 8vw, 108px) 0;
}
.section-dark { background: var(--surface); }
.section-dark + .section-dark { border-top: 1px solid rgba(255, 255, 255, 0.055); }
.section-dark:nth-of-type(even) { background: var(--ink); }
.section-header { max-width: 760px; margin: 0 auto var(--space-5); text-align: center; }
.section-header h2 { margin-bottom: 13px; font-size: var(--fs-2xl); }
.section-header h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin: 18px auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--brand-red), var(--accent-gold));
}
.section-header p, .section-subtitle { margin-bottom: 0; color: var(--text-muted); }
.fade-in { opacity: 1; transform: none; }

.feature-grid,
.service-grid,
.metagame-grid,
.support-grid,
.team-grid,
.team-associates,
.incubated-grid,
.sitemap-grid {
    display: grid;
    gap: 20px;
}
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.service-grid { grid-template-columns: repeat(3, 1fr); }
.metagame-grid { grid-template-columns: repeat(3, 1fr); }
.support-grid { grid-template-columns: repeat(5, 1fr); }
.team-grid { grid-template-columns: repeat(4, 1fr); }
.team-associates { grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; }
.incubated-grid { grid-template-columns: repeat(2, 1fr); }
.sitemap-grid { grid-template-columns: repeat(3, 1fr); }

.feature-card,
.service-card,
.metagame-layer,
.support-channel,
.incubated-card,
.sitemap-col {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 2.6vw, 34px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(160deg, var(--surface-raised), rgba(13, 13, 21, 0.86));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    transition: transform var(--ease), border-color var(--ease), background var(--ease);
}
.feature-card::before,
.service-card::before,
.metagame-layer::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(var(--brand-red), var(--accent-gold));
    opacity: 0.65;
}
.feature-card:hover,
.service-card:hover,
.metagame-layer:hover,
.support-channel:hover,
.incubated-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-gold);
    background: var(--surface-hover);
}
.feature-card h3,
.service-card h3,
.incubated-card h3 { margin-bottom: 10px; font-size: var(--fs-lg); }
.feature-card p,
.service-card p,
.metagame-layer p,
.support-channel p,
.incubated-card p { color: var(--text-muted); }
.feature-icon {
    display: grid;
    width: 50px;
    height: 50px;
    margin-bottom: 22px;
    place-items: center;
    border-radius: 13px;
    background: var(--accent-gold-soft);
    color: var(--accent-gold-bright);
}
.feature-icon svg { width: 26px; height: 26px; }
.card-link { color: var(--accent-gold-bright); font-size: var(--fs-sm); font-weight: 800; }
.card-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.service-card .num { display: block; margin-bottom: 16px; color: var(--accent-gold); font-size: 2rem; font-weight: 800; }

.credibility-bar {
    display: grid;
    grid-template-columns: 1.05fr 1.35fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid var(--line-gold);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(216, 179, 101, 0.1), rgba(19, 19, 30, 0.45));
    box-shadow: var(--shadow);
}
.book-side { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.book-side img { width: 108px; border-radius: 7px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42); }
.book-side .label,
.printer-row .label,
.hq-block .label,
.portfolio-strip .label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-gold);
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.book-side .desc { margin-bottom: 0; color: var(--text-muted); font-size: var(--fs-sm); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { text-align: center; }
.stat .num { display: block; margin-bottom: 8px; color: var(--accent-gold-bright); font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 800; line-height: 1; }
.stat .label { color: var(--text-muted); font-size: var(--fs-sm); }
body[data-page="philosophy"] .credibility-bar { grid-template-columns: 1.3fr 1fr; }
body[data-page="philosophy"] .book-side img { width: clamp(160px, 18vw, 260px); }

.icon-circle {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    place-items: center;
    border: 1px solid var(--line-gold);
    border-radius: 50%;
    color: var(--accent-gold-bright);
    font-size: var(--fs-xs);
    font-weight: 800;
}
.metagame-layer h3, .metagame-layer h4,
.support-channel h3, .support-channel h4 { margin-bottom: 9px; font-size: var(--fs-md); }

.evolve-panel,
.callout-100b,
.project-feature,
.game-centers,
.hq-block,
.printer-row,
.contractors-tile {
    padding: clamp(28px, 4vw, 52px);
    border: 1px solid var(--line-gold);
    border-radius: var(--radius-lg);
    background: linear-gradient(140deg, rgba(216, 179, 101, 0.1), var(--surface-raised));
}
.evolve-panel { max-width: 900px; margin-inline: auto; }
.evolve-panel h3 { font-size: var(--fs-xl); }
.evolve-panel p { color: var(--text-soft) !important; }
.panel-copy { margin-bottom: var(--space-3); color: var(--text-soft); font-size: var(--fs-md); line-height: 1.7; }
.philosophy-insight { padding-inline: var(--space-4); }
.philosophy-insight p { margin: 0; color: var(--text-soft); font-size: var(--fs-md); }
.philosophy-insight strong { color: var(--accent-gold-bright); }
.evolve-panel ol { margin: 24px 0 0; padding-left: 22px; color: var(--text-soft); }
.evolve-panel li + li { margin-top: 12px; }

.callout-100b { max-width: 920px; margin-inline: auto; text-align: center; }
.callout-100b .big { display: block; margin-bottom: 14px; color: var(--accent-gold-bright); font-size: clamp(3rem, 8vw, 6rem); font-weight: 800; line-height: 1; }
.callout-100b .sub { display: block; max-width: 700px; margin-inline: auto; color: var(--text-soft); font-size: var(--fs-md); }
.portfolio-strip { margin-top: 34px; padding: 24px; border-block: 1px solid var(--line); color: var(--text-soft); text-align: center; line-height: 2; }

.timeline { max-width: 980px; margin-inline: auto; border-left: 1px solid var(--line-gold); }
.timeline-row {
    position: relative;
    display: grid;
    grid-template-columns: 90px 120px 1fr;
    gap: 24px;
    align-items: baseline;
    padding: 20px 24px 20px 34px;
    border-bottom: 1px solid var(--line);
}
.timeline-row::before { content: ""; position: absolute; left: -5px; top: 28px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-gold); }
.timeline-row .year { color: var(--accent-gold); font-weight: 800; }
.timeline-row .value { color: var(--text); font-size: var(--fs-lg); font-weight: 800; }
.timeline-row .desc { color: var(--text-muted); }

.game-centers { display: grid; grid-template-columns: minmax(280px, 0.8fr) 1.2fr; gap: 42px; align-items: center; }
.game-centers ul { padding-left: 20px; color: var(--text-soft); }
.game-centers li + li { margin-top: 8px; }
.media-player { position: relative; overflow: hidden; width: 100%; aspect-ratio: 9 / 16; border-radius: var(--radius); background: var(--surface-2); }
.game-centers .media-player { width: min(100%, 315px); max-height: 560px; justify-self: center; }
.incubated-media .media-player { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; border-radius: 0; }
.media-video { display: block; width: 100%; height: 100%; background: var(--surface-2); object-fit: cover; }
.media-play {
    position: absolute;
    inset: 50% auto auto 50%;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(7, 7, 12, 0.88);
    color: var(--text);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(10px);
}
.media-play:hover { border-color: var(--accent-gold); color: var(--accent-gold-bright); }
.media-player.is-active .media-play { display: none; }

.distribution-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.distribution-row { display: grid; grid-template-columns: minmax(120px, 0.7fr) 1.3fr; gap: 18px; padding: 17px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-raised); }
.distribution-row .partner { color: var(--text); font-weight: 700; }
.distribution-row .territory { color: var(--text-muted); }
.printer-row, .hq-block { margin-top: 24px; text-align: center; }
.printer-row .partners { color: var(--text-soft); }
.hq-block p { max-width: 700px; margin: 0 auto; color: var(--text-muted); }

.project-feature { display: grid; grid-template-columns: 1fr 0.7fr; gap: 40px; align-items: center; }
.project-feature .badge, .incubated-card .status { color: var(--accent-gold); font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.project-feature .visual { display: grid; min-height: 320px; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink); color: var(--accent-gold); font-size: var(--fs-xl); font-weight: 800; }
.project-prompt { padding: var(--space-5) 0; color: var(--text-muted); text-align: center; }
.project-prompt a { color: var(--accent-gold-bright); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

.incubated-media {
    display: grid;
    min-height: 380px;
    margin-bottom: 24px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--ink);
}
.incubated-media-video { min-height: 0; height: 560px; }
.incubated-media img { max-height: 520px; object-fit: contain; }
.incubated-card { text-align: left; }

.team-card {
    width: 100%;
    padding: 28px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-raised);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: transform var(--ease), border-color var(--ease), background var(--ease);
}
.team-card:hover { transform: translateY(-3px); border-color: var(--line-gold); background: var(--surface-hover); }
.team-photo { width: 112px; height: 112px; margin-bottom: 20px; border: 2px solid var(--line-gold); border-radius: 50%; object-fit: cover; }
.team-name { margin-bottom: 5px; font-family: "Plus Jakarta Sans", sans-serif; font-size: var(--fs-lg); font-weight: 800; }
.team-role { margin-bottom: 14px; color: var(--accent-gold); font-size: var(--fs-sm); font-weight: 700; }
.team-bio { color: var(--text-muted); font-size: var(--fs-sm); }
.contractors-tile { margin-top: 24px; text-align: center; }
.contractors-tile .big { display: block; color: var(--accent-gold-bright); font-size: 3rem; font-weight: 800; }

.bio-modal {
    width: min(700px, calc(100% - 28px));
    max-height: min(84svh, 820px);
    padding: 0;
    overflow: auto;
    border: 1px solid var(--line-gold);
    border-radius: var(--radius-lg);
    background: var(--surface-raised);
    color: var(--text);
    box-shadow: var(--shadow);
}
.bio-modal::backdrop { background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(8px); }
.bio-modal-content { position: relative; padding: clamp(28px, 5vw, 52px); }
.bio-modal-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--ink); color: var(--text); cursor: pointer; }
.bio-modal-photo { width: 130px; height: 130px; margin-bottom: 24px; border: 2px solid var(--line-gold); border-radius: 50%; object-fit: cover; }
.bio-modal-role { color: var(--accent-gold); font-weight: 700; }
.bio-modal-body p { color: var(--text-soft); }
.bio-modal-body p:last-child { margin-bottom: 0; }

.contact-form { max-width: 720px; margin-inline: auto; padding: clamp(26px, 4vw, 42px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); box-shadow: var(--shadow); }
.contact-container { max-width: 760px; }
.contact-heading { text-align: center; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-soft); font-size: var(--fs-sm); font-weight: 700; }
.form-group input, .form-group textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--ink); color: var(--text); padding: 14px 15px; transition: border-color var(--ease), box-shadow var(--ease); }
.form-group textarea { min-height: 180px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent-gold); box-shadow: 0 0 0 3px var(--accent-gold-soft); outline: 0; }
.form-group .field-error { border-color: var(--brand-red); }
.error-msg { display: block; min-height: 1.4em; margin-top: 6px; color: #ff8d91; font-size: var(--fs-xs); }
.form-status { margin: 16px 0 0; color: var(--text-soft); }
.honeypot { position: absolute !important; left: -9999px !important; }
.contact-success { max-width: 720px; margin-inline: auto; padding: 42px; border: 1px solid var(--line-gold); border-radius: var(--radius-lg); background: var(--surface-raised); text-align: center; }
.contact-success-icon { color: var(--accent-gold); font-size: 2rem; }
.contact-success-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.legal-content { max-width: 860px; margin-inline: auto; }
.legal-content h2 { margin-top: 42px; font-size: var(--fs-xl); }
.legal-content h3 { margin-top: 30px; font-size: var(--fs-lg); }
.legal-content p, .legal-content li { color: var(--text-soft); }
.legal-content a { color: var(--accent-gold-bright); text-decoration: underline; text-underline-offset: 3px; }
.legal-meta { color: var(--text-muted) !important; }
.sitemap-col h2, .sitemap-col h3 { font-size: var(--fs-lg); }
.sitemap-col a { display: block; padding: 5px 0; color: var(--text-soft); }
.sitemap-col a:hover { color: var(--accent-gold-bright); }

.footer { padding: 68px 0 28px; border-top: 1px solid var(--line); background: #06060a; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 0.65fr 1fr; gap: clamp(32px, 6vw, 80px); }
.footer-logo { width: 116px; height: auto; margin-bottom: 18px; }
.footer p { color: var(--text-muted); font-size: var(--fs-sm); }
.footer h3 { margin-bottom: 16px; color: var(--text); font-size: var(--fs-md); }
.footer-nav a { display: block; margin: 8px 0; color: var(--text-muted); font-size: var(--fs-sm); }
.footer a:hover { color: var(--accent-gold-bright); }
.footer-email { color: var(--accent-gold-bright); overflow-wrap: anywhere; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--text-soft); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; }

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 800;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line-gold);
    border-radius: 50%;
    background: var(--surface-raised);
    color: var(--accent-gold-bright);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity var(--ease), transform var(--ease);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

.cookie-notice {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 480px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(19, 19, 30, 0.98);
    box-shadow: var(--shadow);
}
.cookie-notice p { margin: 0; color: var(--text-soft); font-size: var(--fs-xs); }
.cookie-notice a { color: var(--accent-gold-bright); text-decoration: underline; }
.cookie-notice button { border: 0; border-radius: 8px; background: var(--accent-gold); color: #151108; padding: 8px 11px; font-weight: 800; cursor: pointer; }

@media (max-width: 1023px) {
    :root { --nav-height: 66px; }
    .nav-container { display: flex; justify-content: space-between; width: min(100% - 28px, var(--container)); }
    .nav-toggle { display: block; order: 3; }
    .nav-cta-desktop { display: none; }
    .nav-links-cta-mobile { display: block; }
    .nav-links {
        position: fixed;
        inset: var(--nav-height) 0 0 auto;
        display: flex;
        width: min(390px, 100vw);
        height: calc(100svh - var(--nav-height));
        padding: 24px;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        border-left: 1px solid var(--line);
        background: rgba(7, 7, 12, 0.99);
        box-shadow: -30px 0 80px rgba(0, 0, 0, 0.44);
        transform: translateX(102%);
        visibility: hidden;
        pointer-events: none;
        transition: transform var(--ease), visibility 0s linear var(--ease);
    }
    .nav-links.open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        transition: transform var(--ease), visibility 0s;
    }
    .nav-links a { padding: 13px 14px; font-size: 1rem; }
    .nav-links .nav-cta { margin-top: 8px; }
    .hero { min-height: auto; padding-block: calc(var(--nav-height) + 62px) 70px; }
    .hero-content { grid-template-columns: minmax(0, 1fr) minmax(250px, 0.65fr); column-gap: 28px; }
    .support-grid { grid-template-columns: repeat(3, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .container, .hero-content { width: min(100% - 32px, var(--container)); }
    .hero { padding-block: calc(var(--nav-height) + 44px) 58px; }
    .hero-content { display: flex; flex-direction: column; align-items: flex-start; }
    .hero-logo { order: -1; width: min(290px, 78vw); margin: 0 auto 38px; }
    .hero h1 { font-size: clamp(2.35rem, 12vw, 3.55rem); }
    .hero-sub { font-size: 1rem; }
    .hero-cta-row { width: 100%; }
    .hero-cta-row .btn { flex: 1 1 180px; }
    .page-hero { padding-block: calc(var(--nav-height) + 48px) 52px; text-align: left; }
    .page-hero h1 { font-size: clamp(2rem, 10vw, 3rem); }
    .feature-grid, .service-grid, .metagame-grid, .support-grid, .incubated-grid, .sitemap-grid { grid-template-columns: 1fr; }
    .credibility-bar, body[data-page="philosophy"] .credibility-bar { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr; }
    .stat { display: grid; grid-template-columns: 90px 1fr; align-items: center; text-align: left; }
    .stat .num { margin: 0; }
    .book-side { grid-template-columns: 1fr; justify-items: start; }
    .timeline-row { grid-template-columns: 70px 1fr; gap: 8px 16px; }
    .timeline-row .desc { grid-column: 2; }
    .game-centers, .project-feature { grid-template-columns: 1fr; }
    .distribution-grid { grid-template-columns: 1fr; }
    .team-associates { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
    .cookie-notice {
        left: 10px;
        right: 10px;
        bottom: 10px;
        gap: 9px;
        padding: 9px 10px;
        border-radius: 10px;
    }
    .cookie-notice p { font-size: 0.68rem; line-height: 1.35; }
    .cookie-notice button { padding: 7px 9px; white-space: nowrap; }
}

@media (max-width: 440px) {
    .hero-cta-row { flex-direction: column; }
    .hero-cta-row .btn { width: 100%; flex-basis: auto; }
    .team-grid { grid-template-columns: 1fr; }
    .distribution-row { grid-template-columns: 1fr; gap: 3px; }
    .incubated-media { min-height: 300px; }
    .incubated-media-video { height: auto; aspect-ratio: 3 / 4; }
    .cookie-notice { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
