
/* ==================================================
   GIANMARCO SPINA — ABOUT V1
   CINEMATIC TYPOGRAPHIC OPENING
================================================== */

:root {
    --about-black: #080808;
    --about-charcoal: #101010;
    --about-white: #f5f2eb;
    --about-gold: #d8b879;
    --about-muted: #888781;
}

html {
    scroll-behavior: smooth;
}

body.about-page {
    background: var(--about-charcoal);
    color: var(--about-white);
    overflow-x: hidden;
}

/* NAVIGATION */

.about-navbar {
    position: absolute;
    z-index: 100;
    width: 100%;
}

.about-navbar a[aria-current="page"] {
    color: var(--about-gold);
}

/* ==========================================
   01 — CINEMATIC OPENING
========================================== */

.about-opening {
    position: relative;
    height: 100svh;
    min-height: 620px;
    background: var(--about-black);
    overflow: hidden;
    isolation: isolate;
}

.about-opening-meta,
.about-opening-bottom {
    position: absolute;
    z-index: 5;
    left: 5%;
    right: 5%;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    font-family: Helvetica, Arial, sans-serif;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: .16em;
    color: rgba(245,242,235,.55);
}

.about-opening-meta {
    top: 125px;
}

.about-opening-bottom {
    bottom: 36px;
}

.about-opening-bottom a {
    text-decoration: none;
    color: var(--about-white);
    transition: color 220ms ease;
}

.about-opening-bottom a:hover {
    color: var(--about-gold);
}

.about-opening-center {
    position: absolute;
    z-index: 4;

    width: 90%;
    left: 5%;
    top: 50%;

    transform: translateY(-44%);

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

.about-opening-overline {
    color: var(--about-gold);
    font-size: 10px;
    letter-spacing: .27em;
    margin-bottom: clamp(23px,4vh,45px);
}

.about-opening-title {
    display: flex;
    flex-direction: column;
    align-items: center;

    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(83px,15vw,255px);
    line-height: .77;
    font-weight: 400;
    letter-spacing: -.098em;
}

.about-title-line {
    display: block;
    white-space: nowrap;
    transform-origin: center;
}

.about-title-second {
    color: transparent;
    -webkit-text-stroke: 1px var(--about-white);
    margin-top: .12em;
}

.about-title-period {
    color: var(--about-gold);
    -webkit-text-stroke: 0;
}

.about-opening-rule {
    height: 1px;
    width: min(560px,62vw);
    margin-top: clamp(38px,8vh,95px);
    overflow: hidden;
    background: rgba(255,255,255,.10);
}

.about-opening-rule span {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--about-gold);
    transform-origin: left;
}

.about-opening-caption {
    margin: 19px 0 0;
    font-size: 9px;
    letter-spacing: .17em;
    color: var(--about-muted);
}

.about-opening-shade {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,.13),
        transparent 28%,
        transparent 70%,
        rgba(0,0,0,.3)
    );
}

/* OPENING ANIMATION */

@media (prefers-reduced-motion: no-preference) {

    .about-opening-meta,
    .about-opening-bottom,
    .about-opening-overline,
    .about-opening-caption {
        opacity: 0;
    }

    .about-title-line {
        opacity: 0;
        transform: translateY(85px) scaleY(1.13);
        filter: blur(8px);
    }

    .about-opening-rule span {
        transform: scaleX(0);
    }

    .about-page.about-started .about-opening-meta {
        animation: aboutFadeIn 700ms ease .15s both;
    }

    .about-page.about-started .about-opening-overline {
        animation: aboutFadeUp 700ms ease .35s both;
    }

    .about-page.about-started .about-title-line:first-child {
        animation: aboutTitleIn 1200ms cubic-bezier(.16,1,.3,1)
                   .54s both;
    }

    .about-page.about-started .about-title-second {
        animation: aboutTitleIn 1300ms cubic-bezier(.16,1,.3,1)
                   .82s both;
    }

    .about-page.about-started .about-opening-rule span {
        animation: aboutLineIn 1050ms cubic-bezier(.76,0,.24,1)
                   1.25s both;
    }

    .about-page.about-started .about-opening-caption {
        animation: aboutFadeUp 750ms ease 1.56s both;
    }

    .about-page.about-started .about-opening-bottom {
        animation: aboutFadeIn 850ms ease 1.7s both;
    }

    @keyframes aboutTitleIn {
        from {
            opacity: 0;
            transform: translateY(85px) scaleY(1.13);
            filter: blur(8px);
        }

        to {
            opacity: 1;
            transform: translateY(0) scaleY(1);
            filter: blur(0);
        }
    }

    @keyframes aboutFadeIn {
        to { opacity: 1; }
    }

    @keyframes aboutFadeUp {
        from {
            opacity: 0;
            transform: translateY(15px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes aboutLineIn {
        to { transform: scaleX(1); }
    }
}

/* ==========================================
   BIOGRAPHY
========================================== */

.about-biography {
    max-width: 1600px;
    margin: auto;
    padding: 125px 7% 160px;
}

.about-section-meta {
    display: flex;
    justify-content: space-between;
    gap: 25px;

    padding-bottom: 20px;
    border-bottom: 1px solid rgba(245,242,235,.23);

    color: var(--about-muted);
    font-size: 9px;
    letter-spacing: .15em;
}

.about-biography-heading {
    padding: 110px 0 90px;
}

.about-eyebrow {
    display: block;
    color: var(--about-gold);
    font-size: 10px;
    letter-spacing: .18em;
}

.about-biography-heading h2 {
    margin: 28px 0 0;
    font-family: Georgia, serif;
    font-size: clamp(65px,10vw,155px);
    font-weight: 400;
    line-height: .94;
    letter-spacing: -.065em;
}

.about-biography-heading h2 em,
.about-journey-heading em {
    font-weight: 400;
    color: var(--about-gold);
}

.about-biography-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: clamp(40px,7vw,125px);
    align-items: start;
}

.about-language {
    border-top: 1px solid rgba(245,242,235,.28);
    padding-top: 21px;
}

.about-language-label {
    display: block;
    font-size: 10px;
    letter-spacing: .14em;
    color: var(--about-gold);
    margin-bottom: 44px;
}

.about-language p {
    margin: 0 0 25px;

    font-family: Georgia,serif;
    font-size: clamp(16px,1.45vw,20px);
    line-height: 1.75;
    letter-spacing: -.01em;

    color: rgba(245,242,235,.78);
}

.about-language a {
    color: var(--about-white);
    text-decoration-color: var(--about-gold);
    text-underline-offset: 5px;
}

.about-language a:hover {
    color: var(--about-gold);
}

/* ==========================================
   CATANIA — MILAN — CATANIA
========================================== */

.about-journey {
    position: relative;
    padding: 100px 7% 155px;
    overflow: hidden;
    background: #151514;
}

.about-journey .about-section-meta {
    max-width: 1400px;
    margin: auto;
}

.about-journey-heading {
    max-width: 1400px;
    margin: 90px auto 100px;

    font-family: Georgia,serif;
    font-size: clamp(75px,12vw,180px);
    line-height: .94;
    font-weight: 400;
    letter-spacing: -.07em;
}

.about-route {
    position: relative;

    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 35px;

    max-width: 1400px;
    margin: auto;
}

.about-route-line {
    position: absolute;
    top: 3px;
    left: 0;
    right: 0;

    height: 1px;
    background: rgba(216,184,121,.18);
}

.about-route-progress {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--about-gold);
    transform: scaleX(0);
    transform-origin: left;
    will-change: transform;
}

.about-route-stop {
    position: relative;
    padding-top: 42px;
}

.about-route-dot {
    position: absolute;
    top: 0;
    left: 0;

    width: 7px;
    height: 7px;
    border: 1px solid var(--about-gold);
    background: #151514;
    border-radius: 50%;
    transform: translateY(-3px);

    transition:
        background 300ms ease,
        box-shadow 300ms ease;
}

.about-route-stop.is-active .about-route-dot {
    background: var(--about-gold);
    box-shadow: 0 0 13px rgba(216,184,121,.65);
}

.about-route-number {
    color: var(--about-gold);
    font-size: 9px;
    letter-spacing: .15em;
}

.about-route-stop h3 {
    margin: 25px 0 13px;
    font-size: clamp(30px,4vw,68px);
    font-weight: 400;
    letter-spacing: -.065em;
}

.about-route-stop p {
    max-width: 250px;
    margin: 0;
    color: var(--about-muted);
    font-family: Georgia,serif;
    font-size: 16px;
    line-height: 1.55;
}

/* ==========================================
   FINAL QUOTE
========================================== */

.about-statement {
    position: relative;
    padding: 160px 7% 95px;
    min-height: 90svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-quote {
    margin: 65px 0 25px;

    font-family: Georgia,serif;
    font-size: clamp(46px,7.6vw,122px);
    font-weight: 400;
    line-height: 1.07;
    letter-spacing: -.06em;
}

.about-quote span {
    display: block;
    color: rgba(245,242,235,.23);
    transition: color 550ms ease;
}

.about-quote span.is-active {
    color: var(--about-white);
}

.about-quote span.about-quote-emphasis.is-active {
    color: var(--about-gold);
}

.about-quote-translation {
    margin: 20px 0 0;
    font-family: Georgia,serif;
    font-size: 17px;
    font-style: italic;
    color: var(--about-muted);
}

.about-statement-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;

    padding-top: 60px;
    margin-top: 80px;
    border-top: 1px solid rgba(245,242,235,.25);
}

.about-film-link,
.about-contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;

    color: var(--about-white);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: .12em;

    transition: color 250ms ease;
}

.about-film-link:hover,
.about-contact-link:hover {
    color: var(--about-gold);
}

.about-film-link span,
.about-contact-link span {
    transition: transform 300ms ease;
}

.about-film-link:hover span,
.about-contact-link:hover span {
    transform: translate(4px,-4px);
}

/* FOOTER */

.about-footer {
    padding: 30px 7%;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    border-top: 1px solid rgba(245,242,235,.13);

    font-size: 9px;
    letter-spacing: .13em;
    color: var(--about-muted);
}

.about-footer a {
    color: inherit;
    text-decoration: none;
}

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

@media(max-width:760px) {

    .about-opening {
        min-height: 520px;
    }

    .about-opening-meta {
        top: 110px;
    }

    .about-opening-meta span:last-child {
        display: none;
    }

    .about-opening-title {
        font-size: clamp(61px,14vw,105px);
    }

    .about-opening-bottom {
        bottom: 27px;
        font-size: 8px;
    }

    .about-opening-bottom span {
        display: none;
    }

    .about-biography {
        padding: 80px 7% 100px;
    }

    .about-biography-heading {
        padding: 85px 0 75px;
    }

    .about-biography-grid {
        grid-template-columns: 1fr;
        gap: 75px;
    }

    .about-journey {
        padding: 80px 7% 105px;
    }

    .about-journey-heading {
        margin: 70px 0;
    }

    .about-route {
        grid-template-columns: 1fr;
        gap: 45px;
        padding-left: 30px;
    }

    .about-route-line {
        top: 0;
        bottom: 0;
        left: 1px;
        width: 1px;
        height: auto;
    }

    .about-route-progress {
        width: 100%;
        transform-origin: top;
    }

    .about-route-dot {
        left: -33px;
        top: 43px;
    }

    .about-route-stop {
        padding-top: 20px;
    }

    .about-statement {
        padding: 110px 7% 75px;
        min-height: 75svh;
    }

    .about-statement-footer {
        margin-top: 65px;
    }
}

/* ACCESSIBILITY */

@media(prefers-reduced-motion:reduce) {
    .about-opening-meta,
    .about-opening-bottom,
    .about-opening-overline,
    .about-opening-caption,
    .about-title-line {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        animation: none !important;
    }

    .about-opening-rule span {
        transform: scaleX(1) !important;
    }

    .about-route-progress {
        transform: scaleX(1) !important;
    }

    .about-quote span {
        color: var(--about-white);
    }

    .about-quote .about-quote-emphasis {
        color: var(--about-gold);
    }
}
/* =========================================================
   BIOGRAPHY — BACKGROUND PORTRAIT DRAWINGS
========================================================= */

.about-biography {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}


/* =========================================================
   DRAWING LAYER
========================================================= */

.about-biography-art {
    position: absolute !important;

    top: 0 !important;
    left: 0 !important;

    width: 100% !important;
    height: 100% !important;

    z-index: 0 !important;

    overflow: hidden;

    pointer-events: none;
}


/* TUTTO IL CONTENUTO DELLA BIOGRAFIA SOPRA I DISEGNI */

.about-biography > *:not(.about-biography-art) {
    position: relative;
    z-index: 2;
}


/* =========================================================
   RESET DELLE IMMAGINI

   Questo serve soprattutto a neutralizzare eventuali
   regole globali del tipo img { width:100%; }
========================================================= */

.about-biography-art img.about-sketch {
    position: absolute !important;

    display: block !important;

    max-width: none !important;
    max-height: none !important;

    height: auto !important;

    margin: 0 !important;

    object-fit: contain;

    pointer-events: none;

    /*
       JPG originale:
       bianco = foglio
       nero = disegno

       invert:
       bianco -> nero
       nero -> bianco

       screen:
       il nero sparisce sul fondo scuro

       sepia/saturate:
       il tratto assume il tono champagne
    */

    filter:
        grayscale(1)
        contrast(1.7)
        invert(1)
        sepia(1)
        saturate(1.35)
        brightness(.92) !important;

    mix-blend-mode: screen !important;

    transform-origin: center center;

    z-index: 0;
}


/* =========================================================
   DISEGNO SINISTRO
========================================================= */

.about-biography-art img.about-sketch-left {
    width: 330px !important;

    left: -65px !important;
    right: auto !important;

    top: 260px !important;
    bottom: auto !important;

    opacity: .24 !important;

    transform:
        rotate(-4deg) !important;
}


/* =========================================================
   DISEGNO DESTRO
========================================================= */

.about-biography-art img.about-sketch-right {
    width: 300px !important;

    right: -45px !important;
    left: auto !important;

    top: auto !important;
    bottom: 170px !important;

    opacity: .19 !important;

    transform:
        rotate(3deg) !important;
}


/* =========================================================
   FADE VERSO IL CENTRO
========================================================= */

.about-biography-art::after {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(8, 8, 8, 0) 0%,
            rgba(8, 8, 8, .05) 12%,
            rgba(8, 8, 8, .45) 32%,
            rgba(8, 8, 8, .72) 45%,
            rgba(8, 8, 8, .72) 55%,
            rgba(8, 8, 8, .45) 68%,
            rgba(8, 8, 8, .05) 88%,
            rgba(8, 8, 8, 0) 100%
        );
}


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

@media (max-width: 900px) {

    .about-biography-art img.about-sketch-left {
        width: 270px !important;

        left: -100px !important;
        top: 220px !important;

        opacity: .19 !important;
    }


    .about-biography-art img.about-sketch-right {
        width: 250px !important;

        right: -95px !important;
        bottom: 140px !important;

        opacity: .15 !important;
    }

}


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

@media (max-width: 600px) {

    .about-biography-art img.about-sketch-left {
        width: 220px !important;

        left: -130px !important;
        top: 180px !important;

        opacity: .11 !important;
    }


    .about-biography-art img.about-sketch-right {
        width: 210px !important;

        right: -125px !important;
        bottom: 100px !important;

        opacity: .09 !important;
    }

}