:root {
    color-scheme: dark;
    --charcoal: #111214;
    --anthracite: #202328;
    --gold: #c3a36a;
    --ivory: #d9d5cb;
    --steel: #777b83;
    --abyss: #182536;
    --line: rgba(217, 213, 203, 0.16);
    --header-height: 6.5rem;
    --page-pad: clamp(1.25rem, 4vw, 4.5rem);
    --serif: Georgia, 'Times New Roman', serif;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --parallax-back-x: 0px;
    --parallax-back-y: 0px;
    --parallax-mid-x: 0px;
    --parallax-mid-y: 0px;
    --parallax-front-x: 0px;
    --parallax-front-y: 0px;
    --scroll-back: 0px;
    --scroll-mid: 0px;
    --scroll-front: 0px;
    --impact-x: 50vw;
    --impact-y: 50vh;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-width: 20rem;
    margin: 0;
    overflow-x: hidden;
    color: var(--ivory);
    background:
        radial-gradient(circle at 12% 15%, rgba(24, 37, 54, 0.44), transparent 32rem),
        var(--charcoal);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px);
    background-size: 100% 5rem;
    content: '';
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

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

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

.skip-link {
    position: fixed;
    z-index: 100;
    top: 1rem;
    left: 1rem;
    padding: 0.7rem 1rem;
    color: var(--charcoal);
    background: var(--ivory);
    transform: translateY(-200%);
}

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

.site-frame {
    position: fixed;
    z-index: 30;
    inset: 0.75rem;
    border: 1px solid rgba(195, 163, 106, 0.12);
    pointer-events: none;
}

.site-header {
    position: fixed;
    z-index: 20;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    min-height: var(--header-height);
    padding: 0 var(--page-pad);
    border-bottom: 1px solid transparent;
    transition: background-color 220ms ease, border-color 220ms ease, min-height 220ms ease;
}

.has-scrolled .site-header,
.interior-page .site-header {
    min-height: 5.25rem;
    border-color: var(--line);
    background: rgba(17, 18, 20, 0.97);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.95rem;
    margin-right: auto;
}

.brand-mark {
    position: relative;
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(195, 163, 106, 0.66);
    border-radius: 50%;
}

.brand-mark::before {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 1.25rem rgba(195, 163, 106, 0.64);
    content: '';
}

.brand-mark span {
    position: absolute;
    width: 3rem;
    height: 0.75rem;
    border-top: 1px solid rgba(195, 163, 106, 0.52);
    border-radius: 50%;
    transform: rotate(-24deg);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy strong {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.brand-copy small {
    margin-top: 0.3rem;
    color: var(--steel);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(1.1rem, 2.3vw, 2.5rem);
}

.main-nav a {
    position: relative;
    padding: 0.5rem 0;
    color: rgba(217, 213, 203, 0.7);
    font-size: 0.79rem;
    font-weight: 560;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    transition: color 180ms ease;
}

.main-nav a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: var(--gold);
    content: '';
    transform: scaleX(0);
    transition: transform 180ms ease;
}

.main-nav a:hover,
.main-nav a[aria-current='page'] {
    color: var(--ivory);
}

.main-nav a:hover::after,
.main-nav a[aria-current='page']::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    color: var(--ivory);
    border: 0;
    background: transparent;
}

.hero {
    position: relative;
    display: flex;
    min-height: 100svh;
    align-items: center;
    overflow: hidden;
    padding: calc(var(--header-height) + 3rem) var(--page-pad) 6rem;
    isolation: isolate;
}

.hero::after {
    position: absolute;
    z-index: -1;
    inset: auto 0 0;
    height: 36%;
    background: linear-gradient(transparent, var(--charcoal));
    content: '';
}

.starfield,
.stars,
.horizon,
.planet {
    position: absolute;
    z-index: -2;
    inset: 0;
}

.starfield {
    background:
        radial-gradient(ellipse at 70% 42%, rgba(67, 91, 122, 0.25), transparent 27%),
        radial-gradient(ellipse at 56% 38%, rgba(195, 163, 106, 0.08), transparent 26%),
        linear-gradient(125deg, #101217 20%, #141a23 65%, #0e1013);
}

.stars {
    opacity: 0.48;
    background-repeat: repeat;
}

.stars--one {
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.2px),
        radial-gradient(circle, rgba(195, 163, 106, 0.7) 0 1px, transparent 1.3px);
    background-position: 12px 18px, 47px 61px;
    background-size: 83px 97px, 137px 149px;
}

.stars--two {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.65) 0 1px, transparent 1.6px);
    background-position: 28px 33px;
    background-size: 211px 193px;
}

.planet {
    top: auto;
    right: -10vw;
    bottom: -46vw;
    left: auto;
    width: min(78vw, 72rem);
    height: min(78vw, 72rem);
    border: 1px solid rgba(195, 163, 106, 0.28);
    border-radius: 50%;
    background:
        radial-gradient(circle at 37% 28%, rgba(114, 135, 157, 0.35), transparent 8%),
        radial-gradient(circle at 40% 36%, rgba(72, 91, 114, 0.58), transparent 28%),
        linear-gradient(145deg, #263446 0%, #161e29 35%, #0a0c10 72%);
    box-shadow:
        -2rem -1rem 7rem rgba(66, 96, 133, 0.15),
        -0.3rem -0.3rem 0.8rem rgba(195, 163, 106, 0.12);
}

.planet::before {
    position: absolute;
    inset: 7% 16%;
    border-top: 1px solid rgba(217, 213, 203, 0.08);
    border-radius: 50%;
    content: '';
    transform: rotate(-16deg);
}

.horizon {
    top: 26%;
    right: -18%;
    bottom: auto;
    left: auto;
    width: 68%;
    height: 38%;
    border: 1px solid rgba(195, 163, 106, 0.13);
    border-radius: 50%;
    transform: rotate(-15deg);
}

.hero-copy {
    width: min(66rem, 78%);
}

.eyebrow {
    margin: 0 0 1.7rem;
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero h1,
.page-intro h1,
.contact-intro h1,
.auth-intro h1,
.admin-heading h1 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 0.88;
}

.hero h1 {
    max-width: 10ch;
    font-size: clamp(5rem, 13vw, 12rem);
    text-transform: uppercase;
}

.hero h1 span {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1px rgba(217, 213, 203, 0.7);
}

.hero-manifesto {
    max-width: 40rem;
    margin: 2.5rem 0 0;
    color: rgba(217, 213, 203, 0.7);
    font-family: var(--serif);
    font-size: clamp(1.15rem, 2vw, 1.6rem);
    line-height: 1.55;
}

.hero-orbit {
    position: absolute;
    top: 27%;
    right: 8%;
    width: 8rem;
    height: 8rem;
    border: 1px solid rgba(195, 163, 106, 0.22);
    border-radius: 50%;
}

.hero-orbit span {
    position: absolute;
    top: 50%;
    right: -0.25rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 1rem var(--gold);
}

.hero-orbit i {
    position: absolute;
    top: 50%;
    right: 50%;
    width: 180%;
    border-top: 1px solid rgba(195, 163, 106, 0.12);
    transform: rotate(-32deg) translateX(50%);
}

.scroll-cue {
    position: absolute;
    bottom: 2.5rem;
    left: var(--page-pad);
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(217, 213, 203, 0.64);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.scroll-cue i {
    position: relative;
    width: 4.5rem;
    height: 1px;
    overflow: hidden;
    background: var(--line);
    contain: paint;
}

.scroll-cue i::after {
    position: absolute;
    inset: 0 auto 0 0;
    width: 45%;
    background: var(--gold);
    backface-visibility: hidden;
    content: '';
    animation: scan 2.8s ease-in-out infinite;
    will-change: transform;
}

@keyframes scan {
    0%, 100% { transform: translate3d(-110%, 0, 0); }
    50% { transform: translate3d(235%, 0, 0); }
}

.hero-coordinate {
    position: absolute;
    right: var(--page-pad);
    bottom: 2.2rem;
    margin: 0;
    color: rgba(119, 123, 131, 0.68);
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    line-height: 1.7;
    text-align: right;
}

.shell-section {
    width: min(100%, 100rem);
    margin-inline: auto;
    padding-inline: var(--page-pad);
}

.portals {
    display: grid;
    grid-template-columns: minmax(16rem, 0.7fr) minmax(24rem, 1.3fr);
    gap: clamp(4rem, 10vw, 11rem);
    padding-top: clamp(7rem, 12vw, 11rem);
    padding-bottom: clamp(8rem, 14vw, 13rem);
}

.section-heading h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.7rem, 5vw, 5rem);
    font-weight: 400;
    line-height: 1;
}

.section-heading > p:last-child {
    max-width: 34rem;
    margin: 2rem 0 0;
    color: var(--steel);
}

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

.portal-list a {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 2rem;
    padding: 1.8rem 0;
    border-bottom: 1px solid var(--line);
    transition: padding 200ms ease, border-color 200ms ease;
}

.portal-list a:hover {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    border-color: rgba(195, 163, 106, 0.5);
}

.portal-list span {
    font-family: var(--serif);
    font-size: clamp(1.7rem, 3.2vw, 3rem);
}

.portal-list small {
    color: var(--steel);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-footer {
    margin: 0 var(--page-pad);
    padding: clamp(3.5rem, 7vw, 6rem) 0 2.5rem;
    border-top: 1px solid var(--line);
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(15rem, 0.8fr) minmax(30rem, 1.4fr);
    align-items: start;
    gap: clamp(4rem, 9vw, 9rem);
}

.footer-signature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-mark--small {
    width: 2rem;
    height: 2rem;
}

.footer-signature strong {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-signature p,
.footer-meta,
.footer-bottom > p:last-child {
    margin: 0.2rem 0 0;
    color: var(--steel);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-map {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 5rem);
}

.footer-column h2 {
    margin: 0 0 1.35rem;
    color: var(--gold);
    font-size: 0.875rem;
    font-weight: 650;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer-column ul {
    display: grid;
    gap: 0.72rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column a {
    color: rgba(217, 213, 203, 0.68);
    font-size: 0.9rem;
    transition: color 220ms ease, padding-left 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-column a:hover {
    padding-left: 0.35rem;
    color: var(--ivory);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: clamp(3.5rem, 7vw, 6rem);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(217, 213, 203, 0.08);
}

.footer-meta {
    margin: 0;
}

.interior-page main {
    min-height: calc(100svh - 10rem);
    padding-top: 5.25rem;
}

.page-intro {
    position: relative;
    display: grid;
    min-height: 63svh;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4rem;
    padding-top: 6rem;
    padding-bottom: 5rem;
    border-bottom: 1px solid var(--line);
}

.page-intro__copy {
    max-width: 58rem;
}

.page-intro h1,
.contact-intro h1,
.auth-intro h1,
.admin-heading h1 {
    font-size: clamp(4.4rem, 10vw, 9.5rem);
}

.lede {
    max-width: 48rem;
    margin: 2.2rem 0 0;
    color: rgba(217, 213, 203, 0.7);
    font-family: var(--serif);
    font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.status-note {
    align-self: end;
    margin: 0 0 1rem;
    color: var(--steel);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.status-note span,
.module-state i {
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    margin: 0 0 0.75rem;
    border: 1px solid var(--gold);
    border-radius: 50%;
}

.orbital-index {
    position: absolute;
    z-index: -1;
    top: 17%;
    right: 13%;
    width: clamp(12rem, 24vw, 24rem);
    height: clamp(12rem, 24vw, 24rem);
    border: 1px solid rgba(195, 163, 106, 0.1);
    border-radius: 50%;
}

.orbital-index::before,
.orbital-index::after {
    position: absolute;
    border: 1px solid rgba(119, 123, 131, 0.09);
    border-radius: 50%;
    content: '';
}

.orbital-index::before { inset: 15%; }
.orbital-index::after { inset: 34%; }

.orbital-index span {
    position: absolute;
    top: 14%;
    right: 12%;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 1rem var(--gold);
}

.empty-stage {
    display: grid;
    min-height: 28rem;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.empty-stage p {
    margin: 0;
    color: var(--steel);
    font-family: var(--serif);
    font-size: 1.1rem;
    font-style: italic;
}

.empty-stage__line {
    height: 1px;
    overflow: hidden;
    background: var(--line);
}

.empty-stage__line span {
    display: block;
    width: 22%;
    height: 100%;
    margin-left: auto;
    background: var(--gold);
    opacity: 0.4;
}

.empty-stage__line--reverse span {
    margin-right: auto;
    margin-left: 0;
}

.contact-layout,
.auth-layout {
    display: grid;
    min-height: calc(100svh - 5.25rem);
    grid-template-columns: minmax(18rem, 0.85fr) minmax(22rem, 1.15fr);
    align-items: center;
    gap: clamp(4rem, 10vw, 10rem);
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.contact-intro h1,
.auth-intro h1 {
    font-size: clamp(4rem, 8vw, 8rem);
}

.contact-note {
    max-width: 32rem;
    margin: 3rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--steel);
    font-size: 0.85rem;
}

.contact-panel,
.auth-panel {
    padding: clamp(1.5rem, 4vw, 3.5rem);
    border: 1px solid var(--line);
    background: rgba(32, 35, 40, 0.34);
}

.contact-form,
.auth-panel {
    display: grid;
    gap: 1.8rem;
}

.contact-form label,
.auth-panel label {
    display: grid;
    gap: 0.55rem;
}

.contact-form label > span,
.auth-panel label > span {
    color: var(--steel);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

input,
textarea {
    width: 100%;
    color: var(--ivory);
    border: 0;
    border-bottom: 1px solid rgba(217, 213, 203, 0.24);
    border-radius: 0;
    background: transparent;
    transition: border-color 180ms ease;
}

input {
    height: 3.25rem;
}

textarea {
    min-height: 11rem;
    padding: 0.8rem 0;
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: var(--gold);
    outline: none;
}

.text-button,
.quiet-button {
    justify-self: start;
    padding: 0.9rem 1.15rem;
    color: var(--charcoal);
    border: 1px solid var(--gold);
    background: var(--gold);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 180ms ease, background-color 180ms ease;
}

.text-button:hover,
.quiet-button:hover {
    color: var(--gold);
    background: transparent;
}

.notice {
    margin: 0 0 2rem;
    padding: 1rem 1.2rem;
    border-left: 2px solid var(--steel);
    color: var(--steel);
    background: rgba(119, 123, 131, 0.08);
}

.notice strong,
.notice span {
    display: block;
}

.notice strong {
    color: var(--ivory);
}

.notice ul {
    margin: 0.5rem 0 0;
    padding-left: 1.2rem;
}

.notice--success { border-color: var(--gold); }
.notice--error { border-color: #a66e65; }

.honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
}

.form-error {
    margin: 0;
    padding: 0.9rem 1rem;
    border-left: 2px solid #a66e65;
    color: #d5aaa2;
    background: rgba(166, 110, 101, 0.08);
}

.auth-caption {
    margin: 0;
    color: var(--steel);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.admin-layout {
    min-height: calc(100svh - 5.25rem);
    padding-top: 7rem;
    padding-bottom: 8rem;
}

.admin-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 3rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--line);
}

.admin-heading h1 {
    font-size: clamp(3.5rem, 7vw, 7rem);
}

.quiet-button {
    color: var(--ivory);
    border-color: var(--line);
    background: transparent;
}

.quiet-button:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.admin-status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    margin-top: 4rem;
    background: var(--line);
}

.admin-status-grid section {
    padding: clamp(2rem, 4vw, 4rem);
    background: var(--charcoal);
}

.status-label {
    margin: 0 0 2rem;
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.admin-status-grid h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 2.4rem;
    font-weight: 400;
}

.admin-status-grid section > p:not(.status-label) {
    max-width: 33rem;
    color: var(--steel);
}

.module-state {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    color: var(--steel);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.module-state i {
    margin: 0;
}

.module-state--ready i {
    background: var(--gold);
    box-shadow: 0 0 0.8rem rgba(195, 163, 106, 0.45);
}

@media (max-width: 68rem) {
    .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: grid;
        padding: 1.5rem var(--page-pad) 2.5rem;
        border-bottom: 1px solid var(--line);
        background: rgba(17, 18, 20, 0.98);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-0.75rem);
        transition: opacity 180ms ease, transform 180ms ease;
    }

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.8rem;
        cursor: pointer;
        font-size: 0.75rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }

    .menu-toggle i,
    .menu-toggle i::before {
        display: block;
        width: 1.5rem;
        height: 1px;
        background: currentColor;
        content: '';
        transition: transform 180ms ease;
    }

    .menu-toggle i::before {
        transform: translateY(-0.4rem);
    }

    .menu-open .menu-toggle i { transform: rotate(45deg); }
    .menu-open .menu-toggle i::before { transform: rotate(-90deg); }

    .portals,
    .contact-layout,
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .hero-copy { width: 92%; }
    .hero-orbit { display: none; }
    .planet { right: -25vw; bottom: -22vw; }
}

@media (max-width: 46rem) {
    :root { --header-height: 5.25rem; }
    .site-frame { inset: 0.45rem; }
    .brand-copy small { display: none; }
    .brand-copy strong { font-size: 0.95rem; }
    .brand-mark { width: 2rem; height: 2rem; }
    .menu-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

    .hero {
        align-items: flex-end;
        padding-bottom: 9rem;
    }

    .hero h1 { font-size: clamp(4.25rem, 20vw, 7rem); }
    .hero-copy { width: 100%; }
    .hero-manifesto { font-size: 1.1rem; }
    .planet { right: -54vw; bottom: 3rem; width: 120vw; height: 120vw; opacity: 0.7; }
    .hero-coordinate { display: none; }

    .portal-list a {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .site-footer {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .footer-meta { text-align: left; }

    .page-intro {
        min-height: 58svh;
        grid-template-columns: 1fr;
        padding-top: 4rem;
    }

    .page-intro h1 { font-size: clamp(4rem, 21vw, 6.5rem); }
    .status-note { display: none; }
    .empty-stage { grid-template-columns: 1fr; gap: 1.2rem; text-align: center; }
    .orbital-index { right: 0; }

    .contact-layout,
    .auth-layout {
        align-content: start;
        gap: 3rem;
        padding-top: 4rem;
    }

    .contact-panel,
    .auth-panel { padding: 1.4rem; }

    .admin-heading {
        align-items: start;
        flex-direction: column;
    }

    .admin-status-grid { grid-template-columns: 1fr; }
}

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

/* Media archive: image and video-ready editorial frames. */

.media-showcase {
    padding-bottom: clamp(8rem, 14vw, 13rem);
}

.media-showcase__heading {
    display: grid;
    grid-template-columns: minmax(13rem, 0.62fr) minmax(24rem, 1.38fr);
    gap: clamp(3rem, 9vw, 10rem);
    padding: clamp(5rem, 9vw, 8rem) 0 clamp(3.5rem, 6vw, 5.5rem);
    border-top: 1px solid var(--line);
}

.media-showcase__heading .eyebrow {
    margin-bottom: 1rem;
}

.media-showcase__index {
    margin: 0;
    color: rgba(119, 123, 131, 0.62);
    font-size: 0.66rem;
    letter-spacing: 0.17em;
}

.media-showcase__heading h2 {
    max-width: 10ch;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(3rem, 6vw, 6.4rem);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 0.94;
}

.media-showcase__heading > div:last-child > p {
    max-width: 36rem;
    margin: 2rem 0 0;
    color: var(--steel);
}

.media-mosaic {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(19rem, 0.6fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 4.5rem) clamp(1.5rem, 3vw, 3rem);
}

.media-frame {
    min-width: 0;
    margin: 0;
}

.media-frame--feature {
    grid-row: 1 / 3;
}

.media-frame__visual {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #090c11;
}

.media-frame--feature .media-frame__visual {
    height: 100%;
    min-height: clamp(36rem, 53vw, 53rem);
}

.media-frame--landscape .media-frame__visual,
.media-frame--panorama .media-frame__visual {
    aspect-ratio: 16 / 10;
}

.media-frame__visual::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 8, 12, 0.04) 45%, rgba(5, 8, 12, 0.7) 100%),
        linear-gradient(90deg, rgba(195, 163, 106, 0.11), transparent 26%);
    content: '';
    pointer-events: none;
}

.media-frame__visual > img,
.media-frame__visual > video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.78) contrast(1.04);
    transform: scale(1.015);
    transition: filter 900ms ease, transform 1600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.media-frame--feature .media-frame__visual > img,
.media-frame--feature .media-frame__visual > video {
    object-position: 52% center;
}

.media-frame:hover .media-frame__visual > img,
.media-frame:hover .media-frame__visual > video {
    filter: saturate(0.96) contrast(1.02);
    transform: scale(1.045);
}

.media-frame__type,
.media-frame__number {
    position: absolute;
    z-index: 2;
    color: rgba(242, 238, 226, 0.86);
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.media-frame__type {
    top: 1.2rem;
    left: 1.2rem;
    padding: 0.58rem 0.68rem;
    border: 1px solid rgba(242, 238, 226, 0.28);
    background: rgba(7, 10, 15, 0.42);
    backdrop-filter: blur(0.7rem);
}

.media-frame__number {
    right: 1.2rem;
    bottom: 1rem;
    color: rgba(242, 238, 226, 0.68);
}

.media-frame figcaption {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.68fr);
    gap: 2rem;
    padding-top: 1.35rem;
}

.media-frame:not(.media-frame--feature) figcaption {
    grid-template-columns: 1fr;
}

.media-frame figcaption p {
    margin: 0;
    color: var(--steel);
    font-size: 0.78rem;
    line-height: 1.55;
}

.media-frame figcaption div > p {
    margin-bottom: 0.38rem;
    color: var(--gold);
    font-size: 0.62rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.media-frame h3 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.5rem, 2.2vw, 2.25rem);
    font-weight: 400;
    letter-spacing: -0.02em;
}

.media-showcase__note {
    margin: clamp(3rem, 5vw, 4.5rem) 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    color: rgba(119, 123, 131, 0.7);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* The stars keep an organic distribution but remain legible throughout their cycle. */

.home-page .starfield {
    background:
        radial-gradient(ellipse at 70% 42%, rgba(67, 91, 122, 0.2), transparent 27%),
        radial-gradient(ellipse at 56% 38%, rgba(195, 163, 106, 0.065), transparent 26%),
        linear-gradient(125deg, #090c11 20%, #101722 65%, #090b0f);
}

.home-page .stars::before,
.home-page .stars::after {
    filter: drop-shadow(0 0 0.18rem rgba(242, 238, 226, 0.88));
}

.home-page .stars--one {
    animation-name: stars-visible-one;
}

.home-page .stars--two {
    filter: drop-shadow(0 0 0.28rem rgba(196, 216, 240, 0.72));
    animation-name: stars-visible-two;
}

.home-page .stars--three {
    filter: drop-shadow(0 0 0.38rem rgba(255, 255, 255, 0.72));
    animation-name: stars-visible-three;
}

/* Content platform: navigation, collections and editorial pages. */

.nav-group {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-group::after {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 1.7rem;
    content: '';
}

.nav-group__toggle {
    position: relative;
    width: 1.4rem;
    height: 2rem;
    padding: 0;
    border: 0;
    color: var(--steel);
    background: transparent;
    cursor: pointer;
}

.nav-group__toggle span,
.nav-group__toggle span::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.42rem;
    height: 1px;
    background: currentColor;
    content: '';
    transition: transform 220ms ease;
}

.nav-group__toggle span {
    transform: translate(-72%, -50%) rotate(42deg);
}

.nav-group__toggle span::after {
    transform: translate(-6%, -50%) rotate(-84deg);
}

.nav-group.is-open .nav-group__toggle span,
.nav-group:hover .nav-group__toggle span,
.nav-group:focus-within .nav-group__toggle span {
    transform: translate(-72%, -50%) rotate(-42deg);
}

.nav-dropdown {
    position: absolute;
    z-index: 30;
    top: calc(100% + 1.45rem);
    left: -2rem;
    display: grid;
    width: min(23rem, 88vw);
    padding: 1.25rem;
    border: 1px solid rgba(217, 213, 203, 0.14);
    background: rgba(10, 13, 18, 0.98);
    box-shadow: 0 2.5rem 5rem rgba(0, 0, 0, 0.42);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.6rem);
    transition: opacity 220ms ease, transform 260ms ease;
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown,
.nav-group.is-open .nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-dropdown > p {
    margin: 0 0 0.75rem;
    padding: 0 0.7rem 0.8rem;
    border-bottom: 1px solid var(--line);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.main-nav .nav-dropdown a {
    display: grid;
    gap: 0.05rem;
    padding: 0.78rem 0.7rem;
    border-bottom: 1px solid rgba(217, 213, 203, 0.07);
    letter-spacing: 0;
    text-transform: none;
}

.main-nav .nav-dropdown a::after {
    display: none;
}

.nav-dropdown a:hover {
    background: rgba(195, 163, 106, 0.07);
}

.nav-dropdown a span {
    color: var(--ivory);
    font-family: var(--serif);
    font-size: 1.05rem;
}

.nav-dropdown a small {
    color: var(--steel);
    font-size: 0.75rem;
}

.main-nav .nav-dropdown .nav-dropdown__all {
    margin-top: 0.55rem;
    border: 0;
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.collection-hero {
    display: grid;
    min-height: 58svh;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 4rem;
    padding-top: clamp(7rem, 12vw, 11rem);
    padding-bottom: clamp(4rem, 7vw, 6rem);
    border-bottom: 1px solid var(--line);
}

.collection-hero > div {
    max-width: 62rem;
}

.collection-hero h1,
.not-found h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(4.5rem, 11vw, 10rem);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 0.85;
}

.collection-hero__meta {
    margin: 0 0 1rem;
    color: var(--steel);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.editorial-link {
    display: inline-block;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(195, 163, 106, 0.55);
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.game-catalog {
    display: grid;
    gap: clamp(5rem, 10vw, 10rem);
    padding-top: clamp(6rem, 10vw, 10rem);
    padding-bottom: clamp(6rem, 10vw, 10rem);
}

.game-card {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(20rem, 0.6fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 8rem);
}

.game-card:nth-child(even) {
    grid-template-columns: minmax(20rem, 0.6fr) minmax(0, 1.4fr);
}

.game-card:nth-child(even) .game-card__visual {
    grid-column: 2;
    grid-row: 1;
}

.game-card:nth-child(even) .game-card__copy {
    grid-column: 1;
    grid-row: 1;
}

.game-card__visual {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #080b10;
}

.game-card__visual::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(5, 8, 12, 0.78));
    content: '';
}

.game-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.78);
    transition: filter 800ms ease, transform 1400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.game-card__visual:hover img {
    filter: saturate(1);
    transform: scale(1.035);
}

.game-card__visual span {
    position: absolute;
    z-index: 1;
    right: 1.2rem;
    bottom: 1rem;
    color: rgba(242, 238, 226, 0.84);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.game-card__copy > p:first-child,
.featured-post__copy > p:first-child,
.post-grid article > p:first-of-type,
.wiki-directory article > p:first-child {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.game-card h2,
.featured-post h2,
.post-grid h2,
.wiki-directory h2 {
    margin: 0.7rem 0 1.2rem;
    font-family: var(--serif);
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 0.95;
}

.game-card__copy > p:last-child,
.featured-post__copy > p:nth-last-child(2),
.post-grid article > p:last-child,
.wiki-directory article > p:nth-last-child(2) {
    color: rgba(217, 213, 203, 0.68);
}

.demo-disclaimer {
    margin-bottom: clamp(6rem, 10vw, 10rem);
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    color: var(--steel);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.game-hero {
    position: relative;
    display: flex;
    min-height: 82svh;
    align-items: flex-end;
    overflow: hidden;
}

.game-hero__media,
.game-hero__shade {
    position: absolute;
    inset: 0;
}

.game-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.72) contrast(1.04);
}

.game-hero__shade {
    background:
        linear-gradient(180deg, rgba(7, 10, 15, 0.2) 20%, rgba(7, 10, 15, 0.94) 100%),
        linear-gradient(90deg, rgba(7, 10, 15, 0.76), transparent 60%);
}

.game-hero__copy {
    position: relative;
    z-index: 1;
    padding-bottom: clamp(4rem, 8vw, 7rem);
}

.game-hero__copy h1 {
    max-width: 12ch;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(4.5rem, 10vw, 10rem);
    font-weight: 400;
    letter-spacing: -0.06em;
    line-height: 0.83;
}

.game-hero__copy > p:last-child {
    max-width: 42rem;
    margin: 2rem 0 0;
    color: rgba(242, 238, 226, 0.74);
    font-family: var(--serif);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.game-story,
.about-company {
    display: grid;
    grid-template-columns: minmax(12rem, 0.42fr) minmax(0, 1fr);
    gap: clamp(4rem, 10vw, 11rem);
    padding-top: clamp(6rem, 11vw, 11rem);
    padding-bottom: clamp(6rem, 11vw, 11rem);
}

.game-story__label > span {
    color: var(--steel);
    font-size: 0.8rem;
}

.editorial-copy {
    width: min(100%, 52rem);
    color: rgba(217, 213, 203, 0.76);
    font-size: 1.05rem;
    line-height: 1.85;
}

.editorial-copy > :first-child {
    margin-top: 0;
}

.editorial-copy h2,
.editorial-copy h3 {
    margin: 3.5rem 0 1.2rem;
    color: var(--ivory);
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.05;
}

.editorial-copy h2 { font-size: clamp(2.3rem, 4vw, 3.8rem); }
.editorial-copy h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); }

.editorial-copy a,
.wiki-link {
    color: var(--ivory);
    border-bottom: 1px solid rgba(195, 163, 106, 0.55);
}

.editorial-copy blockquote {
    margin: 3rem 0;
    padding: 0.5rem 0 0.5rem 2rem;
    border-left: 1px solid var(--gold);
    color: var(--ivory);
    font-family: var(--serif);
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    font-style: italic;
}

.game-summary {
    color: var(--ivory);
    font-family: var(--serif);
    font-size: clamp(1.45rem, 2.8vw, 2.15rem);
    line-height: 1.45;
}

.game-media {
    padding-top: clamp(5rem, 8vw, 8rem);
    padding-bottom: clamp(6rem, 10vw, 10rem);
    border-top: 1px solid var(--line);
}

.game-media header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.game-media h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 400;
    letter-spacing: -0.05em;
}

.game-media__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(1.2rem, 2.6vw, 2.6rem);
}

.game-media__item {
    grid-column: span 6;
    margin: 0;
}

.game-media__item--wide { grid-column: span 8; }
.game-media__item--square { grid-column: span 4; }
.game-media__item--tall { grid-column: span 4; grid-row: span 2; }

.game-media__item img,
.game-media__item .video-embed {
    width: 100%;
    aspect-ratio: 16 / 10;
}

.game-media__item--square img { aspect-ratio: 1; }
.game-media__item--tall img { height: 100%; min-height: 35rem; aspect-ratio: 3 / 4; }

.game-media__item img {
    display: block;
    object-fit: cover;
}

.game-media figcaption,
.article-media figcaption {
    margin-top: 0.8rem;
    color: var(--steel);
    font-size: 0.82rem;
}

.video-embed {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #080b10;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.retailer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: clamp(7rem, 12vw, 12rem);
    padding-top: clamp(3rem, 6vw, 5rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.retailer-cta h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.6rem, 5vw, 5rem);
    font-weight: 400;
}

.retailer-cta > a,
.retailer-cta > span {
    padding: 1rem 1.3rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.retailer-cta > span {
    border-color: var(--line);
    color: var(--steel);
}

.not-found {
    display: grid;
    min-height: 75svh;
    align-content: center;
    gap: 2rem;
}

/* Wiki */

.collection-hero--wiki {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.58fr);
    align-items: end;
}

.wiki-search {
    display: grid;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
}

.wiki-search label {
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.wiki-search > div {
    display: flex;
    border-bottom: 1px solid var(--line);
}

.wiki-search input {
    min-width: 0;
    border: 0;
}

.wiki-search button {
    padding: 0 0.4rem;
    border: 0;
    color: var(--ivory);
    background: transparent;
    cursor: pointer;
}

.wiki-directory {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    padding-top: clamp(5rem, 9vw, 9rem);
    padding-bottom: clamp(7rem, 12vw, 12rem);
    background: var(--line);
}

.wiki-directory article {
    padding: clamp(2rem, 5vw, 4.5rem);
    background: var(--charcoal);
}

.wiki-directory h2 {
    font-size: clamp(2rem, 4vw, 3.6rem);
}

.wiki-article-hero {
    display: grid;
    min-height: 55svh;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 4rem;
    padding-top: clamp(7rem, 12vw, 11rem);
    padding-bottom: clamp(4rem, 7vw, 6rem);
    border-bottom: 1px solid var(--line);
}

.wiki-article-hero h1 {
    max-width: 13ch;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 0.9;
}

.wiki-article-hero > p {
    color: var(--steel);
    font-size: 0.82rem;
}

.wiki-layout {
    display: grid;
    grid-template-columns: minmax(12rem, 0.38fr) minmax(0, 1fr);
    gap: clamp(4rem, 10vw, 10rem);
    padding-top: clamp(5rem, 9vw, 9rem);
    padding-bottom: clamp(7rem, 12vw, 12rem);
}

.wiki-sidebar {
    position: sticky;
    top: 7rem;
    align-self: start;
    padding-top: 1.2rem;
    border-top: 1px solid var(--gold);
}

.wiki-sidebar > p {
    margin: 0 0 1.3rem;
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.wiki-sidebar nav {
    display: grid;
}

.wiki-sidebar a {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(217, 213, 203, 0.08);
    color: var(--steel);
    font-size: 0.9rem;
}

.wiki-sidebar a[aria-current='page'],
.wiki-sidebar a:hover {
    color: var(--ivory);
}

.wiki-link--missing {
    border-bottom-style: dashed;
    color: #bd918a;
}

.wiki-backlinks {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.wiki-backlinks ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wiki-backlinks li a {
    display: block;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--line);
    font-size: 0.85rem;
}

.empty-result {
    grid-column: 1 / -1;
    margin: 0;
    padding: 5rem;
    color: var(--steel);
    background: var(--charcoal);
}

/* Devblog */

.featured-post {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 8rem);
    padding-top: clamp(6rem, 10vw, 10rem);
    padding-bottom: clamp(6rem, 10vw, 10rem);
}

.featured-post__visual,
.post-card__visual {
    display: block;
    overflow: hidden;
    background: #080b10;
}

.featured-post__visual { aspect-ratio: 16 / 10; }
.post-card__visual { aspect-ratio: 16 / 9; }

.featured-post__visual img,
.post-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.78);
    transition: filter 700ms ease, transform 1200ms ease;
}

.featured-post__visual:hover img,
.post-card__visual:hover img {
    filter: saturate(1);
    transform: scale(1.035);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(3rem, 6vw, 6rem) clamp(2rem, 4vw, 4rem);
    padding-bottom: clamp(7rem, 12vw, 12rem);
}

.post-grid h2 {
    font-size: clamp(2rem, 3.6vw, 3.25rem);
}

.blog-article__header {
    display: grid;
    min-height: 62svh;
    align-items: end;
    padding-top: clamp(8rem, 14vw, 13rem);
    padding-bottom: clamp(4rem, 7vw, 6rem);
}

.blog-article__header > div {
    max-width: 72rem;
}

.blog-article__header h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(4rem, 9vw, 9rem);
    font-weight: 400;
    letter-spacing: -0.06em;
    line-height: 0.88;
}

.article-byline {
    margin: 2.5rem 0 0;
    color: var(--gold);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-article__cover {
    width: min(calc(100% - (var(--page-pad) * 2)), 100rem);
    margin: 0 auto clamp(6rem, 10vw, 10rem);
}

.blog-article__cover img {
    display: block;
    width: 100%;
    max-height: 70svh;
    object-fit: cover;
}

.article-blocks {
    margin: 0 auto;
    padding: 0 var(--page-pad) clamp(7rem, 12vw, 12rem);
}

.article-media {
    margin: clamp(3rem, 6vw, 6rem) 0;
}

.article-media--wide {
    width: min(78vw, 78rem);
    margin-left: 50%;
    transform: translateX(-50%);
}

.article-media--full {
    width: min(calc(100vw - (var(--page-pad) * 2)), 100rem);
    margin-left: 50%;
    transform: translateX(-50%);
}

.article-media img {
    display: block;
    width: 100%;
    max-height: 80svh;
    object-fit: cover;
}

.article-link a {
    display: inline-block;
    padding: 0.85rem 1.1rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-signature {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: clamp(7rem, 12vw, 12rem);
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
}

.article-signature p {
    margin: 0;
    color: var(--steel);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.article-signature strong {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 400;
}

.article-signature .editorial-link {
    margin-left: auto;
}

/* Gallery */

.gallery-mosaic {
    display: grid;
    grid-auto-flow: dense;
    grid-auto-rows: clamp(10rem, 14vw, 15rem);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.6rem, 1.2vw, 1.2rem);
    padding-top: clamp(4rem, 8vw, 8rem);
    padding-bottom: clamp(7rem, 12vw, 12rem);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    margin: 0;
    background: #080b10;
}

.gallery-item--square,
.gallery-item--auto { grid-column: span 1; grid-row: span 1; }
.gallery-item--wide { grid-column: span 2; grid-row: span 1; }
.gallery-item--tall { grid-column: span 1; grid-row: span 2; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.8);
    transition: filter 800ms ease, transform 1400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    filter: saturate(1);
    transform: scale(1.045);
}

.gallery-item figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    gap: 0.1rem;
    padding: 2.5rem 1rem 0.9rem;
    background: linear-gradient(transparent, rgba(5, 8, 12, 0.86));
    opacity: 0;
    transform: translateY(0.5rem);
    transition: opacity 260ms ease, transform 320ms ease;
}

.gallery-item:hover figcaption,
.gallery-item:focus-within figcaption {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item figcaption strong {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 400;
}

.gallery-item figcaption span {
    color: rgba(217, 213, 203, 0.7);
    font-size: 0.75rem;
}

/* About */

.about-hero {
    display: grid;
    min-height: 72svh;
    align-items: end;
    padding-top: clamp(8rem, 14vw, 13rem);
    padding-bottom: clamp(5rem, 9vw, 9rem);
    border-bottom: 1px solid var(--line);
}

.about-hero > div {
    max-width: 76rem;
}

.about-hero h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(4rem, 8.5vw, 8.5rem);
    font-weight: 400;
    letter-spacing: -0.06em;
    line-height: 0.9;
}

.about-company h2,
.about-author h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 0.95;
}

.about-author {
    display: grid;
    grid-template-columns: minmax(18rem, 0.85fr) minmax(22rem, 1.15fr);
    align-items: center;
    gap: clamp(4rem, 10vw, 10rem);
    padding-top: clamp(5rem, 9vw, 9rem);
    padding-bottom: clamp(7rem, 12vw, 12rem);
    border-top: 1px solid var(--line);
}

.about-author figure {
    margin: 0;
}

.about-author figure img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: saturate(0.72);
}

.about-author__placeholder {
    display: grid;
    min-height: 34rem;
    align-content: center;
    justify-items: center;
    gap: 2rem;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at 50% 42%, rgba(54, 79, 109, 0.22), transparent 34%),
        #0b0e13;
}

.about-author__placeholder .brand-mark {
    width: 6rem;
    height: 6rem;
}

.about-author__placeholder .brand-mark span {
    width: 7rem;
}

.about-author__placeholder p {
    margin: 0;
    color: var(--steel);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.about-author__role {
    margin: 1rem 0 2.5rem;
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.about-author dl {
    margin: 2.5rem 0 0;
    border-top: 1px solid var(--line);
}

.about-author dl > div {
    display: grid;
    grid-template-columns: 8rem 1fr;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
}

.about-author dt { color: var(--steel); }
.about-author dd { margin: 0; }

/* Editorial backoffice. */

select {
    min-height: 3.25rem;
    width: 100%;
    padding: 0 2.2rem 0 0.2rem;
    border: 0;
    border-bottom: 1px solid rgba(217, 213, 203, 0.24);
    border-radius: 0;
    color: var(--ivory);
    background-color: transparent;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--steel) 50%),
        linear-gradient(135deg, var(--steel) 50%, transparent 50%);
    background-position: calc(100% - 0.9rem) 50%, calc(100% - 0.55rem) 50%;
    background-repeat: no-repeat;
    background-size: 0.4rem 0.4rem, 0.4rem 0.4rem;
    appearance: none;
}

select option {
    color: var(--ivory);
    background: var(--anthracite);
}

.admin-heading--compact h1 {
    font-size: clamp(3rem, 6vw, 6rem);
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.6rem;
    margin-bottom: 3rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--line);
}

.admin-nav a {
    padding: 0.35rem 0;
    color: var(--steel);
    font-size: 0.85rem;
}

.admin-nav a[aria-current='page'],
.admin-nav a:hover {
    color: var(--gold);
}

.admin-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 1px;
    background: var(--line);
}

.admin-module-grid > a,
.admin-module-grid > section {
    min-height: 18rem;
    padding: clamp(2rem, 3vw, 3rem);
    background: var(--charcoal);
}

.admin-module-grid > a {
    transition: background-color 220ms ease;
}

.admin-module-grid > a:hover {
    background: rgba(32, 35, 40, 0.86);
}

.admin-module-grid h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 3rem;
    font-weight: 400;
}

.admin-module-grid p:not(.status-label) {
    color: var(--steel);
}

.admin-module-grid > a > span {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 650;
    text-transform: uppercase;
}

.admin-workspace {
    display: grid;
    grid-template-columns: minmax(15rem, 0.34fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
}

.admin-library {
    position: sticky;
    top: 6.5rem;
    align-self: start;
    max-height: calc(100svh - 8rem);
    overflow-y: auto;
    border-top: 1px solid var(--gold);
}

.admin-library__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.admin-library__heading h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 400;
}

.admin-library__heading a {
    color: var(--gold);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.admin-library article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border-top: 1px solid var(--line);
}

.admin-library article.is-selected {
    background: rgba(195, 163, 106, 0.07);
}

.admin-library article > a {
    display: grid;
    min-width: 0;
    padding: 0.9rem 0.6rem;
}

.admin-library article strong {
    overflow: hidden;
    font-family: var(--serif);
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-library article span,
.admin-library article small {
    color: var(--steel);
    font-size: 0.75rem;
}

.admin-library article form button {
    padding: 0.5rem;
    border: 0;
    color: #bd918a;
    background: transparent;
    cursor: pointer;
    font-size: 0.75rem;
}

.admin-library--visual article > a {
    grid-template-columns: 3.5rem minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem;
}

.admin-library--visual article img {
    width: 3.5rem;
    height: 3rem;
    object-fit: cover;
}

.admin-library--visual article span {
    display: grid;
}

.admin-editor {
    display: grid;
    gap: 2rem;
    min-width: 0;
}

.admin-editor--standalone {
    width: min(100%, 70rem);
    margin-inline: auto;
}

.admin-editor > header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.admin-editor > header h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
}

.admin-editor label {
    display: grid;
    gap: 0.55rem;
}

.admin-editor label > span,
.admin-editor legend {
    color: rgba(217, 213, 203, 0.72);
    font-size: 0.875rem;
    font-weight: 650;
}

.admin-editor small,
.field-help {
    color: var(--steel);
    font-size: 0.82rem;
}

.admin-editor textarea {
    min-height: 7rem;
}

.admin-editor input[type='file'] {
    height: auto;
    min-height: 3.25rem;
    padding: 0.75rem 0;
    color: var(--steel);
}

.admin-editor fieldset {
    display: grid;
    gap: 1.5rem;
    min-width: 0;
    margin: 0;
    padding: 1.5rem;
    border: 1px solid var(--line);
}

.admin-editor legend {
    padding: 0 0.7rem;
    color: var(--gold);
}

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

.admin-form-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-repeater {
    display: grid;
    gap: 1rem;
}

.admin-block-row {
    display: grid;
    gap: 1.2rem;
    padding: 1.25rem;
    border-left: 2px solid rgba(195, 163, 106, 0.45);
    background: rgba(32, 35, 40, 0.35);
}

.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.admin-row-actions button {
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--line);
    color: var(--steel);
    background: transparent;
    cursor: pointer;
    font-size: 0.78rem;
}

.admin-row-actions button:last-child {
    color: #bd918a;
}

.admin-check {
    display: flex !important;
    align-items: center;
    grid-template-columns: auto 1fr;
}

.admin-check input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--gold);
}

.syntax-help {
    padding: 1.2rem;
    border-left: 1px solid var(--gold);
    background: rgba(195, 163, 106, 0.05);
}

.syntax-help h3,
.syntax-help p {
    margin: 0;
}

.syntax-help h3 {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 400;
}

.syntax-help p + p {
    margin-top: 0.5rem;
}

.admin-media-preview {
    display: block;
    width: min(100%, 38rem);
    max-height: 24rem;
    object-fit: cover;
}

@media (max-width: 68rem) {
    .nav-group {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .nav-group::after {
        display: none;
    }

    .nav-group__toggle {
        display: block;
    }

    .nav-dropdown {
        position: static;
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 0.5rem;
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .nav-group:hover .nav-dropdown,
    .nav-group:focus-within .nav-dropdown {
        display: none;
    }

    .nav-group.is-open .nav-dropdown {
        display: grid;
    }

    .game-card,
    .game-card:nth-child(even),
    .featured-post,
    .about-author {
        grid-template-columns: 1fr;
    }

    .game-card:nth-child(even) .game-card__visual,
    .game-card:nth-child(even) .game-card__copy {
        grid-column: auto;
        grid-row: auto;
    }

    .game-story,
    .about-company,
    .wiki-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .wiki-sidebar {
        position: static;
    }

    .gallery-mosaic {
        grid-auto-rows: clamp(9rem, 22vw, 13rem);
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .admin-workspace {
        grid-template-columns: 1fr;
    }

    .admin-library {
        position: static;
        max-height: none;
    }

    .admin-form-grid--three {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 46rem) {
    .collection-hero,
    .collection-hero--wiki,
    .wiki-article-hero {
        min-height: 50svh;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .collection-hero__meta {
        writing-mode: initial;
    }

    .game-hero {
        min-height: 68svh;
    }

    .game-hero__copy h1 {
        font-size: clamp(3.7rem, 18vw, 6.2rem);
    }

    .game-media__item,
    .game-media__item--wide,
    .game-media__item--square,
    .game-media__item--tall {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .game-media__item--tall img {
        min-height: 0;
        aspect-ratio: 4 / 5;
    }

    .retailer-cta,
    .article-signature {
        align-items: flex-start;
        flex-direction: column;
    }

    .article-signature .editorial-link {
        margin-left: 0;
    }

    .wiki-directory,
    .post-grid {
        grid-template-columns: 1fr;
    }

    .article-media--wide,
    .article-media--full {
        width: 100%;
        margin-left: 0;
        transform: none;
    }

    .gallery-mosaic {
        grid-auto-rows: 9rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-item--wide { grid-column: span 2; }
    .gallery-item figcaption { opacity: 1; transform: none; }

    .about-author dl > div,
    .admin-form-grid,
    .admin-module-grid {
        grid-template-columns: 1fr;
    }

    .admin-heading--compact {
        align-items: flex-start;
    }

    .admin-editor > header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-editor fieldset,
    .admin-block-row {
        padding: 1rem;
    }
}

.home-page .stars--four {
    opacity: 0.72;
    transform: translate3d(
        var(--parallax-back-x),
        calc(var(--parallax-back-y) + var(--scroll-back)),
        0
    );
    animation: stars-visible-four 16s ease-in-out -7s infinite alternate;
    will-change: transform, opacity;
}

.home-page .stars--four::before {
    width: 1px;
    height: 1px;
    box-shadow:
        4vw 7vh rgba(255, 255, 255, 0.9),
        7vw 31vh rgba(194, 213, 236, 0.82),
        10vw 63vh rgba(255, 255, 255, 0.76),
        15vw 18vh rgba(225, 217, 195, 0.88),
        18vw 94vh rgba(255, 255, 255, 0.78),
        21vw 47vh rgba(194, 213, 236, 0.86),
        27vw 12vh rgba(255, 255, 255, 0.92),
        29vw 69vh rgba(225, 217, 195, 0.74),
        34vw 34vh rgba(255, 255, 255, 0.84),
        40vw 83vh rgba(194, 213, 236, 0.8),
        43vw 22vh rgba(255, 255, 255, 0.9),
        47vw 59vh rgba(225, 217, 195, 0.78),
        51vw 5vh rgba(255, 255, 255, 0.84),
        56vw 39vh rgba(194, 213, 236, 0.88),
        60vw 71vh rgba(255, 255, 255, 0.78),
        65vw 16vh rgba(225, 217, 195, 0.82),
        68vw 89vh rgba(255, 255, 255, 0.9),
        72vw 52vh rgba(194, 213, 236, 0.76),
        76vw 29vh rgba(255, 255, 255, 0.86),
        80vw 74vh rgba(225, 217, 195, 0.8),
        85vw 13vh rgba(255, 255, 255, 0.92),
        89vw 43vh rgba(194, 213, 236, 0.84),
        92vw 96vh rgba(255, 255, 255, 0.76),
        97vw 25vh rgba(225, 217, 195, 0.86);
}

.home-page .stars--four::after {
    width: 2px;
    height: 2px;
    box-shadow:
        5vw 56vh 0.18rem rgba(255, 255, 255, 0.82),
        14vw 78vh 0.14rem rgba(195, 163, 106, 0.72),
        25vw 38vh 0.2rem rgba(218, 231, 248, 0.86),
        36vw 6vh 0.16rem rgba(255, 255, 255, 0.78),
        45vw 91vh 0.2rem rgba(195, 163, 106, 0.68),
        53vw 49vh 0.16rem rgba(255, 255, 255, 0.88),
        63vw 31vh 0.18rem rgba(218, 231, 248, 0.82),
        70vw 67vh 0.16rem rgba(255, 255, 255, 0.76),
        83vw 86vh 0.2rem rgba(195, 163, 106, 0.7),
        94vw 61vh 0.18rem rgba(255, 255, 255, 0.86);
}

@keyframes stars-visible-four {
    0% { opacity: 0.42; }
    42% { opacity: 0.98; }
    100% { opacity: 0.64; }
}

@keyframes stars-visible-one {
    0% { opacity: 0.38; }
    38% { opacity: 0.94; }
    72% { opacity: 0.54; }
    100% { opacity: 1; }
}

@keyframes stars-visible-two {
    0% { opacity: 0.3; }
    46% { opacity: 0.92; }
    100% { opacity: 0.5; }
}

@keyframes stars-visible-three {
    0% { opacity: 0.34; }
    48% { opacity: 1; }
    100% { opacity: 0.48; }
}

@media (max-width: 68rem) {
    .media-showcase__heading {
        grid-template-columns: minmax(11rem, 0.42fr) minmax(0, 1fr);
        gap: 3rem;
    }

    .media-mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
    }

    .media-frame--feature {
        grid-row: auto;
        grid-column: 1 / -1;
    }

    .media-frame--feature .media-frame__visual {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 46rem) {
    .media-showcase__heading,
    .media-mosaic {
        grid-template-columns: 1fr;
    }

    .media-showcase__heading {
        gap: 2.5rem;
    }

    .media-frame--feature {
        grid-column: auto;
    }

    .media-frame--feature .media-frame__visual,
    .media-frame--landscape .media-frame__visual,
    .media-frame--panorama .media-frame__visual {
        aspect-ratio: 4 / 3;
    }

    .media-frame figcaption {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .media-frame__type {
        top: 0.8rem;
        left: 0.8rem;
    }

    .media-frame__number {
        right: 0.8rem;
        bottom: 0.7rem;
    }
}

/* Refinements: organic stars, soft navigation and balanced hover states. */

.home-page::before {
    background-image: none;
}

.stars {
    background-image: none !important;
    background-repeat: no-repeat;
}

.stars::before,
.stars::after {
    position: absolute;
    top: -0.25rem;
    left: -0.25rem;
    border-radius: 50%;
    background: transparent;
    content: '';
}

.stars--one::before {
    width: 1px;
    height: 1px;
    box-shadow:
        3vw 14vh rgba(255, 255, 255, 0.58),
        8vw 42vh rgba(217, 213, 203, 0.44),
        13vw 9vh rgba(255, 255, 255, 0.68),
        17vw 68vh rgba(119, 123, 131, 0.62),
        22vw 29vh rgba(255, 255, 255, 0.42),
        26vw 81vh rgba(217, 213, 203, 0.58),
        31vw 51vh rgba(255, 255, 255, 0.7),
        35vw 17vh rgba(119, 123, 131, 0.5),
        39vw 73vh rgba(255, 255, 255, 0.46),
        44vw 37vh rgba(217, 213, 203, 0.65),
        48vw 88vh rgba(255, 255, 255, 0.52),
        52vw 12vh rgba(119, 123, 131, 0.54),
        57vw 61vh rgba(255, 255, 255, 0.68),
        62vw 27vh rgba(217, 213, 203, 0.48),
        66vw 78vh rgba(255, 255, 255, 0.4),
        71vw 45vh rgba(119, 123, 131, 0.56),
        75vw 6vh rgba(255, 255, 255, 0.66),
        79vw 66vh rgba(217, 213, 203, 0.42),
        84vw 34vh rgba(255, 255, 255, 0.62),
        88vw 86vh rgba(119, 123, 131, 0.52),
        93vw 19vh rgba(255, 255, 255, 0.5),
        96vw 58vh rgba(217, 213, 203, 0.6);
}

.stars--one::after {
    width: 2px;
    height: 2px;
    box-shadow:
        6vw 74vh 4px rgba(255, 255, 255, 0.62),
        15vw 38vh 3px rgba(195, 163, 106, 0.48),
        24vw 5vh 4px rgba(255, 255, 255, 0.58),
        33vw 91vh 3px rgba(217, 213, 203, 0.54),
        43vw 56vh 4px rgba(255, 255, 255, 0.66),
        55vw 33vh 3px rgba(195, 163, 106, 0.42),
        64vw 92vh 4px rgba(255, 255, 255, 0.56),
        73vw 23vh 3px rgba(217, 213, 203, 0.62),
        82vw 76vh 4px rgba(255, 255, 255, 0.6),
        91vw 47vh 3px rgba(195, 163, 106, 0.46);
}

.stars--two::before {
    width: 1px;
    height: 1px;
    box-shadow:
        2vw 53vh rgba(119, 146, 177, 0.62),
        11vw 84vh rgba(255, 255, 255, 0.55),
        19vw 24vh rgba(217, 213, 203, 0.48),
        28vw 62vh rgba(119, 146, 177, 0.68),
        37vw 43vh rgba(255, 255, 255, 0.58),
        46vw 19vh rgba(217, 213, 203, 0.42),
        54vw 74vh rgba(119, 146, 177, 0.64),
        63vw 48vh rgba(255, 255, 255, 0.52),
        69vw 11vh rgba(217, 213, 203, 0.58),
        77vw 92vh rgba(119, 146, 177, 0.56),
        86vw 57vh rgba(255, 255, 255, 0.62),
        95vw 31vh rgba(217, 213, 203, 0.46);
}

.stars--two::after {
    width: 2px;
    height: 2px;
    box-shadow:
        9vw 18vh 5px rgba(195, 163, 106, 0.48),
        23vw 72vh 4px rgba(255, 255, 255, 0.64),
        41vw 9vh 5px rgba(119, 146, 177, 0.52),
        59vw 86vh 4px rgba(195, 163, 106, 0.44),
        74vw 37vh 5px rgba(255, 255, 255, 0.58),
        89vw 69vh 4px rgba(119, 146, 177, 0.56);
}

.stars--three {
    opacity: 0.42;
    transform: translate3d(
        var(--parallax-front-x),
        calc(var(--parallax-front-y) + var(--scroll-mid)),
        0
    );
    animation: stars-drift-three 23s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

.stars--three::before {
    width: 2px;
    height: 2px;
    box-shadow:
        12vw 57vh 5px rgba(255, 255, 255, 0.72),
        30vw 14vh 4px rgba(217, 213, 203, 0.66),
        49vw 46vh 5px rgba(255, 255, 255, 0.68),
        67vw 21vh 4px rgba(195, 163, 106, 0.56),
        81vw 54vh 5px rgba(255, 255, 255, 0.7),
        94vw 8vh 4px rgba(217, 213, 203, 0.62);
}

.stars--three::after {
    width: 1px;
    height: 1px;
    box-shadow:
        18vw 89vh 3px rgba(119, 146, 177, 0.68),
        38vw 66vh 4px rgba(255, 255, 255, 0.72),
        58vw 25vh 3px rgba(217, 213, 203, 0.62),
        72vw 82vh 4px rgba(255, 255, 255, 0.68),
        87vw 40vh 3px rgba(195, 163, 106, 0.58);
}

@keyframes stars-drift-three {
    from { opacity: 0.26; }
    48% { opacity: 0.7; }
    to { opacity: 0.4; }
}

.interaction-glow {
    z-index: 21;
}

.portal-list a {
    position: relative;
    overflow: hidden;
    padding-right: 0;
    padding-left: 0;
    background: transparent;
}

.portal-list a::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        transparent 10%,
        rgba(195, 163, 106, 0.075) 40%,
        transparent 50%,
        transparent 100%
    );
    content: '';
    opacity: 0;
    pointer-events: none;
    transition: opacity 720ms ease;
}

.portal-list a:hover {
    padding-right: 0;
    padding-left: 0;
    background: transparent;
}

.portal-list a:hover::before {
    opacity: 1;
}

.portal-list span,
.portal-list small {
    position: relative;
    z-index: 1;
}

.portal-list span {
    margin-left: 10%;
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), text-shadow 300ms ease;
}

.portal-list a:hover span {
    transform: translateX(0.75rem);
}

.is-page-entering main,
.is-page-entering .site-footer {
    animation: page-soft-in 240ms ease-out both;
}

.is-page-leaving main,
.is-page-leaving .site-footer {
    animation: page-soft-out 140ms ease-in both;
}

@keyframes page-soft-in {
    from {
        opacity: 0;
        filter: blur(0.25rem);
        transform: translate3d(0, 0.35rem, 0);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translate3d(0, 0, 0);
    }
}

@keyframes page-soft-out {
    from {
        opacity: 1;
        filter: blur(0);
    }
    to {
        opacity: 0.5;
        filter: blur(0.2rem);
    }
}

@media (max-width: 46rem) {
    .portal-list span,
    .portal-list small {
        margin-left: 10%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stars--three,
    .is-page-entering main,
    .is-page-entering .site-footer,
    .is-page-leaving main,
    .is-page-leaving .site-footer {
        animation: none !important;
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }
}

/* Motion layer ----------------------------------------------------------- */

main,
.site-footer {
    position: relative;
    z-index: 1;
    transition:
        opacity 180ms ease,
        transform 220ms ease;
}

.ambient-cosmos {
    position: fixed;
    z-index: 0;
    inset: -18%;
    overflow: hidden;
    opacity: 0.56;
    pointer-events: none;
}

.ambient-shadow {
    position: absolute;
    display: block;
    border-radius: 46%;
    will-change: transform;
}

.ambient-shadow--one {
    top: 8%;
    left: 5%;
    width: 42vw;
    height: 27vw;
    background: radial-gradient(ellipse, rgba(24, 37, 54, 0.3), transparent 70%);
    animation: ambient-drift-one 38s ease-in-out infinite alternate;
}

.ambient-shadow--two {
    right: 2%;
    bottom: 4%;
    width: 36vw;
    height: 36vw;
    background: radial-gradient(circle, rgba(195, 163, 106, 0.05), transparent 70%);
    animation: ambient-drift-two 46s ease-in-out infinite alternate;
}

@keyframes ambient-drift-one {
    0% { opacity: 0.42; transform: translate3d(-8%, -4%, 0) rotate(-8deg) scale(0.92); }
    48% { opacity: 0.72; transform: translate3d(38%, 24%, 0) rotate(9deg) scale(1.12); }
    100% { opacity: 0.48; transform: translate3d(74%, 4%, 0) rotate(-2deg) scale(0.98); }
}

@keyframes ambient-drift-two {
    0% { opacity: 0.34; transform: translate3d(8%, 10%, 0) scale(1); }
    52% { opacity: 0.68; transform: translate3d(-28%, -24%, 0) scale(1.18); }
    100% { opacity: 0.42; transform: translate3d(-54%, 8%, 0) scale(0.9); }
}

.interaction-glow {
    position: fixed;
    z-index: 8;
    width: 22rem;
    height: 22rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(195, 163, 106, 0.075), rgba(62, 86, 116, 0.025) 38%, transparent 70%);
    opacity: 0;
    pointer-events: none;
    transform: translate3d(calc(var(--impact-x) - 50%), calc(var(--impact-y) - 50%), 0) scale(0.72);
    transition: opacity 700ms ease, transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.is-hovering .interaction-glow {
    opacity: 1;
    transform: translate3d(calc(var(--impact-x) - 50%), calc(var(--impact-y) - 50%), 0) scale(1);
}

.starfield::before,
.starfield::after {
    position: absolute;
    border-radius: 50%;
    content: '';
    pointer-events: none;
    will-change: transform;
}

.starfield::before {
    z-index: 1;
    top: -18%;
    left: -26%;
    width: 68vw;
    height: 48vw;
    background: radial-gradient(ellipse, rgba(4, 7, 11, 0.48), transparent 72%);
    animation: cosmic-shadow-pass 34s ease-in-out infinite;
}

.starfield::after {
    z-index: 1;
    right: 2%;
    bottom: 18%;
    width: 34vw;
    height: 18vw;
    background: radial-gradient(ellipse, rgba(54, 79, 109, 0.12), transparent 72%);
    animation: nebula-breathe 19s ease-in-out infinite alternate;
}

@keyframes cosmic-shadow-pass {
    0%, 100% { opacity: 0.28; transform: translate3d(-18%, -8%, 0) rotate(-10deg) scale(0.86); }
    42% { opacity: 0.7; transform: translate3d(92%, 38%, 0) rotate(12deg) scale(1.16); }
    70% { opacity: 0.46; transform: translate3d(138%, 2%, 0) rotate(-4deg) scale(0.94); }
}

@keyframes nebula-breathe {
    0% { opacity: 0.25; transform: translate3d(12%, 8%, 0) scale(0.86); }
    100% { opacity: 0.72; transform: translate3d(-18%, -12%, 0) scale(1.18); }
}

.stars--one {
    transform: translate3d(
        var(--parallax-back-x),
        calc(var(--parallax-back-y) + var(--scroll-back)),
        0
    );
    animation: stars-drift-one 28s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

.stars--two {
    transform: translate3d(
        var(--parallax-mid-x),
        calc(var(--parallax-mid-y) + var(--scroll-mid)),
        0
    );
    animation: stars-drift-two 19s ease-in-out -7s infinite alternate;
    will-change: transform, opacity;
}

@keyframes stars-drift-one {
    0% { opacity: 0.3; }
    38% { opacity: 0.57; }
    72% { opacity: 0.38; }
    100% { opacity: 0.64; }
}

@keyframes stars-drift-two {
    0% { opacity: 0.2; }
    46% { opacity: 0.62; }
    100% { opacity: 0.33; }
}

.horizon {
    transform: translate3d(
        var(--parallax-mid-x),
        calc(var(--parallax-mid-y) + var(--scroll-mid)),
        0
    ) rotate(-15deg);
    will-change: transform;
}

.planet {
    border: 0;
    background: none;
    box-shadow: none;
    transform: translate3d(
        var(--parallax-front-x),
        calc(var(--parallax-front-y) + var(--scroll-front)),
        0
    );
    will-change: transform;
}

.planet::before {
    content: none;
}

.planet-surface {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(195, 163, 106, 0.28);
    border-radius: 50%;
    background:
        radial-gradient(circle at 37% 28%, rgba(114, 135, 157, 0.35), transparent 8%),
        radial-gradient(circle at 40% 36%, rgba(72, 91, 114, 0.58), transparent 28%),
        radial-gradient(ellipse at 72% 60%, rgba(32, 44, 61, 0.7), transparent 24%),
        linear-gradient(145deg, #263446 0%, #161e29 35%, #0a0c10 72%);
    box-shadow:
        -2rem -1rem 7rem rgba(66, 96, 133, 0.15),
        -0.3rem -0.3rem 0.8rem rgba(195, 163, 106, 0.12);
    animation: planet-turn 110s linear infinite;
    will-change: transform;
}

.planet-surface::before,
.planet-surface::after {
    position: absolute;
    border-radius: 50%;
    content: '';
}

.planet-surface::before {
    inset: 7% 16%;
    border-top: 1px solid rgba(217, 213, 203, 0.08);
    transform: rotate(-16deg);
}

.planet-surface::after {
    inset: 18% -8%;
    border-top: 1px solid rgba(119, 146, 177, 0.07);
    border-bottom: 1px solid rgba(10, 12, 16, 0.5);
    transform: rotate(24deg);
}

@keyframes planet-turn {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-orbit {
    transform: translate3d(var(--parallax-front-x), var(--parallax-front-y), 0);
    will-change: transform;
}

.hero-orbit::after {
    position: absolute;
    inset: -0.35rem;
    border-top: 1px solid rgba(195, 163, 106, 0.28);
    border-radius: 50%;
    content: '';
    animation: orbital-turn 24s linear infinite;
}

.orbital-index {
    transform: translate3d(var(--parallax-back-x), var(--parallax-back-y), 0);
    animation: orbital-breathe 15s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

@keyframes orbital-turn {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbital-breathe {
    from { opacity: 0.62; }
    to { opacity: 1; }
}

.brand-mark span {
    animation: brand-orbit 22s linear infinite;
}

.brand:hover .brand-mark span {
    animation-duration: 7s;
}

@keyframes brand-orbit {
    from { transform: rotate(-24deg); }
    to { transform: rotate(336deg); }
}

.main-nav a:hover,
.portal-list a:hover span {
    text-shadow: 0 0 1.25rem rgba(195, 163, 106, 0.25);
}

.portal-list a {
    background: linear-gradient(90deg, transparent, transparent);
    transition:
        padding 200ms ease,
        border-color 200ms ease,
        background 700ms ease;
}

.portal-list a:hover {
    background: linear-gradient(90deg, rgba(195, 163, 106, 0.055), transparent 72%);
}

.motion-ready [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 1.35rem, 0);
    transition:
        opacity 650ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.motion-ready [data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.motion-ready .portal-list a[data-reveal]:nth-child(2) { transition-delay: 90ms; }
.motion-ready .portal-list a[data-reveal]:nth-child(3) { transition-delay: 180ms; }
.motion-ready .portal-list a[data-reveal]:nth-child(4) { transition-delay: 270ms; }

.empty-stage.is-visible .empty-stage__line span {
    animation: archive-line-breathe 5s ease-in-out infinite alternate;
}

@keyframes archive-line-breathe {
    from { opacity: 0.22; transform: scaleX(0.72); }
    to { opacity: 0.58; transform: scaleX(1); }
}

@media (max-width: 46rem) {
    .ambient-cosmos { opacity: 0.38; }
    .ambient-shadow { animation: none; }
    .interaction-glow { display: none; }

    .motion-ready [data-reveal] {
        transform: translate3d(0, 1.5rem, 0);
    }

    .motion-ready [data-reveal].is-visible {
        transform: translate3d(0, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ambient-shadow,
    .stars,
    .planet-surface,
    .hero-orbit::after,
    .orbital-index,
    .brand-mark span,
    .empty-stage__line span {
        animation: none !important;
    }

    .interaction-glow {
        display: none !important;
    }

    .motion-ready [data-reveal],
    .motion-ready [data-reveal].is-visible,
    .is-page-leaving main,
    .is-page-leaving .site-footer {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Final cascade overrides for the motion layer. */

.interaction-glow {
    z-index: 21;
}

.portal-list a,
.portal-list a:hover {
    background: transparent;
}

.portal-list a:hover::before,
.portal-list a:focus-visible::before {
    opacity: 1;
}

.portal-list a:focus-visible span {
    transform: translateX(0.75rem);
}

/* Footer map and information pages. */

.document-hero {
    min-height: 48svh;
    padding-top: clamp(8rem, 14vw, 13rem);
    padding-bottom: clamp(4rem, 7vw, 7rem);
    border-bottom: 1px solid var(--line);
}

.document-hero h1 {
    max-width: 11ch;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(3.8rem, 8vw, 8rem);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 0.92;
}

.configuration-warning {
    margin-top: 2rem;
    padding-top: 1.4rem;
    padding-bottom: 1.4rem;
    border: 1px solid rgba(195, 163, 106, 0.28);
    background: rgba(195, 163, 106, 0.045);
}

.configuration-warning strong {
    display: block;
    color: var(--gold);
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 400;
}

.configuration-warning p {
    max-width: 66rem;
    margin: 0.45rem 0 0;
    color: rgba(217, 213, 203, 0.7);
}

code {
    color: rgba(217, 213, 203, 0.82);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.9em;
}

.document-layout {
    display: grid;
    grid-template-columns: minmax(12rem, 0.34fr) minmax(0, 1fr);
    gap: clamp(4rem, 10vw, 10rem);
    padding-top: clamp(5rem, 9vw, 9rem);
    padding-bottom: clamp(7rem, 12vw, 12rem);
}

.document-index {
    position: sticky;
    top: 8rem;
    align-self: start;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gold);
}

.document-index > p {
    margin: 0 0 1.2rem;
    color: var(--gold);
    font-size: 0.875rem;
    font-weight: 650;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.document-index nav {
    display: grid;
    gap: 0.68rem;
}

.document-index a {
    color: var(--steel);
    font-size: 0.9rem;
    transition: color 180ms ease, padding-left 240ms ease;
}

.document-index a:hover {
    padding-left: 0.3rem;
    color: var(--ivory);
}

.document-index small {
    display: block;
    margin-top: 2rem;
    color: rgba(119, 123, 131, 0.72);
    font-size: 0.75rem;
    line-height: 1.5;
}

.document-content {
    width: min(100%, 58rem);
}

.document-section {
    padding: 0 0 clamp(3.5rem, 7vw, 6rem);
}

.document-section + .document-section {
    padding-top: clamp(3.5rem, 7vw, 6rem);
    border-top: 1px solid var(--line);
}

.document-kicker {
    margin: 0 0 1rem;
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 650;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.document-section h2 {
    margin: 0 0 1.6rem;
    font-family: var(--serif);
    font-size: clamp(2.1rem, 4vw, 3.5rem);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.05;
}

.document-section p,
.document-section li {
    color: rgba(217, 213, 203, 0.72);
    font-size: 1rem;
}

.document-section p {
    max-width: 52rem;
}

.inline-link,
.document-links a {
    color: var(--ivory);
    border-bottom: 1px solid rgba(195, 163, 106, 0.52);
    transition: color 180ms ease, border-color 180ms ease;
}

.inline-link:hover,
.document-links a:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.legal-status {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin: 1rem 0;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(166, 110, 101, 0.34);
    color: #d5aaa2 !important;
    font-size: 0.875rem !important;
}

.legal-status span {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #a66e65;
}

.legal-status--ready {
    border-color: rgba(195, 163, 106, 0.34);
    color: var(--gold) !important;
}

.legal-status--ready span {
    background: var(--gold);
    box-shadow: 0 0 0.8rem rgba(195, 163, 106, 0.42);
}

.legal-data {
    margin: 2rem 0 0;
    border-top: 1px solid var(--line);
}

.legal-data > div {
    display: grid;
    grid-template-columns: minmax(9rem, 0.42fr) minmax(0, 1fr);
    gap: 2rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
}

.legal-data dt {
    color: var(--steel);
    font-size: 0.8rem;
    font-weight: 650;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.legal-data dd {
    margin: 0;
    color: rgba(217, 213, 203, 0.78);
}

.document-list,
.document-links {
    display: grid;
    gap: 0.85rem;
    margin: 1.6rem 0;
    padding-left: 1.2rem;
}

.policy-table {
    margin: 2rem 0;
    border-top: 1px solid var(--line);
}

.policy-table [role='row'] {
    display: grid;
    grid-template-columns: minmax(10rem, 0.45fr) minmax(0, 1fr);
    gap: 2rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
}

.policy-table strong,
.policy-table span {
    font-size: 0.95rem;
}

.policy-table strong {
    color: var(--gold);
    font-weight: 600;
}

.policy-table span:first-child {
    color: var(--ivory);
}

.policy-table span:last-child {
    color: rgba(217, 213, 203, 0.7);
}

.form-privacy {
    margin: -0.2rem 0 0;
    color: var(--steel);
    font-size: 0.8rem;
    line-height: 1.65;
}

.form-privacy a {
    color: rgba(217, 213, 203, 0.82);
    border-bottom: 1px solid rgba(195, 163, 106, 0.42);
}

@media (max-width: 68rem) {
    .footer-main,
    .document-layout {
        grid-template-columns: 1fr;
    }

    .footer-map {
        gap: 2rem;
    }

    .document-index {
        position: static;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 1rem 3rem;
    }

    .document-index nav {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, 1fr);
    }

    .document-index small {
        margin: 0;
    }
}

@media (max-width: 46rem) {
    .footer-map {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-column:last-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.6rem;
    }

    .document-hero {
        min-height: 42svh;
    }

    .document-hero h1 {
        font-size: clamp(3.4rem, 17vw, 5.4rem);
    }

    .document-index nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .legal-data > div,
    .policy-table [role='row'] {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* Final star visibility overrides must follow the motion layer. */

.home-page .starfield {
    background:
        radial-gradient(ellipse at 70% 42%, rgba(67, 91, 122, 0.2), transparent 27%),
        radial-gradient(ellipse at 56% 38%, rgba(195, 163, 106, 0.065), transparent 26%),
        linear-gradient(125deg, #090c11 20%, #101722 65%, #090b0f);
}

.home-page .stars::before,
.home-page .stars::after {
    filter: none;
}

.home-page .stars--one {
    animation: stars-visible-one 14s ease-in-out -2s infinite alternate;
}

.home-page .stars--two {
    filter: none;
    animation: stars-visible-two 11s ease-in-out -6s infinite alternate;
}

.home-page .stars--three {
    filter: none;
    animation: stars-visible-three 9s ease-in-out -3s infinite alternate;
}

