/* monopole.one — Bauhaus × Particle Physics */

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

:root {
    --monopole-red: #c44b2f;
    --ember: #d96c4a;
    --ochre: #d4943a;
    --deep-rust: #a8562a;
    --charcoal: #1a1a1e;
    --ink: #22222a;
    --stone: #8a8690;
    --parchment: #e8e2d8;
}

html {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--charcoal);
    color: var(--parchment);
    overflow-x: hidden;
}

.scroll-container {
    width: 100%;
}

/* Section Layout */
.section {
    height: 100vh;
    width: 100%;
    display: flex;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
}

.split-left {
    width: 61.8%;
    height: 100%;
    padding: 6vh 5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.split-right {
    width: 38.2%;
    height: 100%;
    position: relative;
    background: var(--ink);
}

.split-right canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Typography */
.wordmark {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 1.0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--parchment);
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--parchment);
    margin-bottom: 2rem;
}

.tagline {
    font-family: 'Source Serif 4', serif;
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    line-height: 1.6;
    color: var(--stone);
    max-width: 500px;
}

.body-text {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    line-height: 1.7;
    color: var(--stone);
    max-width: 520px;
    margin-bottom: 2rem;
}

.body-text.serif {
    font-family: 'Source Serif 4', serif;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 4vh;
    left: 5vw;
}

.scroll-arrow {
    display: block;
    width: 1px;
    height: 40px;
    background: var(--stone);
    position: relative;
    animation: pulse-down 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 9px;
    height: 9px;
    border-right: 1px solid var(--stone);
    border-bottom: 1px solid var(--stone);
    transform: rotate(45deg);
}

@keyframes pulse-down {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(5px); }
}

/* Field Diagram */
.diagram-container {
    width: 200px;
    height: 200px;
}

.field-diagram {
    width: 100%;
    height: 100%;
    animation: rotate-slow 30s linear infinite;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Detector Grid */
.detector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    width: 180px;
    height: 180px;
}

.detector-cell {
    background: var(--ink);
    border: 1px solid var(--stone);
    opacity: 0.4;
    transition: opacity 0.3s, background 0.3s;
}

.detector-cell.active {
    opacity: 1;
    background: var(--monopole-red);
    border-color: var(--ember);
}

/* Bauhaus Composition */
.bauhaus-composition {
    position: relative;
    width: 200px;
    height: 200px;
}

.bh-circle {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--ember);
}

.bh-line-1 {
    position: absolute;
    top: 0;
    left: 100px;
    width: 1px;
    height: 200px;
    background: var(--ochre);
}

.bh-line-2 {
    position: absolute;
    top: 100px;
    left: 0;
    width: 200px;
    height: 1px;
    background: var(--ochre);
}

.bh-rect {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 40px;
    border: 2px solid var(--monopole-red);
}

/* Colophon Mark */
.colophon-mark {
    margin-top: 2rem;
}

.mark-dot {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--monopole-red);
    box-shadow: 0 0 20px var(--monopole-red);
}

/* Section Nav */
.section-nav {
    position: fixed;
    right: 2vw;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--stone);
    background: transparent;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.nav-dot.active {
    background: var(--monopole-red);
    border-color: var(--monopole-red);
    transform: scale(1.3);
}

/* Divider line between panels */
.split-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--ember), transparent);
    z-index: 3;
}

/* Section-specific backgrounds */
.section-hero { background: var(--charcoal); }
.section-theory { background: var(--ink); }
.section-detection { background: var(--charcoal); }
.section-bauhaus { background: var(--ink); }
.section-colophon { background: var(--charcoal); }
