:root {
    --mod-ink: #04070d;
    --mod-panel: #09111d;
    --mod-panel-2: #0d1826;
    --mod-line: rgba(221, 188, 114, 0.2);
    --mod-gold: #e4bb6c;
    --mod-gold-soft: #ffe1a0;
    --mod-red: #e54735;
    --mod-paper: #f5f0e4;
}

.page-mod .site-main,
.page-about .site-main,
.page-kuldetesek .site-main {
    overflow: hidden;
}

.page-mod .site-main {
    background: var(--mod-ink);
}

.mod-hero {
    position: relative;
    min-height: min(900px, calc(100vh - 82px));
    isolation: isolate;
    display: grid;
    align-items: end;
    overflow: hidden;
    border-bottom: 1px solid var(--mod-line);
}

.mod-hero-media,
.mod-hero-shade,
.mod-hero-grid {
    position: absolute;
    inset: 0;
}

.mod-hero-media {
    z-index: -4;
}

.mod-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 44%;
    transform: scale(1.035);
    animation: modHeroDrift 16s ease-out both;
}

.mod-hero-shade {
    z-index: -3;
    background:
        linear-gradient(90deg, rgba(3, 6, 11, 0.97) 0%, rgba(4, 8, 14, 0.77) 39%, rgba(4, 7, 13, 0.22) 72%),
        linear-gradient(0deg, #04070d 0%, rgba(4, 7, 13, 0.14) 58%, rgba(4, 7, 13, 0.5) 100%);
}

.mod-hero-grid {
    z-index: -2;
    opacity: 0.17;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.mod-hero::before {
    content: "SL // MOD CORE";
    position: absolute;
    top: 34px;
    right: max(24px, calc((100% - var(--container)) / 2));
    color: rgba(255, 255, 255, 0.44);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.22em;
}

.mod-hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.44fr);
    gap: clamp(38px, 7vw, 100px);
    align-items: end;
    padding-top: clamp(120px, 20vh, 220px);
    padding-bottom: clamp(100px, 13vh, 142px);
}

.mod-hero-copy {
    max-width: 850px;
}

.mod-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--mod-gold-soft);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.mod-kicker i {
    width: 38px;
    height: 1px;
    background: currentColor;
    box-shadow: 0 0 12px rgba(228, 187, 108, 0.72);
}

.mod-hero h1 {
    max-width: 900px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.25rem, 7.4vw, 7.3rem);
    font-weight: 400;
    letter-spacing: -0.065em;
    text-wrap: balance;
    text-shadow: 0 20px 70px rgba(0, 0, 0, 0.65);
}

.mod-hero h1 em {
    color: var(--mod-gold-soft);
    font-weight: 400;
}

.mod-hero-copy > p {
    max-width: 720px;
    margin: 28px 0 34px;
    color: rgba(245, 240, 228, 0.74);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.mod-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.mod-hero-actions .btn {
    min-width: 180px;
}

.mod-hero-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-self: end;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(3, 7, 13, 0.72);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(18px);
}

.mod-hero-facts div {
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mod-hero-facts div:nth-child(even) {
    border-right: 0;
}

.mod-hero-facts div:nth-child(n + 3) {
    border-bottom: 0;
}

.mod-hero-facts strong {
    color: var(--mod-gold-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1;
}

.mod-hero-facts span {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.mod-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 25px;
    display: grid;
    justify-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.57rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.mod-scroll-cue i {
    display: block;
    width: 1px;
    height: 30px;
    background: linear-gradient(var(--mod-gold), transparent);
    animation: modScrollPulse 1.8s ease-in-out infinite;
}

.mod-overview,
.mod-progression,
.mod-onboarding,
.mod-depth {
    position: relative;
    background: var(--mod-ink);
}

.mod-overview::before,
.mod-progression::before,
.mod-depth::before {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(1px);
}

.mod-overview::before {
    top: -220px;
    right: -170px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(228, 187, 108, 0.09);
    box-shadow: inset 0 0 0 64px rgba(228, 187, 108, 0.012), inset 0 0 0 65px rgba(228, 187, 108, 0.04);
}

.mod-section-heading {
    max-width: 860px;
    margin-bottom: clamp(42px, 7vw, 76px);
}

.mod-section-heading h2,
.mod-depth-copy h2,
.mod-cta h2 {
    color: var(--mod-paper);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.45rem, 5.3vw, 5rem);
    font-weight: 400;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.mod-section-heading > p,
.mod-section-heading-split > p {
    max-width: 760px;
    margin: 22px 0 0;
    font-size: 1.03rem;
}

.mod-section-heading-split {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.55fr);
    gap: 56px;
    align-items: end;
}

.mod-section-heading-split > p {
    margin: 0;
}

.mod-pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--mod-line);
    border-bottom: 1px solid var(--mod-line);
}

.mod-pillar {
    min-height: 310px;
    padding: clamp(28px, 4vw, 48px);
    border-right: 1px solid var(--mod-line);
    background: linear-gradient(150deg, rgba(228, 187, 108, 0.055), transparent 48%);
    transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: background 260ms ease, transform 180ms ease;
}

.mod-pillar:last-child {
    border-right: 0;
}

.mod-pillar:hover {
    background: linear-gradient(150deg, rgba(228, 187, 108, 0.12), rgba(229, 71, 53, 0.025) 65%);
}

.mod-pillar > span,
.system-panel-copy > span,
.mod-shot figcaption > span {
    color: var(--mod-gold);
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.mod-pillar h3 {
    margin: 74px 0 17px;
    color: var(--mod-paper);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.65rem, 2.8vw, 2.5rem);
    font-weight: 400;
}

.mod-pillar p {
    margin: 0;
}

.mod-systems {
    position: relative;
    background:
        linear-gradient(rgba(228, 187, 108, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(228, 187, 108, 0.035) 1px, transparent 1px),
        #07101a;
    background-size: 72px 72px;
    border-block: 1px solid var(--mod-line);
}

.system-explorer {
    display: grid;
    grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
    min-height: 600px;
    border: 1px solid rgba(228, 187, 108, 0.24);
    background: rgba(4, 9, 16, 0.92);
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.32);
}

.system-tabs {
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(228, 187, 108, 0.18);
}

.system-tabs button {
    position: relative;
    flex: 1;
    display: flex;
    gap: 16px;
    align-items: center;
    min-height: 76px;
    padding: 18px 24px;
    color: rgba(245, 240, 228, 0.46);
    text-align: left;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: transparent;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 180ms ease, background 180ms ease, padding 180ms ease;
}

.system-tabs button:last-child {
    border-bottom: 0;
}

.system-tabs button span {
    color: rgba(228, 187, 108, 0.4);
    font-size: 0.58rem;
}

.system-tabs button::after {
    content: "";
    position: absolute;
    top: 0;
    right: -1px;
    bottom: 0;
    width: 2px;
    background: var(--mod-gold);
    box-shadow: 0 0 18px rgba(228, 187, 108, 0.62);
    transform: scaleY(0);
    transition: transform 180ms ease;
}

.system-tabs button:hover,
.system-tabs button.is-active {
    color: var(--mod-paper);
    background: linear-gradient(90deg, rgba(228, 187, 108, 0.1), transparent);
    padding-left: 30px;
}

.system-tabs button.is-active::after {
    transform: scaleY(1);
}

.system-panels {
    min-width: 0;
}

.system-panel {
    min-height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.48fr);
    gap: 40px;
    align-items: center;
    padding: clamp(34px, 6vw, 74px);
    animation: systemPanelIn 300ms ease both;
}

.system-panel[hidden] {
    display: none;
}

.system-panel-copy h3 {
    max-width: 700px;
    margin: 18px 0 22px;
    color: var(--mod-paper);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 4.6vw, 4.3rem);
    font-weight: 400;
    letter-spacing: -0.05em;
}

.system-panel-copy p {
    max-width: 720px;
    margin-bottom: 26px;
    font-size: 1rem;
}

.system-panel-copy ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.system-panel-copy li {
    position: relative;
    padding-left: 17px;
    color: rgba(245, 240, 228, 0.72);
    font-size: 0.85rem;
}

.system-panel-copy li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.58em;
    width: 6px;
    height: 6px;
    border: 1px solid var(--mod-gold);
    transform: rotate(45deg);
}

.system-sigil {
    position: relative;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    max-width: 300px;
    margin-inline: auto;
    color: #9bb7cc;
    border: 1px solid currentColor;
    border-radius: 50%;
    box-shadow: inset 0 0 0 24px rgba(155, 183, 204, 0.02), 0 0 80px rgba(155, 183, 204, 0.08);
}

.system-sigil::before,
.system-sigil::after {
    content: "";
    position: absolute;
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: 0.28;
    animation: modSigilSpin 16s linear infinite;
}

.system-sigil::before {
    inset: 17px;
    border-style: dashed;
}

.system-sigil::after {
    inset: 42px;
}

.system-sigil b {
    color: var(--mod-paper);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4.2rem, 8vw, 7rem);
    font-weight: 400;
    text-shadow: 0 0 40px currentColor;
}

.system-sigil span {
    position: absolute;
    bottom: 21%;
    font-size: 0.5rem;
    font-weight: 900;
    letter-spacing: 0.2em;
}

.system-sigil-fire { color: #e96e4d; }
.system-sigil-gold { color: #e4bb6c; }
.system-sigil-blue { color: #5fb5d6; }
.system-sigil-red { color: #df5144; }
.system-sigil-green { color: #78b98b; }

.mod-progression {
    overflow: hidden;
}

.mod-progression::before {
    left: 50%;
    top: 52%;
    width: 900px;
    height: 900px;
    border: 1px solid rgba(228, 187, 108, 0.08);
    transform: translate(-50%, -50%);
}

.element-wheel {
    position: relative;
    width: min(100%, 900px);
    min-height: 670px;
    margin: 0 auto 42px;
}

.element-wheel::before,
.element-wheel::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    border: 1px solid rgba(228, 187, 108, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.element-wheel::before {
    width: 510px;
    height: 510px;
    border-style: dashed;
    animation: modSigilSpin 36s linear infinite;
}

.element-wheel::after {
    width: 340px;
    height: 340px;
}

.element-core,
.element-node {
    position: absolute;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 50%;
}

.element-core {
    left: 50%;
    top: 50%;
    width: 230px;
    height: 230px;
    color: var(--mod-gold);
    border: 1px solid rgba(228, 187, 108, 0.38);
    background: radial-gradient(circle, rgba(228, 187, 108, 0.14), rgba(7, 16, 26, 0.96) 68%);
    box-shadow: 0 0 100px rgba(228, 187, 108, 0.1);
    transform: translate(-50%, -50%);
}

.element-core span,
.element-core small,
.element-node small {
    font-size: 0.52rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.element-core strong {
    color: var(--mod-paper);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 5.5rem;
    font-weight: 400;
    line-height: 0.95;
}

.element-core small {
    color: rgba(245, 240, 228, 0.5);
}

.element-node {
    width: 160px;
    height: 160px;
    border: 1px solid currentColor;
    background: rgba(7, 16, 26, 0.94);
    box-shadow: 0 0 55px color-mix(in srgb, currentColor 12%, transparent);
}

.element-node i {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.8rem;
    font-style: normal;
    line-height: 1;
}

.element-node strong {
    margin: 8px 0 5px;
    color: var(--mod-paper);
}

.element-node small {
    color: rgba(245, 240, 228, 0.42);
}

.element-fire { top: 0; left: calc(50% - 80px); color: #ef6b4c; }
.element-water { top: 170px; left: 3%; color: #58acd8; }
.element-lightning { top: 170px; right: 3%; color: #e5d458; }
.element-wind { bottom: 0; left: 16%; color: #6fc981; }
.element-earth { right: 16%; bottom: 0; color: #b78b5c; }

.discipline-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
}

.discipline-strip span,
.mod-depth-list span {
    padding: 10px 14px;
    color: rgba(245, 240, 228, 0.66);
    border: 1px solid rgba(228, 187, 108, 0.16);
    background: rgba(228, 187, 108, 0.035);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.mod-gallery {
    background: #07101a;
    border-block: 1px solid var(--mod-line);
}

.mod-shot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.mod-shot {
    position: relative;
    min-height: 460px;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(228, 187, 108, 0.18);
    background: #050a11;
}

.mod-shot-wide {
    grid-column: 1 / -1;
    min-height: 590px;
}

.mod-shot::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(3, 7, 13, 0.98) 0%, rgba(3, 7, 13, 0.04) 62%);
    pointer-events: none;
}

.mod-shot img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    transition: transform 900ms cubic-bezier(.2,.8,.2,1), filter 500ms ease;
}

.mod-shot:not(.mod-shot-wide):last-child img {
    object-position: center;
}

.mod-shot:hover img {
    transform: scale(1.045);
    filter: saturate(1.08);
}

.mod-shot figcaption {
    position: absolute;
    z-index: 2;
    left: clamp(24px, 4vw, 48px);
    right: clamp(24px, 4vw, 48px);
    bottom: clamp(24px, 4vw, 43px);
}

.mod-shot figcaption strong {
    display: block;
    margin: 9px 0 5px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 3.4vw, 3rem);
    font-weight: 400;
}

.mod-shot figcaption p {
    max-width: 580px;
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
}

.onboarding-path {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.onboarding-path::before {
    content: "";
    position: absolute;
    top: 39px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--mod-gold), transparent);
}

.onboarding-path li {
    position: relative;
    display: grid;
    justify-items: center;
    text-align: center;
    padding: 0 17px;
}

.onboarding-path li > span {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    color: var(--mod-gold-soft);
    border: 1px solid rgba(228, 187, 108, 0.36);
    border-radius: 50%;
    background: var(--mod-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
}

.onboarding-path div {
    margin-top: 28px;
}

.onboarding-path small {
    color: var(--mod-gold);
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.onboarding-path strong {
    display: block;
    margin: 9px 0 12px;
    color: var(--mod-paper);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    font-weight: 400;
}

.onboarding-path p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.65;
}

.mod-depth {
    border-top: 1px solid var(--mod-line);
}

.mod-depth::before {
    top: -270px;
    left: -270px;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(228, 187, 108, 0.08);
}

.mod-depth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.75fr);
    gap: clamp(50px, 9vw, 120px);
    align-items: center;
}

.mod-depth-copy p {
    max-width: 680px;
    margin: 24px 0;
}

.mod-text-link {
    display: inline-flex;
    gap: 16px;
    align-items: center;
    color: var(--mod-gold-soft);
    font-weight: 800;
}

.mod-text-link span {
    transition: transform 180ms ease;
}

.mod-text-link:hover span {
    transform: translateX(6px);
}

.mod-depth-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--mod-line);
    border-left: 1px solid var(--mod-line);
}

.mod-depth-list span {
    min-height: 73px;
    display: flex;
    align-items: center;
    border: 0;
    border-right: 1px solid var(--mod-line);
    border-bottom: 1px solid var(--mod-line);
}

.mod-cta {
    position: relative;
    isolation: isolate;
    min-height: 680px;
    display: grid;
    align-items: center;
    overflow: hidden;
    text-align: center;
}

.mod-cta-media {
    position: absolute;
    z-index: -2;
    inset: 0;
}

.mod-cta-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(4, 7, 13, 0.98), rgba(4, 7, 13, 0.66)), radial-gradient(circle at center, transparent, rgba(4, 7, 13, 0.72));
}

.mod-cta-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mod-cta h2 {
    max-width: 900px;
    margin-inline: auto;
}

.mod-cta p {
    max-width: 680px;
    margin: 25px auto 32px;
}

.mod-cta .mod-hero-actions {
    justify-content: center;
}

/* Reusable content blocks on the home, server, mission and about pages. */
.home-mod-showcase {
    position: relative;
    overflow: hidden;
    background: #07101a;
    border-block: 1px solid var(--mod-line);
}

.home-mod-showcase-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
    gap: clamp(42px, 8vw, 100px);
    align-items: center;
}

.home-mod-showcase-copy h2,
.about-story h2,
.mission-hero h1,
.mission-section h2,
.server-systems-heading h2 {
    color: var(--mod-paper);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    letter-spacing: -0.05em;
}

.home-mod-showcase-copy h2 {
    font-size: clamp(2.5rem, 5.2vw, 4.8rem);
}

.home-mod-showcase-copy > p {
    margin: 22px 0 28px;
}

.home-mod-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 28px;
    background: var(--mod-line);
    border: 1px solid var(--mod-line);
}

.home-mod-metrics div {
    padding: 18px;
    background: #07101a;
}

.home-mod-metrics strong {
    display: block;
    color: var(--mod-gold-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.2rem;
    font-weight: 400;
}

.home-mod-metrics span {
    color: rgba(245, 240, 228, 0.52);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.home-mod-visual {
    position: relative;
    min-height: 560px;
}

.home-mod-visual img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    border: 1px solid var(--mod-line);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.home-mod-visual::before {
    content: "MOD CORE // ACTIVE DEVELOPMENT";
    position: absolute;
    z-index: 2;
    top: 20px;
    left: -22px;
    padding: 10px 14px;
    color: var(--mod-ink);
    background: var(--mod-gold);
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.11em;
}

.home-mod-visual figcaption {
    position: absolute;
    z-index: 2;
    left: 24px;
    right: 24px;
    bottom: 24px;
    padding: 18px 20px;
    color: var(--mod-paper);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(4, 8, 14, 0.78);
    backdrop-filter: blur(14px);
}

.mission-hero,
.about-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-bottom: 1px solid var(--mod-line);
    background: #07101a;
}

.mission-hero {
    --page-hero-image: url('../img/mod/bandit-encounter.png');
}

.about-hero {
    --page-hero-image: url('../img/mod/leaf-village.png');
}

.mission-hero::before,
.about-hero::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 7, 13, 0.98), rgba(4, 7, 13, 0.54)), var(--page-hero-image, none) center / cover;
}

.mission-hero::after,
.about-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image: linear-gradient(rgba(228, 187, 108, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(228, 187, 108, 0.05) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(90deg, #000, transparent 80%);
}

.mission-hero .container,
.about-hero .container {
    min-height: 570px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mission-hero h1,
.about-hero h1 {
    max-width: 960px;
}

.mission-hero p,
.about-hero p {
    max-width: 750px;
    font-size: 1.08rem;
}

.mission-stats,
.about-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--mod-line);
    background: var(--mod-line);
    gap: 1px;
}

.mission-stat,
.about-metric {
    padding: clamp(24px, 4vw, 42px);
    background: #07101a;
}

.mission-stat strong,
.about-metric strong {
    display: block;
    color: var(--mod-gold-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    font-weight: 400;
    line-height: 1;
}

.mission-stat span,
.about-metric span {
    display: block;
    margin-top: 11px;
    color: rgba(245, 240, 228, 0.5);
    font-size: 0.59rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.mission-section,
.about-story {
    background: var(--mod-ink);
}

.mission-rank-grid,
.about-value-grid,
.server-system-live-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.mission-rank-card,
.about-value-card,
.server-system-live {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    padding: 30px;
    border: 1px solid var(--mod-line);
    background: linear-gradient(145deg, rgba(228, 187, 108, 0.055), rgba(7, 16, 26, 0.94));
}

.mission-rank-card > span,
.about-value-card > span,
.server-system-live > span {
    color: var(--mod-gold);
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.mission-rank-card h3,
.about-value-card h3,
.server-system-live h3 {
    margin: 55px 0 13px;
    color: var(--mod-paper);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.75rem;
    font-weight: 400;
}

.mission-rank-card p,
.about-value-card p,
.server-system-live p {
    margin: 0;
}

.mission-flow {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border: 1px solid var(--mod-line);
}

.mission-flow article {
    min-height: 210px;
    padding: 28px;
    border-right: 1px solid var(--mod-line);
}

.mission-flow article:last-child {
    border-right: 0;
}

.mission-flow span {
    color: var(--mod-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
}

.mission-flow h3 {
    margin: 38px 0 11px;
    color: var(--mod-paper);
}

.mission-flow p {
    margin: 0;
    font-size: 0.82rem;
}

.about-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: clamp(50px, 9vw, 120px);
    align-items: start;
}

.about-story-copy {
    position: sticky;
    top: 140px;
}

.about-story-copy p {
    margin-top: 24px;
}

.about-story-list {
    border-top: 1px solid var(--mod-line);
}

.about-story-list article {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 24px;
    padding: 34px 0;
    border-bottom: 1px solid var(--mod-line);
}

.about-story-list > article > span {
    color: var(--mod-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
}

.about-story-list h3 {
    margin-bottom: 10px;
    color: var(--mod-paper);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    font-weight: 400;
}

.about-story-list p {
    margin: 0;
}

.server-system-live-grid {
    margin-top: 34px;
}

.server-system-live {
    min-height: 290px;
}

.server-system-live em {
    position: absolute;
    top: 28px;
    right: 28px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #61cf86;
    box-shadow: 0 0 0 7px rgba(97, 207, 134, 0.08), 0 0 20px rgba(97, 207, 134, 0.6);
}

.server-system-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--mod-gold-soft);
    font-size: 0.75rem;
    font-weight: 800;
}

.has-js .page-mod .reveal-on-scroll,
.has-js .page-about .reveal-on-scroll,
.has-js .page-kuldetesek .reveal-on-scroll,
.has-js .page-server .server-system-live.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.8,.2,1);
}

.has-js .page-mod .reveal-on-scroll.is-visible,
.has-js .page-about .reveal-on-scroll.is-visible,
.has-js .page-kuldetesek .reveal-on-scroll.is-visible,
.has-js .page-server .server-system-live.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes modHeroDrift {
    from { transform: scale(1.09); }
    to { transform: scale(1.035); }
}

@keyframes modScrollPulse {
    0%, 100% { opacity: 0.28; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

@keyframes modSigilSpin {
    to { transform: rotate(360deg); }
}

@keyframes systemPanelIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1040px) {
    .mod-hero-content,
    .home-mod-showcase-grid,
    .mod-depth-grid,
    .about-story-grid {
        grid-template-columns: 1fr;
    }

    .mod-hero-facts {
        max-width: 650px;
    }

    .system-panel {
        grid-template-columns: 1fr;
    }

    .system-sigil {
        display: none;
    }

    .element-wheel {
        transform: scale(0.9);
        margin-block: -25px;
    }

    .onboarding-path {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .onboarding-path::before {
        top: 0;
        bottom: 0;
        left: 39px;
        right: auto;
        width: 1px;
        height: auto;
    }

    .onboarding-path li {
        grid-template-columns: 78px 1fr;
        gap: 25px;
        align-items: center;
        justify-items: start;
        padding: 0 0 25px;
        text-align: left;
    }

    .onboarding-path div {
        margin: 0;
    }

    .about-story-copy {
        position: static;
    }

    .mission-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mission-flow article {
        border-bottom: 1px solid var(--mod-line);
    }
}

@media (max-width: 760px) {
    .mod-hero {
        min-height: 780px;
    }

    .mod-hero-shade {
        background: linear-gradient(0deg, #04070d 2%, rgba(4, 7, 13, 0.58) 72%, rgba(4, 7, 13, 0.64));
    }

    .mod-hero-content {
        padding-top: 110px;
        padding-bottom: 80px;
    }

    .mod-hero-facts,
    .mod-section-heading-split,
    .mod-pillars,
    .mod-shot-grid,
    .mission-stats,
    .about-metrics,
    .mission-rank-grid,
    .about-value-grid,
    .server-system-live-grid {
        grid-template-columns: 1fr;
    }

    .mod-hero-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mod-pillar {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--mod-line);
    }

    .mod-pillar:last-child {
        border-bottom: 0;
    }

    .mod-pillar h3 {
        margin-top: 42px;
    }

    .system-explorer {
        display: block;
    }

    .system-tabs {
        flex-direction: row;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid var(--mod-line);
        scrollbar-width: thin;
    }

    .system-tabs button {
        flex: 0 0 auto;
        min-height: 66px;
        padding: 15px 18px;
        white-space: nowrap;
        border-right: 1px solid rgba(255, 255, 255, 0.07);
        border-bottom: 0;
    }

    .system-tabs button:hover,
    .system-tabs button.is-active {
        padding-left: 18px;
    }

    .system-tabs button::after {
        top: auto;
        left: 0;
        right: 0;
        width: auto;
        height: 2px;
        transform: scaleX(0);
    }

    .system-tabs button.is-active::after {
        transform: scaleX(1);
    }

    .system-panel {
        min-height: 590px;
        padding: 30px 24px;
    }

    .system-panel-copy ul {
        grid-template-columns: 1fr;
    }

    .element-wheel {
        min-height: auto;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        transform: none;
        margin: 0 0 30px;
    }

    .element-wheel::before,
    .element-wheel::after {
        display: none;
    }

    .element-core,
    .element-node {
        position: static;
        width: auto;
        height: auto;
        aspect-ratio: 1;
        transform: none;
    }

    .element-core {
        grid-column: 1 / -1;
        width: 190px;
        margin-inline: auto;
    }

    .mod-shot,
    .mod-shot-wide {
        min-height: 430px;
        grid-column: auto;
    }

    .home-mod-visual {
        min-height: 440px;
    }

    .mission-flow {
        grid-template-columns: 1fr;
    }

    .mission-flow article {
        min-height: auto;
        border-right: 0;
    }

    .mission-flow h3 {
        margin-top: 22px;
    }
}

@media (max-width: 480px) {
    .mod-hero-facts,
    .home-mod-metrics,
    .mod-depth-list {
        grid-template-columns: 1fr;
    }

    .mod-hero-facts div {
        min-height: 95px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mod-hero-facts div:nth-child(n + 3) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mod-hero-facts div:last-child {
        border-bottom: 0;
    }

    .element-wheel {
        grid-template-columns: 1fr;
    }

    .element-core {
        grid-column: auto;
    }

    .onboarding-path li {
        grid-template-columns: 62px 1fr;
        gap: 18px;
    }

    .onboarding-path li > span {
        width: 62px;
        height: 62px;
    }

    .onboarding-path::before {
        left: 31px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mod-hero-media img,
    .mod-scroll-cue i,
    .system-sigil::before,
    .system-sigil::after,
    .element-wheel::before {
        animation: none !important;
    }

    .mod-shot img,
    .reveal-on-scroll {
        transition: none !important;
    }
}
