/* ==================================================
   BASE
================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: #fdfdfd;
    color: #3a3a3a;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 17px;
    line-height: 1.7;
}


/* ==================================================
   MAIN CONTAINER
================================================== */

.container {
    width: 900px;
    max-width: calc(100% - 44px);

    margin: 0 auto;
}


/* ==================================================
   HEADER
================================================== */

header {
    padding-top: 85px;
    padding-bottom: 50px;

    text-align: center;
}

header h1 {
    margin: 0 0 15px;

    color: #202020;

    font-size: 58px;
    font-weight: 400;

    letter-spacing: -0.035em;
    line-height: 1.05;
}

header .subtitle {
    max-width: 780px;

    margin: 0 auto;

    color: #777777;

    font-size: 18px;
    font-weight: 400;

    line-height: 1.6;
}


/* ==================================================
   TEASER
================================================== */

.teaser {
    width: 100%;

    margin: 0 0 65px;

    overflow: hidden;
}

.teaser img {
    display: block;

    width: 100%;
    height: auto;
}


/* ==================================================
   SECTIONS
================================================== */

.section {
    padding: 55px 0;

    border-top: 1px solid #dddddd;

    text-align: center;
}

.section > small,
.credits > small {
    display: block;

    margin-bottom: 18px;

    color: #999999;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.14em;

    text-transform: uppercase;
}

.section h2 {
    margin: 0 0 20px;

    color: #333333;

    font-size: 32px;
    font-weight: 400;

    letter-spacing: -0.015em;
    line-height: 1.25;
}

.section p {
    max-width: 740px;

    margin: 0 auto 20px;

    color: #555555;

    font-size: 17px;
    font-weight: 400;

    line-height: 1.75;
}


/* ==================================================
   INTRODUCTION
================================================== */

.introduction {
    padding-top: 0;

    border-top: none;

    text-align: center;
}

.introduction > p {
    max-width: 720px;

    margin: 0 auto;

    color: #555555;

    font-size: 18px;

    line-height: 1.8;
}


/* ==================================================
   BUTTONS
================================================== */

.buttons {
    display: flex;

    justify-content: center;

    gap: 10px;

    margin: 35px 0 65px;
}

.button {
    display: inline-block;

    padding: 8px 15px;

    border: 1px solid #999999;
    border-radius: 2px;

    background: #f7f7f7;

    color: #444444;

    font-size: 14px;
    font-weight: 400;

    text-decoration: none;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.button:hover {
    background: #eeeeee;

    border-color: #666666;

    color: #222222;
}


/* ==================================================
   LARGE TOOL IMAGE
================================================== */

.large-image {
    width: 100%;

    margin: 65px auto 0;

    text-align: center;
}

.large-image img {
    display: block;

    width: 100%;
    max-width: 100%;

    height: auto;

    margin: 0 auto;
}


/* ==================================================
   FEATURE DEMO + FIELD TESTS
================================================== */

.videos-section {
    margin-top: 0;

    text-align: center;
}


/* ==================================================
   FEATURE DEMO VIDEO
================================================== */

.video-block {
    margin-top: 20px;
}

.video-text {
    max-width: 740px;

    margin: 0 auto 28px;

    text-align: center;
}

.video-text h2 {
    margin: 0 0 18px;

    color: #222222;

    font-size: 34px;
    font-weight: 400;

    letter-spacing: -0.02em;

    line-height: 1.2;
}

.video-text p {
    max-width: 700px;

    margin: 0 auto;

    color: #888888;

    font-size: 17px;

    line-height: 1.7;
}


/* ==================================================
   FIELD TESTS WITH ARTISTS
================================================== */

.artist-videos {
    margin-top: 90px;
}

.artist-videos-text {
    max-width: 740px;

    margin: 0 auto 40px;

    text-align: center;
}

.artist-videos-text h2 {
    margin: 0 0 18px;

    color: #222222;

    font-size: 34px;
    font-weight: 400;

    letter-spacing: -0.02em;

    line-height: 1.2;
}

.artist-videos-text p {
    max-width: 700px;

    margin: 0 auto;

    color: #888888;

    font-size: 17px;

    line-height: 1.7;
}


/* ==================================================
   ARTIST MODELS
================================================== */

.artist-models {
    display: grid;

    /*
       Sofia  → 2 immagini
       Davide → 1 immagine
       Astrid → 2 immagini
    */

    grid-template-columns: 2fr 1fr 2fr;

    gap: 20px;

    align-items: end;

    margin-top: 45px;
}

.artist-group {
    display: flex;

    flex-direction: column;

    min-width: 0;
}



/*
   Davide ha una sola immagine.
*/

.artist-group:nth-child(2) .artist-images {
    grid-template-columns: 1fr;
}

.artist-images {
    display: flex;

    justify-content: center;
    align-items: flex-end;

    gap: 10px;

    overflow: hidden;
}

.artist-images img {
    height: 180px;
    width: auto;

    flex: 0 0 auto;
}

/* ==================================================
   ARTIST NAMES
================================================== */

.artist-name {
    display: flex;

    align-items: center;
    justify-content: center;

    margin: 14px 0 0 !important;

    color: #888888 !important;

    font-size: 16px !important;
    font-weight: 400;

    line-height: 1.5 !important;
}

.artist-name::before,
.artist-name::after {
    content: "";

    flex: 1;

    height: 1px;

    background: #d5d5d5;
}

.artist-name::before {
    margin-right: 12px;
}

.artist-name::after {
    margin-left: 12px;
}

.artist-name a {
    color: #888888;

    text-decoration: underline;

    transition: color 0.15s ease;
}

.artist-name a:hover {
    color: #444444;
}

/* ==================================================
   ARTIST TIMELAPSES
================================================== */

.artist-timelapses {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 40px;

    margin-top: 60px;
}

.artist-timelapses .video {
    width: 100%;

    margin: 0;
}

/* ==================================================
   VIDEO
================================================== */

.video {
    width: 100%;

    margin: 0 auto;

    text-align: center;
}

.video video {
    display: block;

    width: 100%;
    max-width: 900px;

    height: auto;

    margin: 0 auto;

    background: #111111;
}


/* ==================================================
   CAPTIONS
================================================== */

.large-image figcaption,
.video figcaption {
    margin-top: 11px;

    color: #888888;

    font-size: 14px;
    font-weight: 400;

    line-height: 1.5;

    text-align: center;
}


/* ==================================================
   CAPTION LINKS
================================================== */

.video figcaption a,
.large-image figcaption a {
    color: #777777;

    text-decoration: underline;

    text-decoration-color: #c5c5c5;

    text-underline-offset: 3px;

    transition:
        color 0.15s ease,
        text-decoration-color 0.15s ease;
}

.video figcaption a:hover,
.large-image figcaption a:hover {
    color: #333333;

    text-decoration-color: #777777;
}

/* ==================================================
   THANKS
================================================== */
.testing-thanks {
    padding-top: 30px;

    text-align: center;
}

.testing-thanks p {
    max-width: 740px;

    margin: 0 auto;

    color: #888888;

    font-size: 18px;

    line-height: 1.7;
}


/* ==================================================
   ACKNOWLEDGEMENTS
================================================== */

.acknowledgements > p {
    max-width: 740px;

    margin: 0 auto 20px;

    color: #888888;

    font-size: 18px;

    line-height: 1.7;
}

.artists {
    margin-top: 25px !important;
}

.artists a {
    color: #777777;

    text-decoration: underline;

    text-decoration-color: #c5c5c5;

    text-underline-offset: 3px;

    transition:
        color 0.15s ease,
        text-decoration-color 0.15s ease;
}

.artists a:hover {
    color: #333333;

    text-decoration-color: #777777;
}


/* ==================================================
   FOOTER
================================================== */

footer {
    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    padding: 25px 0 50px;

    border-top: 1px solid #dddddd;

    color: #999999;

    font-size: 12px;
}

footer p {
    margin: 0;
}

.footer-university {
    text-align: left;
}

.footer-authors {
    text-align: center;
}

.footer-top {
    justify-self: end;

    color: #777777;

    text-decoration: none;
}


/* ==================================================
   FOOTER LINKS
================================================== */

footer a:not(.footer-top) {
    color: #777777;

    text-decoration: underline;

    text-decoration-color: #c5c5c5;

    text-underline-offset: 3px;

    transition:
        color 0.15s ease,
        text-decoration-color 0.15s ease;
}

footer a:not(.footer-top):hover {
    color: #333333;

    text-decoration-color: #777777;
}

.footer-top:hover {
    color: #333333;

    text-decoration: underline;
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 700px) {

    body {
        font-size: 16px;
    }


    /* CONTAINER */

    .container {
        width: 100%;

        max-width: none;

        padding-left: 20px;
        padding-right: 20px;
    }


    /* HEADER */

    header {
        padding-top: 50px;
        padding-bottom: 35px;
    }

    header h1 {
        font-size: 43px;
    }

    header .subtitle {
        font-size: 16px;
    }


    /* TEASER */

    .teaser {
        margin-bottom: 45px;
    }


    /* SECTIONS */

    .section {
        padding: 40px 0;
    }

    .section h2 {
        font-size: 28px;
    }

    .section p {
        font-size: 16px;

        line-height: 1.7;
    }


    /* INTRODUCTION */

    .introduction > p {
        font-size: 17px;

        line-height: 1.75;
    }


    /* BUTTONS */

    .buttons {
        flex-direction: column;

        align-items: stretch;

        gap: 8px;

        margin-bottom: 50px;
    }

    .button {
        width: 100%;

        padding: 10px 16px;

        text-align: center;
    }


    /* TOOL IMAGE */

    .large-image {
        margin-top: 45px;
    }


    /* FEATURE DEMO */

    .video-block {
        margin-top: 10px;
    }

    .video-text {
        margin-bottom: 22px;
    }

    .video-text h2 {
        font-size: 29px;
    }

    .video-text p {
        font-size: 16px;
    }


    /* FIELD TESTS */

    .artist-videos {
        margin-top: 60px;
    }

    .artist-videos-text {
        margin-bottom: 30px;
    }

    .artist-videos-text h2 {
        font-size: 29px;
    }

    .artist-videos-text p {
        font-size: 16px;
    }


    /* ARTIST MODELS */

    .artist-models {
        grid-template-columns: 1fr;

        gap: 40px;

        margin-top: 30px;
    }

    .artist-images {
        grid-template-columns: repeat(2, 1fr);
    }

    .artist-group:nth-child(2) .artist-images {
        grid-template-columns: 1fr;
    }

    .artist-name {
        margin-top: 10px !important;
    }


    /* TIMELAPSES */

    .artist-timelapses {
        grid-template-columns: 1fr;

        gap: 50px;

        margin-top: 50px;
    }


    /* VIDEO */

    .video video {
        width: 100%;
    }


    /* CAPTIONS */

    .large-image figcaption,
    .video figcaption {
        font-size: 13px;
    }


    /* FOOTER */

    footer {
        display: flex;

        flex-direction: column;

        gap: 10px;

        text-align: center;
    }

    .footer-university,
    .footer-authors,
    .footer-top {
        text-align: center;
    }

}