/* yamato.quest - Submerged Sengoku chronicle */

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

:root {
    --abyss-black: #070E1A;
    --deep-navy: #142238;
    --midnight-blue: #1E3A5F;
    --steel-blue: #4A90D9;
    --silver-mist: #A8B8C8;
    --pale-steel: #B8C6D4;
    --ice-surface: #E0E8F0;
    --leather-brown: #3D2A1A;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.8;
    letter-spacing: 0.02em;
    color: var(--pale-steel);
    background: var(--abyss-black);
    overflow-x: hidden;
}

/* Depth zones */
.depth-zone {
    position: relative;
    min-height: 100vh;
    padding: clamp(40px, 8vw, 100px) clamp(20px, 5vw, 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 4vw, 48px);
    perspective: 1000px;
}

/* Zone 1: Surface */
.zone-surface {
    background: linear-gradient(180deg, #1E3A5F 0%, #142238 60%, #0A1628 100%);
    min-height: 100vh;
}

.zone-content {
    text-align: center;
    opacity: 0;
    animation: surfaceFadeIn 2s ease forwards;
}

@keyframes surfaceFadeIn {
    to { opacity: 1; }
}

.hero-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: 0.12em;
    color: var(--ice-surface);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.char {
    display: inline-block;
    opacity: 0;
    animation: charIn 600ms ease forwards;
    animation-delay: calc(var(--i) * 150ms + 500ms);
}

@keyframes charIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.divider-line {
    width: clamp(80px, 20vw, 200px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--steel-blue), transparent);
    margin: 0 auto 1.5rem;
    opacity: 0;
    animation: lineIn 1s ease forwards;
    animation-delay: 1.8s;
}

@keyframes lineIn {
    to { opacity: 0.6; }
}

.hero-sub {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.85rem, 1.4vw, 1rem);
    letter-spacing: 0.15em;
    color: var(--silver-mist);
    opacity: 0;
    animation: lineIn 1s ease forwards;
    animation-delay: 2.2s;
}

.wave-motif {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
}

/* Zone 2: Twilight */
.zone-twilight {
    background: linear-gradient(180deg, #0A1628 0%, #0B1420 40%, #070E1A 100%);
}

.depth-particles {
    position: absolute;
    width: 100%;
    height: 200px;
    bottom: 10%;
    pointer-events: none;
    opacity: 0.5;
}

/* Zone 3: Midnight */
.zone-midnight {
    background: linear-gradient(180deg, #070E1A 0%, #050B15 50%, #030810 100%);
}

/* Zone 4: Abyss */
.zone-abyss {
    background: linear-gradient(180deg, #030810 0%, #020508 50%, #000000 100%);
    padding-bottom: 15vh;
}

/* Leather card */
.leather-card {
    max-width: 700px;
    width: 100%;
    padding: clamp(28px, 5vw, 56px);
    border-radius: 4px;
    border: 1px solid rgba(74, 144, 217, 0.08);
    background:
        radial-gradient(ellipse at 30% 40%, rgba(92,61,40,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(61,42,26,0.12) 0%, transparent 40%),
        linear-gradient(180deg, rgba(92,61,40,0.08) 0%, rgba(61,42,26,0.05) 100%),
        #0A1628;
    box-shadow:
        0 4px 20px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(74,144,217,0.05);
    opacity: 0;
    transform: translateY(40px) translateZ(-20px);
    transition: opacity 800ms ease, transform 800ms cubic-bezier(0.23, 1, 0.32, 1);
}

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

.leather-card h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    letter-spacing: 0.08em;
    color: var(--ice-surface);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.leather-card p {
    color: var(--silver-mist);
    margin-bottom: 0.75rem;
}

.leather-card p:last-child { margin-bottom: 0; }

.card-small {
    max-width: 500px;
    text-align: center;
}

.card-wide {
    max-width: 800px;
}

.pull-quote {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-style: italic;
    color: var(--steel-blue);
    line-height: 1.6;
    opacity: 0.8;
}

.bioluminescent-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--steel-blue), transparent);
    margin-bottom: 1.5rem;
    animation: bioGlow 4s ease-in-out infinite;
}

@keyframes bioGlow {
    0%, 100% { opacity: 0.3; box-shadow: 0 0 8px rgba(74,144,217,0.2); }
    50% { opacity: 0.8; box-shadow: 0 0 20px rgba(74,144,217,0.5); }
}

/* Final */
.card-final {
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(74,144,217,0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 40%, rgba(92,61,40,0.1) 0%, transparent 50%),
        #050A14;
    border-color: rgba(74,144,217,0.12);
}

.final-mark {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.12em;
    color: var(--ice-surface);
    margin-bottom: 0.5rem;
}

.final-sub {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    letter-spacing: 0.15em;
    color: var(--steel-blue);
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 600px) {
    .depth-zone {
        padding: 40px 16px;
    }
    .leather-card {
        padding: 24px 20px;
    }
}
