/* prototype.rs — Anti-design, dreamy-ethereal, monochrome */

:root {
    --void-white: #f2f2f2;
    --cloud-gray: #d4d4d4;
    --granite: #767676;
    --obsidian: #1a1a1a;
    --snowfield: #fafafa;
    --mist: #e8e8e8;
    --mx: 50vw;
    --my: 50vh;
    --ease-drift: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--void-white);
    color: var(--obsidian);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.75;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    min-height: 600vh;
}

/* Fog blobs */
.fog-blob {
    position: fixed;
    opacity: 0.4;
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

.fog-blob-1 {
    width: 50vw;
    top: -10vh;
    left: -10vw;
    animation: drift1 70s linear infinite;
}

.fog-blob-2 {
    width: 40vw;
    top: 30vh;
    right: -15vw;
    animation: drift2 85s linear infinite;
}

.fog-blob-3 {
    width: 55vw;
    bottom: 10vh;
    left: 20vw;
    animation: drift3 60s linear infinite;
}

.fog-blob-4 {
    width: 35vw;
    top: 50vh;
    left: 40vw;
    animation: drift4 90s linear infinite;
}

@keyframes drift1 {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10vw, 5vh) rotate(2deg); }
    50% { transform: translate(5vw, 15vh) rotate(-1deg); }
    75% { transform: translate(-5vw, 8vh) rotate(1deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes drift2 {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-8vw, 10vh) rotate(-2deg); }
    50% { transform: translate(-15vw, 5vh) rotate(1deg); }
    75% { transform: translate(-5vw, -5vh) rotate(-1deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes drift3 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-10vw, -8vh); }
    50% { transform: translate(5vw, -12vh); }
    75% { transform: translate(12vw, -4vh); }
    100% { transform: translate(0, 0); }
}

@keyframes drift4 {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-12vw, 8vh) rotate(3deg); }
    66% { transform: translate(8vw, -6vh) rotate(-2deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* Particle field */
#particle-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--obsidian);
    opacity: 0.08;
    transition: transform 0.8s var(--ease-drift), opacity 0.6s ease;
}

.particle.active {
    opacity: 0.15;
}

/* Registration marks */
.reg-mark {
    position: fixed;
    font-family: 'Space Mono', monospace;
    font-size: 6px;
    color: var(--cloud-gray);
    pointer-events: none;
    z-index: 1;
    line-height: 1;
}

/* Navigation dot */
#nav-dot {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 12px;
    height: 12px;
    background: var(--obsidian);
    border-radius: 50%;
    z-index: 100;
    cursor: pointer;
    transition: width 0.6s var(--ease-drift), height 0.6s var(--ease-drift), border-radius 0.6s var(--ease-drift);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#nav-dot:hover,
#nav-dot.open {
    width: 140px;
    height: auto;
    padding: 1.2rem;
    border-radius: 4px;
    background: var(--obsidian);
}

#nav-links {
    display: none;
    flex-direction: column;
    gap: 0.6rem;
}

#nav-dot:hover #nav-links,
#nav-dot.open #nav-links {
    display: flex;
}

#nav-links a {
    color: var(--void-white);
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#nav-links a:hover {
    opacity: 1;
}

/* Sections */
.section-opening {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(2.5rem, 10vw, 7rem);
    letter-spacing: -0.03em;
    line-height: 0.95;
    color: var(--obsidian);
    opacity: 0;
    transform: translateY(10px);
    animation: titleAppear 2s var(--ease-drift) 0.5s forwards;
}

.title-rs {
    font-family: 'Space Mono', monospace;
    font-size: clamp(1rem, 3vw, 2.5rem);
    color: var(--granite);
    vertical-align: super;
    margin-left: 0.1em;
}

@keyframes titleAppear {
    to {
        opacity: 1;
        transform: translateY(-15vh);
    }
}

/* Content blocks */
.section-content {
    position: relative;
    z-index: 2;
    padding-top: 10vh;
    min-height: 150vh;
}

.content-block {
    position: relative;
    max-width: 42ch;
    padding: 1.5rem;
    transform: rotate(var(--rot, 0deg));
    opacity: 0;
    transition: opacity 0.8s ease, transform 1s var(--ease-drift), box-shadow 0.6s ease;
    margin-bottom: 20vh;
}

.content-block.visible {
    opacity: 1;
}

.content-block:hover {
    box-shadow: 0 0 80px rgba(26, 26, 26, 0.04);
    background: var(--snowfield);
}

.content-block p {
    color: var(--granite);
}

.mono-accent {
    font-family: 'Space Mono', monospace;
    font-size: 0.85em;
    color: var(--granite);
    margin-bottom: 0.5rem;
}

/* Ridge section */
.section-ridge {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding-top: 5vh;
}

.mountain-silhouette {
    position: absolute;
    top: 30%;
    left: 0;
    width: 100%;
    height: 40vh;
    background: var(--cloud-gray);
    clip-path: polygon(
        0% 100%,
        0% 80%,
        5% 72%,
        12% 65%,
        18% 58%,
        25% 45%,
        30% 50%,
        35% 42%,
        40% 35%,
        45% 30%,
        50% 22%,
        55% 18%,
        60% 12%,
        65% 20%,
        70% 28%,
        75% 35%,
        80% 42%,
        85% 50%,
        90% 58%,
        95% 65%,
        100% 72%,
        100% 100%
    );
    z-index: -1;
}

.ridge-block-1,
.ridge-block-2,
.ridge-block-3,
.ridge-block-4 {
    margin-bottom: 15vh;
}

/* Above the clouds */
.section-above {
    position: relative;
    z-index: 2;
    min-height: 150vh;
    padding-top: 10vh;
}

.above-block-1,
.above-block-2,
.above-block-3 {
    margin-bottom: 50vh;
}

.thin-text {
    font-size: 0.8rem;
    color: var(--granite);
}

/* Summit */
.section-summit {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 20vh;
}

.summit-period {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    color: var(--obsidian);
    font-weight: 500;
}

.summit-version {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--granite);
    margin-top: 20vh;
}

/* Vertical text accents */
.vertical-text {
    position: fixed;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6rem;
    color: var(--cloud-gray);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    z-index: 1;
    pointer-events: none;
}

.vertical-left {
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.vertical-right {
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
}

/* Version label floating near title */
.section-opening::after {
    content: 'v0.1';
    position: absolute;
    top: 18vh;
    right: 25vw;
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: var(--granite);
    opacity: 0;
    animation: fadeIn 1s ease 3s forwards;
}

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

/* Responsive */
@media (max-width: 768px) {
    .content-block {
        left: 10% !important;
        max-width: 80vw;
    }

    .vertical-text {
        display: none;
    }

    #nav-dot {
        top: 1rem;
        right: 1rem;
    }
}
