@font-face {
    font-family: "Cinzel";
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url("../fonts/cinzel-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/manrope-latin.woff2") format("woff2");
}

:root {
    --ink: #05061c;
    --ink-soft: #0a0c2c;
    --ink-raised: #101338;
    --ivory: #f5edd9;
    --ivory-muted: #c7c1b5;
    --gold: #d7b56d;
    --gold-bright: #f1d893;
    --crimson: #9e3444;
    --crimson-bright: #d35b68;
    --violet: #6360a8;
    --line: rgba(238, 222, 186, 0.18);
    --line-strong: rgba(238, 222, 186, 0.34);
    --shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
    --max-width: 1240px;
    --header-height: 80px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ivory);
    background:
        radial-gradient(circle at 75% 10%, rgba(77, 72, 148, 0.13), transparent 28rem),
        var(--ink);
    font-family: "Manrope", "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: "Cinzel", Georgia, serif;
    text-wrap: balance;
}

h2 {
    margin-bottom: 1.25rem;
    font-size: clamp(2rem, 5vw, 4.4rem);
    font-weight: 600;
    line-height: 1.03;
    letter-spacing: -0.035em;
}

h3 {
    margin-bottom: 0.65rem;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.25;
}

::selection {
    color: var(--ink);
    background: var(--gold-bright);
}

:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 4px;
}

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

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 1rem;
    left: 1rem;
    padding: 0.7rem 1rem;
    color: var(--ink);
    background: var(--gold-bright);
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 180ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.eyebrow {
    margin-bottom: 1rem;
    color: var(--gold-bright);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.site-header {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-height);
    border-bottom: 1px solid transparent;
    transition:
        background-color 250ms ease,
        border-color 250ms ease,
        backdrop-filter 250ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
    border-color: var(--line);
    background: rgba(5, 6, 28, 0.86);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    width: min(var(--max-width), calc(100% - 3rem));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.site-brand img {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 3px 14px rgba(0, 0, 0, 0.55));
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.3vw, 2rem);
}

.site-nav a {
    position: relative;
    color: rgba(245, 237, 217, 0.78);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 180ms ease;
}

.site-nav > a:not(.site-nav__cta)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -0.55rem;
    left: 0;
    height: 1px;
    background: var(--gold-bright);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--ivory);
}

.site-nav > a:not(.site-nav__cta):hover::after,
.site-nav > a:not(.site-nav__cta):focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.site-nav .site-nav__cta {
    padding: 0.7rem 1.1rem;
    border: 1px solid var(--gold);
    color: var(--ivory);
    background: rgba(5, 6, 28, 0.45);
}

.site-nav .site-nav__cta:hover {
    color: var(--ink);
    background: var(--gold-bright);
}

.menu-toggle {
    display: none;
}

.hero {
    position: relative;
    min-height: max(760px, 100svh);
    overflow: hidden;
    isolation: isolate;
    display: grid;
    align-items: end;
}

.hero__art,
.hero__art img,
.hero__wash {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero__art {
    z-index: -3;
}

.hero__art img {
    object-fit: cover;
    object-position: center;
    animation: hero-arrive 1.8s cubic-bezier(0.2, 0.65, 0.2, 1) both;
}

.hero__wash {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(4, 5, 25, 0.92) 0%, rgba(5, 6, 28, 0.48) 34%, transparent 62%),
        linear-gradient(0deg, var(--ink) 0%, rgba(5, 6, 28, 0.65) 13%, transparent 42%),
        linear-gradient(180deg, rgba(5, 6, 28, 0.5) 0%, transparent 24%);
}

.hero__content {
    width: min(var(--max-width), calc(100% - 3rem));
    margin: 0 auto;
    padding: calc(var(--header-height) + 4rem) 0 clamp(7.5rem, 13vh, 10rem);
}

.hero__logo {
    width: clamp(300px, 43vw, 620px);
    height: auto;
    margin: 0 0 0.5rem -2.2%;
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.6));
}

.hero__eyebrow {
    margin-bottom: 0.8rem;
    color: var(--gold-bright);
    font-size: clamp(0.72rem, 1.2vw, 0.88rem);
    font-weight: 700;
    letter-spacing: 0.19em;
    text-transform: uppercase;
    animation: content-arrive 1s 320ms cubic-bezier(0.2, 0.65, 0.2, 1) both;
}

.hero__tagline {
    max-width: 38rem;
    margin-bottom: 1.6rem;
    color: var(--ivory);
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(1.15rem, 2.1vw, 1.65rem);
    line-height: 1.35;
    text-wrap: balance;
    animation: content-arrive 1s 420ms cubic-bezier(0.2, 0.65, 0.2, 1) both;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    animation: content-arrive 1s 520ms cubic-bezier(0.2, 0.65, 0.2, 1) both;
}

.button {
    min-height: 50px;
    padding: 0.86rem 1.25rem;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

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

.button--primary {
    color: #171323;
    background: linear-gradient(135deg, var(--gold-bright), #c8984e);
    box-shadow: 0 12px 30px rgba(176, 122, 45, 0.24);
}

.button--primary:hover {
    box-shadow: 0 16px 36px rgba(176, 122, 45, 0.35);
}

.button--secondary {
    border-color: rgba(245, 237, 217, 0.42);
    color: var(--ivory);
    background: rgba(5, 6, 28, 0.42);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.button--secondary:hover {
    border-color: var(--ivory);
    background: rgba(5, 6, 28, 0.72);
}

.hero__scroll {
    position: absolute;
    right: max(1.5rem, calc((100vw - var(--max-width)) / 2));
    bottom: 2.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(245, 237, 217, 0.7);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-decoration: none;
    text-transform: uppercase;
}

.hero__scroll span:last-child {
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--line-strong);
    display: grid;
    place-items: center;
    border-radius: 50%;
    animation: scroll-nudge 1.8s ease-in-out infinite;
}

.section {
    position: relative;
    padding: clamp(6rem, 11vw, 10rem) 0;
}

.section__inner {
    width: min(var(--max-width), calc(100% - 3rem));
    margin: 0 auto;
}

.section-heading {
    max-width: 840px;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-heading--center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.section-heading__lead {
    max-width: 690px;
    margin-bottom: 0;
    color: var(--ivory-muted);
    font-size: clamp(1rem, 1.8vw, 1.16rem);
}

.section-heading--center .section-heading__lead {
    margin-right: auto;
    margin-left: auto;
}

.overview {
    background:
        linear-gradient(180deg, var(--ink) 0%, transparent 18%),
        radial-gradient(circle at 50% 0%, rgba(107, 73, 122, 0.18), transparent 38rem);
}

.mechanics-grid {
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.mechanic {
    min-height: 245px;
    padding: 2rem clamp(1.5rem, 3vw, 2.5rem) 1rem;
    border-right: 1px solid var(--line);
}

.mechanic:first-child {
    border-left: 1px solid var(--line);
}

.mechanic__number {
    display: inline-block;
    margin-bottom: 2.4rem;
    color: var(--crimson-bright);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.mechanic h3 {
    color: var(--ivory);
}

.mechanic p {
    margin-bottom: 0;
    color: var(--ivory-muted);
}

.gameplay {
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: auto 1000px;
    background:
        radial-gradient(circle at 82% 45%, rgba(211, 91, 104, 0.12), transparent 22rem),
        linear-gradient(135deg, rgba(15, 18, 57, 0.92), rgba(5, 6, 28, 0.97));
}

.gameplay::before,
.gameplay::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.gameplay::before {
    top: 12%;
    right: -10rem;
    width: 30rem;
    height: 30rem;
    border: 1px solid rgba(215, 181, 109, 0.12);
    border-radius: 50%;
}

.gameplay::after {
    right: 6%;
    bottom: -9rem;
    width: 1px;
    height: 28rem;
    background: linear-gradient(transparent, rgba(215, 181, 109, 0.35), transparent);
    transform: rotate(35deg);
}

.gameplay__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 8rem);
}

.gameplay__copy > p:not(.eyebrow) {
    max-width: 640px;
    color: var(--ivory-muted);
    font-size: 1.08rem;
}

.feature-list {
    margin: 2rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.95rem;
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    color: rgba(245, 237, 217, 0.9);
}

.feature-list span {
    color: var(--gold-bright);
}

.trailer {
    position: relative;
    width: min(100%, 680px);
    margin: 0 auto;
}

.trailer::before {
    content: "";
    position: absolute;
    inset: 8% -10%;
    z-index: -1;
    border: 1px solid var(--line);
    transform: rotate(4deg);
}

.trailer__placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    color: var(--ivory);
    background:
        linear-gradient(0deg, rgba(5, 6, 28, 0.92), transparent 60%),
        url("../images/key-art-preview-800.webp") center 35% / cover;
    box-shadow: var(--shadow);
}

.trailer__placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(7, 8, 34, 0.28);
}

.trailer__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background: rgba(240, 211, 141, 0.28);
    filter: blur(38px);
    transform: translate(-50%, -50%);
}

.trailer__label {
    position: absolute;
    right: 1.5rem;
    bottom: 1.4rem;
    left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.trailer__label small {
    color: var(--gold-bright);
    font-family: "Manrope", "Segoe UI", sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.trailer iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line-strong);
    background: #000;
    box-shadow: var(--shadow);
}

.factions {
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: auto 2400px;
    background:
        radial-gradient(circle at 50% 10%, rgba(27, 80, 77, 0.2), transparent 34rem),
        linear-gradient(180deg, #080d10, #050809);
}

.factions::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent 0 49.9%, rgba(219, 199, 144, 0.045) 50%, transparent 50.1%),
        linear-gradient(rgba(219, 199, 144, 0.025) 1px, transparent 1px);
    background-size: 100% 100%, 100% 70px;
    -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
    mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
}

.factions .section__inner {
    position: relative;
}

.army-selector {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

.army-panel {
    --army-panel: #162d1c;
    --army-panel-deep: #0b1710;
    --army-accent: #57b697;
    --army-glow: rgba(43, 170, 126, 0.22);
    position: relative;
    min-width: 0;
    padding: 2px;
    background: linear-gradient(145deg, #f0e5b7, #625b3d 35%, #d5c897 70%, #4c4834);
    clip-path: polygon(
        11px 0,
        calc(100% - 11px) 0,
        100% 11px,
        100% calc(100% - 11px),
        calc(100% - 11px) 100%,
        11px 100%,
        0 calc(100% - 11px),
        0 11px
    );
    filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.3));
    transition:
        filter 320ms ease,
        transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.army-panel--high {
    --army-panel: #18353d;
    --army-panel-deep: #0a1d22;
    --army-accent: #68c9da;
    --army-glow: rgba(66, 177, 210, 0.24);
}

.army-panel--radiants {
    --army-panel: #3a391b;
    --army-panel-deep: #1c1d0d;
    --army-accent: #d8b85f;
    --army-glow: rgba(217, 180, 75, 0.22);
}

.army-panel:hover,
.army-panel:focus-within {
    z-index: 2;
    filter: drop-shadow(0 32px 44px rgba(0, 0, 0, 0.42));
    transform: translateY(-7px);
}

.army-panel__button {
    position: relative;
    width: 100%;
    min-height: 575px;
    padding: clamp(2rem, 3.6vw, 3rem) clamp(1.1rem, 2.2vw, 2rem) 1.6rem;
    overflow: hidden;
    border: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: inherit;
    background:
        radial-gradient(circle at 50% 35%, var(--army-glow), transparent 40%),
        linear-gradient(180deg, var(--army-panel), var(--army-panel-deep));
    clip-path: polygon(
        10px 0,
        calc(100% - 10px) 0,
        100% 10px,
        100% calc(100% - 10px),
        calc(100% - 10px) 100%,
        10px 100%,
        0 calc(100% - 10px),
        0 10px
    );
    cursor: pointer;
    isolation: isolate;
}

.army-panel__button::before {
    content: "";
    position: absolute;
    inset: 7px;
    z-index: -1;
    border: 1px solid rgba(231, 220, 180, 0.22);
    pointer-events: none;
    clip-path: polygon(
        7px 0,
        calc(100% - 7px) 0,
        100% 7px,
        100% calc(100% - 7px),
        calc(100% - 7px) 100%,
        7px 100%,
        0 calc(100% - 7px),
        0 7px
    );
}

.army-panel__button::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.16;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.12) 44%, transparent 48%),
        repeating-linear-gradient(0deg, transparent 0 46px, rgba(255, 255, 255, 0.035) 47px);
}

.army-panel__crest {
    position: relative;
    z-index: 2;
    width: clamp(132px, 13vw, 174px);
    aspect-ratio: 1;
    margin-bottom: 1.7rem;
    padding: 0.55rem;
    border: 2px solid rgba(230, 224, 198, 0.74);
    display: grid;
    place-items: center;
    background: rgba(1, 8, 8, 0.48);
    clip-path: polygon(
        9px 0,
        calc(100% - 9px) 0,
        100% 9px,
        100% calc(100% - 9px),
        calc(100% - 9px) 100%,
        9px 100%,
        0 calc(100% - 9px),
        0 9px
    );
    box-shadow:
        inset 0 0 0 5px rgba(1, 8, 8, 0.55),
        0 14px 30px rgba(0, 0, 0, 0.25);
    transition:
        border-color 320ms ease,
        box-shadow 320ms ease,
        opacity 320ms ease,
        transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.army-panel__crest::after {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(230, 224, 198, 0.22);
    pointer-events: none;
}

.army-panel__crest img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.35));
    transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.army-panel__name {
    position: relative;
    z-index: 2;
    margin-bottom: 1.2rem;
    color: var(--ivory);
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(1.45rem, 2.7vw, 2.1rem);
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
    transition:
        color 320ms ease,
        transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.army-panel__description {
    position: relative;
    z-index: 2;
    min-height: 4.2em;
    margin-bottom: 1.45rem;
    color: rgba(245, 237, 217, 0.84);
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(0.88rem, 1.5vw, 1.05rem);
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
    text-wrap: balance;
    transition:
        opacity 260ms ease,
        transform 320ms ease;
}

.army-panel__traits {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    transition:
        opacity 260ms ease,
        transform 320ms ease;
}

.army-panel__traits > span {
    min-width: 82px;
    padding: 0.45rem 0.65rem;
    border: 1px solid rgba(230, 224, 198, 0.45);
    color: rgba(245, 237, 217, 0.7);
    background: rgba(3, 11, 12, 0.42);
    font-family: "Cinzel", Georgia, serif;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1;
    clip-path: polygon(
        6px 0,
        calc(100% - 6px) 0,
        100% 6px,
        100% calc(100% - 6px),
        calc(100% - 6px) 100%,
        6px 100%,
        0 calc(100% - 6px),
        0 6px
    );
}

.army-panel__state {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 2rem;
    color: rgba(245, 237, 217, 0.45);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition:
        color 220ms ease,
        opacity 220ms ease;
}

.army-panel__sigil {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(230, 224, 198, 0.4);
    background: var(--army-accent);
    box-shadow:
        0 0 0 4px rgba(2, 8, 9, 0.52),
        0 0 20px var(--army-glow);
    transform: rotate(45deg) scale(0.65);
    opacity: 0.44;
    transition:
        opacity 260ms ease,
        transform 260ms ease;
}

.army-panel__unit {
    position: absolute;
    z-index: 3;
    right: -14%;
    bottom: -13%;
    width: 120%;
    height: auto;
    max-width: none;
    opacity: 0;
    pointer-events: none;
    filter:
        saturate(0.94)
        drop-shadow(0 28px 20px rgba(0, 0, 0, 0.66));
    transform: translateY(18%) scale(0.86);
    transform-origin: bottom right;
    transition:
        opacity 480ms ease,
        transform 540ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.army-panel--wild .army-panel__unit {
    right: -20%;
    bottom: -16%;
    width: 128%;
}

.army-panel--high .army-panel__unit {
    right: -2%;
    bottom: -5%;
    width: auto;
    height: 86%;
    transform-origin: bottom center;
}

.army-panel--radiants .army-panel__unit {
    right: -8%;
    bottom: -10%;
    width: 115%;
}

.army-panel__button:hover .army-panel__crest,
.army-panel__button:focus-visible .army-panel__crest,
.army-panel__button.is-active .army-panel__crest {
    border-color: var(--army-accent);
    box-shadow:
        inset 0 0 0 5px rgba(1, 8, 8, 0.55),
        0 0 32px var(--army-glow);
    opacity: 0.2;
    transform: translateY(-14px) scale(0.88);
}

.army-panel__button:hover .army-panel__crest img,
.army-panel__button:focus-visible .army-panel__crest img,
.army-panel__button.is-active .army-panel__crest img {
    transform: scale(1.08);
}

.army-panel__button:hover .army-panel__name,
.army-panel__button:focus-visible .army-panel__name,
.army-panel__button.is-active .army-panel__name {
    z-index: 4;
    color: var(--army-accent);
    transform: translateY(-22px);
}

.army-panel__button:hover .army-panel__description,
.army-panel__button:focus-visible .army-panel__description,
.army-panel__button.is-active .army-panel__description,
.army-panel__button:hover .army-panel__traits,
.army-panel__button:focus-visible .army-panel__traits,
.army-panel__button.is-active .army-panel__traits {
    opacity: 0;
    transform: translateY(-12px);
}

.army-panel__button:hover .army-panel__state,
.army-panel__button:focus-visible .army-panel__state,
.army-panel__button.is-active .army-panel__state {
    opacity: 0;
}

.army-panel__button:hover .army-panel__sigil,
.army-panel__button:focus-visible .army-panel__sigil,
.army-panel__button.is-active .army-panel__sigil {
    opacity: 1;
    transform: rotate(45deg) scale(0.9);
}

.army-panel__button:hover .army-panel__unit,
.army-panel__button:focus-visible .army-panel__unit,
.army-panel__button.is-active .army-panel__unit {
    opacity: 1;
    transform: translateY(-2%) scale(1.03);
}

.army-panel__button:focus-visible {
    outline: 0;
    box-shadow: inset 0 0 0 3px var(--army-accent);
}

.final-cta {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: auto 620px;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.final-cta__art {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(5, 6, 28, 0.92), rgba(5, 6, 28, 0.45) 55%, rgba(5, 6, 28, 0.2)),
        linear-gradient(0deg, var(--ink), transparent 38%, rgba(5, 6, 28, 0.35)),
        url("../images/key-art-desktop-1920.webp") center 40% / cover;
}

.final-cta__content {
    width: min(760px, calc(100% - 3rem));
    padding: 6rem 0;
    text-align: center;
}

.final-cta__content h2 {
    margin-bottom: 2rem;
}

.final-cta__content .hero__actions {
    justify-content: center;
}

.site-footer {
    padding: 5rem 0 1.5rem;
    border-top: 1px solid var(--line);
    content-visibility: auto;
    contain-intrinsic-size: auto 540px;
    background: #030416;
}

.site-footer__inner,
.site-footer__base {
    width: min(var(--max-width), calc(100% - 3rem));
    margin: 0 auto;
}

.site-footer__inner {
    padding-bottom: 4rem;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
}

.site-footer__brand img {
    width: 210px;
    height: auto;
    margin-bottom: 1rem;
}

.site-footer__brand p {
    max-width: 34ch;
    margin-bottom: 0;
    color: rgba(245, 237, 217, 0.55);
}

.site-footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.site-footer__links div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
}

.site-footer__links h2 {
    margin-bottom: 0.55rem;
    color: var(--gold-bright);
    font-family: "Manrope", "Segoe UI", sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-footer__links a,
.site-footer__base {
    color: rgba(245, 237, 217, 0.58);
    font-size: 0.88rem;
    text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__base a:hover {
    color: var(--ivory);
}

.site-footer__base {
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.retired-route {
    width: min(620px, calc(100% - 2rem));
    min-height: 100svh;
    margin: 0 auto;
    padding: 4rem 0;
    display: grid;
    place-content: center;
    justify-items: center;
    text-align: center;
}

.retired-route img {
    width: min(380px, 82vw);
    margin-bottom: 2rem;
}

.retired-route h1 {
    margin-bottom: 0.75rem;
    font-size: clamp(2rem, 8vw, 3.5rem);
}

.retired-route p {
    margin-bottom: 2rem;
    color: var(--ivory-muted);
}

.js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 700ms ease,
        transform 700ms cubic-bezier(0.2, 0.65, 0.2, 1);
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.mechanics-grid [data-reveal]:nth-child(2),
.army-selector [data-reveal]:nth-child(2) {
    transition-delay: 100ms;
}

.mechanics-grid [data-reveal]:nth-child(3),
.army-selector [data-reveal]:nth-child(3) {
    transition-delay: 200ms;
}

@keyframes hero-arrive {
    from {
        opacity: 0.65;
        transform: scale(1.035);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes content-arrive {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll-nudge {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}

@media (max-width: 980px) {
    :root {
        --header-height: 70px;
    }

    .site-header__inner {
        width: min(var(--max-width), calc(100% - 2rem));
    }

    .site-brand img {
        width: 88px;
    }

    .menu-toggle {
        position: relative;
        z-index: 2;
        padding: 0.55rem 0;
        border: 0;
        display: flex;
        align-items: center;
        gap: 0.7rem;
        color: var(--ivory);
        background: transparent;
        cursor: pointer;
    }

    .menu-toggle__label {
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.13em;
        text-transform: uppercase;
    }

    .menu-toggle__icon,
    .menu-toggle__icon::before,
    .menu-toggle__icon::after {
        width: 22px;
        height: 1px;
        display: block;
        background: currentColor;
        transition:
            transform 180ms ease,
            opacity 180ms ease;
    }

    .menu-toggle__icon {
        position: relative;
    }

    .menu-toggle__icon::before,
    .menu-toggle__icon::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .menu-toggle__icon::before {
        top: -7px;
    }

    .menu-toggle__icon::after {
        top: 7px;
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle__icon {
        background: transparent;
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle__icon::before {
        top: 0;
        transform: rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle__icon::after {
        top: 0;
        transform: rotate(-45deg);
    }

    .site-nav {
        position: fixed;
        inset: var(--header-height) 0 auto;
        max-height: calc(100svh - var(--header-height));
        padding: 2rem 1.5rem 2.5rem;
        border-bottom: 1px solid var(--line);
        overflow-y: auto;
        display: grid;
        gap: 0;
        background: rgba(5, 6, 28, 0.97);
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition:
            opacity 180ms ease,
            transform 180ms ease;
    }

    .site-nav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .site-nav a {
        padding: 1rem 0;
        border-bottom: 1px solid var(--line);
        font-size: 0.84rem;
    }

    .site-nav > a:not(.site-nav__cta)::after {
        display: none;
    }

    .site-nav .site-nav__cta {
        margin-top: 1.2rem;
        padding: 1rem;
        border: 1px solid var(--gold);
        text-align: center;
    }

    .gameplay__grid {
        grid-template-columns: minmax(0, 0.85fr) minmax(400px, 1.15fr);
        gap: 3.5rem;
    }

    .army-panel__button {
        min-height: 530px;
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .army-panel__crest {
        width: 130px;
    }

    .army-panel__traits > span {
        min-width: 0;
    }
}

@media (max-width: 760px) {
    .section__inner,
    .hero__content,
    .site-footer__inner,
    .site-footer__base {
        width: min(100% - 2rem, var(--max-width));
    }

    .mechanics-grid,
    .gameplay__grid,
    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .mechanics-grid {
        border-top: 0;
    }

    .mechanic,
    .mechanic:first-child {
        min-height: auto;
        padding: 2rem 0;
        border-top: 1px solid var(--line);
        border-right: 0;
        border-left: 0;
    }

    .mechanic__number {
        margin-bottom: 1.3rem;
    }

    .gameplay__grid {
        gap: 4rem;
    }

    .trailer {
        width: min(100%, 680px);
    }

    .army-selector {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .army-panel__button {
        min-height: 500px;
        padding: 2.5rem 1.5rem 1.5rem;
    }

    .army-panel__crest {
        width: 156px;
    }

    .army-panel__unit {
        right: -7%;
        width: min(520px, 112%);
    }

    .site-footer__inner {
        gap: 3rem;
    }
}

@media (max-width: 700px) {
    .hero {
        min-height: max(760px, 100svh);
    }

    .hero__art img {
        object-position: center top;
    }

    .hero__wash {
        background:
            linear-gradient(0deg, var(--ink) 0%, rgba(5, 6, 28, 0.9) 24%, rgba(5, 6, 28, 0.12) 68%, rgba(5, 6, 28, 0.12)),
            linear-gradient(180deg, rgba(5, 6, 28, 0.45), transparent 16%);
    }

    .hero__content {
        padding-bottom: 6rem;
    }

    .hero__logo {
        width: min(92%, 430px);
        margin-left: -3%;
    }

    .hero__tagline {
        max-width: 30rem;
    }

    .hero__scroll {
        display: none;
    }

    .final-cta__art {
        background:
            linear-gradient(0deg, var(--ink), rgba(5, 6, 28, 0.64) 48%, rgba(5, 6, 28, 0.42)),
            url("../images/key-art-mobile-768.webp") center 25% / cover;
    }

    .trailer__placeholder {
        background:
            linear-gradient(0deg, rgba(5, 6, 28, 0.92), transparent 60%),
            url("../images/key-art-preview-800.webp") center 35% / cover;
    }
}

@media (max-width: 520px) {
    h2 {
        font-size: clamp(1.85rem, 10vw, 3rem);
    }

    .hero__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }

    .site-footer__links {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 1.5rem;
    }

    .site-footer__base {
        flex-direction: column;
    }

    .final-cta {
        min-height: 560px;
    }
}

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

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

    .js [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
