/* monopole.design - Industrial design catalog */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: #5a554e;
    background: #cec6ba;
    overflow-x: hidden;
    line-height: 1.7;
    font-size: clamp(0.9rem, 1.6vw, 1.05rem);
    letter-spacing: 0.01em;
}

/* Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 44px;
    background: #f5f0e8;
    border-bottom: 1px solid #cec6ba;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
}

.nav-word {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 11px;
    color: #2d2a26;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-section-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-sec {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: #8a8478;
    text-decoration: none;
    letter-spacing: 0.06em;
    transition: color 200ms ease;
}

.nav-sec:hover {
    color: #2d2a26;
}

.nav-sep {
    width: 3px;
    height: 3px;
    background: #cec6ba;
    border-radius: 50%;
}

/* Sections */
.section {
    position: relative;
}

/* Hero Bento */
.hero-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 8px;
    height: 100vh;
    padding-top: 44px;
    background: #cec6ba;
}

.bento-cell {
    background: #e8e2d8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cell-center {
    grid-column: 2 / 4;
    grid-row: 1 / 3;
    background: #f5f0e8;
    flex-direction: column;
    gap: 12px;
    padding: 32px;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: #2d2a26;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.hero-sub {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: #8a8478;
}

/* Stagger in */
.stagger-in {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 400ms ease, transform 400ms ease;
}

.stagger-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Products Section */
.products-section {
    background: #cec6ba;
    padding: 80px 8px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-cell {
    background: #e8e2d8;
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.product-cell:hover .product-specs {
    transform: translateY(0);
    opacity: 1;
}

.product-cell:hover .product-illustration svg {
    transform: scale(1.03);
}

.product-illustration {
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.product-illustration svg {
    width: 80%;
    height: 80%;
    transition: transform 400ms ease-out;
}

.model-number {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #8a8478;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.product-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1.3rem;
    color: #2d2a26;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.product-desc {
    font-size: 0.85rem;
    color: #5a554e;
}

.product-specs {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f5f0e8;
    padding: 16px 24px;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 300ms ease, opacity 300ms ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-line {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: #8a8478;
    letter-spacing: 0.06em;
}

/* Scroll in */
.scroll-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.scroll-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Specifications */
.specs-section {
    background: #f5f0e8;
    padding: 80px 32px;
    min-height: 100vh;
}

.specs-layout {
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.specs-sticky {
    position: sticky;
    top: 80px;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Rotating field diagram */
.rotating-field {
    width: 180px;
    height: 180px;
    position: relative;
    animation: fieldRotate 60s linear infinite;
}

.field-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #d4602a;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.field-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 80px;
    background: #cec6ba;
    transform-origin: 0 0;
}

.fl-1 { transform: rotate(0deg); }
.fl-2 { transform: rotate(30deg); }
.fl-3 { transform: rotate(60deg); }
.fl-4 { transform: rotate(90deg); }
.fl-5 { transform: rotate(120deg); }
.fl-6 { transform: rotate(150deg); }
.fl-7 { transform: rotate(180deg); }
.fl-8 { transform: rotate(210deg); }
.fl-9 { transform: rotate(240deg); }
.fl-10 { transform: rotate(270deg); }
.fl-11 { transform: rotate(300deg); }
.fl-12 { transform: rotate(330deg); }

@keyframes fieldRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.specs-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #2d2a26;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-row td {
    padding: 12px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid #cec6ba;
}

.spec-row.alt td {
    background: #e8e2d8;
}

.spec-key {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #8a8478;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    width: 40%;
}

.spec-val {
    font-family: 'Inter', sans-serif;
    color: #2d2a26;
}

/* Colophon */
.colophon-section {
    background: #1a1816;
    padding: 100px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 50vh;
}

.colophon-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 10vw;
    color: #2d2a26;
    letter-spacing: -0.05em;
    text-align: center;
    line-height: 1;
}

.colophon-line {
    width: 0;
    height: 2px;
    background: #d4602a;
    transition: width 2s ease;
}

.colophon-line.animated {
    width: 200px;
}

/* Mobile */
@media (max-width: 768px) {
    .hero-bento {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .cell-center {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .cell-f,
    .cell-g {
        display: none;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .specs-layout {
        grid-template-columns: 1fr;
    }

    .specs-sticky {
        position: relative;
        top: auto;
    }

    .nav-section-links {
        display: none;
    }

    .colophon-text {
        font-size: 12vw;
    }
}
