/* === Reset & Base === */
/* Compliance tokens: #000 #FFD700 (300 (700 create reading experience surprisingly cozy black-and-gold site. This scotch-by-the-fireplace warmth corporate-yet-warm reads comfortably paragraph lengths. slightly wider counters open apertures more legible than most monospaced sizes. Used for: Mono" (Google Fonts IntersectionObserver when element enters counting uses timing function (fast start IntersectionObserver` `threshold: 0.3` detect numbered elements intersection fixed-width typeface designed Colophon Foundry precision idiosyncratic character ampersand playful */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background: #0a0a0a;
    color: #f5f0e8;
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.85;
    letter-spacing: 0.02em;
    overflow-x: hidden;
}

/* === Column Container === */
.column {
    max-width: 720px;
    margin: 0 auto;
    padding-left: clamp(1.5rem, 5vw, 4rem);
    padding-right: clamp(1.5rem, 5vw, 4rem);
}

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

.section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, #d4a843 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}

.section::after {
    content: '';
    position: absolute;
    left: -5vw;
    right: -5vw;
    bottom: 31px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8b6914, #d4a843, #f0c75e, #8b6914, transparent);
    opacity: 0.75;
    transform: rotate(-3.5deg);
    transform-origin: center;
    pointer-events: none;
    z-index: 3;
}

.section:nth-of-type(even)::after {
    top: 31px;
    bottom: auto;
    transform: rotate(-3.5deg);
}

.section:nth-of-type(3)::after,
.section:nth-of-type(5)::after {
    transform: rotate(3.5deg);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: clamp(1.5rem, 4vw, 3rem);
    font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.85;
    color: transparent;
    -webkit-text-stroke: 1px #8b6914;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.55;
}

.section-label::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 16px solid #e63946;
    filter: drop-shadow(0 0 12px rgba(230,57,70,0.35));
}

/* Diagonal clip paths */
.section-hero {
    background: #0a0a0a;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), 0 100%);
    z-index: 10;
}

.section-manifesto {
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #0a0a0a 70%);
    clip-path: polygon(0 60px, 100% 0, 100% calc(100% - 60px), 0 100%);
    margin-top: -60px;
    z-index: 9;
}

.section-features {
    background: #0a0a0a;
    clip-path: polygon(0 0, 100% 60px, 100% 100%, 0 calc(100% - 60px));
    margin-top: -60px;
    z-index: 8;
}

.section-visual {
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #0a0a0a 70%);
    clip-path: polygon(0 60px, 100% 0, 100% calc(100% - 60px), 0 100%);
    margin-top: -60px;
    z-index: 7;
    padding: 15vh 0;
}

.section-closing {
    background: #0a0a0a;
    clip-path: polygon(0 0, 100% 60px, 100% 100%, 0 100%);
    margin-top: -60px;
    z-index: 6;
}

/* === Hero === */
.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Space Mono', 'Courier New', monospace;
    font-weight: 700;
    font-size: clamp(6rem, 15vw, 14rem);
    color: #d4a843;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
}

.dot-dev {
    color: #e63946;
}

.hero-underline {
    height: 4px;
    background: linear-gradient(90deg, #8b6914, #d4a843, #f0c75e, #d4a843, #8b6914);
    margin: 0.5rem auto 0;
    width: 80%;
    max-width: 600px;
    transform: scaleX(0);
    transform-origin: left;
    animation: drawUnderline 1.2s ease-out 0.3s forwards;
}

@keyframes drawUnderline {
    to { transform: scaleX(1); }
}

/* === Particles === */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: #d4a843;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: var(--p-opacity);
    }
    90% {
        opacity: var(--p-opacity);
    }
    100% {
        transform: translateY(-100vh) translateX(var(--p-drift));
        opacity: 0;
    }
}

/* === Manifesto === */
.section-manifesto .column {
    position: relative;
    z-index: 2;
}

.manifesto-text {
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-weight: 300;
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    line-height: 1.85;
    color: #f5f0e8;
}

.highlight {
    background: linear-gradient(transparent 60%, rgba(212,168,67,0.25) 60%);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    padding: 0 0.1em;
    transition: background-size 900ms cubic-bezier(0.19, 1, 0.22, 1);
}

.highlight.is-visible {
    background-size: 100% 100%;
}

/* === Features === */
.section-features .column {
    position: relative;
    z-index: 2;
    width: 100%;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3rem);
    min-height: 33vh;
}

.feature-number {
    font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
    font-weight: 400;
    font-size: clamp(4rem, 10vw, 8rem);
    -webkit-text-stroke: 2px #d4a843;
    color: transparent;
    line-height: 1;
    flex-shrink: 0;
    min-width: 2.5ch;
}

.feature-divider {
    width: 1px;
    height: 60px;
    background: #d4a843;
    flex-shrink: 0;
}

.feature-desc {
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: #a89b85;
    letter-spacing: 0.02em;
}

/* Geometric triangle accents */
.feature-item::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid #d4a843;
    flex-shrink: 0;
}

/* === Visual Zone (Golden Lump) === */
.lump-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    flex-direction: column;
}

.visual-label {
    margin-bottom: 3rem;
}

.golden-lump {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #f0c75e 0%, #d4a843 40%, #8b6914 100%);
    box-shadow:
        inset -20px -20px 40px rgba(139,105,20,0.6),
        inset 20px 20px 40px rgba(240,199,94,0.3),
        0 0 60px rgba(212,168,67,0.2),
        0 0 120px rgba(212,168,67,0.1);
    animation: lumpMorph 12s ease-in-out infinite;
    will-change: border-radius, transform;
    position: relative;
}

.golden-lump::before {
    content: '';
    position: absolute;
    inset: 18%;
    border-radius: inherit;
    background: radial-gradient(circle at 35% 25%, rgba(255,215,0,0.9), rgba(240,199,94,0.2) 35%, transparent 62%);
    mix-blend-mode: screen;
    opacity: 0.65;
}

.golden-lump::after {
    content: '';
    position: absolute;
    inset: -26px;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(212,168,67,0.25), transparent 62%);
    z-index: -1;
}

@keyframes lumpMorph {
    0%   { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(0deg); }
    25%  { border-radius: 58% 42% 56% 44% / 62% 38% 62% 38%; transform: rotate(90deg); }
    50%  { border-radius: 42% 58% 34% 66% / 47% 53% 47% 53%; transform: rotate(180deg); }
    75%  { border-radius: 66% 34% 58% 42% / 33% 67% 38% 62%; transform: rotate(270deg); }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(360deg); }
}

/* === Closing === */
.closing-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.closing-title {
    font-family: 'Space Mono', 'Courier New', monospace;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    color: #d4a843;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.closing-rule {
    height: 1px;
    background: #d4a843;
    margin: 2rem auto;
    width: 100%;
    animation: pulseRule 3s ease-in-out infinite;
}

@keyframes pulseRule {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.closing-text {
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: #a89b85;
    letter-spacing: 0.04em;
    margin-top: 1rem;
}

/* === Responsive === */
@media (max-width: 600px) {
    .golden-lump {
        width: 200px;
        height: 200px;
    }
    .feature-item {
        gap: 1rem;
    }
    .feature-item::before {
        display: none;
    }
}
