:root {
    --palace-black: #05070a;
    --palace-panel: #0b0f14;
    --palace-gold: #d4af37;
    --palace-gold-light: #f3d77a;
    --palace-red: #9f111b;
    --palace-blue: #113a73;
    --palace-text: #f6ead0;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--palace-black);
    color: var(--palace-text);
    font-family: Georgia, "Times New Roman", serif;
}
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;

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

    text-align: center;
    padding: 60px;

    background: var(--palace-black);
}
.hero::before{
    content:"";
    position:absolute;
    inset:0;

    background:url("/70-assets/palace/grand-palace.png")
        center center / cover no-repeat;

    opacity:0;

    animation:palaceReveal 8s ease forwards;

    z-index:0;
}

.hero-overlay{
    position:relative;
    z-index:2;

    animation:textFade 5s ease forwards;
}

@keyframes palaceReveal{
    0%{
        opacity:0;
        filter:brightness(.08) blur(10px);
    }

    40%{
        opacity:.45;
        filter:brightness(.45) blur(5px);
    }

    70%{
        opacity:.85;
        filter:brightness(.9) blur(1px);
    }

    100%{
        opacity:1;
        filter:brightness(1.15) blur(0);
    }
}

@keyframes textFade{
    0%{
        opacity:1;
    }

    70%{
        opacity:1;
    }

    100%{
        opacity:0;
    }
}

.hero-overlay{
    max-width:1000px;
}
.palace-portals {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.palace-portal {
    position: absolute;
    top: 32%;
    width: 16%;
    height: 34%;

    pointer-events: auto;
    cursor: pointer;

    border-radius: 24px;

    outline: 2px solid transparent;
    box-shadow: 0 0 0 rgba(0, 174, 255, 0);

    transition:
        filter 0.35s ease,
        box-shadow 0.35s ease,
        outline-color 0.35s ease;
}

.palace-portal:hover,
.palace-portal:focus-visible {
    outline-color: rgba(95, 210, 255, 0.75);
    box-shadow:
        0 0 25px rgba(0, 174, 255, 0.55),
        inset 0 0 35px rgba(0, 174, 255, 0.18);

    backdrop-filter: brightness(1.18);
    filter: brightness(1.15) saturate(1.15);
}

.portal-eocc {
    left: 15%;
}

.portal-gcs {
    left: 34%;
}

.portal-oaeh {
    left: 54%;
}

.portal-hod {
    left: 73%;
    /* ===== Palace Portal Labels ===== */

.palace-portal::after{

    position:absolute;
    left:50%;
    bottom:-42px;

    transform:translateX(-50%);

    padding:8px 18px;

    border-radius:999px;

    background:rgba(5,7,10,.82);

    border:1px solid rgba(212,175,55,.35);

    color:#f6ead0;

    font-size:13px;

    letter-spacing:1px;

    white-space:nowrap;

    opacity:0;

    transition:.35s;

    pointer-events:none;

}

/* ===== Palace Portal Information ===== */

.portal-eocc::after{
content:"EQUESTRIAN ORDER OF THE CREOLE CROWN \A Honor • Leadership • Tradition";
}

.portal-gcs::after{
content:"GLOBAL CREOLE SOCIETY \A Culture • Identity • Civilization";
}

.portal-oaeh::after{
content:"ORGANISATION AMI DES ENFANTS D' HAYTI \A Education • Children • Community";
}

.portal-hod::after{
content:"HOUSE OF DORVILUS \A Development • Enterprise • Legacy";
}

.palace-portal::after{

    white-space:pre-line;

    text-align:center;

    line-height:1.5;

    font-size:14px;

    padding:16px 22px;
background: rgba(5,7,10,.92);
border: 1px solid rgba(212,175,55,.45);
border-radius: 14px;

color: #f6ead0;

box-shadow:
    0 0 20px rgba(0,174,255,.20);

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

    min-width:270px;

}

.palace-portal:hover::after{

    opacity:1;

    bottom:-28px;

}
}
/* Portal pulse animation */

@keyframes portalPulse {

    0%,100%{
        box-shadow:
            0 0 20px rgba(0,174,255,.20);
    }

    50%{
        box-shadow:
            0 0 45px rgba(0,174,255,.75),
            0 0 80px rgba(0,174,255,.35);
    }

}

.palace-portal{

    animation: portalPulse 3s ease-in-out infinite;

}
.eyebrow{
    color:var(--palace-gold-light);
    letter-spacing:4px;
    font-size:18px;
    text-transform:uppercase;
}

.hero h1{
    font-size:72px;
    margin:20px 0;
    color:var(--palace-gold);
}

.hero h2{
    font-size:32px;
    font-weight:normal;
    color:white;
}

.intro{
    max-width:760px;
    margin:40px auto;

    font-size:22px;
    line-height:1.8;
}

.enter-button{

    display:inline-block;

    padding:18px 42px;

    margin-top:25px;

    text-decoration:none;

    color:#000;

    background:linear-gradient(
        to bottom,
        #f6df8a,
        #d4af37
    );

    border-radius:8px;

    font-weight:bold;

    transition:.3s;
}

.enter-button:hover{

    transform:translateY(-3px);

    box-shadow:0 0 25px rgba(212,175,55,.55);

}
/* ==========================================================
   THETA CITIZENSHIP GATEWAY
========================================================== */

.theta-citizenship-button {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 50;

    display: flex;
    align-items: center;
    gap: 0.9rem;

    min-width: 250px;
    padding: 0.9rem 1.25rem;

    border: 1px solid rgba(242, 213, 122, 0.72);
    border-radius: 999px;

    background: linear-gradient(
        135deg,
        rgba(5, 5, 5, 0.94),
        rgba(212, 175, 55, 0.18)
    );

    color: #f2d57a;
    text-decoration: none;

    box-shadow:
        0 0 28px rgba(212, 175, 55, 0.22),
        inset 0 0 18px rgba(242, 213, 122, 0.06);

    backdrop-filter: blur(10px);

    transition:
        transform 240ms ease,
        border-color 240ms ease,
        box-shadow 240ms ease,
        background 240ms ease;
}

.theta-citizenship-button:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(255, 239, 168, 0.96);

    background: linear-gradient(
        135deg,
        rgba(8, 8, 8, 0.98),
        rgba(212, 175, 55, 0.3)
    );

    box-shadow:
        0 0 38px rgba(242, 213, 122, 0.42),
        0 0 90px rgba(212, 175, 55, 0.16);
}

.theta-citizenship-button:focus-visible {
    outline: 3px solid rgba(242, 213, 122, 0.9);
    outline-offset: 5px;
}

.theta-button-symbol {
    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;
    flex: 0 0 48px;

    border: 1px solid rgba(242, 213, 122, 0.72);
    border-radius: 50%;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    line-height: 1;

    box-shadow: 0 0 20px rgba(242, 213, 122, 0.28);
}

.theta-button-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.theta-button-copy strong {
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.theta-button-copy small {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
}

@media (max-width: 700px) {
    .theta-citizenship-button {
        right: 1rem;
        bottom: 1rem;
        left: 1rem;

        justify-content: center;
        min-width: 0;
    }
}
/* Public orientation stays visible before the member entrance. Existing House portals remain in place. */
.palace-entry-actions{position:absolute;right:2rem;bottom:2rem;z-index:50;display:grid;gap:10px;width:310px;max-width:calc(100vw - 32px)}
.palace-entry-actions .theta-citizenship-button{position:static;min-width:0;width:100%}
.palace-about-button{display:flex;align-items:center;gap:14px;min-height:70px;padding:13px 20px;border:1px solid #8ed8f388;border-radius:16px;background:linear-gradient(120deg,#0a1725f0,#1e3231e8);color:#f1dfab;box-shadow:0 0 28px #8ed8f312;backdrop-filter:blur(10px);text-decoration:none;transition:transform .25s,border-color .25s}
.palace-about-button>span:first-child{font:29px Georgia,serif;color:#e4c77e}.palace-about-button strong{display:block;font:13px Georgia,serif;letter-spacing:.03em}.palace-about-button small{display:block;font:9px/1.6 system-ui;color:#a9dfcb;margin-top:5px}.palace-about-button:hover{transform:translateY(-3px);border-color:#b9e7f8}.palace-about-button:focus-visible{outline:3px solid #8ed8f3;outline-offset:4px}
.palace-operator{position:absolute;top:18px;left:20px;right:20px;text-align:center;z-index:4;font:9px/1.7 system-ui;letter-spacing:.06em;color:#e4d5b4;text-shadow:0 2px 8px #000}.palace-operator a{color:#a9dfcb;text-decoration:underline;text-underline-offset:3px}
@media(max-width:700px){.palace-entry-actions{right:1rem;left:1rem;bottom:1rem;width:auto}.palace-entry-actions .theta-citizenship-button{left:auto;right:auto;bottom:auto;justify-content:flex-start;padding:.75rem 1.1rem}.palace-about-button{min-height:62px;padding:10px 18px}.palace-operator{font-size:8px;top:12px}.palace-entry-actions .theta-button-copy strong{font-size:.75rem}}
@media(prefers-reduced-motion:reduce){.hero::before{animation:none;opacity:1;filter:none}.hero-overlay{animation:none}.portal-hod,.portal-eocc,.portal-gcs,.portal-oaeh{animation:none}.palace-entry-actions a{transition:none}}
