/* archaic.studio — styles.css */

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

:root {
    --navy-deep: #0a1628;
    --navy-mid: #0d1f35;
    --navy-light: #111e33;
    --blue-accent: #2a4a7f;
    --gold: #c9b896;
    --gold-light: #e2d4b3;
    --grey: #8a94a8;
    --slate: #4a5568;
    --sidebar-width: clamp(220px, 20vw, 320px);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    background-color: var(--navy-mid);
    color: var(--grey);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--navy-deep);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1rem;
    z-index: 100;
    border-right: 1px solid rgba(201, 184, 150, 0.08);
}

.sidebar-wordmark {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 0.12em;
    text-transform: lowercase;
    white-space: nowrap;
}

.sidebar-wordmark .dot {
    color: var(--blue-accent);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 4rem;
    flex: 1;
    justify-content: center;
}

.nav-glyph {
    color: var(--grey);
    opacity: 0.5;
    transition: opacity 0.4s ease, color 0.4s ease;
    display: block;
}

.nav-glyph:hover,
.nav-glyph.active {
    opacity: 1;
    color: var(--gold);
}

.sidebar-bamboo {
    margin-top: auto;
    opacity: 0.6;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

/* Rooms */
.room {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(3rem, 8vw, 8rem);
    position: relative;
}

.room-content {
    max-width: 700px;
}

/* Hero */
.room-hero {
    align-items: center;
    text-align: center;
}

.room-hero .room-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(3.2rem, 8vw, 7.5rem);
    letter-spacing: 0.06em;
    line-height: 1.05;
    color: var(--gold-light);
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--grey);
    max-width: 480px;
    letter-spacing: 0.02em;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* Room Labels & Titles */
.room-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blue-accent);
    margin-bottom: 2rem;
    display: block;
}

.room-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    letter-spacing: 0.04em;
    line-height: 1.1;
    color: var(--gold-light);
    margin-bottom: 2rem;
}

.room-text {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 3rem;
}

/* SVG Nature Elements */
.stone-arrangement,
.water-ripples,
.pine-branch {
    margin-top: 2rem;
    opacity: 0.8;
}

.water-ripples svg ellipse {
    animation: ripple 4s ease-in-out infinite;
}

.water-ripples svg ellipse:nth-child(2) { animation-delay: 0.5s; }
.water-ripples svg ellipse:nth-child(3) { animation-delay: 1s; }
.water-ripples svg ellipse:nth-child(4) { animation-delay: 1.5s; }

@keyframes ripple {
    0%, 100% { opacity: inherit; }
    50% { opacity: 0.1; }
}

/* Work Grid */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    width: 100%;
    max-width: 1000px;
}

.work-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.work-frame {
    border: 1px solid rgba(201, 184, 150, 0.15);
    overflow: hidden;
    transition: border-color 0.4s ease;
}

.work-frame:hover {
    border-color: rgba(201, 184, 150, 0.4);
}

.work-frame svg {
    display: block;
    width: 100%;
    height: auto;
}

.work-title {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--grey);
}

/* Contact */
.contact-link {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 184, 150, 0.3);
    padding-bottom: 0.2em;
    transition: border-color 0.4s ease;
    display: inline-block;
    margin-bottom: 3rem;
}

.contact-link:hover {
    border-color: var(--gold);
}

/* Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 184, 150, 0.04) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 50;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        padding: 1.5rem 0.5rem;
    }

    .sidebar-wordmark {
        writing-mode: vertical-rl;
        font-size: 0.7rem;
    }

    .sidebar-bamboo {
        display: none;
    }

    .main-content {
        margin-left: 60px;
    }

    .room {
        padding: 3rem 2rem;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }
}
