:root {
    --bg-parchment: #f5efe6;
    --text-bronze: #5a4a3a;
    --text-umber: #4a3f33;
    --text-copper: #8a7b6a;
    --accent-amber: #c9a055;
    --shadow-walnut: #2a2118;
    --marble-stone: #d8d2c8;
    --blush-patina: #b08878;
    --warm-sepia: #a08060;
    --deep-parchment: #ede5d8;
    --blur-base: 8px;
    --transition-focus: 1200ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-parchment);
    color: var(--text-umber);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: 1.85;
    overflow-x: hidden;
}

/* Marble veining - subtle background texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(137deg, transparent 40%, rgba(216, 210, 200, 0.04) 41%, transparent 42%),
        linear-gradient(53deg, transparent 55%, rgba(216, 210, 200, 0.05) 56%, transparent 57%),
        radial-gradient(ellipse at 20% 50%, rgba(216, 210, 200, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(216, 210, 200, 0.04) 0%, transparent 40%),
        linear-gradient(217deg, transparent 30%, rgba(176, 136, 120, 0.02) 31%, transparent 32%);
}

/* ====== SECTIONS ====== */
.section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    z-index: 1;
}

/* ====== APERTURE ====== */
.section--aperture {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
}

.aperture-field-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.aperture-field-lines line {
    stroke: var(--blush-patina);
    stroke-opacity: 0.3;
    stroke-width: 1;
}

.monopole-point {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-amber);
    z-index: 3;
    box-shadow:
        0 0 3px 1px #c9a055,
        0 0 12px 4px rgba(201, 160, 85, 0.35),
        0 0 40px 12px rgba(201, 160, 85, 0.12),
        0 0 80px 25px rgba(201, 160, 85, 0.05);
}

.aperture-title {
    position: relative;
    z-index: 4;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-weight: 400;
    font-size: clamp(3.5rem, 10vw, 9rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 0.95;
    color: var(--text-bronze);
    display: flex;
}

.aperture-title .char {
    display: inline-block;
    filter: blur(12px);
    opacity: 0;
    transition: filter 800ms cubic-bezier(0.16, 1, 0.3, 1), opacity 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.aperture-title .char.focused {
    filter: blur(0);
    opacity: 1;
}

/* ====== THRESHOLD ZONES ====== */
.threshold {
    width: 100%;
    height: 12vh;
    background: rgba(160, 128, 96, 0.08);
    position: relative;
    z-index: 1;
}

.hairline {
    width: 100%;
    height: 1px;
    background: var(--marble-stone);
    position: relative;
    z-index: 1;
}

/* ====== NARRATIVE SECTIONS ====== */
.section--narrative {
    min-height: 80vh;
    padding: 12vh 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.section--left .section-label,
.section--left .section-heading,
.section--left .section-body {
    margin-left: 8vw;
    max-width: clamp(300px, 55vw, 680px);
}

.section--right .section-label,
.section--right .section-heading,
.section--right .section-body {
    margin-left: auto;
    margin-right: 8vw;
    max-width: clamp(300px, 55vw, 680px);
}

.section-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-copper);
    margin-bottom: 1.5rem;
    display: block;
}

.section-heading {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 4.5rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 0.95;
    color: var(--text-bronze);
    margin-bottom: 2rem;
}

.section-body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: 1.85;
    color: var(--text-umber);
}

.section-body em,
.section-body strong {
    font-weight: 600;
}

/* ====== BLUR-FOCUS SYSTEM ====== */
.blurred-section {
    filter: blur(var(--blur-base));
    opacity: 0.5;
    transition: filter var(--transition-focus), opacity var(--transition-focus);
    will-change: filter, opacity;
}

.blurred-section.in-view {
    filter: blur(0);
    opacity: 1;
}

/* ====== SINGULARITY ====== */
.section--singularity {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
}

.singularity-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-amber);
    box-shadow:
        0 0 3px 1px #c9a055,
        0 0 12px 4px rgba(201, 160, 85, 0.35),
        0 0 40px 12px rgba(201, 160, 85, 0.12),
        0 0 80px 25px rgba(201, 160, 85, 0.05);
    opacity: 0;
    transform: scale(1);
    transition: opacity 600ms ease;
}

.singularity-dot.visible {
    opacity: 1;
    animation: pulse 2s ease-in-out 3;
}

.singularity-dot.faded {
    opacity: 0.4;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

.singularity-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    line-height: 1.85;
    color: var(--text-copper);
    text-align: center;
    max-width: 520px;
    margin-top: 4rem;
    padding: 0 2rem;
    filter: blur(8px);
    opacity: 0;
    transition: filter 1200ms cubic-bezier(0.16, 1, 0.3, 1), opacity 1200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.singularity-text.revealed {
    filter: blur(0);
    opacity: 1;
}

/* ====== FIELD LINES SVG ====== */
.aperture-field-lines svg {
    width: 100%;
    height: 100%;
}

.field-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: extendLine 6s ease-out forwards;
}

@keyframes extendLine {
    to { stroke-dashoffset: 0; }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 600px) {
    .section--right .section-label,
    .section--right .section-heading,
    .section--right .section-body {
        margin-left: 6vw;
        margin-right: 6vw;
    }
    .section--left .section-label,
    .section--left .section-heading,
    .section--left .section-body {
        margin-left: 6vw;
        margin-right: 6vw;
    }
}
