/* uma página só (intro, trabalhos, experiência, contato) mais a página do Tangerine; claro = hora dourada, escuro = crepúsculo */
:root {
    --sun: #f2a516;
    --sunflower: #f7c548;
    --ember: #e0581f;
    --cactus: #3f7350;
    --night: #171826;
    --bg: #fff6e6;
    --surface: #ffffff;
    --fg: #221b1f;
    --muted: #6e5f57;
    --line: #ebd9bc;
    --accent: #9c4a06;
    --accent-soft: #fce6b8;
    --todo: #fff0c2;
    --todo-fg: #7a4a00;
    --f-display: 'Archivo', 'Helvetica Neue', Arial, system-ui, sans-serif;
    --f-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
:root:not([data-theme='light']) {
    --bg: #14151f;
    --surface: #1d1f2e;
    --fg: #f5eadb;
    --muted: #a99d96;
    --line: #2e3046;
    --accent: #f5b23a;
    --accent-soft: #3a2b17;
    --todo: #3a2b17;
    --todo-fg: #f7c548;
    color-scheme: dark;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--f-body);
    font-size: 17px;
    line-height: 1.6;
    padding: 0 20px;
    transition:
        background 0.6s ease,
        color 0.6s ease;
}
.wrap {
    max-width: 1120px;
    margin: 0 auto;
}
h1,
h2,
h3 {
    font-family: var(--f-display);
    font-stretch: 112%;
    text-wrap: balance;
    margin: 0;
    line-height: 1.02;
}
h2 {
    font-size: clamp(32px, 4.6vw, 52px);
    font-weight: 800;
    letter-spacing: -0.025em;
}
h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
}
p {
    margin: 0;
    max-width: 64ch;
}
a {
    color: inherit;
}
.label {
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.todo {
    background: var(--todo);
    color: var(--todo-fg);
    border-radius: 4px;
    padding: 0 4px;
    font-style: normal;
}
[id] {
    scroll-margin-top: 90px;
}

/* cabeçalho */
header.top {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 20;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    margin: 0 -20px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
}
header.top .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--f-display);
    font-stretch: 112%;
    font-weight: 800;
    font-size: 19px;
    text-decoration: none;
}
.brand .mark {
    display: block;
    width: 22px;
    height: auto;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.brand:hover .mark {
    transform: rotate(72deg) scale(1.1);
}
nav.links {
    display: flex;
    gap: 4px;
}
nav.links a {
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--muted);
}
/* seção que está na tela */
nav.links a[aria-current='true'] {
    color: var(--fg);
    background: color-mix(in srgb, var(--accent-soft) 60%, transparent);
}
nav.links a:hover {
    color: var(--fg);
    background: var(--accent-soft);
}
.social {
    display: flex;
    gap: 4px;
    margin-left: auto;
}
.social a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    color: var(--muted);
}
.social a:hover {
    color: var(--fg);
    background: var(--accent-soft);
}
.theme {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px;
    background: var(--surface);
}
.theme button {
    font: 500 12px var(--f-body);
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 6px 11px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition:
        background 0.3s,
        color 0.3s;
}
.theme button svg {
    transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.theme button[aria-pressed='true'] svg {
    animation: tspin 0.7s cubic-bezier(0.3, 1.4, 0.5, 1);
    transform: rotate(-30deg) scale(1.1);
}
@keyframes tspin {
    from {
        rotate: -180deg;
        scale: 0.4;
    }
}
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}
html.theming body {
    transition: none;
}
.menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    cursor: pointer;
    place-content: center;
    gap: 5px;
    padding: 0;
}
.menu-btn i {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--fg);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
header.top.open .menu-btn i:first-child {
    transform: translateY(3.5px) rotate(45deg);
}
header.top.open .menu-btn i:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}
@media (max-width: 720px) {
    header.top {
        padding: 10px 16px;
        margin: 0 -20px;
    }
    header.top .wrap {
        flex-wrap: nowrap;
        gap: 8px;
    }
    /* botões do topo com a mesma altura e acabamento redondo */
    .social {
        gap: 8px;
    }
    .social a {
        width: 44px;
        height: 44px;
        border: 1px solid var(--line);
        background: var(--surface);
    }
    .social a svg {
        width: 20px;
        height: 20px;
    }
    .menu-btn {
        width: 44px;
        height: 44px;
    }
    .theme button {
        padding: 11px;
    }
    .theme button span {
        display: none;
    }
    .menu-btn {
        display: grid;
    }
    nav.links {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        gap: 2px;
        padding: 8px 12px 14px;
        background: var(--bg);
        box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
        border-bottom: 1px solid var(--line);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition:
            opacity 0.25s,
            transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
            visibility 0s 0.3s;
    }
    header.top.open nav.links {
        visibility: visible;
        opacity: 1;
        transform: none;
        transition:
            opacity 0.25s,
            transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    }
    nav.links a {
        font-size: 17px;
        padding: 12px 14px;
        border-radius: 12px;
    }
}
.theme button[aria-pressed='true'] {
    background: var(--fg);
    color: var(--bg);
}

main {
    padding-block: 28px 40px;
}
.page {
    display: grid;
    gap: 104px;
}
.page[hidden] {
    display: none;
}

/* intro: um bloco de noite, com o sol nascendo atrás da foto */
html,
body {
    overflow-x: clip;
}
.intro {
    position: relative;
    isolation: isolate;
    color: var(--fg);
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    align-items: center;
    gap: 48px;
    padding-block: clamp(32px, 6vw, 80px);
    min-height: 500px;
}
/* o sol se põe numa linha de horizonte reta e sai pela borda direita */
.sun-clip {
    position: absolute;
    z-index: -1;
    left: calc(50% - 50vw);
    right: calc(50% - 50vw);
    top: -60vh;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}
.sun-clip::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 30%,
        color-mix(in srgb, var(--sun) 70%, transparent) 75%,
        transparent
    );
}
.intro .copy {
    display: grid;
    gap: 30px;
    justify-items: start;
    width: fit-content;
}
/* botão de contato: tinta morna e, no hover, brilho de sol que nasce de baixo */
.intro .btn {
    border-color: color-mix(in srgb, var(--accent) 55%, transparent);
    color: var(--accent);
    background: color-mix(in srgb, var(--sun) 9%, transparent);
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--sunflower) 16%, transparent);
    transition:
        color 0.35s,
        border-color 0.35s,
        translate 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.intro .btn::before {
    transform: none;
    background: radial-gradient(
        120% 150% at 50% 130%,
        color-mix(in srgb, var(--sun) 42%, transparent),
        transparent 70%
    );
    background-size: 170% 100%;
    background-position: 50% 100%;
    background-repeat: no-repeat;
    opacity: 0;
    translate: 0 45%;
    transition:
        opacity 0.4s ease-out,
        translate 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
/* no hover o brilho passeia e respira */
.intro .btn:hover::before,
.intro .btn:focus-visible::before {
    animation: btnsun 4.2s ease-in-out infinite;
}
@keyframes btnsun {
    0%,
    100% {
        background-position: 50% 100%;
        scale: 1;
    }
    25% {
        background-position: 15% 100%;
        scale: 1.06 1.1;
    }
    75% {
        background-position: 85% 100%;
        scale: 1.03 0.96;
    }
}
.intro .btn:hover,
.intro .btn:focus-visible {
    color: var(--fg);
    border-color: var(--accent);
    translate: 0 -2px;
    box-shadow:
        inset 0 1px 0 color-mix(in srgb, var(--sunflower) 24%, transparent),
        0 12px 26px -14px color-mix(in srgb, var(--sun) 70%, transparent);
}
.intro .btn:hover::before,
.intro .btn:focus-visible::before {
    opacity: 1;
    translate: 0 0;
}
.intro .btn .arr {
    display: inline-block;
    transition: translate 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.intro .btn:hover .arr,
.intro .btn:focus-visible .arr {
    translate: 3px 0;
}
.intro .sun {
    --s: min(620px, 70vw);
    position: absolute;
    pointer-events: auto;
    right: calc((100vw - min(1120px, 100vw - 40px)) / 2 - var(--s) * 0.14);
    bottom: calc(var(--s) * -0.36);
    width: var(--s);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(
        circle at 50% 45%,
        var(--sunflower),
        var(--sun) 40%,
        var(--ember) 68%,
        rgba(224, 88, 31, 0) 71%
    );
    filter: saturate(1.05);
    animation:
        rise 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both,
        pulse 6s ease-in-out 2s infinite alternate;
}
.intro .sun::after {
    content: '';
    position: absolute;
    inset: -18%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247, 197, 72, 0.38), rgba(242, 165, 22, 0.12) 45%, transparent 66%);
    opacity: 0.45;
    animation: glow 6s ease-in-out 2s infinite alternate;
}
.status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pill {
    font: 500 12px var(--f-mono);
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
}
.pill::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: #6fbf73;
    margin-right: 8px;
    vertical-align: 1px;
    animation: blink 2.4s ease-in-out infinite;
}
.intro h1 {
    display: grid;
    gap: 12px;
    color: var(--fg);
}
.intro h1 .hi {
    font: 500 clamp(17px, 1.8vw, 20px) var(--f-body);
    color: var(--muted);
    letter-spacing: 0;
}
.intro h1 .name {
    font-size: clamp(40px, 5.2vw, 64px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.95;
}
.intro h1 .c {
    color: var(--sun);
}
/* o serviço vem logo abaixo do nome, com mais peso que a saudação */
.intro h1 .what {
    font-size: clamp(21px, 2.5vw, 28px);
    font-weight: 600;
    font-stretch: 100%;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.intro .copy > * {
    animation: up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.intro .copy > *:nth-child(2) {
    animation-delay: 0.12s;
}
.intro .copy > *:nth-child(3) {
    animation-delay: 0.24s;
}
.intro .copy > *:nth-child(4) {
    animation-delay: 0.36s;
}
/* o que eu faço, logo abaixo do nome */
.intro .lede {
    color: var(--muted);
    max-width: 46ch;
    margin-top: -12px;
}
.photo {
    position: relative;
    justify-self: center;
    width: min(250px, 100%);
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    background: #2a2b3d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
    text-align: center;
    font: 12px var(--f-mono);
    color: #a99d96;
    padding: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    animation:
        up 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s both,
        float 9s ease-in-out 1.4s infinite;
}
.photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: inherit;
}
@keyframes up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
@keyframes rise {
    from {
        transform: translateY(28%);
        opacity: 0.2;
    }
    to {
        transform: none;
        opacity: 1;
    }
}
@keyframes glow {
    from {
        transform: scale(0.99);
        opacity: 0.6;
    }
    to {
        transform: scale(1.05);
        opacity: 0.85;
    }
}
@keyframes pulse {
    from {
        filter: saturate(1.05) brightness(1);
    }
    to {
        filter: saturate(1.08) brightness(1.04);
    }
}
/* clique no sol: boing e faíscas */
.intro .sun {
    cursor: pointer;
    /* tira o destaque azul do toque no celular */
    -webkit-tap-highlight-color: transparent;
}
.intro .sun.boing {
    animation:
        boing 0.7s cubic-bezier(0.3, 1.6, 0.5, 1),
        pulse 6s ease-in-out infinite alternate;
}
.intro .sun.boing::after {
    animation: flare 0.7s ease-out;
}
@keyframes boing {
    0% {
        scale: 1;
    }
    20% {
        scale: 1.12 0.86;
    }
    40% {
        scale: 0.9 1.1;
    }
    60% {
        scale: 1.05 0.96;
    }
    80% {
        scale: 0.98 1.02;
    }
    100% {
        scale: 1;
    }
}
@keyframes flare {
    0% {
        opacity: 0.45;
        scale: 1;
    }
    30% {
        opacity: 1;
        scale: 1.15;
    }
    100% {
        opacity: 0.45;
        scale: 1;
    }
}
.spark {
    position: absolute;
    z-index: 0;
    left: 0;
    top: 0;
    pointer-events: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--c, var(--sun));
    box-shadow: 0 0 10px var(--c, var(--sun));
    animation: spark var(--t, 0.9s) cubic-bezier(0.15, 0.8, 0.3, 1) forwards;
}
.spark.ray {
    width: 16px;
    height: 4px;
    border-radius: 2px;
}
.spark.emo {
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    font-size: var(--fs, 22px);
    line-height: 1;
}
@keyframes spark {
    from {
        transform: translate(-50%, -50%) rotate(var(--a)) scale(0.3);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    to {
        transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(calc(var(--a) + var(--r))) scale(1);
        opacity: 0;
    }
}
/* flutuação lenta, como algo boiando */
@keyframes float {
    0%,
    100% {
        translate: 0 0;
        rotate: 0deg;
    }
    25% {
        translate: 3px -9px;
        rotate: 0.6deg;
    }
    50% {
        translate: 0 -16px;
        rotate: 0deg;
    }
    75% {
        translate: -3px -9px;
        rotate: -0.6deg;
    }
}
@keyframes blink {
    50% {
        opacity: 0.35;
    }
}
.reveal {
    animation: up 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s) backwards;
}

/* contato animado */
.contact {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.csun {
    position: absolute;
    z-index: -1;
    left: -12%;
    bottom: -55%;
    width: min(520px, 60vw);
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(14px);
    background: radial-gradient(circle, rgba(247, 197, 72, 0.5), rgba(242, 165, 22, 0.18) 40%, transparent 68%);
    animation:
        glow 8s ease-in-out infinite alternate,
        csdrift 18s ease-in-out infinite;
}
@keyframes csdrift {
    0%,
    100% {
        translate: 0 0;
    }
    50% {
        translate: 8% -6%;
    }
}
.contact.reveal .csun {
    animation:
        csin 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) backwards,
        glow 8s ease-in-out 1.6s infinite alternate,
        csdrift 18s ease-in-out infinite;
}
@keyframes csin {
    from {
        transform: translateY(40%);
        opacity: 0;
    }
}
.contact.reveal .side > *,
.contact.reveal .f > * {
    animation: up 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.contact.reveal .side > *:nth-child(2) {
    animation-delay: 0.08s;
}
.contact.reveal .side > *:nth-child(3) {
    animation-delay: 0.16s;
}
.contact.reveal .side > *:nth-child(4) {
    animation-delay: 0.24s;
}
.contact.reveal .f > *:nth-child(1) {
    animation-delay: 0.2s;
}
.contact.reveal .f > *:nth-child(2) {
    animation-delay: 0.3s;
}
.contact.reveal .f > *:nth-child(3) {
    animation-delay: 0.4s;
}
.contact.reveal .f > *:nth-child(4) {
    animation-delay: 0.5s;
}
.f input,
.f textarea {
    transition:
        border-color 0.3s,
        background 0.3s,
        box-shadow 0.3s;
}
.f input:focus,
.f textarea:focus {
    outline: none;
    border-color: var(--sun);
    background: rgba(242, 165, 22, 0.07);
    box-shadow: 0 0 0 4px rgba(242, 165, 22, 0.15);
}
.choices span {
    transition:
        background 0.25s,
        color 0.25s,
        border-color 0.25s,
        transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.choices span:hover {
    transform: translateY(-2px);
    border-color: var(--sun);
}
.choices input:checked + span {
    animation: pop 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes pop {
    50% {
        transform: scale(1.1);
    }
}
.f .send-row .btn .arr {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.f .send-row .btn:hover .arr {
    transform: translateX(4px) rotate(-20deg);
}
.f .msg.show {
    animation: up 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.contact h2 .wave {
    display: inline-block;
    transform-origin: 70% 80%;
}
.contact.reveal h2 .wave {
    animation: wave 1.6s ease-in-out 0.6s 2;
}
@keyframes wave {
    15%,
    45% {
        transform: rotate(14deg);
    }
    30% {
        transform: rotate(-8deg);
    }
    60%,
    100% {
        transform: none;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 600 14px var(--f-mono);
    letter-spacing: 0.04em;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid var(--sun);
    color: var(--sun);
    justify-self: start;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    cursor: pointer;
    background: transparent;
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--sun);
    transform: translateX(-101%);
    transition: transform 0.3s steps(8);
}
.btn:hover::before,
.btn:focus-visible::before {
    transform: none;
}
.btn:hover,
.btn:focus-visible {
    color: #221b1f;
}

.sec-head {
    display: grid;
    gap: 12px;
    margin-bottom: 28px;
}

/* trabalhos */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tag {
    font: 500 12px var(--f-mono);
    padding: 4px 9px;
    border-radius: 6px;
    background: var(--accent-soft);
    color: var(--accent);
    transition:
        background 0.2s,
        color 0.2s;
}
.pgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.pcard {
    display: grid;
    /* a sobra de altura fica embaixo, não entre a miniatura e o título */
    grid-template-rows: auto 1fr;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    background: var(--surface);
    text-decoration: none;
    transition:
        transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.45s,
        border-color 0.3s;
}
.pcard:not(.soon):hover,
.pcard:not(.soon):focus-within {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(34, 27, 31, 0.14);
    border-color: var(--c2);
}
.thumb {
    aspect-ratio: 16 / 10;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--c2) 26%, var(--surface)),
        color-mix(in srgb, var(--c2) 46%, var(--surface))
    );
    display: grid;
    place-items: end center;
    padding: 28px 28px 0;
    overflow: hidden;
    position: relative;
}
.thumb::before {
    content: '';
    position: absolute;
    left: var(--sx, 20%);
    top: var(--sy, 60%);
    width: var(--ss, 50%);
    margin: calc(var(--ss, 50%) / -2) 0 0 calc(var(--ss, 50%) / -2);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        color-mix(in srgb, var(--c3) 70%, #fff) 0%,
        var(--c3) 30%,
        color-mix(in srgb, var(--c3) 0%, transparent) 68%
    );
    opacity: 0.6;
    filter: blur(3px);
    animation:
        tglow 7s ease-in-out infinite alternate,
        drift var(--dur, 14s) ease-in-out var(--dl, 0s) infinite;
    transition:
        transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 0.5s;
}
.pcard:hover .thumb::before,
.pcard:focus-visible .thumb::before {
    transform: translateY(22%) scale(1.04);
    opacity: 0.75;
}
.thumb::after {
    content: '';
    position: absolute;
    left: var(--bx, 92%);
    top: var(--by, 92%);
    width: var(--bs, 36%);
    margin: calc(var(--bs, 36%) / -2) 0 0 calc(var(--bs, 36%) / -2);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        color-mix(in srgb, var(--c2) 55%, #fff) 0%,
        var(--c2) 30%,
        color-mix(in srgb, var(--c2) 0%, transparent) 68%
    );
    opacity: 0.45;
    filter: blur(4px);
    pointer-events: none;
    animation: drift2 var(--dur2, 18s) ease-in-out var(--dl2, 0s) infinite;
}
@keyframes drift2 {
    0%,
    100% {
        translate: 0 0;
    }
    50% {
        translate: var(--ex) var(--ey);
    }
}
@keyframes tglow {
    from {
        scale: 0.96;
    }
    to {
        scale: 1.04;
    }
}
.ui-tg .rows span {
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pcard:hover .ui-tg .rows span {
    animation: grow 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.pcard:hover .ui-tg .rows span:nth-child(2) {
    animation-delay: 0.08s;
}
.pcard:hover .ui-tg .rows span:nth-child(3) {
    animation-delay: 0.16s;
}
.pcard:hover .ui-tg .rows span:nth-child(4) {
    animation-delay: 0.24s;
}
.ui-tg .kpis b {
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pcard:hover .ui-tg .kpis b {
    transform: translateY(-3px);
}
.pcard:hover .ui-tg .kpis b:nth-child(2) {
    transition-delay: 0.06s;
}
.pcard:hover .ui-tg .kpis b:nth-child(3) {
    transition-delay: 0.12s;
}
@keyframes grow {
    from {
        transform: scaleX(0.2);
        opacity: 0;
    }
    to {
        transform: none;
        opacity: 1;
    }
}
.pcard.reveal .win {
    animation: winin 1s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--d, 0s) + 0.25s) backwards;
}
.pcard.reveal .thumb::before {
    animation:
        sunin 1.4s ease-out calc(var(--d, 0s) + 0.2s) backwards,
        tglow 7s ease-in-out 1.6s infinite alternate,
        drift var(--dur, 14s) ease-in-out var(--dl, 0s) infinite;
}
@keyframes winin {
    from {
        transform: translateY(60%);
    }
}
@keyframes sunin {
    from {
        opacity: 0;
    }
}
@keyframes drift {
    0%,
    100% {
        translate: 0 0;
    }
    33% {
        translate: var(--dx1) var(--dy1);
    }
    66% {
        translate: var(--dx2) var(--dy2);
    }
}
.win {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 88%;
    background: #fffdf8;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -8px 30px rgba(34, 27, 31, 0.1);
    overflow: hidden;
    transform: translateY(10%);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pcard:hover .win,
.pcard:focus-visible .win {
    transform: translateY(0);
}
.win .bar {
    display: flex;
    gap: 5px;
    padding: 9px 12px;
    border-bottom: 1px solid #efe6d6;
}
.win .bar i {
    width: 8px;
    height: 8px;
    border-radius: 3px;
    background: #e6dccb;
}
.win .shot {
    display: block;
    width: 100%;
    height: auto;
}
.ui {
    padding: 14px;
    display: grid;
    gap: 12px;
}
.ui-tg .kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.ui-tg .kpis b {
    height: 38px;
    border-radius: 8px;
    border: 1px solid #efe6d6;
    background:
        linear-gradient(90deg, #fce6b8 0 45%, transparent 45%) no-repeat 10px 12px / 60% 8px,
        #fff;
}
.ui-tg .rows {
    display: grid;
    gap: 7px;
}
.ui-tg .rows span {
    height: 18px;
    border-radius: 5px;
    background: #f6efe3;
    position: relative;
}
.ui-tg .rows em {
    position: absolute;
    right: 8px;
    top: 5px;
    width: 28px;
    height: 8px;
    border-radius: 4px;
    background: #cfe3d2;
}
.ui-tg .rows em.late {
    background: #f6c9b4;
}
.meta {
    padding: 22px 24px 24px;
    display: grid;
    gap: 10px;
    align-content: start;
}
.meta .top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.meta h3 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.meta .yr {
    font: 12px var(--f-mono);
    color: var(--muted);
}
.meta p {
    font-size: 15px;
    color: var(--muted);
}
.meta .go {
    font: 600 13px var(--f-mono);
    color: var(--accent);
    transition: letter-spacing 0.3s;
}
.pcard:hover .go {
    letter-spacing: 0.04em;
}
/* projeto sem link: miniatura apagada e selo "em breve" */
.pcard.soon .win {
    opacity: 0.55;
    filter: saturate(0.6);
}
.soon-badge {
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 16px;
    font: 600 11px var(--f-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--c2);
    color: var(--accent);
}
/* card fora da tela: pausa o brilho animado */
.pcard.off .thumb::before,
.pcard.off .thumb::after {
    animation-play-state: paused;
}

/* card inteiro clicável: o link do rodapé estica por cima */
.pcard {
    position: relative;
}
.meta .kind,
.pd-text .kind {
    font: 600 11px var(--f-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}
.meta .go {
    justify-self: start;
    margin-top: 4px;
    padding: 0;
    border: 0;
    background: none;
    text-decoration: none;
    cursor: pointer;
}
.pcard:not(.soon) .go::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
}
.pcard .go:focus-visible {
    outline: none;
}
.pcard:has(.go:focus-visible) {
    outline: 2px solid var(--c2);
    outline-offset: 3px;
}
/* card em destaque: largo, print de um lado e texto do outro */
.pcard.featured {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    grid-template-rows: none;
}
.pcard.featured .thumb {
    aspect-ratio: auto;
    min-height: 360px;
}
.pcard.featured .meta {
    align-content: center;
    padding: 40px;
}
.pcard.featured h3 {
    font-size: 36px;
}

/* detalhes do projeto: <dialog> nativo */
.pdialog {
    width: min(880px, calc(100vw - 32px));
    max-height: calc(100dvh - 48px);
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    color: var(--fg);
    overflow: auto;
    overscroll-behavior: contain;
}
.pdialog::backdrop {
    background: rgba(10, 10, 18, 0.6);
    backdrop-filter: blur(4px);
}
.pdialog[open] {
    animation: pdin 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pdialog[open]::backdrop {
    animation: sunin 0.3s ease-out;
}
@keyframes pdin {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
}
html:has(.pdialog[open]) {
    overflow: hidden;
}
.pd-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--fg);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pd-close:hover {
    transform: rotate(90deg);
}
.pd-shot {
    max-height: clamp(200px, 40vh, 380px);
    overflow: hidden;
    padding: 40px 40px 0;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--c2) 26%, var(--surface)),
        color-mix(in srgb, var(--c2) 46%, var(--surface))
    );
}
.pd-shot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -8px 30px rgba(34, 27, 31, 0.12);
}
.pd-text {
    padding: 28px 40px 36px;
    display: grid;
    gap: 14px;
}
.pd-text h3 {
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.pd-text p,
.pd-text li {
    font-size: 16px;
    color: var(--muted);
}
.pd-text .label {
    margin-top: 6px;
}
.pd-text ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}
.pd-text .go {
    justify-self: start;
    margin-top: 6px;
    font: 600 13px var(--f-mono);
    color: var(--accent);
    text-decoration: none;
}

@media (max-width: 760px) {
    .pgrid {
        grid-template-columns: 1fr;
    }
    .pcard.featured {
        grid-template-columns: none;
        grid-template-rows: auto 1fr;
    }
    .pcard.featured .thumb {
        aspect-ratio: 16 / 10;
        min-height: 0;
    }
    .pcard.featured .meta {
        padding: 22px 24px 24px;
    }
    .pcard.featured h3 {
        font-size: 28px;
    }
    .pd-shot {
        padding: 24px 20px 0;
    }
    .pd-text {
        padding: 22px 20px 28px;
    }
}

/* experiência */
.xp {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(48px, 8vw, 112px);
}
.xp .col {
    display: grid;
    gap: 24px;
    align-content: start;
    min-width: 0;
}
.xp .col > .bio {
    margin-bottom: 28px;
}
.xp .col > .label + * {
    margin-top: -4px;
}
.xp .col > .label.next {
    margin-top: 40px;
}
/* cursos recolhidos: um botão abre a lista */
.more summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 18px;
    font: 500 13px var(--f-mono);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--fg);
    transition:
        border-color 0.25s,
        color 0.25s,
        translate 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.more summary:hover {
    border-color: var(--sun);
    color: var(--accent);
    translate: 0 -2px;
}
.more summary::-webkit-details-marker {
    display: none;
}
/* seta que vira para cima com a lista aberta */
.more summary::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    rotate: 45deg;
    translate: 0 -2px;
    transition:
        rotate 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
        translate 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.more[open] summary::after {
    rotate: -135deg;
    translate: 0 2px;
}
.more .hide,
.more[open] .show {
    display: none;
}
.more[open] .hide {
    display: inline;
}
.more .courses {
    margin-top: 16px;
}
.bio {
    font-size: 18px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 48ch;
}
.timeline {
    display: grid;
    border-left: 2px solid var(--line);
    margin-left: 6px;
}
.item {
    position: relative;
    padding: 0 0 48px 32px;
    display: grid;
    gap: 6px;
}
.item h3 {
    margin-top: 2px;
}
.item p {
    margin-top: 8px;
    line-height: 1.65;
}
.item:last-child {
    padding-bottom: 4px;
}
.item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 7px;
    width: 12px;
    height: 12px;
    background: var(--sun);
    border-radius: 3px;
}
.item.past::before {
    background: var(--muted);
    opacity: 0.55;
}
.item .when {
    font: 12px var(--f-mono);
    color: var(--muted);
}
.item .org {
    font-size: 15px;
    font-weight: 500;
}
.item p {
    font-size: 15px;
    color: var(--muted);
}
.groups {
    display: grid;
    gap: 0;
}
.group {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    align-items: start;
    border-top: 1px solid var(--line);
    padding: 22px 0;
}
.group .tags {
    gap: 8px;
}
.group small {
    font: 12px var(--f-mono);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-top: 4px;
}
.courses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
}
.courses div {
    padding: 16px 0;
    border-top: 1px solid var(--line);
    font-size: 15px;
    display: grid;
    gap: 4px;
}
.courses span {
    font: 12px var(--f-mono);
    color: var(--muted);
}

/* contato */
.contact {
    border-radius: 28px;
    padding: clamp(24px, 4vw, 48px);
    background: var(--night);
    color: #f5eadb;
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.6fr);
    gap: 48px;
    align-items: center;
}
.contact h2 {
    color: #fff8ec;
}
.contact .label {
    color: var(--sun);
}
.contact .side {
    display: grid;
    gap: 12px;
    align-content: center;
}
.contact .side p {
    color: #c9beb6;
}
/* botão do whatsapp */
.contact .wa {
    margin-top: 8px;
}
.contact .wa svg {
    flex: none;
}
form.f {
    display: grid;
    gap: 16px;
}
.f label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}
.f input,
.f textarea {
    font: 16px var(--f-body);
    padding: 13px 14px;
    border-radius: 10px;
    border: 1px solid rgba(245, 234, 219, 0.22);
    background: rgba(245, 234, 219, 0.06);
    color: #fff8ec;
    width: 100%;
}
/* campo com erro: borda e mensagem logo abaixo */
.f .field {
    display: grid;
    gap: 6px;
    align-content: start;
}
.f .field label {
    display: block;
}
.f .req {
    color: var(--sun);
}
.f [aria-invalid='true'] {
    border-color: #ff8a5c;
}
.f .err {
    font: 13px var(--f-mono);
    color: #ff8a5c;
}
.f .err:empty {
    display: none;
}
.f textarea {
    min-height: 88px;
    resize: vertical;
}
.f .send-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.f .send-row .msg {
    flex: 1 1 200px;
}
.f input::placeholder,
.f textarea::placeholder {
    color: #a99d96;
}
.f .row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border: 0;
    padding: 0;
    margin: 0;
}
.choices legend {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    padding: 0;
}
.choices label {
    display: inline-block;
}
.choices input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.choices span {
    display: inline-block;
    font: 500 13px var(--f-mono);
    padding: 11px 14px;
    border-radius: 999px;
    border: 1px solid rgba(245, 234, 219, 0.3);
    cursor: pointer;
}
.choices input:checked + span {
    background: var(--sun);
    color: #221b1f;
    border-color: var(--sun);
}
.choices input:focus-visible + span {
    outline: 2px solid var(--sun);
    outline-offset: 2px;
}
.f .msg {
    font: 13px var(--f-mono);
    color: var(--sunflower);
    min-height: 1.2em;
}

/* página do Tangerine */
.case-hero {
    border-radius: 28px;
    padding: clamp(28px, 6vw, 64px);
    color: #fff8ec;
    display: grid;
    gap: 20px;
    background: linear-gradient(135deg, #e0581f, #f2a516 70%, #f7c548);
}
.case-hero h1 {
    font-size: clamp(52px, 9vw, 112px);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.9;
}
.case-hero p {
    font-size: 20px;
}
.case-hero .tag {
    background: rgba(255, 248, 236, 0.22);
    color: #fff8ec;
}
.case-hero .back {
    font: 13px var(--f-mono);
    text-decoration: none;
}
.chapter {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 40px;
    border-top: 1px solid var(--line);
    padding-top: 28px;
}
.chapter .n {
    font-family: var(--f-display);
    font-stretch: 112%;
    font-size: 52px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.chapter .side {
    display: grid;
    gap: 8px;
    align-content: start;
}
.chapter .body {
    display: grid;
    gap: 18px;
}
.chapter .body p {
    font-size: 18px;
}
.mock {
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface);
    overflow: hidden;
}
.mock .in {
    padding: 20px;
    display: grid;
    gap: 14px;
}
.mock .kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.mock .kpi {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    display: grid;
}
.mock .kpi b {
    font-family: var(--f-display);
    font-size: 24px;
    font-variant-numeric: tabular-nums;
}
.mock .kpi small,
.mock .cap {
    font: 11px var(--f-mono);
    color: var(--muted);
}
.mock table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}
.mock td,
.mock th {
    text-align: left;
    padding: 9px 6px;
    border-bottom: 1px solid var(--line);
}
.mock th {
    font: 11px var(--f-mono);
    color: var(--muted);
    text-transform: uppercase;
    font-weight: 400;
}
.st {
    font: 600 11px var(--f-mono);
    padding: 3px 8px;
    border-radius: 999px;
}
.st.ok {
    background: color-mix(in srgb, var(--cactus) 18%, transparent);
    color: var(--cactus);
}
.st.late {
    background: color-mix(in srgb, var(--ember) 18%, transparent);
    color: var(--ember);
}
.tablewrap {
    overflow-x: auto;
}

footer.foot {
    border-top: 1px solid var(--line);
    margin-top: 72px;
    padding-block: 24px 40px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font: 12px var(--f-mono);
    color: var(--muted);
}

@media (max-width: 900px) {
    .intro {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .intro .sun {
        --s: 110vw;
        right: -30vw;
    }
    /* o sol começa mais à esquerda: a linha precisa aparecer antes dele */
    .sun-clip::after {
        background: linear-gradient(
            90deg,
            transparent 4%,
            color-mix(in srgb, var(--sun) 70%, transparent) 40%,
            color-mix(in srgb, var(--sun) 70%, transparent)
        );
    }
    .photo {
        width: 200px;
    }
    .xp,
    .contact {
        grid-template-columns: 1fr;
    }
    .chapter {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .page {
        gap: 80px;
    }
}
@media (max-width: 560px) {
    .f .row2,
    .courses,
    .mock .kpis {
        grid-template-columns: 1fr;
    }
    .group {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
    html {
        scroll-behavior: auto;
    }
}
