:root {
    --pres-sidebar: 224px;
    --pres-topbar: 58px;
    --pres-bg: #0a0907;
    --pres-bg-soft: #13100c;
    --pres-panel: rgba(19, 16, 11, 0.92);
    --pres-line: rgba(193, 148, 74, 0.24);
    --pres-line-strong: rgba(218, 172, 92, 0.56);
    --pres-gold: #d7b36c;
    --pres-gold-bright: #f0d9a1;
    --pres-ivory: #eee5d2;
    --pres-muted: #a89f8d;
    --pres-red: #a64f37;
    --pres-red-deep: #693126;
    --pres-green: #50b983;
    --pres-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

html {
    scroll-padding-top: calc(var(--pres-topbar) + 18px);
}

.presentation-page {
    margin: 0;
    background: var(--pres-bg);
    color: var(--pres-ivory);
    overflow-x: hidden;
}

.presentation-page::before {
    display: none;
}

.presentation-page main {
    min-height: 100vh;
    padding: 0;
    overflow: visible;
}

.presentation-page a {
    color: inherit;
}

.presentation-page button,
.presentation-page input {
    font: inherit;
}

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

.pres-progress {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--pres-sidebar);
    z-index: 1500;
    height: 2px;
    background: rgba(255, 255, 255, 0.025);
}

.pres-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--pres-red), var(--pres-gold));
    box-shadow: 0 0 12px rgba(215, 179, 108, 0.36);
}

.pres-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1400;
    display: flex;
    width: var(--pres-sidebar);
    border-right: 1px solid rgba(184, 137, 69, 0.22);
    flex-direction: column;
    background:
        radial-gradient(circle at 50% 4%, rgba(130, 81, 28, 0.2), transparent 18rem),
        linear-gradient(180deg, rgba(23, 19, 13, 0.99), rgba(12, 10, 8, 0.995));
    box-shadow: 14px 0 42px rgba(0, 0, 0, 0.34);
}

.pres-sidebar-brand {
    display: grid;
    min-height: 128px;
    border-bottom: 1px solid rgba(184, 137, 69, 0.13);
    place-items: center;
}

.pres-sidebar-brand a {
    display: block;
    width: 132px;
}

.pres-sidebar-brand img {
    display: block;
    width: 100%;
    height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.52));
}

.pres-sidebar-tools {
    padding: 17px 11px 9px;
}

.pres-server-badge {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    padding: 11px 12px;
    border: 1px solid rgba(178, 133, 65, 0.16);
    border-radius: 7px;
    background: rgba(54, 43, 29, 0.55);
    align-items: center;
    column-gap: 7px;
}

.pres-server-badge > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pres-green);
    box-shadow: 0 0 8px rgba(80, 185, 131, 0.75);
}

.pres-server-badge strong {
    color: #c9bea7;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

.pres-server-badge small {
    grid-column: 2;
    color: #817866;
    font-size: 0.62rem;
    line-height: 1.3;
}

.pres-search {
    position: relative;
    display: block;
    margin-top: 8px;
}

.pres-search i {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 10px;
    height: 10px;
    border: 1px solid #7f7462;
    border-radius: 50%;
    transform: translateY(-58%);
}

.pres-search i::after {
    position: absolute;
    right: -4px;
    bottom: -3px;
    width: 5px;
    height: 1px;
    background: #7f7462;
    content: "";
    transform: rotate(45deg);
}

.pres-search input {
    width: 100%;
    height: 38px;
    padding: 0 12px 0 31px;
    border: 1px solid rgba(178, 133, 65, 0.16);
    border-radius: 7px;
    outline: 0;
    background: rgba(54, 43, 29, 0.5);
    color: #e8dcc4;
    font-size: 0.69rem;
}

.pres-search input:focus {
    border-color: rgba(215, 179, 108, 0.62);
    box-shadow: 0 0 0 2px rgba(215, 179, 108, 0.08);
}

.pres-search input::placeholder {
    color: #756c5c;
}

.pres-current {
    min-height: 42px;
    margin: 9px 0 0;
    padding: 8px 10px;
    border: 1px solid rgba(178, 133, 65, 0.13);
    border-radius: 7px;
    background: rgba(65, 49, 31, 0.48);
    color: #8a806d;
    font-size: 0.62rem;
}

.pres-current span {
    margin-right: 5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pres-current strong {
    color: #bfa875;
    font-weight: 700;
}

.pres-navigation {
    min-height: 0;
    padding: 0 9px 92px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-color: #8a6636 transparent;
    scrollbar-width: thin;
}

.pres-nav-group {
    margin: 5px 0;
}

.pres-nav-group > button {
    display: grid;
    width: 100%;
    min-height: 44px;
    padding: 7px 11px;
    border: 1px solid rgba(173, 128, 61, 0.18);
    border-radius: 7px;
    grid-template-columns: 20px minmax(0, 1fr) 12px;
    align-items: center;
    gap: 7px;
    background: rgba(56, 43, 27, 0.6);
    color: #c9c0af;
    cursor: pointer;
    text-align: left;
}

.pres-nav-group.is-open > button,
.pres-nav-group > button:hover {
    border-color: rgba(221, 175, 93, 0.42);
    background: linear-gradient(135deg, #9c513b, #723626);
    color: #fff3dc;
}

.pres-nav-glyph {
    color: #c29a58;
    font-family: Georgia, serif;
}

.pres-nav-group.is-open .pres-nav-glyph {
    color: #ffe0a3;
}

.pres-nav-group > button strong {
    overflow: hidden;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pres-nav-group > button i {
    width: 6px;
    height: 6px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg) translate(-2px, 2px);
    transition: transform 160ms ease;
}

.pres-nav-group.is-open > button i {
    transform: rotate(225deg) translate(-1px, -1px);
}

.pres-nav-children {
    display: none;
    padding: 3px 4px 3px 18px;
}

.pres-nav-group.is-open .pres-nav-children {
    display: block;
}

.pres-nav-children a {
    display: flex;
    min-height: 31px;
    padding: 5px;
    align-items: center;
    gap: 8px;
    color: #958b78;
    font-size: 0.64rem;
    line-height: 1.35;
    text-decoration: none;
}

.pres-nav-children a > span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    flex: 0 0 auto;
    background: #73552c;
}

.pres-nav-children a:hover,
.pres-nav-children a.is-active {
    color: #ead7ae;
}

.pres-nav-children a.is-active > span {
    background: var(--pres-red);
    box-shadow: 0 0 0 3px rgba(166, 79, 55, 0.16);
}

.pres-sidebar-actions {
    position: absolute;
    right: 9px;
    bottom: 10px;
    left: 9px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.pres-side-button {
    display: flex;
    min-height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.68rem;
    font-weight: 800;
    text-decoration: none;
}

.pres-side-button.is-discord {
    background: #5556a8;
}

.pres-side-button.is-account {
    background: #a6533b;
}

.pres-sidebar-collapse {
    position: absolute;
    top: 50%;
    right: -13px;
    display: grid;
    width: 25px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(191, 147, 76, 0.22);
    border-radius: 0 7px 7px 0;
    place-items: center;
    background: #17130e;
    color: #c8ac76;
    cursor: pointer;
    transform: translateY(-50%);
}

.pres-shell {
    min-width: 0;
    margin-left: var(--pres-sidebar);
    transition: margin-left 220ms ease;
}

.pres-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--pres-sidebar);
    z-index: 1200;
    display: flex;
    height: var(--pres-topbar);
    padding: 0 22px;
    border-bottom: 1px solid rgba(184, 137, 69, 0.17);
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    background: rgba(15, 13, 10, 0.96);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(14px);
    transition: left 220ms ease;
}

.pres-topbar-home {
    display: inline-flex;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(190, 146, 73, 0.22);
    border-radius: 7px;
    align-items: center;
    gap: 7px;
    color: #d3c8b2;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
}

.pres-topbar-home:hover {
    border-color: rgba(215, 179, 108, 0.54);
    color: #f5e5bf;
}

.language-switcher-pres {
    position: relative;
}

.language-switcher-pres summary {
    display: flex;
    min-width: 94px;
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid rgba(190, 146, 73, 0.22);
    border-radius: 7px;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #d3c8b2;
    cursor: pointer;
}

.language-switcher-pres .language-menu {
    top: calc(100% + 8px);
    right: 0;
    bottom: auto;
    left: auto;
    width: 210px;
    max-height: min(440px, calc(100vh - 84px));
    overflow-y: auto;
    border-color: rgba(190, 146, 73, 0.34);
    background: #17130e;
}

.pres-drawer-toggle {
    display: none;
}

.pres-content {
    padding-top: var(--pres-topbar);
}

.pres-hero {
    position: relative;
    display: grid;
    min-height: calc(100svh - var(--pres-topbar));
    padding: clamp(92px, 9vw, 150px) clamp(20px, 5vw, 76px) 74px;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
}

.pres-hero-backdrop {
    position: absolute;
    z-index: -3;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 7, 6, 0.36), rgba(8, 7, 5, 0.68) 38%, rgba(8, 7, 5, 0.68) 62%, rgba(7, 7, 6, 0.35)),
        linear-gradient(180deg, rgba(8, 8, 7, 0.12), rgba(8, 7, 5, 0.28) 62%, #0a0907 100%),
        url("../media/home-hero-imperivm.webp") center / cover;
    filter: saturate(0.88) contrast(1.05);
    transform: scale(1.025);
}

.pres-hero::before {
    position: absolute;
    z-index: -2;
    inset: 0;
    background:
        radial-gradient(circle at 50% 38%, transparent 0 16rem, rgba(6, 6, 5, 0.22) 34rem, rgba(6, 6, 5, 0.68) 100%),
        linear-gradient(90deg, rgba(7, 6, 5, 0.08), transparent 30% 70%, rgba(7, 6, 5, 0.12));
    content: "";
}

.pres-hero::after {
    position: absolute;
    z-index: -1;
    right: 2%;
    bottom: 22px;
    left: 2%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(191, 147, 76, 0.34), transparent);
    content: "";
}

.pres-hero-copy {
    position: relative;
    z-index: 3;
    width: min(650px, 54vw);
    padding: 34px clamp(22px, 3vw, 48px);
    border: 1px solid rgba(193, 148, 74, 0.19);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(16, 14, 11, 0.68), rgba(13, 11, 9, 0.82));
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
    text-align: center;
    backdrop-filter: blur(5px);
}

.pres-hero-logo {
    display: block;
    width: clamp(160px, 18vw, 250px);
    height: clamp(72px, 9vw, 112px);
    margin: -18px auto 6px;
    object-fit: contain;
    transform: scale(1.6);
    transform-origin: center bottom;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.58));
}

.pres-eyebrow {
    margin: 0 0 10px;
    color: #cbb178;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.pres-hero h1 {
    max-width: 640px;
    margin: 0 auto;
    color: #f3ead7;
    font: 700 clamp(2.1rem, 4.2vw, 4.6rem)/0.98 Georgia, "Times New Roman", serif;
    letter-spacing: -0.045em;
    text-wrap: balance;
    text-shadow: 0 7px 30px #000;
}

.pres-hero-lead {
    max-width: 620px;
    margin: 18px auto 0;
    color: #c9c0ae;
    font-size: clamp(0.86rem, 1.2vw, 1rem);
    line-height: 1.65;
}

.pres-hero-facts {
    display: flex;
    margin-top: 22px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.pres-hero-facts span {
    display: inline-flex;
    min-height: 32px;
    padding: 5px 12px;
    border: 1px solid rgba(193, 148, 74, 0.2);
    border-radius: 999px;
    align-items: center;
    gap: 7px;
    background: rgba(9, 8, 6, 0.68);
    color: #b4aa98;
    font-size: 0.64rem;
    font-weight: 700;
}

.pres-hero-facts b {
    color: #e4c580;
    font-family: Georgia, serif;
    font-size: 0.78rem;
}

.pres-actions {
    display: flex;
    margin-top: 24px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.pres-button {
    display: inline-flex;
    min-width: 180px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid rgba(223, 180, 99, 0.32);
    border-radius: 7px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.pres-button.is-primary {
    background: linear-gradient(180deg, #b15e43, #853e2d);
    color: #fff6e8;
}

.pres-button.is-secondary {
    background: linear-gradient(180deg, rgba(62, 49, 33, 0.96), rgba(30, 25, 18, 0.98));
    color: #e8d8b6;
}

.pres-button:hover {
    filter: brightness(1.12);
}

.pres-hero-languages {
    display: flex;
    margin-top: 13px;
    justify-content: center;
    gap: 5px;
}

.pres-hero-languages a {
    display: grid;
    width: 24px;
    height: 19px;
    border: 1px solid transparent;
    border-radius: 3px;
    place-items: center;
    opacity: 0.58;
}

.pres-hero-languages a:hover,
.pres-hero-languages a[aria-current="true"] {
    border-color: rgba(224, 185, 109, 0.58);
    opacity: 1;
}

.pres-hero-languages .language-flag {
    width: 17px;
    height: 12px;
}

.pres-hero-character {
    position: absolute;
    z-index: 1;
    bottom: -4%;
    width: clamp(370px, 36vw, 680px);
    max-height: 94%;
    object-fit: contain;
    object-position: bottom;
    filter: saturate(0.86) contrast(1.06) drop-shadow(0 22px 28px rgba(0, 0, 0, 0.72));
    pointer-events: none;
}

.pres-hero-character-left {
    left: max(-12%, -190px);
}

.pres-hero-character-right {
    right: max(-12%, -190px);
    transform: scaleX(-1);
}

.pres-panel {
    min-height: 640px;
    padding: clamp(72px, 8vw, 118px) clamp(28px, 6vw, 92px);
    border-top: 1px solid var(--pres-line);
    background: #100e0b;
}

.pres-section-heading {
    width: min(850px, 100%);
    margin: 0 auto 48px;
    text-align: center;
}

.pres-section-heading h2,
.pres-final h2 {
    margin: 0;
    color: var(--pres-gold-bright);
    font: 700 clamp(2rem, 3.8vw, 4rem)/1.06 Georgia, "Times New Roman", serif;
}

.pres-section-heading > p:last-child,
.pres-final-copy > p {
    color: var(--pres-muted);
}

.pres-divider {
    display: flex;
    margin: 15px auto;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--pres-red);
    font-family: Georgia, serif;
}

.pres-divider::before,
.pres-divider::after {
    width: 58px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(166, 79, 55, 0.55));
    content: "";
}

.pres-divider::after {
    background: linear-gradient(90deg, rgba(166, 79, 55, 0.55), transparent);
}

.pres-class-grid,
.pres-principles {
    display: grid;
    width: min(1120px, 100%);
    margin: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.pres-class-grid article,
.pres-principles article {
    text-align: center;
}

.pres-class-portrait {
    width: 150px;
    height: 150px;
    margin: auto;
    border: 1px solid rgba(215, 179, 108, 0.38);
    border-radius: 50%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
}

.pres-class-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.pres-class-grid h3 {
    color: var(--pres-gold-bright);
    font-family: Georgia, serif;
}

.pres-class-grid p,
.pres-principles p {
    color: var(--pres-muted);
    font-size: 0.82rem;
}

.pres-principles {
    margin-top: 44px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pres-principles article {
    padding: 22px;
    border: 1px solid var(--pres-line);
    border-radius: 10px;
    background: rgba(10, 9, 7, 0.58);
}

.pres-principles article > span {
    color: var(--pres-red);
    font-family: Georgia, serif;
}

.pres-chapter-layout {
    display: grid;
    width: min(1100px, 100%);
    margin: auto;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 28px;
}

.pres-chapter.is-reversed .pres-chapter-visual {
    order: 2;
}

.pres-chapter-visual,
.pres-chapter-details {
    min-height: 360px;
    margin: 0;
    border: 1px solid var(--pres-line);
    border-radius: 12px;
    background: rgba(8, 8, 7, 0.68);
}

.pres-chapter-details {
    padding: 34px;
}

.pres-chapter-note {
    color: var(--pres-gold);
    font-family: Georgia, serif;
    font-size: 1.25rem;
}

.pres-points ul {
    padding: 0;
    list-style: none;
}

.pres-points li {
    margin: 9px 0;
    padding: 10px 12px;
    border: 1px solid rgba(193, 148, 74, 0.14);
    border-radius: 7px;
    color: #bcb29f;
}

.pres-inline-link {
    color: var(--pres-gold);
    text-decoration: none;
}

.pres-system-map,
.pres-final-copy {
    width: min(760px, 100%);
    margin: auto;
}

.pres-footer {
    display: flex;
    min-height: 90px;
    padding: 24px 5vw;
    border-top: 1px solid var(--pres-line);
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #090806;
    color: #817867;
    font-size: 0.72rem;
}

.pres-footer a {
    color: #c8ad75;
    text-decoration: none;
}

.pres-discord-card {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1000;
    display: grid;
    grid-template-columns: 30px 1fr auto;
    min-width: 228px;
    padding: 10px 12px;
    border: 1px solid rgba(126, 130, 228, 0.34);
    border-radius: 9px;
    align-items: center;
    gap: 8px;
    background: rgba(42, 43, 57, 0.96);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.36);
    color: #cfd2f0;
    font-size: 0.68rem;
}

.pres-discord-card > span {
    color: #777cf0;
    font-size: 1.2rem;
}

.pres-discord-card a {
    padding: 6px 9px;
    border-radius: 5px;
    background: #5d63df;
    color: white;
    font-weight: 800;
    text-decoration: none;
}

.pres-drawer-backdrop {
    display: none;
}

@media (max-width: 1180px) {
    :root {
        --pres-sidebar: 210px;
    }

    .pres-hero-copy {
        width: min(630px, 62vw);
    }

    .pres-hero-character {
        width: clamp(320px, 38vw, 540px);
    }
}

@media (max-width: 980px) {
    :root {
        --pres-sidebar: 0px;
    }

    .pres-sidebar {
        width: 236px;
        transform: translateX(-110%);
        transition: transform 220ms ease;
    }

    .presentation-page.is-pres-drawer-open {
        overflow: hidden;
    }

    .presentation-page.is-pres-drawer-open .pres-sidebar {
        transform: translateX(0);
    }

    .pres-sidebar-collapse {
        display: none;
    }

    .pres-drawer-backdrop {
        position: fixed;
        z-index: 1300;
        inset: 0;
        display: block;
        background: rgba(3, 3, 3, 0.68);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease;
    }

    .presentation-page.is-pres-drawer-open .pres-drawer-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .pres-drawer-toggle {
        display: grid;
        width: 38px;
        height: 36px;
        padding: 8px;
        border: 1px solid rgba(190, 146, 73, 0.22);
        border-radius: 7px;
        place-content: center;
        gap: 4px;
        background: transparent;
    }

    .pres-drawer-toggle span {
        width: 18px;
        height: 1px;
        background: var(--pres-gold);
    }

    .pres-topbar {
        justify-content: space-between;
    }

    .pres-topbar-home {
        margin-left: auto;
    }

    .pres-hero-copy {
        width: min(640px, 76vw);
    }

    .pres-hero-character {
        opacity: 0.64;
    }
}

@media (max-width: 680px) {
    .pres-topbar {
        padding: 0 12px;
    }

    .pres-topbar-home {
        min-width: 38px;
        padding: 0 10px;
        font-size: 0;
    }

    .pres-topbar-home span {
        font-size: 0.9rem;
    }

    .language-switcher-pres summary {
        min-width: 58px;
    }

    .pres-hero {
        min-height: 730px;
        padding: 76px 14px 44px;
    }

    .pres-hero-copy {
        width: 100%;
        padding: 30px 18px;
    }

    .pres-hero-character {
        width: 330px;
        max-height: 70%;
        opacity: 0.34;
    }

    .pres-hero-character-left {
        left: -150px;
    }

    .pres-hero-character-right {
        right: -150px;
    }

    .pres-hero h1 {
        font-size: clamp(2rem, 10.5vw, 3.2rem);
    }

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

    .pres-button {
        width: 100%;
    }

    .pres-panel {
        padding: 64px 18px;
    }

    .pres-class-grid,
    .pres-principles,
    .pres-chapter-layout {
        grid-template-columns: 1fr;
    }

    .pres-chapter.is-reversed .pres-chapter-visual {
        order: initial;
    }

    .pres-discord-card {
        display: none;
    }

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

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

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


/* Final cinematic presentation layer */
.presentation-page {
    --pres-sidebar-open: var(--pres-sidebar);
}

.presentation-page.is-pres-sidebar-collapsed {
    --pres-sidebar: 74px;
}

.pres-progress span {
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}

.pres-sidebar,
.pres-shell,
.pres-topbar,
.pres-progress {
    transition: width 220ms ease, left 220ms ease, margin-left 220ms ease;
}

.pres-sidebar {
    background:
        radial-gradient(circle at 50% 8%, rgba(128, 79, 26, 0.14), transparent 31%),
        linear-gradient(180deg, #171109 0%, #120e09 56%, #0e0b07 100%);
}

.pres-sidebar::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0 96%, rgba(212, 161, 79, 0.08)),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 4px);
    content: "";
    pointer-events: none;
}

.pres-sidebar > * {
    position: relative;
    z-index: 1;
}

.pres-sidebar-brand::after {
    display: block;
    width: 84px;
    height: 1px;
    margin: 4px auto 0;
    background: linear-gradient(90deg, transparent, rgba(220, 172, 91, 0.48), transparent);
    content: "";
}

.pres-server-badge,
.pres-search,
.pres-current,
.pres-nav-group > button,
.pres-side-button {
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.pres-nav-group.is-filtered-out,
.pres-nav-children a[hidden] {
    display: none !important;
}

.pres-nav-group > button:focus-visible,
.pres-nav-children a:focus-visible,
.pres-side-button:focus-visible,
.pres-sidebar-collapse:focus-visible,
.pres-topbar a:focus-visible,
.pres-topbar button:focus-visible,
.pres-button:focus-visible,
.pres-hero-languages a:focus-visible,
.pres-discord-card a:focus-visible,
.pres-search input:focus-visible {
    outline: 2px solid var(--pres-gold-bright);
    outline-offset: 3px;
}

.pres-sidebar-collapse:hover {
    border-color: var(--pres-line-strong);
    color: var(--pres-gold-bright);
}

.presentation-page.is-pres-sidebar-collapsed .pres-sidebar-brand {
    height: 104px;
    padding: 18px 6px;
}

.presentation-page.is-pres-sidebar-collapsed .pres-sidebar-brand img {
    width: 58px;
    height: 58px;
}

.presentation-page.is-pres-sidebar-collapsed .pres-sidebar-brand::after,
.presentation-page.is-pres-sidebar-collapsed .pres-sidebar-tools,
.presentation-page.is-pres-sidebar-collapsed .pres-navigation,
.presentation-page.is-pres-sidebar-collapsed .pres-sidebar-actions {
    display: none;
}

.presentation-page.is-pres-sidebar-collapsed .pres-sidebar-collapse {
    right: -14px;
    transform: rotate(180deg);
}

.pres-content {
    background:
        radial-gradient(circle at 50% 0, rgba(117, 72, 27, 0.08), transparent 35rem),
        #0a0907;
}

.pres-topbar {
    background:
        linear-gradient(180deg, rgba(17, 14, 10, 0.985), rgba(13, 11, 8, 0.965));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(14px);
}

.pres-hero-backdrop {
    background:
        linear-gradient(90deg, rgba(7, 7, 6, 0.28), rgba(8, 7, 5, 0.66) 34%, rgba(8, 7, 5, 0.66) 66%, rgba(7, 7, 6, 0.26)),
        linear-gradient(180deg, rgba(8, 8, 7, 0.04), rgba(8, 7, 5, 0.2) 62%, #0a0907 100%),
        url("../media/presentation/hero-bg.webp") center / cover;
}

.pres-hero-copy::before,
.pres-hero-copy::after {
    position: absolute;
    top: 18px;
    width: 42px;
    height: 42px;
    border-top: 1px solid rgba(220, 172, 91, 0.38);
    content: "";
}

.pres-hero-copy::before {
    left: 18px;
    border-left: 1px solid rgba(220, 172, 91, 0.38);
}

.pres-hero-copy::after {
    right: 18px;
    border-right: 1px solid rgba(220, 172, 91, 0.38);
}

.pres-hero-character {
    transition: filter 300ms ease, transform 300ms ease;
}

.pres-hero:hover .pres-hero-character-left {
    transform: translateX(6px);
}

.pres-hero:hover .pres-hero-character-right {
    transform: scaleX(-1) translateX(6px);
}

.pres-panel {
    position: relative;
    margin: 16px;
    border: 1px solid rgba(193, 148, 74, 0.17);
    border-radius: 18px;
    overflow: hidden;
    isolation: isolate;
    box-shadow: var(--pres-shadow);
}

.pres-overview {
    background:
        linear-gradient(180deg, rgba(12, 11, 8, 0.82), rgba(13, 11, 8, 0.94)),
        url("../media/presentation/scene-realm.webp") center / cover;
}

.pres-overview::before,
.pres-systems::before,
.pres-final::before,
.pres-chapter::before {
    position: absolute;
    z-index: -2;
    inset: 0;
    content: "";
    pointer-events: none;
}

.pres-overview::after,
.pres-systems::after,
.pres-final::after,
.pres-chapter::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(circle at center, transparent 0 25%, rgba(7, 6, 5, 0.54) 100%),
        linear-gradient(180deg, rgba(9, 8, 6, 0.03), rgba(9, 8, 6, 0.46));
    content: "";
    pointer-events: none;
}

.pres-section-heading {
    position: relative;
    z-index: 2;
}

.pres-section-heading > p:last-child {
    max-width: 780px;
    margin-right: auto;
    margin-left: auto;
    font-size: 0.95rem;
    line-height: 1.78;
}

.pres-class-grid {
    position: relative;
    z-index: 2;
}

.pres-class-grid article {
    padding: 18px 12px 20px;
    border: 1px solid transparent;
    border-radius: 14px;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.pres-class-grid article:hover {
    border-color: rgba(215, 179, 108, 0.24);
    background: rgba(9, 8, 6, 0.44);
    transform: translateY(-4px);
}

.pres-class-portrait {
    position: relative;
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.45),
        inset 0 0 0 5px rgba(9, 8, 6, 0.72);
}

.pres-class-portrait::after {
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(240, 217, 161, 0.16);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.pres-class-grid h3 {
    margin: 18px 0 5px;
    font-size: 1.22rem;
}

.pres-class-grid p {
    margin: 0;
    letter-spacing: 0.06em;
    line-height: 1.55;
}

.pres-principles {
    position: relative;
    z-index: 2;
}

.pres-principles article {
    position: relative;
    min-height: 166px;
    overflow: hidden;
}

.pres-principles article::after {
    position: absolute;
    right: -8px;
    bottom: -28px;
    color: rgba(214, 175, 99, 0.055);
    content: attr(data-index);
    font: 700 7rem/1 Georgia, serif;
}

.pres-principles h3 {
    margin: 9px 0;
    color: var(--pres-gold-bright);
    font: 700 1.15rem/1.25 Georgia, serif;
}

.pres-chapter {
    --theme: #b36643;
    --scene: url("../media/presentation/scene-realm.webp");
    background: #0d0b08;
}

.pres-chapter.theme-story {
    --theme: #9c7553;
    --scene: url("../media/presentation/scene-story.webp");
}

.pres-chapter.theme-combat {
    --theme: #a14c38;
    --scene: url("../media/presentation/scene-combat.webp");
}

.pres-chapter.theme-growth {
    --theme: #b79455;
    --scene: url("../media/presentation/scene-growth.webp");
}

.pres-chapter.theme-economy {
    --theme: #b38444;
    --scene: url("../media/presentation/scene-economy.webp");
}

.pres-chapter.theme-world {
    --theme: #657f5b;
    --scene: url("../media/presentation/scene-world.webp");
}

.pres-chapter.theme-technology {
    --theme: #7c6a8e;
    --scene: url("../media/presentation/scene-technology.webp");
}

.pres-chapter::before {
    background:
        linear-gradient(180deg, rgba(12, 10, 7, 0.76), rgba(13, 11, 8, 0.91)),
        var(--scene) center / cover;
    filter: saturate(0.7);
}

.pres-chapter .pres-divider {
    color: var(--theme);
}

.pres-chapter-layout {
    position: relative;
    z-index: 2;
    align-items: stretch;
    grid-template-columns: minmax(0, 1.42fr) minmax(260px, 0.58fr);
}

.pres-chapter-visual {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(5, 5, 4, 0.08), rgba(5, 5, 4, 0.02) 60%, rgba(5, 5, 4, 0.38)),
        var(--scene) center / cover;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.37);
}

.pres-chapter-visual::before {
    position: absolute;
    inset: 0;
    border: 1px solid color-mix(in srgb, var(--theme) 48%, transparent);
    border-radius: inherit;
    box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.72);
    content: "";
}

.pres-chapter-visual::after {
    position: absolute;
    right: 26px;
    bottom: 22px;
    width: 48px;
    height: 48px;
    border-right: 1px solid var(--theme);
    border-bottom: 1px solid var(--theme);
    content: "";
    opacity: 0.7;
}

.pres-chapter-visual span {
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(224, 191, 125, 0.1);
    border-radius: 7px;
}

.pres-chapter-details {
    display: flex;
    padding: clamp(28px, 3vw, 42px);
    flex-direction: column;
    background:
        linear-gradient(160deg, rgba(27, 22, 15, 0.94), rgba(10, 9, 7, 0.94));
    box-shadow: inset 3px 0 var(--theme);
}

.pres-chapter-note {
    margin: 0 0 18px;
    color: var(--pres-gold-bright);
    font-size: clamp(1.1rem, 1.8vw, 1.45rem);
    line-height: 1.35;
}

.pres-points {
    flex: 1;
}

.pres-points ul {
    margin: 0;
}

.pres-points li {
    position: relative;
    margin: 8px 0;
    padding: 11px 12px 11px 34px;
    background: rgba(8, 7, 6, 0.48);
    line-height: 1.45;
}

.pres-points li::before {
    position: absolute;
    top: 50%;
    left: 13px;
    width: 7px;
    height: 7px;
    border: 1px solid var(--theme);
    content: "";
    transform: translateY(-50%) rotate(45deg);
}

.pres-inline-link {
    display: inline-flex;
    margin-top: 18px;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pres-inline-link:hover span {
    transform: translateX(4px);
}

.pres-inline-link span {
    transition: transform 160ms ease;
}

.pres-systems {
    min-height: 800px;
    background: #0c0b08;
}

.pres-systems::before {
    background:
        linear-gradient(180deg, rgba(10, 9, 7, 0.8), rgba(10, 9, 7, 0.95)),
        url("../media/presentation/scene-world.webp") center / cover;
}

.pres-system-map {
    position: relative;
    z-index: 2;
    width: min(620px, 82vw);
    aspect-ratio: 1;
    border: 1px solid rgba(215, 179, 108, 0.18);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(180, 120, 50, 0.13), transparent 20%),
        repeating-radial-gradient(circle, transparent 0 77px, rgba(215, 179, 108, 0.095) 78px 79px),
        rgba(8, 7, 6, 0.66);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.65), 0 30px 70px rgba(0, 0, 0, 0.4);
}

.pres-system-map::before,
.pres-system-map::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 78%;
    height: 78%;
    border: 1px dashed rgba(211, 169, 91, 0.18);
    border-radius: 50%;
    content: "";
    transform: translate(-50%, -50%) rotate(18deg);
}

.pres-system-map::after {
    width: 52%;
    height: 52%;
    transform: translate(-50%, -50%) rotate(-22deg);
}

.pres-system-core,
.pres-system-map > span {
    position: absolute;
    z-index: 2;
    display: grid;
    min-width: 142px;
    min-height: 58px;
    padding: 12px;
    border: 1px solid rgba(215, 179, 108, 0.27);
    border-radius: 10px;
    place-items: center;
    background: rgba(17, 14, 10, 0.94);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.44);
    color: #cbbd9f;
    font-size: 0.75rem;
    text-align: center;
}

.pres-system-core {
    top: 50%;
    left: 50%;
    z-index: 4;
    width: 176px;
    min-height: 176px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 42% 35%, rgba(177, 101, 50, 0.33), transparent 50%),
        #17120d;
    color: var(--pres-gold-bright);
    font: 700 1.15rem/1.35 Georgia, serif;
    transform: translate(-50%, -50%);
}

.pres-system-map > span::before {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border: 1px solid var(--pres-red);
    content: "";
    transform: rotate(45deg);
}

.pres-system-map .is-story {
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
}

.pres-system-map .is-combat {
    top: 29%;
    right: -4%;
}

.pres-system-map .is-build {
    right: 7%;
    bottom: 9%;
}

.pres-system-map .is-market {
    bottom: 9%;
    left: 7%;
}

.pres-system-map .is-community {
    top: 29%;
    left: -4%;
}

.pres-final {
    display: grid;
    min-height: 650px;
    place-items: center;
    background: #0c0a08;
}

.pres-final::before {
    background:
        linear-gradient(90deg, rgba(8, 7, 5, 0.93), rgba(8, 7, 5, 0.64) 48%, rgba(8, 7, 5, 0.84)),
        url("../media/presentation/scene-technology.webp") center / cover;
}

.pres-final-copy {
    position: relative;
    z-index: 2;
    padding: clamp(34px, 5vw, 66px);
    border: 1px solid rgba(215, 179, 108, 0.22);
    border-radius: 16px;
    background: rgba(13, 11, 8, 0.78);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.46);
    text-align: center;
    backdrop-filter: blur(6px);
}

.pres-final-copy > p {
    line-height: 1.75;
}

.pres-admin-link {
    display: inline-block;
    margin-top: 22px;
    color: var(--pres-gold);
}

.pres-motion-ready .pres-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 620ms ease, transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pres-motion-ready .pres-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.pres-motion-ready .pres-chapter-visual.pres-reveal {
    transform: translateX(-30px);
}

.pres-motion-ready .pres-chapter.is-reversed .pres-chapter-visual.pres-reveal {
    transform: translateX(30px);
}

.pres-motion-ready .pres-chapter-visual.pres-reveal.is-visible {
    transform: translateX(0);
}

.pres-button,
.pres-side-button,
.pres-discord-card a {
    transition: transform 160ms ease, filter 160ms ease, border-color 160ms ease;
}

.pres-button:hover,
.pres-side-button:hover,
.pres-discord-card a:hover {
    transform: translateY(-2px);
}

@media (max-width: 1180px) {
    .pres-panel {
        padding-right: clamp(24px, 4vw, 58px);
        padding-left: clamp(24px, 4vw, 58px);
    }

    .pres-chapter-layout {
        grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.85fr);
    }

    .pres-class-portrait {
        width: 124px;
        height: 124px;
    }
}

@media (max-width: 980px) {
    .presentation-page.is-pres-sidebar-collapsed {
        --pres-sidebar: 0px;
    }

    .pres-panel {
        margin: 12px;
    }

    .pres-chapter-layout {
        grid-template-columns: minmax(0, 1.1fr) minmax(245px, 0.9fr);
    }

    .pres-discord-card {
        right: 12px;
        bottom: 12px;
    }
}

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

    .pres-hero-copy {
        width: min(620px, 92vw);
    }

    .pres-panel {
        min-height: auto;
        margin: 8px;
        padding: 66px 24px;
        border-radius: 14px;
    }

    .pres-section-heading {
        margin-bottom: 34px;
    }

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

    .pres-principles {
        grid-template-columns: 1fr;
    }

    .pres-chapter-layout {
        grid-template-columns: 1fr;
    }

    .pres-chapter.is-reversed .pres-chapter-visual {
        order: initial;
    }

    .pres-chapter-visual {
        min-height: 390px;
    }

    .pres-chapter-details {
        min-height: auto;
        box-shadow: inset 0 3px var(--theme);
    }

    .pres-systems {
        min-height: 740px;
    }
}

@media (max-width: 540px) {
    .pres-panel {
        padding: 56px 15px;
    }

    .pres-hero-copy::before,
    .pres-hero-copy::after {
        width: 26px;
        height: 26px;
    }

    .pres-hero-facts {
        display: grid;
        grid-template-columns: 1fr;
    }

    .pres-hero-facts span {
        justify-content: center;
    }

    .pres-class-grid {
        gap: 8px;
    }

    .pres-class-grid article {
        padding: 14px 6px;
    }

    .pres-class-portrait {
        width: min(120px, 31vw);
        height: min(120px, 31vw);
    }

    .pres-class-grid p {
        font-size: 0.72rem;
    }

    .pres-chapter-visual {
        min-height: 280px;
    }

    .pres-chapter-details {
        padding: 25px 18px;
    }

    .pres-system-map {
        width: min(430px, 92vw);
        margin-top: 70px;
        margin-bottom: 60px;
    }

    .pres-system-core {
        width: 132px;
        min-width: 132px;
        min-height: 132px;
        font-size: 0.92rem;
    }

    .pres-system-map > span {
        min-width: 112px;
        min-height: 48px;
        padding: 9px;
        font-size: 0.64rem;
    }

    .pres-system-map .is-story {
        top: -12%;
    }

    .pres-system-map .is-combat {
        top: 22%;
        right: -2%;
    }

    .pres-system-map .is-build {
        right: 1%;
        bottom: -5%;
    }

    .pres-system-map .is-market {
        bottom: -5%;
        left: 1%;
    }

    .pres-system-map .is-community {
        top: 22%;
        left: -2%;
    }
}

@media (max-width: 390px) {
    .pres-hero {
        min-height: 740px;
    }

    .pres-hero-copy {
        padding-right: 14px;
        padding-left: 14px;
    }

    .pres-hero-logo {
        width: 150px;
    }

    .pres-hero h1 {
        font-size: 2rem;
    }

    .pres-class-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pres-section-heading h2,
    .pres-final h2 {
        font-size: 1.82rem;
    }
}

.presentation-page *,
.presentation-page *::before,
.presentation-page *::after {
    box-sizing: border-box;
}

.pres-hero-copy {
    max-width: 100%;
}

html {
    scroll-behavior: auto;
}


/* Presentation refinement: wider rail, true fullscreen toggle and open hero */
:root {
    --pres-sidebar: 244px;
}

.pres-navigation {
    flex: 1 1 auto;
    padding-bottom: 10px;
}

.pres-sidebar-actions {
    position: static;
    right: auto;
    bottom: auto;
    left: auto;
    margin: 0 10px 12px;
    padding-top: 9px;
    flex: 0 0 auto;
    border-top: 1px solid rgba(215, 179, 108, 0.13);
}

.presentation-page.is-pres-sidebar-collapsed {
    --pres-sidebar: 0px;
}

.presentation-page.is-pres-sidebar-collapsed .pres-sidebar {
    border-right-color: transparent;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
}

.presentation-page.is-pres-sidebar-collapsed .pres-sidebar::before {
    display: none;
}

.pres-sidebar-collapse {
    position: fixed;
    z-index: 1500;
    top: 10px;
    right: auto;
    left: calc(var(--pres-sidebar) - 50px);
    width: 40px;
    height: 38px;
    border: 1px solid rgba(215, 179, 108, 0.34);
    border-radius: 8px;
    background: rgba(20, 16, 11, 0.96);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
    transform: none;
    transition: left 220ms ease, border-color 160ms ease, background 160ms ease;
}

.presentation-page.is-pres-sidebar-collapsed .pres-sidebar-collapse {
    right: auto;
    left: 12px;
    transform: none;
    pointer-events: auto;
}

.pres-sidebar-collapse:hover {
    background: #211a11;
}

.pres-collapse-icon {
    position: relative;
    display: block;
    width: 19px;
    height: 15px;
    border: 1px solid currentColor;
    border-radius: 2px;
}

.pres-collapse-icon::before {
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 5px;
    border-left: 1px solid currentColor;
    content: "";
    transition: left 180ms ease;
}

.pres-collapse-icon i::before,
.pres-collapse-icon i::after {
    position: absolute;
    top: 5px;
    left: 1px;
    width: 3px;
    height: 3px;
    border-top: 1px solid currentColor;
    border-left: 1px solid currentColor;
    content: "";
    transform: rotate(-45deg);
}

.pres-collapse-icon i::after {
    top: 8px;
}

.presentation-page.is-pres-sidebar-collapsed .pres-collapse-icon::before {
    left: 12px;
}

.presentation-page.is-pres-sidebar-collapsed .pres-collapse-icon i::before,
.presentation-page.is-pres-sidebar-collapsed .pres-collapse-icon i::after {
    right: 1px;
    left: auto;
    transform: rotate(135deg);
}

.pres-hero-copy {
    width: min(920px, 78vw);
    max-width: 100%;
    padding: 24px clamp(24px, 4vw, 64px);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.pres-hero-copy::before,
.pres-hero-copy::after {
    display: none;
}

.pres-hero h1 {
    max-width: 840px;
    text-shadow: 0 8px 34px #000, 0 2px 4px rgba(0, 0, 0, 0.92);
}

.pres-hero-lead {
    max-width: 720px;
    color: #d4cbb9;
    text-shadow: 0 2px 12px #000;
}

.pres-hero-facts span {
    backdrop-filter: blur(4px);
}

.pres-hero .pres-hero-character {
    will-change: translate;
}

.pres-hero .pres-hero-character-left {
    animation: pres-character-left-idle 6.4s ease-in-out infinite;
}

.pres-hero .pres-hero-character-right {
    animation: pres-character-right-idle 7.1s ease-in-out -2.2s infinite;
}

@keyframes pres-character-left-idle {
    0%,
    100% {
        translate: 0 0;
    }

    38% {
        translate: 9px -13px;
    }

    72% {
        translate: -4px -7px;
    }
}

@keyframes pres-character-right-idle {
    0%,
    100% {
        translate: 0 0;
    }

    42% {
        translate: -10px -15px;
    }

    76% {
        translate: 5px -8px;
    }
}

@media (max-width: 1180px) {
    :root {
        --pres-sidebar: 232px;
    }

    .pres-hero-copy {
        width: min(790px, 84vw);
    }
}

@media (max-width: 980px) {
    :root,
    .presentation-page.is-pres-sidebar-collapsed {
        --pres-sidebar: 0px;
    }

    .pres-sidebar {
        width: min(268px, calc(100vw - 44px));
    }

    .pres-sidebar-collapse {
        display: none;
    }

    .pres-sidebar-actions {
        margin-bottom: 10px;
    }

    .pres-hero-copy {
        width: min(720px, 90vw);
    }
}

@media (max-width: 680px) {
    .pres-hero-copy {
        width: 100%;
        padding: 28px 12px;
    }
}


/* Layer-rigged character idles: motion stays inside the artwork */
.pres-hero .pres-hero-character {
    height: min(94%, 860px);
    max-height: none;
    animation: none;
    translate: 0 0;
    overflow: visible;
    will-change: auto;
}

.pres-character-layer {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
    user-select: none;
    pointer-events: none;
}

.pres-character-layer.is-lower {
    z-index: 2;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0 57%, rgba(0, 0, 0, 0.22) 61%, #000 68% 100%);
    mask-image: linear-gradient(to bottom, transparent 0 57%, rgba(0, 0, 0, 0.22) 61%, #000 68% 100%);
}

.pres-character-layer.is-upper {
    z-index: 3;
    transform-origin: 50% 65%;
    -webkit-mask-image: linear-gradient(to bottom, #000 0 59%, rgba(0, 0, 0, 0.92) 63%, transparent 70%);
    mask-image: linear-gradient(to bottom, #000 0 59%, rgba(0, 0, 0, 0.92) 63%, transparent 70%);
}

.pres-hero-character-left .is-upper {
    animation: pres-warrior-rig-idle 5.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.pres-hero-character-right .is-upper {
    animation: pres-sura-rig-idle 5.8s cubic-bezier(0.45, 0, 0.55, 1) -1.7s infinite;
}

.pres-character-aura {
    position: absolute;
    z-index: 1;
    top: 24%;
    left: 50%;
    width: 48%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(185, 93, 48, 0.18), rgba(146, 78, 36, 0.06) 42%, transparent 72%);
    filter: blur(10px);
    transform: translateX(-50%);
    animation: pres-character-aura-pulse 3.8s ease-in-out infinite;
    pointer-events: none;
}

.pres-hero-character-right .pres-character-aura {
    background: radial-gradient(circle, rgba(167, 66, 52, 0.2), rgba(125, 57, 43, 0.06) 44%, transparent 72%);
    animation-delay: -1.4s;
}

.pres-hero:hover .pres-hero-character-left {
    transform: none;
}

.pres-hero:hover .pres-hero-character-right {
    transform: scaleX(-1);
}

@keyframes pres-warrior-rig-idle {
    0%,
    100% {
        transform: rotate(-0.18deg) scaleY(1);
    }

    24% {
        transform: rotate(0.38deg) scaleY(1.008);
    }

    51% {
        transform: rotate(-0.32deg) scaleY(0.996);
    }

    76% {
        transform: rotate(0.5deg) scaleY(1.005);
    }
}

@keyframes pres-sura-rig-idle {
    0%,
    100% {
        transform: rotate(0.16deg) scaleY(1);
    }

    28% {
        transform: rotate(-0.44deg) scaleY(1.009);
    }

    54% {
        transform: rotate(0.34deg) scaleY(0.995);
    }

    79% {
        transform: rotate(-0.52deg) scaleY(1.006);
    }
}

@keyframes pres-character-aura-pulse {
    0%,
    100% {
        opacity: 0.42;
        scale: 0.92;
    }

    48% {
        opacity: 0.78;
        scale: 1.08;
    }
}

@media (max-width: 980px) {
    .pres-hero .pres-hero-character {
        height: 88%;
    }
}

@media (max-width: 680px) {
    .pres-hero .pres-hero-character {
        height: 72%;
    }
}

.presentation-page.is-pres-sidebar-collapsed .pres-sidebar {
    border-right-width: 0;
}


.pres-character-layer.is-upper {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0 18%, rgba(0, 0, 0, 0.38) 25%, #000 34% 59%, rgba(0, 0, 0, 0.88) 63%, transparent 70%);
    mask-image: linear-gradient(to bottom, transparent 0 18%, rgba(0, 0, 0, 0.38) 25%, #000 34% 59%, rgba(0, 0, 0, 0.88) 63%, transparent 70%);
}

.pres-character-layer.is-detail {
    z-index: 4;
    transform-origin: 50% 46%;
    -webkit-mask-image: linear-gradient(to bottom, #000 0 29%, rgba(0, 0, 0, 0.92) 35%, rgba(0, 0, 0, 0.24) 44%, transparent 51%);
    mask-image: linear-gradient(to bottom, #000 0 29%, rgba(0, 0, 0, 0.92) 35%, rgba(0, 0, 0, 0.24) 44%, transparent 51%);
}

.pres-hero-character-left .is-detail {
    animation: pres-warrior-detail-idle 4.7s cubic-bezier(0.45, 0, 0.55, 1) -0.8s infinite;
}

.pres-hero-character-right .is-detail {
    animation: pres-sura-detail-idle 5.1s cubic-bezier(0.45, 0, 0.55, 1) -2.4s infinite;
}

@keyframes pres-warrior-detail-idle {
    0%,
    100% {
        transform: rotate(-0.22deg) translateY(0);
    }

    31% {
        transform: rotate(0.68deg) translateY(-1px);
    }

    62% {
        transform: rotate(-0.48deg) translateY(1px);
    }

    84% {
        transform: rotate(0.34deg) translateY(-0.5px);
    }
}

@keyframes pres-sura-detail-idle {
    0%,
    100% {
        transform: rotate(0.2deg) translateY(0);
    }

    27% {
        transform: rotate(-0.72deg) translateY(-1px);
    }

    58% {
        transform: rotate(0.5deg) translateY(1px);
    }

    82% {
        transform: rotate(-0.38deg) translateY(-0.5px);
    }
}


/* Edge handle refinement */
.pres-sidebar-collapse {
    top: 50%;
    left: calc(var(--pres-sidebar) - 1px);
    display: flex;
    width: 36px;
    height: 58px;
    border-radius: 0 10px 10px 0;
    align-items: center;
    justify-content: center;
    gap: 0;
    transform: translateY(-50%);
    transition:
        top 220ms ease,
        left 220ms ease,
        width 220ms ease,
        height 220ms ease,
        border-radius 220ms ease,
        transform 220ms ease,
        border-color 160ms ease,
        background 160ms ease;
}

.pres-sidebar-collapse::before {
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: 0;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, transparent, var(--pres-gold), transparent);
    content: "";
    opacity: 0.64;
}

.pres-topbar-brand {
    display: none;
}

.presentation-page.is-pres-sidebar-collapsed .pres-sidebar-brand {
    display: none;
}

.presentation-page.is-pres-sidebar-collapsed .pres-sidebar-collapse {
    top: 10px;
    left: 12px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    gap: 0;
    transform: none;
}

.presentation-page.is-pres-sidebar-collapsed .pres-sidebar-collapse::before {
    display: none;
}

.presentation-page.is-pres-sidebar-collapsed .pres-topbar-brand {
    position: absolute;
    top: 50%;
    left: 62px;
    display: block;
    width: 132px;
    height: 48px;
    transform: translateY(-50%);
}

.presentation-page.is-pres-sidebar-collapsed .pres-topbar-brand img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.5));
}

@media (max-width: 980px) {
    .pres-sidebar-collapse {
        display: none;
    }
}
