:root {
    --bg-color: #F0EFE9; 
    
    /* BACKGROUND TEXTURE */
    --paper-fibers: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='fibers'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23fibers)' opacity='0.25'/%3E%3C/svg%3E");
    --paper-clouds: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='clouds'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.01' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23clouds)' opacity='0.08'/%3E%3C/svg%3E");

    --ink-color: #1a1a1a; 
    --bamboo-shadow: #3C3830; 
    --font-serif: 'Cormorant Garamond', serif; 
    --font-mono: 'Space Mono', monospace;
    --font-chinese: 'Noto Serif TC', serif; 
}

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

body {
    background-color: var(--bg-color);
    background-image: 
        var(--paper-fibers), 
        var(--paper-clouds),
        radial-gradient(circle at center, rgba(255,255,255,0.6) 0%, rgba(220, 215, 205, 0.4) 100%);
    background-blend-mode: multiply, overlay, normal;
    color: var(--ink-color);
    font-family: var(--font-serif);
    line-height: 1.6;
    font-size: 21px; 
    overflow-x: hidden;
}

h1, h2, h3, p, li { text-shadow: none; }

h1 {
    font-weight: 300;
    font-size: clamp(3.5rem, 8vw, 7rem);
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin-bottom: 2rem;
}

h2 {
    font-size: 3rem;
    font-weight: 300;
    border-bottom: 1px solid rgba(60, 56, 48, 0.1);
    padding-bottom: 1rem;
    display: inline-block;
}

.meta-data, .marker, .role-meta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--bamboo-shadow);
    opacity: 0.7;
}

.seal-style {
    font-family: var(--font-chinese); 
    color: #A83F39; 
    font-weight: 900; 
    display: inline-block;
    margin-right: 0.5rem;
}

/* LAYOUT */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10vw;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    left: 4vw; top: 10vh; bottom: 10vh; width: 1px;
    background: rgba(0,0,0,0.05);
}

.content-block {
    display: flex;
    flex-wrap: wrap;
    padding: 10rem 10vw; 
}

.sidebar { flex: 0 0 200px; padding-top: 15px; opacity: 0.6; }
.text-body { flex: 1; max-width: 800px; }

blockquote {
    font-size: 2.2rem;
    font-style: italic;
    line-height: 1.4;
    margin: 4rem 0;
    position: relative;
    color: var(--bamboo-shadow);
}
blockquote::before {
    content: "“"; font-size: 6rem; position: absolute; left: -4rem; top: -2rem; opacity: 0.1;
}

/* ---------------------------------------------------------
   HIGH CONTRAST INVERTED SECTIONS
   --------------------------------------------------------- */
.inverted { 
    background-color: #1a1a1a; 
    color: #F0EFE9; /* High contrast off-white */
}
.inverted h2, .inverted p, .inverted blockquote { 
    color: #F0EFE9; /* Brighter text for readability */
}
.inverted .marker { 
    color: #AAA; /* Brighter grey for sidebar */
    opacity: 1; 
}
.inverted .seal-style { 
    color: #ff5e52; /* Slightly brighter red for dark background */
} 
.inverted blockquote {
    color: #CCC;
}

/* Animations */
.fade-in-up {
    opacity: 0; transform: translateY(30px);
    transition: opacity 1.8s ease-out, transform 1.8s ease-out;
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* Constellation Section */
.constellation-section {
    position: relative;
    padding: 6rem 5vw 10rem 5vw;
    background: radial-gradient(circle at 50% 10%, #2a2a2a, #000);
    color: #fff;
    min-height: 100vh;
}

.star-container-full { max-width: 1000px; margin: 0 auto; }

.intro-quote {
    font-size: 1.4rem; font-style: italic; color: #F0EFE9;
    margin-bottom: 4rem; text-align: center; max-width: 700px; margin-left: auto; margin-right: auto;
}

.sky-panel {
    position: relative;
    width: 100%;
    margin-bottom: 6rem;
    text-align: center;
}

.constellation-svg { width: 100%; max-width: 600px; height: auto; overflow: visible; }
.star-lines { stroke: rgba(255, 255, 255, 0.2); stroke-width: 1; fill: none; }
.pointer-line { stroke: rgba(255, 94, 82, 0.5); stroke-dasharray: 5, 5; stroke-width: 1; }

.star { animation: twinkle 5s infinite ease-in-out alternate; transform-origin: center; }

/* Desynchronized Stars */
.constellation-svg circle:nth-of-type(1) { animation-delay: -0.5s; animation-duration: 4.5s; }
.constellation-svg circle:nth-of-type(2) { animation-delay: -2.1s; animation-duration: 5.2s; }
.constellation-svg circle:nth-of-type(3) { animation-delay: -1.4s; animation-duration: 4.8s; }
.constellation-svg circle:nth-of-type(4) { animation-delay: -3.8s; animation-duration: 5.5s; }
.constellation-svg circle:nth-of-type(5) { animation-delay: -0.2s; animation-duration: 4.2s; }
.constellation-svg circle:nth-of-type(6) { animation-delay: -2.9s; animation-duration: 5.0s; }
.constellation-svg circle:nth-of-type(7) { animation-delay: -1.1s; animation-duration: 4.6s; }
.constellation-svg circle:nth-of-type(8) { animation-delay: 0s; animation-duration: 6s; }

.star.blue-white { fill: #dbe9ff; }
.star.white { fill: #ffffff; }
.star.amber { fill: #ffddaa; }
.star.polaris-star { fill: #fffcd1; animation: pulse 6s infinite ease-in-out; }

.polaris-label {
    position: absolute; top: 50px; left: 50%; transform: translateX(180px); text-align: left;
}
.ancient-label { display: block; font-family: var(--font-chinese); color: #ff5e52; font-size: 1.4rem; }
.eng-label { font-family: var(--font-mono); font-size: 0.7rem; color: #fff; letter-spacing: 0.2em; }

.team-manifest {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 3rem;
    border-top: 1px solid rgba(255,255,255,0.2); /* Brightened border */
    padding-top: 4rem;
}

.team-card { 
    padding-bottom: 2rem; 
    border-bottom: 1px solid rgba(255,255,255,0.15); /* Brightened border */
}

.card-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; }

.star-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.star-dot.amber-dot { background-color: #ffddaa; }
.star-dot.blue-dot { background-color: #dbe9ff; }
.star-dot.white-dot { background-color: #fff; }
.star-dot.polaris-dot { background-color: #ff5e52; }

.star-proper-name { 
    font-family: var(--font-mono); 
    color: #FFFFFF; /* Pure white for name labels */
    font-size: 0.8rem; 
    letter-spacing: 0.1em; 
}

.chn-name { 
    font-family: var(--font-chinese); 
    color: #ff5e52; /* Bright Red */
    font-size: 1.2rem; 
    margin-left: 5px; 
}

.team-card h3 { 
    font-size: 1.8rem; 
    color: #FFFFFF; /* High contrast white */
    margin-bottom: 0.4rem; 
    font-weight: 400; 
}

.team-card .role { 
    font-family: var(--font-mono); 
    color: #ffddaa; /* Changed to Amber for high visibility */
    font-size: 0.75rem; 
    margin-bottom: 1rem; 
    text-transform: uppercase; 
    letter-spacing: 0.1em;
}

.team-card .blurb { 
    font-size: 1.05rem; 
    color: #E0E0E0; /* Bright Silver (readable on dark background) */
    line-height: 1.6; 
    font-style: italic; 
}

@keyframes twinkle {
    0%, 100% { opacity: 0.9; filter: brightness(1); }
    50% { opacity: 0.3; filter: brightness(0.7); }
}

@keyframes pulse {
    0% { filter: drop-shadow(0 0 5px rgba(255, 240, 150, 0.4)); opacity: 0.9; }
    50% { filter: drop-shadow(0 0 15px rgba(255, 240, 150, 0.8)); opacity: 1; }
    100% { filter: drop-shadow(0 0 5px rgba(255, 240, 150, 0.4)); opacity: 0.9; }
}

footer { padding: 6rem 10vw; background-color: #1a1a1a; color: #AAA; font-size: 0.8rem; text-align: center; }
.contact-link { color: #fff; text-decoration: none; border-bottom: 1px solid #444; }

/* MOBILE OPTIMIZATION */
@media (max-width: 900px) {
    .content-block, .constellation-section { padding: 5rem 6%; }
    .sidebar { flex: auto; width: 100%; margin-bottom: 1.5rem; }
    .marker { display: block; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.5rem; margin-bottom: 1rem; }
    .text-body { max-width: 100%; }
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.2rem; }
    .polaris-label { left: 50%; top: 10%; transform: translateX(-50%); text-align: center; }
    .team-manifest { grid-template-columns: 1fr; gap: 2rem; }
    blockquote { font-size: 1.5rem; margin: 3rem 0; }
    blockquote::before { left: -1rem; top: -1rem; font-size: 4rem; }
    .watermark-char { font-size: 50vw; top: 10vh; right: -10vw; opacity: 0.03; }
}