/* =============================================
   monopole.quest - Styles
   Light-Academia + Ocean-Deep Aesthetic
   ============================================= */

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

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

body {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    color: #c8d6e0;
    background-color: #0a1628;
    overflow-x: hidden;
    line-height: 1.72;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
}

/* --- SVG Filters (hidden) --- */
.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* --- Noise Layer --- */
.noise-layer {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    pointer-events: none;
    mix-blend-mode: overlay;
    z-index: 1;
}

/* --- City Grid Overlay --- */
.city-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, #134e5e 1px, transparent 1px),
        linear-gradient(to bottom, #134e5e 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.04;
    pointer-events: none;
    z-index: 2;
}

/* =============================================
   NAVIGATION
   ============================================= */
#nav-trigger {
    position: fixed;
    top: 28px;
    right: 28px;
    z-index: 1000;
}

.nav-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #b8976a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.nav-circle:hover {
    transform: scale(1.5);
    box-shadow: 0 0 20px rgba(184, 151, 106, 0.3);
}

.nav-icon {
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
}

.nav-circle:hover .nav-icon {
    opacity: 1;
}

.nav-icon span {
    display: block;
    width: 10px;
    height: 1.5px;
    background-color: #0a1628;
    border-radius: 1px;
}

/* Nav Overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(10, 22, 40, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.nav-panel {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 280px;
    background: rgba(13, 33, 55, 0.95);
    padding: 80px 40px 40px;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-overlay.active .nav-panel {
    transform: translateX(0);
}

.nav-close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 28px;
    color: #b8976a;
    cursor: pointer;
    transition: transform 0.3s ease;
    line-height: 1;
}

.nav-close:hover {
    transform: scale(1.2);
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nav-links li a {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #c8d6e0;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.nav-links li a:hover {
    color: #b8976a;
    transform: scale(1.04);
}

.nav-links li a.nav-focused {
    transform: scale(1.04);
    color: #b8976a;
}

.nav-links li a.nav-dimmed {
    transform: scale(0.96);
    opacity: 0.7;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    overflow: hidden;
}

.hero-left {
    width: 55%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 6% 60px 8%;
    background-color: #0a1628;
    position: relative;
    z-index: 3;
}

.hero-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    color: #eef2f5;
    letter-spacing: 0.12em;
    line-height: 1.1;
    margin-bottom: 32px;
    opacity: 0;
    transform: scale(1.15);
    animation: heroTitleIn 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-thesis {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: #b8976a;
    line-height: 1.6;
    max-width: 540px;
    opacity: 0;
    animation: fadeIn 1.2s ease 1s forwards;
}

@keyframes heroTitleIn {
    0% {
        opacity: 0;
        transform: scale(1.15);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Hero Divider */
.hero-divider {
    position: absolute;
    left: 55%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(0deg, transparent 0%, #b8976a 50%, transparent 100%);
    z-index: 10;
}

/* Hero Right Panel */
.hero-right {
    width: 45%;
    height: 100%;
    position: relative;
    background: linear-gradient(180deg, #0a1628 0%, #0d2137 40%, #134e5e 100%);
    overflow: hidden;
}

.hero-right .noise-layer {
    opacity: 0.06;
    animation: breathingScale 12s cubic-bezier(0.37, 0, 0.63, 1) infinite alternate;
}

@keyframes breathingScale {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

/* =============================================
   MONOPOLE FIELD MOTIF
   ============================================= */
.monopole-field {
    position: absolute;
    width: 500px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: monopoleRotate 60s linear infinite;
}

.monopole-field--hero {
    width: 600px;
    height: 600px;
    left: 60%;
}

.monopole-field--small {
    width: 300px;
    height: 300px;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 40px auto;
}

.monopole-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1a7a7a;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(26, 122, 122, 0.6), 0 0 60px rgba(26, 122, 122, 0.2);
    z-index: 3;
}

.monopole-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(184, 151, 106, 0.15);
    transform: translate(-50%, -50%);
}

.monopole-ring-1 {
    width: 80px;
    height: 80px;
}

.monopole-ring-2 {
    width: 160px;
    height: 160px;
}

.monopole-ring-3 {
    width: 240px;
    height: 240px;
}

@keyframes monopoleRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.monopole-field--small {
    animation: monopoleRotateSmall 60s linear infinite;
}

@keyframes monopoleRotateSmall {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hero monopole hover interaction */
.monopole-field--hero:hover {
    animation-duration: 30s;
}

.monopole-field--hero:hover .monopole-ring-1 {
    animation: ringPulse 2s ease-out forwards;
}

.monopole-field--hero:hover .monopole-ring-2 {
    animation: ringPulse 2s ease-out 0.15s forwards;
}

.monopole-field--hero:hover .monopole-ring-3 {
    animation: ringPulse 2s ease-out 0.3s forwards;
}

@keyframes ringPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.4; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* =============================================
   BREATHING STRIPS
   ============================================= */
.breathing-strip {
    position: relative;
    width: 100%;
    height: 30vh;
    background: linear-gradient(180deg, #0a1628 0%, #0d2137 100%);
    overflow: hidden;
}

/* =============================================
   SECTION BREAKS
   ============================================= */
.section-break {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
    background-color: #0d2137;
}

.break-circle {
    width: 16px;
    height: 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.break-circle::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(184, 151, 106, 0.3);
}

.break-circle span {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(184, 151, 106, 0.3);
}

/* =============================================
   SPLIT SECTIONS
   ============================================= */
.split-section {
    position: relative;
    display: flex;
    min-height: 100vh;
    overflow: hidden;
}

.split-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 6%;
    overflow: hidden;
}

/* Text panels */
.split-text {
    z-index: 3;
}

/* Visual panels */
.split-visual {
    background: linear-gradient(180deg, #0a1628 0%, #0d2137 40%, #134e5e 100%);
    z-index: 2;
}

/* 60/40 split */
.split-60-40 .split-text {
    width: 60%;
}

.split-60-40 .split-visual {
    width: 40%;
}

/* 40/60 split */
.split-40-60 .split-visual {
    width: 40%;
}

.split-40-60 .split-text {
    width: 60%;
}

/* 50/50 split */
.split-50-50 .split-text {
    width: 50%;
}

.split-50-50 .split-visual {
    width: 50%;
}

/* Section headings */
.section-heading {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    color: #eef2f5;
    letter-spacing: 0.04em;
    margin-bottom: 32px;
    line-height: 1.2;
}

/* Body text in sections */
.split-text p {
    margin-bottom: 1.4em;
    max-width: 620px;
}

.split-text p:last-child {
    margin-bottom: 0;
}

/* --- Panel animations --- */
.animate-panel {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   PULLQUOTES
   ============================================= */
.pullquote-block {
    position: relative;
    padding: 40px 30px 40px 50px;
    z-index: 5;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pullquote-block:hover {
    transform: scale(1.04);
}

.pullquote-block--centered {
    text-align: center;
    padding-left: 30px;
}

.pullquote-marker {
    position: absolute;
    left: 20px;
    top: 50px;
    width: 16px;
    height: 16px;
}

.pullquote-block--centered .pullquote-marker {
    position: relative;
    left: auto;
    top: auto;
    margin: 0 auto 16px;
}

.marker-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #b8976a;
    transform: translate(-50%, -50%);
}

.marker-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #b8976a;
    transform: translate(-50%, -50%);
}

.pullquote {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: #b8976a;
    line-height: 1.6;
}

.pullquote cite {
    display: block;
    margin-top: 16px;
    font-size: 0.85em;
    color: #5a8a6e;
    font-style: italic;
}

/* =============================================
   MONOPOLE VISUALIZATION (Section 2)
   ============================================= */
.monopole-visualization {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 40px auto;
    animation: monopoleRotate 60s linear infinite;
    z-index: 5;
}

.viz-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1a7a7a;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(26, 122, 122, 0.5);
    z-index: 3;
}

.viz-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(184, 151, 106, 0.15);
    transform: translate(-50%, -50%);
}

.viz-ring-1 { width: 40px; height: 40px; }
.viz-ring-2 { width: 80px; height: 80px; }
.viz-ring-3 { width: 120px; height: 120px; }
.viz-ring-4 { width: 180px; height: 180px; }
.viz-ring-5 { width: 240px; height: 240px; }

/* Monopole pulse animation */
.monopole-visualization.pulsing .viz-ring-1 {
    animation: vizRingPulse 1.5s ease-out forwards;
}
.monopole-visualization.pulsing .viz-ring-2 {
    animation: vizRingPulse 1.5s ease-out 0.15s forwards;
}
.monopole-visualization.pulsing .viz-ring-3 {
    animation: vizRingPulse 1.5s ease-out 0.3s forwards;
}
.monopole-visualization.pulsing .viz-ring-4 {
    animation: vizRingPulse 1.5s ease-out 0.45s forwards;
}
.monopole-visualization.pulsing .viz-ring-5 {
    animation: vizRingPulse 1.5s ease-out 0.6s forwards;
}

@keyframes vizRingPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        border-color: rgba(184, 151, 106, 0.15);
    }
    40% {
        transform: translate(-50%, -50%) scale(1.25);
        border-color: rgba(184, 151, 106, 0.4);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        border-color: rgba(184, 151, 106, 0.15);
    }
}

/* =============================================
   ABSTRACT IMAGE BLOCK (Section 3)
   ============================================= */
.abstract-image-block {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    z-index: 3;
}

.abstract-layer {
    position: absolute;
    border-radius: 50%;
}

.abstract-layer-1 {
    width: 300px;
    height: 300px;
    top: 15%;
    left: 10%;
    background: radial-gradient(circle, rgba(26, 122, 122, 0.2) 0%, rgba(19, 78, 94, 0.1) 50%, transparent 70%);
    animation: abstractFloat1 10s ease-in-out infinite alternate;
}

.abstract-layer-2 {
    width: 200px;
    height: 200px;
    top: 40%;
    left: 30%;
    background: radial-gradient(circle, rgba(184, 151, 106, 0.12) 0%, rgba(184, 151, 106, 0.05) 50%, transparent 70%);
    animation: abstractFloat2 14s ease-in-out infinite alternate;
}

.abstract-layer-3 {
    width: 250px;
    height: 250px;
    top: 25%;
    left: 20%;
    background: radial-gradient(circle, rgba(90, 138, 110, 0.1) 0%, transparent 60%);
    animation: abstractFloat3 18s ease-in-out infinite alternate;
}

@keyframes abstractFloat1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, -15px) scale(1.05); }
}

@keyframes abstractFloat2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-15px, 20px) scale(1.08); }
}

@keyframes abstractFloat3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10px, 10px) scale(0.95); }
}

/* =============================================
   MONOPOLE WATERMARKS
   ============================================= */
.monopole-watermark {
    position: absolute;
    width: 120px;
    height: 120px;
    opacity: 0.06;
    z-index: 1;
    background:
        radial-gradient(circle, #1a7a7a 3px, transparent 4px),
        radial-gradient(circle, transparent 19px, rgba(184, 151, 106, 0.15) 20px, transparent 21px),
        radial-gradient(circle, transparent 39px, rgba(184, 151, 106, 0.15) 40px, transparent 41px),
        radial-gradient(circle, transparent 59px, rgba(184, 151, 106, 0.15) 60px, transparent 61px);
    background-position: center;
    background-repeat: no-repeat;
    animation: monopoleRotateSmall 60s linear infinite;
}

.monopole-watermark--tr {
    top: 30px;
    right: 30px;
}

.monopole-watermark--bl {
    bottom: 30px;
    left: 30px;
}

.monopole-watermark--br {
    bottom: 30px;
    right: 30px;
}

/* Watermark pulse on scroll-into-view */
.monopole-watermark.pulse-active {
    animation: watermarkPulse 1.8s ease-out forwards, monopoleRotateSmall 60s linear infinite;
}

@keyframes watermarkPulse {
    0% { opacity: 0.06; transform: scale(0.9) rotate(0deg); }
    50% { opacity: 0.15; transform: scale(1.15) rotate(10deg); }
    100% { opacity: 0.06; transform: scale(1) rotate(0deg); }
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    position: relative;
    min-height: 50vh;
    background: linear-gradient(180deg, #0d2137 0%, #0a1628 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 80px 20px 60px;
    overflow: hidden;
}

/* City Skyline */
.footer-skyline {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 140px;
    z-index: 2;
}

.footer-skyline::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 1px;
    box-shadow:
        /* Building 1 */ -350px -30px 0 5px #0d2137, -350px -50px 0 5px #0d2137, -350px -70px 0 5px #0d2137,
        /* Building 2 */ -310px -30px 0 8px #0d2137, -310px -60px 0 8px #0d2137, -310px -90px 0 8px #0d2137, -310px -110px 0 8px #0d2137,
        /* Building 3 */ -260px -30px 0 6px #0d2137, -260px -55px 0 6px #0d2137,
        /* Building 4 */ -220px -30px 0 10px #0d2137, -220px -60px 0 10px #0d2137, -220px -90px 0 10px #0d2137, -220px -120px 0 10px #0d2137,
        /* Building 5 */ -170px -30px 0 7px #0d2137, -170px -55px 0 7px #0d2137, -170px -80px 0 7px #0d2137,
        /* Building 6 */ -120px -30px 0 5px #0d2137, -120px -45px 0 5px #0d2137,
        /* Building 7 - tallest */ -70px -30px 0 12px #0d2137, -70px -60px 0 12px #0d2137, -70px -90px 0 12px #0d2137, -70px -120px 0 12px #0d2137,
        /* Building 8 */ -20px -30px 0 8px #0d2137, -20px -55px 0 8px #0d2137, -20px -75px 0 8px #0d2137,
        /* Building 9 */ 30px -30px 0 6px #0d2137, 30px -50px 0 6px #0d2137, 30px -65px 0 6px #0d2137,
        /* Building 10 */ 80px -30px 0 9px #0d2137, 80px -60px 0 9px #0d2137, 80px -90px 0 9px #0d2137,
        /* Building 11 */ 130px -30px 0 5px #0d2137, 130px -45px 0 5px #0d2137,
        /* Building 12 */ 180px -30px 0 11px #0d2137, 180px -60px 0 11px #0d2137, 180px -90px 0 11px #0d2137, 180px -115px 0 11px #0d2137,
        /* Building 13 */ 240px -30px 0 7px #0d2137, 240px -50px 0 7px #0d2137, 240px -70px 0 7px #0d2137,
        /* Building 14 */ 290px -30px 0 6px #0d2137, 290px -50px 0 6px #0d2137,
        /* Building 15 */ 340px -30px 0 8px #0d2137, 340px -55px 0 8px #0d2137, 340px -80px 0 8px #0d2137,
        /* Glow behind tallest buildings */
        -70px -80px 30px 20px rgba(19, 78, 94, 0.08),
        -220px -80px 25px 15px rgba(19, 78, 94, 0.06),
        180px -70px 28px 18px rgba(19, 78, 94, 0.07);
}

/* Footer content */
.footer-content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 500px;
}

.footer-brand {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: #eef2f5;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
}

.footer-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: 1.1rem;
    color: #b8976a;
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #b8976a, transparent);
    margin: 0 auto 24px;
}

.footer-note {
    font-size: 0.85rem;
    color: #5a8a6e;
    font-weight: 400;
}

/* =============================================
   ZOOM-FOCUS INTERACTION UTILITY
   ============================================= */
.zoom-focus-active {
    transform: scale(1.04);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.zoom-focus-dim {
    opacity: 0.7;
    transition: opacity 0.4s ease;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
    }

    .hero-left {
        width: 100%;
        height: 60vh;
        padding: 40px 6%;
    }

    .hero-right {
        width: 100%;
        height: 40vh;
    }

    .hero-divider {
        left: 0;
        top: 60vh;
        bottom: auto;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, transparent 0%, #b8976a 50%, transparent 100%);
    }

    .split-section {
        flex-direction: column;
    }

    .split-60-40 .split-text,
    .split-60-40 .split-visual,
    .split-40-60 .split-text,
    .split-40-60 .split-visual,
    .split-50-50 .split-text,
    .split-50-50 .split-visual {
        width: 100%;
    }

    .split-visual {
        min-height: 40vh;
        order: -1;
    }

    .split-40-60 .split-visual {
        order: -1;
    }

    .split-text {
        padding: 60px 6%;
    }

    .monopole-field--hero {
        width: 300px;
        height: 300px;
        left: 50%;
    }

    .monopole-visualization {
        width: 200px;
        height: 200px;
    }

    .viz-ring-4 { width: 140px; height: 140px; }
    .viz-ring-5 { width: 180px; height: 180px; }

    .abstract-layer-1 { width: 200px; height: 200px; }
    .abstract-layer-2 { width: 140px; height: 140px; }
    .abstract-layer-3 { width: 170px; height: 170px; }

    .footer-skyline {
        width: 100%;
        max-width: 600px;
    }

    .nav-panel {
        width: 240px;
    }
}

@media (max-width: 480px) {
    .hero-left {
        padding: 30px 5%;
    }

    .hero-title {
        letter-spacing: 0.06em;
    }

    .split-text {
        padding: 40px 5%;
    }

    .section-heading {
        margin-bottom: 24px;
    }

    .pullquote-block {
        padding: 30px 20px 30px 40px;
    }
}
