:root {
    --header-background: #1a1918;
    --black: #0a0a0a;
    --white: #ffffff;
    --light-grey: #ededeb;
    --poppins: "Poppins", sans-serif;
    --montserrat: "Montserrat", sans-serif;
    --header-height: 88px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    min-height: 100vh;
    background: var(--header-background);
    color: var(--white);
    font-family: var(--poppins);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    padding: 0 30px;
    display: grid;
    grid-template-columns:
        minmax(290px, 335px)
        minmax(0, 1fr)
        126px;
    align-items: center;
    column-gap: 34px;
    z-index: 10000;
    background: var(--header-background);
}

.site-logo {
    position: relative;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.site-logo img {
    display: block;
    width: 315px;
    max-width: 100%;
    height: auto;
}

.desktop-nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.desktop-nav > a,
.desktop-portfolio-link {
    position: relative;
    padding: 34px 2px 31px;
    font-family: var(--montserrat);
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.87);
    white-space: nowrap;
    transition:
        color 0.25s ease,
        opacity 0.25s ease;
}

.desktop-nav > a::after,
.desktop-portfolio-link::after {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: 23px;
    height: 1px;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.desktop-nav > a:hover,
.desktop-portfolio-link:hover,
.desktop-nav > a.active {
    color: var(--white);
}

.desktop-nav > a:hover::after,
.desktop-nav > a.active::after,
.desktop-portfolio-link:hover::after {
    transform: scaleX(1);
}

.desktop-portfolio-menu {
    position: relative;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
}

.desktop-portfolio-link {
    display: flex;
    align-items: center;
    gap: 7px;
}

.desktop-portfolio-arrow {
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-right: 1px solid rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.72);
    transform: rotate(45deg);
    transition:
        transform 0.28s ease,
        border-color 0.28s ease;
}

.desktop-portfolio-dropdown {
    position: absolute;
    left: 50%;
    top: 72px;
    z-index: 12000;
    width: 224px;
    padding: 10px 0;
    background: rgba(26, 25, 24, 0.985);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition:
        opacity 0.24s ease,
        visibility 0.24s ease,
        transform 0.24s ease;
}

.desktop-portfolio-dropdown a {
    position: relative;
    display: block;
    width: 100%;
    padding: 11px 20px;
    font-family: var(--montserrat);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.64);
    white-space: nowrap;
    transition:
        color 0.22s ease,
        background 0.22s ease,
        padding-left 0.22s ease;
}

.desktop-portfolio-dropdown a::after {
    display: none;
}

.desktop-portfolio-dropdown a:hover,
.desktop-portfolio-dropdown a:focus-visible {
    color: var(--white);
    background: rgba(255, 255, 255, 0.045);
    padding-left: 24px;
    outline: none;
}

.desktop-portfolio-menu:hover .desktop-portfolio-dropdown,
.desktop-portfolio-menu:focus-within .desktop-portfolio-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.desktop-portfolio-menu:hover .desktop-portfolio-link::after,
.desktop-portfolio-menu:focus-within .desktop-portfolio-link::after {
    transform: scaleX(1);
}

.desktop-portfolio-menu:hover .desktop-portfolio-arrow,
.desktop-portfolio-menu:focus-within .desktop-portfolio-arrow {
    border-color: var(--white);
    transform: translateY(3px) rotate(225deg);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.social-icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.social-icons a {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.76;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.social-icons a:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.social-icons svg {
    width: 18px;
    height: 18px;
    overflow: visible;
}

.social-icons svg path {
    fill: var(--white);
}

.social-icons svg rect,
.social-icons svg circle {
    fill: none;
    stroke: var(--white);
    stroke-width: 1.6;
}

.social-icons svg .instagram-dot {
    fill: var(--white);
    stroke: none;
}

.menu-button {
    display: none;
    border: 0;
    background: transparent;
    color: var(--white);
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 11000;
}

.menu-lines {
    width: 29px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.menu-lines i {
    display: block;
    width: 29px;
    height: 1px;
    background: var(--white);
    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
}

.menu-button.active .menu-lines i:first-child {
    transform: translateY(4.5px) rotate(45deg);
}

.menu-button.active .menu-lines i:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 25, 24, 0.995);
    z-index: 10500;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition:
        opacity 0.4s ease,
        visibility 0.4s ease;
}

.menu-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.menu-overlay-inner {
    width: min(88%, 1380px);
    min-height: 100%;
    height: auto;
    margin: 0 auto;
    padding-top: 125px;
    padding-bottom: 45px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
}

.overlay-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.menu-main-link,
.portfolio-toggle {
    border: 0;
    background: transparent;
    color: var(--white);
    font-family: var(--poppins);
    font-size: clamp(27px, 3vw, 47px);
    line-height: 1.45;
    font-weight: 300;
    letter-spacing: -0.025em;
    cursor: pointer;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.menu-main-link:hover,
.portfolio-toggle:hover {
    color: #b8b8b8;
    transform: translateX(7px);
}

.portfolio-toggle {
    display: flex;
    align-items: center;
    gap: 18px;
}

.portfolio-symbol {
    display: inline-block;
    position: relative;
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    margin-top: -5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.portfolio-toggle[aria-expanded="true"] .portfolio-symbol {
    transform: translateY(4px) rotate(225deg);
}

.portfolio-submenu {
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-left: 28px;
    transition: max-height 0.45s ease;
}

.portfolio-submenu.open {
    max-height: 420px;
}

.portfolio-submenu a {
    padding: 5px 0;
    font-family: var(--montserrat);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #898989;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.portfolio-submenu a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: rgba(255, 255, 255, 0.70);
    font-family: var(--montserrat);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition:
        color 0.3s ease,
        opacity 0.3s ease;
}

.menu-footer:hover {
    color: rgba(255, 255, 255, 0.28);
}

.menu-social {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.menu-social a {
    transition:
        color 0.25s ease,
        opacity 0.25s ease;
}

.menu-social a:hover {
    color: rgba(255, 255, 255, 0.28);
}

.quem-sou-page {
    min-height: calc(100vh - 108px);
    padding-top: var(--header-height);
}

.quem-sou-intro {
    width: calc(100% - 60px);
    max-width: 1500px;
    margin: 0 auto;
    padding: 47px 0 26px;
}

.quem-sou-intro h1 {
    margin: 0;
    font-family: var(--montserrat);
    font-size: 28px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.72);
}

.quem-sou-content {
    width: calc(100% - 60px);
    max-width: 1500px;
    margin: 0 auto;
    padding-bottom: 78px;
}

.quem-sou-inner {
    display: grid;
    grid-template-columns:
        minmax(400px, 0.78fr)
        minmax(0, 1.12fr);
    gap: clamp(70px, 7vw, 130px);
    align-items: center;
}

.quem-sou-photo {
    position: relative;
    width: min(100%, 560px);
    aspect-ratio: 4 / 5;
    justify-self: start;
    overflow: hidden;
    background: #242220;
}

.quem-sou-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    user-select: none;
    -webkit-user-drag: none;
}

.quem-sou-text {
    width: 100%;
    max-width: 700px;
    min-width: 0;
    justify-self: start;
    font-family: var(--montserrat);
    color: rgba(255, 255, 255, 0.76);
    transform: translateY(-60px);
}

.quem-sou-text p {
    margin: 0 0 32px;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.85;
    letter-spacing: 0.005em;
}

.quem-sou-text p:first-child {
    color: rgba(255, 255, 255, 0.94);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.85;
}

.quem-sou-text p:last-child {
    margin-bottom: 0;
}

.quem-sou-text a {
    color: rgba(255, 255, 255, 0.90);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
    text-decoration-color: rgba(255, 255, 255, 0.38);
    transition:
        color 0.25s ease,
        text-decoration-color 0.25s ease;
}

.quem-sou-text a:hover {
    color: #ffffff;
    text-decoration-color: rgba(255, 255, 255, 0.90);
}

.quem-sou-text .quem-sou-lead {
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.85;
    letter-spacing: 0.005em;
}

.quem-sou-text .quem-sou-quote {
    margin-top: 36px;
    margin-bottom: 0;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
}

.site-footer {
    position: relative;
    width: calc(100% - 60px);
    max-width: 1500px;
    min-height: 108px;
    margin: 0 auto;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);
    align-items: center;
    column-gap: 28px;
    padding: 34px 0 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--header-background);
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--montserrat);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-left {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
}

.footer-right {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 22px;
    text-align: right;
}

.footer-left,
.footer-right {
    color: rgba(255, 255, 255, 0.72);
    transition:
        color 0.3s ease,
        opacity 0.3s ease;
}

.footer-left:hover,
.footer-right:hover {
    color: rgba(255, 255, 255, 0.28);
}

.site-footer .cookie-settings-link {
    margin-left: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--montserrat);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition:
        color 0.3s ease,
        opacity 0.3s ease;
}

.site-footer .cookie-settings-link:hover {
    color: rgba(255, 255, 255, 0.28);
}

.footer-return-button {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    opacity: 0.78;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.footer-return-button:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.footer-return-button span {
    display: block;
    width: 11px;
    height: 11px;
    border-left: 1.5px solid currentColor;
    border-top: 1.5px solid currentColor;
    transform: translateY(3px) rotate(45deg);
    animation: footerArrowFloat 1.9s ease-in-out infinite;
}

@keyframes footerArrowFloat {
    0%,
    100% {
        transform: translateY(3px) rotate(45deg);
    }

    50% {
        transform: translateY(-2px) rotate(45deg);
    }
}

.mobile-scroll-cue {
    display: none;
}

.mobile-scroll-cue[hidden] {
    display: none !important;
}

@media (max-width: 1420px) {
    .site-header {
        grid-template-columns:
            minmax(250px, 285px)
            minmax(0, 1fr)
            112px;
        column-gap: 22px;
        padding-left: 26px;
        padding-right: 26px;
    }

    .site-logo img {
        width: 270px;
    }

    .desktop-nav {
        gap: 8px;
    }

    .desktop-nav > a,
    .desktop-portfolio-link {
        font-size: 9px;
        letter-spacing: 0.09em;
    }

    .desktop-portfolio-dropdown {
        width: 210px;
    }

    .desktop-portfolio-dropdown a {
        font-size: 9px;
    }

    .social-icons {
        gap: 13px;
    }

    .quem-sou-inner {
        grid-template-columns:
            minmax(360px, 0.82fr)
            minmax(0, 1fr);
        gap: clamp(55px, 5vw, 90px);
    }

    .quem-sou-photo {
        max-width: 520px;
    }

    .quem-sou-text {
        max-width: 650px;
        transform: translateY(-50px);
    }
}

@media (max-width: 1200px) {
    .site-header {
        display: flex;
        justify-content: space-between;
    }

    .desktop-nav {
        display: none;
    }

    .menu-button {
        display: flex;
    }

    .site-logo img {
        width: 265px;
    }

    .header-actions {
        margin-left: auto;
        gap: 22px;
    }

    .quem-sou-inner {
        grid-template-columns:
            minmax(330px, 0.85fr)
            minmax(0, 1fr);
        gap: 48px;
    }

    .quem-sou-text {
        transform: translateY(-35px);
    }

    .quem-sou-text p {
        font-size: 16px;
    }

    .quem-sou-text p:first-child,
    .quem-sou-text .quem-sou-lead {
        font-size: 17px;
    }
}

@media (max-width: 900px) {
    .quem-sou-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 42px;
    }

    .quem-sou-photo {
        width: min(100%, 560px);
        justify-self: center;
    }

    .quem-sou-text {
        max-width: 720px;
        justify-self: center;
        transform: none;
    }
}

@media (max-width: 760px) {
    :root {
        --header-height: 80px;
    }

    .site-header {
        padding: 0 18px;
    }

    .site-logo img {
        width: 215px;
    }

    .social-icons {
        display: none;
    }

    .menu-overlay-inner {
        width: 86%;
        padding-top: 105px;
        padding-bottom: 35px;
    }

    .menu-main-link,
    .portfolio-toggle {
        font-size: 29px;
    }

    .menu-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .quem-sou-intro {
        width: calc(100% - 36px);
        padding: 38px 0 22px;
    }

    .quem-sou-intro h1 {
        font-size: 24px;
        letter-spacing: 0.12em;
    }

    .quem-sou-content {
        width: calc(100% - 36px);
        padding-bottom: 52px;
    }

    .quem-sou-inner {
        gap: 32px;
    }

    .quem-sou-photo {
        width: 100%;
        max-width: 520px;
    }

    .quem-sou-text p {
        margin-bottom: 24px;
        font-size: 14px;
        line-height: 1.8;
    }

    .quem-sou-text p:first-child,
    .quem-sou-text .quem-sou-lead {
        font-size: 15px;
        line-height: 1.8;
    }

    .quem-sou-text .quem-sou-quote {
        margin-top: 28px;
        padding-top: 22px;
        font-size: 14px;
    }

    .site-footer {
        width: calc(100% - 36px);
        min-height: auto;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "footer-left footer-arrow"
            "footer-right footer-right";
        column-gap: 18px;
        row-gap: 16px;
        padding: 26px 0 30px;
    }

    .footer-left {
        grid-area: footer-left;
        justify-self: start;
    }

    .footer-return-button {
        grid-area: footer-arrow;
        justify-self: end;
        width: 42px;
        height: 42px;
    }

    .footer-right {
        grid-area: footer-right;
        justify-self: start;
        justify-content: flex-start;
        text-align: left;
        gap: 14px;
    }

    .mobile-scroll-cue:not([hidden]) {
        position: fixed;
        right: 12px;
        bottom: 12px;
        z-index: 900;
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgba(26, 25, 24, 0.72);
        color: rgba(255, 255, 255, 0.94);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.16);
        cursor: pointer;
    }

    .mobile-scroll-cue span {
        display: block;
        width: 11px;
        height: 11px;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: rotate(45deg);
        animation: mobileArrowFloat 1.8s ease-in-out infinite;
    }
}

@keyframes mobileArrowFloat {
    0%,
    100% {
        transform: translateY(-2px) rotate(45deg);
        opacity: 0.75;
    }

    50% {
        transform: translateY(3px) rotate(45deg);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .footer-return-button span,
    .mobile-scroll-cue span {
        animation: none;
    }
}