:root {
    --bg-base: #05070b;
    --bg-surface: rgba(13, 17, 24, 0.78);
    --bg-surface-strong: rgba(16, 20, 28, 0.95);
    --text-primary: #f2f0ea;
    --text-secondary: #c7c2b7;
    --text-muted: #8f938f;
    --accent: #d3a85f;
    --accent-soft: rgba(211, 168, 95, 0.18);
    --line: rgba(255, 255, 255, 0.1);
    --shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --max-width: 1200px;
    --nav-height: 88px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg-base);
}

header[id],
section[id] {
    scroll-margin-top: 104px;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(211, 168, 95, 0.08), transparent 32%),
        linear-gradient(180deg, #040609 0%, #05070b 24%, #090d14 100%);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

main,
nav,
header,
section,
footer {
    position: relative;
    z-index: 10;
}

#atmosphere-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    opacity: 0.45;
    mix-blend-mode: screen;
}

.section-shell {
    width: min(var(--max-width), 100%);
    margin: 0 auto;
}

.eyebrow,
.sub-label,
.card-kicker,
.meta-label {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
}

.display-title,
.section-heading,
.overview-card h3,
.mode-card h4,
.highlight-card h4 {
    font-family: var(--font-display);
    letter-spacing: -0.03em;
}

.display-title {
    font-size: clamp(2.7rem, 6vw, 5rem);
    line-height: 0.95;
    margin-top: 1rem;
}

.section-heading {
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1.05;
    margin-top: 0.75rem;
}

.section-lead,
.section-copy,
.narrative-copy,
figcaption,
.mode-card p,
.highlight-card p,
.overview-card p,
.loop-list li,
.footer-description,
.updates-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

.minimal-nav {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nav-height);
    padding: 0 4vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    background: linear-gradient(180deg, rgba(4, 6, 9, 0.82), rgba(4, 6, 9, 0));
    backdrop-filter: blur(10px);
}

.nav-brand,
.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.nav-brand {
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    opacity: 0.76;
}

.nav-links a:hover,
.nav-links a.is-active,
.nav-brand:hover {
    opacity: 1;
    color: var(--accent);
}

.hero-cinematic {
    min-height: 100vh;
    padding: calc(var(--nav-height) + 3rem) 4vw 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.background-plate {
    position: absolute;
    inset: 0;
    background: #05060a url('../images/hero.jpg') center center / cover no-repeat;
    z-index: -2;
    animation: slowZoom 28s ease-in-out infinite alternate;
}

.vignette-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(5, 7, 11, 0.38) 0%, rgba(5, 7, 11, 0.56) 42%, rgba(5, 7, 11, 0.95) 100%),
        radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.3) 100%);
}

@keyframes slowZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.06);
    }
}

.hero-center {
    max-width: 860px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.logo-mark {
    display: flex;
    justify-content: center;
}

.hero-logo-img {
    width: min(560px, 72vw);
    max-height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.55));
}

.studio-ethos {
    max-width: 620px;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    color: #fff;
    line-height: 1.7;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

.hero-button,
.action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.95rem 1.35rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.hero-button:hover,
.action-link:hover {
    transform: translateY(-2px);
}

.hero-button.primary {
    background: var(--accent);
    color: #17120a;
    box-shadow: 0 10px 30px rgba(211, 168, 95, 0.24);
}

.hero-button:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.hero-button.secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(9, 12, 18, 0.36);
}

.scroll-indicator {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.74rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.scroll-indicator .line {
    width: 1px;
    height: 72px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent);
}

.game-reveal {
    padding: 7rem 4vw;
}

.game-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 3rem;
    align-items: end;
}

.project-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.meta-chip,
.overview-card,
.mode-card,
.highlight-card,
.game-showcase-card,
.feed-wrapper {
    border: 1px solid var(--line);
    background: var(--bg-surface);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.meta-chip {
    min-height: 116px;
    padding: 1.25rem;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.85rem;
}

.meta-value {
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.35;
    color: var(--text-primary);
}

.game-overview-grid {
    margin-top: 2.25rem;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 1.5rem;
    align-items: stretch;
}

.game-showcase-card {
    border-radius: 30px;
    overflow: hidden;
}

.showcase-media {
    width: 100%;
    height: 100%;
    min-height: 620px;
    object-fit: cover;
    object-position: center 42%;
    background: #040609;
}

.game-showcase-card figcaption {
    padding: 1.4rem 1.5rem 1.7rem;
    background: linear-gradient(180deg, rgba(11, 15, 21, 0.2), rgba(11, 15, 21, 0.92));
}

.overview-stack {
    display: grid;
    gap: 1.5rem;
}

.overview-card {
    border-radius: 24px;
    padding: 1.75rem;
}

.overview-card h3 {
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.1;
    margin: 0.9rem 0 1rem;
}

.accent-card {
    border-color: rgba(211, 168, 95, 0.34);
    background: linear-gradient(180deg, rgba(211, 168, 95, 0.12), rgba(13, 17, 24, 0.9));
}

.compact-card {
    padding-bottom: 1.5rem;
}

.loop-list {
    list-style: none;
    display: grid;
    gap: 0.95rem;
    margin-top: 0.4rem;
}

.loop-list li {
    position: relative;
    padding-left: 1.2rem;
}

.loop-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.78rem;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 18px rgba(211, 168, 95, 0.4);
}

.section-divider {
    width: 100%;
    height: 1px;
    margin: 3.5rem 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.section-heading-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
    gap: 2.5rem;
    align-items: end;
    margin-bottom: 1.75rem;
}

.highlights-grid,
.features-grid {
    display: grid;
    gap: 1rem;
}

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

.highlight-card,
.mode-card {
    border-radius: 24px;
    padding: 1.75rem;
}

.highlight-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    margin-bottom: 1.1rem;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.highlight-card h4,
.mode-card h4 {
    font-size: 1.35rem;
    margin-bottom: 0.9rem;
}

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

.featured-mode {
    border-color: rgba(211, 168, 95, 0.36);
    background: linear-gradient(180deg, rgba(211, 168, 95, 0.14), rgba(13, 17, 24, 0.92));
}

.game-cta {
    margin-top: 3.5rem;
    padding: 2rem;
    border: 1px solid rgba(211, 168, 95, 0.22);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(211, 168, 95, 0.16), rgba(13, 17, 24, 0.86));
    display: flex;
    gap: 2rem;
    align-items: end;
    justify-content: space-between;
}

.action-links {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-width: 270px;
    align-items: flex-start;
}

.action-link {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-primary);
    background: rgba(8, 10, 14, 0.22);
}

.action-link.is-disabled {
    cursor: default;
    color: rgba(242, 240, 234, 0.72);
    border-color: rgba(255, 255, 255, 0.08);
}

.action-link.is-disabled:hover {
    transform: none;
}

.action-link .arrow {
    margin-left: 0.65rem;
}

.action-link.muted {
    color: var(--text-secondary);
}

.studio-updates {
    padding: 2rem 4vw 7rem;
}

.updates-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
    gap: 2rem;
    align-items: start;
}

.feed-wrapper {
    min-height: 640px;
    border-radius: 26px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
}

.updates-panel {
    gap: 1.2rem;
}

.updates-panel .card-kicker {
    margin-bottom: 0.2rem;
}

.updates-panel h3 {
    border-radius: 20px;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 2.7vw, 2.3rem);
    line-height: 1.04;
}

.updates-panel > p {
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 32rem;
}

.updates-points {
    display: grid;
    gap: 0.9rem;
}

.updates-point {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
}

.updates-point-title {
    display: inline-block;
    margin-bottom: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

.updates-point p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.updates-panel .hero-button {
    width: auto;
    align-self: flex-start;
}

.contact-section {
    padding: 0 4vw 7rem;
}

.contact-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(340px, 0.92fr);
    gap: 1.5rem;
    align-items: start;
}

.contact-copy,
.contact-form,
.contact-pillar {
    border: 1px solid var(--line);
    background: var(--bg-surface);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.contact-copy,
.contact-form {
    border-radius: 30px;
    padding: 2rem;
}

.contact-pillars {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-pillar {
    border-radius: 22px;
    padding: 1.2rem 1.25rem;
}

.contact-pillar p {
    margin-top: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.contact-context {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(211, 168, 95, 0.2);
    border-radius: 18px;
    background: rgba(211, 168, 95, 0.08);
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.form-field span {
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(7, 9, 14, 0.72);
    color: var(--text-primary);
    font: inherit;
    padding: 1rem 1rem 1.05rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.form-field textarea {
    resize: vertical;
    min-height: 180px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(199, 194, 183, 0.46);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: rgba(211, 168, 95, 0.55);
    box-shadow: 0 0 0 4px rgba(211, 168, 95, 0.12);
    background: rgba(10, 13, 18, 0.9);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.form-note {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.94rem;
}

.form-note:empty {
    display: none;
}

.form-note.is-error {
    color: #ffb1a5;
}

.form-note.is-success {
    color: #a9e9c0;
}

.subject-preview {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.94rem;
    text-align: right;
}

.minimal-footer {
    padding: 0 4vw 3rem;
}

.footer-layout {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: end;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-brand {
    max-width: 480px;
}

.footer-logo-img {
    height: 44px;
    width: auto;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.83rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-col.right {
    align-items: flex-end;
}

.footer-col.right a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.footer-col.right a:hover {
    color: var(--accent);
}

.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1000;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(10, 13, 18, 0.82);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.15rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    color: var(--accent);
    border-color: rgba(211, 168, 95, 0.38);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .project-meta,
    .highlights-grid,
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-intro,
    .game-overview-grid,
    .section-heading-row,
    .updates-shell,
    .contact-shell,
    .game-cta {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .showcase-media {
        min-height: 480px;
    }

    .action-links {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 760px) {
    :root {
        --nav-height: auto;
    }

    .minimal-nav {
        padding: 1rem 1.25rem;
        height: auto;
        flex-direction: column;
        gap: 0.9rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 1.25rem;
    }

    .hero-cinematic,
    .game-reveal,
    .studio-updates,
    .minimal-footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .hero-cinematic {
        padding-top: 8rem;
        min-height: auto;
        padding-bottom: 6rem;
    }

    .hero-logo-img {
        width: min(420px, 78vw);
    }

    .hero-actions {
        width: 100%;
        flex-direction: column;
    }

    .hero-button,
    .action-link {
        width: 100%;
    }

    .project-meta,
    .highlights-grid,
    .features-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .showcase-media {
        min-height: 320px;
    }

    .feed-wrapper {
        min-height: auto;
    }

    .updates-panel {
        padding: 1.35rem;
    }

    .updates-panel h3 {
        font-size: 1.75rem;
    }

    .overview-card,
    .highlight-card,
    .mode-card,
    .game-cta,
    .meta-chip,
    .contact-copy,
    .contact-form {
        padding: 1.35rem;
        border-radius: 20px;
    }

    .form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .subject-preview {
        text-align: left;
    }

    .footer-layout {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-col.right {
        align-items: flex-start;
    }

    .scroll-indicator {
        display: none;
    }
}

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

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

    .fade-in-up {
        opacity: 1;
        transform: none;
    }
}
