/* ═══════════════════════════════════════════════════════════════
   AURORA — shared rehaul layer.
   Atmosphere, banner ornament, icon sizing, first-load intro.
   Everything degrades to the live layout if this sheet is absent.
   ═══════════════════════════════════════════════════════════════ */

/* ── Static surface ──────────────────────────────────────────
   No atmosphere canvas, no aurora wash, no animated glow. The site is
   deliberately flat: black field, faint technical grid, text and borders.
   ─────────────────────────────────────────────────────────────── */
#js-chrome {
    position: relative;
    z-index: 3;
}

#js-footer,
.xwrap {
    position: relative;
    z-index: 1;
}

.xwrap { isolation: isolate; }

/* ── Icons ──────────────────────────────────────────────────── */
.xi {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.12em;
    flex: none;
}

.xtop__links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.xtop__ico {
    width: 13px;
    height: 13px;
    opacity: 0.5;
    transition: opacity var(--speed-fast), color var(--speed-fast);
}

.xtop__links a:hover .xtop__ico,
.xtop__links a.is-active .xtop__ico {
    opacity: 1;
    color: var(--red);
}

.xkicker__text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.xkicker__ico {
    width: 14px;
    height: 14px;
    color: var(--red);
    margin-right: 1px;
}

.xi--foot {
    width: 11px;
    height: 11px;
    margin-right: 5px;
    opacity: 0.6;
    vertical-align: -0.05em;
}

.xfoot__links a { display: inline-flex; align-items: center; }

/* ── Banner label ───────────────────────────────────────────── */
.xbanner__tag {
    position: absolute;
    top: 78px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.58rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-3);
    pointer-events: none;
    user-select: none;
}

.xbanner__tag span {
    color: var(--red);
    font-variant-numeric: tabular-nums;
}

.xbanner__tag::before {
    content: "";
    width: 24px;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 1200px) {
    .xtop__ico { display: none; }
    .xtop__links a { gap: 0; }
}

@media (max-width: 900px) {
    .xbanner__tag { display: none; }
}

/* Personal greeting under the entry hero. */
.xhello {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 0;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
}

.xhello::before {
    content: "";
    width: 18px;
    height: 1px;
    background: var(--red);
}

.xhello[hidden] { display: none; }

/* Philosophy: static rules; hover only changes the border. */
.doctrine { position: relative; overflow: hidden; }

.principle { transition: border-color 250ms ease, background 250ms ease; }
.principle:hover { border-color: rgba(255, 32, 32, 0.32); }

/* ── First-load introduction ───────────────────────────────── */
body.xintro-open { overflow: hidden; }

.xintro {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: grid;
    place-items: center;
    padding: 28px;
    overflow: hidden;
    background: rgba(3, 3, 4, 0.97);
    opacity: 0;
    visibility: hidden;
    transition: opacity 420ms ease, visibility 0s linear 420ms;
}

.xintro.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 420ms ease;
}

.xintro.is-closing {
    opacity: 0;
    visibility: visible;
    pointer-events: none;
}

.xintro__in {
    position: relative;
    z-index: 2;
    width: min(720px, calc(100vw - 48px));
    max-height: calc(100vh - 24px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 30px 38px 22px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: #08080a;
    transform: translateY(14px) scale(0.99);
    opacity: 0;
    transition: transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 480ms ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.xintro.is-open .xintro__in { transform: none; opacity: 1; }

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

.xintro__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 24px;
}

.xintro__brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    color: var(--text-2);
    text-transform: uppercase;
}

.xintro__brand em {
    font-style: normal;
    color: var(--red);
    font-size: 0.58rem;
    letter-spacing: 0.22em;
}

.xintro__progress { display: flex; gap: 6px; }

.xintro__progress i {
    display: block;
    width: 26px;
    height: 2px;
    background: rgba(255, 255, 255, 0.10);
    transition: background 300ms ease, box-shadow 300ms ease;
}

.xintro__progress i.is-done { background: rgba(255, 32, 32, 0.5); }
.xintro__progress i.is-active {
    background: var(--red);
}

.xintro__slides {
    display: grid;
    align-items: center;
    min-height: 320px;
}

.xintro__slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition:
        opacity 420ms ease,
        transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
        visibility 0s linear 420ms;
}

.xintro__slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 420ms ease, transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.xintro__eyebrow {
    margin: 0 0 12px;
    font-size: 0.6rem;
    letter-spacing: 0.24em;
    color: var(--red);
    text-transform: uppercase;
}

.xintro__display {
    display: block;
    margin: 0 0 16px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(4.4rem, 12vw, 7.8rem);
    font-weight: 700;
    line-height: 0.82;
    letter-spacing: -0.055em;
    color: var(--text-1);
}

.xintro__display span { color: var(--red); }

.xintro__rule {
    display: block;
    width: 72px;
    height: 1px;
    margin: 0 0 20px;
    background: linear-gradient(90deg, var(--red), transparent);
}

.xintro__title {
    margin: 0 0 10px;
    max-width: 20ch;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.9rem, 4.2vw, 3.0rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text-1);
}

.xintro__copy {
    margin: 0;
    max-width: 56ch;
    color: var(--text-2);
    font-size: 0.9rem;
    line-height: 1.70;
}

.xintro__note {
    margin: 20px 0 0;
    padding-top: 14px;
    max-width: 56ch;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-3);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.58rem;
    line-height: 1.65;
    letter-spacing: 0.08em;
}

.xintro__meta {
    margin: 12px 0 0;
    font-size: 0.56rem;
    letter-spacing: 0.18em;
    color: var(--text-3);
    text-transform: uppercase;
}

.xintro__form { margin-top: 16px; }

.xintro__label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    color: var(--text-3);
    text-transform: uppercase;
}

.xintro__label span { color: rgba(255, 255, 255, 0.28); }

.xintro__field {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    transition: border-color 200ms ease;
}

.xintro__field:focus-within { border-color: var(--red); }
.xintro__prompt { color: var(--red); font-size: 0.9rem; }

.xintro__input {
    flex: 1;
    min-width: 0;
    padding: 10px 0;
    border: 0;
    background: transparent;
    color: var(--text-1);
    font: inherit;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    outline: none;
    caret-color: var(--red);
}

.xintro__input::placeholder { color: var(--text-3); opacity: 0.7; }

.xintro__input:focus,
.xintro__input:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.xintro__actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.xintro__enter,
.xintro__replay {
    font: inherit;
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    border: 0;
    background: none;
    color: var(--text-2);
    padding: 10px 0;
}

.xintro__enter {
    padding: 11px 20px;
    background: var(--red);
    color: #000;
    font-weight: 700;
    transition: transform 200ms ease;
}

.xintro__enter:hover {
    transform: translateY(-1px);
}

.xintro__enter span { margin-left: 8px; }

.xintro__replay { color: var(--red); }
.xintro__replay:hover { color: var(--text-1); }
.xintro__replay[hidden] { display: none; }

.xintro__foot {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.xintro__counter {
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    color: var(--text-3);
}

.xintro__spacer { flex: 1; }

.xintro__back,
.xintro__next,
.xintro__skip {
    font: inherit;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    background: none;
    color: var(--text-2);
}

.xintro__back {
    border: 0;
    padding: 8px 0;
    color: var(--text-3);
    transition: color 200ms ease;
}

.xintro__back:hover { color: var(--text-1); }
.xintro__back[hidden],
.xintro__next[hidden] { display: none; }

.xintro__next {
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-1);
    transition: border-color 200ms ease, color 200ms ease, background 200ms ease;
}

.xintro__next:hover {
    border-color: var(--red);
    background: rgba(255, 32, 32, 0.04);
    color: var(--red);
}

.xintro__next span { color: var(--red); margin-left: 7px; }
.xintro__skip { border: 0; padding: 8px 0; color: var(--text-3); transition: color 200ms ease; }
.xintro__skip:hover { color: var(--text-1); }

.xintro__fine {
    margin: 14px 0 0;
    font-size: 0.56rem;
    letter-spacing: 0.06em;
    color: var(--text-3);
}

@media (max-width: 760px) {
    .xintro { padding: 14px; }
    .xintro__in {
        width: calc(100vw - 28px);
        padding: 24px 22px 20px;
        max-height: calc(100vh - 28px);
    }
    .xintro__slides { min-height: 360px; }
    .xintro__title { font-size: clamp(1.7rem, 7vw, 2.3rem); }
    .xintro__display { font-size: clamp(4rem, 22vw, 6rem); }
    .xintro__copy { font-size: 0.84rem; }
    .xintro__progress i { width: 18px; }
    .xintro__foot { gap: 12px; }
}

@media (max-width: 420px) {
    .xintro__top { gap: 10px; }
    .xintro__brand em { display: none; }
    .xintro__slides { min-height: 400px; }
    .xintro__actions { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .xbanner__tag,
    .xintro__progress i {
        transition: none !important;
    }
    .xintro,
    .xintro__in,
    .xintro__slide {
        transition: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ECOSYSTEM THEMES — the member pages already own a bespoke world
   (NV observatory, SP velocity lab, SU channel, VX synth lab, XTR
   founder star). SPECTRA is deliberately not layered on top of them;
   these variables simply align the shared chrome with each world.
   ═══════════════════════════════════════════════════════════════ */
body[data-member="xtrcom"] {
    --red: #ff2020;
    --red-glow: rgba(255, 32, 32, 0.42);
    --amb: rgba(255, 32, 32, 0.06);
    --amb2: rgba(255, 120, 40, 0.03);
}
body[data-member="nv"] {
    --red: #a855f7;
    --red-glow: rgba(168, 85, 247, 0.42);
    --amb: rgba(168, 85, 247, 0.07);
    --amb2: rgba(110, 70, 220, 0.035);
}
body[data-member="sp"] {
    --red: #4488ff;
    --red-glow: rgba(68, 136, 255, 0.42);
    --amb: rgba(68, 136, 255, 0.07);
    --amb2: rgba(40, 100, 220, 0.035);
}
body[data-member="su"] {
    --red: #e8e6e3;
    --red-glow: rgba(232, 230, 227, 0.35);
    --amb: rgba(232, 230, 227, 0.045);
    --amb2: rgba(232, 230, 227, 0.022);
}
body[data-member="vx"] {
    --red: #9adcff;
    --red-glow: rgba(154, 220, 255, 0.40);
    --amb: rgba(154, 220, 255, 0.06);
    --amb2: rgba(100, 190, 240, 0.03);
}

/* ═══════════════════════════════════════════════════════════════
   COPYRIGHTS & LICENSES
   ═══════════════════════════════════════════════════════════════ */
.lic-table-wrap {
    margin: 18px 0 10px;
    overflow-x: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.lic-table {
    width: 100%;
    min-width: 660px;
    border-collapse: collapse;
    font-size: 0.76rem;
}
.lic-table th {
    padding: 11px 14px 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    text-align: left;
    font-size: 0.54rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
    white-space: nowrap;
}
.lic-table td {
    padding: 13px 14px 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: top;
    line-height: 1.65;
    color: var(--text-2);
}
.lic-table td:first-child { color: var(--text-1); }
.lic-table code {
    color: var(--text-1);
    font-size: 0.72rem;
    white-space: nowrap;
}
.lic-table a {
    color: var(--text-1);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 32, 32, 0.35);
}
.lic-table a:hover { color: var(--red); border-color: var(--red); }
.lic-table small {
    display: block;
    margin-top: 3px;
    font-size: 0.66rem;
    line-height: 1.5;
    color: var(--text-3);
}
.lic-tag {
    display: inline-block;
    padding: 3px 7px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.56rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-1);
    white-space: nowrap;
}
.lic-tag--muted { color: var(--text-3); border-color: rgba(255, 255, 255, 0.10); }
.legal-callout {
    margin: 18px 0;
    padding: 14px 16px;
    border-left: 2px solid var(--red);
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-2);
    font-size: 0.84rem;
    line-height: 1.75;
}
.legal-callout strong { color: var(--text-1); }
.legal-note {
    margin-top: 12px;
    color: var(--text-3);
    font-size: 0.72rem;
    line-height: 1.8;
}
@media (max-width: 700px) {
    .lic-table { min-width: 600px; }
}

/* Dossier IDs are long and unbreakable; let the grid item shrink and the
   title wrap instead of forcing a 600px column on a phone. */
.dfile { min-width: 0; }
.dfile__head h1,
.dfile__head .dfile__one { overflow-wrap: anywhere; }

@media (max-width: 820px) {
    .dossier-grid { grid-template-columns: minmax(0, 1fr); }
    .dfile__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .direct__where { white-space: normal; overflow-wrap: anywhere; }
}

/* ═══════════════════════════════════════════════════════════════
   STATIC SURFACE
   The rehaul is deliberately flat. No ambient animation, no glow,
   no soft shadow, no blur. Keep the grid and the borders; everything
   else is information.
   ═══════════════════════════════════════════════════════════════ */
html { scroll-behavior: auto; }

*,
*::before,
*::after {
    animation: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    filter: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

/* Remove the two radial washes from the live background; the static
   technical grid underneath stays. */
body[data-page] {
    background-color: #000 !important;
    background-image:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 44px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 44px) !important;
}

/* The banner keeps its label, not its light show. */
.xwrap.x-has-banner::before,
.xwrap.x-has-banner::after {
    display: none !important;
}

/* Page-local glows that were painted with background gradients. */
#sp-flash,
.red-alert-vignette {
    background: transparent !important;
}

/* The archived hire hero keeps its brand block, without the gradient halo. */
.dhero.art::before {
    background: var(--brand) !important;
}
