/* ===========================
   RESET & BASE
=========================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark: #111111;
    --dark2: #1a1a1a;
    --dark3: #242424;
    --white: #f0ede8;
    --accent: #c8b99a;
    --accent2: #8a7a68;
    --font-head: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark);
    color: var(--white);
    cursor: none;
    overflow-x: hidden;
}

img {
    filter: grayscale(70%);
    display: block;
}

/* ===========================
   SCROLLBAR
=========================== */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent2);
    border-radius: 2px;
}

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

#cursor,
#cursor-follower {
    opacity: 0;
}

#cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background: var(--white);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, background 0.2s;
    mix-blend-mode: difference;
}

#cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(240, 237, 232, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease;
    mix-blend-mode: difference;
}

body:has(a:hover) #cursor,
body:has(button:hover) #cursor {
    transform: translate(-50%, -50%) scale(2.5);
    background: var(--accent);
}

body:has(a:hover) #cursor-follower,
body:has(button:hover) #cursor-follower {
    transform: translate(-50%, -50%) scale(1.8);
    border-color: var(--accent);
    opacity: 0.5;
}

/* ===========================
   SCROLL PROGRESS BAR
=========================== */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(to right, var(--accent2), var(--accent));
    z-index: 200;
    width: 0%;
    transition: width 0.1s linear;
}


/* ===========================
   HEADER
=========================== */
.cabecalho {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 48px;
    background: linear-gradient(to bottom, rgba(17, 17, 17, 0.95) 0%, transparent 100%);
    backdrop-filter: blur(1px);
    transition: background 0.3s;
}

.cabecalho.scrolled {
    background: rgba(17, 17, 17, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200, 185, 154, 0.1);
}

.cabecalho__nome {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.85em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
}

.cabecalho__menu-burguer {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 56px;
}

.cabecalho__menu-burguer__menu {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 0;
    overflow: hidden;
    transition: 0.4s;
    white-space: nowrap;
}

.cabecalho__menu-burguer__menu.expandido {
    max-width: 600px;
    gap: 56px;
}

.cabecalho__menu-burguer__menu__link {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.8em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.cabecalho__menu-burguer__menu__link:hover {
    opacity: 1;
}

.material-icons {
    font-size: 24px;
    color: var(--white);
    cursor: none;
    transition: 0.3s;
}

/* ===========================
   SECTIONS BASE
=========================== */
section {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
}

/* ===========================
   PARALLAX BACKGROUNDS
=========================== */
.parallax-bg {
    position: absolute;
    inset: -20% 0;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    z-index: 0;
    filter: grayscale(70%);
    will-change: transform;
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ===========================
   SECTION CONTENT WRAPPER
=========================== */
.section-content {
    position: relative;
    z-index: 2;
}

/* ===========================
   SCROLL REVEAL ANIMATIONS
=========================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-delay-1 {
    transition-delay: 0.15s;
}

.reveal-delay-2 {
    transition-delay: 0.3s;
}

.reveal-delay-3 {
    transition-delay: 0.45s;
}

.reveal-delay-4 {
    transition-delay: 0.6s;
}

/* ===========================
   SHARED COMPONENTS
=========================== */
.section-number {
    position: absolute;
    top: 48px;
    left: 48px;
    font-family: var(--font-head);
    font-size: 0.7em;
    letter-spacing: 0.2em;
    color: var(--accent2);
    text-transform: uppercase;
    z-index: 3;
}

.section-title {
    font-family: var(--font-head);
    font-weight: 800;
    line-height: 1.05;
    color: var(--white);
}

.titulo-linha {
    width: 48px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    margin-top: 14px;
}

.section-divider {
    position: absolute;
    bottom: 0;
    left: 80px;
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, var(--accent2), transparent);
    z-index: 3;
}

.btn-primary {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-head);
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 18px 36px;
    border-radius: 2px;
    width: fit-content;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent);
    color: var(--dark);
}

/* ===========================
   HOME SECTION
=========================== */
#home {
    background: var(--dark);
}

.home-parallax {
    background-image: url('https://images.unsplash.com/photo-1595683363301-1e94594a550d?q=80&w=687&auto=format&fit=crop');
}

.home-overlay {
    background: linear-gradient(105deg, rgba(17, 17, 17, 0.3) 0%, rgba(17, 17, 17, 0.75) 50%, rgba(17, 17, 17, 1) 100%);
}

.home-content {
    display: flex;
    align-items: right;
    justify-content: flex-end;
    min-height: 100vh;
    min-height: 100svh;
    padding: 150px 23% 80px;
    box-sizing: border-box;
}

.home-text {
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 42px;
}

.home-titulo {
    font-family: var(--font-head);
    font-size: clamp(52px, 6vw, 96px);
    font-weight: 700;
    line-height: 1.05;
    color: var(--white);
    word-break: keep-all;
    overflow-wrap: normal;
}

.home-titulo span {
    display: block;
    color: var(--accent);
}

.home-linha {
    width: 110px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.home-paragrafo {
    font-size: 1.4em;
    line-height: 1.7;
    color: rgba(240, 237, 232, 0.7);
    max-width: 740px;
}

/* Scroll indicator */
.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    animation: floatHint 2s ease-in-out infinite;
}

.scroll-hint span {
    font-size: 0.65em;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
}

.scroll-hint-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--white), transparent);
}

@keyframes floatHint {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* ===========================
   ABOUT SECTION
=========================== */
#about {
    background: var(--dark2);
    overflow: hidden;
}

.about-parallax {
    background-image: url('https://images.unsplash.com/photo-1662897858705-e0e4a9b1f231?q=80&w=866&auto=format&fit=crop');
    opacity: 0.18;
}

.about-overlay {
    background: linear-gradient(to right, var(--dark2) 40%, rgba(26, 26, 26, 0.6) 100%);
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 120px 80px 80px;
    gap: clamp(60px, 8vw, 170px);
}

.about-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 580px;
}

.about-titulo {
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 700;
}

.about-paragrafo {
    font-size: 0.95em;
    line-height: 1.8;
    color: rgba(240, 237, 232, 0.7);
}

.destaque {
    color: var(--accent2);
}

.about-highlight {
    display: inline-block;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    color: var(--accent);
}


.skills {
    display: flex;
    gap: 35px;
}

ul {
    list-style: none;
    padding-left: 0;
    color: rgba(240, 237, 232, 0.6);
    font-size: 0.87em;
    line-height: 1.7;
}

/*  */
.skills li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 7px;
    color: rgba(240, 237, 232, 0.8);
    font-weight: 500;
}

.skills li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 3px;
    height: 14px;
    background: var(--accent);
    border-radius: 2px;
}

/*  */

.about-skills {
    display: flex;
    gap: 48px;
}

.about-skill-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 280px;
}

.about-skill-titulo {
    font-family: var(--font-head);
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.about-skill-col p {
    font-size: 0.95em;
    line-height: 1.8;
    color: rgba(240, 237, 232, 0.6);
}

.about-img-wrap {
    flex: 0 0 380px;
    height: 520px;
    overflow: hidden;
    border-radius: 2px;
    position: relative;
}

.about-img-wrap::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(200, 185, 154, 0.2);
    z-index: 1;
    pointer-events: none;
}

.about-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(60%);
    transition: transform 0.6s ease, filter 0.4s ease;
}

.about-img-wrap:hover img {
    transform: scale(1.04);
    filter: grayscale(20%);
}

/* ===========================
   PROJECTS SECTION
=========================== */
#projects {
    background: var(--dark3);
}

.projects-parallax {
    background-image: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?q=80&w=1172&auto=format&fit=crop');
    opacity: 0.1;
}

.projects-overlay {
    background: linear-gradient(to bottom, var(--dark3) 10%, rgba(36, 36, 36, 0.5) 50%, var(--dark3) 90%);
}

.projects-content {
    padding: 120px 80px 100px;
}

.projects-header {
    text-align: center;
    margin-bottom: 72px;
}

.projects-titulo {
    font-size: clamp(42px, 5vw, 68px);
    display: inline-block;
    font-weight: 700;
}

.projects-linha {
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin: 14px auto 0;
}

.projects-grid {
    display: flex;
    gap: 28px;
}

.projeto {
    flex: 1;
    position: relative;
    height: 440px;
    border-radius: 3px;
    overflow: hidden;
    cursor: none;
}

.projeto>a,
.projeto>a:focus,
.projeto>a:focus-visible {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.projeto .slide1 {
    position: absolute;
    inset: 0;
    height: 100%;
    overflow: hidden;
    transition: height 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.projeto:hover .slide1 {
    height: 50%;
}

.projeto .slide1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%);
    transition: filter 0.4s, transform 0.6s;
}

.projeto:hover .slide1 img {
    filter: grayscale(30%);
    transform: scale(1.04);
}

.projeto .slide2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    padding: 28px 28px 40px;
    background: var(--dark2);
    border-top: 1px solid rgba(200, 185, 154, 0.15);
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.projeto:hover .slide2 {
    transform: translateY(0);
}

.projeto-titulo {
    font-family: var(--font-head);
    font-size: 1.1em;
    font-weight: 700;
    color: var(--white);
}

.projeto-paragrafo {
    font-size: 0.8em;
    line-height: 1.6;
    color: rgba(240, 237, 232, 0.6);
}

.slide2::after {
    content: '';
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

/* ===========================
   CONTACT SECTION
=========================== */
#contact {
    background: var(--dark);
}

.contact-parallax {
    background-image: url('https://images.unsplash.com/photo-1522069365959-25716fb5001a?q=80&w=688&auto=format&fit=crop');
    opacity: 0.22;
}

.contact-overlay {
    background: linear-gradient(to right, rgba(17, 17, 17, 0.98) 45%, rgba(17, 17, 17, 0.5) 100%);
}

.contact-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 120px 80px 80px;
    gap: 60px;
}

.contact-text {
    flex: 0 0 500px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.contact-titulo {
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 700;
}

.contact-paragrafo {
    font-size: 0.9em;
    line-height: 1.8;
    color: rgba(240, 237, 232, 0.65);
    max-width: 400px;
}

.contact-lista {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-lista li {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 14px;
    width: fit-content;
    font-size: 0.9em;
    font-family: var(--font-body);

    background: linear-gradient(270deg, var(--white) 0%, var(--white) 50%, var(--accent) 51%, var(--accent2) 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-position 0.4s, transform 0.3s;
}

.contact-lista li:hover {
    background-position: 0% 0;
    transform: translateX(6px);
    cursor: none;
}

.contact-lista li a {
    text-decoration: none;
    color: inherit;
    -webkit-text-fill-color: inherit;
}

.contact-lista li::before {
    content: '';
    width: 22px;
    height: 22px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    flex-shrink: 0;
    opacity: 0.8;
}


.contact-lista li:nth-child(1)::before {
    background-image: url('https://cdn.simpleicons.org/github/f0ede8');
}

.contact-lista li:nth-child(2)::before {
    background-image: url('/assets/logos/InBug-White.png');
}

.contact-lista li:nth-child(3)::before {
    background-image: url('https://fonts.gstatic.com/s/i/materialicons/email/v17/24px.svg');
    filter: invert(1) sepia(1) saturate(0) brightness(1.5);
}

.contact-img-wrap {
    flex: 1;
    height: 540px;
    overflow: hidden;
    border-radius: 2px;
}

.contact-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(65%);
    transition: transform 0.6s ease;
}

.contact-img-wrap:hover img {
    transform: scale(1.04);
    filter: grayscale(45%);
}

/* ===========================
   FOOTER
=========================== */
footer {
    background: var(--dark);
    border-top: 1px solid rgba(200, 185, 154, 0.1);
    padding: 32px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer span {
    font-size: 0.75em;
    color: var(--accent2);
    letter-spacing: 0.08em;
}

/* ===========================
   TOUCH DEVICES — SEM CURSOR CUSTOM
   + FIX PARALLAX
=========================== */
/* ===========================
   TOUCH DEVICES — SEM CURSOR CUSTOM
   + FIX PARALLAX
=========================== */
/* ===========================
   TOUCH DEVICES — SEM CURSOR CUSTOM
   + FIX PARALLAX
=========================== */
@media (hover: none) and (pointer: coarse) {
    html {
        overflow-x: hidden;
    }

    body {
        cursor: auto;
    }

    #cursor,
    #cursor-follower {
        display: none !important;
    }

    .material-icons {
        cursor: pointer;
    }

    .projeto {
        cursor: pointer;
    }

    .parallax-bg {
        background-attachment: scroll;
        inset: 0 !important;
    }
}

/* ===========================
   RESPONSIVE — TABLET
=========================== */
@media (max-width: 1024px) {
    html {
        overflow-x: hidden;
    }

    .home-content {
        padding: 120px 40px 80px;
        justify-content: flex-start;
    }

    .about-content {
        padding: 130px 40px 80px;
        gap: 60px;
    }

    .about-img-wrap {
        flex: 0 0 300px;
        height: 440px;
    }

    .projects-content {
        padding: 130px 40px 80px;
    }

    .contact-content {
        padding: 130px 40px 80px;
        gap: 40px;
    }

    .contact-text {
        flex: 0 0 360px;
    }

    .section-number {
        top: 80px;
    }

    footer {
        padding: 28px 40px;
    }
}

/* ===========================
   RESPONSIVE — MOBILE
=========================== */
@media (max-width: 768px) {

    html {
        overflow-x: hidden;
    }


    /* --- HEADER --- */
    .cabecalho {
        padding: 14px 16px;
        box-sizing: border-box;
        width: 100%;
        gap: 8px;
    }

    .cabecalho__nome {
        font-size: 0.52em;
        letter-spacing: 0.02em;
        white-space: nowrap;
        max-width: 72%;
        color: transparent;
        position: relative;
    }

    .cabecalho__nome::after {
        content: 'Gustavo Kenzo';
        color: var(--white);
        position: absolute;
        left: 0;
        top: 0;
    }

    .cabecalho__menu-burguer {
        flex-direction: row;
        gap: 0;
        position: relative;
        flex-shrink: 0;
    }

    .cabecalho__menu-burguer__menu {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0;
        max-height: 0;
        max-width: none;
        overflow: hidden;
        position: absolute;
        top: calc(100% + 16px);
        right: 0;
        background: rgba(17, 17, 17, 0.97);
        backdrop-filter: blur(16px);
        border: 1px solid rgba(200, 185, 154, 0.12);
        border-radius: 4px;
        white-space: nowrap;
        transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
        padding: 0 20px;
        opacity: 0;
        min-width: 180px;
        z-index: 200;
    }

    .cabecalho__menu-burguer__menu.expandido {
        max-height: 400px;
        max-width: none;
        gap: 0;
        padding: 12px 20px;
        opacity: 1;
    }

    .cabecalho__menu-burguer__menu__link {
        font-size: 0.85em;
        padding: 12px 0;
        width: 100%;
        text-align: right;
        border-bottom: 1px solid rgba(200, 185, 154, 0.08);
        letter-spacing: 0.1em;
    }

    .cabecalho__menu-burguer__menu__link:last-child {
        border-bottom: none;
    }

    /* --- SECTION NUMBER --- */
    .section-number {
        left: 16px;
        top: 80px;
        font-size: 0.65em;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    /* Espaço extra nas sections para o section-number não colar */
    #about .about-content,
    #projects .projects-content,
    #contact .contact-content {
        padding-top: 130px;
    }

    /* --- SECTION DIVIDER --- */
    .section-divider {
        display: none;
    }

    /* --- HOME --- */
    .home-content {
        padding: 80px 20px 80px !important;
        justify-content: center !important;
        align-items: flex-start;
        box-sizing: border-box;
        width: 100%;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .home-text {
        width: 100%;
        max-width: 100%;
        gap: 28px;
    }

    .home-titulo {
        font-size: clamp(34px, 9vw, 52px);
    }

    .home-paragrafo {
        font-size: 0.95em;
    }

    /* --- ABOUT --- */
    .about-content {
        flex-direction: column-reverse;
        padding: 100px 20px 60px;
        gap: 32px;
        min-height: unset;
        box-sizing: border-box;
        width: 100%;
    }

    .about-img-wrap {
        flex: none;
        width: 100%;
        max-width: 100%;
        height: 240px;
    }

    .about-text {
        width: 100%;
        max-width: 100%;
        gap: 24px;
    }

    .about-titulo {
        font-size: clamp(30px, 8vw, 48px);
    }

    .about-skills {
        flex-direction: column;
        gap: 24px;
    }

    .about-skill-col {
        max-width: 100%;
        max-height: none;
    }

    /* --- PROJECTS --- */
    .projects-content {
        padding: 100px 20px 60px;
        box-sizing: border-box;
        width: 100%;
    }

    .projects-header {
        margin-bottom: 40px;
    }

    .projects-titulo {
        font-size: clamp(30px, 8vw, 48px);
    }

    .projects-grid {
        flex-direction: column;
        gap: 20px;
    }

    .projeto {
        height: auto;
        cursor: pointer;
    }

    .projeto a {
        display: flex;
        flex-direction: column;
        outline: none;
        -webkit-tap-highlight-color: transparent;
    }

    .projeto a:focus,
    .projeto a:focus-visible,
    .projeto a *:focus,
    .projeto a *:focus-visible {
        outline: none;
    }

    .projeto .slide1 {
        position: relative;
        height: 200px;
        flex-shrink: 0;
        transition: none;
    }

    .projeto:hover .slide1 {
        height: 200px;
    }

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

    .projeto .slide2 {
        position: relative;
        bottom: auto;
        left: auto;
        width: 100%;
        height: auto;
        transform: none !important;
        padding: 20px 20px 28px;
        border-top: 1px solid rgba(200, 185, 154, 0.15);
        background: var(--dark2);
    }

    .projeto:hover .slide2 {
        transform: none;
    }

    /* --- CONTACT --- */
    .contact-content {
        flex-direction: column;
        padding: 100px 20px 60px;
        gap: 32px;
        min-height: unset;
        box-sizing: border-box;
        width: 100%;
    }

    .contact-text {
        flex: none;
        width: 100%;
    }

    .contact-titulo {
        font-size: clamp(30px, 8vw, 48px);
    }

    .contact-paragrafo {
        max-width: 100%;
        font-size: 0.88em;
    }

    .contact-img-wrap {
        width: 100%;
        height: 220px;
    }

    .contact-lista li {
        font-size: 0.82em;
        padding: 10px 12px;
    }

    /* --- FOOTER --- */
    footer {
        flex-direction: column;
        gap: 8px;
        padding: 24px 20px;
        text-align: center;
    }
}

/* ===========================
   RESPONSIVE — SMALL PHONES (A51, A35)
=========================== */
@media (max-width: 420px) {
    html {
        overflow-x: hidden;
    }


    .cabecalho {
        padding: 12px 14px;
    }

    a {
        text-decoration: none;
    }

    .cabecalho__nome {
        font-size: 0.48em;
        letter-spacing: 0.01em;
        max-width: 70%;
        color: transparent;
        position: relative;
    }

    .cabecalho__nome::after {
        content: 'Gustavo Kenzo';
        color: var(--white);
        position: absolute;
        left: 0;
        top: 0;
    }

    .section-number {
        left: 14px;
        top: 76px;
    }

    .home-content {
        padding: 70px 16px 70px !important;
    }

    .home-titulo {
        font-size: clamp(28px, 8vw, 40px);
    }

    .about-content {
        padding: 90px 16px 50px;
    }

    .projects-content {
        padding: 90px 16px 50px;
    }

    .contact-content {
        padding: 90px 16px 50px;
    }

    footer {
        padding: 20px 16px;
    }
}

/* ===========================
   TOUCH — TRANSIÇÕES SUAVES
=========================== */
@media (hover: none) and (pointer: coarse) {

    .about-img-wrap img,
    .contact-img-wrap img,
    .projeto .slide1 img {
        transition: transform 0.3s ease, filter 0.3s ease;
    }

    .contact-lista li {
        transition: background-position 0.3s ease, transform 0.3s ease;
    }
}

/* ===========================
   FIX PARALLAX — SAFARI iOS
=========================== */
@supports (-webkit-touch-callout: none) {
    .parallax-bg {
        background-attachment: scroll;
        inset: 0 !important;
    }
}
