
/* =========================================
   SOVEREIGNTY HQ
   MAIN STYLESHEET
========================================= */

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

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

body {
    background: #080606;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

/* =========================================
   FIXED DRAGON BACKGROUND
========================================= */

.dragon-scene {
    position: fixed;
    inset: 0;
    z-index: 0;

    background-image:
        linear-gradient(
            90deg,
            rgba(5,4,4,0.94) 0%,
            rgba(5,4,4,0.65) 40%,
            rgba(5,4,4,0.12) 100%
        ),
        url("/static/website/images/dragon-hero.580dfde9679a.png");

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

    transform: scale(1);
    transform-origin: 85% 35%;

    will-change: transform;
    pointer-events: none;
}

/* MAIN CONTENT */

main {
    position: relative;
    z-index: 1;
}

/* =========================================
   NAVIGATION
========================================= */

.navbar {
    width: 100%;
    height: 80px;
    padding: 0 8%;

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

    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;

    background: rgba(8,5,5,0.78);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo {
    color: #ffffff;
    font-family: Georgia, serif;
    font-size: 20px;
    letter-spacing: 2.5px;
    white-space: nowrap;
}

.logo span {
    color: #c52a30;
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar nav a {
    color: #c7bebe;
    font-size: 11px;
    letter-spacing: 1.8px;
    transition: color 0.3s ease;
}

.navbar nav a:hover {
    color: #e33b42;
}

.nav-button {
    padding: 12px 22px;

    border: 1px solid #a9222b;
    color: #ffffff;

    font-size: 11px;
    letter-spacing: 1.4px;

    transition: 0.3s ease;
}

.nav-button:hover {
    background: #a9222b;
}

/* =========================================
   HERO SECTION
========================================= */

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

    position: relative;

    display: flex;
    align-items: center;

    padding: 110px 8% 85px;

    overflow: hidden;

    /* Dragon is handled by .dragon-scene */
    background: transparent;
}

/* =========================================
   HERO CONTENT
========================================= */

.hero-content {
    max-width: 780px;
    position: relative;
    z-index: 2;
}

.eyebrow {
    color: #aaa0a0;
    font-size: 11px;
    letter-spacing: 4px;
    margin-bottom: 30px;
}

.eyebrow span {
    color: #d12c2c;
    margin: 0 7px;
}

/* MAIN HEADING */

.hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 6vw, 88px);
    font-weight: normal;
    letter-spacing: -3px;
    line-height: 0.98;
}

.hq {
    display: block;
    color: #bd2929;
    margin-left: 20%;
    font-size: 0.85em;
}

/* MOTTO */

.hero h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(17px, 2vw, 26px);
    font-weight: normal;
    letter-spacing: 2.5px;
    line-height: 1.5;
    margin-top: 25px;
}

.hero h2 span {
    color: #df3838;
}

/* DESCRIPTION */

.hero-description {
    color: #c2b8b8;
    font-size: 14px;
    letter-spacing: 0.6px;
    line-height: 1.7;
    margin-top: 16px;
}

/* =========================================
   HERO BUTTONS
========================================= */

.hero-buttons {
    display: flex;
    gap: 18px;
    margin-top: 32px;
}

.primary-button,
.secondary-button {
    padding: 16px 27px;

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

    font-size: 11px;
    letter-spacing: 1.8px;

    transition: all 0.3s ease;
}

.primary-button {
    background: #941c22;
    color: #ffffff;
    border: 1px solid #d33939;
}

.primary-button:hover {
    background: #bd2929;
    transform: translateY(-2px);
}

.secondary-button {
    border: 1px solid rgba(255,255,255,0.45);
    color: #ffffff;
}

.secondary-button:hover {
    border-color: #d33939;
    color: #e44b4b;
    transform: translateY(-2px);
}

/* =========================================
   SCROLL INDICATOR
========================================= */

.scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;

    transform: translateX(-50%);

    color: #c6baba;
    font-size: 10px;
    letter-spacing: 4px;
    text-align: center;

    z-index: 3;
}

.scroll-indicator span {
    display: block;
    width: 1px;
    height: 32px;

    background: #bd2929;
    margin: 0 auto 12px;
}

/* =========================================
   CONTENT SECTIONS
========================================= */

.content-section {
    min-height: 65vh;
    padding: 110px 10%;

    position: relative;

    background: rgba(11,8,8,0.38);

    border-top: 1px solid rgba(180,35,35,0.18);
}

.content-section p {
    color: #bd2929;
    letter-spacing: 3px;
    font-size: 11px;
}

.content-section h2 {
    margin-top: 22px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px,4vw,48px);
    font-weight: normal;
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */

@media (max-width: 1000px) {

    .navbar {
        padding: 0 5%;
    }

    .navbar nav {
        gap: 18px;
    }

    .navbar nav a {
        font-size: 10px;
    }

    .dragon-scene {
        background-position: 58% center;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .navbar {
        height: 72px;
        padding: 0 5%;
    }

    .navbar nav {
        display: none;
    }

    .logo {
        font-size: 15px;
        letter-spacing: 1.5px;
    }

    .nav-button {
        padding: 10px 12px;
        font-size: 9px;
    }

    .hero {
        min-height: 100svh;
        height: 100svh;

        padding: 100px 7% 85px;
    }

    .dragon-scene {
        background-image:
            linear-gradient(
                90deg,
                rgba(5,4,4,0.90),
                rgba(5,4,4,0.48)
            ),
            url("/static/website/images/dragon-hero.580dfde9679a.png");

        background-position: 60% center;
    }

    .hero-content {
        max-width: 100%;
    }

    .eyebrow {
        font-size: 9px;
        letter-spacing: 2.5px;
        margin-bottom: 24px;
    }

    .hero h1 {
        font-size: clamp(43px,11vw,68px);
        letter-spacing: -2px;
    }

    .hero h2 {
        font-size: 16px;
        letter-spacing: 1.5px;
        margin-top: 23px;
    }

    .hero-description {
        font-size: 12px;
    }

    .hero-buttons {
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 26px;
    }

    .primary-button,
    .secondary-button {
        padding: 14px 18px;
        font-size: 10px;
    }

    .content-section {
        padding: 85px 7%;
    }
}


/* =====================================
   SOVEREIGNTY HQ - COLLECTIBLE TEAM CARDS
===================================== */

.team-section {
    text-align: center;
    overflow: hidden;
}

.team-description {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
    font-size: 15px;
}

/* CARD DECK */

.team-deck {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin: 65px auto 35px;
    padding: 25px 0;
    perspective: 1200px;
}

/* BASE CARD */

.member-card {
    position: relative;
    flex: 0 0 230px;
    width: 230px;
    height: 345px;
    padding: 17px;
    border-radius: 16px;
    background:
        linear-gradient(145deg, #211719, #090708 75%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

/* FOUNDER CARD */

.founder-card {
    z-index: 5;
    border: 2px solid #d6ae42;
    box-shadow:
        0 0 20px rgba(214, 174, 66, 0.2),
        inset 0 0 25px rgba(214, 174, 66, 0.06);
}

/* MANAGER CARDS */

.manager-card {
    border: 2px solid #92242d;
    box-shadow:
        0 0 18px rgba(146, 36, 45, 0.16),
        inset 0 0 20px rgba(146, 36, 45, 0.05);
}

/* OVERLAPPING DECK */

.member-card + .member-card {
    margin-left: -75px;
}

.member-card:nth-child(2) {
    transform: rotate(-7deg) translateY(15px);
    z-index: 4;
}

.member-card:nth-child(3) {
    transform: rotate(-3deg) translateY(-5px);
    z-index: 3;
}

.member-card:nth-child(4) {
    transform: rotate(3deg) translateY(-5px);
    z-index: 2;
}

.member-card:nth-child(5) {
    transform: rotate(7deg) translateY(15px);
    z-index: 1;
}

/* CARD TOP */

.card-top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 25px;
}

.card-rarity {
    font-size: 9px;
    letter-spacing: 2px;
    color: #d8c9aa;
}

.founder-card .card-rarity {
    color: #e6c15b;
}

.card-crown {
    color: #e6c15b;
    font-size: 27px;
}

.card-symbol {
    color: #b63843;
    font-size: 18px;
}

/* PROFILE PICTURE */

.member-avatar {
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
    border-radius: 12px;
    overflow: hidden;
    background: #211719;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.founder-card .member-avatar {
    border: 2px solid #b9953c;
}

.manager-card .member-avatar {
    border: 2px solid #92242d;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* MEMBER NAMES */

.member-card h3 {
    font-family: Georgia, serif;
    font-size: 25px;
    letter-spacing: 2px;
    text-align: center;
    margin: 8px 0 0;
}

.founder-card h3 {
    color: #e6c15b;
    text-shadow: 0 0 12px rgba(230, 193, 91, 0.25);
}

.manager-card h3 {
    color: #d94a53;
    text-shadow: 0 0 12px rgba(217, 74, 83, 0.2);
}

/* ROLES */

.member-role {
    font-size: 10px;
    letter-spacing: 3px;
    color: #d0c6c6;
    margin: 0;
}

/* CARD FOOTER */

.card-bottom {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #a99b9b;
    font-size: 8px;
    letter-spacing: 1.5px;
}

.founder-card .card-bottom {
    border-color: rgba(214, 174, 66, 0.4);
}

.manager-card .card-bottom {
    border-color: rgba(146, 36, 45, 0.5);
}

/* DECK INSTRUCTION */

.deck-instruction {
    color: #c6a35a;
    font-size: 10px;
    letter-spacing: 4px;
    margin-top: 30px;
}


/* MOBILE */

@media (max-width: 700px) {

    .team-deck {
        transform: scale(0.78);
        transform-origin: center top;
        margin-bottom: -35px;
    }

    .member-card {
        flex-basis: 210px;
        width: 210px;
        height: 315px;
    }

    .member-card + .member-card {
        margin-left: -125px;
    }

    .member-card h3 {
        font-size: 21px;
    }

}


/* CLEANER COLLECTIBLE CARDS */

.card-rarity {
    display: none;
}

.card-top {
    justify-content: flex-end;
    min-height: 27px;
}

.card-crown {
    font-size: 30px;
}

/* Give names more breathing room */

.member-card h3 {
    font-size: 27px;
    margin-top: 12px;
}

.member-role {
    margin-top: -5px;
    font-size: 10px;
    letter-spacing: 3px;
}

/* Keep card details clean */

.member-card {
    padding: 17px;
}


/* =====================================
   SCROLLING COLLECTIBLE CARD DECK
===================================== */

.team-section {
    min-height: 400vh;
    position: relative;
}

.team-deck {
    position: sticky;
    top: 23vh;
    height: 345px;
    width: 100%;
    max-width: 1000px;
    margin: 65px auto 35px;
    padding: 0;
    display: block;
    perspective: 1200px;
}

.team-deck .member-card {
    position: absolute;
    left: 50%;
    top: 0;
    margin-left: 0;
    flex: none;
    transform: translateX(-50%);
    transform-origin: center center;
    will-change: transform;
    transition:
        transform 0.45s cubic-bezier(0.2, 0.75, 0.25, 1),
        filter 0.45s ease;
}


@media (max-width: 700px) {
    .team-section {
        min-height: 350vh;
    }

    .team-deck {
        top: 22vh;
        transform: none;
        margin-bottom: 35px;
    }

    .team-deck .member-card {
        width: 210px;
        height: 315px;
    }
}


/* FIX TEAM DECK STICKY SCROLL */

.team-section {
    overflow: visible !important;
    position: relative;
    min-height: 450vh;
}

.team-deck {
    position: sticky;
    top: 23vh;
    overflow: visible;
    z-index: 10;
}

/* Keep the instruction readable */
.deck-instruction {
    position: relative;
    z-index: 20;
    margin-top: 25px;
    text-align: center;
}


/* =====================================
   FIX CARD DECK VISIBILITY
===================================== */

.team-deck {
    position: relative;
    height: 430px;
    overflow: visible;
    isolation: isolate;
}

/* Default overlapping arrangement */

.team-deck .member-card:nth-child(1) {
    transform: translateX(-50%) translateX(-70px) rotate(-8deg);
    z-index: 5;
}

.team-deck .member-card:nth-child(2) {
    transform: translateX(-50%) translateX(-35px) rotate(-4deg);
    z-index: 4;
}

.team-deck .member-card:nth-child(3) {
    transform: translateX(-50%) rotate(0deg);
    z-index: 3;
}

.team-deck .member-card:nth-child(4) {
    transform: translateX(-50%) translateX(35px) rotate(4deg);
    z-index: 2;
}

.team-deck .member-card:nth-child(5) {
    transform: translateX(-50%) translateX(70px) rotate(8deg);
    z-index: 1;
}


/* =====================================
   FINAL CARD DECK LAYOUT
===================================== */

.team-section {
    min-height: auto !important;
    height: auto;
    overflow: visible !important;
    padding-bottom: 70px;
}

.team-deck {
    height: 430px;
    margin: 45px auto 0;
    overflow: visible;
    cursor: grab;
}

/* Stop cards spreading just because of hover */
.team-deck:hover .member-card {
    filter: none;
}

.team-deck .member-card {
    left: 50%;
    top: 25px;
    transition:
        transform 0.55s cubic-bezier(.2,.8,.2,1),
        box-shadow 0.4s ease;
}

/* Remove old hover spreading */
.team-deck:hover .member-card:nth-child(1),
.team-deck:hover .member-card:nth-child(2),
.team-deck:hover .member-card:nth-child(3),
.team-deck:hover .member-card:nth-child(4),
.team-deck:hover .member-card:nth-child(5) {
    /* New positions are controlled by JavaScript */
}

/* Remove the old instruction */
.deck-instruction {
    display: none;
}
/* REMOVE THE LINE BEHIND THE TEAM CARDS */

#work {
    border-top: none !important;
}

.team-section {
    border-bottom: none !important;
}

.team-deck {
    position: relative;
    z-index: 5;
}


/* KEEP THE RED SEPARATOR AND MOVE WHAT WE DO DOWN */

#work {
    border-top: 1px solid rgba(160, 35, 42, 0.18) !important;
    padding-top: 180px;
    min-height: 85vh;
}

.team-section {
    border-bottom: none;
}
/* MOVE THE RED SEPARATOR BELOW THE CARD DECK */

.team-section {
    padding-bottom: 300px !important;
}

#work {
    margin-top: 0;
    padding-top: 120px;
    min-height: 85vh;
    border-top: 1px solid rgba(160, 35, 42, 0.18) !important;
}

/* =====================================
   SOVEREIGNTY HQ — FINAL CARD ANIMATION
===================================== */

/* Keep the original team section design */
.team-section {
    min-height: auto !important;
    height: auto;
    overflow: visible !important;
    position: relative;
    padding-bottom: 300px !important;
}

/* Card deck */
.team-deck {
    position: relative !important;
    display: block !important;
    width: 100%;
    max-width: 1000px;
    height: 430px;
   margin: 0 auto 35px;
    padding: 0;
    overflow: visible !important;
    perspective: 1200px;
    isolation: isolate;
    cursor: grab;
}

/* Individual cards */
.team-deck .member-card {
    position: absolute !important;
    left: 50%;
    top: 25px;
    margin: 0 !important;
    flex: none !important;

    transform-origin: center center;
    will-change: transform;

    transition:
        transform 0.65s cubic-bezier(.2,.8,.2,1),
        filter 0.4s ease,
        box-shadow 0.4s ease;
}

/* Remove old hover-spreading behaviour */
.team-deck:hover .member-card {
    filter: none;
}

/* Remove old individual hover movement */
.team-deck .member-card:hover {
    transform: none;
}

/* Keep the What We Do separator and spacing */
#work {
    border-top: 1px solid rgba(160, 35, 42, 0.18) !important;
    padding-top: 120px;
    min-height: 85vh;
}

@media (max-width: 700px) {
    .team-deck {
        height: 350px;
        transform: scale(.78);
        transform-origin: top center;
        margin-bottom: -30px;
    }

    .team-deck .member-card {
        width: 210px;
        height: 315px;
    }
}


/* =====================================
   DISABLE AUTOMATIC HOVER CARD MOVEMENT
===================================== */


/* Keep transitions controlled by JavaScript */
.team-deck .member-card {
    transition:
        transform 0.65s cubic-bezier(.2,.8,.2,1),
        filter 0.4s ease,
        box-shadow 0.4s ease;
}

/* Hover must never trigger card movement */
.team-deck:hover .member-card,
.team-deck .member-card:hover {
    /* Card positions are controlled by JavaScript */
}


/* =================================
   SOVEREIGNTY HQ - ABOUT SECTION
================================= */

.about-section {
    position: relative;
    padding: 130px 8% 140px;
    background: transparent;
    overflow: hidden;
    border-top: 1px solid rgba(160, 35, 42, 0.18);
}

.about-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-heading {
    max-width: 850px;
    margin-bottom: 75px;
}

.about-heading .section-label {
    color: #b8323b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.about-heading h2 {
    color: #f3eeee;
    font-size: clamp(34px, 5vw, 66px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -2px;
    margin: 0 0 30px;
    text-transform: uppercase;
}

.about-heading h2 span {
    display: block;
    color: #b8323b;
}

.about-description {
    max-width: 680px;
    color: rgba(235, 225, 225, 0.72);
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: 0.2px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.about-feature {
    position: relative;
    padding: 32px 28px;
    min-height: 210px;
    background: rgba(12, 8, 9, 0.72);
    border: 1px solid rgba(160, 35, 42, 0.28);
    transition: border-color 0.3s ease,
                transform 0.3s ease,
                box-shadow 0.3s ease;
}

.about-feature:hover {
    transform: translateY(-5px);
    border-color: rgba(190, 45, 55, 0.75);
    box-shadow: 0 8px 30px rgba(130, 15, 25, 0.12);
}

.feature-number {
    display: block;
    color: #b8323b;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 28px;
}

.about-feature h3 {
    color: #f1eaea;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0 0 15px;
}

.about-feature p {
    color: rgba(225, 215, 215, 0.65);
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
}

/* Mobile layout */
@media (max-width: 768px) {
    .about-section {
        padding: 90px 6% 100px;
    }

    .about-heading {
        margin-bottom: 45px;
    }

    .about-heading h2 {
        letter-spacing: -1px;
    }

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

    .about-feature {
        min-height: auto;
        padding: 26px 24px;
    }
}


/* ABOUT SECTION - ALIGNMENT AND SIZE REFINEMENT */

.about-heading {
    margin-left: -20px;
}

.about-heading .section-label {
    font-size: 11px;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.about-heading h2 {
    font-size: clamp(30px, 4.3vw, 58px);
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.about-description {
    font-size: 14px;
    line-height: 1.85;
}

/* Mobile alignment */
@media (max-width: 768px) {
    .about-heading {
        margin-left: 0;
    }

    .about-heading h2 {
        font-size: clamp(29px, 8vw, 42px);
    }
}


/* =================================
   ABOUT SECTION - FINAL POLISH
================================= */

/* Slightly stronger crimson card borders */
.about-feature {
    border: 1px solid rgba(190, 35, 48, 0.42);
    box-shadow: 0 0 12px rgba(130, 15, 25, 0.06);
}

/* Subtle crimson glow on hover */
.about-feature:hover {
    border-color: rgba(210, 48, 60, 0.85);
    box-shadow:
        0 0 18px rgba(160, 20, 35, 0.16),
        inset 0 0 15px rgba(160, 20, 35, 0.04);
}

/* Refined heading glow */
.about-heading h2 {
    text-shadow: 0 0 22px rgba(170, 25, 40, 0.10);
}

.about-heading h2 span {
    text-shadow: 0 0 25px rgba(190, 35, 48, 0.20);
}

/* More breathing room before feature cards */
.about-heading {
    margin-bottom: 85px;
}

/* Slightly refined feature card spacing */
.about-feature {
    padding: 34px 28px;
}

/* Smooth transitions */
.about-feature,
.about-heading h2,
.about-heading h2 span {
    transition: all 0.35s ease;
}

@media (max-width: 768px) {
    .about-heading {
        margin-bottom: 45px;
    }
}


/* =========================================
   SOVEREIGNTY HQ - SERVER SECTION
========================================= */

.server-section {
    position: relative;
    width: 100%;
    min-height: 750px;
    padding: 130px 8% 120px;
    background: transparent;
    overflow: hidden;
    border-top: 1px solid rgba(160, 35, 42, 0.25);
    border-bottom: 1px solid rgba(160, 35, 42, 0.25);
}

.server-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.server-heading {
    max-width: 850px;
    margin-bottom: 75px;
}

.server-heading .section-label {
    color: #b8323b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.server-heading h2 {
    color: #f3eeee;
    font-size: clamp(30px, 4.3vw, 58px);
    line-height: 1.12;
    letter-spacing: -1.5px;
    font-weight: 800;
    margin: 0 0 28px;
    text-transform: uppercase;
    text-shadow: 0 0 22px rgba(170, 25, 40, 0.10);
}

.server-heading h2 span {
    display: block;
    color: #b8323b;
    text-shadow: 0 0 25px rgba(190, 35, 48, 0.20);
}

.server-description {
    max-width: 680px;
    color: rgba(235, 225, 225, 0.72);
    font-size: 14px;
    line-height: 1.85;
}

.server-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.server-feature {
    position: relative;
    min-height: 210px;
    padding: 34px 28px;
    background: rgba(12, 8, 9, 0.76);
    border: 1px solid rgba(190, 35, 48, 0.42);
    transition: all 0.35s ease;
}

.server-feature:hover {
    transform: translateY(-5px);
    border-color: rgba(210, 48, 60, 0.85);
    box-shadow:
        0 0 18px rgba(160, 20, 35, 0.16),
        inset 0 0 15px rgba(160, 20, 35, 0.04);
}

.server-number {
    display: block;
    color: #b8323b;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 28px;
}

.server-feature h3 {
    color: #f1eaea;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0 0 15px;
}

.server-feature p {
    color: rgba(225, 215, 215, 0.65);
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
}

.server-join {
    margin-top: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.server-join p {
    color: #d8caca;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.server-join-button {
    display: inline-block;
    padding: 15px 30px;
    color: #ffffff;
    background: #a92330;
    border: 1px solid #c83b48;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.server-join-button:hover {
    background: #d02d3c;
    box-shadow: 0 0 25px rgba(190, 35, 48, 0.3);
    transform: translateY(-3px);
}

/* Mobile */
@media (max-width: 768px) {
    .server-section {
        padding: 90px 6% 100px;
        min-height: auto;
    }

    .server-heading {
        margin-bottom: 45px;
    }

    .server-heading h2 {
        font-size: clamp(29px, 8vw, 42px);
    }

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

    .server-feature {
        min-height: auto;
        padding: 26px 24px;
    }

    .server-join {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 40px;
    }
}


/* =========================================
   FIX SECTION ORDER AND LAYOUT
========================================= */

/* Keep every main section in normal document flow */
.hero,
.about-section,
.team-section,
.server-section,
#work,
#collaborate {
    position: relative;
    float: none;
    clear: both;
}

/* Hero stays as the first full-screen section */
.hero {
    min-height: 100vh;
    height: 100vh;
}

/* About stays directly after Hero */
.about-section {
    display: flow-root;
    width: 100%;
    min-height: auto;
}

/* Team stays after About */
.team-section {
    display: flow-root;
    width: 100%;
    min-height: auto !important;
    height: auto !important;
    padding-bottom: 300px !important;
}

/* Server stays after the complete Team section */
.server-section {
    display: flow-root;
    width: 100%;
    min-height: 750px;
    height: auto;
    margin-top: 0;
    clear: both;
    z-index: 1;
}

/* Following sections */
#work,
#collaborate {
    display: flow-root;
    width: 100%;
    clear: both;
}

/* Prevent accidental horizontal overflow */
html,
body {
    overflow-x: hidden;
}

/* SECTION 05 — WHAT WE DO */

.work-section {
    position: relative;
    padding: 130px 8% 140px;
    background: transparent;
    overflow: hidden;
    border-top: 1px solid rgba(180, 20, 35, 0.3);
}

.work-container {
    max-width: 1200px;
    margin: 0 auto;
}

.work-section .section-label {
    color: #b51f32;
    letter-spacing: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 18px;
}

.work-section h2 {
    font-size: clamp(42px, 6vw, 72px);
    color: #fff;
    margin-bottom: 20px;
}

.work-intro {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 55px;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.work-card {
    position: relative;
    padding: 35px;
    min-height: 220px;
    background: rgba(20, 10, 12, 0.78);
    border: 1px solid rgba(180, 30, 45, 0.3);
    transition: border-color 0.3s ease,
                transform 0.3s ease,
                background 0.3s ease;
}

.work-card:hover {
    border-color: #a51c30;
    background: rgba(45, 10, 16, 0.85);
    transform: translateY(-5px);
}

.work-number {
    color: #b51f32;
    font-size: 13px;
    letter-spacing: 3px;
    font-weight: 700;
}

.work-card h3 {
    color: #fff;
    font-size: 23px;
    margin: 25px 0 14px;
}

.work-card p {
    color: rgba(255, 255, 255, 0.62);
    font-size: 15px;
    line-height: 1.8;
}

.work-cta {
    display: inline-flex;
    gap: 15px;
    align-items: center;
    margin-top: 45px;
    padding: 16px 27px;
    color: white;
    text-decoration: none;
    background: #8f1425;
    border: 1px solid #b51f32;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 700;
    transition: 0.3s ease;
}

.work-cta:hover {
    background: #b51f32;
    transform: translateY(-3px);
}

@media (max-width: 700px) {
    .work-grid {
        grid-template-columns: 1fr;
    }

    .work-card {
        min-height: auto;
    }

    .work-section {
        padding: 90px 7%;
    }
}

/* TEAM MEMBER X LINKS */

.member-x-link {
    display: inline-block;
    position: relative;
    z-index: 10;
    margin-top: 12px;
    margin-bottom: 12px;
    padding: 8px 14px;
    color: #e7b84b;
    border: 1px solid rgba(231, 184, 75, 0.45);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    transition: 0.25s ease;
}

.manager-card .member-x-link {
    color: #d34a58;
    border-color: rgba(211, 74, 88, 0.45);
}

.member-x-link:hover {
    color: #fff;
    background: #8f1425;
    border-color: #b51f32;
}


/* =================================
   SOVEREIGNTY HQ — FOOTER
================================= */

.site-footer {
    position: relative;
    width: 100%;
    padding: 75px 8% 25px;
    background: rgba(8, 5, 6, 0.96);
    border-top: 1px solid rgba(181, 31, 50, 0.5);
    z-index: 2;
}

.footer-container {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1.3fr;
    gap: 45px;
    padding-bottom: 60px;
}

.footer-logo {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: 2px;
}

.footer-logo span {
    color: #b51f32;
}

.footer-brand > p {
    color: #d0a84b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-top: 15px;
}

.footer-tagline {
    display: block;
    color: rgba(255,255,255,0.48);
    font-size: 12px;
    line-height: 1.8;
    margin-top: 15px;
    max-width: 260px;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.footer-links h3,
.footer-contact h3 {
    color: #b51f32;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.footer-links a,
.footer-contact a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 13px;
    transition: 0.25s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #d0a84b;
    transform: translateX(4px);
}

.footer-contact p {
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    line-height: 1.7;
}

.footer-bottom {
    max-width: 1250px;
    margin: 0 auto;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.footer-bottom p,
.footer-bottom span {
    color: rgba(255,255,255,0.4);
    font-size: 10px;
    letter-spacing: 1.5px;
}

.footer-bottom span {
    color: #b51f32;
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

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

    .site-footer {
        padding: 60px 7% 25px;
    }
}


/* =========================================
   SECTION 06 — COLLABORATION
========================================= */

.collaborate-section {
    min-height: 85vh;
    padding: 110px 8% 120px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.collaborate-container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Small section label */

.collaborate-section .section-label {
    color: #d52c43;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 24px;
}

/* Main heading */

.collaborate-section h2 {
    max-width: 1000px;
    font-size: clamp(38px, 5.2vw, 68px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -2px;
    margin: 0 0 22px;
    color: #ffffff;
}

.collaborate-section h2 span {
    color: #d52c43;
}

/* Intro paragraph */

.collaborate-description {
    max-width: 760px;
    color: #c0b5b7;
    font-size: 15px;
    line-height: 1.8;
    letter-spacing: 0.3px;
    margin-bottom: 38px;
}

/* Two collaboration points */

.collaborate-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    max-width: 850px;
    margin-bottom: 38px;
}

.collaborate-points > div {
    padding: 25px 26px;
    background: rgba(12, 7, 9, 0.72);
    border: 1px solid rgba(190, 35, 55, 0.35);
    border-left: 3px solid #bd263d;
    transition: background 0.3s ease,
                border-color 0.3s ease,
                transform 0.3s ease;
}

.collaborate-points > div:hover {
    background: rgba(90, 12, 24, 0.35);
    border-color: rgba(220, 45, 65, 0.7);
    transform: translateY(-4px);
}

.collaborate-points > div > span {
    display: block;
    color: #d52c43;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 13px;
}

.collaborate-points h3 {
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 9px;
}

.collaborate-points p {
    color: #a99ea0;
    font-size: 13px;
    line-height: 1.7;
    letter-spacing: 0.2px;
    margin: 0;
}

/* Application button */

.collaborate-section .work-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 54px;
    padding: 17px 27px;
    background: #bd263d;
    border: 1px solid #e04459;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    transition: background 0.3s ease,
                transform 0.3s ease,
                box-shadow 0.3s ease;
}

.collaborate-section .work-cta:hover {
    background: #df304a;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(190, 25, 50, 0.25);
}

.collaborate-section .work-cta span {
    font-size: 17px;
}

/* Mobile layout */

@media (max-width: 700px) {

    .collaborate-section {
        min-height: auto;
        padding: 85px 7% 95px;
    }

    .collaborate-section h2 {
        font-size: clamp(34px, 9vw, 48px);
        letter-spacing: -1px;
    }

    .collaborate-description {
        font-size: 14px;
        margin-bottom: 28px;
    }

    .collaborate-points {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 30px;
    }

    .collaborate-points > div {
        padding: 21px;
    }

    .collaborate-section .work-cta {
        width: 100%;
        padding: 16px 12px;
        font-size: 10px;
        letter-spacing: 1px;
    }
}

/* =====================================
   MOBILE HERO REFINEMENT
===================================== */

@media (max-width: 700px) {
    .hero-content {
        transform: translate(12px, -45px);
    }
}
/* =====================================
   MOBILE FOOTER — TWO COLUMN LINKS
===================================== */

@media (max-width: 550px) {

    .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 22px;
        row-gap: 30px;
    }

    .footer-brand,
    .footer-contact {
        grid-column: 1 / -1;
    }

    .footer-links {
        gap: 12px;
    }

    .footer-links h3,
    .footer-contact h3 {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .footer-links a,
    .footer-contact a {
        font-size: 12px;
        overflow-wrap: anywhere;
    }

    .footer-contact {
        gap: 12px;
    }
}
/* Allow vertical page scrolling while swiping cards horizontally */

.team-deck {
    touch-action: pan-y;
}
@media (max-width: 768px) {
    .dragon-scene {
        position: fixed !important;
        inset: 0;
        transform: none !important;
        will-change: auto;
    }
}

/* MOBILE DRAGON POSITION FIX */
@media (max-width: 700px) {
    .dragon-scene {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        inset: auto !important;

        transform: none !important;
        will-change: auto !important;

        background-size: auto 100vh !important;
        background-position: 60% top !important;
        background-repeat: no-repeat !important;

        pointer-events: none;
    }

    .hero .scroll-indicator {
        display: none !important;
    }
}

    /* Remove the scroll line and SCROLL title */
    .hero .scroll-indicator {
        display: none !important;
    }
}
