@font-face {
    font-family: "StonemachiaSerif";
    src: local("Georgia");
}

:root {
    --color-bg: #050505;
    --color-text: #ffffff;
    --color-muted: #c9bfae;
    --color-gold: #c7963a;

    --header-height: 110px;

    /* Fallback base values — overridden by the responsive system below */
    --page-pad-x: 42px;
    --section-pad-x: 80px;
    --footer-height: 144px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: Georgia, "Times New Roman", serif;

    overflow: hidden;
}

a {
    color: inherit;
}

/* =========================
   HEADER / NAVBAR
========================= */

.site-header {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: var(--header-height);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 42px;

    z-index: 1000;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.72),
            rgba(0,0,0,0.25)
        );

    backdrop-filter: blur(2px);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
}

.site-logo img {
    height: 120px;
    width: auto;
    display: block;
}

.site-logo span {
    color: #fff;
    font-family: Georgia, serif;
    font-size: 2rem;
    letter-spacing: 2px;
    line-height: 1;

    position: relative;
    left: -26px;
    bottom: -8px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 52px;
}

.site-nav a {
    color: #fff;

    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 300;

    letter-spacing: 4.2px;
    text-transform: uppercase;

    text-decoration: underline;
    text-underline-offset: 5px;

    transition: opacity 0.2s ease;

    text-shadow: 0 0 8px rgba(255,255,255,0.12);
}

.site-nav a:hover {
    opacity: 0.82;
}

/* =========================
   HOME SCROLL
========================= */

.home-scroll {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;

    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.home-section {
    position: relative;
    width: 100%;
    min-height: 100vh;

    scroll-snap-align: start;
    scroll-snap-stop: always;

    /* offset snap position so the sticky header doesn't cover section tops */

    overflow: hidden;
}

/* =========================
   HERO HOME
========================= */

.hero-section {
    height: 100vh;
    min-height: 100vh;

    /* first section: no scroll-margin offset needed */

    display: flex;
    align-items: center;
    justify-content: center;

    background: #000;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    z-index: 1;

    background:
        radial-gradient(
            circle at center,
            rgba(0,0,0,0.02) 0%,
            rgba(0,0,0,0.18) 50%,
            rgba(0,0,0,0.62) 100%
        ),
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.12),
            rgba(0,0,0,0.38)
        );
}

.hero-content {
    position: relative;

    width: 100%;
    height: 100vh;

    z-index: 2;
}

.hero-logo {
    position: absolute;
    left: 50%;
    top: 44%;

    width: min(2160px, 92vw);
    height: auto;

    transform: translate(-50%, -50%);

    filter:
        drop-shadow(0 0 12px rgba(255,255,255,0.95))
        drop-shadow(0 0 32px rgba(255,255,255,0.28));
}

.discover-btn {
    position: absolute;
    left: 50%;
    top: 64%;

    width: 800px;
    height: 600px;

    transform: translate(-50%, -50%);

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        url("../img/ui/bottone-home.png")
        center / contain no-repeat;

    color: #fff;

    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;

    line-height: 1.15;

    text-align: center;
    text-decoration: underline;
    text-transform: uppercase;

    border: none;
    box-shadow: none;

    z-index: 5;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.discover-btn:hover {
    transform: translate(-50%, -50%) scale(1.035);
    opacity: 0.92;
}

.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 18px;

    transform: translateX(-50%);

    z-index: 4;

    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.75rem;
    letter-spacing: 4px;

    opacity: 0.8;

    animation: scrollPulse 1.8s infinite;
}

/* =========================
   THE ATMOSPHERE
========================= */

.atmosphere-section {
    min-height: 100vh;
    background: #050505;

    display: flex;
    flex-direction: column;

    padding: 0;
}

.atmosphere-head {
    position: relative;

    height: 170px;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    padding-right: 12vw;

    overflow: hidden;

    background: transparent;
}

.atmosphere-head-img {
    position: absolute;

    right: 0;
    top: 0;

    width: 1864px;
    height: 170px;

    max-width: none;

    z-index: 0;
}

.atmosphere-head::after {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        to right,
        rgba(0,0,0,0.98) 0%,
        rgba(0,0,0,0.82) 32%,
        rgba(0,0,0,0.12) 100%
    );

    z-index: 1;
}

.atmosphere-head h2 {
    position: relative;
    z-index: 2;

    margin: 0;

    font-family: 'Cinzel', Georgia, serif;
    font-size: 3.2rem;
    font-weight: 400;

    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;

    color: #fff;
}

.atmosphere-intro {
    min-height: 106px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 18px 8vw;

    background: #050505;
}

.atmosphere-intro p {
    margin: 0px;

    max-width: 1500px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 1.9vw, 2.35rem);
    line-height: 1.35;

    text-align: center;

    color: #fff;

    text-shadow: 0 3px 10px rgba(0,0,0,0.95);
}

.atmosphere-image {
    flex: 1;

    width: 100%;

    background-image: url("../img/atmosphere/atmosphere.jpg");
    background-repeat: no-repeat;
    background-size: cover;

    /* QUI */
    background-position: center 9%;
}

/* =========================
   THE STORY
========================= */

.story-section {
    height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #050505;
    background-image: url("../img/backgrounds/bk1.png");
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
}

.story-head {
    flex: 0 0 360px;
    display: flex;
    align-items: center;
    padding-left: 12vw;
}

.story-text {
    max-width: 1250px;
}

.story-text h2 {
    margin: 0 0 34px;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 4.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
}

.story-text p {
    margin: 0;
    max-width: 1220px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.25rem;
    line-height: 1.35;
    color: #fff;
}

.story-image-wrap {
    flex: 1;
    min-height: 0;

    width: 100%;

    overflow: hidden;

    position: relative;
}

.story-image {
    position: absolute;

    bottom: 0;
    left: 0;

    width: 100%;
    height: auto;

    display: block;
}

/* =========================
   TRAILER SECTION
========================= */

/* =========================
   THE GAMEPLAY
========================= */

.gameplay-section {
    height: 100vh;
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background:
        linear-gradient(
            to bottom,
            rgba(5,5,5,1) 0%,
            rgba(5,5,5,0.98) 18%,
            rgba(10,7,2,0.96) 38%,
            rgba(20,13,0,0.90) 62%,
            rgba(30,23,0,0.86) 100%
        ),
        url("../img/backgrounds/bk1.png");

    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% auto;
}

.gameplay-head {
    height: 144px;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    padding-right: 11vw;

    position: relative;
}

.gameplay-head::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.98) 0%,
            rgba(0,0,0,0.82) 32%,
            rgba(0,0,0,0.12) 100%
        ),
        url("../img/ui/capoverso.png");

    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 170px;

    z-index: 0;
}

.gameplay-head h2 {
    position: relative;
    z-index: 2;

    margin: 0;

    font-family: 'Cinzel', Georgia, serif;
    font-size: 4rem;
    font-weight: 400;

    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;

    color: #fff;
}

.gameplay-intro {
    min-height: 100px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 16px 8vw;

    background: transparent;
}

.gameplay-intro p {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 1.8vw, 2.2rem);
    line-height: 1.35;

    text-align: center;

    color: #fff;

    padding-top: 44px;
}

.gameplay-media {
    width: 100%;

    display: grid;
    grid-template-columns: 1fr 1fr;

    align-items: start; /* IMPORTANTISSIMO */

    padding-top: 62px;

    gap: 0;
}

.gameplay-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.gameplay-card video,
.gameplay-card img {
    width: 100%;
    height: auto;

    display: block;

    margin-bottom: clamp(28px, 4vh, 96px);
}

.gameplay-card h3 {
    margin-top: 0;

    font-family: 'Cinzel', Georgia, serif;
    font-size: 3rem;

    letter-spacing: 2px;
    text-transform: uppercase;

    color: #fff;

    text-shadow:
        0 0 8px rgba(255,255,255,0.9),
        0 0 22px rgba(255,220,160,0.45);
}

/* =========================
   TRAILER SECTION
========================= */

.trailer-section {
    height: 100vh;
    min-height: 100vh;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 6vw 118px;

    overflow: hidden;

    background: url("../img/backgrounds/bk1.png") center top / cover no-repeat;

    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.trailer-frame {
    width: min(1440px, 82vw);

    aspect-ratio: 16 / 9;

    position: relative;

    background: #000;

    border: 1px solid rgba(255,255,255,0.06);

    box-shadow:
        0 0 25px rgba(0,0,0,0.65);
}

.trailer-frame iframe {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    border: 0;
}

/* =========================
   TEAM PAGE
========================= */

.team-scroll {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;

    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.team-hero-section,
.team-info-section {
    position: relative;
    height: 100vh;
    min-height: 100vh;

    scroll-snap-align: start;
    scroll-snap-stop: always;

    overflow: hidden;
}

/* HERO */

.team-hero-section {

    display: flex;
    align-items: center;
    justify-content: center;

    background: #000;
}

.team-hero-video {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: 0;
}

.team-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at center,
            rgba(0,110,190,0.10) 0%,
            rgba(0,0,0,0.22) 48%,
            rgba(0,0,0,0.74) 100%
        );

    z-index: 1;
}

.team-hero-content {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;

    transform: translateY(144px);
}

.team-hero-content h1 {
    margin: 0 0 -30px;

    font-family: 'Cinzel', Georgia, serif;
    font-size: clamp(5rem, 10vw, 11rem);
    font-weight: 400;

    letter-spacing: 5px;
    text-transform: uppercase;

    color: #fff;

    text-shadow:
        0 0 18px rgba(255,255,255,0.45),
        0 8px 18px rgba(0,0,0,0.95);
}

.team-btn {
    top: auto;
    left: auto;
    position: relative;
    transform: none;

    width: 720px;
    height: 440px;

    font-size: 1.25rem;
}

.team-btn:hover {
    transform: scale(1.035);
}

/* TEAM INFO */

.team-info-section {
    position: relative;

    height: 100vh;
    min-height: 100vh;

    padding: 18px 6vw 118px;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(4,20,36,0.72),
            rgba(3,15,28,0.88)
        ),
        url("../img/backgrounds/bk4.png");

    background-repeat: no-repeat;
    background-size: cover;

    /* sfondo che parte dall'alto */
    background-position: center top;
}

.team-info-section h2 {
    margin: 0;

    text-align: center;

    font-family: 'Cinzel', Georgia, serif;
    font-size: 6.2rem;
    font-weight: 400;

    letter-spacing: 2px;

    color: #fff;
}

.team-subtitle {
    margin: 4px 0 20px;

    text-align: center;

    font-family: Georgia, serif;
    font-size: 1.85rem;

    color: #fff;
}

.team-layout {
    width: min(1900px, 92vw);

    display: grid;
    grid-template-columns: 1fr 620px 1fr;

    align-items: center;

    gap: 166px;

    margin: 0 auto;

    margin-top: 135px;
}

.team-center {
    display: flex;
    flex-direction: column;
    align-items: center;

    position: relative;
}

.team-center > img:first-child {
    width: 620px;
    height: 620px;

    object-fit: cover;

    border-radius: 12px;

    box-shadow:
        0 0 32px rgba(255,255,255,0.14);
}

.team-ornament {
    width: 1440px;
    max-width: none;

    /* si sovrappone a metà foto */
    margin-top: -210px;

    left: 50%;
    transform: translateX(-20%);

    position: relative;
    z-index: 3;

    align-items: center;

    pointer-events: none;
}

.team-members {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 58px 72px;

    color: #fff;
}

.team-members strong {
    display: block;

    font-family: 'Cinzel', Georgia, serif;
    font-size: 2.1rem;
    line-height: 1.02;

    margin-bottom: 12px;
}

.team-members span {
    display: block;

    font-family: Georgia, serif;
    font-size: 1.45rem;
    line-height: 1.35;
}

.team-description {
    margin-top: 26px;

    text-align: center;

    color: #fff;
    font-family: Georgia, serif;
    font-size: 1.55rem;
    line-height: 1.5;
}

.team-description p {
    margin: 8px 0;
}

.team-members-left,
.team-members-right {
    align-self: start;
    padding-top: 34px;
}

/* =========================
   COMMUNITY PAGE
========================= */

.community-scroll {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;

    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.community-hero-section,
.community-gallery-section,
.community-discord-section {
    position: relative;

    height: 100vh;
    min-height: 100vh;

    scroll-snap-align: start;
    scroll-snap-stop: always;

    overflow: hidden;
}

/* =========================
   COMMUNITY HERO
========================= */

.community-hero-section {

    display: flex;
    align-items: center;
    justify-content: center;

    background: #000;
}

.community-hero-video {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: 0;
}

.community-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at center,
            rgba(120,0,0,0.08) 0%,
            rgba(0,0,0,0.18) 45%,
            rgba(0,0,0,0.72) 100%
        );

    z-index: 1;
}

.community-hero-content {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    transform: translateY(-95px);
}

.community-hero-content h1 {
    margin: 0;

    text-align: center;

    font-family: 'Cinzel', Georgia, serif;
    font-size: clamp(5rem, 8.5vw, 10.5rem);
    font-weight: 400;
    line-height: 0.9;

    letter-spacing: 5px;
    text-transform: uppercase;

    color: #fff;

    text-shadow:
        0 0 18px rgba(255,255,255,0.45),
        0 8px 18px rgba(0,0,0,0.95);
}

.community-btn {
    position: absolute;

    left: 50%;
    top: 58%;

    width: 720px;
    height: 440px;

    transform: translateX(-50%);

    font-size: 1.05rem;

    z-index: 4;
}

.community-btn:hover {
    transform: translateX(-50%) scale(1.035);
}

/* =========================
   COMMUNITY GALLERY SECTION
========================= */

.community-gallery-section {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 70px 7vw 90px;

    background:
        linear-gradient(
            rgba(0,0,0,0.68),
            rgba(0,0,0,0.86)
        ),
        url("../img/backgrounds/bk3.png");

    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
}

.community-gallery-content {
    width: 100%;
    max-width: 1650px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.community-gallery-content h2 {
    margin: 0 0 14px;

    text-align: center;

    font-family: 'Cinzel', Georgia, serif;
    font-size: clamp(3.5rem, 4vw, 4.5rem);
    font-weight: 400;

    color: #fff;
}

.community-gallery-content > p {
    margin: 30px 0 54px;

    font-family: Georgia, serif;
    font-size: 2.2rem;

    color: #fff;
}

/* =========================
   COMMUNITY SHOWCASE
========================= */

.community-showcase {
    width: min(1600px, 92vw);
    height: 650px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 120px;
}

.showcase-stage {
    position: relative;

    width: 100%;
    height: 100%;
}

.showcase-img {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 520px;
    height: 610px;

    display: block;

    object-fit: cover;
    object-position: center;

    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 6px;

    box-shadow: 0 0 26px rgba(0,0,0,0.9);

    transition:
        transform 0.42s ease,
        opacity 0.42s ease,
        filter 0.42s ease;

    will-change: transform, opacity, filter;
}

.showcase-active {
    z-index: 3;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.showcase-left {
    z-index: 2;
    transform: translate(calc(-50% - 430px), -50%) rotate(-8deg) scale(0.68);
    opacity: 0.68;
    filter: brightness(0.52) blur(0.8px);
}

.showcase-right {
    z-index: 2;
    transform: translate(calc(-50% + 430px), -50%) rotate(8deg) scale(0.68);
    opacity: 0.68;
    filter: brightness(0.52) blur(0.8px);
}

.showcase-far-left {
    z-index: 1;
    transform: translate(calc(-50% - 760px), -50%) rotate(-14deg) scale(0.52);
    opacity: 0;
    filter: brightness(0.35) blur(2px);
}

.showcase-far-right {
    z-index: 1;
    transform: translate(calc(-50% + 760px), -50%) rotate(14deg) scale(0.52);
    opacity: 0;
    filter: brightness(0.35) blur(2px);
}

.showcase-btn {
    position: absolute;
    top: 50%;

    transform: translateY(-50%);

    z-index: 5;

    border: 0;
    background: transparent;

    color: #fff;

    font-size: 6rem;
    line-height: 1;

    cursor: pointer;

    text-shadow:
        0 0 14px rgba(255,255,255,0.7);
}

.showcase-prev {
    left: 0;
}

.showcase-next {
    right: 0;
}

.community-showcase.slide-next .showcase-active {
    transform: translate(calc(-50% - 430px), -50%) rotate(-8deg) scale(0.68);
    opacity: 0.68;
    filter: brightness(0.52) blur(0.8px);
}

.community-showcase.slide-next .showcase-right {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    opacity: 1;
    filter: brightness(1) blur(0);
}

.community-showcase.slide-next .showcase-left {
    transform: translate(calc(-50% - 760px), -50%) rotate(-14deg) scale(0.52);
    opacity: 0;
}

.community-showcase.slide-next .showcase-far-right {
    transform: translate(calc(-50% + 430px), -50%) rotate(8deg) scale(0.68);
    opacity: 0.68;
    filter: brightness(0.52) blur(0.8px);
}

.community-showcase.slide-prev .showcase-active {
    transform: translate(calc(-50% + 430px), -50%) rotate(8deg) scale(0.68);
    opacity: 0.68;
    filter: brightness(0.52) blur(0.8px);
}

.community-showcase.slide-prev .showcase-left {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    opacity: 1;
    filter: brightness(1) blur(0);
}

.community-showcase.slide-prev .showcase-right {
    transform: translate(calc(-50% + 760px), -50%) rotate(14deg) scale(0.52);
    opacity: 0;
}

.community-showcase.slide-prev .showcase-far-left {
    transform: translate(calc(-50% - 430px), -50%) rotate(-8deg) scale(0.68);
    opacity: 0.68;
    filter: brightness(0.52) blur(0.8px);
}

.community-showcase.no-transition .showcase-img {
    transition: none !important;
}

/* =========================
   COMMUNITY DISCORD SECTION
========================= */

.community-discord-section {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 7vw 118px;

    background:
        linear-gradient(
            rgba(45,5,5,0.76),
            rgba(18,2,2,0.92)
        ),
        url("../img/backgrounds/bk3.png");

    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
}

.community-discord-content {
    text-align: center;

    color: #fff;

    transform: translateY(-30px);
}

.community-discord-content h2 {
    margin: 0 0 44px;

    font-family: 'Cinzel', Georgia, serif;
    font-size: clamp(2.6rem, 3.8vw, 5rem);
    font-weight: 400;

    color: #fff;

    text-shadow:
        0 0 12px rgba(255,255,255,0.22);
}

.community-discord-content p {
    margin: 120px 0 42px;

    font-family: Georgia, serif;
    font-size: clamp(2.2rem, 2vw, 3rem);
    line-height: 2;

    color: #fff;
}

.community-discord-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 270px;
    min-height: 64px;

    padding: 0 34px;

    border: 1px solid rgba(255,255,255,0.55);

    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;

    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;

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

    box-shadow:
        0 0 18px rgba(255,255,255,0.12);

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.community-discord-btn:hover {
    transform: scale(1.035);
    background: rgba(0,0,0,0.52);
}

.community-discord-section .site-footer {
    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
}

/* =========================
   CONTACT PAGE
========================= */

.contact-scroll {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;

    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.contact-hero-section,
.contact-info-section {
    position: relative;
    height: 100vh;
    min-height: 100vh;

    scroll-snap-align: start;
    scroll-snap-stop: always;

    overflow: hidden;
}

/* =========================
   CONTACT HERO
========================= */

.contact-hero-section {

    display: flex;
    align-items: center;
    justify-content: center;

    background: #000;
}

.contact-hero-video {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: 0;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at center,
            rgba(0,80,35,0.08) 0%,
            rgba(0,0,0,0.26) 50%,
            rgba(0,0,0,0.72) 100%
        );

    z-index: 1;
}

.contact-hero-content {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;

    transform: translateY(140px);
}

.contact-hero-content h1 {
    margin: 0 0 -20px;

    font-family: 'Cinzel', Georgia, serif;
    font-size: clamp(5rem, 10vw, 11rem);
    font-weight: 400;

    letter-spacing: 5px;
    text-transform: uppercase;

    color: #fff;

    text-shadow:
        0 0 18px rgba(255,255,255,0.45),
        0 8px 18px rgba(0,0,0,0.95);
}

.contact-btn {
    top: auto;
    left: auto;
    position: relative;
    transform: none;

    width: 720px;
    height: 440px;

    font-size: 1.25rem;
}

.contact-btn:hover {
    transform: scale(1.035);
}

/* =========================
   CONTACT INFO
========================= */

.contact-info-section {
    position: relative;

    display: grid;
    grid-template-columns: 1fr 1fr;

    height: 100vh;
    min-height: 100vh;

    overflow: hidden;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 24, 10, 0.42),
            rgba(0, 12, 5, 0.72)
        ),
        url("../img/backgrounds/bk4.png");

    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.contact-info-section .site-footer {
    position: absolute;
    left: 0;
    bottom: 0;
}

.contact-image-side {
    background:
        linear-gradient(
            rgba(0,0,0,0.18),
            rgba(0,0,0,0.18)
        ),
        url("../img/contact/contact-city.png");

    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.contact-text-side {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    padding-left: 5vw;

    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            to bottom,
            rgba(0,40,18,0.52),
            rgba(0,18,8,0.72)
        );
}

.contact-box-content {
    width: 100%;
    max-width: 620px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    text-align: left;

    color: #fff;

    z-index: 2;

    transform: translateY(-45px);
}

.contact-box-content img {
    height: 360px;
    width: 360px;

    margin-bottom: 18px;
    margin-left: -18px;
}

.contact-box-content h2 {
    margin: 0 0 30px 0;

    font-family: 'Cinzel', Georgia, serif;
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.1;

    color: #fff;

    text-shadow:
        0 0 10px rgba(255,255,255,0.12);
}

.contact-box-content a {
    display: block;

    margin-bottom: 26px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.35;

    color: #fff;

    text-decoration: underline;
    text-underline-offset: 5px;

    transition: opacity 0.25s ease;
}

.contact-box-content a:hover {
    opacity: 0.78;
}

.contact-box-content p {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    line-height: 1.5;

    color: rgba(255,255,255,0.92);
}

.contact-box-content h2,
.contact-box-content a,
.contact-box-content p {
    margin-left: 18px;
}

.contact-text-side {
    padding-left: 6.5vw;
}

/* =========================
   FOOTER / SOCIAL
========================= */

.site-footer {
    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 144px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 54px;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0) 0%,
            rgba(0,0,0,0.18) 28%,
            rgba(0,0,0,0.72) 100%
        );

    z-index: 20;
}

/* =========================
   LEFT LOGO
========================= */

.footer-left {
    display: flex;
    align-items: center;
    height: 100%;
}

.footer-left img {
    height: 144px;
    width: auto;

    display: block;

    opacity: 0.92;

    filter:
        drop-shadow(0 0 14px rgba(255,190,70,0.08));
}

/* =========================
   SOCIALS
========================= */

.footer-right {
    display: flex;
    align-items: center;

    gap: 34px;

    height: 100%;
}

.footer-right a {
    display: flex;
    align-items: center;
    justify-content: center;

    transition:
        transform 0.22s ease,
        opacity 0.22s ease;
}

.footer-right a:hover {
    transform: translateY(-2px) scale(1.06);
}

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

    display: block;

    opacity: 0.94;

    filter:
        drop-shadow(0 0 10px rgba(255,255,255,0.08));
}
/* =========================
   ANIMATIONS
========================= */

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.35;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(8px);
    }
}

/* =========================
   RESPONSIVE SYSTEM V2
   desktop-first fluid scaling
========================= */

:root {
    --page-pad-x: clamp(22px, 3.2vw, 64px);
    --section-pad-x: clamp(22px, 6vw, 120px);
    --safe-top: var(--header-height);

    --title-xl: clamp(4.6rem, 6.2vw, 10.5rem);
    --title-lg: clamp(3.1rem, 4.6vw, 6.2rem);
    --title-md: clamp(2.25rem, 3.1vw, 4rem);
    --body-lg: clamp(1.25rem, 1.55vw, 2.25rem);
    --body-md: clamp(1rem, 1.15vw, 1.55rem);

    --btn-w: clamp(430px, 31vw, 800px);
    --btn-h: clamp(260px, 23vw, 600px);

    --footer-height: clamp(96px, 7.5vw, 144px);
}

img,
video,
iframe {
    max-width: 100%;
}

body {
    min-width: 320px;
}

.site-header {
    height: var(--header-height);
    padding-inline: var(--page-pad-x);
}

.site-logo img {
    height: clamp(82px, 5.7vw, 120px);
}

.site-logo span {
    font-size: clamp(1.35rem, 1.05vw, 2rem);
    left: clamp(-26px, -1.15vw, -16px);
}

.site-nav {
    gap: clamp(22px, 2.7vw, 52px);
}

.site-nav a {
    font-size: clamp(0.95rem, 0.82vw, 1.6rem);
    letter-spacing: clamp(1.8px, 0.22vw, 4.2px);
}

.home-scroll,
.team-scroll,
.community-scroll,
.contact-scroll {
    height: 100dvh;
}

.home-section,
.hero-section,
.story-section,
.trailer-section,
.gameplay-section,
.team-hero-section,
.team-info-section,
.community-hero-section,
.community-gallery-section,
.community-discord-section,
.contact-hero-section,
.contact-info-section {
    min-height: 100dvh;
}

.hero-content {
    height: 100dvh;
}

.hero-logo {
    width: min(1840px, 86vw);
    top: clamp(39%, 43dvh, 44%);
}

.discover-btn {
    width: var(--btn-w);
    height: var(--btn-h);
    font-size: clamp(1rem, 0.8vw, 1.5rem);
}

.atmosphere-head,
.gameplay-head {
    height: clamp(118px, 8.4dvh, 170px);
}

.atmosphere-head-img {
    width: min(1864px, 100vw);
    height: 100%;
    object-fit: cover;
}

.atmosphere-head h2,
.gameplay-head h2 {
    font-size: var(--title-md);
}

.atmosphere-intro,
.gameplay-intro {
    height: auto;
    min-height: clamp(76px, 7dvh, 106px);
    padding: clamp(14px, 1.2vw, 22px) var(--section-pad-x);
}

.atmosphere-intro p,
.gameplay-intro p {
    font-size: var(--body-lg);
    white-space: normal;
    max-width: min(1500px, 92vw);
}

.story-head {
    flex-basis: clamp(245px, 24dvh, 360px);
    padding-left: var(--section-pad-x);
    padding-right: var(--section-pad-x);
}

.story-text {
    max-width: min(1250px, 72vw);
}

.story-text h2 {
    font-size: var(--title-lg);
    margin-bottom: clamp(18px, 2dvh, 34px);
}

.story-text p {
    font-size: var(--body-lg);
    max-width: min(1220px, 78vw);
}

.story-image {
    width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.trailer-section {
    padding: calc(var(--header-height) + 24px) var(--section-pad-x) var(--footer-height);
}

.trailer-frame {
    width: min(1440px, 82vw, calc((100dvh - var(--header-height) - var(--footer-height) - 70px) * 16 / 9));
}

.gameplay-section {
    padding-bottom: var(--footer-height);
}

.gameplay-media {
    flex: 1;
    min-height: 0;

    display: grid;
    grid-template-columns: 1fr 1fr;

    width: 100%;
    padding: clamp(18px, 3dvh, 42px) 0 0;
    gap: 0;

    align-items: start;
}

.gameplay-card {
    width: 100%;
}

.gameplay-card img,
.gameplay-card video {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    object-fit: cover;

    display: block;
}

.gameplay-card {
    gap: clamp(12px, 2dvh, 28px);
}

.gameplay-card h3 {
    margin: 0;
    font-size: clamp(1.8rem, 2.25vw, 3rem);
}

.team-hero-content,
.contact-hero-content {
    transform: translateY(clamp(70px, 10dvh, 144px));
}

.team-hero-content h1,
.contact-hero-content h1,
.community-hero-content h1 {
    font-size: var(--title-xl);
}

.team-btn,
.contact-btn,
.community-btn {
    width: clamp(430px, 30vw, 720px);
    height: clamp(250px, 18vw, 440px);
    font-size: clamp(0.9rem, 0.72vw, 1.25rem);
}

.team-info-section {
    padding: clamp(16px, 2dvh, 38px) var(--section-pad-x) var(--footer-height);
}

.team-info-section h2 {
    font-size: clamp(3.4rem, 4.2vw, 6.2rem);
    line-height: 0.96;
}

.team-subtitle {
    font-size: clamp(1.15rem, 1.25vw, 1.85rem);
    margin-bottom: clamp(8px, 1.4dvh, 20px);
}

.team-layout {
    width: min(1900px, 92vw);
    grid-template-columns: minmax(250px, 1fr) clamp(360px, 30vw, 620px) minmax(250px, 1fr);
    gap: clamp(46px, 5.2vw, 166px);
    margin-top: clamp(28px, 7dvh, 135px);
}

.team-center > img:first-child {
    width: clamp(360px, 30vw, 620px);
    height: clamp(360px, 30vw, 620px);
}

.team-ornament {
    width: clamp(850px, 70vw, 1440px);
    margin-top: clamp(-210px, -10vw, -120px);
}

.team-members {
    gap: clamp(24px, 3vw, 58px) clamp(28px, 3.6vw, 72px);
}

.team-members strong {
    font-size: clamp(1.28rem, 1.45vw, 2.1rem);
}

.team-members span {
    font-size: clamp(1rem, 1vw, 1.45rem);
}

.team-description {
    font-size: clamp(1.05rem, 1vw, 1.55rem);
}

.community-hero-content {
    transform: translateY(clamp(-95px, -6dvh, -40px));
}

.community-gallery-section {
    padding: clamp(44px, 5dvh, 90px) var(--section-pad-x) var(--footer-height);
}

.community-gallery-content h2 {
    margin-top: clamp(-180px, -9dvh, -20px);
    font-size: clamp(2.9rem, 3.1vw, 4.5rem);
}

.community-gallery-content > p {
    margin-top: clamp(8px, 2dvh, 30px);
    margin-bottom: clamp(18px, 3.4dvh, 54px);
    font-size: clamp(1.2rem, 1.45vw, 2.2rem);
    text-align: center;
}

.community-showcase {
    width: min(1600px, 92vw);
    height: clamp(440px, 45dvh, 650px);
    margin-top: clamp(16px, 7dvh, 120px);
}

.showcase-img {
    width: clamp(330px, 20vw, 520px);
    height: clamp(405px, 42dvh, 610px);
}

.showcase-btn {
    font-size: clamp(3.6rem, 4.5vw, 6rem);
}

.community-discord-section {
    padding: calc(var(--header-height) + 26px) var(--section-pad-x) var(--footer-height);
}

.community-discord-content {
    transform: translateY(clamp(-30px, -2dvh, 0px));
}

.community-discord-content h2 {
    font-size: clamp(2.6rem, 3.3vw, 5rem);
}

.community-discord-content p {
    margin: clamp(38px, 8dvh, 120px) 0 clamp(28px, 3dvh, 42px);
    font-size: clamp(1.35rem, 1.7vw, 3rem);
    line-height: 1.65;
}

.contact-info-section {
    grid-template-columns: minmax(42%, 1fr) minmax(480px, 1fr);
}

.contact-text-side {
    padding-left: clamp(34px, 6.5vw, 125px);
    padding-right: var(--page-pad-x);
}

.contact-box-content {
    max-width: min(620px, 43vw);
    transform: translateY(clamp(-45px, -3dvh, -10px));
}

.contact-box-content img {
    width: clamp(230px, 18vw, 360px);
    height: clamp(230px, 18vw, 360px);
}

.contact-box-content h2 {
    font-size: clamp(2rem, 2.1vw, 3rem);
}

.contact-box-content a,
.contact-box-content p {
    font-size: clamp(1.08rem, 1vw, 1.5rem);
}

.site-footer {
    height: var(--footer-height);
    padding-inline: var(--page-pad-x);
}

.footer-left img {
    height: var(--footer-height);
}

.footer-right {
    gap: clamp(18px, 1.8vw, 34px);
}

.footer-right img {
    height: clamp(30px, 2.3vw, 44px);
}

/* 2K / QHD target: keep the cinematic layout but reduce empty vertical drift */
@media (min-width: 2200px) and (max-height: 1500px) {
    :root {
        --header-height: 104px;
    }

    .hero-logo {
        width: min(1760px, 82vw);
        top: 42%;
    }

    .discover-btn {
        top: 63%;
        width: 720px;
        height: 500px;
    }

    .team-layout {
        margin-top: 72px;
        gap: 110px;
    }

    .community-gallery-content h2 {
        margin-top: -90px;
    }

    .community-showcase {
        margin-top: 70px;
    }
}

/* 1080p / large desktop */
@media (max-width: 1920px) {
    :root {
        --header-height: 104px;
    }

    .trailer-frame {
        width: min(1320px, 82vw, calc((100dvh - var(--header-height) - var(--footer-height) - 64px) * 16 / 9));
    }
}

/* small desktop / 1440 wide */
@media (max-width: 1500px) {
    :root {
        --header-height: 92px;
        --page-pad-x: clamp(22px, 2.7vw, 42px);
        --section-pad-x: clamp(24px, 5vw, 76px);
        --footer-height: 108px;
    }

    .site-nav a {
        font-size: clamp(0.9rem, 0.82vw, 1.15rem);
    }

    .hero-logo {
        width: min(1320px, 88vw);
    }

    .story-text {
        max-width: min(980px, 78vw);
    }

    .team-layout {
        grid-template-columns: minmax(210px, 1fr) clamp(360px, 31vw, 460px) minmax(210px, 1fr);
        gap: clamp(36px, 4.7vw, 70px);
        margin-top: clamp(24px, 6dvh, 80px);
    }

    .team-center > img:first-child {
        width: clamp(360px, 31vw, 460px);
        height: clamp(360px, 31vw, 460px);
    }

    .team-ornament {
        width: clamp(760px, 72vw, 1050px);
        margin-top: -150px;
    }

    .community-showcase {
        width: min(1180px, 92vw);
    }

    .showcase-left,
    .community-showcase.slide-next .showcase-active,
    .community-showcase.slide-prev .showcase-far-left {
        transform: translate(calc(-50% - min(330px, 25vw)), -50%) rotate(-8deg) scale(0.68);
    }

    .showcase-right,
    .community-showcase.slide-prev .showcase-active,
    .community-showcase.slide-next .showcase-far-right {
        transform: translate(calc(-50% + min(330px, 25vw)), -50%) rotate(8deg) scale(0.68);
    }

    .showcase-far-left,
    .community-showcase.slide-next .showcase-left {
        transform: translate(calc(-50% - min(560px, 43vw)), -50%) rotate(-14deg) scale(0.52);
    }

    .showcase-far-right,
    .community-showcase.slide-prev .showcase-right {
        transform: translate(calc(-50% + min(560px, 43vw)), -50%) rotate(14deg) scale(0.52);
    }
}

/* laptop height: avoids content being cut on 1366x768 / 1440x900 */
@media (max-height: 820px) and (min-width: 901px) {
    :root {
        --header-height: 78px;
        --footer-height: 82px;
    }

    .site-logo img {
        height: 78px;
    }

    .site-nav a {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .hero-logo {
        width: min(1180px, 82vw);
        top: 41%;
    }

    .discover-btn {
        top: 62%;
        width: 500px;
        height: 300px;
        font-size: 0.95rem;
    }

    .story-head {
        flex-basis: 220px;
    }

    .story-text h2 {
        font-size: clamp(2.6rem, 3.3vw, 3.7rem);
    }

    .story-text p {
        font-size: clamp(1.15rem, 1.35vw, 1.55rem);
    }

    .gameplay-card video,
    .gameplay-card img {
        max-height: 42dvh;
    }

    .team-info-section h2 {
        font-size: clamp(3rem, 3.4vw, 4.8rem);
    }

    .team-layout {
        margin-top: 26px;
    }

    .team-center > img:first-child {
        width: clamp(300px, 25vw, 390px);
        height: clamp(300px, 25vw, 390px);
    }

    .team-ornament {
        width: clamp(660px, 60vw, 900px);
        margin-top: -125px;
    }

    .team-members strong {
        font-size: 1.22rem;
    }

    .team-members span,
    .team-description {
        font-size: 0.94rem;
    }

    .community-gallery-content h2 {
        margin-top: -42px;
    }

    .community-showcase {
        height: 390px;
        margin-top: 28px;
    }

    .showcase-img {
        width: 300px;
        height: 360px;
    }

    .contact-box-content img {
        width: 210px;
        height: 210px;
    }
}

/* tablet and narrow desktop: release snap and allow real page flow */
@media (max-width: 1100px) {
    body {
        overflow: auto;
    }

    :root {
        --header-height: 82px;
        --footer-height: 104px;
        --section-pad-x: clamp(22px, 7vw, 70px);
    }

    .site-header {
        position: fixed;
        height: auto;
        min-height: var(--header-height);
        padding: 10px 24px;
        gap: 16px;
    }

    .site-logo img {
        height: 74px;
    }

    .site-logo span {
        font-size: 1.2rem;
        left: -15px;
        bottom: -4px;
    }

    .site-nav {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 12px 18px;
    }

    .site-nav a {
        font-size: 0.82rem;
        letter-spacing: 1.6px;
    }

    .home-scroll,
    .team-scroll,
    .community-scroll,
    .contact-scroll {
        height: auto;
        min-height: 100svh;
        overflow: visible;
        scroll-snap-type: none;
    }

    .home-section,
    .team-hero-section,
    .team-info-section,
    .community-hero-section,
    .community-gallery-section,
    .community-discord-section,
    .contact-hero-section,
    .contact-info-section,
    .trailer-section,
    .gameplay-section,
    .story-section,
    .atmosphere-section {
        height: auto;
        min-height: 100svh;
        overflow: visible;
        scroll-snap-align: none;
        scroll-snap-stop: normal;
    }

    .hero-section,
    .team-hero-section,
    .community-hero-section,
    .contact-hero-section {
        overflow: hidden;
    }

    .hero-content {
        height: 100svh;
    }

    .hero-logo {
        top: 42%;
        width: 94vw;
    }

    .discover-btn {
        top: 62%;
        width: min(560px, 86vw);
        height: 300px;
        font-size: 1rem;
    }

    .atmosphere-head,
    .gameplay-head {
        margin-top: 0;
        min-height: 128px;
        justify-content: center;
        padding-inline: var(--section-pad-x);
    }

    .atmosphere-head h2,
    .gameplay-head h2 {
        white-space: normal;
        text-align: center;
    }

    .atmosphere-intro p,
    .gameplay-intro p {
        font-size: clamp(1.1rem, 3.5vw, 1.6rem);
        white-space: normal;
    }

    .atmosphere-image {
        min-height: 62svh;
        flex: none;
    }

    .community-gallery-content h2 {
        margin-top: 0;
    }

    .story-section {
        background-size: cover;
    }

    .story-head {
        min-height: 42svh;
        flex: none;
        padding: calc(var(--header-height) + 38px) var(--section-pad-x) 36px;
    }

    .story-text,
    .story-text p {
        max-width: 100%;
    }

    .story-image-wrap {
        min-height: 46svh;
        flex: none;
    }

    .story-image {
        width: 130%;
        left: 50%;
        transform: translateX(-50%);
    }

    .gameplay-section {
        padding-bottom: 90px;
    }

    .gameplay-media {
        grid-template-columns: 1fr;
        padding: 26px var(--section-pad-x) 0;
        gap: 50px;
    }

    .gameplay-card video,
    .gameplay-card img {
        max-height: none;
    }

    .gameplay-card h3 {
        font-size: clamp(1.9rem, 6vw, 3rem);
        text-align: center;
    }

    .trailer-section {
        padding: calc(var(--header-height) + 40px) var(--section-pad-x) 130px;
        align-items: center;
    }

    .trailer-frame {
        width: min(980px, 92vw);
    }

    .team-hero-content,
    .contact-hero-content {
        transform: translateY(70px);
    }

    .team-btn,
    .contact-btn,
    .community-btn {
        width: min(560px, 86vw);
        height: 300px;
        font-size: 0.95rem;
    }

    .team-info-section {
        padding: calc(var(--header-height) + 28px) var(--section-pad-x) 150px;
    }

    .team-layout {
        grid-template-columns: 1fr;
        width: min(780px, 92vw);
        gap: 34px;
        margin-top: 42px;
    }

    .team-center {
        order: -1;
    }

    .team-center > img:first-child {
        width: min(440px, 78vw);
        height: min(440px, 78vw);
    }

    .team-ornament {
        width: min(980px, 150vw);
        margin-top: -135px;
        left: 50%;
        transform: translateX(-50%);
    }

    .team-members {
        grid-template-columns: 1fr 1fr;
        text-align: center;
        gap: 28px 34px;
    }

    .team-members-left,
    .team-members-right {
        padding-top: 0;
    }

    .community-gallery-section {
        padding: calc(var(--header-height) + 28px) 5vw 130px;
    }

    .community-gallery-content h2 {
        margin-top: 0;
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .community-gallery-content > p {
        font-size: clamp(1.15rem, 3.6vw, 1.8rem);
    }

    .community-showcase {
        margin-top: 28px;
        height: clamp(360px, 58vw, 520px);
    }

    .showcase-img {
        width: clamp(230px, 42vw, 380px);
        height: clamp(300px, 52vw, 470px);
    }

    .contact-info-section {
        grid-template-columns: 1fr;
        padding-bottom: 140px;
    }

    .contact-image-side {
        min-height: 42svh;
    }

    .contact-text-side {
        padding: 58px var(--section-pad-x);
        justify-content: center;
    }

    .contact-box-content {
        max-width: 700px;
        align-items: center;
        text-align: center;
        transform: none;
    }

    .contact-box-content img {
        margin-left: 0;
    }

    .contact-box-content h2,
    .contact-box-content a,
    .contact-box-content p {
        margin-left: 0;
    }
}

/* phone */
@media (max-width: 700px) {
    :root {
        --header-height: 66px;
        --footer-height: 96px;
        --section-pad-x: 22px;
    }

    .site-header {
        align-items: center;
        padding: 8px 14px;
    }

    .site-logo img {
        height: 58px;
    }

    .site-logo span {
        display: none;
    }

    .site-nav {
        gap: 8px 11px;
        max-width: 72vw;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .site-nav a {
        font-size: 0.66rem;
        letter-spacing: 0.9px;
        text-underline-offset: 3px;
    }

    .hero-logo {
        top: 42%;
        width: 96vw;
    }

    .hero-section,
    .team-hero-section,
    .community-hero-section,
    .contact-hero-section {
        min-height: 100svh;
    }

    .hero-content {
        height: 100svh;
    }

    .discover-btn,
    .team-btn,
    .contact-btn,
    .community-btn {
        width: min(390px, 90vw);
        height: 210px;
        font-size: 0.78rem;
    }

    .scroll-hint {
        font-size: 0.62rem;
        letter-spacing: 2px;
        bottom: 12px;
    }

    .atmosphere-head,
    .gameplay-head {
        min-height: 112px;
        padding-top: calc(var(--header-height) + 12px);
    }

    .atmosphere-image {
        background-position: center center;
    }

    .story-head {
        text-align: center;
    }

    .gameplay-head::before {
        background-size: auto 128px;
    }

    .team-hero-content h1,
    .contact-hero-content h1,
    .community-hero-content h1 {
        font-size: clamp(3rem, 14vw, 5rem);
        letter-spacing: 2px;
    }

    .team-hero-content,
    .contact-hero-content {
        transform: translateY(55px);
    }

    .community-hero-content {
        transform: translateY(-42px);
    }

    .community-btn {
        top: 56%;
    }

    .team-members {
        grid-template-columns: 1fr;
    }

    .team-members strong {
        font-size: 1.35rem;
    }

    .team-members span,
    .team-description {
        font-size: 1.03rem;
    }

    .community-showcase {
        width: 100%;
        height: 430px;
    }

    .showcase-img {
        width: min(270px, 68vw);
        height: 360px;
    }

    .showcase-left,
    .community-showcase.slide-next .showcase-active,
    .community-showcase.slide-prev .showcase-far-left {
        transform: translate(calc(-50% - 155px), -50%) rotate(-7deg) scale(0.58);
    }

    .showcase-right,
    .community-showcase.slide-prev .showcase-active,
    .community-showcase.slide-next .showcase-far-right {
        transform: translate(calc(-50% + 155px), -50%) rotate(7deg) scale(0.58);
    }

    .showcase-far-left,
    .community-showcase.slide-next .showcase-left {
        transform: translate(calc(-50% - 260px), -50%) rotate(-12deg) scale(0.44);
    }

    .showcase-far-right,
    .community-showcase.slide-prev .showcase-right {
        transform: translate(calc(-50% + 260px), -50%) rotate(12deg) scale(0.44);
    }

    .showcase-prev {
        left: -6px;
    }

    .showcase-next {
        right: -6px;
    }

    .community-discord-section {
        padding: calc(var(--header-height) + 34px) var(--section-pad-x) 140px;
    }

    .community-discord-content {
        transform: none;
    }

    .community-discord-content p {
        margin: 36px 0 34px;
        font-size: clamp(1.25rem, 5vw, 1.8rem);
        line-height: 1.55;
    }

    .contact-box-content img {
        width: 190px;
        height: 190px;
    }

    .contact-box-content h2 {
        font-size: 2rem;
    }

    .contact-box-content a,
    .contact-box-content p {
        font-size: 1.05rem;
    }

    .site-footer {
        height: auto;
        min-height: var(--footer-height);
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        padding: 10px 18px;
    }

    .footer-left img {
        height: 58px;
    }

    .footer-right {
        height: auto;
        gap: 18px;
    }

    .footer-right img {
        height: 28px;
    }
}

@media (max-width: 420px) {
    .site-nav a {
        font-size: 0.56rem;
        letter-spacing: 0.55px;
    }

    .discover-btn,
    .team-btn,
    .contact-btn,
    .community-btn {
        height: 185px;
        font-size: 0.66rem;
    }

    .team-info-section,
    .community-gallery-section,
    .community-discord-section,
    .trailer-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .showcase-img {
        width: 235px;
        height: 320px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html,
    .home-scroll,
    .team-scroll,
    .community-scroll,
    .contact-scroll {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================
   FINAL MOBILE TEAM FIX
========================= */

@media (max-width: 700px) {

    html,
    body {
        overflow-x: hidden !important;
    }

    /* HEADER */

    .site-header {
        height: 82px;
        min-height: 82px;
        padding: 8px 14px;
    }

    .site-nav {
        gap: 8px 10px;
    }

    .site-nav a {
        font-size: 0.66rem;
        letter-spacing: 0.7px;
    }

    /* ATMOSPHERE */

    .atmosphere-head {
        min-height: 210px;
        padding: 105px 18px 22px;
        justify-content: center;
    }

    .atmosphere-head h2 {
        font-size: clamp(2.2rem, 10vw, 3rem);
        line-height: 0.92;
        text-align: center;
        white-space: normal;
    }

    .atmosphere-intro {
        padding: 24px 20px;
    }

    .atmosphere-intro p {
        font-size: clamp(1.2rem, 5vw, 1.7rem);
        line-height: 1.35;
    }

    /* TEAM */

    .team-info-section {
        height: auto !important;
        min-height: 100svh;
        padding: 105px 18px 120px;
        overflow-x: hidden;
    }

    .team-layout {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;

        width: 100%;
        max-width: 100%;

        gap: 30px;
        margin-top: 28px;
    }

    .team-center {
        width: 100%;
        overflow: visible;
    }

    .team-center > img:first-child {
        width: min(86vw, 360px);
        height: min(86vw, 360px);

        display: block;
        margin: 0 auto 12px;
    }

    /* ornament rimosso mobile */
    .team-ornament {
        display: none !important;
    }

    .team-members-left,
    .team-members-right {
        width: 100%;
        padding-top: 0;
    }

    .team-members {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;

        width: 100%;
        gap: 26px;

        text-align: center;
    }

    .team-members > * {
        width: 100%;
        max-width: 320px;
    }

    .team-members strong {
        font-size: clamp(1.5rem, 7vw, 2.1rem);
        line-height: 1.02;
    }

    .team-members span {
        font-size: clamp(1rem, 4.6vw, 1.35rem);
        line-height: 1.35;
    }

    .team-description {
        margin-top: 10px;
        font-size: 1rem;
        line-height: 1.45;
        text-align: center;
    }
}