@charset "UTF-8";

/* ==========================================================================
   Guilherme Cesar — portfolio v2 "Prisma"
   Ink background, vivid colour, kinetic type. Vanilla CSS/JS.
   Backup of the previous design: branch backup/pre-redesign-2026-10-16
   ========================================================================== */

:root {
  --ink: #08070f;
  --ink-2: #0e0c1a;
  --card: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.2);
  --text: #d9d7e8;
  --muted: #9a97b3;
  --white: #fbfaff;
  --pink: #ff4d8d;
  --violet: #8b5cf6;
  --amber: #ffb020;
  --cyan: #29d4f5;
  --lime: #c5f545;
  --grad: linear-gradient(110deg, var(--pink), var(--amber) 45%, var(--lime));
  --grad-2: linear-gradient(110deg, var(--violet), var(--pink) 50%, var(--amber));
  --display: "Syne", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mx: 50vw;
  --my: 40vh;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--ink); color: var(--text); font-family: var(--body); line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); color: var(--white); margin: 0; line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--pink); color: #fff; }
.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--pink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 300; font-weight: 700; }
.skip:focus { left: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- layers ---------- */
.mesh { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.mesh i { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.55; will-change: transform; }
.mesh i:nth-child(1) { width: 52vmax; height: 52vmax; left: -14vmax; top: -16vmax; background: #4c1d95; animation: drift1 24s ease-in-out infinite; }
.mesh i:nth-child(2) { width: 42vmax; height: 42vmax; right: -12vmax; top: 6vmax; background: #9d174d; animation: drift2 28s ease-in-out infinite; }
.mesh i:nth-child(3) { width: 36vmax; height: 36vmax; left: 30vw; bottom: -18vmax; background: #0e7490; opacity: 0.4; animation: drift1 32s ease-in-out infinite reverse; }
.mesh::after { content: ""; position: absolute; inset: 0; background: radial-gradient(380px circle at var(--mx) var(--my), rgba(255, 77, 141, 0.2), transparent 70%); }
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.09; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
#trail { position: fixed; inset: 0; z-index: 1; pointer-events: none; width: 100%; height: 100%; }
.progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 120; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); }
main, .site-footer { position: relative; z-index: 2; }
main { overflow-x: clip; }

/* ---------- header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 18px 0; transition: background 0.35s, backdrop-filter 0.35s, padding 0.35s; }
.site-header.is-scrolled { background: rgba(8, 7, 15, 0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 11px 0; border-bottom: 1px solid var(--line); }
.nav-bar { display: flex; align-items: center; gap: 24px; width: min(1180px, 100% - 48px); margin-inline: auto; }
.logo { font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.04em; color: var(--white); display: inline-flex; align-items: center; gap: 8px; }
.logo .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--grad); display: inline-block; transition: transform 0.4s var(--ease); }
.logo:hover .dot { transform: scale(1.7); }
.main-nav { margin-left: auto; display: flex; gap: 6px; }
.main-nav a { position: relative; font-size: 0.92rem; font-weight: 500; padding: 8px 14px; color: var(--text); transition: color 0.25s; }
.main-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.4s var(--ease); }
.main-nav a:hover, .main-nav a.is-active { color: var(--white); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--card); position: relative; cursor: pointer; padding: 0; margin-left: auto; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle span:nth-child(1) { top: 16px; } .nav-toggle span:nth-child(2) { top: 21px; } .nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 820px) {
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .main-nav { position: fixed; inset: 0; margin: 0; flex-direction: column; justify-content: center; align-items: center; gap: 8px; background: rgba(8, 7, 15, 0.97); opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s; z-index: 1; }
  .main-nav.open { opacity: 1; visibility: visible; }
  .main-nav a { font-family: var(--display); font-weight: 800; font-size: 2.6rem; }
  .logo { position: relative; z-index: 2; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: 0.97rem; border: 1px solid transparent; cursor: pointer; font-family: var(--body); transition: transform 0.2s var(--ease), box-shadow 0.3s, background 0.3s, color 0.3s, border-color 0.3s; will-change: transform; }
.btn-primary { background: var(--grad); color: #1a0710; box-shadow: 0 10px 40px rgba(255, 77, 141, 0.3); }
.btn-primary:hover { box-shadow: 0 12px 60px rgba(255, 77, 141, 0.55); }
.btn-ghost { color: var(--white); background: var(--card); border-color: var(--line-2); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--pink); background: rgba(255, 77, 141, 0.1); }
.arrow { display: inline-block; transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
/* legacy class names used by inner pages */
.btn-primary.legacy, .case-cta { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 999px; font-weight: 700; background: var(--grad); color: #1a0710; box-shadow: 0 10px 40px rgba(255, 77, 141, 0.3); transition: transform 0.2s var(--ease), box-shadow 0.3s; }
.case-cta:hover { box-shadow: 0 12px 60px rgba(255, 77, 141, 0.55); }

/* ---------- type helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--grad); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: sheen 8s linear infinite; }
.section { padding: clamp(80px, 11vw, 160px) 0; }
h2 { font-size: clamp(2rem, 5.6vw, 4.6rem); line-height: 1.06; }
.section h2, .projects-head h2 { margin-bottom: 22px; }
.section-intro { color: var(--muted); font-size: 1.12rem; max-width: 620px; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 80px; }
.hero .container { position: relative; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); backdrop-filter: blur(10px); font-size: 0.85rem; font-weight: 500; color: var(--white); margin-bottom: 34px; opacity: 0; animation: fadeUp 1s var(--ease) 0.2s forwards; }
.status-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(197, 245, 69, 0.6); animation: ping 1.8s infinite; }
.name { font-size: min(7.3vw, 7.6rem); line-height: 0.95; letter-spacing: -0.045em; font-weight: 800; text-transform: uppercase; user-select: none; }
.name .row { display: block; white-space: nowrap; }
.name .ch { display: inline-block; transform: translateY(105%); opacity: 0; animation: rise 1.1s var(--ease) forwards; animation-delay: calc(0.25s + var(--i) * 0.045s); }
.name .row.second { font-size: 1.78em; line-height: 0.92; padding-bottom: 0.06em; }
.name .row.second .ch { color: hsl(calc(345 + var(--t, 0) * 90) 100% 62%); }
.name .row.first { padding-top: 0.05em; overflow: visible; }
.hero-sub { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 30px; margin-top: clamp(26px, 4vw, 48px); opacity: 0; animation: fadeUp 1.1s var(--ease) 1s forwards; }
.hero-role { font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.8rem); letter-spacing: -0.03em; color: var(--white); min-height: 1.3em; }
.hero-role::before { content: "> "; color: var(--pink); }
.hero-role .cursor { display: inline-block; width: 0.5ch; height: 1em; background: var(--pink); vertical-align: -0.12em; margin-left: 4px; animation: blink 1s steps(1) infinite; }
.hero-lead { max-width: 520px; color: var(--muted); font-size: 1.08rem; margin: 12px 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue { position: absolute; left: 24px; bottom: 28px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; color: var(--muted); writing-mode: vertical-rl; display: flex; align-items: center; gap: 12px; }
.scroll-cue::after { content: ""; width: 1px; height: 54px; background: linear-gradient(var(--pink), transparent); animation: cue 2s ease-in-out infinite; transform-origin: 0 0; }
@media (max-width: 760px) { .scroll-cue { display: none; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; user-select: none; }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.big-ticker { position: relative; z-index: 2; padding: 26px 0; transform: rotate(-2deg) scale(1.04); background: var(--grad-2); margin: 20px 0; box-shadow: 0 20px 80px rgba(255, 77, 141, 0.25); }
.big-ticker .marquee-group span { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 6vw, 4.6rem); letter-spacing: -0.04em; text-transform: uppercase; color: #12071c; padding: 0 30px; white-space: nowrap; }
.big-ticker .marquee-group i { font-style: normal; font-size: clamp(1.4rem, 3vw, 2.4rem); color: rgba(18, 7, 28, 0.55); }
.banner-strip { position: relative; z-index: 2; padding: 10px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.banner-strip img { height: 130px; width: auto; max-width: none; border-radius: 18px; margin-right: 18px; opacity: 0.85; border: 1px solid var(--line); }
.banner-strip img:nth-child(even) { transform: scaleX(-1); }

/* ---------- intro statement ---------- */
.statement { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3.5vw, 2.9rem); line-height: 1.2; letter-spacing: -0.035em; color: rgba(251, 250, 255, 0.22); max-width: 1080px; }
.statement .w { transition: color 0.4s; }
.statement .w.on { color: var(--white); }
.statement strong { font-weight: 800; }

/* ---------- projects: pinned horizontal scroll ---------- */
.projects { position: relative; z-index: 2; }
.projects-head { padding-bottom: 20px; }
.hscroll { position: relative; }
.hscroll-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hscroll-track { display: flex; gap: 28px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); will-change: transform; }
.p-card { position: relative; flex: 0 0 auto; width: min(76vw, 960px); height: min(74vh, 640px); display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; border-radius: 34px; overflow: hidden; background: linear-gradient(150deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line-2); isolation: isolate; }
.p-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px circle at var(--x, 30%) var(--y, 0%), rgba(255, 77, 141, 0.16), transparent 60%); opacity: 0; transition: opacity 0.4s; }
.p-card:hover::before { opacity: 1; }
.p-info { padding: clamp(24px, 3.4vw, 46px); display: flex; flex-direction: column; min-height: 0; }
.p-num { font-family: var(--mono); font-size: 0.78rem; color: var(--amber); letter-spacing: 0.14em; margin-bottom: 14px; }
.p-info h3 { font-size: clamp(1.7rem, 3vw, 2.6rem); margin-bottom: 14px; }
.p-info p { color: var(--muted); font-size: 0.98rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.tag { font-family: var(--mono); font-size: 0.72rem; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); background: rgba(255, 255, 255, 0.04); }
.p-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.p-actions .btn { padding: 12px 22px; font-size: 0.9rem; }
.p-visual { position: relative; display: grid; place-items: center; padding: 22px; background: radial-gradient(circle at 70% 20%, rgba(139, 92, 246, 0.35), transparent 60%), rgba(0, 0, 0, 0.25); border-left: 1px solid var(--line); overflow: hidden; }
.p-card.alt .p-visual { background: radial-gradient(circle at 30% 20%, rgba(41, 212, 245, 0.3), transparent 60%), rgba(0, 0, 0, 0.25); }
.p-card.warm .p-visual { background: radial-gradient(circle at 60% 30%, rgba(255, 176, 32, 0.3), transparent 60%), rgba(0, 0, 0, 0.25); }
.shots { position: relative; width: 100%; aspect-ratio: 900 / 760; }
.shots img { position: absolute; width: 78%; border-radius: 12px; border: 1px solid var(--line-2); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55); transition: transform 0.6s var(--ease); }
.shots img:nth-child(1) { left: 0; top: 0; transform: rotate(-5deg); }
.shots img:nth-child(2) { right: 0; bottom: 0; transform: rotate(4deg); }
.p-card:hover .shots img:nth-child(1) { transform: rotate(-8deg) translate(-12px, -8px); }
.p-card:hover .shots img:nth-child(2) { transform: rotate(7deg) translate(12px, 8px); }
.big-icon { font-size: clamp(5rem, 11vw, 9rem); filter: drop-shadow(0 20px 50px rgba(255, 77, 141, 0.45)); animation: bob 5s ease-in-out infinite; }
.price-chip { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--amber); margin-bottom: 8px; }

/* garimpeiro calculator */
.calc { width: 100%; max-width: 340px; padding: 20px; border-radius: 22px; background: rgba(10, 8, 20, 0.82); border: 1px solid var(--line-2); backdrop-filter: blur(10px); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55); font-size: 0.82rem; }
.calc-title { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; display: flex; justify-content: space-between; }
.calc label { display: flex; justify-content: space-between; color: var(--muted); margin: 10px 0 4px; }
.calc label b { color: var(--white); font-family: var(--mono); font-weight: 500; }
.calc input[type=range] { width: 100%; accent-color: var(--pink); height: 22px; }
.calc-out { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.calc-row { display: flex; justify-content: space-between; color: var(--muted); padding: 2px 0; }
.calc-row b { font-family: var(--mono); font-weight: 500; color: var(--text); }
.calc-profit { margin-top: 10px; padding: 12px 14px; border-radius: 14px; display: flex; justify-content: space-between; align-items: baseline; font-family: var(--display); font-weight: 800; font-size: 1.1rem; background: rgba(197, 245, 69, 0.12); color: var(--lime); border: 1px solid rgba(197, 245, 69, 0.3); transition: background 0.3s, color 0.3s, border-color 0.3s; }
.calc-profit.neg { background: rgba(255, 77, 141, 0.12); color: var(--pink); border-color: rgba(255, 77, 141, 0.35); }
.calc-profit span { font-size: 1.35rem; }
.calc-note { font-size: 0.68rem; color: var(--muted); margin: 10px 0 0; line-height: 1.4; }

@media (max-width: 960px) {
  .hscroll-sticky { position: static; height: auto; display: block; overflow: visible; }
  .hscroll-track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-width: none; }
  .hscroll-track::-webkit-scrollbar { display: none; }
  .p-card { scroll-snap-align: center; width: 86vw; height: auto; grid-template-columns: 1fr; }
  .p-visual { border-left: 0; border-top: 1px solid var(--line); min-height: 280px; order: -1; }
  .p-info { padding: 24px; }
  .p-actions { margin-top: 12px; }
  .shots { max-width: 360px; }
}

/* ---------- journey ---------- */
.journey { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(34px, 6vw, 90px); align-items: start; }
.portrait { position: sticky; top: 110px; }
.portrait-frame { position: relative; border-radius: 30px; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line-2); transform-style: preserve-3d; transition: transform 0.25s ease-out; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 120px rgba(139, 92, 246, 0.25); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.03); }
.portrait-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(139, 92, 246, 0.25), transparent 40%, rgba(255, 77, 141, 0.28)); mix-blend-mode: soft-light; pointer-events: none; }
.portrait-tag { position: absolute; left: -14px; bottom: 26px; z-index: 2; padding: 10px 18px; border-radius: 14px; background: var(--grad); color: #1a0710; font-weight: 800; font-family: var(--display); font-size: 1.1rem; transform: rotate(-4deg); box-shadow: 0 14px 40px rgba(255, 77, 141, 0.4); }
.timeline { position: relative; padding-left: 38px; --p: 0; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline::after { content: ""; position: absolute; left: 7px; top: 8px; width: 2px; height: calc((100% - 16px) * var(--p)); background: var(--grad); box-shadow: 0 0 14px var(--pink); }
.t-item { position: relative; padding-bottom: 44px; }
.t-item:last-child { padding-bottom: 0; }
.t-item::before { content: ""; position: absolute; left: -38px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 2px solid var(--line-2); transition: border-color 0.5s, background 0.5s, box-shadow 0.5s; }
.t-item.is-visible::before { border-color: var(--pink); background: var(--pink); box-shadow: 0 0 20px var(--pink); }
.t-when { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.12em; color: var(--amber); text-transform: uppercase; }
.t-item h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin: 6px 0 8px; letter-spacing: -0.03em; }
.t-item p { color: var(--muted); }
@media (max-width: 900px) { .journey { grid-template-columns: 1fr; } .portrait { position: relative; top: 0; max-width: 340px; } }

/* ---------- terminal ---------- */
.terminal { border-radius: 20px; overflow: hidden; background: #0b0a14; border: 1px solid var(--line-2); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5); }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; background: rgba(255, 255, 255, 0.05); border-bottom: 1px solid var(--line); }
.term-bar i { width: 12px; height: 12px; border-radius: 50%; }
.term-bar i:nth-child(1) { background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 10px; font-family: var(--mono); font-size: 0.76rem; color: var(--muted); }
.term-body { padding: 24px 26px; font-family: var(--mono); font-size: clamp(0.8rem, 1.6vw, 0.95rem); line-height: 1.9; min-height: 330px; white-space: pre-wrap; word-break: break-word; color: var(--text); }
.term-body .p { color: var(--lime); }
.term-body .k { color: var(--cyan); }
.term-body .v { color: var(--amber); }
.term-body .c { color: var(--muted); }
.term-body .caret { display: inline-block; width: 0.6ch; height: 1.1em; background: var(--pink); vertical-align: -0.2em; animation: blink 1s steps(1) infinite; }
.term-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
@media (max-width: 900px) { .term-wrap { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-weight: 600; font-size: 0.9rem; color: var(--white); transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s, color 0.3s; cursor: default; }
.chip:hover { transform: translateY(-4px) rotate(-2deg); background: var(--pink); border-color: var(--pink); color: #1a0710; }

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact .eyebrow { justify-content: center; }
.contact h2 { font-size: clamp(2.2rem, 7vw, 6rem); }
.mail-big { display: inline-block; font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 5.4vw, 4.2rem); letter-spacing: -0.04em; margin: 16px 0 10px; color: var(--white); background: linear-gradient(90deg, var(--pink), var(--amber)) left bottom / 0% 4px no-repeat; transition: background-size 0.6s var(--ease); cursor: pointer; word-break: break-all; padding-bottom: 8px; border: 0; background-color: transparent; }
.mail-big:hover { background-size: 100% 4px; }
.copy-hint { display: block; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); margin-bottom: 36px; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.toast { position: fixed; left: 50%; bottom: 34px; translate: -50% 30px; z-index: 200; padding: 13px 24px; border-radius: 999px; background: var(--white); color: #1a0710; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity 0.3s, translate 0.4s var(--ease); }
.toast.show { opacity: 1; translate: -50% 0; }
#confetti { position: fixed; inset: 0; z-index: 180; pointer-events: none; width: 100%; height: 100%; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 44px; background: rgba(5, 4, 10, 0.6); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 12px 30px; align-items: center; }
.site-footer a { color: var(--muted); font-size: 0.92rem; transition: color 0.25s; }
.site-footer a:hover { color: var(--pink); }
.site-footer p { margin: 0 0 0 auto; color: var(--muted); font-family: var(--mono); font-size: 0.8rem; }

/* ---------- inner pages ---------- */
main.container { padding: 130px 0 90px; max-width: 980px; }
.breadcrumb { display: inline-flex; gap: 8px; align-items: center; font-family: var(--mono); font-size: 0.82rem; color: var(--muted); padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); margin-bottom: 30px; transition: color 0.25s, border-color 0.25s, transform 0.25s var(--ease); }
.breadcrumb:hover { color: var(--pink); border-color: var(--pink); transform: translateX(-4px); }
.case-header h1, main.container > .hero h1 { font-size: clamp(2.2rem, 7vw, 5rem); margin-bottom: 22px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.06em; }
main.container > .hero { min-height: 0; display: block; padding: 0 0 26px; }
.case-header > p { color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 0.78rem; color: var(--lime); padding: 6px 14px; border-radius: 999px; background: rgba(197, 245, 69, 0.08); border: 1px solid rgba(197, 245, 69, 0.25); margin: 0 0 18px; line-height: 1.5; }
.case-section { padding: 30px 34px; margin-bottom: 18px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); transition: border-color 0.4s, background 0.4s; }
.case-section:hover { border-color: rgba(255, 77, 141, 0.4); background: rgba(255, 255, 255, 0.065); }
.case-section p:last-child { margin-bottom: 0; }
.case-label { font-family: var(--mono); font-size: 0.76rem !important; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber) !important; margin-bottom: 14px !important; display: flex; align-items: center; gap: 10px; }
.case-label::before { content: ""; width: 24px; height: 2px; background: var(--grad); }
.about-layout { display: grid; grid-template-columns: 340px 1fr; gap: clamp(26px, 5vw, 56px); align-items: center; padding: 30px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); }
.profile-photo { width: 100%; border-radius: 22px; border: 1px solid var(--line-2); box-shadow: 0 0 90px rgba(139, 92, 246, 0.3); }
.about-text p { font-size: 1.08rem; }
@media (max-width: 760px) { .about-layout { grid-template-columns: 1fr; padding: 20px; } .profile-photo { max-width: 300px; margin-inline: auto; } }
.breadcrumb + .case-header { margin-top: 4px; }

/* ---------- keyframes ---------- */
@keyframes rise { to { transform: none; opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes sheen { to { background-position: -200% 0; } }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(197, 245, 69, 0); } 100% { box-shadow: 0 0 0 0 rgba(197, 245, 69, 0); } }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-16px) rotate(3deg); } }
@keyframes drift1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(8vmax, 6vmax); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-8vmax, 5vmax); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .name .ch, .status-pill, .hero-sub { opacity: 1; transform: none; }
  .statement { color: var(--white); }
  .marquee { overflow-x: auto; }
  .hscroll-sticky { position: static; height: auto; display: block; overflow: visible; }
  .hscroll-track { overflow-x: auto; }
}

.name .ch.ready { animation: none; opacity: 1; transform: none; transition: transform 0.28s var(--ease); }

/* curriculo */
.cv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 26px; }
.cv-actions .case-cta { border: 0; cursor: pointer; font-family: var(--body); font-size: 0.97rem; }
.cv-hint { color: var(--muted); font-size: 0.85rem; }
.cv-sheet { padding: clamp(24px, 5vw, 56px); border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.cv-head h1 { font-size: clamp(2rem, 6vw, 3.4rem); margin-bottom: 8px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.06em; }
.cv-role { font-family: var(--display); font-weight: 700; color: var(--white); font-size: 1.15rem; margin: 0 0 6px; }
.cv-contact { color: var(--muted); font-size: 0.92rem; margin-bottom: 28px; }
.cv-sheet h2 { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin: 26px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.cv-sheet ul { margin: 0; padding-left: 20px; } .cv-sheet li { margin-bottom: 10px; }
.cv-sheet strong { color: var(--white); }
@media print {
  @page { margin: 16mm; }
  .no-print, .mesh, #trail, .progress, .site-header, .skip, body::after { display: none !important; }
  body, main { background: #fff !important; color: #111 !important; overflow: visible; }
  main.container { padding: 0 !important; max-width: none; }
  .cv-sheet { border: 0; background: none; padding: 0; }
  .cv-sheet, .cv-sheet p, .cv-sheet li, .cv-contact { color: #111 !important; }
  .cv-sheet strong { color: #000 !important; }
  .cv-head h1 { background: none; -webkit-text-fill-color: #111; color: #111; }
  .cv-role { color: #333; } .cv-sheet h2 { color: #555; border-color: #ccc; }
}

.cv-tech { color: var(--muted); font-size: 0.85em; }
.cv-contact a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.cv-contact a:hover { color: var(--pink); }
@media print { .cv-tech, .cv-contact a { color: #555 !important; } .cv-sheet li { break-inside: avoid; } }
@media print { .cv-sheet { font-size: 9.6pt; line-height: 1.38; } .cv-head h1 { font-size: 22pt; } .cv-role { font-size: 11pt; } .cv-sheet li { margin-bottom: 5px; } .cv-sheet h2 { margin: 14px 0 6px; } }
