/* =========================================================
   HOME / ROMA NEXT
   ========================================================= */

:root {
    --rn-gold: #c69a54;
    --rn-gold-light: #e1bd7a;
    --rn-gold-dark: #8b6737;

    --rn-home-black: #050707;
    --rn-home-dark: #080a0a;
    --rn-home-surface: #0c0f0f;

    --rn-home-border:
        rgba(255, 255, 255, .075);
}

body {
    background:
        var(--rn-home-black);
}

.rn-home-container {
    width:
        min(
            calc(100% - 80px),
            1500px
        );

    margin:
        0 auto;
}


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

.rn-home-hero {
    position: relative;

    min-height:
        min(900px, 100svh);

    padding-top: 78px;

    overflow: hidden;

    background:
        #050707;
}

.rn-home-hero-media {
    position: absolute;

    inset: 78px 0 0;
}

.rn-home-hero-media img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position:
        center;

    transform:
        scale(1.015);

    filter:
        saturate(.8)
        contrast(1.08);
}

.rn-home-hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(4, 6, 6, .94) 0%,
            rgba(4, 6, 6, .68) 34%,
            rgba(4, 6, 6, .16) 68%,
            rgba(4, 6, 6, .50) 100%
        ),
        linear-gradient(
            0deg,
            rgba(4, 6, 6, .94) 0%,
            transparent 42%,
            rgba(4, 6, 6, .20) 100%
        );
}


/* HERO CONTAINER */

.rn-home-hero-container {
    position: relative;

    min-height:
        calc(
            min(900px, 100svh)
            - 78px
        );

    display: flex;
    align-items: center;

    z-index: 2;
}


/* HERO CONTENT */

.rn-home-hero-content {
    width: 520px;

    padding-bottom: 50px;
}

.rn-home-eyebrow {
    display: block;

    margin-bottom: 23px;

    color: #a3a5a1;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 4px;
}

.rn-home-hero h1 {
    margin: 0;

    font-family:
        var(--rn-heading);

    font-size:
        clamp(
            90px,
            9vw,
            145px
        );

    font-weight: 800;

    line-height: .68;

    letter-spacing: -.075em;
}

.rn-home-hero h1 span {
    display: block;

    color: #f3f0e9;
}

.rn-home-hero h1 strong {
    display: block;

    font-weight: 800;

    color:
        var(--rn-gold-light);

    text-shadow:
        0 10px 40px
        rgba(197, 150, 78, .16);
}

.rn-home-roleplay {
    margin-top: 27px;

    color: #b5b5ae;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 8px;
}

.rn-home-hero-content > p {
    max-width: 350px;

    margin-top: 24px;

    color: #a1a5a3;

    font-size: 13px;

    line-height: 1.75;
}


/* BUTTONS */

.rn-home-hero-actions {
    margin-top: 32px;

    display: flex;

    gap: 12px;
}

.rn-home-button {
    min-height: 52px;

    padding:
        0 22px;

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

    gap: 28px;

    border-radius: 5px;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.5px;

    transition:
        transform .25s ease,
        background .25s ease,
        border-color .25s ease;
}

.rn-home-button:hover {
    transform:
        translateY(-2px);
}

.rn-home-button-gold {
    color: #090909;

    background:
        linear-gradient(
            135deg,
            #dfbb78,
            #b98640
        );

    box-shadow:
        0 15px 40px
        rgba(176, 127, 57, .15);
}

.rn-home-button-gold:hover {
    background:
        linear-gradient(
            135deg,
            #ebcb8e,
            #c9954d
        );
}

.rn-home-button-dark {
    color: #d4d5d1;

    background:
        rgba(6, 8, 8, .62);

    border:
        1px solid
        rgba(255, 255, 255, .13);
}


/* HERO FEATURES */

.rn-home-hero-features {
    position: absolute;

    top: 50%;
    right: 0;

    width: 175px;

    transform:
        translateY(-50%);

    display: flex;
    flex-direction: column;

    border-top:
        1px solid
        rgba(255, 255, 255, .10);
}

.rn-home-feature {
    padding:
        15px 0 15px 19px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, .10);

    border-left:
        1px solid
        rgba(255, 255, 255, .10);

    background:
        rgba(5, 7, 7, .24);
}

.rn-home-feature strong,
.rn-home-feature span {
    display: block;
}

.rn-home-feature strong {
    color: #e0e0da;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.2px;
}

.rn-home-feature span {
    margin-top: 3px;

    color: #777d7a;

    font-size: 7px;
    font-weight: 700;

    letter-spacing: 1px;
}


/* HERO STATUS */

.rn-home-hero-status {
    position: absolute;

    left: 0;
    bottom: 28px;

    display: flex;

    background:
        rgba(5, 7, 7, .80);

    border:
        1px solid
        rgba(255, 255, 255, .09);

    backdrop-filter:
        blur(12px);

    border-radius: 7px;
}

.rn-home-hero-status > div {
    min-width: 160px;

    padding:
        14px 18px;

    border-right:
        1px solid
        rgba(255, 255, 255, .08);
}

.rn-home-hero-status > div:last-child {
    border-right: 0;
}

.rn-home-hero-status small {
    display: block;

    margin-bottom: 5px;

    color: #626865;

    font-size: 6px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.rn-home-hero-status strong {
    color: #d7d8d4;

    font-size: 10px;
    font-weight: 800;
}

.rn-home-live-dot {
    width: 6px;
    height: 6px;

    margin-right: 5px;

    display: inline-block;

    border-radius: 50%;

    background: #35dd75;

    box-shadow:
        0 0 10px
        rgba(53, 221, 117, .6);
}


/* =========================================================
   INTRO
   ========================================================= */

.rn-home-intro {
    border-top:
        1px solid
        var(--rn-home-border);

    border-bottom:
        1px solid
        var(--rn-home-border);

    background:
        #080a0a;
}

.rn-home-intro-grid {
    min-height: 165px;

    display: grid;

    grid-template-columns:
        1fr 1fr .65fr;

    align-items: center;

    gap: 70px;
}

.rn-home-intro h2 {
    color: #e5e2da;

    font-family:
        Georgia,
        'Times New Roman',
        serif;

    font-size: 26px;
    font-weight: 400;

    line-height: 1.15;

    letter-spacing: -.5px;
}

.rn-home-intro p {
    max-width: 430px;

    color: #888e8b;

    font-size: 11px;

    line-height: 1.8;
}

.rn-home-intro > div > a {
    justify-self: end;

    display: flex;
    align-items: center;

    gap: 16px;

    color: #d5d5d0;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.4px;
}

.rn-home-play-circle {
    width: 55px;
    height: 55px;

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

    border:
        1px solid
        rgba(211, 168, 98, .65);

    border-radius: 50%;

    color: #ddb574;

    transition:
        transform .25s ease,
        background .25s ease;
}

.rn-home-intro a:hover
.rn-home-play-circle {
    transform:
        scale(1.07);

    background:
        rgba(198, 154, 84, .08);
}


/* =========================================================
   COMMON SECTION COPY
   ========================================================= */

.rn-home-section-copy {
    align-self: center;
}

.rn-home-section-overline {
    display: block;

    margin-bottom: 20px;

    color:
        var(--rn-gold);

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 3px;
}

.rn-home-section-copy h2 {
    margin: 0;

    color: #e8e4db;

    font-family:
        Georgia,
        'Times New Roman',
        serif;

    font-size:
        clamp(
            40px,
            4vw,
            64px
        );

    font-weight: 400;

    line-height: .98;

    letter-spacing: -2px;
}

.rn-home-section-copy p {
    max-width: 390px;

    margin-top: 25px;

    color: #838986;

    font-size: 12px;

    line-height: 1.8;
}

.rn-home-outline-button {
    width: max-content;

    min-height: 42px;

    margin-top: 28px;

    padding:
        0 16px;

    display: flex;
    align-items: center;

    gap: 30px;

    color: #c9a365;

    border:
        1px solid
        rgba(198, 154, 84, .55);

    border-radius: 4px;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 1.3px;

    transition:
        background .2s ease,
        color .2s ease;
}

.rn-home-outline-button:hover {
    color: #080909;

    background:
        var(--rn-gold);
}


/* =========================================================
   CITY
   ========================================================= */

.rn-home-city {
    padding:
        100px 0;

    background:
        radial-gradient(
            circle at 75% 50%,
            rgba(157, 119, 60, .05),
            transparent 32%
        ),
        #060808;
}

.rn-home-city-grid {
    display: grid;

    grid-template-columns:
        .75fr 1.25fr;

    gap: 90px;

    align-items: center;
}


/* MAP */

.rn-home-map {
    position: relative;

    height: 570px;

    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, .06);

    background: #090b0b;
}

.rn-home-map-background {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: .40;

    filter:
        grayscale(1)
        contrast(1.25);
}

.rn-home-map::after {
    content: '';

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at center,
            transparent,
            rgba(5, 7, 7, .75)
        );
}


/* MARKERS */

.rn-home-map-marker {
    position: absolute;

    z-index: 3;
}

.rn-home-map-marker > span {
    position: relative;

    display: block;

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background:
        var(--rn-gold);

    box-shadow:
        0 0 15px
        rgba(198, 154, 84, .65);
}

.rn-home-map-marker > span::after {
    content: '';

    position: absolute;

    inset: -7px;

    border:
        1px solid
        rgba(198, 154, 84, .40);

    border-radius: 50%;
}

.marker-one {
    top: 35%;
    left: 30%;
}

.marker-two {
    top: 63%;
    left: 49%;
}

.marker-three {
    top: 27%;
    right: 25%;
}


/* MAP CARD */

.rn-home-map-card {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 250px;

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

    z-index: 4;

    background:
        rgba(8, 10, 10, .94);

    border:
        1px solid
        rgba(255, 255, 255, .10);

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, .45);
}

.rn-home-map-card img {
    width: 100%;
    height: 145px;

    object-fit: cover;
}

.rn-home-map-card > div {
    padding: 15px;
}

.rn-home-map-card strong {
    display: block;

    color: #fff;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .7px;
}

.rn-home-map-card span {
    display: block;

    margin-top: 5px;

    color: #737976;

    font-size: 8px;
}


/* DISTRICTS */

.rn-home-districts {
    position: absolute;

    top: 50%;
    right: 20px;

    width: 165px;

    transform:
        translateY(-50%);

    z-index: 4;
}

.rn-home-districts button {
    width: 100%;
    height: 45px;

    padding:
        0 13px;

    cursor: pointer;

    color: #777d7a;

    text-align: left;

    background:
        rgba(7, 9, 9, .88);

    border:
        1px solid
        rgba(255, 255, 255, .07);

    border-bottom: 0;

    font-size: 8px;

    transition:
        color .2s ease,
        border-color .2s ease;
}

.rn-home-districts button:last-child {
    border-bottom:
        1px solid
        rgba(255, 255, 255, .07);
}

.rn-home-districts button:hover,
.rn-home-districts button.is-active {
    color: #e2bc78;

    border-color:
        rgba(198, 154, 84, .25);
}


/* =========================================================
   FACTIONS
   ========================================================= */

.rn-home-factions {
    padding:
        105px 0;

    border-top:
        1px solid
        var(--rn-home-border);

    background:
        #080a0a;
}

.rn-home-factions-layout {
    display: grid;

    grid-template-columns:
        340px 1fr;

    gap: 70px;
}

.rn-home-faction-cards {
    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 13px;
}

.rn-home-faction-card {
    position: relative;

    height: 390px;

    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, .07);

    background: #111;
}

.rn-home-faction-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    filter:
        saturate(.72);

    transition:
        transform .6s
        cubic-bezier(.2, .7, .2, 1),
        filter .4s ease;
}

.rn-home-faction-shade {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            0deg,
            rgba(4, 6, 6, .95),
            transparent 60%
        );
}

.rn-home-faction-card > div:last-child {
    position: absolute;

    left: 15px;
    right: 15px;
    bottom: 17px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.rn-home-faction-card strong {
    color: #fff;

    font-size: 9px;
    font-weight: 800;

    line-height: 1.3;

    letter-spacing: .6px;
}

.rn-home-faction-card
> div:last-child > span {
    width: 24px;
    height: 24px;

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

    color: #d6ae6c;

    border:
        1px solid
        rgba(255, 255, 255, .13);

    border-radius: 4px;
}

.rn-home-faction-card:hover img {
    transform:
        scale(1.07);

    filter:
        saturate(1);
}


/* =========================================================
   NEWS
   ========================================================= */

.rn-home-news {
    padding:
        105px 0;

    border-top:
        1px solid
        var(--rn-home-border);

    background:
        #050707;
}

.rn-home-news-layout {
    display: grid;

    grid-template-columns:
        340px 1fr;

    gap: 70px;
}

.rn-home-news-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}

.rn-home-news-card {
    overflow: hidden;

    background:
        #0a0c0c;

    border:
        1px solid
        rgba(255, 255, 255, .075);

    transition:
        transform .25s ease,
        border-color .25s ease;
}

.rn-home-news-card:hover {
    transform:
        translateY(-5px);

    border-color:
        rgba(198, 154, 84, .30);
}

.rn-home-news-image {
    position: relative;

    height: 190px;

    overflow: hidden;
}

.rn-home-news-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    filter:
        saturate(.75);

    transition:
        transform .5s ease;
}

.rn-home-news-card:hover
.rn-home-news-image img {
    transform:
        scale(1.04);
}

.rn-home-news-image > span {
    position: absolute;

    left: 12px;
    bottom: 12px;

    padding:
        5px 8px;

    color: #080808;

    background:
        var(--rn-gold);

    font-size: 6px;
    font-weight: 900;

    letter-spacing: 1px;
}

.rn-home-news-content {
    position: relative;

    min-height: 195px;

    padding: 18px;
}

.rn-home-news-content small {
    color:
        var(--rn-gold);

    font-size: 6px;
    font-weight: 800;

    letter-spacing: 1.4px;
}

.rn-home-news-content > span {
    display: block;

    margin-top: 7px;

    color: #5e6461;

    font-size: 7px;
    font-weight: 700;
}

.rn-home-news-content h3 {
    max-width: 220px;

    margin-top: 14px;

    color: #e7e6e0;

    font-size: 15px;
    font-weight: 600;

    line-height: 1.3;
}

.rn-home-news-content p {
    max-width: 230px;

    margin-top: 10px;

    color: #727875;

    font-size: 9px;

    line-height: 1.6;
}

.rn-home-news-content > strong {
    position: absolute;

    right: 18px;
    bottom: 18px;

    color:
        var(--rn-gold);

    font-size: 16px;
}


/* =========================================================
   FINAL CTA
   ========================================================= */

.rn-home-final {
    position: relative;

    min-height: 410px;

    overflow: hidden;

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

    text-align: center;

    border-top:
        1px solid
        var(--rn-home-border);
}

.rn-home-final > img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    filter:
        saturate(.65);
}

.rn-home-final-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(5, 7, 7, .85),
            rgba(5, 7, 7, .42),
            rgba(5, 7, 7, .85)
        ),
        linear-gradient(
            0deg,
            rgba(5, 7, 7, .85),
            transparent,
            rgba(5, 7, 7, .55)
        );
}

.rn-home-final-content {
    position: relative;

    z-index: 2;
}

.rn-home-final-content > span {
    color:
        var(--rn-gold);

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 3px;
}

.rn-home-final h2 {
    margin-top: 12px;

    color: #f1eee7;

    font-family:
        Georgia,
        'Times New Roman',
        serif;

    font-size:
        clamp(
            42px,
            5vw,
            72px
        );

    font-weight: 400;

    line-height: .98;
}

.rn-home-final h2 strong {
    font-weight: 400;

    color:
        var(--rn-gold-light);
}

.rn-home-final p {
    margin-top: 18px;

    color: #999d9a;

    font-size: 11px;
}

.rn-home-final .rn-home-button {
    margin-top: 28px;
}


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

@media (max-width: 1200px) {

    .rn-home-faction-cards {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .rn-home-faction-card {
        height: 330px;
    }
}


@media (max-width: 950px) {

    .rn-home-container {
        width:
            calc(100% - 40px);
    }

    .rn-home-hero-features {
        display: none;
    }

    .rn-home-intro-grid {
        grid-template-columns:
            1fr 1fr;
    }

    .rn-home-intro > div > a {
        grid-column:
            1 / -1;

        justify-self: start;

        padding-bottom: 30px;
    }

    .rn-home-city-grid {
        grid-template-columns: 1fr;
    }

    .rn-home-factions-layout,
    .rn-home-news-layout {
        grid-template-columns: 1fr;
    }

    .rn-home-section-copy {
        max-width: 520px;
    }
}


@media (max-width: 720px) {

    .rn-home-hero {
        min-height: 800px;
    }

    .rn-home-hero-container {
        min-height: 730px;
    }

    .rn-home-hero-content {
        width: 100%;
    }

    .rn-home-hero h1 {
        font-size:
            clamp(
                75px,
                23vw,
                120px
            );
    }

    .rn-home-hero-status {
        width: 100%;

        bottom: 20px;
    }

    .rn-home-hero-status > div {
        min-width: 0;

        flex: 1;

        padding:
            12px 10px;
    }

    .rn-home-intro-grid {
        padding:
            50px 0;

        grid-template-columns: 1fr;

        gap: 25px;
    }

    .rn-home-intro > div > a {
        grid-column: auto;

        padding-bottom: 0;
    }

    .rn-home-map {
        height: 600px;
    }

    .rn-home-map-card {
        top: 38%;
    }

    .rn-home-districts {
        top: auto;
        left: 20px;
        right: 20px;
        bottom: 20px;

        width: auto;

        transform: none;
    }

    .rn-home-districts button {
        height: 38px;
    }

    .rn-home-faction-cards {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .rn-home-news-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 480px) {

    .rn-home-container {
        width:
            calc(100% - 28px);
    }

    .rn-home-eyebrow {
        letter-spacing: 2px;
    }

    .rn-home-hero h1 {
        font-size: 22vw;
    }

    .rn-home-roleplay {
        letter-spacing: 5px;
    }

    .rn-home-hero-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .rn-home-button {
        width: 100%;
    }

    .rn-home-hero-status
    > div:nth-child(3) {
        display: none;
    }

    .rn-home-map {
        height: 530px;
    }

    .rn-home-map-card {
        width:
            calc(100% - 60px);
    }

    .rn-home-faction-cards {
        grid-template-columns: 1fr 1fr;
    }

    .rn-home-faction-card {
        height: 280px;
    }
}

/* =========================================================
   REVEAL
   ========================================================= */

.rn-home-reveal {
    opacity: 0;

    transform:
        translateY(20px);

    transition:
        opacity .7s ease,
        transform .7s
        cubic-bezier(.2, .7, .2, 1);
}

.rn-home-reveal.is-visible {
    opacity: 1;

    transform:
        translateY(0);
}

@media (
    prefers-reduced-motion:
    reduce
) {

    .rn-home-reveal {
        opacity: 1;

        transform: none;

        transition: none;
    }
}