/* === courthouse.stream styles === */
/* Colors: #0A0806, #1A160E, #D4A830, #C8A028, #E8C848, #F0E8D0, #A09070, #FFDA50 */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: #0A0806;
    color: #F0E8D0;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.15vw, 1.1rem);
    line-height: 1.85;
    overflow-x: hidden;
}

/* Gold Particle Field */
#particle-field {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.gold-particle {
    position: absolute;
    border-radius: 50%;
    background: #D4A830;
}

/* === Navigation === */
#nav {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 100;
    background: transparent;
}

.nav-mark { flex-shrink: 0; }

.nav-links { display: flex; gap: 24px; }

.nav-link {
    font-family: 'Homemade Apple', cursive;
    font-size: 14px;
    color: #C8A028;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #C8A028;
}

.nav-link:hover { color: #E8C848; }

/* === Hero / Chamber === */
#chamber {
    position: relative;
    width: 100%; min-height: 120vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw; height: 80vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,168,48,0.03) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 2s ease;
}

.hero-glow.visible { opacity: 1; }

.hero-blob {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 400px; height: 400px;
    opacity: 0;
    transition: opacity 2s ease;
}

.hero-blob.visible { opacity: 1; }

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

#hero-title {
    font-family: 'Homemade Apple', cursive;
    font-size: clamp(3rem, 7vw, 6rem);
    background: linear-gradient(135deg, #C8A028, #E8C848, #C8A028);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#hero-title.visible { opacity: 1; }

.hero-sub {
    font-family: 'Libre Baskerville', serif;
    font-size: 14px;
    color: #A09070;
    margin-top: 16px;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-sub.visible { opacity: 1; }

/* === Content === */
#content {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 32px 96px;
    z-index: 10;
}

.bg-blob {
    position: absolute;
    width: 300px; height: 300px;
    z-index: -1;
}

.blob-1 { top: 10%; left: -5%; }

.panel-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

/* === Holographic Panels === */
.holo-panel {
    flex: 1 1 calc(50% - 32px);
    min-width: 280px;
    background: rgba(26, 22, 14, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(200, 168, 48, 0.2);
    border-radius: 16px;
    padding: 48px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease;
}

.holo-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.holo-panel.wide { flex: 1 1 60%; }
.holo-panel.offset { margin-top: 32px; }
.holo-panel.offset-reverse { margin-top: -16px; }

/* Holographic hover shimmer */
.holo-panel::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(120deg, transparent 30%, rgba(212,168,48,0.05) 50%, transparent 70%);
    transition: left 0.8s ease;
    pointer-events: none;
}

.holo-panel:hover::after { left: 100%; }
.holo-panel:hover { border-color: rgba(200, 168, 48, 0.4); }

.counter-num {
    font-family: 'Homemade Apple', cursive;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #D4A830;
    display: block;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.counter-num.flash { color: #FFDA50; }

.holo-panel h2 {
    font-family: 'Homemade Apple', cursive;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    color: #F0E8D0;
    margin-bottom: 16px;
}

.holo-panel p {
    color: #F0E8D0;
    margin-bottom: 12px;
}

.holo-panel p:last-child { margin-bottom: 0; }

/* === Footer === */
#footer {
    padding: 32px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(200, 168, 48, 0.15);
}

.footer-brand {
    font-family: 'Homemade Apple', cursive;
    font-size: 14px;
    color: #C8A028;
}

.footer-meta {
    font-family: 'Libre Baskerville', serif;
    font-size: 12px;
    color: #A09070;
}

/* === Responsive === */
@media (max-width: 768px) {
    .holo-panel { flex: 1 1 100%; }
    .holo-panel.wide { flex: 1 1 100%; }
    .holo-panel.offset { margin-top: 0; }
    .holo-panel.offset-reverse { margin-top: 0; }
    #footer { flex-direction: column; gap: 8px; }
}
