/* ============================================
   quietjoon.com — Minimalist Jewel-Tone Sanctum

   Palette:
   Deep Amethyst:  #181028 (headings)
   Jewel Twilight: #382848 (body text)
   Jewel Mid:      #685880 (labels, accents)
   Emerald Depth:  #408868 (nature motifs)
   Ruby Whisper:   #A04868 (rare warm accent)
   Sanctum White:  #FAFAFA (page background)
   Section Mist:   #F6F4F8 (alternating tint)
   Separator:      #D0C0D0 (borders)
   Cursor Glow:    rgba(104,88,128,0.03)

   Fonts:
   Cormorant Garamond — headings & body
   IBM Plex Mono — quiet labels
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    background-color: #FAFAFA;
    color: #382848;
    overflow-x: hidden;
    position: relative;
}

/* --- SVG Noise Texture Overlay (Film Grain Atmosphere) --- */
#noise-svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.02;
}

/* --- Cursor Follow Glow (Awareness Presence) --- */
#cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(104,88,128,0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 999;
    transform: translate(-50%, -50%);
    will-change: left, top;
}

/* --- Sanctum Sections (Stacked Layout) --- */
.sanctum-section {
    min-height: 85vh;
    padding: clamp(48px, 10vh, 100px) clamp(24px, 8vw, 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid #D0C0D0;
    background-color: #FAFAFA;
}

.sanctum-section:last-child {
    border-bottom: none;
}

/* Alternating section tint */
.section-tinted {
    background-color: #F6F4F8;
}

/* --- Section Content Container --- */
.section-content {
    max-width: 680px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* --- Hero Section --- */
.section-hero {
    min-height: 100vh;
}

.hero-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: #181028;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: sanctumReveal 2s ease-out 0.4s forwards;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(12px);
    animation: sanctumReveal 1.8s ease-out 1.1s forwards;
}

/* --- Display Headings --- */
.section-heading {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: #181028;
    margin-bottom: 2rem;
    letter-spacing: 0.04em;
}

/* --- Body Text --- */
.section-body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.9;
    color: #382848;
    margin-bottom: 2.5rem;
}

/* --- Quiet Labels (IBM Plex Mono) --- */
.quiet-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.72rem;
    color: #685880;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* --- Closing Section --- */
.section-closing {
    min-height: 50vh;
}

.closing-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: #181028;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

/* --- Nature Motifs (Organic Life Accents) --- */
.nature-motif {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.06;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.6s ease-out;
}

.nature-motif svg {
    width: 40px;
    height: auto;
}

.nature-motif-stone svg {
    width: 50px;
}

.nature-motif-drop svg {
    width: 24px;
}

.nature-motif-mineral svg {
    width: 36px;
}

.nature-motif-alt {
    left: auto;
    right: clamp(40px, 8vw, 120px);
    transform: none;
    bottom: clamp(30px, 5vh, 60px);
}

/* --- Reveal Animation Keyframes --- */
@keyframes sanctumReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Scroll Reveal for Section Content --- */
.sanctum-section .section-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.sanctum-section.is-visible .section-content {
    opacity: 1;
    transform: translateY(0);
}

/* Hero section has its own entrance animation */
.section-hero .section-content {
    opacity: 1;
    transform: none;
    transition: none;
}

/* --- Ruby Whisper Accent Lines --- */
.section-about .section-heading::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: #A04868;
    margin: 1rem auto 0;
    opacity: 0.5;
}

.section-reflections .section-heading::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: #A04868;
    margin: 1rem auto 0;
    opacity: 0.5;
}

/* Emerald accent for work section */
.section-work .section-heading::after {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background-color: #408868;
    margin: 1rem auto 0;
    opacity: 0.4;
}

/* --- Selection Color (Jewel Mid) --- */
::selection {
    background-color: rgba(104, 88, 128, 0.15);
    color: #181028;
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #FAFAFA;
}

::-webkit-scrollbar-thumb {
    background: #D0C0D0;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #685880;
}

/* --- Nature Motif Hover Enhancement --- */
.sanctum-section.is-visible .nature-motif {
    opacity: 0.06;
    transition: opacity 1.5s ease-out 0.3s;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .sanctum-section {
        min-height: 70vh;
        padding: clamp(36px, 8vh, 80px) clamp(20px, 6vw, 60px);
    }

    .section-hero {
        min-height: 100vh;
    }

    .nature-motif-alt {
        right: 20px;
        bottom: 20px;
    }

    #cursor-glow {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        letter-spacing: 0.08em;
    }

    .section-heading {
        letter-spacing: 0.02em;
    }

    .section-body {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .section-closing {
        min-height: 40vh;
    }
}
