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

body {
    font-family: 'Instrument Sans', sans-serif;
    background: #000000;
    color: #CCCCCC;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 400;
    overflow-x: hidden;
}

/* Visible Grid Lines */
.grid-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.grid-lines.visible {
    opacity: 1;
}

.grid-line-v {
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background: #333333;
}

.grid-line-h {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: #333333;
}

/* Site Content */
.site-content {
    position: relative;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.site-content.visible {
    opacity: 1;
}

/* Navigation */
.nav {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 100;
}

.nav-item {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    color: #666666;
    letter-spacing: 0.05em;
}

.nav-item a {
    color: #666666;
    text-decoration: none;
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, auto);
    min-height: 100vh;
    padding: 120px 24px 80px;
    gap: 0;
}

.hero-name-top {
    grid-column: 1 / 5;
    grid-row: 2;
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 700;
    font-size: 64px;
    color: #FFFFFF;
    text-transform: lowercase;
    line-height: 1;
}

.hero-name-bottom {
    grid-column: 3 / 7;
    grid-row: 5;
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 700;
    font-size: 64px;
    color: #FF0000;
    text-transform: uppercase;
    text-align: right;
    line-height: 1;
}

/* Gallery */
.gallery {
    padding: 40px 24px 80px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

/* Contradiction Pairs */
.contradiction-pair {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    margin-bottom: 24px;
}

.contradiction-pair[data-pair="0"] .panel:first-child {
    grid-column: 1 / 4;
}
.contradiction-pair[data-pair="0"] .panel:last-child {
    grid-column: 3 / 7;
    z-index: 2;
}

.contradiction-pair[data-pair="1"] .panel:first-child {
    grid-column: 3 / 7;
    text-align: right;
}
.contradiction-pair[data-pair="1"] .panel:last-child {
    grid-column: 1 / 5;
    z-index: 2;
}

.contradiction-pair[data-pair="2"] .panel:first-child {
    grid-column: 1 / 4;
}
.contradiction-pair[data-pair="2"] .panel:last-child {
    grid-column: 4 / 7;
}

.contradiction-pair[data-pair="3"] .panel:first-child {
    grid-column: 1 / 4;
}
.contradiction-pair[data-pair="3"] .panel:last-child {
    grid-column: 3 / 6;
    z-index: 2;
}

/* Panel Styles */
.panel {
    padding: 32px 24px;
    transition: background-color 0.15s ease, color 0.15s ease;
    position: relative;
}

.panel-dark {
    background: #000000;
    border: 1px solid #333333;
}

.panel-dark .panel-text {
    color: #FFFFFF;
}

.panel-light {
    background: #FFFFFF;
}

.panel-light .panel-text {
    color: #333333;
}

.panel-red {
    background: #FF0000;
}

.panel-red .panel-text {
    color: #000000;
}

.panel-blue {
    background: #0000FF;
}

.panel-blue .panel-text {
    color: #FFFFFF;
}

/* Inverted states for contradiction hover */
.panel-dark.inverted {
    background: #FFFFFF;
}

.panel-dark.inverted .panel-text {
    color: #000000;
}

.panel-light.inverted {
    background: #000000;
}

.panel-light.inverted .panel-text {
    color: #FFFFFF;
}

.panel-red.inverted {
    background: #0000FF;
}

.panel-red.inverted .panel-text {
    color: #FFFFFF;
}

.panel-blue.inverted {
    background: #FF0000;
}

.panel-blue.inverted .panel-text {
    color: #000000;
}

/* Panel Text Sizes */
.panel-text {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 700;
}

.panel-text-huge {
    font-size: 64px;
    line-height: 1;
}

.panel-text-large {
    font-size: 36px;
    line-height: 1.2;
}

.panel-text-medium {
    font-size: 24px;
    line-height: 1.3;
}

.panel-text-small {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

.panel-text-tiny {
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* Meta Code / Alt-text as visible content */
.meta-code {
    display: block;
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    color: #666666;
    margin-top: 12px;
}

.raw-markup {
    grid-column: 2 / 6;
    padding: 40px 0;
}

.markup-display {
    font-family: 'Roboto Mono', monospace;
    font-size: 48px;
    font-weight: 400;
    color: #333333;
    line-height: 1;
    display: block;
}

.alttext-art {
    grid-column: 1 / -1;
    padding: 48px 24px;
    border-top: 1px solid #333333;
    border-bottom: 1px solid #333333;
    margin: 24px 0;
}

.alttext-display {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    color: #666666;
    line-height: 2;
    max-width: 600px;
}

/* Statement */
.statement {
    padding: 80px 24px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.statement-block {
    grid-column: 2 / 6;
}

.statement-text {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #CCCCCC;
    line-height: 1.5;
}

.statement .raw-markup {
    grid-column: 4 / 7;
    text-align: right;
}

/* Contact */
.contact {
    padding: 80px 24px 120px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.contact-block {
    grid-column: 1 / 3;
}

.contact-text {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: #FFFFFF;
}

.contact .meta-code {
    color: #666666;
}

/* Responsive */
@media (max-width: 600px) {
    .hero-name-top,
    .hero-name-bottom {
        font-size: 40px;
        grid-column: 1 / -1;
    }

    .hero-name-bottom {
        grid-row: 4;
    }

    .contradiction-pair {
        grid-template-columns: 1fr;
    }

    .contradiction-pair .panel {
        grid-column: 1 / -1 !important;
    }

    .markup-display {
        font-size: 24px;
    }

    .statement-block,
    .contact-block {
        grid-column: 1 / -1;
    }
}
