/* ---------- INDEX PAGE ---------- */


/* ---------- LOADING ANIMATION ---------- */
/*
#intro-loader {
    position: fixed;
    inset: 0;
    z-index: 999999999;
    overflow: hidden;
    background: black;
    border: 0.5vw solid black;
}

.intro-grid {
    position: absolute;
    inset: 0;

    display: grid;

    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 18vh;

    width: 100%;
    height: 100%;

    gap: 0.5vw;



    grid-auto-flow: row;
}

.intro-cell.wide {
    grid-column: span 2;
}

.intro-cell.tall {
    grid-row: span 2;
}

.intro-cell.big {
    grid-column: span 2;
    grid-row: span 2;
}

.intro-cell {
    position: relative;
    overflow: hidden;

    background: black;
}

.intro-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 0;

    transform: scale(1.1);

    filter: brightness(0.75);

    transition:
        opacity 0.5s ease,
        transform 1s ease;
}

.intro-cell.active img {
    opacity: 1;
    transform: scale(1);
}

.intro-logo {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    z-index: 20;

    opacity: 0;
}

.intro-logo img {
    width: 12vw;
}
*/


#intro-loader{
    position:fixed;
    inset:0;
    background:#fff;
    z-index:99999;

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

.loader-grid{
    position:absolute;
    left:50%;
    top:0;
    transform:translateX(-50%);

    width:min(420px,80vw);

    display:grid;
    grid-template-columns:1fr;
    gap:12px;
}

.loader-grid img{
    width:100%;
    object-fit:cover;
}

.loader-grid img:nth-child(1),
.loader-grid img:nth-child(3),
.loader-grid img:nth-child(5) {
    height: 50vh;
}

.loader-grid img:nth-child(2){
    height: 38vh;
}

.loader-grid img:nth-child(4),
.loader-grid img:nth-child(6) {
    height: 62vh;
}

.loader-grid img{
    width:100%;
    height:22vh;
    object-fit:cover;

}

main{
    opacity:0;
}



header {
    position: relative;
    overflow: hidden;
    height: 100vh;
}

/* ---------- TOP BAR (index) ---------- */

.topbar {
    position: absolute;

    bottom: calc(55vh + 1rem);

    width: 100%;
    height: 120px;

    padding: 0 var(--margin);

    display: flex;
    align-items: flex-end;

    gap: var(--half-margin);

    z-index: 10;

    transition: transform 0.6s ease, color 0.4s ease;
}

body.menu-aberto .topbar {
    transform: translateY(calc(-51vh + 1rem + 120px));
}

.col {
    display: flex;
    flex-direction: column;

    min-width: 0;
}


/* -- left column -- */

.topbar .col:first-child {
    flex: 1;

    min-width: 0;

    padding: 8px 0;
}

.logo {
    width: 100%;
    transition: transform 0.6s ease;
}

body.menu-aberto .logo {
    transform: translateY(-25vh);
}



/* -- center column -- */

.topbar .col:nth-child(2) {
    flex: 1;
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;

    transition: transform 0.6s ease, color 0.4s ease;
}

.lang-selector {
    display: flex;
    align-items: center;

    line-height: 1;
}

.lang-selector a {
    text-decoration: none;
    margin: 0;

    font-size: var(--topbar-font-size);
    color: black;

    opacity: var(--opacity-value);

    cursor: pointer;
}

.lang-selector a.active {
    opacity: 1;
}

.lang-selector .separator {
    display: inline-block;
    margin: 0 5px;

    font-size: var(--topbar-font-size);
    color: black;

    opacity: var(--opacity-value);
    transition: transform 0.6s ease, color 0.4s ease;

    pointer-events: none;
}


/* -- right column -- */

.topbar .col:last-child {
    flex: 1;
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
}

.topbar button {
    background: none;
    border: none;

    font-family: inherit;
    font-size: var(--topbar-font-size);
    color: black;

    cursor: pointer;

    line-height: 1;
}


/* ---------- MENU (.menu-aberto) (index) ---------- */

.menu-fullscreen {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100vh;
    padding: var(--margin);

    display: flex;

    justify-content: space-between;
    gap: var(--half-margin);

    opacity: 0;
    transform: translateY(10vh);
    transition: transform 0.6s ease, opacity 0.6s ease;

    z-index: 10;
}

body.menu-aberto .menu-fullscreen {
    opacity: 1;
    transform: translateY(0);
}

body.menu-aberto .menu-fullscreen a {
    opacity: 1;
    transform: translateY(0);
}

.menu-col {
    flex: 1;
    min-width: 0;

    overflow: visible;
}

.menu-fullscreen .menu-left .menu-fullscreen-img {
    max-width: 100%;
    height: auto;
    display: block;
}

.menu-col {
    display: flex;
    flex-direction: column;

    flex: 1;
    min-width: 0;
}

.menu-col.center-col,
.menu-col.right-col {
    justify-content: flex-end;
    align-items: flex-end;

    height: 100%;
}

.menu-links,
.menu-socials {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* -- left column (.menu-aberto) -- */
.menu-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    height: 100%;

    line-height: 1;

    overflow: visible;
    min-width: 0;
}

.menu-left a {
    white-space: nowrap;

    text-decoration: none;

    font-size: var(--topbar-font-size);
    color: white;

    transition: opacity 0.3s ease;
}

body.menu-aberto .menu-left a {
    opacity: var(--opacity-value);
}

body.menu-aberto .menu-left a:hover {
    opacity: 1;
}


/* -- center column (.menu-aberto) -- */

.menu-col.center-col {
    justify-content: flex-end;
    text-align: right;
}

.menu-links {
    display: flex;
    flex-direction: column;

    cursor: pointer;

    line-height: 1;

    gap: 2vh;
}

.menu-links a {
    display: inline-block;
    text-decoration: none;

    font-size: var(--menu-a-font-size);
    color: white;

    transform-origin: right center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

body.menu-aberto .menu-links:hover a {
    opacity: var(--opacity-value);
}

body.menu-aberto .menu-links a:hover {
    opacity: 1;
    transform: scale(1.3);
}


/* -- right column (.menu-aberto) -- */

.menu-col.right-col {
    justify-content: flex-end;
    text-align: right;
}

.menu-socials {
    display: flex;
    flex-direction: column;

    cursor: pointer;

    line-height: 1;

    gap: 1vh;
}

.menu-socials a {
    text-decoration: none;
    display: inline-block;

    font-size: var(--topbar-font-size);
    color: white;

    transform-origin: right center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

body.menu-aberto .menu-socials a {
    opacity: var(--opacity-value);
}

body.menu-aberto .menu-socials a:hover {
    opacity: 1;
    transform: scale(1.3);
}


/* ---------- MENU IMG SETTINGS ---------- */

.header-wrapper {
    position: relative;
    height: 100vh;
}

.header-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;

    width: 100vw;
    height: 55vh;

    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;

    transition: height 0.6s ease;
}

.header-container.expandido {
    height: 100vh;
}

.header-container .imagem {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    filter: brightness(0.6);
}








/* ---------- MENU BTNS TRANSITIONS ---------- */

body.menu-aberto .lang-selector,
body.menu-aberto .topbar button {
    color: white;
}

body.menu-aberto .lang-selector a,
body.menu-aberto .lang-selector span,
body.menu-aberto .topbar button {
    color: white;
}

body.menu-aberto .topbar {
    pointer-events: none;
}

body.menu-aberto .topbar button,
body.menu-aberto .lang-selector,
body.menu-aberto .lang-selector * {
    pointer-events: auto;
}





/* --- SECTION 1 - SELECTED WORKS INTRO --- */

.section-opener {
    height: 100vh;
    position: relative;
    overflow: hidden;

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

.selected,
.works {
    font-size: 4vw;
    margin: 0;
    line-height: 0.9;
}

.selected {
    transform-origin: bottom center;
}

.portfolio {
    position: absolute;
    font-size: 1.1vw;
    line-height: 1;

    right: 37%;
    margin-top: 4%;

    opacity: 0;
    transform: translateX(-60px);
}

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

.portfolio a:hover {
    text-decoration: underline;
}

html[lang="fr"] .portfolio {
    right: 30%;
}

html[lang="pt"] .portfolio {
    right: 29%;
}


/* --- SECTION 2 - GRID --- */

.selected-works {
    display: flex;
    flex-direction: column;

    gap: var(--margin);
    margin-top: var(--margin);
}

.sub-section {
    width: 100%;
    display: flex;
}

.img-wrapper {
    position: relative;
    overflow: hidden;
}

.img-wrapper img {
    display: block;
    position: relative;

    z-index: 2;

    transition: transform 0.4s ease;
}

.img-wrapper p {
    width: 100%;
    margin: 0;
    padding: 5px 0 0 0;

    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;

    transform: translateY(0);
    transition: all 0.3s ease;
}

.img-wrapper:hover img {
    transform: translateY(-30px);
}

.img-wrapper:hover p {
    transition-delay: 0.15s;
}


/* line 1 */

.sub-section.no1 {
    justify-content: space-between;
}

.img1,
.img2 {
    width: calc(50% - 4.5vw);
}

.img1 img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.img2 img {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
}


/* line 2 + line 6 */

.img3,
.img8 {
    width: 100%;
}

.img3 img,
.img8 img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}


/* line 3 + line 5 */

.sub-section.no3 {
    justify-content: flex-end;
}

.img4,
.img7 {
    width: 48%;
}

.img4 img,
.img7 img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}


/* line 4 */

.sub-section.no4 {
    justify-content: space-between;
}

.img5,
.img6 {
    width: calc(50% - 1.5vw);
}

.img5 img,
.img6 img {
    width: 100%;
    aspect-ratio: 12 / 10;
    object-fit: cover;
}