/* moral.quest - Parallax Philosophical Descent */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #1e1a3a;
    font-family: 'Source Serif 4', serif;
    color: #d8d0c4;
    overflow-x: hidden;
}

/* Descending Thread */
#descending-thread {
    position: fixed;
    left: 50%;
    top: 0;
    width: 1px;
    height: 0%;
    background: linear-gradient(180deg, #c4953a, #8a7b6a, #4a4a5a, #1e1a3a);
    z-index: 50;
    pointer-events: none;
    transition: height 0.1s linear;
    opacity: 0.4;
}

/* Strata */
.stratum {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.stratum-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    padding: 80px 40px;
    text-align: center;
}

/* Summit / Hero */
#summit {
    background: linear-gradient(180deg, #e8dcc8 0%, #e8ddd0 20%, #d8d0c4 40%, #4a4a5a 80%, #1e1a3a 100%);
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150%;
    background: linear-gradient(180deg, #f2ece0 0%, #ede5d6 30%, #d8d0c4 60%, #2a2424 100%);
    will-change: transform;
}

.parallax-mid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    will-change: transform;
}

.silhouette-shapes {
    width: 100%;
    height: 100%;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 5.5vw, 4.5rem);
    font-weight: 600;
    color: #2a2424;
    letter-spacing: -0.01em;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-question {
    font-family: 'Source Serif 4', serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 400;
    font-style: italic;
    color: #4a4a5a;
    margin-top: 16px;
    opacity: 0;
    transition: opacity 0.5s ease 0.5s;
}

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

.scroll-cue {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    color: #a85a3c;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInCue 0.5s ease 1.2s forwards;
}

@keyframes fadeInCue {
    to { opacity: 0.7; }
}

.scroll-cue svg {
    animation: bobDown 2s ease-in-out infinite;
}

@keyframes bobDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* Strata Divider */
.strata-divider {
    height: 12px;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(168, 90, 60, 0.15) 3px,
        rgba(168, 90, 60, 0.15) 4px
    );
    position: relative;
}

/* Individual Stratum Colors */
.stratum-virtue {
    background: linear-gradient(180deg, #e8ddd0, #d8d0c4);
    color: #2a2424;
}

.stratum-duty {
    background: linear-gradient(180deg, #d8d0c4, #a85a3c);
    color: #f2ece0;
}

.stratum-consequence {
    background: linear-gradient(180deg, #a85a3c, #4a4a5a);
    color: #ede5d6;
}

.stratum-care {
    background: linear-gradient(180deg, #4a4a5a, #2a2424);
    color: #d8d0c4;
}

.stratum-justice {
    background: linear-gradient(180deg, #2a2424, #1e1a3a);
    color: #d8d0c4;
}

.stratum-nadir {
    background: #1e1a3a;
    min-height: 50vh;
}

/* Stratum Labels */
.stratum-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.5;
    display: block;
    margin-bottom: 8px;
}

.stratum-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stratum-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ethical Text */
.ethical-text {
    text-align: left;
    margin-bottom: 28px;
}

.ethical-text p {
    font-family: 'Source Serif 4', serif;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 14px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.ethical-text p.visible {
    opacity: 1;
    transform: translateY(0);
}

.ethical-text em {
    font-style: italic;
}

/* Dilemma Cards */
.dilemma-card {
    border: 1px solid currentColor;
    padding: 20px 24px;
    margin-top: 20px;
    text-align: left;
    opacity: 0.15;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.dilemma-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.dilemma-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
    opacity: 0.6;
}

.dilemma-card p {
    font-family: 'Source Serif 4', serif;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.7;
}

/* Nadir */
.nadir-text {
    font-family: 'Source Serif 4', serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    font-style: italic;
    color: #4a4a5a;
    margin-bottom: 24px;
}

.nadir-domain {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: #d8d0c4;
    opacity: 0.4;
}

/* Responsive */
@media (max-width: 768px) {
    .stratum-content {
        padding: 60px 24px;
    }
}
