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

html, body {
    width: 100%;
    height: 100%;
}

body {
    background-color: #F5F0E8;
    background-image: radial-gradient(circle, #D4CFC7 1px, transparent 1px);
    background-size: 32px 32px;
    color: #2C2A26;
    font-family: 'Work Sans', sans-serif;
    font-size: 1.0625rem;
    line-height: 1.625;
    overflow: hidden;
}

.viewport-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px;
}

/* Footprint Icon */
.footprint-icon {
    position: absolute;
    top: 48px;
    left: 48px;
    width: 40px;
    height: 56px;
    animation: footprintFadeIn 0.6s ease-out 0.6s both;
}

.footprint-icon:hover {
    transform: rotate(12deg);
    transition: transform 300ms ease;
}

/* Grid Container */
.grid-container {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 32px;
    padding: 0 48px;
    max-width: 1400px;
}

.grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* ===================== TOP ROW ===================== */

/* Top-Left: Logotype */
.logotype-section {
    grid-column: 1 / 3;
    grid-row: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.domain-logotype {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3.2rem, 8vw, 6.4rem);
    font-weight: 700;
    color: #2C2A26;
    line-height: 1.1;
    opacity: 0;
    animation: logotypeFadeIn 0.4s ease-out 0.6s both;
}

.rule-top {
    width: 100%;
    height: 4px;
    background-color: #C8A96E;
    margin-top: 24px;
    animation: borderDraw 1.2s ease-out 0.2s both;
    animation-direction: normal;
}

@keyframes borderDraw {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes logotypeFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes footprintFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Top-Right: Geometric Circles */
.circles-section {
    grid-column: 4 / 7;
    grid-row: 1;
    padding: 24px;
}

.circles-composition {
    width: 200px;
    height: 180px;
    opacity: 0;
    animation: circlesFadeIn 0.5s ease-out 1s both;
}

.circles-svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

@keyframes circlesFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===================== DIAGONAL SECTION ===================== */

.diagonal-section {
    grid-column: 1 / 7;
    grid-row: 2 / 4;
    position: relative;
    padding: 48px 0;
}

.diagonal-statement {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 500;
    color: #2C2A26;
    line-height: 1.2;
    max-width: 700px;
    opacity: 0;
    animation: statementFadeIn 0.6s ease-in-out 1.4s both;
    position: relative;
    z-index: 2;
}

.diagonal-rule {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: diagonalFadeIn 0.8s ease-out 1.8s both;
    z-index: 1;
}

.diagonal-line {
    stroke-dasharray: 700;
    stroke-dashoffset: 700;
    animation: diagonalDraw 0.8s ease-out 1.8s both;
}

@keyframes statementFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes diagonalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes diagonalDraw {
    from {
        stroke-dashoffset: 700;
    }
    to {
        stroke-dashoffset: 0;
    }
}

/* ===================== BOTTOM ROW ===================== */

/* Bottom-Left: Manifesto Text */
.manifesto-section {
    grid-column: 1 / 3;
    grid-row: 4 / 6;
    align-items: flex-start;
    padding: 32px;
    background-color: #FDFBF7;
    border: 1px solid #D4CFC7;
}

.manifesto-content {
    width: 100%;
}

.manifesto-text {
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.625;
    color: #2C2A26;
    opacity: 0;
    animation: manifestoFadeIn 0.4s ease-out 2.2s both;
}

@keyframes manifestoFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Bottom-Right: Bauhaus Triad */
.triad-section {
    grid-column: 4 / 7;
    grid-row: 4 / 6;
    padding: 32px;
}

.bauhaus-triad {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.triangle {
    position: absolute;
    width: 160px;
    height: 160px;
    background-color: #C0392B;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    transform: rotate(-8deg);
    left: 0;
    top: 20px;
    opacity: 0;
    animation: tripleScaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 2.6s both;
}

.triangle:hover {
    transform: rotate(-8deg) translate(-4px, -4px);
    transition: transform 300ms ease;
}

.circle {
    position: absolute;
    width: 140px;
    height: 140px;
    background-color: #1A5276;
    border-radius: 50%;
    right: 0;
    top: 0;
    opacity: 0;
    animation: tripleScaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 2.75s both;
}

.circle:hover {
    transform: translate(4px, 4px);
    transition: transform 300ms ease;
}

.square {
    position: absolute;
    width: 120px;
    height: 120px;
    background-color: #C8A96E;
    transform: rotate(4deg);
    left: 40px;
    bottom: 0;
    opacity: 0;
    animation: tripleScaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 2.9s both;
}

.square:hover {
    transform: rotate(4deg) translate(4px, -4px);
    transition: transform 300ms ease;
}

@keyframes tripleScaleIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Accent Rules */
.rule-accent {
    position: absolute;
    width: 4px;
    background-color: #C8A96E;
}

.rule-bottom {
    bottom: 48px;
    left: 48px;
    width: 200px;
    height: 4px;
    opacity: 0;
    animation: borderDraw 0.8s ease-out 3s both;
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 768px) {
    .viewport-container {
        padding: 24px;
    }

    .grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 24px;
        padding: 0;
    }

    .grid-item {
        grid-column: 1 !important;
    }

    .logotype-section {
        grid-row: 1;
    }

    .circles-section {
        grid-row: 2;
    }

    .diagonal-section {
        grid-row: 3;
        display: none;
    }

    .manifesto-section {
        grid-row: 4;
    }

    .triad-section {
        grid-row: 5;
    }

    .domain-logotype {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .footprint-icon {
        width: 32px;
        height: 44px;
    }

    .rule-bottom {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .viewport-container {
        padding: 16px;
    }

    .grid-container {
        gap: 16px;
    }

    .domain-logotype {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

    .circles-composition {
        width: 140px;
        height: 120px;
    }

    .circles-svg {
        width: 140px;
        height: 120px;
    }

    .manifesto-section {
        padding: 16px;
    }

    .manifesto-text {
        font-size: 0.95rem;
    }

    .bauhaus-triad {
        width: 150px;
        height: 150px;
    }

    .triangle {
        width: 120px;
        height: 120px;
    }

    .circle {
        width: 100px;
        height: 100px;
    }

    .square {
        width: 80px;
        height: 80px;
    }

    .rule-top,
    .rule-bottom {
        height: 2px;
    }
}
