@import url('/css/fonts/stu-fonts.css');
/* ═══════════════════════════════════════════════════════
   STARLIGHT UNIT · E.M.B.E.R. RESEARCH & ARCHITECTURE SITE
   research.starlight-unit.de
   Eigenstaendiges blaues Holo-Design (kuehles Neuronen-Blau
   als Leitfarbe) mit sparsamem Kupfer-Akzent nur fuer Status-
   Warnungen -- bewusst KEINE Bernstein/Amber-Variante der
   books_site, siehe DEVLOG v1.1.1.78.
═══════════════════════════════════════════════════════ */

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

:root {
    --void:       #050810;
    --surface:    #0a1220;
    --elevated:   #0f1c30;
    /* Primaerakzent: kuehles Neuronen-Blau -- die research_site ist eigenstaendig
       blau/holografisch, NICHT die Bernstein-Palette der books_site. Die Variable
       heisst weiterhin --ember (historisch gewachsen, s. DEVLOG), traegt aber jetzt
       den blauen Wert, damit die ~40 bestehenden var(--ember)-Referenzen im Rest
       dieser Datei ohne Suchen&Ersetzen automatisch auf Blau umspringen. */
    --ember:      #6fbaff;
    --ember-hi:   #b8dcff;
    --ember-dim:  rgba(111,186,255,0.14);
    /* Sekundaerakzent: warmes Kupfer, NUR fuer Status-Warnungen ("in Ausbau" etc.)
       und den Reputations-/XP-Bereich -- bewusst selten eingesetzt. */
    --cyan:       #ffb35c;
    --cyan-dim:   rgba(255,179,92,0.13);
    --copper:     #e2793f;
    --text:       #dce6f5;
    --text-sub:   #7d93ac;
    --text-muted: #445a72;
    --border:     rgba(111,186,255,0.11);
    --border-mid: rgba(111,186,255,0.26);
    --max-w:      1100px;
}

html { scroll-behavior: smooth; }
body {
    background: var(--void);
    color: var(--text);
    font-family: 'Spectral', Georgia, serif;
    font-weight: 300;
    line-height: 1.75;
    overflow-x: hidden;
}

/* ── STARFIELD ────────────────────────────── */
#starfield { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.scanlines {
    position: fixed; inset: 0; z-index: 1; pointer-events: none;
    background: repeating-linear-gradient(0deg,transparent,transparent 2px,rgba(0,0,0,0.03) 2px,rgba(0,0,0,0.03) 4px);
}
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.ambient::before {
    content: ''; position: absolute; top: -20%; left: -15%; width: 60%; height: 60%;
    background: radial-gradient(circle,rgba(111,186,255,0.05) 0%,transparent 70%);
}
.ambient::after {
    content: ''; position: absolute; bottom: -20%; right: -15%; width: 50%; height: 50%;
    background: radial-gradient(circle,rgba(111,186,255,0.03) 0%,transparent 70%);
}

/* ── HOLO EDGE FRAME · Neuronen-Feuer an den Raendern ──
   E.M.B.E.R.s "Gedanken" als Synapsen-Blitze: mehrere verzweigte,
   unregelmaessig zuendende Energielinien entlang der Viewport-Kanten,
   nicht nur vier kurze Eck-Striche. */
.holo-frame { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.holo-frame::before {
    content: '';
    position: absolute; inset: 10px;
    border: 1px solid rgba(111,186,255,0.18);
    border-radius: 22px;
    box-shadow:
        inset 0 0 40px rgba(111,186,255,0.06),
        0 0 70px rgba(111,186,255,0.05);
    animation: holoBreathe 5s ease-in-out infinite;
}
@keyframes holoBreathe {
    0%,100% { opacity: 0.55; }
    50%     { opacity: 1; }
}
.holo-bolt {
    position: absolute;
    background: linear-gradient(180deg, transparent, var(--ember-hi), var(--ember), transparent);
    opacity: 0;
    filter: drop-shadow(0 0 7px rgba(111,186,255,0.95)) drop-shadow(0 0 14px rgba(111,186,255,0.4));
    animation: holoBolt 8s ease-in-out infinite;
}
.holo-bolt--h { background: linear-gradient(90deg, transparent, var(--ember-hi), var(--ember), transparent); }
/* Ecken: laenger, klar sichtbar statt 2px-Mini-Striche */
.holo-bolt--tl { top: 0;    left: 4%;   width: 2.5px; height: 130px; animation-delay: 0.2s; clip-path: polygon(50% 0,100% 38%,58% 42%,100% 100%,0 58%,42% 52%); }
.holo-bolt--tr { top: 0;    right: 7%;  width: 2.5px; height: 95px;  animation-delay: 2.8s; clip-path: polygon(60% 0,100% 32%,55% 46%,100% 72%,15% 100%,48% 54%); }
.holo-bolt--bl { bottom: 0; left: 10%;  width: 2.5px; height: 110px; animation-delay: 4.6s; clip-path: polygon(50% 100%,100% 62%,55% 52%,100% 0,0 42%,45% 50%); }
.holo-bolt--br { bottom: 0; right: 5%;  width: 2.5px; height: 140px; animation-delay: 1.1s; clip-path: polygon(45% 100%,100% 58%,50% 48%,100% 4%,8% 44%,52% 40%); }
/* Zusaetzliche Mittelkanten-Blitze: das Feuer verteilt sich ueber den GANZEN Rand,
   nicht nur die vier Ecken -- macht den Effekt auf hohen Seiten tatsaechlich sichtbar. */
.holo-bolt--lt  { top: 22%;  left: 0;   width: 2px; height: 80px; animation-delay: 3.6s; clip-path: polygon(0 50%,100% 15%,92% 55%,100% 45%,20% 100%,45% 50%); }
.holo-bolt--lb  { top: 68%;  left: 0;   width: 2px; height: 70px; animation-delay: 6.2s; clip-path: polygon(0 50%,100% 20%,90% 58%,100% 50%,25% 100%,48% 52%); }
.holo-bolt--rt  { top: 30%;  right: 0;  width: 2px; height: 85px; animation-delay: 1.9s; clip-path: polygon(100% 50%,0 15%,8% 55%,0 45%,80% 100%,55% 50%); }
.holo-bolt--rb  { top: 76%;  right: 0;  width: 2px; height: 65px; animation-delay: 5.1s; clip-path: polygon(100% 50%,0 20%,10% 58%,0 50%,75% 100%,52% 52%); }
@keyframes holoBolt {
    0%, 88%, 100% { opacity: 0; transform: scaleY(0.4); }
    89%  { opacity: 0.95; transform: scaleY(1); }
    90.5%{ opacity: 0.15; }
    91.5%{ opacity: 1; }
    94%  { opacity: 0; }
    95%  { opacity: .55; }
    96%  { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .holo-bolt { animation: none !important; opacity: 0 !important; }
    .holo-frame::before { animation: none !important; }
}

/* ── LAYOUT WRAPPER ───────────────────────── */
.site { position: relative; z-index: 10; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

/* ── TICKER ───────────────────────────────── */
.ticker-bar {
    border-bottom: 1px solid var(--border);
    overflow: hidden; background: rgba(5,6,12,0.92); backdrop-filter: blur(10px);
}
.ticker-inner { display: flex; align-items: stretch; }
.ticker-label {
    flex-shrink: 0; padding: 8px 18px; background: var(--ember); color: var(--void);
    font-family: 'JetBrains Mono',monospace; font-size: 8.5px; font-weight: 600;
    letter-spacing: 0.15em; text-transform: uppercase; display: flex; align-items: center;
}
.ticker-scroll { overflow: hidden; flex: 1; }
.ticker-text {
    display: inline-block; white-space: nowrap; padding: 8px 0;
    font-family: 'JetBrains Mono',monospace; font-size: 8.5px; color: var(--text-sub);
    letter-spacing: 0.12em; animation: ticker 38s linear infinite;
}
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── NAVIGATION ───────────────────────────── */
.site-nav {
    position: sticky; top: 0; z-index: 200;
    background: rgba(5,6,12,0.88); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: var(--max-w); margin: 0 auto; padding: 0 40px;
    display: flex; justify-content: space-between; align-items: center;
    height: 64px; position: relative;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-mark {
    font-family: 'Syncopate',sans-serif; font-size: 11px; font-weight: 700;
    color: white; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2;
}
.nav-logo-mark span { color: var(--ember); }
.nav-links { display: flex; list-style: none; gap: 0; }
.nav-links a {
    display: block; padding: 0 18px; height: 64px; line-height: 64px;
    font-family: 'JetBrains Mono',monospace; font-size: 9.5px; font-weight: 600;
    color: var(--text-sub); text-decoration: none; letter-spacing: 0.16em;
    text-transform: uppercase; transition: color 0.2s, background 0.2s;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.nav-links a:hover { color: var(--ember); background: var(--ember-dim); }
.nav-links a.active { color: var(--ember); border-bottom-color: var(--ember); }

/* Hamburger */
.hamburger {
    display: none; flex-direction: column; justify-content: center; align-items: center;
    width: 40px; height: 40px; gap: 6px; background: none;
    border: 1px solid var(--border-mid); border-radius: 8px; cursor: pointer; padding: 8px;
}
.hamburger span { display: block; width: 20px; height: 1.5px; background: var(--ember); border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(5,6,12,0.97); border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px); z-index: 300;
    max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.22,1,0.36,1);
}
.mobile-menu.open { max-height: 400px; }
.mobile-menu a {
    display: block; padding: 15px 28px;
    font-family: 'JetBrains Mono',monospace; font-size: 11px; font-weight: 600;
    color: var(--text-sub); text-decoration: none; letter-spacing: 0.18em;
    text-transform: uppercase; border-bottom: 1px solid var(--border);
    transition: color 0.2s, background 0.2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--ember); background: var(--ember-dim); }

/* ── PAGE HERO ────────────────────────────── */
.page-hero {
    position: relative; overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.page-hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    filter: brightness(0.4) saturate(0.85);
}
.page-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(5,6,12,0.15) 0%, rgba(5,6,12,0.8) 100%);
}
/* Holo-Scan-Sweep über dem Hero — dezenter Lichtimpuls */
.page-hero::after {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(100deg, transparent 40%, rgba(111,186,255,0.05) 50%, transparent 60%);
    background-size: 250% 250%;
    animation: heroSweep 9s ease-in-out infinite;
}
@keyframes heroSweep {
    0%   { background-position: 120% 0%; }
    50%  { background-position: -20% 0%; }
    100% { background-position: 120% 0%; }
}
.page-hero-content {
    position: relative; max-width: var(--max-w); margin: 0 auto;
    padding: 72px 40px 64px;
}
.page-eyebrow {
    font-family: 'JetBrains Mono',monospace; font-size: 9px; color: var(--ember);
    letter-spacing: 0.28em; text-transform: uppercase; margin-bottom: 16px;
    display: flex; align-items: center; gap: 12px;
}
.page-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--ember); }
.page-title {
    font-family: 'Syncopate',sans-serif; font-weight: 700;
    font-size: clamp(26px,4vw,52px); color: white;
    text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.1;
    margin-bottom: 20px;
}
.page-title em { font-style: normal; color: var(--ember); }
.page-lead {
    font-size: 17px; font-style: italic; color: var(--text-sub);
    max-width: 620px; line-height: 1.9;
}

/* ── CONTENT CONTAINER ────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }

/* ── SECTION ──────────────────────────────── */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-label {
    font-family: 'JetBrains Mono',monospace; font-size: 8.5px; color: var(--text-muted);
    letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 36px;
    display: flex; align-items: center; gap: 12px;
}
.section-label::before { content: ''; width: 18px; height: 1px; background: var(--text-muted); }
.section-title {
    font-family: 'Syncopate',sans-serif; font-size: clamp(20px,3vw,32px); font-weight: 700;
    color: white; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 24px;
}

/* ── PROSE ────────────────────────────────── */
.prose { font-size: 16px; color: var(--text-sub); line-height: 1.9; }
.prose p { margin-bottom: 1.4em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; font-style: normal; }
.prose em { color: var(--ember); font-style: italic; }
.prose h3 {
    font-family: 'Syncopate',sans-serif; font-size: 13px; font-weight: 700;
    color: white; text-transform: uppercase; letter-spacing: 0.1em;
    margin: 2em 0 0.8em;
}
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { padding-left: 18px; position: relative; margin-bottom: 0.5em; }
.prose ul li::before { content: '·'; position: absolute; left: 0; color: var(--ember); }

/* ── QUOTE / FACT BLOCK ───────────────────── */
.excerpt-block {
    border-left: 3px solid var(--ember); padding: 28px 36px;
    background: linear-gradient(135deg, var(--ember-dim) 0%, transparent 100%);
    border-radius: 0 12px 12px 0; margin: 40px 0;
}
.excerpt-block p {
    font-size: 17px; font-style: italic; color: var(--text); line-height: 1.95;
    margin-bottom: 1em;
}
.excerpt-block p:last-child { margin-bottom: 0; }

/* ── BUTTONS ──────────────────────────────── */
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 26px; border-radius: 8px; font-family: 'JetBrains Mono',monospace;
    font-size: 10px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
    text-decoration: none; transition: all 0.25s; white-space: nowrap;
}
.btn-amber {
    background: var(--ember); color: var(--void);
    box-shadow: 0 0 24px rgba(111,186,255,0.25);
}
.btn-amber:hover { background: white; box-shadow: 0 0 40px rgba(111,186,255,0.45); transform: translateY(-2px); }
.btn-outline {
    border: 1px solid var(--border-mid); color: var(--text-sub);
}
.btn-outline:hover { border-color: var(--ember); color: var(--ember); transform: translateY(-2px); }
.btn-ghost-amber {
    border: 1px solid rgba(111,186,255,0.32); color: var(--ember);
}
.btn-ghost-amber:hover { border-color: var(--ember); background: var(--ember-dim); transform: translateY(-2px); }

/* ── IMAGE GRID ───────────────────────────── */
.img-grid { display: grid; gap: 16px; }
.img-grid-2 { grid-template-columns: 1fr 1fr; }
.img-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.img-card {
    border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
    background: var(--surface); position: relative;
    transition: border-color 0.3s, transform 0.3s;
    cursor: zoom-in;
}
.img-card:hover { border-color: var(--ember); transform: translateY(-4px); }
.img-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: filter 0.3s; }
.img-card:hover img { filter: brightness(1.08); }
.img-card.img-natural img { aspect-ratio: unset; object-fit: contain; max-height: 420px; background: var(--surface); }
.img-card-caption {
    padding: 14px 16px; font-family: 'JetBrains Mono',monospace;
    font-size: 8.5px; color: var(--text-muted); letter-spacing: 0.16em; text-transform: uppercase;
    border-top: 1px solid var(--border);
}

/* ── INFO GRID (2-col layout) ─────────────── */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.info-grid-wide { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; align-items: start; }

/* ── META CARD ────────────────────────────── */
.meta-card {
    border: 1px solid var(--border); border-radius: 16px; padding: 28px;
    background: linear-gradient(145deg, var(--surface) 0%, var(--void) 100%);
}
.meta-card-title {
    font-family: 'JetBrains Mono',monospace; font-size: 8.5px; color: var(--ember);
    letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 20px;
}
.meta-row { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--border); }
.meta-row:last-child { border-bottom: none; }
.meta-key { font-family: 'JetBrains Mono',monospace; font-size: 8.5px; color: var(--text-muted); letter-spacing: 0.14em; text-transform: uppercase; }
.meta-val { font-size: 13px; font-style: italic; color: var(--text-sub); text-align: right; max-width: 55%; }
.meta-val strong { color: var(--text); font-style: normal; font-weight: 600; }

/* ── ARCHITECTURE / MODULE LIST ───────────── */
.arch-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.arch-item {
    display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px;
    border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
    transition: border-color 0.25s;
}
.arch-item:hover { border-color: var(--border-mid); }
.arch-status {
    font-family: 'JetBrains Mono',monospace; font-size: 8px; padding: 4px 10px;
    border-radius: 100px; letter-spacing: 0.14em; text-transform: uppercase; flex-shrink: 0;
    white-space: nowrap; margin-top: 2px;
}
.status-live { background: rgba(111,186,255,0.12); color: var(--ember); border: 1px solid rgba(111,186,255,0.2); }
.status-active { background: rgba(255,179,92,0.12); color: var(--cyan); border: 1px solid rgba(255,179,92,0.28); }
.status-planned { background: rgba(122,173,207,0.08); color: #7aadcf; border: 1px solid rgba(122,173,207,0.2); }
.arch-body { flex: 1; }
.arch-name { font-size: 15px; color: var(--text); font-weight: 600; margin-bottom: 4px; }
.arch-desc { font-size: 13.5px; color: var(--text-sub); line-height: 1.7; }

/* ── WHITEPAPER CARDS ─────────────────────── */
.paper-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.paper-card {
    border: 1px solid var(--border); border-radius: 16px; padding: 28px 24px;
    background: linear-gradient(150deg, rgba(18,26,46,0.9) 0%, rgba(5,6,12,0.95) 100%);
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    position: relative; overflow: hidden;
}
.paper-card:hover { border-color: var(--ember); transform: translateY(-5px); box-shadow: 0 24px 50px rgba(0,0,0,0.4), 0 0 0 1px var(--ember); }
.paper-flag { font-family: 'JetBrains Mono',monospace; font-size: 8.5px; color: var(--ember); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 14px; }
.paper-card h3 { font-family: 'Syncopate',sans-serif; font-size: 15px; color: white; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 10px; line-height: 1.3; }
.paper-card p { font-size: 13.5px; color: var(--text-sub); line-height: 1.7; margin-bottom: 20px; }

/* ── LEGAL TEXT ───────────────────────────── */
.legal-body { font-size: 14px; color: var(--text-sub); line-height: 1.9; }
.legal-body h2 {
    font-family: 'Syncopate',sans-serif; font-size: 11px; font-weight: 700;
    color: var(--text); text-transform: uppercase; letter-spacing: 0.12em;
    margin: 2.5em 0 1em; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin-bottom: 1em; }
.legal-body ul { padding-left: 20px; margin-bottom: 1em; }
.legal-body a { color: var(--ember); text-decoration: none; }
.legal-body a:hover { text-decoration: underline; }
.legal-body strong { color: var(--text); }

/* ── LIGHTBOX ─────────────────────────────── */
.lightbox { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(4,5,10,0.93); backdrop-filter: blur(18px); align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox.open { display: flex; animation: lbFade 0.22s ease; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-inner { position: relative; max-width: min(90vw,880px); max-height: 92vh; cursor: default; animation: lbPop 0.28s cubic-bezier(0.22,1,0.36,1); }
@keyframes lbPop { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-img { display: block; max-width: 100%; max-height: 86vh; border-radius: 14px; border: 1px solid var(--border-mid); box-shadow: 0 40px 100px rgba(0,0,0,0.85); object-fit: contain; }
.lightbox-caption { margin-top: 12px; text-align: center; font-family: 'JetBrains Mono',monospace; font-size: 9px; color: var(--text-muted); letter-spacing: 0.2em; text-transform: uppercase; }
.lightbox-close { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%; background: #121a2e; border: 1px solid var(--border-mid); color: var(--text-sub); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; transition: color 0.2s,border-color 0.2s; }
.lightbox-close:hover { color: white; border-color: var(--ember); }

/* ── FOOTER ───────────────────────────────── */
footer {
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 150;
    background: rgba(5,6,12,0.95);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    padding: 0 40px;
    height: 52px;
    display: flex; align-items: center;
}
.footer-inner {
    max-width: var(--max-w); margin: 0 auto; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: nowrap; gap: 12px;
}
main { padding-bottom: 52px; }

@media (max-width: 820px) {
    footer { height: auto; padding: 10px 20px; flex-wrap: wrap; }
    .footer-inner { flex-wrap: wrap; gap: 8px; row-gap: 6px; }
    .footer-copy { font-size: 8px; order: 1; width: 100%; }
    .footer-links { order: 2; }
    .footer-status { display: none; }
    main { padding-bottom: 72px; }
}
.footer-copy { font-family: 'JetBrains Mono',monospace; font-size: 8.5px; color: var(--text-muted); letter-spacing: 0.16em; text-transform: uppercase; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-family: 'JetBrains Mono',monospace; font-size: 8.5px; color: var(--text-muted); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--ember); }
.footer-status { display: flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono',monospace; font-size: 8.5px; color: var(--text-muted); letter-spacing: 0.14em; text-transform: uppercase; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 6px #4ade80; animation: blink 3s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity:1; box-shadow:0 0 6px #4ade80; } 50% { opacity:.3; box-shadow:0 0 2px #4ade80; } }

/* ── FADE IN ──────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(18px); animation: fadeIn 0.8s cubic-bezier(0.22,1,0.36,1) forwards; }
.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.18s; }
.fade-in:nth-child(3) { animation-delay: 0.32s; }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }

/* ── RESEARCH HUB HOMEPAGE ────────────────── */
.research-hub-hero .page-hero-bg {
    filter: brightness(0.32) saturate(0.9);
    background-position: center 30%;
}
.hub-intro-grid { align-items: start; }
.hub-meta-card { height: 100%; }

/* ── BACK BUTTON ──────────────────────────── */
.back-btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'JetBrains Mono',monospace;
    font-size: 9px; font-weight: 600;
    color: var(--text-muted); text-decoration: none;
    letter-spacing: 0.16em; text-transform: uppercase;
    border: 1px solid var(--border);
    border-radius: 8px; padding: 8px 16px;
    transition: color 0.2s, border-color 0.2s;
}
.back-btn:hover { color: var(--ember); border-color: rgba(111,186,255,0.4); }

@media (max-width: 820px) {
    .nav-inner { padding: 0 24px; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .mobile-menu { display: block; }
    .page-hero-content { padding: 52px 24px 44px; }
    .container { padding: 0 24px; }
    .section { padding: 52px 0; }
    .info-grid, .info-grid-wide { grid-template-columns: 1fr; gap: 32px; }
    .img-grid-3 { grid-template-columns: 1fr 1fr; }
    .paper-grid { grid-template-columns: 1fr; }
    footer { padding: 0 24px; }
}
@media (max-width: 540px) {
    .img-grid-2, .img-grid-3 { grid-template-columns: 1fr; }
    .btn-row { flex-direction: column; }
    .btn { justify-content: center; }
}

/* ── PDF HOLO-VIEWER ──────────────────────── */
.paper-card { position: relative; }
.btn-view-holo {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px; border-radius: 8px; cursor: pointer;
    font-family: 'JetBrains Mono',monospace; font-size: 10.5px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    background: var(--ember); color: var(--void); border: none;
    box-shadow: 0 0 22px rgba(111,186,255,0.28); transition: all .25s;
}
.paper-card .btn-view-holo { padding: 9px 16px; font-size: 9.5px; }
.btn-view-holo:hover { transform: translateY(-2px); box-shadow: 0 0 34px rgba(111,186,255,0.42); }
.btn-view-holo svg { flex-shrink: 0; }

.holoviewer-overlay {
    position: fixed; inset: 0; z-index: 900;
    background: rgba(4,3,9,0.88); backdrop-filter: blur(6px);
    display: none; align-items: center; justify-content: center;
    padding: 28px;
}
.holoviewer-overlay.is-open { display: flex; animation: lbFade .25s ease; }

.holoviewer {
    position: relative; width: min(980px, 100%); height: min(88vh, 980px);
    background: linear-gradient(150deg, #0c0a15 0%, #050409 100%);
    border: 1px solid rgba(111,186,255,0.28); border-radius: 18px;
    box-shadow: 0 0 0 1px rgba(111,186,255,0.08), 0 40px 100px rgba(0,0,0,.6), 0 0 70px rgba(111,186,255,0.10);
    display: flex; flex-direction: column; overflow: hidden;
    animation: lbPop .3s cubic-bezier(.22,1,.36,1);
}
.holoviewer::before {
    content: ''; position: absolute; inset: 8px; border-radius: 14px; pointer-events: none;
    border: 1px solid rgba(111,186,255,0.14);
    box-shadow: inset 0 0 50px rgba(111,186,255,0.05);
    animation: holoBreathe 5s ease-in-out infinite;
}
.holoviewer-bolt {
    position: absolute; background: linear-gradient(180deg, transparent, var(--ember-hi), var(--ember), transparent);
    opacity: 0; filter: drop-shadow(0 0 6px rgba(111,186,255,0.9)); animation: holoBolt 6.4s ease-in-out infinite; pointer-events: none;
}
.holoviewer-bolt--a { top: 4px; left: 14%; width: 2px; height: 46px; animation-delay: .3s; }
.holoviewer-bolt--b { bottom: 4px; right: 12%; width: 2px; height: 38px; animation-delay: 3.2s; }

.holoviewer-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px 20px; border-bottom: 1px solid rgba(111,186,255,0.16);
    background: rgba(111,186,255,0.03); flex-shrink: 0;
}
.holoviewer-title {
    font-family: 'JetBrains Mono',monospace; font-size: 10px; letter-spacing: 0.12em;
    color: var(--ember); text-transform: uppercase; display: flex; align-items: center; gap: 10px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.holoviewer-title .status-dot { flex-shrink: 0; }
.holoviewer-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.hv-btn {
    width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
    background: transparent; border: 1px solid rgba(111,186,255,0.24); border-radius: 7px;
    color: var(--ember); cursor: pointer; transition: all .2s; font-family: 'JetBrains Mono',monospace;
}
.hv-btn:hover { background: rgba(111,186,255,0.12); border-color: var(--ember); }
.hv-btn:disabled { opacity: .3; cursor: not-allowed; }
.hv-zoom-label {
    font-family: 'JetBrains Mono',monospace; font-size: 10px; color: var(--text-dim);
    min-width: 42px; text-align: center; user-select: none;
}
.hv-page-label {
    font-family: 'JetBrains Mono',monospace; font-size: 10px; color: var(--text-dim);
    padding: 0 8px; white-space: nowrap;
}
.hv-close {
    width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
    background: transparent; border: 1px solid rgba(255,255,255,0.15); border-radius: 7px;
    color: var(--text-dim); cursor: pointer; font-size: 16px; line-height: 1; transition: all .2s;
}
.hv-close:hover { border-color: var(--ember); color: var(--ember); }

.holoviewer-body {
    flex: 1; overflow: auto; padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 18px;
    background:
        radial-gradient(ellipse 600px 300px at 50% 0%, rgba(111,186,255,0.05), transparent 70%);
}
.holoviewer-body canvas {
    box-shadow: 0 20px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(111,186,255,0.12);
    border-radius: 3px; background: #fff;
}
.holoviewer-status {
    font-family: 'JetBrains Mono',monospace; font-size: 11px; color: var(--text-dim);
    letter-spacing: 0.08em; text-align: center; padding: 60px 20px;
}
.holoviewer-status.is-error { color: #ff8a8a; }
.hv-spinner {
    width: 26px; height: 26px; border-radius: 50%; margin: 0 auto 16px;
    border: 2px solid rgba(111,186,255,0.2); border-top-color: var(--ember);
    animation: hvSpin 0.9s linear infinite;
}
@keyframes hvSpin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
    .holoviewer { height: 92vh; border-radius: 12px; }
    .holoviewer-bar { padding: 10px 14px; flex-wrap: wrap; }
    .holoviewer-title { font-size: 9px; }
    .holoviewer-body { padding: 16px; }
}
