@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Cormorant+Garamond:ital,wght@1,600&family=Pinyon+Script&display=swap');

:root {
    --night-indigo: #0f0c29;
    --deep-violet: #302b63;
    --mist-teal: #008080;
    --subtle-fuchsia: #b366ff;
    --parchment: #e0e0e0;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background-color: var(--night-indigo);
    background-image: linear-gradient(to bottom, var(--night-indigo), var(--deep-violet));
    background-attachment: fixed;
    color: var(--parchment);
    font-family: 'Georgia', serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* --- Atmospheric Mist (Fixed Margins) --- */
body::before {
    content: "";
    position: fixed;
    /* Made larger than the screen so edges never show during animation */
    top: -5%; left: -5%; width: 110%; height: 110%;
    background: radial-gradient(circle at 20% 30%, rgba(0, 128, 128, 0.15), transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(179, 102, 255, 0.12), transparent 50%);
    z-index: -2;
    animation: mistMove 15s ease-in-out infinite alternate;
}

@keyframes mistMove {
    0% { transform: translate(-2%, -2%) scale(1); }
    100% { transform: translate(2%, 2%) scale(1.15); }
}

@keyframes manifest {
    0% { opacity: 0; filter: blur(10px); }
    100% { opacity: 1; filter: blur(0); }
}

.reveal {
    opacity: 0; 
    animation: manifest 2.5s ease-out forwards;
}

/* --- Homepage Layout --- */
.home-container {
    flex: 1;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-watermark {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 45vmin;
    z-index: -1;
    opacity: 0;
    animation: watermarkBloom 7s ease-out forwards;
}

@keyframes watermarkBloom {
    0% { opacity: 0; filter: blur(20px); transform: translate(-50%, -50%) scale(0.8); }
    30% { opacity: 0.15; filter: blur(0); transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0.03; filter: blur(5px); transform: translate(-50%, -50%) scale(1.05); }
}

.home-top {
    position: absolute;
    top: 10vh;
    width: 100%;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

h1.calligraphic {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%);
    font-family: 'Ma Shan Zheng', cursive;
    font-size: clamp(5.5rem, 16vw, 9.5rem);
    color: var(--mist-teal);
    letter-spacing: 0.25em;
    margin: 0;
    white-space: nowrap;
    text-shadow: 0 0 20px rgba(0, 128, 128, 0.25);
}

.tagline-wrapper {
    position: absolute;
    top: calc(50% + 14vh);
    width: 100%;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.tagline {
    font-size: 2rem;
    opacity: 0.6;
    font-style: italic;
    line-height: 1.4;
    max-width: 800px;
}

/* --- About Page Layout --- */
.about-container {
    max-width: 1100px;
    padding: 0 2rem;
    width: 100%;
}

.about-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    text-align: center;
    padding-top: 8vh;
}

/* Restored to natural scrolling flow */
.emblem-top {
    width: 150px; 
    height: auto;
    opacity: 0.85;
    margin-bottom: 3rem;
    filter: drop-shadow(0 0 10px rgba(0, 128, 128, 0.4));
}

.purpose-statement {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 2.8rem;
    color: var(--mist-teal);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.3;
    text-wrap: balance;
}

/* --- Philosophy Grid --- */
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8%;
    margin: 4rem 0;
    align-items: start;
    width: 100%;
}

.philosophy-grid p {
    text-align: justify;
    font-family: 'Georgia', serif;
    font-size: 1.25rem;
    color: var(--parchment);
    line-height: 1.7;
}

/* --- Typography --- */
.quote-stack { display: flex; flex-direction: column; align-items: center; text-align: center; }
.quote-orig { font-size: 1.8rem; color: var(--subtle-fuchsia); margin-bottom: 0.4rem; }
.brush { font-family: 'Ma Shan Zheng', cursive; }
.nib { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 600; }
.quote-translit { font-style: italic; opacity: 0.6; font-size: 1rem; display: block; }
.quote-trans { font-style: italic; opacity: 0.8; font-size: 1.25rem; display: block; }
.quote-src { font-size: 0.85rem; text-transform: uppercase; opacity: 0.4; margin-top: 0.6rem; letter-spacing: 1px; display: block; }
.highlight-teal { color: var(--mist-teal); font-weight: normal; }
.highlight-fuchsia { color: var(--subtle-fuchsia); font-weight: normal; }

/* --- Emblem Section (Bottom) --- */
.emblem-section {
    border-top: 1px solid rgba(0, 128, 128, 0.2);
    padding: 6rem 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.emblem-description {
    font-family: 'Pinyon Script', cursive;
    font-size: 2.6rem;
    color: var(--parchment);
    max-width: 950px;
    margin-bottom: 4rem;
    line-height: 1.4;
    text-wrap: balance;
}

.emblem-bottom {
    width: 200px;
    height: auto;
    opacity: 0.9;
    filter: drop-shadow(0 0 20px rgba(0, 128, 128, 0.4));
}

/* --- Navigation --- */
.bottom-nav { width: 100%; text-align: center; padding: 4rem 0; }
.nav-link { text-transform: uppercase; letter-spacing: 0.3em; font-size: 1rem; opacity: 0.5; text-decoration: none; color: var(--parchment); border-bottom: 1px dotted var(--mist-teal); transition: 0.3s; }
.nav-link:hover { opacity: 1; border-bottom: 1px solid var(--subtle-fuchsia); color: var(--subtle-fuchsia); }

@media (max-width: 850px) {
    .philosophy-grid { grid-template-columns: 1fr; gap: 3rem; }
    h1.calligraphic { font-size: 4rem; letter-spacing: 0.15em; }
    .tagline-wrapper { top: calc(50% + 10vh); }
    .tagline { font-size: 1.4rem; }
    .purpose-statement { font-size: 2.2rem; }
}