/* ==========================================
   OKÔTÔXORY - Digital Monolith
   Ultra-minimalist pure white aesthetic
   ========================================== */

/* CSS Custom Properties */
:root {
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-grey: #A0A0A0;

    --font-primary: 'Inter', 'Helvetica Neue Light', 'Helvetica Neue', 'Akzidenz-Grotesk', sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --space-2xl: 20rem;

    --transition-slow: 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slower: 3s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    --font-thin: 100;
    --font-extralight: 200;
    --font-light: 300;
    --font-regular: 400;
}

/* ==========================================
   Base Styles
   ========================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-white);
    color: var(--color-black);
    font-family: var(--font-primary);
    font-weight: var(--font-light);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   Navigation (Hidden Pusu Links)
   ========================================== */

.pusu-nav {
    position: fixed;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    z-index: 100;
    pointer-events: none;
}

.pusu-link {
    color: var(--color-grey);
    font-size: 0.75rem;
    font-weight: var(--font-thin);
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    opacity: 0;
    transition: opacity var(--transition-slow), color var(--transition-slow);
    pointer-events: auto;
}

.pusu-link:hover {
    color: var(--color-black);
    opacity: 0.7;
}

.pusu-link:focus {
    opacity: 0.5;
    outline: none;
}

/* ==========================================
   Sections
   ========================================== */

.section {
    min-height: 100vh;
    padding: var(--space-2xl) var(--space-lg);
    display: flex;
    align-items: center;
    position: relative;
}

/* Entry Section - Centered */
.entry {
    justify-content: center;
    text-align: center;
}

.entry h1 {
    font-size: clamp(2rem, 8vw, 5rem);
    font-weight: var(--font-thin);
    letter-spacing: 0.2em;
    margin-bottom: var(--space-md);
}

.entry .subtitle {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    font-weight: var(--font-extralight);
    color: var(--color-grey);
    letter-spacing: 0.15em;
}

/* Origin Section - Left Aligned */
.origin {
    justify-content: flex-start;
}

.origin .content {
    max-width: 50%;
    margin-left: 0;
}

.origin p {
    font-size: clamp(1rem, 2.5vw, 1.375rem);
    font-weight: var(--font-light);
    margin-bottom: var(--space-xl);
    line-height: 2;
}

/* Descent Section - Right Aligned */
.descent {
    justify-content: flex-end;
}

.descent .content {
    max-width: 50%;
    margin-right: 0;
    text-align: right;
}

.descent p {
    font-size: clamp(1rem, 2.5vw, 1.375rem);
    font-weight: var(--font-light);
    margin-bottom: var(--space-xl);
    line-height: 2;
}

/* Frequency Section - Centered, Subtle */
.frequency {
    justify-content: center;
    text-align: center;
}

.frequency .content {
    max-width: 40%;
}

.frequency p {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    font-weight: var(--font-thin);
    margin-bottom: var(--space-lg);
    line-height: 2.2;
}

/* Presence Section - Bottom Centered */
.presence {
    justify-content: center;
    text-align: center;
    padding-bottom: var(--space-2xl);
}

.presence p:first-child {
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: var(--font-thin);
    letter-spacing: 0.2em;
    margin-bottom: var(--space-md);
}

.presence .subtle {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    color: var(--color-grey);
    font-weight: var(--font-extralight);
    letter-spacing: 0.1em;
}

/* ==========================================
   Subtle Text
   ========================================== */

.subtle {
    color: var(--color-grey);
}

/* ==========================================
   Fade-in Animation
   ========================================== */

.fade-in {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity var(--transition-slower),
                transform var(--transition-slower);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   Responsive Breakpoints
   ========================================== */

/* Tablet (≤768px) */
@media (max-width: 768px) {
    :root {
        --space-2xl: 12rem;
        --space-xl: 4rem;
        --space-lg: 2rem;
    }

    .section {
        padding: var(--space-xl) var(--space-md);
    }

    .origin .content,
    .descent .content,
    .frequency .content {
        max-width: 70%;
    }

    .descent .content {
        text-align: left;
    }

    .pusu-nav {
        bottom: 1rem;
        gap: var(--space-md);
    }
}

/* Mobile (≤480px) */
@media (max-width: 480px) {
    :root {
        --space-2xl: 6rem;
        --space-xl: 2rem;
        --space-lg: 1.5rem;
    }

    .section {
        padding: var(--space-lg) var(--space-sm);
        min-height: 80vh;
    }

    .entry h1 {
        letter-spacing: 0.1em;
    }

    .origin .content,
    .descent .content,
    .frequency .content {
        max-width: 100%;
    }

    .origin p,
    .descent p {
        font-size: clamp(0.9rem, 4vw, 1.125rem);
        margin-bottom: var(--space-md);
    }

    .pusu-nav {
        bottom: 0.5rem;
        gap: var(--space-sm);
    }

    .pusu-link {
        font-size: 0.625rem;
    }
}

/* ==========================================
   Reduced Motion
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .fade-in {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .pusu-link {
        transition: none;
    }
}

/* ==========================================
   Print Styles
   ========================================== */

@media print {
    .pusu-nav {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }

    .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }
}
