/* monopole.ai - Design Language Stylesheet */
/* Colors: #3D2A1E #EDE3D4 #2A1810 #8C2F3B #C4A882 #D4566A #B8A48C #1C0F0A #6B5A4A #9A7B5C */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: #1C0F0A;
    color: #EDE3D4;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
}

/* ========== HUD OVERLAY ========== */
#hud-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    padding: 24px;
}

.hud-corner {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hud-top-left {
    top: 24px;
    left: 24px;
}

.hud-top-right {
    top: 24px;
    right: 24px;
    text-align: right;
}

.hud-bottom-left {
    bottom: 24px;
    left: 24px;
}

.hud-bottom-right {
    bottom: 24px;
    right: 24px;
    text-align: right;
}

.hud-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #6B5A4A;
}

.hud-value {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #C4A882;
}

.hud-scroll-track {
    width: 80px;
    height: 2px;
    background: rgba(107, 90, 74, 0.3);
    margin-top: 6px;
    position: relative;
}

.hud-scroll-indicator {
    height: 100%;
    width: 20%;
    background: #C4A882;
    transition: width 0.3s ease, transform 0.3s ease;
}

/* HUD ruled lines */
.hud-rule {
    position: absolute;
    background: rgba(107, 90, 74, 0.15);
}

.hud-rule-top {
    top: 60px;
    left: 24px;
    right: 24px;
    height: 1px;
}

.hud-rule-bottom {
    bottom: 60px;
    left: 24px;
    right: 24px;
    height: 1px;
}

.hud-rule-left {
    left: 60px;
    top: 24px;
    bottom: 24px;
    width: 1px;
}

.hud-rule-right {
    right: 60px;
    top: 24px;
    bottom: 24px;
    width: 1px;
}

/* ========== CHAMBERS ========== */
.chamber {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chamber-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.chamber-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.chamber-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.field-lines-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vmin;
    height: 80vmin;
    z-index: 2;
    opacity: 0.3;
    pointer-events: none;
}

/* ========== TEXTURES ========== */
.texture-burgundy {
    background: radial-gradient(ellipse at center, #3D2A1E 0%, #2A1810 60%, #1C0F0A 100%);
}

.texture-parchment {
    background: radial-gradient(ellipse at center, #6B5A4A 0%, #3D2A1E 50%, #2A1810 100%);
}

.texture-dark {
    background: radial-gradient(ellipse at center, #2A1810 0%, #1C0F0A 100%);
}

.texture-deep {
    background: radial-gradient(ellipse at 50% 80%, #3D2A1E 0%, #1C0F0A 70%);
}

/* ========== TYPOGRAPHY ========== */
.title-reveal {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    letter-spacing: 0.02em;
    line-height: 1.05;
    color: #EDE3D4;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.title-reveal span.letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.title-reveal.visible span.letter {
    opacity: 1;
    transform: translateY(0);
}

#title-monopole {
    font-size: clamp(3.5rem, 8vw, 7rem);
    letter-spacing: 0.04em;
}

.subtitle-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: #B8A48C;
    margin-top: 1.5rem;
    opacity: 0;
    transition: opacity 1.2s ease 0.6s;
}

.subtitle-text.visible {
    opacity: 1;
}

.subtitle-attribution {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: #6B5A4A;
    margin-top: 0.75rem;
    opacity: 0;
    transition: opacity 1.2s ease 1s;
}

.subtitle-attribution.visible {
    opacity: 1;
}

/* ========== CHAMBER 1: THE PREDICTION ========== */
#chamber-prediction {
    background: #1C0F0A;
}

/* ========== CHAMBER 2: THE SEARCH ========== */
.data-panel {
    margin-top: 3rem;
    text-align: left;
    border-left: 1px solid rgba(196, 168, 130, 0.3);
    padding-left: 1.5rem;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(107, 90, 74, 0.15);
}

.data-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6B5A4A;
}

.data-value {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.85rem;
    color: #C4A882;
    letter-spacing: 0.05em;
}

.data-active {
    color: #D4566A;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========== CHAMBER 3: THE EVIDENCE ========== */
.evidence-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
    max-width: 700px;
}

@media (max-width: 640px) {
    .evidence-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
}

.evidence-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.evidence-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.evidence-icon {
    width: 80px;
    height: 80px;
    opacity: 0.6;
}

.evidence-readout {
    text-align: center;
}

.readout-label {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #EDE3D4;
    margin-bottom: 0.25rem;
}

.readout-date {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.65rem;
    color: #6B5A4A;
    margin-bottom: 0.5rem;
}

.readout-bar {
    width: 100%;
    height: 2px;
    background: rgba(107, 90, 74, 0.2);
    position: relative;
    overflow: hidden;
}

.readout-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #8C2F3B, #D4566A);
    transition: width 1.2s ease;
}

.readout-fill.filled {
    width: var(--fill-width);
}

/* ========== CHAMBER 4: THE IMPLICATIONS ========== */
.implications-text {
    margin-top: 3rem;
    text-align: center;
}

.implication-line {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    color: #B8A48C;
    line-height: 2;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.implication-line.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ========== CHAMBER 5: THE FUTURE ========== */
.future-statement {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: #B8A48C;
    line-height: 1.6;
    margin-top: 2rem;
    opacity: 0;
    transition: opacity 1s ease 0.3s;
}

.future-statement.visible {
    opacity: 1;
}

.future-domain {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-style: italic;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #C4A882;
    margin-top: 2.5rem;
    letter-spacing: 0.06em;
    opacity: 0;
    transition: opacity 1s ease 0.8s;
}

.future-domain.visible {
    opacity: 1;
}

.field-equation {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: #6B5A4A;
    margin-top: 1.5rem;
    letter-spacing: 0.1em;
    opacity: 0;
    transition: opacity 1s ease 1.2s;
}

.field-equation.visible {
    opacity: 1;
}

.field-equation strong {
    font-weight: 600;
    color: #9A7B5C;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-track {
    background: #1C0F0A;
}

::-webkit-scrollbar-thumb {
    background: #3D2A1E;
}

/* ========== NOISE OVERLAY ========== */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}
