/* Base (substitui o reset que vinha do Tailwind) */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    margin: 0;
    overflow-x: hidden;
    background-color: #050505;
    color: #ededed;
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, figure, blockquote, dl, dd, ol, ul {
    margin: 0;
}

h1, h2, h3 {
    font-size: inherit;
    font-weight: inherit;
}

ol, ul {
    padding: 0;
    list-style: none;
}

img, canvas {
    display: block;
    max-width: 100%;
}

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

button {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

sup {
    position: relative;
    line-height: 0;
    vertical-align: baseline;
}

[hidden] {
    display: none !important;
}

::selection {
    background: var(--accent);
    color: #050505;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Cursor: ponto que segue o mouse; o cursor do sistema continua visível */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: #fff;
    mix-blend-mode: difference;
    pointer-events: none;
    opacity: 0;
    transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), margin 0.4s var(--ease-out), opacity 0.3s;
}

.custom-cursor.is-visible {
    opacity: 1;
}

.custom-cursor.hover {
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
}

@media (hover: none), (pointer: coarse) {
    .custom-cursor { display: none; }
}

/* Noise Background */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Modo leve (navegador sem aceleração de hardware): sem camadas fixas que repintam a cada scroll */
.low-perf .noise,
.low-perf .custom-cursor { display: none; }

/* Sem GPU, desfoque e máscara custam caro a cada frame: fundo sólido no lugar */
.low-perf * {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

.low-perf #navbar.is-scrolled { background: var(--bg); }

.perf-notice {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 48;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 32px));
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #0d0d0d;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.perf-notice strong {
    color: var(--fg);
    font-weight: 500;
}

.perf-notice .mono {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--fg);
}

.perf-notice .mono::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.perf-steps {
    font-size: 13px;
}

.perf-notice button {
    justify-self: start;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--fg);
    transition: border-color 0.3s;
}

.perf-notice button:hover { border-color: var(--fg); }

/* ===== Tokens ===== */
:root {
    --bg: #050505;
    --fg: #ededed;
    --muted: #8b8b8b;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #FF5A1F;
    --font-display: 'Inter Tight', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --gutter: clamp(20px, 4vw, 56px);
    --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
}

.mono {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Intro (loader) */
#intro {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--gutter);
    background: var(--bg);
    color: var(--fg);
}

#intro .intro-top,
#intro .intro-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: var(--muted);
}

#intro .intro-count {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(72px, 14vw, 200px);
    line-height: 0.8;
    letter-spacing: -0.05em;
    color: var(--fg);
    font-variant-numeric: tabular-nums;
}

#intro .intro-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--fg);
    transform: scaleX(0);
    transform-origin: left;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 14px var(--gutter);
    border-bottom: 1px solid transparent;
    color: var(--fg);
    transition: background-color 0.4s, border-color 0.4s;
}

#navbar.is-scrolled {
    background: rgba(5, 5, 5, 0.72);
    border-bottom-color: var(--line);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

#navbar .nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-self: start;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
}

.nav-brand img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: transform 0.6s var(--ease-out);
}

.nav-brand:hover img {
    transform: rotate(-12deg) scale(1.08);
}

/* Links em uma "pílula": o ativo ganha fundo */
.nav-links {
    display: flex;
    gap: 2px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.55);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.nav-links a {
    display: block;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--muted);
    transition: color 0.3s, background-color 0.3s;
}

.nav-links a span {
    margin-right: 6px;
    color: var(--accent);
    opacity: 0.8;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--fg);
    background: rgba(255, 255, 255, 0.06);
}

.nav-links a.is-active {
    color: #0a0a0a;
    background: var(--fg);
}

.nav-links a.is-active span {
    color: #0a0a0a;
    opacity: 0.5;
}

.nav-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--accent);
    color: #0a0a0a;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.nav-cta:hover,
.nav-cta:focus-visible {
    background: var(--fg);
}

.arrow {
    display: inline-block;
    transition: transform 0.4s var(--ease-out);
}

a:hover > .arrow,
a:hover .mono > .arrow {
    transform: translate(2px, -2px);
}

.nav-toggle {
    display: none;
}

@media (max-width: 899px) {
    #navbar { grid-template-columns: 1fr auto; }
    .nav-links { display: none; }
    .nav-toggle { display: inline-flex; padding: 10px 0; }
}

/* Menu mobile */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 49;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding: 96px var(--gutter) 32px;
    background: var(--bg);
    color: var(--fg);
}

.mobile-menu ul {
    border-top: 1px solid var(--line);
}

.mobile-menu li {
    border-bottom: 1px solid var(--line);
}

.mobile-menu li a {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(32px, 9vw, 48px);
    letter-spacing: -0.03em;
}

.mobile-menu li a .mono {
    color: var(--muted);
}

.mobile-menu-cta {
    display: flex;
    justify-content: center;
    padding: 18px;
    border-radius: 999px;
    background: var(--accent);
    color: #0a0a0a;
    font-weight: 500;
}

/* Hero */
#hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 600px;
    overflow: hidden;
    background: var(--bg);
    color: var(--fg);
}

#hero-gl {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Modo leve: o logo estático ocupa o lugar da cena 3D */
.low-perf #hero::before {
    content: '';
    position: absolute;
    top: 12%;
    right: 6%;
    width: min(42vw, 620px);
    aspect-ratio: 512 / 487;
    background: url('../assets/V.png') center / contain no-repeat;
    opacity: 0.1;
    pointer-events: none;
}

@media (max-width: 767px) {
    .low-perf #hero::before {
        top: 110px;
        right: 50%;
        width: 70vw;
        transform: translateX(50%);
    }
}

#hero .hero-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 65% 40%, transparent 35%, rgba(5, 5, 5, 0.85) 100%);
}

#hero .hero-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    grid-template-rows: 1fr auto auto auto;
    padding: 96px var(--gutter) 24px;
    pointer-events: none;
}

#hero .hero-inner a {
    pointer-events: auto;
}

/* Selo do cargo abaixo do nome (estilo LinkedIn): cargo · cidade */
.hero-eyebrow {
    justify-self: start;
    min-height: max-content; /* sem isso o grid da hero espreme o selo em telas baixas */
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding: 10px 18px 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1;
    white-space: nowrap;
}

.hero-role {
    color: var(--fg);
    font-weight: 500;
}

.hero-sep {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.2);
}

.hero-loc {
    color: var(--muted);
}

.hero-eyebrow .dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: hero-pulse 2.4s infinite;
}

@keyframes hero-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(255, 90, 31, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0); }
}

.hero-name {
    align-self: end;
    margin: 0 0 0 -0.04em;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(76px, 16vw, 270px);
    line-height: 0.86;
    letter-spacing: -0.055em;
}

.hero-name .line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.04em;
}

.hero-name .line-inner {
    display: block;
    will-change: transform;
}

.hero-name .line:nth-child(2) .line-inner {
    padding-left: 0.9em;
}

.hero-name .char {
    display: inline-block;
    will-change: transform;
}

.hero-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 28px;
}

@media (min-width: 900px) {
    .hero-row {
        grid-template-columns: 1fr 1fr;
        align-items: end;
    }
}

.hero-lead {
    max-width: 46ch;
    font-size: clamp(16px, 1.3vw, 19px);
    line-height: 1.55;
    color: var(--muted);
}

.hero-lead strong {
    color: var(--fg);
    font-weight: 500;
}

.hero-foot {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.hero-foot a {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--fg);
}

.hero-foot .arrow {
    display: inline-block;
    animation: hero-nudge 2s ease-in-out infinite;
}

@keyframes hero-nudge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-eyebrow .dot,
    .hero-foot .arrow { animation: none; }
}

/* Seções (base comum) */
.section {
    position: relative;
    padding: clamp(96px, 14vh, 160px) var(--gutter);
    background: var(--bg);
    color: var(--fg);
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

/* Sobre */
.about-statement {
    max-width: 25ch;
    margin: clamp(48px, 8vh, 96px) 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(30px, 4.4vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.about-statement .word {
    white-space: nowrap;
}

.about-grid {
    display: grid;
    gap: clamp(40px, 5vw, 80px);
}

@media (min-width: 900px) {
    .about-grid {
        grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
        align-items: start;
    }

    /* foto menor: termina junto com o texto ao lado */
    .about-photo {
        max-width: 380px;
    }
}

.about-photo-inner {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: 4px;
    background: #111;
}

.about-photo-inner img {
    width: 100%;
    height: 115%;
    max-width: none;
    object-fit: cover;
    object-position: 50% 30%;
    will-change: transform;
}

.about-photo figcaption {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    color: var(--muted);
}

.about-text {
    display: grid;
    gap: 20px;
    max-width: 60ch;
    font-size: clamp(16px, 1.2vw, 18px);
    line-height: 1.65;
    color: var(--muted);
}

.about-text p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.about-text strong {
    color: var(--fg);
    font-weight: 500;
}

.about-text blockquote {
    margin-top: 12px;
    padding-left: 20px;
    border-left: 2px solid var(--accent);
    font-family: var(--font-display);
    font-size: clamp(20px, 1.8vw, 26px);
    line-height: 1.35;
    letter-spacing: -0.015em;
    color: var(--fg);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 24px;
    margin-top: clamp(72px, 12vh, 140px);
    border-top: 1px solid var(--line);
}

.about-stats li {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.stat-num {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(44px, 6.5vw, 104px);
    line-height: 0.9;
    letter-spacing: -0.045em;
    font-variant-numeric: tabular-nums;
    color: var(--fg);
}

.stat-num sup {
    top: -1.1em;
    margin-left: 4px;
    font-size: 0.32em;
    letter-spacing: 0;
    color: var(--accent);
}

/* Vivências: grade no mobile; no desktop vira trilho horizontal (classe is-horizontal via JS) */
.exp-track {
    display: grid;
    gap: 56px 32px;
    margin-top: 48px;
}

@media (min-width: 700px) {
    .exp-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .exp-intro { grid-column: 1 / -1; }
}

@media (min-width: 1100px) {
    .exp-track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Carrossel (celular e modo leve): uma fila que rola para o lado */
.exp.is-carousel .exp-track {
    display: block;
}

.exp-carousel {
    display: flex;
    gap: 24px;
    margin-top: 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.exp-carousel::-webkit-scrollbar { display: none; }

.exp-carousel .exp-card {
    flex: 0 0 min(82%, 380px);
    scroll-snap-align: start;
}

.exp-carousel-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    color: var(--muted);
}

.exp-carousel-nav button {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--fg);
    font-size: 16px;
    transition: background-color 0.3s, color 0.3s, opacity 0.3s;
}

.exp-carousel-nav button:hover:not(:disabled) {
    background: var(--accent);
    border-color: var(--accent);
    color: #0a0a0a;
}

.exp-carousel-nav button:disabled { opacity: 0.3; }

.exp-intro {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.exp-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(48px, 7vw, 120px);
    line-height: 0.9;
    letter-spacing: -0.05em;
}

.exp-intro p {
    max-width: 30ch;
    font-size: clamp(17px, 1.4vw, 21px);
    line-height: 1.45;
    color: var(--muted);
}

.exp-hint {
    display: none;
    color: var(--muted);
}

.exp-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.exp-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    background: #0e0e0e;
}

.exp-media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.exp-ph {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 12px), #0d0d0d;
    color: var(--muted);
}

.exp-num {
    align-self: flex-end;
    font-family: var(--font-display);
    font-size: clamp(56px, 7vw, 110px);
    line-height: 0.8;
    letter-spacing: -0.05em;
    color: rgba(255, 255, 255, 0.08);
}

.exp-meta {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
}

.exp-tag {
    color: var(--accent);
}

.exp-card h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(20px, 1.7vw, 26px);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.exp-card p {
    max-width: 46ch;
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
}

.exp-progress {
    display: none;
}

.exp.is-horizontal {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100svh;
    padding-top: 88px;
    padding-bottom: 32px;
    overflow: hidden;
}

.exp.is-horizontal .exp-track {
    display: flex;
    align-items: flex-start;
    gap: clamp(28px, 3vw, 56px);
    width: max-content;
    margin: auto 0;
    will-change: transform;
}

.exp.is-horizontal .exp-intro {
    width: clamp(320px, 34vw, 560px);
    align-self: center;
}

.exp.is-horizontal .exp-hint {
    display: block;
}

.exp.is-horizontal .exp-card {
    width: clamp(300px, 28vw, 440px);
}

.exp.is-horizontal .exp-card:nth-of-type(even) {
    margin-top: 6vh;
}

.exp.is-horizontal .exp-media {
    aspect-ratio: auto;
    height: min(40vh, 340px);
}

.exp.is-horizontal .exp-progress {
    display: block;
    position: relative;
    height: 1px;
    background: var(--line);
}

.exp-progress span {
    position: absolute;
    inset: 0;
    background: var(--fg);
    transform: scaleX(0);
    transform-origin: left;
}

/* Títulos e introduções de seção */
.section-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(48px, 7vw, 120px);
    line-height: 0.9;
    letter-spacing: -0.05em;
}

.section-intro {
    display: grid;
    gap: 24px;
    margin: clamp(40px, 7vh, 80px) 0 clamp(40px, 6vh, 72px);
}

@media (min-width: 900px) {
    .section-intro {
        grid-template-columns: minmax(0, 1fr) minmax(0, 38ch);
        align-items: end;
    }
}

.section-intro p {
    font-size: clamp(17px, 1.4vw, 21px);
    line-height: 1.45;
    color: var(--muted);
}

.status {
    padding: 24px 0;
    color: var(--muted);
}

.status a {
    color: var(--fg);
    text-decoration: underline;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg);
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.btn:hover,
.btn:focus-visible {
    border-color: var(--fg);
}

.btn-primary {
    border-color: var(--fg);
    background: var(--fg);
    color: #0a0a0a;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    border-color: var(--accent);
    background: var(--accent);
}

/* Certificações */
.marquee {
    overflow: hidden;
    margin: 0 calc(var(--gutter) * -1) clamp(40px, 6vh, 72px);
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.marquee-group {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-right: 40px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(28px, 3.6vw, 56px);
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.marquee-group .dot {
    font-size: 0.22em;
    color: var(--accent);
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
}

.marquee-item img {
    width: 1.05em;
    height: 1.05em;
    border-radius: 0.2em;
    object-fit: cover;
}

.certs-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.chip {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}

.chip span {
    margin-left: 4px;
    opacity: 0.6;
}

.chip:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--fg);
}

.chip[aria-pressed="true"] {
    border-color: var(--fg);
    background: var(--fg);
    color: #0a0a0a;
}

/* Lista agrupada por ano; cada linha leva o logo da instituição */
.cert-year {
    display: flex;
    justify-content: space-between;
    padding: 36px 0 12px;
    border-bottom: 1px solid var(--line);
    color: var(--fg);
}

.cert-year:first-child {
    padding-top: 8px;
}

.cert-year span {
    color: var(--muted);
}

.cert-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 6px 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    transition: background-color 0.3s;
}

.cert-row:hover {
    background: rgba(255, 255, 255, 0.025);
}

.cert-logo {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
    font-family: var(--font-display);
    filter: grayscale(1);
    opacity: 0.8;
    transition: filter 0.4s, opacity 0.4s;
}

.cert-row:hover .cert-logo {
    filter: none;
    opacity: 1;
}

.cert-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.cert-name {
    font-size: clamp(16px, 1.25vw, 19px);
    transition: transform 0.5s var(--ease-out);
}

.cert-row:hover .cert-name {
    transform: translateX(8px);
}

.cert-skills {
    font-size: 13px;
    color: var(--muted);
}

.cert-meta {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    color: var(--muted);
}

.cert-inst {
    font-size: 14px;
}

.cert-hours:empty {
    display: none;
}

@media (min-width: 900px) {
    .cert-row {
        grid-template-columns: 44px minmax(0, 1fr) 200px 96px 56px 76px;
        align-items: center;
        gap: 24px;
    }

    .cert-logo {
        grid-row: auto;
        width: 44px;
        height: 44px;
    }

    .cert-meta { display: contents; }
    .cert-inst { color: var(--fg); }
    .cert-hours:empty { display: block; }
    .cert-hours, .cert-date { text-align: right; }
}

.certs-more {
    margin-top: 24px;
}

/* Projetos */
.projects-stack {
    display: grid;
    gap: 24px;
}

.project-card-inner {
    position: relative;
    cursor: pointer;
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0b0b0b;
    transform-origin: 50% 0;
}

.project-media {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #111;
}

/* Internet lenta: capa no lugar do vídeo e um selo avisando que o vídeo está no case */
.project-media, .project-row-thumbs { position: relative; }
.no-autovideo .project-media::after,
.no-autovideo .project-row-thumbs::after {
    content: '▶ Vídeo no case';
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(5, 5, 5, 0.75);
    color: var(--fg);
    font: 11px/1 var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    pointer-events: none;
}
.no-autovideo .project-row-thumbs::after { content: '▶'; left: 6px; bottom: 6px; padding: 5px 7px; }

/* Vídeo na proporção da gravação, inteiro, sem corte nem zoom */
.project-media:has(video) { aspect-ratio: auto; }
.project-media video { height: auto; object-fit: contain; }

.project-media img,
.project-media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-out);
}

.project-card:hover .project-media img {
    transform: scale(1.04);
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: clamp(20px, 3vw, 40px);
}

.project-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
}

.project-cat {
    color: var(--accent);
}

.project-info h3,
.modal-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(28px, 3vw, 48px);
    line-height: 1;
    letter-spacing: -0.035em;
}

.project-info h3 span,
.modal-title span {
    display: block;
    margin-top: 10px;
    font-size: 0.45em;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--muted);
}

.project-info p {
    max-width: 44ch;
    line-height: 1.6;
    text-align: justify;
    hyphens: auto;
    color: var(--muted);
}

.project-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-techs li {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.project-shade {
    position: absolute;
    inset: 0;
    background: #050505;
    opacity: 0;
    pointer-events: none;
}

@media (min-width: 900px) {
    .project-card-inner {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        height: min(74vh, 660px);
    }

    /* 16:9 centralizado na coluna: preencher a altura do card cortava o vídeo */
    .project-media {
        align-self: center;
        margin: 0 0 0 24px;
        border-radius: 6px;
    }
}

/* Cards empilhados: cada um gruda no topo e o próximo passa por cima */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
    html:not(.low-perf) .projects-stack { gap: 10vh; }
    html:not(.low-perf) .project-card {
        position: sticky;
        top: calc(88px + var(--i) * 16px);
    }
}

.projects-more {
    margin-top: clamp(72px, 12vh, 140px);
}

.projects-more-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-bottom: 16px;
    color: var(--muted);
}

.projects-more-head h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(24px, 2.2vw, 34px);
    letter-spacing: -0.02em;
    color: var(--fg);
}

.projects-list {
    border-top: 1px solid var(--line);
}

.project-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 6px 12px;
    align-items: baseline;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    transition: background-color 0.3s;
}

.project-row:hover {
    background: rgba(255, 255, 255, 0.025);
}

.project-row-num,
.project-row-cat {
    color: var(--muted);
}

.project-row-main {
    min-width: 0;
}

.project-row-name {
    font-size: clamp(17px, 1.4vw, 21px);
    font-weight: 500;
    transition: transform 0.5s var(--ease-out);
}

.project-row-name button {
    text-align: left;
}

.project-row:hover .project-row-name {
    transform: translateX(8px);
}

.project-row-sub {
    max-width: 72ch;
    text-align: justify;
    hyphens: auto;
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted);
}

.project-row-cat {
    grid-column: 2;
}

/* Três miniaturas do case ao lado da descrição */
.project-row-thumbs {
    grid-column: 2;
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.project-row-thumbs img {
    width: 72px;
    height: 48px;
    border-radius: 4px;
    object-fit: cover;
    filter: grayscale(1);
    opacity: 0.7;
    transition: filter 0.4s, opacity 0.4s, transform 0.5s var(--ease-out);
}

.project-row:hover .project-row-thumbs img {
    filter: none;
    opacity: 1;
}

.project-row:hover .project-row-thumbs img:nth-child(2) { transform: translateY(-4px); }
.project-row:hover .project-row-thumbs img:nth-child(3) { transform: translateY(-8px); }

/* Vídeo do projeto no lugar das miniaturas */
.project-row-thumbs video {
    width: 160px;
    height: auto;
    border-radius: 4px;
    object-fit: contain;
    background: #111;
    opacity: 0.85;
    transition: opacity 0.4s, transform 0.5s var(--ease-out);
}

.project-row:hover .project-row-thumbs video {
    opacity: 1;
}

.project-row-arrow {
    display: none;
}

@media (min-width: 900px) {
    .project-row {
        grid-template-columns: 48px minmax(0, 640px) auto minmax(120px, 1fr) 24px;
        gap: 24px;
        align-items: center;
    }

    .project-row-num { align-self: baseline; padding-top: 4px; }
    .project-row-cat { grid-column: auto; text-align: right; }
    .project-row-thumbs { grid-column: auto; margin-top: 0; }
    .project-row-thumbs img { width: 84px; height: 56px; }
    .project-row-thumbs video { width: 176px; }
    .project-row-arrow { display: block; }
}

/* Modal de projeto */
.modal {
    width: min(1100px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100% - 48px);
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #0b0b0b;
    color: var(--fg);
    overflow: auto;
    overscroll-behavior: contain;
}

.modal::backdrop {
    background: rgba(0, 0, 0, 0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.modal-inner {
    display: grid;
    gap: 28px;
    padding: clamp(20px, 3vw, 40px);
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--accent);
}

.modal-close {
    color: var(--fg);
}

.modal-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    /* borda direita esmaecida: indica que há mais imagens ao lado */
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
    mask-image: linear-gradient(to right, #000 85%, transparent);
}

.modal-gallery.is-end {
    -webkit-mask-image: none;
    mask-image: none;
}

/* Setas sobre as imagens, nas laterais da galeria */
.gallery-wrap {
    position: relative;
}

.gallery-arrow {
    position: absolute;
    top: calc(50% - 4px);
    z-index: 2;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(5, 5, 5, .8);
    border: 1px solid rgba(255, 255, 255, .25);
    color: var(--fg);
    font-size: 20px;
    transform: translateY(-50%);
    backdrop-filter: blur(6px);
    transition: background .2s, color .2s, opacity .2s, transform .2s;
}

.gallery-arrow.prev { left: 12px; }
.gallery-arrow.next { right: 12px; background: var(--accent); border-color: var(--accent); color: #0a0a0a; }

.gallery-arrow:hover {
    background: var(--accent);
    color: #0a0a0a;
    transform: translateY(-50%) scale(1.08);
}

.gallery-arrow:disabled {
    opacity: 0;
    pointer-events: none;
}

/* Navegação da galeria: contador + dica */
.gallery-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    color: var(--muted);
}

.gallery-count {
    color: var(--fg);
}

.modal-gallery img,
.modal-gallery video {
    flex: 0 0 auto;
    width: min(78%, 620px);
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    background: #111;
    object-fit: cover;
    scroll-snap-align: start;
}

/* Gravações de tela são mais largas que 16:10: no modal o vídeo aparece inteiro */
.modal-gallery video {
    object-fit: contain;
}

.modal-body {
    display: grid;
    gap: 32px;
}

@media (min-width: 900px) {
    .modal-body { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
}

.modal-desc {
    line-height: 1.7;
    color: var(--muted);
}

.modal-desc a {
    color: var(--accent);
    text-decoration: underline;
}

.modal-aside {
    display: grid;
    align-content: start;
    gap: 16px;
}

.modal-content {
    display: grid;
    gap: 28px;
}

.modal-desc p {
    text-align: justify;
    hyphens: auto;
}

.modal-desc p + p {
    margin-top: 16px;
}

.modal-desc h4 {
    margin: 28px 0 12px;
    color: var(--muted);
}

/* Primeira frase do case: o que é o projeto */
.modal-desc .details-lead {
    color: var(--fg);
    font-size: 1.08em;
}

.modal-aside h4 {
    color: var(--muted);
}

.details-list {
    display: grid;
    gap: 10px;
}

.details-list li {
    position: relative;
    padding-left: 20px;
    color: var(--fg);
}

.details-list li::before {
    content: '';
    position: absolute;
    top: 0.8em;
    left: 0;
    width: 8px;
    height: 1px;
    background: var(--accent);
}

.details-credits {
    margin-top: 24px;
    font-size: 14px;
}

.modal-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
    padding: 20px 24px;
    border-radius: 8px;
    background: var(--accent);
    color: #0a0a0a;
    font-weight: 500;
}

.modal-cta:hover .arrow {
    transform: translate(3px, -3px);
}

.modal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Contato */
.contact-title {
    margin: clamp(40px, 7vh, 80px) 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(64px, 12vw, 200px);
    line-height: 0.88;
    letter-spacing: -0.055em;
}

.contact-title .line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.04em;
}

.contact-title .line-inner {
    display: block;
}

.contact-title .line:nth-child(2) .line-inner {
    padding-left: 1em;
}

.contact-title .accent {
    color: var(--accent);
}

.contact-grid {
    display: grid;
    gap: 40px;
}

@media (min-width: 900px) {
    .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
}

.contact-lead {
    max-width: 34ch;
    font-size: clamp(17px, 1.4vw, 21px);
    line-height: 1.45;
    color: var(--muted);
}

.contact-links {
    border-top: 1px solid var(--line);
}

.contact-links li {
    border-bottom: 1px solid var(--line);
}

.contact-links a {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    padding: 22px 12px;
    overflow: hidden;
}

.contact-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--fg);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.6s var(--ease-out);
}

.contact-links a > * {
    position: relative;
    transition: color 0.4s, transform 0.6s var(--ease-out);
}

.contact-links a > .mono {
    color: var(--muted);
}

.contact-links a:hover::before,
.contact-links a:focus-visible::before {
    transform: scaleY(1);
}

.contact-links a:hover > *,
.contact-links a:focus-visible > * {
    color: #0a0a0a;
}

.contact-links a:hover .contact-name {
    transform: translateX(12px);
}

.contact-name {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(26px, 3vw, 44px);
    line-height: 1;
    letter-spacing: -0.03em;
}

@media (max-width: 599px) {
    .contact-links a { grid-template-columns: 28px minmax(0, 1fr) auto; }
    .contact-links .contact-handle { display: none; }
}

/* Para empresas: chamada de destaque para orçamento direto */
.business {
    position: relative;
    display: block;
    overflow: hidden;
    margin-top: clamp(72px, 12vh, 140px);
    border-radius: 12px;
    background: var(--accent);
    color: #0a0a0a;
}

.business:focus-visible {
    outline-color: var(--fg);
}

.business-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(32px, 6vh, 72px);
    padding: clamp(24px, 4.5vw, 64px);
}

.business-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(10, 10, 10, 0.25);
}

.business-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(44px, 7.5vw, 128px);
    line-height: 0.9;
    letter-spacing: -0.05em;
}

.business-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px 40px;
}

.business-text {
    max-width: 40ch;
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.45;
}

.business-text strong {
    font-weight: 600;
}

.business-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 999px;
    background: #0a0a0a;
    color: var(--fg);
    white-space: nowrap;
    transition: background-color 0.3s, color 0.3s;
}

.business:hover .business-btn,
.business:focus-visible .business-btn {
    background: var(--fg);
    color: #0a0a0a;
}

.business:hover .business-btn .arrow {
    transform: translate(3px, -3px);
}

/* Seta gigante ao fundo: gira e aponta para frente no hover */
.business-mark {
    position: absolute;
    top: 50%;
    right: clamp(8px, 3vw, 48px);
    font-family: var(--font-display);
    font-size: clamp(180px, 28vw, 440px);
    line-height: 1;
    color: rgba(10, 10, 10, 0.1);
    transform: translateY(-50%);
    transition: transform 0.9s var(--ease-out), color 0.6s;
    pointer-events: none;
}

.business:hover .business-mark {
    transform: translateY(-50%) rotate(45deg);
    color: rgba(10, 10, 10, 0.18);
}

/* Rodapé */
.footer {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 8vh, 96px) var(--gutter) 24px;
    background: var(--bg);
    color: var(--fg);
}

.footer-mark {
    margin: 0 0 24px -0.04em;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 17.2vw; /* "Victor Santos" ocupa ~5.2em: preenche a largura entre as margens */
    line-height: 0.8;
    letter-spacing: -0.06em;
    white-space: nowrap;
}

.footer-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 24px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer-bar a {
    color: var(--fg);
}

/* Barra de rolagem */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: #222;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}
