/* ============================================
   monopole.design — Styles
   Navy-metallic palette, marble textures,
   elastic animations, geological pace
   ============================================ */

/* --- CSS Variables --- */
:root {
    --midnight-navy: #0B1120;
    --deep-slate: #151E2E;
    --calacatta-cream: #F0EDE6;
    --metallic-silver: #A8B5C4;
    --steel-gray: #5C6B7F;
    --oxidized-silver: #8B9AAD;
    --vein-gold: #C4A872;
    --carbon-ink: #0A0D12;
    --marble-warm: #D8D1C4;
    --cool-steel: #7A8999;

    --font-display: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'Libre Baskerville', 'Georgia', serif;
    --font-handwritten: 'Caveat', cursive;

    --elastic-ease: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--midnight-navy);
    color: var(--metallic-silver);
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.75;
    letter-spacing: 0.005em;
    overflow-x: hidden;
}

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

/* --- Fault Line --- */
#fault-line {
    position: fixed;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100vh;
    background-color: var(--steel-gray);
    z-index: 1;
    opacity: 0;
    transform: translateX(-0.5px);
    transition: opacity 1.5s ease;
    pointer-events: none;
}

#fault-line.visible {
    opacity: 1;
}

/* --- Domain Label --- */
#domain-label {
    position: fixed;
    top: 24px;
    left: 24px;
    font-family: var(--font-handwritten);
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
    color: var(--steel-gray);
    z-index: 10;
    transition: opacity 0.8s ease;
}

#domain-label.faded {
    opacity: 0.3;
}

/* --- Sections --- */
.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15vw;
}

/* --- Marble Background Layer --- */
.marble-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(240,237,230,0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(240,237,230,0.03) 0%, transparent 50%),
        repeating-linear-gradient(23deg, transparent, transparent 100px, rgba(196,168,114,0.04) 100px, rgba(196,168,114,0.04) 101px),
        repeating-linear-gradient(157deg, transparent, transparent 80px, rgba(216,209,196,0.03) 80px, rgba(216,209,196,0.03) 81px),
        radial-gradient(ellipse at 50% 50%, rgba(240,237,230,0.03) 0%, transparent 70%);
}

.marble-bg-intense {
    background:
        radial-gradient(ellipse at 15% 20%, rgba(240,237,230,0.12) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 40%, rgba(216,209,196,0.10) 0%, transparent 45%),
        radial-gradient(ellipse at 40% 80%, rgba(240,237,230,0.08) 0%, transparent 50%),
        repeating-linear-gradient(23deg, transparent, transparent 60px, rgba(196,168,114,0.10) 60px, rgba(196,168,114,0.10) 61px),
        repeating-linear-gradient(157deg, transparent, transparent 45px, rgba(216,209,196,0.08) 45px, rgba(216,209,196,0.08) 46px),
        repeating-linear-gradient(90deg, transparent, transparent 120px, rgba(240,237,230,0.06) 120px, rgba(240,237,230,0.06) 121px),
        radial-gradient(ellipse at 50% 50%, rgba(196,168,114,0.06) 0%, transparent 60%);
}

/* --- Opening Void --- */
#opening-void {
    min-height: 100vh;
    flex-direction: column;
    background-color: var(--midnight-navy);
}

.void-content {
    text-align: center;
    z-index: 2;
}

.studio-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.8rem, 7vw, 6rem);
    letter-spacing: 0.04em;
    line-height: 1.1;
    color: var(--calacatta-cream);
    text-transform: uppercase;
}

.studio-name .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(4px);
}

.studio-name .letter.visible {
    animation: letterFadeIn 0.4s var(--elastic-ease) forwards;
}

@keyframes letterFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.studio-subtitle {
    font-family: var(--font-handwritten);
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--steel-gray);
    opacity: 0;
    margin-top: 8px;
    transition: opacity 0.8s ease;
}

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

/* --- Manifesto --- */
.section-manifesto {
    min-height: 120vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 30vh;
    padding-bottom: 30vh;
}

.manifesto-text {
    max-width: 38ch;
    margin-left: -8px;
    position: relative;
    z-index: 2;
}

.manifesto-sentence {
    font-family: var(--font-body);
    font-style: italic;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--metallic-silver);
    line-height: 1.75;
    margin-bottom: 1.5em;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s ease, transform 0.6s var(--elastic-ease);
}

.manifesto-sentence.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Bubble Clusters --- */
.bubble-cluster {
    position: relative;
    height: 30vh;
    width: 200px;
    margin: 0 auto;
    pointer-events: none;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--oxidized-silver);
    background: transparent;
    will-change: transform;
}

/* --- Specimen Plates --- */
.section-specimen {
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    background-color: var(--midnight-navy);
}

.specimen-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    z-index: 2;
}

.sketch-svg {
    width: 100%;
    height: auto;
}

.sketch-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 1.2s ease;
}

.sketch-line.drawn {
    stroke-dashoffset: 0;
}

.specimen-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--calacatta-cream);
    text-align: center;
    margin-top: 2rem;
    letter-spacing: 0.04em;
}

.specimen-caption {
    font-family: var(--font-handwritten);
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
    color: var(--steel-gray);
    text-align: center;
    margin-top: 0.5rem;
}

/* --- Annotations --- */
.annotation {
    position: absolute;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.5s ease, transform 0.5s var(--elastic-ease);
}

.annotation.visible {
    opacity: 1;
    transform: translateX(0);
}

.annotation-text {
    font-family: var(--font-handwritten);
    font-size: clamp(0.8rem, 1.3vw, 1rem);
    color: var(--steel-gray);
    white-space: nowrap;
}

.annotation-line {
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--steel-gray);
    margin-bottom: 4px;
    opacity: 0.5;
}

/* --- Material Studies --- */
.section-material {
    min-height: 80vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.material-text {
    position: relative;
    z-index: 2;
    text-align: center;
}

.material-line {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--steel-gray);
    line-height: 2;
    mix-blend-mode: multiply;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.8s ease, transform 0.8s var(--elastic-ease);
}

.material-line.visible {
    opacity: 1;
    transform: translateY(0);
}

/* On dark backgrounds multiply won't work well, use screen or normal */
@supports (mix-blend-mode: screen) {
    .material-line {
        mix-blend-mode: screen;
    }
}

/* --- Contact Void --- */
.section-contact {
    min-height: 60vh;
    flex-direction: column;
    background-color: var(--midnight-navy);
}

.bubble-cluster-contact {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 100%;
}

.contact-email {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--oxidized-silver);
    text-decoration: none;
    letter-spacing: 0.02em;
    z-index: 2;
    transition: text-shadow 0.3s ease;
}

.contact-email:hover {
    animation: shimmer 1.5s ease infinite;
}

@keyframes shimmer {
    0%, 100% {
        text-shadow: 0 0 8px rgba(168,181,196,0.3);
    }
    50% {
        text-shadow: 0 0 2px rgba(168,181,196,0.1);
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .section {
        padding: 0 8vw;
    }

    .manifesto-text {
        margin-left: 0;
    }
}
