/* =============================================
   MONOPOLE.CENTER — Brutalist Physics Zine
   ============================================= */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background: #1c1c1e;
    color: #d4d0cb;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    line-height: 1.65;
    letter-spacing: 0.01em;
    overflow: hidden;
}

/* =============================================
   FIXED GUTTER LINE
   ============================================= */
.gutter-line {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100vh;
    background: #e0ff00;
    z-index: 100;
    pointer-events: none;
}

/* =============================================
   MAGAZINE SCROLL CONTAINER
   ============================================= */
.magazine {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
}

/* =============================================
   SPREAD BASE
   ============================================= */
.spread {
    min-height: 100vh;
    scroll-snap-align: start;
    display: grid;
    grid-template-columns: 1fr 2px 1fr;
    position: relative;
    overflow: hidden;
}

.spread-left,
.spread-right {
    position: relative;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spread-gutter {
    background: transparent;
}

/* =============================================
   COVER SPREAD
   ============================================= */
.spread-cover {
    background: linear-gradient(135deg, #2e0854 0%, #1c1c1e 60%, #001a1f 100%);
}

.cover-content {
    position: relative;
    z-index: 2;
}

.cover-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 300;
    font-style: italic;
    line-height: 0.92;
    color: #ff00d4;
    transform: rotate(-3deg);
    margin-left: -1rem;
}

.cover-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: #d4d0cb;
    margin-top: 2rem;
    transform: rotate(-3deg);
}

.cover-monopole-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =============================================
   MONOPOLE DOT
   ============================================= */
.monopole-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle, #ff00d4 0%, rgba(255, 0, 212, 0.4) 40%, transparent 70%);
    box-shadow: 0 0 40px 15px rgba(255, 0, 212, 0.15), 0 0 80px 30px rgba(255, 0, 212, 0.05);
    position: absolute;
    z-index: 10;
    animation: pulse 3s ease-in-out infinite;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.monopole-dot:hover {
    box-shadow: 0 0 80px 30px rgba(255, 0, 212, 0.25), 0 0 160px 60px rgba(255, 0, 212, 0.1);
}

.monopole-dot-small {
    width: 16px;
    height: 16px;
}

@keyframes pulse {
    0%, 100% { transform: scale(0.9); }
    50% { transform: scale(1.1); }
}

/* =============================================
   FIELD LINES SVG
   ============================================= */
.field-lines-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    max-width: 800px;
    max-height: 800px;
    pointer-events: none;
}

.field-lines-svg path {
    fill: none;
    stroke: #00f0ff;
    stroke-width: 1.5;
    stroke-linecap: round;
}

.field-line {
    animation: drawLine var(--duration, 10s) ease-in-out infinite;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

@keyframes drawLine {
    0% { stroke-dashoffset: 1000; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -1000; }
}

/* =============================================
   FIELD VIZ CONTAINER (Spread 2)
   ============================================= */
.field-viz-container {
    position: relative;
    width: 100%;
    height: 80%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.field-lines-large {
    width: 120%;
    height: 120%;
}

/* =============================================
   TYPOGRAPHY — HEADINGS
   ============================================= */
h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 300;
    font-style: italic;
    line-height: 0.92;
    color: #ff00d4;
}

h2, .spread-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.6rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.1;
    color: #d4d0cb;
    margin-bottom: 1.5rem;
}

.spread-heading:hover {
    text-shadow: 0 0 20px rgba(255, 0, 212, 0.5);
    transition: text-shadow 0.3s ease;
}

/* =============================================
   BODY TEXT
   ============================================= */
.body-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    font-weight: 400;
    line-height: 1.65;
    color: #d4d0cb;
    letter-spacing: 0.01em;
    max-width: 520px;
}

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

/* =============================================
   DROP CAPS
   ============================================= */
.drop-cap {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5em;
    float: left;
    color: #ff00d4;
    line-height: 0.8;
    margin-right: 0.1em;
    margin-top: 0.05em;
}

/* =============================================
   PULL QUOTE
   ============================================= */
.pull-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 7vw, 5rem);
    font-weight: 700;
    font-style: italic;
    line-height: 1.1;
    color: #ff00d4;
    position: relative;
    z-index: 2;
}

.pq-mark {
    font-size: 1.5em;
    line-height: 0;
    vertical-align: -0.15em;
    color: #00f0ff;
}

.pq-cite {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.1em;
    color: #6b6870;
    margin-top: 1.5rem;
    text-transform: uppercase;
}

/* =============================================
   SPREAD BACKGROUNDS
   ============================================= */
.spread-what {
    background: #1c1c1e;
}

.spread-hunt {
    background: #2a2a2d;
}

.spread-why {
    background: #1c1c1e;
}

.spread-center {
    background: #2a2a2d;
}

/* =============================================
   TIMELINE
   ============================================= */
.timeline-container {
    position: relative;
    z-index: 2;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.milestone {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
}

.milestone-crystal {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.milestone-year {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #e0ff00;
    min-width: 60px;
    flex-shrink: 0;
}

.milestone-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #d4d0cb;
}

.timeline-connector {
    width: 1px;
    height: 20px;
    background: #6b6870;
    margin-left: 20px;
}

.hunt-right-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* =============================================
   THE CENTER SPREAD
   ============================================= */
.center-portrait {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.portrait-svg {
    max-width: 260px;
    width: 100%;
    height: auto;
}

.center-info {
    position: relative;
    z-index: 2;
}

.center-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: #6b6870;
    margin-bottom: 1.5rem;
}

.center-issue-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: #e0ff00;
    margin-top: 2rem;
}

/* =============================================
   CRYSTALLINE POLYGON SHARDS
   ============================================= */
.crystal {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.crystal::before {
    content: '';
    display: block;
    border: 1px solid;
}

.crystal-1 {
    bottom: 15%;
    right: 10%;
}
.crystal-1::before {
    width: 80px;
    height: 80px;
    border-color: rgba(0, 240, 255, 0.15);
    background: rgba(0, 240, 255, 0.04);
    transform: rotate(15deg);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: crystalFloat1 7s ease-in-out infinite;
    backdrop-filter: blur(2px);
}

.crystal-2 {
    top: 20%;
    right: 5%;
}
.crystal-2::before {
    width: 50px;
    height: 50px;
    border-color: rgba(255, 0, 212, 0.12);
    background: rgba(255, 0, 212, 0.05);
    transform: rotate(-22deg);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    animation: crystalFloat2 8s ease-in-out infinite;
    backdrop-filter: blur(2px);
}

.crystal-3 {
    top: 10%;
    left: 15%;
}
.crystal-3::before {
    width: 60px;
    height: 60px;
    border-color: rgba(224, 255, 0, 0.1);
    background: rgba(224, 255, 0, 0.03);
    transform: rotate(45deg);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: crystalFloat1 6s ease-in-out infinite;
    backdrop-filter: blur(2px);
}

.crystal-4 {
    bottom: 20%;
    right: 15%;
}
.crystal-4::before {
    width: 45px;
    height: 45px;
    border-color: rgba(0, 240, 255, 0.12);
    background: rgba(0, 240, 255, 0.04);
    transform: rotate(30deg);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation: crystalFloat2 7s ease-in-out infinite;
    backdrop-filter: blur(2px);
}

.crystal-5 {
    bottom: 10%;
    left: 10%;
}
.crystal-5::before {
    width: 70px;
    height: 70px;
    border-color: rgba(255, 0, 212, 0.1);
    background: rgba(255, 0, 212, 0.04);
    transform: rotate(-15deg);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: crystalFloat1 8s ease-in-out infinite;
    backdrop-filter: blur(2px);
}

.crystal-6 {
    top: 15%;
    right: 8%;
}
.crystal-6::before {
    width: 55px;
    height: 55px;
    border-color: rgba(0, 240, 255, 0.1);
    background: rgba(0, 240, 255, 0.03);
    transform: rotate(22deg);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    animation: crystalFloat2 6s ease-in-out infinite;
    backdrop-filter: blur(2px);
}

.crystal-7 {
    bottom: 25%;
    left: 5%;
}
.crystal-7::before {
    width: 40px;
    height: 40px;
    border-color: rgba(224, 255, 0, 0.08);
    background: rgba(224, 255, 0, 0.03);
    transform: rotate(-40deg);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: crystalFloat1 9s ease-in-out infinite;
    backdrop-filter: blur(2px);
}

.crystal-8 {
    bottom: 12%;
    left: 20%;
}
.crystal-8::before {
    width: 65px;
    height: 65px;
    border-color: rgba(0, 240, 255, 0.1);
    background: rgba(0, 240, 255, 0.04);
    transform: rotate(35deg);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation: crystalFloat2 7s ease-in-out infinite;
    backdrop-filter: blur(2px);
}

.crystal-9 {
    top: 18%;
    right: 12%;
}
.crystal-9::before {
    width: 48px;
    height: 48px;
    border-color: rgba(255, 0, 212, 0.1);
    background: rgba(255, 0, 212, 0.04);
    transform: rotate(-25deg);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: crystalFloat1 6s ease-in-out infinite;
    backdrop-filter: blur(2px);
}

.crystal-10 {
    bottom: 8%;
    right: 20%;
}
.crystal-10::before {
    width: 52px;
    height: 52px;
    border-color: rgba(224, 255, 0, 0.08);
    background: rgba(224, 255, 0, 0.03);
    transform: rotate(18deg);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    animation: crystalFloat2 8s ease-in-out infinite;
    backdrop-filter: blur(2px);
}

@keyframes crystalFloat1 {
    0%, 100% { transform: translateY(0) rotate(var(--base-rotate, 15deg)); }
    50% { transform: translateY(-8px) rotate(var(--base-rotate, 15deg)); }
}

@keyframes crystalFloat2 {
    0%, 100% { transform: translateY(0) rotate(var(--base-rotate, -22deg)); }
    50% { transform: translateY(6px) rotate(var(--base-rotate, -22deg)); }
}

/* =============================================
   BOUNCE-ENTER ANIMATIONS
   ============================================= */
.bounce-left,
.bounce-right,
.bounce-up {
    opacity: 0;
    will-change: transform, opacity;
}

.bounce-left {
    transform: translateX(-40px);
}

.bounce-right {
    transform: translateX(40px);
}

.bounce-up {
    transform: translateY(40px);
}

.bounce-left.visible {
    animation: bounceInLeft 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.bounce-right.visible {
    animation: bounceInRight 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.bounce-up.visible {
    animation: bounceInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes bounceInLeft {
    0% { opacity: 0; transform: translateX(-40px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes bounceInRight {
    0% { opacity: 0; transform: translateX(40px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes bounceInUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 768px) {
    .spread {
        grid-template-columns: 4px 1fr;
    }

    .spread-gutter {
        display: none;
    }

    .spread-left,
    .spread-right {
        padding: 2rem 1.5rem;
    }

    .spread-left {
        grid-column: 2;
    }

    .spread-right {
        grid-column: 2;
    }

    .gutter-line {
        left: 0;
        transform: none;
        background: #e0ff00;
        width: 4px;
    }

    .cover-title {
        font-size: clamp(2.5rem, 15vw, 5rem);
    }

    .pull-quote {
        font-size: clamp(1.5rem, 8vw, 3rem);
    }

    .field-viz-container {
        min-height: 250px;
    }

    .crystal-2,
    .crystal-4,
    .crystal-6,
    .crystal-7,
    .crystal-9 {
        display: none;
    }

    .spread {
        min-height: auto;
    }

    .spread-cover {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .spread-what,
    .spread-hunt,
    .spread-why,
    .spread-center {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }
}

/* =============================================
   SCROLLBAR
   ============================================= */
.magazine::-webkit-scrollbar {
    width: 0;
}

.magazine {
    scrollbar-width: none;
}
