/* polytics.club — Brutalist Celestial */

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

:root {
    --bg-deep: #1c1f26;
    --bg-mid: #252830;
    --border: #3a3f47;
    --text-muted: #6b7280;
    --text-secondary: #858a94;
    --text-tertiary: #9ca3af;
    --text-light: #b8bcc4;
    --text-bright: #d1d5dc;
}

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

body {
    background-color: var(--bg-deep);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Grain overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Sections */
.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

/* Grid lines background */
.grid-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, var(--border) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border) 1px, transparent 1px);
    background-size: 25% 25%;
    opacity: 0.3;
}

/* Hero */
.section--hero {
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 10vw, 8rem);
    letter-spacing: -0.03em;
    color: var(--text-bright);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.hero-title .dot {
    color: var(--text-muted);
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    max-width: 600px;
    margin: 0 auto;
}

/* Star field */
.star-field {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--text-light);
    border-radius: 50%;
    opacity: 0;
    animation: starPulse 3s ease-in-out infinite;
}

@keyframes starPulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.7; }
}

/* Grid Section */
.section--grid {
    padding: 6rem 2rem;
    min-height: auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: -0.03em;
    color: var(--text-bright);
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.grid-cell {
    background: var(--bg-mid);
    border: 1px solid var(--border);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    perspective: 800px;
}

.grid-cell:hover {
    z-index: 10;
    box-shadow: 0 0 40px rgba(28, 31, 38, 0.8);
}

.cell-inner {
    padding: 1.5rem;
    text-align: center;
    transform: translateZ(20px);
}

.cell-number {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.75rem;
    letter-spacing: 0.1em;
}

.cell-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-bright);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.cell-text {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Void Section */
.section--void {
    background: var(--bg-mid);
}

.void-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
}

.void-quote {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-light);
    letter-spacing: -0.02em;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.void-cite {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-size: 0.875rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* Footer */
.section--footer {
    min-height: 40vh;
    border-top: 1px solid var(--border);
}

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

.footer-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-coords {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.footer-coords span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* Responsive */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 3rem 1.5rem;
    }
}
