/* ========================================
   BASE
======================================== */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: #111;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(0, 0, 0, 0.025),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #fafafa 50%,
            #ffffff 100%
        );
}


/* ========================================
   PAGE
======================================== */

.page {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}


/* ========================================
   HEADER
======================================== */

.site-header {
    padding:
        clamp(3rem, 10vh, 6rem)
        5vw
        clamp(1rem, 2vh, 2rem);

    text-align: center;
}

.brand {
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    font-weight: 700;

    letter-spacing: 0.28em;
}

.subtitle {
    margin-top: clamp(0.9rem, 1.8vh, 1.4rem);

    font-size: clamp(0.55rem, 0.7vw, 0.7rem);

    letter-spacing: 0.2em;

    color: #777;
}


/* ========================================
   MAIN
======================================== */

.site-main {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    padding:
        clamp(1.5rem, 3vw, 3rem)
        5vw
        clamp(2rem, 5vw, 5rem);
}


/* ========================================
   DIVISIONS
======================================== */

.divisions {
    width: min(90vw, 75rem);

    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.division {
    position: relative;

    min-height: clamp(18rem, 42vh, 26rem);

    padding:
        clamp(2rem, 4vw, 4rem)
        clamp(1.5rem, 4vw, 3.5rem);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    color: inherit;

    transition:
        transform 0.35s ease,
        background-color 0.35s ease;
}


/* ========================================
   DIVISION SEPARATORS
======================================== */

.division + .division {
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}


/* ========================================
   LOGO AREA
======================================== */

/*
   All three logos use the same logo area.
   The images are aligned to the top edge.
*/

.division-logo {
    width: min(90%, 16rem);
    height: clamp(9rem, 21vh, 13rem);

    display: flex;
    align-items: flex-start;
    justify-content: center;
}


/*
   Logo width determines its physical size.
   Height follows the original SVG ratio.
*/

.division-logo img {
    display: block;

    width: 100%;
    height: auto;

    max-height: 100%;

    object-fit: contain;
    object-position: top center;

    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
}


/*
   Atelier has a wider physical logo.
   Reduce only Atelier so all three logos
   have approximately the same visual width.
*/

.division-logo--atelier img {
    width: 80%;

    margin-top: clamp(0.5rem, 1vh, 0.75rem);
}


/* ========================================
   DIVISION INFO
======================================== */

.division-info {
    margin-top: clamp(0.3rem, 0.7vh, 0.6rem);

    display: flex;
    flex-direction: column;
    align-items: center;
}


.accent {
    width: clamp(1.5rem, 3vw, 2.2rem);
    height: 2px;

    margin-bottom: 0.7rem;

    background: #b51218;

    transform: scaleX(0.6);
    transform-origin: center;

    transition:
        width 0.35s ease,
        transform 0.35s ease;
}


.label {
    font-size: clamp(0.55rem, 0.65vw, 0.7rem);

    font-weight: 700;

    letter-spacing: 0.18em;

    color: #777;

    text-align: center;

    white-space: nowrap;

    transition: color 0.35s ease;
}


/* ========================================
   HOVER
======================================== */

.division:hover {
    background: rgba(255, 255, 255, 0.65);

    transform: translateY(-0.3rem);
}


.division:hover .division-logo img {
    transform:
        translateY(-0.4rem)
        scale(1.025);
}


.division:hover .accent {
    width: clamp(2.5rem, 5vw, 3.5rem);

    transform: scaleX(1);
}


.division:hover .label {
    color: #111;
}


/* ========================================
   FOOTER
======================================== */

.site-footer {
    padding:
        1rem
        5vw
        clamp(1.25rem, 3vh, 2rem);

    text-align: center;

    font-size: clamp(0.55rem, 0.65vw, 0.7rem);

    letter-spacing: 0.08em;

    color: #888;
}


.footer-line {
    width: clamp(3rem, 5vw, 4.5rem);
    height: 1px;

    margin:
        0 auto
        clamp(0.7rem, 1.5vh, 1rem);

    background: rgba(0, 0, 0, 0.12);
}


.footer-email {
    margin-top: 0.45rem;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 800px) {

    .site-header {
        padding-top: 6vh;
    }


    .divisions {
        width: min(90vw, 30rem);

        grid-template-columns: 1fr;
    }


    .division {
        min-height: clamp(12rem, 25vh, 16rem);

        padding:
            clamp(1.5rem, 4vh, 2.5rem)
            2rem;
    }


    .division + .division {
        border-left: none;

        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }


    .division-logo {
        width: min(75%, 14rem);

        height: clamp(6rem, 15vh, 9rem);
    }


    .division-logo--atelier img {
        width: 80%;

        margin-top: clamp(0.4rem, 0.8vh, 0.6rem);
    }


    .division-info {
        margin-top: 0.3rem;
    }
}


/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 450px) {

    .site-header {
        padding-top: 1.75rem;
    }


    .brand {
        letter-spacing: 0.22em;
    }


    .subtitle {
        letter-spacing: 0.12em;
    }


    .site-main {
        padding-top: 1rem;
        padding-bottom: 1.5rem;
    }


    .division {
        min-height: 11rem;
    }


    .division-logo {
        width: 65%;
        height: 6rem;
    }


    .division-logo--atelier img {
        width: 80%;
    }
}
