/* =========================
   RESET
========================= */

html, body {
    height: 100%;
}

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

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

body {
    font-family: Arial, sans-serif;
    font-weight: 200;
    cursor: none;
    position: relative;
}

/* =========================
   LAYOUT
========================= */

.container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    min-height: 100vh;
}

/* =========================
   COLUMNS
========================= */

.left-column {
    grid-column: 1 / 5;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 0 40px 40px;
}

.right-column {
    grid-column: 7 / 13;
    padding: 10px;
}

.mobile-contact {
  display: none;
}

/* =========================
   COMPONENTS
========================= */


.intro h1 {
    max-width: 600px;
    font-size: 24px;
    font-weight: 200;
    line-height: 1.2;
    color: #333;
    gap: 20px;
}


.headline-line {
    display: block;
    padding-bottom: 16px;
}

.headline-role {
  display: block;
  padding-bottom: 16px;

}

.links {
    display: flex;
    gap: 32px;
    cursor: none;
    color: #333;
}

.links a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s;
    cursor: none;
}

.links a:hover {
    color: #ff0000;
    cursor: none;
}


.work-link {
    font-weight: 500;
    text-decoration: none;
    color: #333;
    cursor: none;
}

.work-link:hover {
    color: #ff0000;
}



/* botão escondido por padrão */
.back-to-top {
    position: fixed;

    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(20px) scale(.9);

    width: 52px;
    height: 52px;

    border-radius: 50%;
    border: 1px white;

    background: black;

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

    opacity: 0;
    pointer-events: none;

    z-index: 100;

    transition:
        opacity .35s cubic-bezier(.19,1,.22,1),
        transform .35s cubic-bezier(.19,1,.22,1);

}

.back-to-top.visible {
    border: 1px solid rgba(360,360,360,0.2);
    opacity: 1;

    transform: translateX(-50%) translateY(0) scale(1);

    pointer-events: auto;

}

.back-to-top:active {
  transform: translateX(-50%) scale(.92);

}

/* =========================
   IMAGE
========================= */

.right-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}




/* =========================
   CURSOR
========================= */

/* =========================
   CUSTOM CURSOR
========================= */

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;

    width: 12px;
    height: 12px;
    border-radius: 50%;

    pointer-events: none;
    z-index: 999999;

    --cursor-scale: 1;

    transform: translate(-50%, -50%) scale(var(--cursor-scale));
    transition:
        width .25s cubic-bezier(.19,1,.22,1),
        height .25s cubic-bezier(.19,1,.22,1),
        transform .2s ease;


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




/* camada que faz o invert */
.custom-cursor::before {
    content: "";
    position: absolute;
    inset: 0;
    background: black;   /* default preto */
    border-radius: 50%;
}

/* Slider mode cor */
.custom-cursor.slider-mode::before {
    background: white;
}

.custom-cursor.slider-mode .cursor-icon {
    color: black;
}

.cursor-icon {
    width: 20px;
    height: 20px;
    opacity: 0;
    color: black;
    transform: scale(0.6);
    transition: 
        opacity 0.25s ease,
        transform 0.35s cubic-bezier(.19,1,.22,1);
}

.custom-cursor.slider-mode .cursor-icon {
    opacity: 1;
    transform: scale(1);
}

.cursor-icon svg {
    color: black;
    width: 100%;
    height: 100%;
}

/* ===== Slider Mode ===== */

.custom-cursor.slider-mode {
    width: 48px;
    height: 48px;
    z-index: 999999;
    box-shadow: 0 2px 32px rgba(0,0,0,0.08);
}


.custom-cursor.press {
  transform: translate(-50%, -50%) scale(0.88);
  transition: transform .12s ease;
}



.custom-cursor.slider-mode .cursor-icon {
    opacity: 1;
    padding-right: 2px;
}

/* Direção */

.custom-cursor.slider-left .cursor-icon {
    transform: scale(1) translateX(-2px) rotate(180deg);
}

.custom-cursor.slider-right .cursor-icon {
    transform: scale(1) translateX(2px) rotate(0deg);
}

/* Links */

.custom-cursor.link-hover {
    --cursor-scale: 0.5;
}

.custom-cursor.link-hover::before {
    background: red;
}


/* Nome */

.custom-cursor.name-hover {
    --cursor-scale: 0.5;
}

.custom-cursor.name-hover::before {
    background: red;
}




/* Slider */


.custom-cursor.name-hover::before {
    transform: translate(-50%, -50%) scale(0.5);
    background: red;
}

.custom-cursor.name-hover.my-foto {
    transform: translate(-50%, -50%) scale(0.5);
    background: red;
}



.my-foto {
    position: relative;
}

.my-foto:hover {
    color: #ff0000;
}




/* =========================
   STARTS
========================= */


.star {
  display: inline-block;
  font-size: 20px;
  margin-top: 10px;

  line-height: 1;

  transform-origin: center;
  transform-box: fill-box;

  will-change: transform;
}



.custom-cursor.star-hover {
    --cursor-scale: 0.2;
}

.star:hover {
    cursor: none;
}

.star.spin-cw {
    animation: spinCW 0.6s cubic-bezier(.19,1,.22,1);
}

.star.spin-ccw {
    animation: spinCCW 0.6s cubic-bezier(.19,1,.22,1);
}

@keyframes spinCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinCCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}


/* =========================
   IMAGE GALLERY
========================= */

.slider {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 40px;
    outline: none;


    touch-action: pan-y;
    user-select: none;

    transform: translateY(40px);
    transition: 
        opacity 1s cubic-bezier(.19,1,.22,1) .4s,
        transform 1s cubic-bezier(.19,1,.22,1) .4s;
}


.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(.19,1,.22,1);

    will-change: transform;
    transform: translate3d(0,0,0);
    backface-visibility: hidden;

    gap: 8px; /* espaço entre slides */
}


/* slides */

.slider-track img {

    width: 100%; /* mantém espaço lateral */
    height: 100%;

    object-fit: cover;
    flex-shrink: 0;

    border-radius: 40px;

    pointer-events: none;

    opacity:0;
    transform:translateY(30px) scale(.98);

    transition:
    opacity 1.1s cubic-bezier(.22,1,.36,1),
    transform 1.1s cubic-bezier(.22,1,.36,1);


    opacity:.65;
}

.slider-track img.revealed{

opacity:1;
transform:translateY(0) scale(1);

}




.special-overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;

    z-index: 5; /* 🔥 importante */
}


.special-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.workandco {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;

    z-index: 5; /* 🔥 importante */
}


.workandco img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}




/* 441 - 1080 PX */

@media (max-width: 1080px) and (min-width: 441px) {
    
    .body {
      cursor: none;
    }

    .container {
    grid-template-columns: 1fr;
    gap: 0px
;
  }

  .left-column,
  .right-column {
    grid-column: 1 / -1;
    padding: 40px;
  }

    
    .links {
        gap: 24px;
        padding-top: 80px;
        padding-bottom: 0px;
    }

    .slider {
        height: auto;
        border-radius: 32px;
    }

    .slider-track img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 32px;
}

    .intro h1 {
        font-size: 24px;
        line-height: 1.3;
        max-width: 500px;
    }

    .star{
        font-size: 24px;
        padding-top: 0px;
        margin-top: 0px;
    }


    .left-column {
        position: relative;
        height: auto;
        top: 0;
        background: #fff; /* mesma cor do fundo */
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
  }


    .right-column {
        position: relative;
        bottom: 0;
        left: 0;
        width: 100%;
        order: 2;
        padding: 8px;
    }


}

/* 440 PX */


@media (max-width: 440px) {


    .container {
        grid-template-columns: 1fr;
        gap: 0px;
        cursor: none;
    }

    .slider {
        overflow: visible;
        height: auto;
    }

    .slider-track {

        display: flex;
        flex-direction: column;

        transform: none !important;
        transition: none !important;

        /* scroll-snap-type: y mandatory; */
        /* overflow-y: auto;
        -webkit-overflow-scrolling: touch; */

        gap: 8px;

        border-radius: 32px;


    }

    .slider-track img {

        width: 100%;
        height: auto;
        border-radius: 32px;

        object-fit: contain;
        scroll-snap-align: start;

        /* scroll-margin-top: 20px; */

        opacity: 0;
        transform: translateY(30px);

        transition:
            opacity 1.1s cubic-bezier(.22,1,.36,1),
            transform 1.1s cubic-bezier(.22,1,.36,1);
    }


    .slider-track img:first-child {
        opacity: 1;
        transform: translateY(0);    
    }


    .slider-track img:first-child {
        display: none;
    }

    .slider-track img:last-child {
        display: none;
    }

    .slider-track img:nth-child(2) {
        opacity: 1;
        transform: translateY(0);
    }

    /* esconder clones */

    .slider-track img:first-child,
    .slider-track img:last-child {
        display: none;
    }

    /* primeira imagem real */

    .slider-track img:nth-child(2) {
        opacity: 1;
        transform: translateY(0);
    }



    .left-column, .right-column {
        grid-column: 1 / -1;
        padding: 0;
    }


    .intro h1 {
        font-size: 20px;
        line-height: 1.3;
        max-width: 600px;
        columns: span 6;
        transform: translateY(20px);
        transition: 
            opacity .8s cubic-bezier(.19,1,.22,1),
            transform .8s cubic-bezier(.19,1,.22,1);
    }

    .links {
        gap: 8px;
    }



   .mobile-links {
        gap: 8px;
    }


    .links a,
    .mobile-links a {


        gap: 4px;
        padding: 12px 16px;
    
        background: #f2f2f2;

        border-radius: 999px;


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

        transition:
            background .25s ease,
            color .25s ease;

    }


    .links a:hover,
    .mobile-links a:hover {

        background: #dcdcdc;
        color: #333;

    }


    .links a:active,
    .mobile-links a:active {

        transform: scale(.96);
        color: #333;

}


   .my-foto:hover {
    color: #333;
}


    .star {
        font-size: 16px;
        padding-top: 0px;
        margin-top: 30px;
        padding-bottom: 40px;
    }


    .left-column {
        padding: 24px;
        padding-bottom: 40px;
        height: 90dvh;
        min-height: auto;
    }


    .right-column {
        position: relative;
        bottom: 0;
        left: 0;
        height: auto;
        width: 100%;
        order: 2;
        padding: 0 8px 8px 8px;
    }


    .mobile-contact {

        display: flex;
        align-items: center;


        height: 60vh;

        padding: 20 0 0 20px;

    }


        
    .mobile-contact h1 {

        font-size: 28px;
        color: #333;
        font-weight: 200;
        width: 100%;


        margin-top: 80px;

    }

 

    .mobile-links a {

        text-decoration: none;
        color: #333;
        margin-bottom: 56px;

        font-size: 16px;
        transition: color .3s ease;

    }



    .mobile-contact-inner {

        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: center;

        gap: 24px;

        text-align: center;

    }


    .back-to-top {

        width: 56px;
        height: 56px;
    

        border-radius: 50%;
        border: none;

        background: black;

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

        -webkit-tap-highlight-color: transparent;

        cursor: pointer;
        

        }

        .back-to-top,
        .custom-cursor.slider-mode {

        width: 52px;
        height: 52px;

        transition:
        transform .18s cubic-bezier(.19,1,.22,1),
        background .3s ease;

}


}


/* MOBILE PURO */
@media (max-width: 379px) {
  .slider {
    height: 50vh;
  }




  .slider-track img {
    height: 100%;
    object-fit: cover;
    cursor: none;
  }
}



/* ANIMAÇÃO */


.headline-line,
.headline-role,
.stars,
.slider,
.links {
  opacity: 0;
  transform: translateY(30px);
    transition: 
    opacity .8s cubic-bezier(.19,1,.22,1),
    transform .8s cubic-bezier(.19,1,.22,1);
}




body.loaded .headline-line {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

body.loaded .headline-role {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .05s;
}


body.loaded .stars {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .1s;
}

body.loaded .slider {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .25s;
}

body.loaded .links {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .25s;
}

body.loaded .slider {
  opacity: 1;
  transform: translateY(0);
}


@media (hover: none) and (pointer: coarse) {

  body {
    cursor: auto;
  }

  .custom-cursor {
    display: none !important;
  }

}




