/* =====================================================================
   Jeff Silva — Portfolio v2
   Tokens → base → layout → componentes → seções → utilitários
===================================================================== */

:root {
    --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
    --font-body: 'Geist', system-ui, -apple-system, sans-serif;
    --f-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;

    --brand: #9423ec;
    --brand-2: #c77dff;
    --brand-3: #5b2bff;

    --radius-s: 10px;
    --radius: 18px;
    --radius-l: 28px;

    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);

    --container: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --header-h: 76px;
}

[data-theme="dark"] {
    --bg: var(--bg-primary, #111827);
    --bg-2: var(--bg-secondary, #1f2937);
    --surface: rgba(255, 255, 255, .035);
    --surface-2: rgba(255, 255, 255, .07);
    --border: rgba(255, 255, 255, .09);
    --border-2: rgba(255, 255, 255, .16);
    --text: #f3f1f8;
    --text-2: #c3bfd0;
    --muted: #9591a6;
    --accent: #b46cff;
    --glow: rgba(148, 35, 236, .35);
    --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
    --dot: rgba(255, 255, 255, .12);
    --header-bg: rgba(17, 20, 33, .66);
}

:root,
[data-theme="light"] {
    --bg: var(--bg-primary, #ffffff);
    --bg-2: var(--bg-secondary, #f9fafb);
    --surface: rgba(255, 255, 255, .75);
    --surface-2: #ffffff;
    --border: rgba(20, 12, 40, .09);
    --border-2: rgba(20, 12, 40, .16);
    --text: #15111f;
    --text-2: #4a4558;
    --muted: #6f6a80;
    --accent: #8a1fe0;
    --glow: rgba(148, 35, 236, .22);
    --shadow: 0 30px 70px -35px rgba(40, 10, 80, .35);
    --dot: rgba(30, 10, 60, .13);
    --header-bg: rgba(255, 255, 255, .72);
}
[data-theme="dark"] { --bg: var(--bg-primary, #111827); }

/* ---------------------------------------------------------- base da página */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color .4s, color .4s;
}
img { max-width: 100%; }

/* ---------------------------------------------------------- base das seções novas */
:where(.site-header, .mobile-menu, .hero2, .blk, .site-footer, .pdialog, .palette, .xform-wrap) {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
:where(.site-header, .mobile-menu, .hero2, .blk, .site-footer, .pdialog, .palette, .xform-wrap) *, :where(.site-header, .mobile-menu, .hero2, .blk, .site-footer, .pdialog, .palette, .xform-wrap) *::before, :where(.site-header, .mobile-menu, .hero2, .blk, .site-footer, .pdialog, .palette, .xform-wrap) *::after { box-sizing: border-box; }
:where(.site-header, .mobile-menu, .hero2, .blk, .site-footer, .pdialog, .palette, .xform-wrap) img { max-width: 100%; display: block; }
:where(.site-header, .mobile-menu, .hero2, .blk, .site-footer, .pdialog, .palette, .xform-wrap) a { color: inherit; text-decoration: none; }
:where(.site-header, .mobile-menu, .hero2, .blk, .site-footer, .pdialog, .palette, .xform-wrap) button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
:where(.site-header, .mobile-menu, .hero2, .blk, .site-footer, .pdialog, .palette, .xform-wrap) input { font: inherit; color: inherit; }
:where(.site-header, .mobile-menu, .hero2, .blk, .site-footer, .pdialog, .palette, .xform-wrap) :is(h1, h2, h3, h4) { font-family: var(--font-display); line-height: 1.05; margin: 0; letter-spacing: -0.02em; color: inherit; }
:where(.site-header, .mobile-menu, .hero2, .blk, .site-footer, .pdialog, .palette, .xform-wrap) p { margin: 0; }
:where(.site-header, .mobile-menu, .hero2, .blk, .site-footer, .pdialog, .palette, .xform-wrap) ul { margin: 0; padding: 0; list-style: none; }
:where(.site-header, .mobile-menu, .hero2, .blk, .site-footer, .pdialog, .palette, .xform-wrap) :is(dl, dd) { margin: 0; }
:where(.site-header, .mobile-menu, .hero2, .blk, .site-footer, .pdialog, .palette, .xform-wrap) em { font-style: normal; }
:where(.site-header, .mobile-menu, .hero2, .blk, .site-footer, .pdialog, .palette, .xform-wrap) :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--f-mono); letter-spacing: 0; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.center { display: flex; justify-content: center; margin-top: 56px; }

.wrap {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.read-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200;
}
.read-progress span {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--brand-3), var(--brand), var(--brand-2));
    transform-origin: 0 50%;
    transform: scaleX(var(--p, 0));
}

/* ---------------------------------------------------------- reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

.split { display: inline-block; white-space: nowrap; }
.split .ch {
    display: inline-block;
    transform: translateY(105%) rotate(6deg);
    opacity: 0;
    transition: transform 1s var(--ease), opacity 1s var(--ease);
    transition-delay: calc(var(--ci) * 40ms + .15s);
}
.is-ready .split .ch { transform: none; opacity: 1; }

/* ---------------------------------------------------------- buttons */
.xbtn {
    --mx: 0px; --my: 0px;
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 26px;
    border-radius: 999px;
    font-weight: 500;
    font-size: .98rem;
    line-height: 1;
    white-space: nowrap;
    transform: translate(var(--mx), var(--my));
    transition: transform .35s var(--ease), background-color .3s, border-color .3s, box-shadow .3s, color .3s;
    isolation: isolate;
    overflow: hidden;
}
.xbtn i { font-size: .85em; transition: transform .35s var(--ease); }
.xbtn:hover i { transform: translateX(3px); }
.xbtn--primary i.fa-arrow-down { transform: none; }
.xbtn--primary:hover i.fa-arrow-down { transform: translateY(3px); }

.xbtn--primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 10px 30px -10px var(--glow), inset 0 1px 0 rgba(255,255,255,.2);
}
.xbtn--primary::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(110deg, var(--brand-3), var(--brand) 45%, var(--brand-2));
    opacity: 0; transition: opacity .4s;
}
.xbtn--primary:hover::before { opacity: 1; }
.xbtn--primary:hover { box-shadow: 0 16px 40px -10px var(--glow); }

.xbtn--ghost {
    border: 1px solid var(--border-2);
    background: var(--surface);
    backdrop-filter: blur(10px);
}
.xbtn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.xbtn--block { width: 100%; }

.icon-btn {
    display: inline-grid; place-items: center;
    min-width: 42px; height: 42px; padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-2);
    transition: color .25s, border-color .25s, background-color .25s, transform .25s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--border-2); }
.icon-btn:active { transform: scale(.94); }

kbd {
    font-family: var(--f-mono);
    font-size: .7rem;
    padding: 3px 7px;
    border-radius: 6px;
    border: 1px solid var(--border-2);
    color: var(--muted);
    background: var(--surface);
}

.badge2 {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 7px 16px 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    backdrop-filter: blur(8px);
    font-size: .85rem;
    color: var(--text-2);
}
.badge__dot {
    width: 8px; height: 8px; flex: none;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .6);
    animation: x-pulse 2s infinite;
}
@keyframes x-pulse {
    70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.chip {
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-2);
    font-size: .9rem;
    transition: all .3s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--border-2); }
.chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* efeito spotlight em cards */
.spotlight {
    --sx: 50%; --sy: 50%;
    position: relative;
    isolation: isolate;
}
.spotlight::after {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--sx) var(--sy), var(--glow), transparent 45%);
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
}
.spotlight:hover::after { opacity: .55; }

/* ---------------------------------------------------------- header */
.site-header {
    position: fixed; top: 14px; left: 50%; z-index: 100;
    width: min(calc(100% - 24px), 1240px);
    height: 60px;
    transform: translateX(-50%);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 0 10px 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background-color .4s, border-color .4s, transform .5s var(--ease), box-shadow .4s;
}
.site-header.is-scrolled {
    background: var(--header-bg);
    border-color: var(--border);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: 0 10px 40px -20px rgba(0,0,0,.5);
}
.site-header.is-hidden { transform: translate(-50%, -120%); }

.brand { display: flex; align-items: center; }
.brand__img { height: 32px; width: auto; }
.brand__img--dark { display: none; }
[data-theme="dark"] .brand__img--dark { display: block; }
[data-theme="dark"] .brand__img--light { display: none; }

.topnav { position: relative; }
.nav__list { display: flex; gap: 2px; }
.nav__link {
    position: relative; z-index: 1;
    display: block;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: .92rem;
    color: var(--text-2);
    transition: color .3s;
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__pill {
    position: absolute; top: 0; left: 0; height: 100%;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    opacity: 0;
    transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s;
}

.header__controls { display: flex; align-items: center; gap: 8px; }
.kbd-btn { display: inline-flex; gap: 10px; padding: 0 8px 0 14px; }
.lang-btn { display: inline-flex; gap: 8px; font-size: .8rem; font-weight: 600; padding: 0 12px; }
.lang-btn__flag { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.theme-btn { position: relative; overflow: hidden; width: 42px; }
.theme-btn > span { position: absolute; transition: transform .5s var(--ease), opacity .3s; }
[data-theme="dark"] .theme-btn__sun { transform: translateY(0); opacity: 1; }
[data-theme="dark"] .theme-btn__moon { transform: translateY(150%); opacity: 0; }
.theme-btn__moon { opacity: 1; }
.theme-btn__sun { transform: translateY(-150%); opacity: 0; }
.theme-btn__moon { transform: translateY(0); }

.menu-btn { display: none; width: 42px; position: relative; }
.menu-btn span {
    position: absolute; left: 13px; right: 13px; height: 1.5px;
    background: currentColor; border-radius: 2px;
    transition: transform .35s var(--ease);
}
.menu-btn span:first-child { transform: translateY(-4px); }
.menu-btn span:last-child { transform: translateY(4px); }
.menu-btn[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.mobile-menu {
    position: fixed; inset: 0; z-index: 90;
    display: flex; flex-direction: column; justify-content: center;
    padding: 100px 28px 40px;
    background: var(--bg);
    animation: x-menuIn .5s var(--ease);
}
.mobile-menu[hidden] { display: none; }
@keyframes x-menuIn { from { clip-path: circle(0 at calc(100% - 40px) 44px); } to { clip-path: circle(150% at calc(100% - 40px) 44px); } }
.mobile-menu li { overflow: hidden; }
.mobile-menu ul a {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 11vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    animation: x-menuItem .6s var(--ease) both;
}
.mobile-menu li:nth-child(2) a { animation-delay: .05s; }
.mobile-menu li:nth-child(3) a { animation-delay: .1s; }
.mobile-menu li:nth-child(4) a { animation-delay: .15s; }
.mobile-menu li:nth-child(5) a { animation-delay: .2s; }
@keyframes x-menuItem { from { transform: translateY(100%); } }
.mobile-menu__foot { display: flex; gap: 12px; margin-top: 40px; }
.mobile-menu__foot a {
    display: grid; place-items: center; width: 48px; height: 48px;
    border-radius: 50%; border: 1px solid var(--border-2); font-size: 1.1rem;
}

/* ---------------------------------------------------------- hero */
.hero2 {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex; flex-direction: column; justify-content: center;
    padding: calc(var(--header-h) + 40px) 0 0;
    overflow: hidden;
}
.hero__canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
}
.hero__aurora {
    position: absolute; inset: -20% -10% auto; height: 90%;
    pointer-events: none;
    background:
        radial-gradient(40% 50% at 20% 30%, rgba(148, 35, 236, .28), transparent 70%),
        radial-gradient(35% 45% at 80% 20%, rgba(91, 43, 255, .22), transparent 70%),
        radial-gradient(30% 40% at 60% 70%, rgba(199, 125, 255, .12), transparent 70%);
    filter: blur(20px);
    animation: x-aurora 18s ease-in-out infinite alternate;
}
[data-theme="light"] .hero__aurora { opacity: .55; }
[data-theme="light"] .terminal { background: #17141f; }
@keyframes x-aurora {
    to { transform: translate3d(3%, 4%, 0) rotate(4deg) scale(1.05); }
}

.hero__grid {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: clamp(32px, 5vw, 80px);
    flex: 1;
}
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }

.hero__title { display: flex; flex-direction: column; gap: 6px; font-weight: 800; }
.hero__hello {
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    font-weight: 400;
    color: var(--text-2);
    letter-spacing: 0;
}
.hero__name {
    display: flex; flex-wrap: wrap; column-gap: .22em;
    font-size: clamp(3.6rem, 10.5vw, 9rem);
    line-height: .9;
    letter-spacing: -0.035em;
}
.hero__name .split { overflow: hidden; padding: .04em .02em .1em; margin: -.04em -.02em -.1em; }
.split--grad .ch {
    color: transparent;
    background: linear-gradient(100deg, var(--brand-2), var(--brand) 30%, var(--brand-3) 50%, var(--brand) 70%, var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    background-size: 200% 100%;
    animation: x-shine 6s linear infinite;
}
@keyframes x-shine { to { background-position: -200% 0; } }

.hero__role {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-family: var(--font-display);
    font-weight: 600;
}
.rotator {
    display: inline-block;
    color: var(--accent);
    min-width: 5ch;
    transition: opacity .35s, transform .45s var(--ease), filter .35s;
}
.rotator.is-out { opacity: 0; transform: translateY(-40%); filter: blur(6px); }
.rotator.is-pre { opacity: 0; transform: translateY(40%); filter: blur(6px); transition: none; }

.hero__lead { max-width: 54ch; color: var(--text-2); font-size: clamp(1rem, 1.2vw, 1.1rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__stats {
    display: flex; gap: clamp(20px, 4vw, 48px);
    padding-top: 22px;
    border-top: 1px solid var(--border);
}
.hero__stats div { display: flex; flex-direction: column-reverse; }
.hero__stats dd {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1;
    letter-spacing: -0.03em;
}
.hero__stats dt { font-size: .82rem; color: var(--muted); margin-top: 6px; }

/* terminal */
.hero__visual { position: relative; }
.terminal {
    --rx: 0deg; --ry: 0deg;
    position: relative; z-index: 1;
    border-radius: var(--radius);
    background: rgba(14, 12, 22, .82);
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: var(--shadow), 0 0 0 1px rgba(148,35,236,.12), 0 0 80px -20px var(--glow);
    backdrop-filter: blur(16px);
    color: #e9e6f2;
    overflow: hidden;
    transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform .6s var(--ease);
    cursor: text;
}
.terminal__bar {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.025);
}
.terminal__dots { display: flex; gap: 7px; }
.terminal__dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.terminal__dots i:nth-child(2) { background: #febc2e; }
.terminal__dots i:nth-child(3) { background: #28c840; }
.terminal__title { font-size: .76rem; color: #8f8aa3; }
.terminal__hint { margin-left: auto; font-size: .7rem; color: #6c6880; }
.terminal__body {
    height: 280px;
    overflow-y: auto;
    padding: 16px 18px 4px;
    font-size: .84rem;
    line-height: 1.75;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.15) transparent;
}
.terminal__body .ln { white-space: pre-wrap; word-break: break-word; }
.terminal__body .cmd { color: #fff; }
.terminal__body .cmd::before { content: "➜ ~ "; color: #c77dff; }
.terminal__body .k { color: #c77dff; }
.terminal__body .s { color: #7ee2a8; }
.terminal__body .c { color: #6c6880; }
.terminal__body .y { color: #fcd34d; }
.terminal__body a { color: #7dd3fc; text-decoration: underline; text-underline-offset: 3px; }
.terminal__input {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 18px 14px;
    font-size: .84rem;
}
.terminal__input input {
    flex: 1; min-width: 0;
    background: none; border: 0; outline: none;
    color: #fff;
    caret-color: #c77dff;
}
.terminal__input input::placeholder { color: #4d4960; }
.terminal__chips {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,.07);
}
.terminal__chips button {
    font-family: var(--f-mono);
    font-size: .72rem;
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    color: #b9b5c6;
    transition: all .25s;
}
.terminal__chips button:hover { color: #fff; border-color: #9423ec; background: rgba(148,35,236,.18); }

.float-chip {
    position: absolute; z-index: 2;
    display: grid; place-items: center;
    width: 54px; height: 54px;
    border-radius: 16px;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    font-size: 1.5rem;
    color: var(--accent);
    animation: x-float 6s ease-in-out infinite;
}
.float-chip--1 { top: -26px; right: 36%; }
.float-chip--2 { bottom: 70px; left: -26px; animation-delay: -2s; }
.float-chip--3 { bottom: -20px; right: -14px; animation-delay: -4s; }
@keyframes x-float { 50% { transform: translateY(-12px) rotate(4deg); } }

/* x-marquee */
.marquee2 {
    position: relative; z-index: 2;
    margin-top: clamp(48px, 7vh, 80px);
    padding: 22px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee2__track {
    display: flex; align-items: center; gap: 36px;
    width: max-content;
    animation: x-marquee 38s linear infinite;
}
.marquee2:hover .marquee2__track { animation-play-state: paused; }
.marquee2__track span {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
    transition: color .3s;
}
.marquee2__track span:hover { color: var(--text); }
.marquee2__track span i { color: var(--accent); }
.marquee2__track .marquee2__sep { color: var(--border-2); font-size: .8rem; }
@keyframes x-marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------- sections */
.blk { position: relative; padding: clamp(90px, 13vw, 160px) 0; }

.section-head {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 22px;
    row-gap: 14px;
    align-items: end;
    margin-bottom: clamp(44px, 6vw, 72px);
}
.section-head__num {
    display: inline-block;
    font-size: .8rem;
    color: var(--accent);
    padding: 5px 10px;
    border: 1px solid var(--border-2);
    border-radius: 999px;
    align-self: center;
}
.section-head__title {
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    font-weight: 700;
    letter-spacing: -0.04em;
}
.section-head__sub {
    grid-column: 2;
    max-width: 52ch;
    color: var(--text-2);
    font-size: 1.05rem;
}

/* ---------------------------------------------------------- about */
.about {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(32px, 6vw, 88px);
    align-items: center;
}
.photo-card {
    --rx: 0deg; --ry: 0deg;
    position: relative;
    border-radius: var(--radius-l);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow);
    transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform .6s var(--ease);
}
.photo-card::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, transparent 55%, rgba(11,10,16,.65));
    pointer-events: none;
}
.photo-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    transform: scale(1.06);
    transition: transform 1.2s var(--ease), filter .6s;
    filter: saturate(.9);
}
.photo-card:hover img { transform: scale(1.1); filter: saturate(1.05); }
.photo-card__tag {
    position: absolute; left: 18px; bottom: 18px; z-index: 2;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(11,10,16,.55);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.14);
    color: #fff;
    font-size: .78rem;
}

.about__text { display: flex; flex-direction: column; gap: 20px; color: var(--text-2); font-size: 1.05rem; }
.about__heading {
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.035em;
    margin-bottom: 4px;
}
.about__heading em, .award__title em, .contact__title em, .footer__cta em {
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(100deg, var(--brand-2), var(--brand) 60%, var(--brand-3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-right: .16em;
    margin-right: -.08em;
}

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.fact {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 16px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
}
.fact i { color: var(--accent); font-size: 1.1rem; margin-top: 4px; }
.fact small { display: block; font-size: .78rem; color: var(--muted); }
.fact strong { display: block; color: var(--text); font-weight: 500; font-size: .95rem; line-height: 1.4; }

/* timeline horizontal */
.timeline2 { margin-top: clamp(80px, 10vw, 120px); }
.timeline__title { font-size: 1.4rem; font-weight: 600; margin-bottom: 36px; }
.timeline__track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-top: 36px;
}
.timeline__line {
    position: absolute; top: 6px; left: 0; right: 0; height: 2px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}
.timeline__fill {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--brand-3), var(--brand), var(--brand-2));
    transform-origin: 0 50%;
    transform: scaleX(var(--tl, 0));
    transition: transform .2s linear;
}
.timeline__item { position: relative; }
.timeline__item::before {
    content: "";
    position: absolute; top: -36px; left: 0;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 5px var(--bg);
}
.timeline__year { font-size: .82rem; color: var(--accent); }
.timeline__item h4 { font-size: 1.25rem; margin: 6px 0 8px; }
.timeline__item p { color: var(--text-2); font-size: .95rem; }

/* ---------------------------------------------------------- projects */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }

.projects2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.project2 {
    display: flex; flex-direction: column;
    border-radius: var(--radius-l);
    border: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
    transition: border-color .4s, transform .6s var(--ease), opacity .6s var(--ease);
}
.project2:hover { border-color: var(--border-2); }
.project2.is-filtered { display: none; }
.project2--featured { grid-column: 1 / -1; flex-direction: row; }
.project2--featured .project__media { flex: 1.25; min-height: 420px; }
.project2--featured .project__body { flex: 1; padding: clamp(28px, 4vw, 48px); justify-content: center; }
.project2--featured .project__title { font-size: clamp(2rem, 3.6vw, 3rem); }
.project2--featured .project__desc { -webkit-line-clamp: 5; }

.project__open {
    position: absolute; inset: 0; z-index: 2;
    border-radius: inherit;
}
.project__links, .project__links a { position: relative; z-index: 3; }

.project__media {
    position: relative;
    display: grid; place-items: center;
    padding: clamp(24px, 4vw, 40px) clamp(24px, 4vw, 40px) 0;
    min-height: 300px;
    background:
        radial-gradient(80% 70% at 50% 100%, rgba(148,35,236,.25), transparent 70%),
        linear-gradient(180deg, var(--bg-2), transparent);
    overflow: hidden;
}
.project__media--mobile { padding-bottom: 0; }

.browser {
    width: 100%;
    align-self: end;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    border: 1px solid var(--border-2);
    border-bottom: 0;
    background: #16131f;
    box-shadow: 0 -10px 60px -20px rgba(0,0,0,.6);
    transform: translateY(14px);
    transition: transform .8s var(--ease);
}
.project2:hover .browser { transform: translateY(0) scale(1.015); }
.browser__bar {
    display: flex; align-items: center; gap: 6px;
    padding: 9px 12px;
    background: #1d1928;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3548; }
.browser__bar span {
    flex: 1;
    margin-left: 8px;
    padding: 3px 12px;
    border-radius: 6px;
    background: rgba(255,255,255,.05);
    font-size: .7rem;
    color: #8f8aa3;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.browser__screen { aspect-ratio: 16 / 9.5; overflow: hidden; }
.browser__screen img {
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 4s var(--ease-in-out);
}
.project2:hover .browser__screen img { transform: translateY(calc(-100% + 100px)); }
.project2--featured .browser__screen img { transition-duration: 5s; }

.phone {
    width: 46%;
    max-width: 210px;
    align-self: end;
    aspect-ratio: 9 / 18.5;
    border-radius: 30px 30px 0 0;
    border: 6px solid #241f30;
    border-bottom: 0;
    overflow: hidden;
    background: #000;
    box-shadow: 0 -10px 60px -20px rgba(0,0,0,.7);
    transform: translateY(30px) rotate(-4deg);
    transition: transform .8s var(--ease);
}
.project2:hover .phone { transform: translateY(8px) rotate(0); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.project__flag {
    position: absolute; top: 18px; left: 18px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: .72rem;
    box-shadow: 0 8px 24px -8px var(--glow);
}

.project__body { display: flex; flex-direction: column; gap: 12px; padding: 26px 28px 28px; flex: 1; }
.project__meta {
    display: flex; justify-content: space-between; gap: 12px;
    font-size: .76rem;
    color: var(--muted);
}
.project__title { font-size: 1.65rem; font-weight: 700; letter-spacing: -0.03em; }
.project__desc {
    color: var(--text-2);
    font-size: .95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.project__tech { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.project__tech li {
    font-family: var(--f-mono);
    font-size: .72rem;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-2);
}
.project__foot {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.project__cta { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 500; color: var(--text); }
.project__cta i { font-size: .8em; transition: transform .4s var(--ease); }
.project2:hover .project__cta i { transform: translateX(5px); }
.project__cta span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.project2:hover .project__cta span { background-size: 100% 1px; }
.project__links { display: flex; gap: 6px; }
.project__links a {
    display: grid; place-items: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-2);
    transition: all .3s;
}
.project__links a:hover { color: #fff; background: var(--brand); border-color: var(--brand); }

/* ---------------------------------------------------------- reviews */
.reviews { position: relative; }
.reviews__track {
    display: flex; gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    padding: 10px max(var(--gutter), calc((100vw - var(--container)) / 2)) 24px;
    scrollbar-width: none;
    cursor: grab;
}
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.reviews__track.is-dragging * { pointer-events: none; user-select: none; }
.review {
    flex: 0 0 min(460px, 84vw);
    scroll-snap-align: start;
    display: flex; flex-direction: column; gap: 22px;
    margin: 0;
    padding: 30px;
    border-radius: var(--radius-l);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color .3s, transform .5s var(--ease);
}
.review:hover { border-color: var(--border-2); transform: translateY(-4px); }
.review__top { display: flex; justify-content: space-between; align-items: center; }
.review__stars { color: #fbbf24; letter-spacing: 3px; font-size: 1rem; }
.review__score { font-size: .85rem; color: var(--text-2); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); }
.review blockquote {
    margin: 0;
    flex: 1;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.015em;
}
.review blockquote::before { content: "“"; display: block; font-size: 3.2rem; line-height: .6; color: var(--accent); margin-bottom: 8px; }
.review figcaption { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--border); }
.review__avatar {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-3));
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
}
.review figcaption strong { display: block; font-weight: 600; }
.review figcaption small { display: block; color: var(--muted); font-size: .84rem; }

.reviews__controls { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.reviews__dots { display: flex; gap: 8px; }
.reviews__dots button {
    width: 8px; height: 8px;
    border-radius: 999px;
    background: var(--border-2);
    transition: width .4s var(--ease), background-color .3s;
}
.reviews__dots button.is-active { width: 28px; background: var(--accent); }
.reviews__arrows { display: flex; gap: 8px; }
.reviews__arrows .icon-btn { width: 48px; height: 48px; }

.impact {
    display: grid; grid-template-columns: repeat(3, 1fr);
    margin-top: 56px;
    border-top: 1px solid var(--border);
}
.impact div { display: flex; flex-direction: column; gap: 4px; padding: 30px 24px 0 0; }
.impact div + div { padding-left: 24px; border-left: 1px solid var(--border); }
.impact strong { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.impact div > span { color: var(--muted); font-size: .92rem; }

/* ---------------------------------------------------------- footer */
.site-footer { position: relative; padding: 100px 0 28px; border-top: 1px solid var(--border); overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.footer__cta { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.footer__mid {
    display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
    margin-top: 64px; padding: 24px 0;
    border-top: 1px solid var(--border);
}
.footer__mid nav { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.footer__mid nav a { color: var(--text-2); font-size: .95rem; transition: color .3s; }
.footer__mid nav a:hover { color: var(--accent); }
.footer__social { display: flex; gap: 8px; }
.footer__social a {
    display: grid; place-items: center;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-2);
    transition: all .3s var(--ease);
}
.footer__social a:hover { color: #fff; background: var(--brand); border-color: var(--brand); transform: translateY(-3px); }
.footer__word {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(4rem, 17.5vw, 15rem);
    line-height: .8;
    letter-spacing: -0.06em;
    text-align: center;
    white-space: nowrap;
    margin: 30px 0 24px;
    background: linear-gradient(180deg, var(--text) 0%, transparent 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: .14;
    user-select: none;
}
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); transition: color .3s; }
.to-top:hover { color: var(--accent); }

/* ---------------------------------------------------------- dialog */
.pdialog {
    width: min(920px, calc(100% - 24px));
    max-height: calc(100vh - 40px);
    padding: 0;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-l);
    background: var(--bg-2);
    color: var(--text);
    box-shadow: 0 40px 120px -20px rgba(0,0,0,.8);
    overflow: auto;
}
.pdialog::backdrop { background: rgba(5, 4, 10, .7); backdrop-filter: blur(8px); }
.pdialog[open] { animation: x-dialogIn .5s var(--ease); }
.pdialog[open]::backdrop { animation: x-fade .4s; }
@keyframes x-dialogIn { from { opacity: 0; transform: translateY(30px) scale(.97); } }
@keyframes x-fade { from { opacity: 0; } }
.pdialog__close { position: absolute; top: 16px; right: 16px; z-index: 3; background: var(--bg-2); }
.pdialog__media {
    display: grid; place-items: center;
    padding: 40px 40px 0;
    background: radial-gradient(80% 80% at 50% 100%, rgba(148,35,236,.3), transparent 70%), var(--bg);
}
.pdialog__media .browser { transform: none; max-width: 760px; }
.pdialog__media .browser__screen { aspect-ratio: 16 / 9; }
.pdialog__media .phone { transform: none; width: 220px; }
.pdialog__body { display: flex; flex-direction: column; gap: 16px; padding: 32px clamp(22px, 4vw, 40px) 36px; }
.pdialog__body h3 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.035em; }
.pdialog__body > p:not(.project__meta) { color: var(--text-2); }
.pdialog__highlights { display: flex; flex-wrap: wrap; gap: 8px; }
.pdialog__highlights span {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 999px;
    background: rgba(148,35,236,.12);
    color: var(--accent);
    font-size: .86rem;
}
.pdialog__stats { display: flex; flex-wrap: wrap; gap: 12px; }
.pdialog__stats div { flex: 1; min-width: 120px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); }
.pdialog__stats strong { display: block; font-family: var(--font-display); font-size: 1.6rem; }
.pdialog__stats small { color: var(--muted); }
.pdialog__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* ---------------------------------------------------------- palette */
.palette {
    width: min(560px, calc(100% - 24px));
    margin-top: 14vh;
    padding: 0;
    border: 1px solid var(--border-2);
    border-radius: 20px;
    background: var(--bg-2);
    color: var(--text);
    box-shadow: 0 40px 120px -20px rgba(0,0,0,.8);
    overflow: hidden;
}
.palette::backdrop { background: rgba(5, 4, 10, .55); backdrop-filter: blur(6px); }
.palette[open] { animation: x-dialogIn .35s var(--ease); }
.palette__search { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); color: var(--muted); }
.palette__search input { flex: 1; background: none; border: 0; outline: none; font-size: 1.05rem; color: var(--text); }
.palette__list { max-height: 360px; overflow-y: auto; padding: 8px; }
.palette__group { padding: 10px 12px 6px; font-size: .72rem; color: var(--muted); font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .08em; }
.palette__item {
    display: flex; align-items: center; gap: 14px;
    padding: 11px 12px;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-2);
}
.palette__item i { width: 18px; text-align: center; color: var(--muted); }
.palette__item.is-active { background: var(--surface-2); color: var(--text); }
.palette__item.is-active i { color: var(--accent); }
.palette__item kbd { margin-left: auto; }
.palette__empty { padding: 26px; text-align: center; color: var(--muted); }

/* ---------------------------------------------------------- toast */
.xtoast {
    position: fixed; left: 50%; bottom: 28px; z-index: 300;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--text);
    color: var(--bg);
    font-size: .9rem;
    font-weight: 500;
    box-shadow: var(--shadow);
    transform: translate(-50%, 150%);
    opacity: 0;
    transition: transform .5s var(--ease), opacity .3s;
    pointer-events: none;
}
.xtoast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1080px) {
    .topnav, .kbd-btn { display: none; }
    .menu-btn { display: inline-grid; }
    .hero__grid { grid-template-columns: 1fr; }
    .hero__visual { max-width: 560px; width: 100%; }
    .skills { grid-template-columns: repeat(3, 1fr); }
    .project2--featured { flex-direction: column; }
    .project2--featured .project__media { min-height: 320px; }
}

@media (max-width: 820px) {
    .about, .award__grid, .contact__grid { grid-template-columns: 1fr; }
    .about__photo { max-width: 440px; }
    .timeline__track { grid-template-columns: 1fr; gap: 28px; padding: 0 0 0 34px; }
    .timeline__line { top: 0; bottom: 0; left: 6px; right: auto; width: 2px; height: auto; }
    .timeline__fill { width: 100%; height: 100%; transform-origin: 50% 0; transform: scaleY(var(--tl, 0)); }
    .timeline__item::before { top: 4px; left: -34px; }
    .skills { grid-template-columns: repeat(2, 1fr); }
    .projects2 { grid-template-columns: 1fr; }
    .section-head { grid-template-columns: 1fr; }
    .section-head__sub { grid-column: 1; }
    .section-head__num { justify-self: start; }
    .award__seal { right: 12px; top: -40px; width: 104px; height: 104px; }
    .impact { grid-template-columns: 1fr; }
    .impact div + div { padding-left: 0; border-left: 0; }
    .impact div { padding: 22px 0; border-bottom: 1px solid var(--border); flex-direction: row; align-items: baseline; justify-content: space-between; }
}

@media (max-width: 560px) {
    :root { --header-h: 68px; }
    .site-header { top: 10px; height: 54px; padding: 0 6px 0 16px; }
    .brand__img { height: 26px; }
    .lang-btn__label { display: none; }
    .lang-btn { padding: 0; width: 42px; justify-content: center; }
    .hero2 { padding-top: 110px; }
    .hero__actions .xbtn { flex: 1; }
    .hero__stats { width: 100%; justify-content: space-between; }
    .terminal__body { height: 220px; font-size: .78rem; }
    .terminal__hint { display: none; }
    .float-chip { width: 44px; height: 44px; font-size: 1.2rem; }
    .float-chip--2 { left: -8px; }
    .float-chip--3 { right: -6px; }
    .skills { grid-template-columns: 1fr 1fr; gap: 10px; }
    .skill { padding: 16px; }
    .skill__name { font-size: 1.1rem; }
    .skill__tags { font-size: .78rem; }
    .form__row, .facts { grid-template-columns: 1fr; }
    .project__body { padding: 22px; }
    .project__media { min-height: 230px; }
    .award__meta { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
    .award__meta dd { font-size: 1.2rem; }
    .reviews__arrows .icon-btn { width: 44px; height: 44px; }
    .pdialog__media { padding: 24px 16px 0; }
}

@media (max-width: 380px) {
    .skills { grid-template-columns: 1fr; }
}

/* sem hover real (touch): sem tilt e sem scroll de screenshot */
@media (hover: none) {
    .project2:hover .browser__screen img { transform: none; }
    .cursor-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        transition-delay: 0s !important;
    }
    .reveal, .split .ch { opacity: 1; transform: none; }
}

/* VLibras não sobrepõe o toast */
[vw] { z-index: 150 !important; }

/* =====================================================================
   Página "Todos os projetos"
===================================================================== */
.hero2--page { min-height: auto; padding-bottom: clamp(24px, 4vw, 40px); }
.page-hero { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.page-hero__title { font-weight: 800; }
.page-hero__title .hero__name { font-size: clamp(3rem, 9vw, 7.5rem); }
.page-hero .hero__lead { max-width: 62ch; }
.page-hero .hero__stats { flex-wrap: wrap; }

.back-link {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .9rem;
    color: var(--text-2);
    transition: color .3s, gap .3s var(--ease);
}
.back-link:hover { color: var(--accent); gap: 14px; }

.blk--tight { padding-top: clamp(16px, 3vw, 28px); }

.toolbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    margin-bottom: 18px;
}
.toolbar .filters { margin-bottom: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; }
.chip i { font-size: .8em; opacity: .8; }
.chip__count {
    min-width: 22px; padding: 1px 7px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-family: var(--f-mono);
    font-size: .72rem;
    text-align: center;
    color: var(--muted);
}
.chip.is-active .chip__count { background: rgba(148, 35, 236, .9); border-color: transparent; color: #fff; }

.search {
    display: flex; align-items: center; gap: 10px;
    min-width: min(320px, 100%);
    padding: 0 16px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    transition: border-color .3s, box-shadow .3s;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(148, 35, 236, .15); }
.search input {
    flex: 1; min-width: 0;
    border: 0; outline: none; background: none;
    font: inherit; font-size: .92rem;
    color: var(--text);
}
.search input::-webkit-search-cancel-button { cursor: pointer; }

.results { font-size: .8rem; color: var(--muted); margin-bottom: 26px; }

.empty-state {
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    padding: 64px 24px;
    border-radius: var(--radius-l);
    border: 1px dashed var(--border-2);
    color: var(--muted);
    text-align: center;
}
.empty-state[hidden] { display: none; }
.empty-state i { font-size: 1.6rem; color: var(--accent); }

@media (max-width: 820px) {
    .toolbar { flex-direction: column; align-items: stretch; }
    .toolbar .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
    /* sem isso a linha de chips empurra a página para 700+ px no celular */
    .toolbar > * { min-width: 0; max-width: 100%; }
    .toolbar .filters::-webkit-scrollbar { display: none; }
    .chip { flex: none; }
    .search { min-width: 0; }
}

/* =====================================================================
   Habilidades (stack)
===================================================================== */
.stack-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 40px; }

.tabs2 {
    position: relative;
    display: inline-flex; flex-wrap: wrap; gap: 2px;
    padding: 5px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    max-width: 100%;
}
.tabs2__btn {
    position: relative; z-index: 1;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: .9rem;
    color: var(--text-2);
    white-space: nowrap;
    transition: color .3s;
}
.tabs2__btn i { font-size: .8em; opacity: .75; }
.tabs2__btn:hover { color: var(--text); }
.tabs2__btn.is-active { color: var(--bg); }
.tabs2__count {
    min-width: 20px; padding: 0 6px;
    border-radius: 999px;
    background: var(--border);
    font-family: var(--f-mono);
    font-size: .7rem;
    line-height: 18px;
    text-align: center;
    transition: background-color .3s, color .3s;
}
.tabs2__btn.is-active .tabs2__count { background: var(--brand); color: #fff; }
.tabs2__pill {
    position: absolute; top: 5px; left: 0; height: calc(100% - 10px);
    border-radius: 999px;
    background: var(--text);
    transition: transform .5s var(--ease), width .5s var(--ease), height .5s var(--ease), top .5s var(--ease);
}

.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .82rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }

/* medidor de 3 segmentos */
.meter { display: inline-flex; gap: 3px; }
.meter i { width: 14px; height: 5px; border-radius: 3px; background: var(--border-2); }
.meter--1 i:nth-child(-n+1),
.meter--2 i:nth-child(-n+2),
.meter--3 i { background: linear-gradient(90deg, var(--brand-3), var(--brand)); }

.stack { display: flex; flex-direction: column; gap: 56px; }
.stack__group.is-hidden { display: none; }
.stack__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.stack__icon {
    display: grid; place-items: center; flex: none;
    width: 46px; height: 46px;
    border-radius: 14px;
    background: var(--text);
    color: var(--bg);
    font-size: 1.05rem;
}
.stack__head h3 { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.03em; }
.stack__head p { color: var(--muted); font-size: .9rem; }
.stack__qtd {
    margin-left: auto;
    font-size: .78rem;
    color: var(--muted);
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
}
.stack__head::after { content: none; }

.stack__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.skill2 {
    display: flex; flex-direction: column; gap: 8px;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
    transition: border-color .3s, transform .5s var(--ease), box-shadow .5s var(--ease);
}
.skill2:hover { border-color: var(--border-2); transform: translateY(-4px); box-shadow: var(--shadow); }
.skill2__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.skill2__icon {
    display: grid; place-items: center;
    width: 46px; height: 46px;
    border-radius: 13px;
    background: rgba(148, 35, 236, .1);
    border: 1px solid rgba(148, 35, 236, .18);
    color: var(--accent);
    font-size: 1.5rem;
    transition: transform .5s var(--ease), background-color .4s, border-color .4s;
}
/* ícone na cor da marca da tecnologia só no hover */
.skill2:not(:hover) .skill2__icon i { color: var(--accent); }
.skill2:hover .skill2__icon { transform: rotate(-8deg) scale(1.08); background: var(--surface-2); border-color: var(--border-2); }
.skill2__exp { font-size: .7rem; color: var(--muted); padding: 3px 9px; border: 1px solid var(--border); border-radius: 999px; }
.skill2__name { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.skill2__tags { flex: 1; font-size: .84rem; color: var(--muted); line-height: 1.5; }
.skill2__level { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.skill2__label { font-size: .78rem; font-weight: 500; color: var(--text-2); }
.skill2 .meter i { transform-origin: 0 50%; transform: scaleX(0); transition: transform .5s var(--ease); }
.skill2.is-in .meter i { transform: none; }
.skill2.is-in .meter i:nth-child(2) { transition-delay: .12s; }
.skill2.is-in .meter i:nth-child(3) { transition-delay: .24s; }

@media (max-width: 1080px) { .stack__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) {
    .stack__grid { grid-template-columns: repeat(2, 1fr); }
    .stack-bar { flex-direction: column; align-items: flex-start; }
    .tabs2 { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: 18px; }
    .tabs2::-webkit-scrollbar { display: none; }
}
@media (max-width: 560px) {
    .skill2 { padding: 16px; }
    .skill2__tags { font-size: .78rem; }
    .stack { gap: 40px; }
}
@media (max-width: 380px) { .stack__grid { grid-template-columns: 1fr; } }

/* =====================================================================
   Reconhecimento · Prêmio Roberto Mange (foto em destaque)
===================================================================== */
.rm__banner {
    --mz: 1.12;
    position: relative;
    margin: 0;
    aspect-ratio: 16 / 8.6;
    border-radius: 28px;
    overflow: hidden;
    background: var(--bg-2);
    box-shadow: var(--shadow);
    isolation: isolate;
}
.rm__img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 50% 38%;
    transform: scale(var(--mz));
    transform-origin: 50% 40%;
    will-change: transform;
}
.rm__banner::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(90deg, rgba(12, 8, 22, .82) 0%, rgba(12, 8, 22, .55) 32%, transparent 58%),
        linear-gradient(0deg, rgba(12, 8, 22, .55) 0%, transparent 40%);
    pointer-events: none;
}
.rm__overlay {
    position: absolute; left: 0; bottom: 0; top: 0; z-index: 2;
    width: min(520px, 46%);
    display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 14px;
    padding: clamp(24px, 4vw, 48px);
    color: #fff;
}
.rm__tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: .74rem;
    letter-spacing: .06em;
}
.rm__tag i { color: #fcd34d; }
.rm__title {
    font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: .98;
    color: #fff;
}
.rm__title em {
    font-style: italic; font-weight: 400;
    background: linear-gradient(100deg, #e9d5ff, #c084fc 60%, #a78bfa);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    padding-right: .22em;
    margin-right: -.12em;
}
.rm__sub { font-size: 1.02rem; color: rgba(255, 255, 255, .82); }
.rm__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.rm__chips li {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: .8rem;
    color: rgba(255, 255, 255, .92);
    transition: background-color .3s, transform .3s var(--ease);
}
.rm__chips li:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }
.rm__chips i { color: #d8b4fe; font-size: .85em; }

.rm__stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    margin: 28px 0 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.rm__stats div { display: flex; flex-direction: column; gap: 4px; padding: 24px 24px 24px 0; }
.rm__stats div + div { padding-left: 24px; border-left: 1px solid var(--border); }
.rm__stats dd { margin: 0; font-family: var(--font-display); font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.rm__stats dt { font-size: .86rem; color: var(--muted); }

.rm__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.rm__card {
    display: flex; flex-direction: column; gap: 10px;
    padding: 26px;
    border-radius: var(--radius-l);
    border: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
    transition: border-color .3s, transform .5s var(--ease), box-shadow .5s var(--ease);
}
.rm__card:hover { border-color: var(--border-2); transform: translateY(-4px); box-shadow: var(--shadow); }
.rm__card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.rm__icon {
    display: grid; place-items: center;
    width: 46px; height: 46px;
    border-radius: 13px;
    background: rgba(148, 35, 236, .1);
    border: 1px solid rgba(148, 35, 236, .18);
    color: var(--accent);
    font-size: 1.1rem;
    transition: transform .5s var(--ease);
}
.rm__card:hover .rm__icon { transform: rotate(-8deg) scale(1.06); }
.rm__num { font-size: .78rem; color: var(--muted); }
.rm__card h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
.rm__card p { color: var(--text-2); font-size: .94rem; }

@media (max-width: 900px) {
    /* no celular o texto vai para um painel abaixo da foto, sem cobrir o rosto e a placa */
    .rm__banner { aspect-ratio: auto; display: flex; flex-direction: column; background: #120c1e; }
    .rm__img { position: relative; inset: auto; height: auto; aspect-ratio: 4 / 3.6; object-position: 50% 30%; }
    .rm__banner::after { display: none; }
    .rm__overlay { position: relative; inset: auto; width: 100%; z-index: 2; background: #120c1e; padding: 24px 22px 26px; }
    .rm__cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .rm__banner { border-radius: 22px; }
    .rm__chips li { font-size: .74rem; padding: 6px 10px; }
    .rm__stats div { padding: 18px 10px 18px 0; }
    .rm__stats div + div { padding-left: 12px; }
    .rm__stats dd { font-size: 1.35rem; }
    .rm__stats dt { font-size: .74rem; }
}

/* =====================================================================
   Contato
===================================================================== */
.contact2__head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: clamp(40px, 6vw, 64px); }
.contact2__head .section-head__num { align-self: flex-start; }
.contact2__title { font-size: clamp(3rem, 9vw, 7rem); font-weight: 800; letter-spacing: -0.05em; line-height: .9; }
.contact2__title em, .xform__title em {
    font-style: italic; font-weight: 400;
    background: linear-gradient(100deg, var(--brand-2), var(--brand) 60%, var(--brand-3));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    padding-right: .1em;
}
.contact2__sub { color: var(--text-2); font-size: 1.1rem; max-width: 56ch; }

.contact2__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact2__aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 100px; }
.contact2__intro h3 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 10px; }
.contact2__intro p { color: var(--text-2); }

.live {
    margin-top: 8px;
    padding: 18px 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(34, 197, 94, .3);
    background: linear-gradient(135deg, rgba(34, 197, 94, .1), transparent 70%);
}
.live.is-off { border-color: rgba(245, 158, 11, .35); background: linear-gradient(135deg, rgba(245, 158, 11, .1), transparent 70%); }
.live__top { display: flex; align-items: center; gap: 12px; }
.live__top strong { font-weight: 600; }
.live__dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: x-pulse 2s infinite; flex: none; }
.live.is-off .live__dot { background: #f59e0b; animation: none; }
.live__rows { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; padding-left: 22px; font-size: .86rem; color: var(--text-2); }
.live__rows div { display: inline-flex; align-items: center; gap: 8px; }
.live__rows i { color: var(--muted); }

.methods { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.method2-wrap { position: relative; }
.method2 {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
    transition: border-color .3s, transform .4s var(--ease);
}
a.method2:hover { border-color: var(--border-2); transform: translateX(4px); }
.method2-wrap .method2 { padding-right: 104px; }
.method2__icon {
    display: grid; place-items: center; flex: none;
    width: 46px; height: 46px;
    border-radius: 13px;
    background: rgba(148, 35, 236, .14);
    color: var(--accent);
    font-size: 1.15rem;
    transition: transform .4s var(--ease);
}
a.method2:hover .method2__icon { transform: rotate(-8deg) scale(1.06); }
.method2__icon--wa { background: rgba(34, 197, 94, .14); color: #16a34a; }
.method2__icon--in { background: rgba(10, 102, 194, .14); color: #0a66c2; }
[data-theme="dark"] .method2__icon--in { color: #60a5fa; }
[data-theme="dark"] .method2__icon--wa { color: #4ade80; }
.method2__text { min-width: 0; }
.method2__text small { display: block; color: var(--muted); font-size: .76rem; }
.method2__text strong { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.method2__text em { display: block; color: var(--muted); font-size: .8rem; }
.method2__go { margin-left: auto; color: var(--muted); font-size: .85rem; transition: color .3s, transform .3s var(--ease); }
a.method2:hover .method2__go { color: var(--accent); transform: translateX(3px); }
.method2__copy {
    position: absolute; right: 52px; top: 50%; transform: translateY(-50%);
    display: grid; place-items: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--muted);
    transition: color .3s, border-color .3s;
}
.method2__copy:hover { color: var(--accent); border-color: var(--accent); }
.method2__copy.is-copied { color: #22c55e; border-color: #22c55e; }

/* ---------- formulário em etapas ---------- */
.xform-wrap { position: relative; min-width: 0; }
.xform, .xform-done {
    display: flex; flex-direction: column; gap: 18px;
    padding: clamp(22px, 4vw, 36px);
    border-radius: 28px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    box-shadow: var(--shadow);
}
.xform[hidden], .xform-done[hidden] { display: none; }
.xform__top { display: flex; flex-direction: column; gap: 18px; }
.xform__title { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; }
.xform__sub { color: var(--text-2); font-size: .92rem; margin-top: 4px; }

.steps { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.steps__item {
    flex: 1;
    display: flex; align-items: center; gap: 10px;
    font-size: .85rem;
    color: var(--muted);
    transition: color .3s;
}
.steps__n {
    display: grid; place-items: center; flex: none;
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-2);
    font-size: .75rem;
    transition: all .4s var(--ease);
}
.steps__item.is-current { color: var(--text); font-weight: 500; }
.steps__item.is-current .steps__n { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 5px rgba(148, 35, 236, .15); }
.steps__item.is-done { color: var(--text-2); cursor: pointer; }
.steps__item.is-done .steps__n { background: rgba(148, 35, 236, .12); border-color: transparent; color: var(--accent); }
.steps__bar { height: 3px; border-radius: 3px; background: var(--border); overflow: hidden; }
.steps__bar span {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--brand-3), var(--brand), var(--brand-2));
    transform-origin: 0 50%;
    transform: scaleX(var(--sp, .3333));
    transition: transform .6s var(--ease);
}

.step { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.step__legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.step__legend + * { clear: both; }
/* só esconde as etapas quando o JS está ativo (sem JS o formulário aparece inteiro) */
.xform.is-stepped .step:not(.is-active) { display: none; }
.xform.is-stepped .step.is-active { animation: x-step-in .5s var(--ease); }
.xform.is-stepped .step.is-active.from-left { animation-name: x-step-in-left; }
@keyframes x-step-in { from { opacity: 0; transform: translateX(24px); } }
@keyframes x-step-in-left { from { opacity: 0; transform: translateX(-24px); } }
.xform:not(.is-stepped) .xform__nav [data-step-next], .xform:not(.is-stepped) .xform__nav [data-step-prev], .xform:not(.is-stepped) .steps, .xform:not(.is-stepped) .steps__bar { display: none; }
.xform.is-stepped:not(.is-last) .xform__submit { display: none; }
.xform.is-stepped.is-last .xform__next { display: none; }

.field { position: relative; }
.field input, .field textarea {
    width: 100%;
    padding: 24px 40px 10px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-2);
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color .3s, box-shadow .3s, background-color .3s;
    -webkit-appearance: none;
    appearance: none;
}
.field textarea { resize: vertical; min-height: 160px; padding-bottom: 30px; padding-right: 16px; display: block; }
.field label {
    position: absolute; left: 17px; top: 17px;
    color: var(--muted);
    font-size: .95rem;
    pointer-events: none;
    transform-origin: 0 0;
    transition: transform .3s var(--ease), color .3s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.78); }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(148, 35, 236, .14); background: var(--surface-2); }
.field input:focus + label, .field textarea:focus + label { color: var(--accent); }
.field__ok { position: absolute; right: 16px; top: 22px; color: #22c55e; font-size: .8rem; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .4s var(--ease); }
.field.is-valid .field__ok { opacity: 1; transform: none; }
.field__err { display: block; max-height: 0; overflow: hidden; color: #ef4444; font-size: .78rem; transition: max-height .3s var(--ease), margin .3s; }
.field.is-invalid .field__err { max-height: 40px; margin-top: 6px; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ef4444; }
.field.is-invalid label { color: #ef4444; }
.field.shake { animation: x-shake .4s; }
@keyframes x-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.field__count { position: absolute; right: 14px; bottom: 12px; font-size: .7rem; color: var(--muted); pointer-events: none; }
.field.is-invalid .field__count { bottom: 36px; }
.xform__hint { font-size: .8rem; color: var(--muted); }

.pick__label { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.pick input, .budget input { position: absolute; opacity: 0; pointer-events: none; }
.pick__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pick label, .budget label { cursor: pointer; }
.pick span {
    display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
    height: 100%;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-2);
    font-size: .86rem;
    color: var(--text-2);
    transition: border-color .3s, background-color .3s, color .3s, transform .3s var(--ease);
}
.pick span i {
    display: grid; place-items: center;
    width: 34px; height: 34px;
    border-radius: 10px;
    background: rgba(148, 35, 236, .1);
    color: var(--accent);
    transition: transform .4s var(--ease), background-color .3s, color .3s;
}
.pick b { font-weight: 500; line-height: 1.25; }
.pick label:hover span { border-color: var(--border-2); color: var(--text); transform: translateY(-2px); }
.pick input:checked + span { border-color: var(--brand); background: rgba(148, 35, 236, .08); color: var(--text); box-shadow: 0 0 0 3px rgba(148, 35, 236, .12); }
.pick input:checked + span i { background: var(--brand); color: #fff; transform: rotate(-8deg); }
.pick input:focus-visible + span, .budget input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.budget__list { display: flex; flex-wrap: wrap; gap: 8px; }
.budget span {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-2);
    font-size: .88rem;
    color: var(--text-2);
    transition: all .3s var(--ease);
}
.budget label:hover span { border-color: var(--border-2); color: var(--text); }
.budget input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }

.summary {
    display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px dashed var(--border-2);
    font-size: .82rem;
    color: var(--text-2);
}
.summary[hidden] { display: none; }
.summary b { font-weight: 500; color: var(--text); }
.summary span { padding: 3px 10px; border-radius: 999px; background: rgba(148, 35, 236, .1); color: var(--accent); }
.summary button { margin-left: auto; color: var(--accent); font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--text-2); cursor: pointer; position: relative; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box {
    display: grid; place-items: center; flex: none;
    width: 20px; height: 20px; margin-top: 2px;
    border-radius: 6px;
    border: 1px solid var(--border-2);
    background: var(--bg-2);
    color: transparent;
    font-size: .65rem;
    transition: all .25s;
}
.check input:checked + .check__box { background: var(--brand); border-color: var(--brand); color: #fff; }
.check input:focus-visible + .check__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check.is-invalid .check__box { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .15); }

.xform__msg { padding: 12px 16px; border-radius: 12px; font-size: .9rem; }
.xform__msg[hidden] { display: none; }
.xform__msg.is-error { background: rgba(239, 68, 68, .1); color: #ef4444; border: 1px solid rgba(239, 68, 68, .3); }
.xform__msg a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

.xform__nav { display: flex; gap: 10px; padding-top: 6px; }
.xform__nav [hidden] { display: none; }
.xform__nav .xform__next, .xform__nav .xform__submit { flex: 1; padding: 17px; }
.xform__submit[disabled] { pointer-events: none; opacity: .85; }
.xform__submit.is-loading i { animation: x-fly .9s var(--ease) infinite; }
@keyframes x-fly { 50% { transform: translate(6px, -6px); opacity: 0; } 51% { transform: translate(-6px, 6px); } }

.xform-done { align-items: center; text-align: center; padding-top: 56px; padding-bottom: 56px; }
.xform-done h3 { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; }
.xform-done p { color: var(--text-2); max-width: 40ch; }
.xform-done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.xform-done__check { width: 80px; height: 80px; }
.xform-done__check circle { fill: rgba(34, 197, 94, .12); stroke: #22c55e; stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; }
.xform-done__check path { fill: none; stroke: #22c55e; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; }
.xform-done:not([hidden]) .xform-done__check circle { animation: x-draw .7s var(--ease) forwards; }
.xform-done:not([hidden]) .xform-done__check path { animation: x-draw .45s var(--ease) .55s forwards; }
@keyframes x-draw { to { stroke-dashoffset: 0; } }

@media (max-width: 980px) {
    .contact2__grid { grid-template-columns: minmax(0, 1fr); }
    .contact2__aside { position: static; }
}
@media (max-width: 560px) {
    .pick__grid { grid-template-columns: 1fr 1fr; }
    .steps__item span:not(.steps__n) { display: none; }
    .steps__item.is-current span:not(.steps__n) { display: inline; }
    .method2-wrap .method2 { padding-right: 60px; }
    .method2-wrap .method2__go { display: none; }
    .method2__copy { right: 14px; }
}

/* =====================================================================
   Abertura, transição entre páginas, cursor e easter egg
===================================================================== */

/* ---------- abertura (só na 1ª visita da sessão) ---------- */
.intro {
    position: fixed; inset: 0; z-index: 10000;
    display: grid; place-items: center;
    background: var(--bg);
    /* segurança: some sozinha mesmo se o JS falhar */
    animation: x-intro-out .8s var(--ease-in-out) 2.6s forwards;
}
.intro.is-out { animation: x-intro-out .8s var(--ease-in-out) forwards; }
.intro-seen .intro, .x-arrive .intro { display: none; }
@keyframes x-intro-out {
    to { clip-path: inset(0 0 100% 0); visibility: hidden; }
}
.intro::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(40% 40% at 50% 50%, rgba(148, 35, 236, .18), transparent 70%);
    animation: x-fade-in 1s var(--ease) both;
}
.intro__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.intro__logo {
    width: min(260px, 60vw); height: auto;
    clip-path: inset(0 100% 0 0);
    filter: blur(8px);
    animation: x-logo-in .9s var(--ease) .1s forwards;
}
.intro__logo--dark { display: none; }
[data-theme="dark"] .intro__logo--dark { display: block; }
[data-theme="dark"] .intro__logo--light { display: none; }
@keyframes x-logo-in { to { clip-path: inset(0 0 0 0); filter: blur(0); } }
.intro__bar { width: min(220px, 50vw); height: 2px; border-radius: 2px; background: var(--border); overflow: hidden; }
.intro__bar span {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--brand-3), var(--brand), var(--brand-2));
    transform-origin: 0 50%;
    transform: scaleX(0);
    animation: x-bar 1s var(--ease-in-out) .1s forwards;
}
@keyframes x-bar { to { transform: scaleX(1); } }
.intro__count { font-family: var(--f-mono); font-size: .75rem; color: var(--muted); letter-spacing: .1em; }
@keyframes x-fade-in { from { opacity: 0; } }

/* ---------- cortina entre páginas ---------- */
.curtain {
    position: fixed; inset: 0; z-index: 9999;
    display: grid; place-items: center;
    background: var(--bg);
    transform: translateY(100%);
    pointer-events: none;
}
.curtain::after {
    content: ""; width: 44px; height: 44px; border-radius: 50%;
    background: radial-gradient(circle, var(--brand) 0 30%, transparent 32%);
    box-shadow: 0 0 60px 10px var(--glow);
    opacity: 0; transition: opacity .3s .2s;
}
.x-leave .curtain { transform: none; transition: transform .5s var(--ease-in-out); pointer-events: auto; }
.x-leave .curtain::after { opacity: 1; }
.x-arrive .curtain { transform: none; animation: x-curtain-out .7s var(--ease-in-out) .1s forwards; }
@keyframes x-curtain-out { to { transform: translateY(-100%); } }

/* ---------- brilho suave que acompanha o mouse ---------- */
.xglow {
    position: fixed; top: 0; left: 0; z-index: 0;
    width: 520px; height: 520px; margin: -260px 0 0 -260px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow), transparent 65%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .6s;
}
.has-glow .xglow { opacity: .4; }

/* ---------- easter egg ---------- */
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2147482000; }
@keyframes x-hue { to { filter: hue-rotate(360deg); } }
.x-party .hero__name,
.x-party .xbtn--primary,
.x-party .read-progress span,
.x-party .nav__pill,
.x-party .about__heading em,
.x-party .footer__cta em { animation: x-hue 1.6s linear infinite; }
.x-party .hero__name .split:not(.split--grad) .ch { color: var(--brand); transition: color .4s; }
.x-party .hero__canvas { animation: x-hue 2s linear infinite; }

@media (prefers-reduced-motion: reduce) {
    .intro, .curtain, .xglow { display: none !important; }
}

/* VLibras fica escondido só durante a abertura */
body:has(> .intro) [vw] { visibility: hidden; }

/* textos em itálico com degradê: folga em cada linha quando o título quebra */
.rm__title em, .about__heading em, .contact2__title em, .footer__cta em, .xform__title em {
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* =====================================================================
   Jogo escondido: Caça aos Bugs
===================================================================== */
.gdialog {
    width: min(860px, calc(100% - 20px));
    max-height: calc(100vh - 24px);
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: transparent;
    overflow: visible;
}
.gdialog::backdrop { background: rgba(5, 4, 10, .72); backdrop-filter: blur(8px); }
.gdialog[open] { animation: x-dialogIn .45s var(--ease); }
.game {
    font-family: var(--font-body);
    color: #e9e6f2;
    border-radius: 22px;
    overflow: hidden;
    background: #110e19;
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .8), 0 0 80px -30px rgba(148, 35, 236, .6);
}
.game__bar {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px 12px 16px;
    background: rgba(255, 255, 255, .03);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.game__dots { display: flex; gap: 7px; }
.game__dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.game__dots i:nth-child(2) { background: #febc2e; }
.game__dots i:nth-child(3) { background: #28c840; }
.game__file { font-size: .76rem; color: #8f8aa3; }
.game__hud { display: flex; align-items: center; gap: 16px; margin-left: auto; font-size: .82rem; color: #b9b5c6; }
.game__hud i { color: #c084fc; margin-right: 3px; }
.game__hud b { color: #fff; font-weight: 500; }
.game__lives { display: inline-flex; gap: 4px; }
.game__lives i { color: #f43f5e; margin: 0; }
.game__close {
    display: grid; place-items: center;
    width: 32px; height: 32px;
    border: 0; border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    color: #b9b5c6;
    cursor: pointer;
}
.game__close:hover { color: #fff; background: rgba(255, 255, 255, .12); }

.game__board {
    position: relative;
    height: min(520px, calc(100vh - 120px));
    overflow: hidden;
    cursor: crosshair;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    background: radial-gradient(70% 60% at 50% 110%, rgba(148, 35, 236, .18), transparent 70%);
}
.game__board.is-slow { background: radial-gradient(70% 60% at 50% 110%, rgba(56, 189, 248, .2), transparent 70%); }
.game__board.is-slow .game__code { filter: hue-rotate(160deg); }
.game__board.is-hit { animation: x-board-hit .45s; }
@keyframes x-board-hit { 0%, 100% { box-shadow: inset 0 0 0 0 rgba(244, 63, 94, 0); } 30% { box-shadow: inset 0 0 0 4px rgba(244, 63, 94, .7), inset 0 -80px 80px -40px rgba(244, 63, 94, .35); } }

.game__code {
    margin: 0;
    padding: 16px 0;
    font-size: .82rem;
    line-height: 2.05;
    color: #cfcade;
    opacity: .55;
    white-space: pre;
    pointer-events: auto;
}
.gl { padding-left: 14px; }
.gl__n { display: inline-block; width: 26px; margin-right: 14px; text-align: right; color: #4d4960; }
.tk-k { color: #c77dff; } .tk-f { color: #7dd3fc; } .tk-s { color: #7ee2a8; } .tk-v { color: #fcd34d; } .tk-c { color: #6c6880; font-style: italic; }

.game__deploy {
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 40px;
    display: grid; place-items: center;
    border-top: 2px dashed rgba(244, 63, 94, .55);
    background: linear-gradient(0deg, rgba(244, 63, 94, .16), transparent);
    pointer-events: none;
}
.game__deploy span { font-size: .7rem; letter-spacing: .3em; color: #fb7185; }

.gbug {
    position: absolute; left: 0; top: 0;
    padding: 6px;
    border: 0; background: none;
    line-height: 1;
    cursor: crosshair;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5));
    will-change: transform;
    touch-action: manipulation;
}
.gbug.is-hurt { filter: drop-shadow(0 0 10px rgba(244, 63, 94, .9)) brightness(1.4); }
.gbug.is-dead { animation: x-squash .35s var(--ease) forwards; pointer-events: none; }
@keyframes x-squash { to { opacity: 0; scale: 1.8 .2; } }
.gbug--coffee { filter: drop-shadow(0 0 12px rgba(56, 189, 248, .7)); }

.gfloat {
    position: absolute;
    transform: translate(-50%, -50%);
    font-family: var(--f-mono);
    font-size: .85rem;
    font-weight: 600;
    color: #86efac;
    pointer-events: none;
    white-space: nowrap;
    animation: x-float-up .9s var(--ease) forwards;
}
.gfloat--miss { color: #fb7185; font-weight: 500; }
.gfloat--coffee { color: #7dd3fc; }
@keyframes x-float-up { from { opacity: 1; translate: 0 0; } to { opacity: 0; translate: 0 -42px; } }

.game__combo {
    position: absolute; right: 18px; top: 14px;
    font-size: 1rem; font-weight: 600;
    color: #fcd34d;
    opacity: 0;
    pointer-events: none;
}
.game__combo.is-on { animation: x-combo .8s var(--ease); }
@keyframes x-combo { 0% { opacity: 0; transform: scale(.6); } 20% { opacity: 1; transform: scale(1.15); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }

.game__screen {
    position: absolute; inset: 0; z-index: 5;
    display: grid; place-items: center;
    padding: 20px;
    background: rgba(12, 9, 20, .78);
    backdrop-filter: blur(4px);
    cursor: default;
}
.game__screen[hidden] { display: none; }
.game__panel { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 460px; text-align: center; animation: x-dialogIn .4s var(--ease); }
.game__panel h3 { font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 800; letter-spacing: -0.04em; color: #fff; margin: 0; }
.game__panel p { margin: 0; color: #b9b5c6; }
.game__emoji { font-size: 3rem; line-height: 1; animation: x-float 3s ease-in-out infinite; }
.game__legend { display: grid; grid-template-columns: repeat(4, auto); gap: 8px 18px; margin: 6px 0 4px; padding: 0; list-style: none; }
.game__legend li { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.game__legend span { font-size: 1.5rem; }
.game__legend small { font-size: .72rem; color: #8f8aa3; }
.game__best { font-size: .8rem; color: #c084fc !important; }
.game__rank { font-size: 1.05rem; color: #fff !important; }
.game__stats { display: flex; gap: 10px; width: 100%; }
.game__stats div { flex: 1; padding: 12px 8px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.game__stats strong { display: block; font-size: 1.3rem; color: #fff; }
.game__stats small { font-size: .7rem; color: #8f8aa3; }
.game__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.game .xbtn--ghost { color: #e9e6f2; border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .04); }

@media (max-width: 560px) {
    .game__file, .game__dots { display: none; }
    .game__hud { margin-left: 0; gap: 12px; }
    .game__close { margin-left: auto; }
    .game__code { font-size: .7rem; }
    .game__legend { grid-template-columns: repeat(2, auto); }
}

/* o reset do style.css zera a margem de tudo; as janelas precisam de margin:auto para centralizar */
.pdialog, .gdialog { margin: auto; }
.palette { margin: 14vh auto auto; }
.xbtn, .xbtn:hover { text-decoration: none; }

/* ---------- ícones de tecnologia em SVG: silhueta roxa, logo colorido no hover ---------- */
.svgi { position: relative; display: block; width: 26px; height: 26px; }
.svgi__m, .svgi__c { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .3s; }
.svgi__m {
    background: var(--accent);
    -webkit-mask-position: center; mask-position: center;
    -webkit-mask-size: contain; mask-size: contain;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.svgi__c { object-fit: contain; opacity: 0; }
.skill2:hover .svgi__m { opacity: 0; }
.skill2:hover .svgi__c { opacity: 1; }

/* ---------- link "Baixar CV" no topo ---------- */
.cv-link {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 15px 8px;
    font-size: .95rem; font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    transition: color .3s;
}
.cv-link span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.cv-link:hover { color: var(--accent); }
.cv-link:hover span { background-size: 100% 1px; }

/* ---------- estudo de caso no modal de projeto ---------- */
.case { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.case[hidden] { display: none; }
.case__item { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.case__item small { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.case__item p { margin: 0; font-size: .92rem; color: var(--text-2); }

/* celular: botões do topo empilhados (com o "Baixar CV" ficaram três) */
@media (max-width: 560px) {
    .hero__actions { flex-direction: column; align-items: stretch; width: 100%; }
    .hero__actions .xbtn { flex: none; width: 100%; }
    .hero__actions .cv-link { justify-content: center; padding: 6px; }
}
