/* ===========================================================
   CONSTITUTIONAL HALL
   THRESHOLD FOUNDATION
=========================================================== */

:root {
    --hall-black: #050607;
    --hall-stone: #101216;
    --hall-panel: rgba(14, 16, 20, 0.88);

    --hall-gold: #d4af37;
    --hall-gold-bright: #f6df8a;
    --hall-gold-muted: rgba(212, 175, 55, 0.28);

    --hall-text: #f3ead0;
    --hall-muted: #b8af98;

    --hall-green: #4ba267;
    --hall-red: #7f1d1d;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    min-height: 100vh;

    overflow-x: hidden;

    color: var(--hall-text);

    font-family:
        "Segoe UI",
        system-ui,
        sans-serif;

    background:
        radial-gradient(
            circle at 50% 10%,
            rgba(212, 175, 55, 0.10),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            #11141a 0%,
            #08090b 48%,
            #030304 100%
        );
}

button,
a {
    font: inherit;
}

button {
    border: 0;
}

img {
    display: block;
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

.hall-experience {
    position: relative;

    min-height: 100vh;
}

.hall-return {
    position: fixed;
    top: 1.2rem;
    left: 1.2rem;
    z-index: 100;

    padding: 0.7rem 1rem;

    color: var(--hall-gold-bright);

    border: 1px solid var(--hall-gold-muted);
    border-radius: 999px;

    background: rgba(4, 5, 7, 0.72);
    backdrop-filter: blur(12px);

    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.hall-return:hover {
    color: #ffffff;
    border-color: var(--hall-gold);
    transform: translateY(-2px);
}
/* ===========================================================
   THRESHOLD
=========================================================== */

.hall-threshold{
    position:relative;

    min-height:100vh;

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

    padding:7rem 2rem;

    overflow:hidden;
}

.hall-threshold__atmosphere{

    position:absolute;
    inset:0;

    pointer-events:none;

    background:
        radial-gradient(circle at 50% 15%,
        rgba(212,175,55,.18),
        transparent 30%),

        radial-gradient(circle at center,
        rgba(255,255,255,.03),
        transparent 70%);
}

.hall-threshold__content{

    position:relative;
    z-index:2;

    width:min(900px,100%);

    text-align:center;
}

.hall-threshold__eyebrow{

    margin:0;

    color:var(--hall-gold);

    letter-spacing:.6rem;

    text-transform:uppercase;

    font-size:.82rem;
}

.hall-threshold__seal{

    width:180px;

    margin:3rem auto 2rem;
}

.hall-threshold__seal img{

    width:100%;

    filter:
        drop-shadow(0 0 24px rgba(212,175,55,.28));
}

.hall-threshold__designation{

    color:var(--hall-muted);

    letter-spacing:.35rem;

    text-transform:uppercase;

    margin-bottom:1rem;
}

.hall-threshold h1{

    margin:0;

    font-size:clamp(4rem,9vw,7.5rem);

    font-weight:200;

    color:var(--hall-gold-bright);

    letter-spacing:.05em;
}

.hall-threshold__motto{

    margin:2rem auto;

    max-width:760px;

    color:var(--hall-text);

    font-size:1.2rem;

    line-height:1.8;
}

.hall-threshold__statement{

    display:grid;

    gap:.8rem;

    margin:3rem auto;

    max-width:700px;
}

.hall-threshold__statement span{

    color:var(--hall-muted);

    text-transform:uppercase;

    letter-spacing:.18rem;
}

.hall-threshold__statement strong{

    color:var(--hall-gold-bright);

    font-size:1.15rem;

    letter-spacing:.18rem;

    text-transform:uppercase;
}
/* ===========================================================
   THETA THRESHOLD
=========================================================== */

.theta-threshold{

    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:1rem;

    margin-top:2.5rem;

    padding:1.2rem 3.25rem;

    border:1px solid rgba(212,175,55,.55);
    border-radius:999px;

    background:rgba(8,10,12,.55);

    color:var(--hall-gold);

    cursor:pointer;

    letter-spacing:.18rem;
    text-transform:uppercase;

    backdrop-filter:blur(12px);

    transition:
        transform .35s ease,
        background .35s ease,
        border-color .35s ease,
        box-shadow .35s ease,
        color .35s ease;
}

.theta-threshold__symbol{

    width:2.25rem;
    height:2.25rem;

    display:grid;
    place-items:center;

    border-radius:50%;

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

    font-size:1.15rem;

    transition:inherit;
}

.theta-threshold:hover{

    transform:translateY(-4px);

    color:#111;

    background:var(--hall-gold);

    border-color:var(--hall-gold-bright);

    box-shadow:
        0 0 30px rgba(212,175,55,.45),
        0 0 70px rgba(212,175,55,.20);
}

.theta-threshold:hover
.theta-threshold__symbol{

    background:#111;

    color:var(--hall-gold);

    transform:rotate(180deg);
}
/* ===========================================================
   PORTAL OVERLAY
=========================================================== */

.hall-portal {
    position: fixed;
    inset: 0;
    z-index: 999;

    display: grid;
    place-items: center;

    pointer-events: none;

    opacity: 0;

    background:
        radial-gradient(
            circle at center,
            rgba(32, 111, 255, 0.34) 0%,
            rgba(6, 10, 22, 0.94) 38%,
            #020203 76%
        );

    transform: scale(0.18);

    transition:
        opacity 0.65s ease,
        transform 1.15s cubic-bezier(0.18, 0.82, 0.2, 1);
}

.hall-portal span {
    display: grid;
    place-items: center;

    width: 8rem;
    height: 8rem;

    color: var(--hall-gold-bright);

    border: 2px solid var(--hall-gold);
    border-radius: 50%;

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

    background:
        radial-gradient(
            circle,
            rgba(212, 175, 55, 0.22),
            rgba(3, 5, 12, 0.86) 68%
        );

    box-shadow:
        0 0 34px rgba(212, 175, 55, 0.68),
        0 0 90px rgba(37, 112, 255, 0.48),
        inset 0 0 28px rgba(255, 255, 255, 0.08);

    transform: rotate(0deg) scale(0.75);

    transition:
        transform 1.1s ease,
        box-shadow 0.8s ease;
}

body.portal-active .hall-portal {
    opacity: 1;
    transform: scale(1.85);
}

body.portal-active .hall-portal span {
    transform: rotate(180deg) scale(1.18);

    box-shadow:
        0 0 42px rgba(212, 175, 55, 0.88),
        0 0 150px rgba(37, 112, 255, 0.76),
        inset 0 0 34px rgba(255, 255, 255, 0.13);
}

body.portal-active .hall-threshold__content {
    opacity: 0;
    transform: scale(0.94);
}

.hall-threshold__content {
    transition:
        opacity 0.55s ease,
        transform 0.8s ease;
}
/* ===========================================================
   CONSTITUTIONAL ARCHIVE CHAMBER
=========================================================== */

.hall-chamber {
    position: relative;

    min-height: 100vh;
    padding: 7rem 2rem 6rem;

    background:
        linear-gradient(
            180deg,
            rgba(4, 5, 7, 0.96),
            rgba(8, 10, 13, 0.98)
        );
}

.hall-chamber::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(212, 175, 55, 0.035) 50%,
            transparent 100%
        );
}

.hall-chamber__header {
    position: relative;
    z-index: 2;

    width: min(900px, 100%);
    margin: 0 auto 3rem;

    text-align: center;
}

.hall-chamber__eyebrow {
    margin: 0 0 1rem;

    color: var(--hall-gold);

    font-size: 0.78rem;
    letter-spacing: 0.34rem;
    text-transform: uppercase;
}

.hall-chamber__header h2 {
    margin: 0;

    color: var(--hall-gold-bright);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 400;
    line-height: 1.05;
}

.hall-chamber__header > p:last-child {
    max-width: 760px;
    margin: 1.5rem auto 0;

    color: var(--hall-muted);

    font-size: 1.05rem;
    line-height: 1.8;
}

/* ===========================================================
   HALL DIRECTORY
=========================================================== */

.hall-directory {
    position: relative;
    z-index: 2;

    width: min(1100px, 100%);
    margin: 0 auto 3rem;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.hall-directory button {
    padding: 0.85rem 1.25rem;

    color: var(--hall-muted);

    border: 1px solid rgba(212, 175, 55, 0.20);
    border-radius: 999px;

    background: rgba(9, 11, 14, 0.72);

    cursor: pointer;

    letter-spacing: 0.08em;
    text-transform: uppercase;

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

.hall-directory button:hover,
.hall-directory button[aria-pressed="true"] {
    color: #111;

    border-color: var(--hall-gold);
    background: var(--hall-gold);

    transform: translateY(-2px);
}
/* ===========================================================
   CONSTITUTIONAL INSTRUMENTS
=========================================================== */

.constitutional-archive {
    position: relative;
    z-index: 2;

    width: min(1200px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.constitutional-instrument {
    position: relative;

    min-height: 430px;
    padding: 2rem;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid rgba(212, 175, 55, 0.20);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(22, 25, 31, 0.96),
            rgba(7, 8, 10, 0.98)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 24px 60px rgba(0, 0, 0, 0.34);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        opacity 0.3s ease;
}

.constitutional-instrument::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--hall-gold),
            transparent
        );
}

.constitutional-instrument:hover {
    transform: translateY(-6px);

    border-color: rgba(212, 175, 55, 0.58);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 32px 74px rgba(0, 0, 0, 0.46);
}

.constitutional-instrument__number {
    margin: 0 0 1rem;

    color: var(--hall-gold-bright);

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.constitutional-instrument h3 {
    margin: 0 0 1rem;

    color: var(--hall-text);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 500;
    line-height: 1.12;
}

.constitutional-instrument > p:not(.constitutional-instrument__number) {
    margin: 0 0 1.6rem;

    color: var(--hall-muted);

    line-height: 1.75;
}

.constitutional-instrument dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    margin: auto 0 1.5rem;

    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 10px;

    overflow: hidden;
}

.constitutional-instrument dl > div {
    min-height: 112px;
    padding: 1rem;

    background: rgba(255, 255, 255, 0.018);

    border-right: 1px solid rgba(212, 175, 55, 0.12);
}

.constitutional-instrument dl > div:last-child {
    border-right: 0;
}

.constitutional-instrument dt {
    margin-bottom: 0.45rem;

    color: var(--hall-gold-bright);

    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.constitutional-instrument dd {
    margin: 0;

    color: var(--hall-text);

    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.45;
}

.constitutional-instrument a {
    align-self: flex-start;

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

    padding: 0.8rem 1rem;

    color: var(--hall-gold);

    border: 1px solid rgba(212, 175, 55, 0.42);
    border-radius: 6px;

    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.constitutional-instrument a:hover {
    color: #111;
    background: var(--hall-gold);

    transform: translateX(4px);
}

.constitutional-instrument__notice {
    margin-top: auto;

    color: rgba(246, 223, 138, 0.50);

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.constitutional-instrument.is-hidden {
    display: none;
}
/* ===========================================================
   RESPONSIVE DESIGN
=========================================================== */

@media (max-width: 900px) {
    .hall-return {
        position: absolute;
    }

    .hall-threshold {
        padding: 6rem 1.25rem 4rem;
    }

    .hall-threshold__seal {
        width: 150px;
    }

    .hall-threshold h1 {
        font-size: clamp(3rem, 12vw, 5.4rem);
    }

    .constitutional-archive {
        grid-template-columns: 1fr;
    }

    .constitutional-instrument {
        min-height: 390px;
    }
}

@media (max-width: 620px) {
    .hall-return {
        top: 0.75rem;
        left: 0.75rem;

        padding: 0.6rem 0.8rem;

        font-size: 0.72rem;
    }

    .hall-threshold {
        padding-inline: 1rem;
    }

    .hall-threshold__eyebrow,
    .hall-threshold__designation {
        letter-spacing: 0.18rem;
    }

    .hall-threshold__seal {
        width: 128px;
        margin-top: 2.25rem;
    }

    .hall-threshold__motto {
        font-size: 1rem;
    }

    .hall-threshold__statement {
        gap: 0.6rem;
        margin-block: 2rem;
    }

    .hall-threshold__statement span,
    .hall-threshold__statement strong {
        letter-spacing: 0.1rem;
    }

    .theta-threshold {
        width: 100%;

        padding: 1rem 1.2rem;

        font-size: 0.82rem;
    }

    .hall-chamber {
        padding: 5rem 1rem 4rem;
    }

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

    .hall-directory button {
        width: 100%;
    }

    .constitutional-instrument {
        min-height: auto;
        padding: 1.35rem;

        border-radius: 12px;
    }

    .constitutional-instrument dl {
        grid-template-columns: 1fr;
    }

    .constitutional-instrument dl > div {
        min-height: auto;

        border-right: 0;
        border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    }

    .constitutional-instrument dl > div:last-child {
        border-bottom: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
/* ===========================================================
   CONSTITUTIONAL STANDARDS AND MARBLE FRAME
=========================================================== */

.hall-threshold {
    isolation: isolate;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.96) 0%,
            rgba(8, 9, 11, 0.72) 18%,
            rgba(8, 9, 11, 0.35) 50%,
            rgba(8, 9, 11, 0.72) 82%,
            rgba(0, 0, 0, 0.96) 100%
        ),
        radial-gradient(
            circle at 50% 34%,
            rgba(212, 175, 55, 0.16),
            transparent 34%
        ),
        #050607;
}

.hall-threshold::before {
    content: "";

    position: absolute;
    inset: 1.5rem;
    z-index: 0;

    pointer-events: none;

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

    background:
        linear-gradient(
            115deg,
            transparent 0 47%,
            rgba(212, 175, 55, 0.045) 48% 49%,
            transparent 50% 100%
        );

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.018),
        inset 0 0 90px rgba(0, 0, 0, 0.74);
}

.hall-threshold::after {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 0;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(212, 175, 55, 0.22),
            transparent 8% 92%,
            rgba(212, 175, 55, 0.22)
        );

    opacity: 0.36;
}

.hall-standard {
    position: absolute;
    top: 43%;
    z-index: 3;

    width: clamp(145px, 14vw, 220px);
    min-height: 370px;
    padding: 2.5rem 1.25rem;

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

    color: var(--hall-gold-bright);

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

    background:
        linear-gradient(
            180deg,
            rgba(13, 16, 22, 0.96),
            rgba(3, 4, 6, 0.98)
        );

    box-shadow:
        inset 0 0 36px rgba(212, 175, 55, 0.035),
        0 22px 60px rgba(0, 0, 0, 0.50);

    transform: translateY(-50%);
}

.hall-standard::after {
    content: "";

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

    width: 64px;
    height: 64px;

    border-right: 1px solid rgba(212, 175, 55, 0.30);
    border-bottom: 1px solid rgba(212, 175, 55, 0.30);

    background: #050608;

    transform:
        translateX(-50%)
        rotate(45deg);
}

.hall-standard--left {
    left: clamp(4rem, 8vw, 10rem);
    right: auto !important;
}

.hall-standard--right {
    left: auto !important;
    right: clamp(4rem, 8vw, 10rem) !important;
}

.hall-standard__title {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.82rem;
    line-height: 1.9;
    letter-spacing: 0.16em;
    text-align: center;
    text-transform: uppercase;
}

.hall-standard__divider {
    width: 42px;
    height: 1px;

    margin: 1.5rem 0;

    background: var(--hall-gold);

    box-shadow:
        0 0 12px rgba(212, 175, 55, 0.55);
}

.hall-standard > p:last-child {
    margin: 0;

    color: var(--hall-muted);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.82rem;
    line-height: 2;
    text-align: center;
}

.hall-threshold__content {
    width: min(880px, calc(100% - 34rem));
}

.hall-threshold__seal {
    width: clamp(300px, 34vw, 520px);

    margin: 2.25rem auto 1.5rem;
}

.hall-threshold__seal img {
    aspect-ratio: 1;
    object-fit: contain;

    filter:
        drop-shadow(0 0 20px rgba(212, 175, 55, 0.42))
        drop-shadow(0 0 60px rgba(212, 175, 55, 0.18));
}

.hall-threshold h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 6.6vw, 6.8rem);
    font-weight: 400;
    line-height: 0.98;
    text-transform: uppercase;
}

@media (max-width: 1180px) {
    .hall-standard {
        display: none;
    }

    .hall-threshold__content {
        width: min(900px, 100%);
    }
}
.hall-source{position:relative;max-width:1050px;margin:25px auto;padding:25px;border:1px solid #7f6d38;border-radius:12px;background:#111b18;color:#ddd6bc;font:16px/1.7 Georgia}.hall-source h3{color:#f6df8a}.hall-source a{display:inline-block;margin:8px 20px 8px 0;color:#f6df8a}.constitutional-instrument a{overflow-wrap:anywhere}#threshold-title{font-size:clamp(2.4rem,5.4vw,5.6rem)!important;overflow-wrap:anywhere}.constitutional-instrument.is-hidden{display:none!important}@media(max-width:1450px){.hall-standard{display:none}}@media(max-width:620px){.hall-source{padding:18px;margin:20px 12px}.hall-directory{flex-wrap:wrap}}
