/* -------------
  CONF GENERAL
---------------- */

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

    body {
        background: white;
        color: #1c1c1b;
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
        overflow-x: hidden;
    }



/* -------------
  MENÚ LATERAL
---------------- */

    .menu {
        position: fixed;
        left: 3.4vw;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        gap: 55px;
        z-index: 100;
    }

    .menu a {
        position: relative;
        color: #121212;
        text-decoration: none;
        font-size: 15px;
        font-weight: 450;
        opacity: 1;
        transition: opacity 0.5s ease;
        text-decoration: underline;
        text-underline-offset: 4px;
    }

    .menu a:hover {
        opacity: 0.45;
    }



/* ------
    K
-------- */

    .big-k {
        position: fixed;
        top: 5px;
        left: 30px;
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
        font-size: 300px;
        font-weight: 300;
        line-height: 0.8;
        letter-spacing: -0.12em;
        text-decoration: none;
        color: #121212;
        z-index: 100;
        transform-origin: top left;
        transition: transform 0.4s ease;
    }

    .big-k:hover {
        transform: scale(1.08);
    }



/* -----------
   CONTINGUT 
------------- */

    .about-page { 
        margin: 60px 0 0 450px;
        padding-right: 0;
    }

    .about-intro {
        width: calc(100% - 50px);
        font-size: 52px;
        line-height: 1.2;
        font-weight: 400;
        letter-spacing: -1.5px;
        text-transform: uppercase;
        text-align: justify;
    }

    .about-foto {
        display: block;
        width: 600px;
        height: auto;
        margin: 0 40px 60px auto;
    }



/* -----------------
   INFO DESPLEGABLE
-------------------- */

    .desplegable {
        width: 400px;
        margin: 30px 660px 70px auto;
    }

    .desplegable-button {
        background: none;
        border: none;
        padding: 0;
        font-family: inherit;
        font-size: 15px;
        font-weight: 450;
        color: #1c1c1b;
        cursor: none;
        opacity: 1;
        transition: opacity 0.5s ease;
        text-decoration: underline;
        text-underline-offset: 4px;
    }

    .desplegable-button:hover {
        opacity: 0.45;
    }

    .desplegable-text {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        margin-top: 0;

        font-size: 18px;
        line-height: 1.3;
        font-weight: 300;
        letter-spacing: -0.20px;
        word-spacing: 12px;
        text-align: justify;

        transition:
        max-height 0.6s ease,
        opacity 0.4s ease,
        margin-top 0.6s ease;
    }

    .desplegable-text.open {
        max-height: 500px;
        opacity: 1;
        margin-top: 40px;
    }

    .desplegable-text p {
        margin-bottom: 25px;
    }



/* ---------
   FOOTER
------------ */

    .footer {
        width: 100%;
        height: 270px;
        background-color: #121212;
        color: white;
        padding: 40px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .footer-top {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        column-gap: 80px;
    }

    .footer-item {
        display: flex;
        flex-direction: column;
        font-size: 15px;
        line-height: 2;
        font-weight: 300;
        text-align: center;
    }

    .footer-label {
        margin-bottom: 5px;
    }

    .footer-bottom {
        width: 100%;
        text-align: right;
        padding-right: 90px;
        font-size: 15px;
        line-height: 1.2;
        font-weight: 400;
    }



/* --------
   CURSOR
----------- */

    html {
        cursor: none;
    }

    .cursor {
        position: fixed;
        width: 20px;
        height: 20px;
        border: 2px solid #1c1c1b;
        border-radius: 50%;
        background: transparent;
        pointer-events: none;
        z-index: 99999;
        transform: translate(-50%, -50%);
        transition:
        width 0.2s ease,
        height 0.2s ease,
        background 0.2s ease,
        border 0.2s ease;
    }

    .cursor.cursor-active {
        background: #1c1c1b;
    }

    a,
    button {
        cursor: none;
    }



/* ----------------
   FADE DE PÁGINA
---------------- */

    .about-page,
    .desplegable,
    .about-foto,
    .footer {
        opacity: 0;
        transition: opacity 1.1s ease;
    }

    body.page-visible .about-page,
    body.page-visible .desplegable,
    body.page-visible .about-foto,
    body.page-visible .footer {
        opacity: 1;
    }

    body.page-exit .menu,
    body.page-exit .big-k,
    body.page-exit .about-page,
    body.page-exit .desplegable,
    body.page-exit .about-foto,
    body.page-exit .footer {
        opacity: 0;
        transition: opacity 1.1s ease;
    }





/* =====================================
   RESPONSIVE — TAULETES
===================================== */

@media screen and (max-width: 1024px) {

    /* K */

    .big-k {
        font-size: 220px;
        left: 25px;
    }


    /* MENÚ */

    .menu {
        left: 3.4vw;
        gap: 35px;
    }


    /* INTRODUCCIÓ */

    .about-page {
        margin: 60px 35px 0 280px;
    }

    .about-intro {
        width: 100%;
        font-size: clamp(32px, 4.5vw, 46px);
    }


    /* DESPLEGABLE */

    .desplegable {
        width: 350px;
        max-width: 55%;
        margin: 30px 12vw 70px auto;
    }

    .desplegable-text {
        font-size: 16px;
        word-spacing: 4px;
    }


    /* FOTOGRAFIA */

    .about-foto {
        width: 65%;
        max-width: 600px;
        margin: 0 30px 60px auto;
    }


    /* FOOTER */

    .footer-top {
        column-gap: 25px;
    }

}


/* =====================================
   RESPONSIVE — MÒBILS
===================================== */

@media screen and (max-width: 600px) {

    /* GENERAL */

    body {
        overflow-x: hidden;
    }


    /* K */

    .big-k {
        position: absolute;
        top: 5px;
        left: 15px;
        font-size: 145px;
        line-height: 0.8;
    }

    .big-k:hover {
        transform: none;
    }


    /* MENÚ LATERAL */

    .menu {
        position: fixed;
        left: 5vw;
        top: 50%;
        transform: translateY(-50%);

        display: flex;
        flex-direction: column;
        gap: 25px;

        z-index: 200;
    }

    .menu a {
        font-size: 11px;
        white-space: nowrap;
    }


    /* TEXT INTRODUCTORI */

    .about-page {
        margin: 175px 5vw 0 24vw;
        padding: 0;
    }

    .about-intro {
        width: 100%;
        font-size: clamp(18px, 4.5vw, 26px);
        line-height: 1.2;
        letter-spacing: -0.5px;
        text-align: justify;
    }


    /* DESPLEGABLE */

    .desplegable {
        width: auto;
        max-width: none;
        margin: 30px 5vw 55px 24vw;
    }

    .desplegable-button {
        font-size: 13px;
        cursor: pointer;
    }

    .desplegable-text {
        font-size: 12px;
        line-height: 1.35;
        letter-spacing: -0.2px;
        word-spacing: 2px;
        text-align: justify;
    }

    .desplegable-text.open {
        max-height: 1200px;
        margin-top: 25px;
    }

    .desplegable-text p {
        margin-bottom: 20px;
    }


    /* FOTOGRAFIA */

    .about-foto {
        width: 78%;
        height: auto;
        margin: 0 5vw 60px auto;
    }


    /* FOOTER */

    .footer {
        height: auto;
        min-height: 300px;
        padding: 35px 20px 25px;
        gap: 45px;
    }

    .footer-top {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 15px;
        row-gap: 30px;
    }

    .footer-item {
        font-size: 12px;
        line-height: 1.6;
        overflow-wrap: anywhere;
    }

    .footer-label {
        margin-bottom: 5px;
    }

    .footer-bottom {
        padding-right: 0;
        font-size: 12px;
    }


    /* CURSOR */

    .cursor {
        display: none;
    }

    html,
    body,
    a,
    button {
        cursor: auto;
    }

}
