/* thesecond.world - Swiss Design Atlas */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --pure-white: #FAFAFA;
    --deep-indigo: #2A2A68;
    --soft-indigo: #6868A8;
    --lavender: #A8A8E0;
    --text-primary: #1A1A28;
    --text-body: #3A3A48;
    --text-annotation: #8A8A98;
    --warm-paper: #C0B8A8;
    --grid-color: #D0D0D8;
    --grid-line: rgba(208,208,216,0.05);
    --column-line: rgba(208,208,216,0.08);
}
body {
    background: linear-gradient(180deg, var(--pure-white), #F0F0F8);
    color: var(--text-primary);
    font-family: 'Archivo', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    font-weight: 400;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Paper Texture */
.paper-texture {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Grid Overlay */
.grid-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    max-width: 1200px;
    margin: 0 auto;
    left: 0;
    right: 0;
    background:
        repeating-linear-gradient(
            90deg,
            var(--grid-line),
            var(--grid-line) 1px,
            transparent 1px,
            transparent calc(100% / 12)
        );
    opacity: 0;
    animation: gridFadeIn 1s ease forwards;
}
@keyframes gridFadeIn {
    to { opacity: 1; }
}

/* Marble Columns */
.marble-columns {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    max-width: 1200px;
    margin: 0 auto;
    left: 0;
    right: 0;
}
.col-line {
    position: absolute;
    width: 1px;
    background: var(--column-line);
    top: 0;
    height: 0;
    animation: colDraw 2s ease forwards;
}
.col-1 { left: 38.2%; animation-delay: 0.5s; }
.col-2 { left: 61.8%; animation-delay: 0.8s; }
.col-3 { left: 76.4%; animation-delay: 1.1s; }
@keyframes colDraw {
    to { height: 100vh; }
}

/* Hero */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.hero-content {
    padding-left: 38.2%;
    padding-right: 15%;
}
.hero-title {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.hero-coords {
    font-family: 'Inconsolata', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--text-annotation);
}

/* Atlas Blocks */
#content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}
.atlas-block {
    padding: clamp(4rem, 8vh, 10rem) 0;
    max-width: 480px;
    transition: transform 0.3s ease;
}
.atlas-block:hover {
    transform: scale(1.005);
}
.block-1 { margin-left: 8.33%; }
.block-2 { margin-left: 41.66%; }
.block-3 { margin-left: 16.66%; }
.block-4 { margin-left: 50%; }
.block-5 { margin-left: 8.33%; }
.block-6 { margin-left: 33.33%; }

.block-label {
    font-family: 'Inconsolata', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--text-annotation);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.75rem;
}
.block-title {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}
.block-body {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.75;
    margin-bottom: 1rem;
}
.block-data {
    font-family: 'Inconsolata', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--soft-indigo);
}

/* Section Animation */
.section {
    opacity: 0;
    transition: opacity 0.8s ease;
}
.section.visible {
    opacity: 1;
}

/* Footer */
#footer {
    text-align: center;
    padding: clamp(4rem, 8vh, 8rem) 2rem;
    position: relative;
    z-index: 1;
}
.footer-text {
    font-family: 'Inconsolata', monospace;
    font-size: 0.75rem;
    color: var(--text-annotation);
    letter-spacing: 0.06em;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .atlas-block {
        margin-left: 0 !important;
        max-width: 100%;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .marble-columns, .grid-overlay { display: none; }
}
