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

:root {
    --sage: #7a8a7a;
    --deep: #2d3a3a;
    --green: #8aaa8a;
    --cream: #f7f5f0;
    --mint: #d4e6c8;
    --silver: #c5ccd6;
    --light: #fafaf7;
    --moss: #b8c9a8;
    --forest: #5a7a6a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--light);
    color: var(--deep);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: var(--cream);
    border-right: 1px solid var(--silver);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 2rem;
    z-index: 100;
}

.sidebar-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    opacity: 0.3;
    pointer-events: none;
}

.blob-svg {
    width: 100%;
    height: 100%;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.nav-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sage);
    text-decoration: none;
    transition: color 0.4s ease, transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--deep);
    transform: translateX(4px);
}

.sidebar-footer {
    position: relative;
    z-index: 2;
}

.mono-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--sage);
}

/* Content */
.content {
    margin-left: 280px;
    width: calc(100% - 280px);
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 4rem;
    position: relative;
}

.section-inner {
    max-width: 700px;
    width: 100%;
}

/* Hero */
.section-hero {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 8rem;
    position: relative;
    overflow: hidden;
}

.hero-text-container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    line-height: 1.1;
    color: var(--deep);
    margin-bottom: 2rem;
}

.hero-title .char-wrap {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.hero-title .char-wrap:nth-child(2) {
    animation-delay: 0.3s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--sage);
    max-width: 500px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4;
}

#field-canvas {
    width: 100%;
    height: 100%;
}

/* Theory */
.section-label {
    display: block;
    margin-bottom: 1.5rem;
    color: var(--green);
}

.section-heading {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--deep);
}

.section-body {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--sage);
    margin-bottom: 2rem;
}

.theory-equation {
    font-size: 1.5rem;
    color: var(--forest);
    padding: 2rem;
    background: var(--cream);
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--mint);
}

/* Field */
.field-visualization {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.field-svg {
    width: 300px;
    height: 300px;
}

/* Search */
.search-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.timeline-item {
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--sage);
    padding: 1rem 1.5rem;
    background: var(--cream);
    border-radius: 8px;
    border-left: 3px solid var(--green);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(6px);
    border-color: var(--forest);
}

.timeline-item .mono-text {
    color: var(--forest);
    margin-right: 1rem;
    font-size: 0.8rem;
}

/* Studio */
.studio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.studio-card {
    background: var(--cream);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid transparent;
    transition: border-color 0.4s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.studio-card:hover {
    border-color: var(--green);
    transform: translateY(-4px);
}

.card-blob {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: var(--mint);
    border-radius: 50% 40% 60% 45%;
    opacity: 0.7;
    transition: transform 0.6s ease;
}

.studio-card:hover .card-blob {
    transform: scale(1.1) rotate(10deg);
}

/* Scroll reveal */
.section-inner {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-inner.visible {
    opacity: 1;
    transform: translateY(0);
}
