/* Alternative design (/tema_alternativo).
   Layout: everything sits in cells of a thin-line grid, like graph paper. The name fills the screen width,
   labels are lowercase monospace ending in "/", and green is the only action color. One light look, by choice. */
:root {
  --bg: #e7ebe8;          /* light gray with a hint of green */
  --paper: #eef1ef;       /* cells that stand out a little */
  --ink: #0b0f0c;
  --muted: #4d5751;
  --line: rgba(11, 15, 12, .16);
  --green: #0f766e;          /* theme color: teal (petróleo) */
  --green-hi: #2dd4bf;
  --green-soft: #a5f3e8;
  --black: #000;
  /* the layers revealed under a button on hover, and the pixel colors */
  --p1: #a855f7; --p2: #ff8a3d; --p3: #ff4fd8; --p4: #3da5ff;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --gutter: clamp(16px, 2vw, 24px);
  /* like githubuniverse.com: the content stops at 1440px and stays centered; only the black bar and the lines go edge to edge */
  --max: max(1440px, 75%); /* 75% of the screen (12.5% free on each side), never narrower than 1440px */
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2));
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.06rem/1.6 var(--display); font-stretch: 100%; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol { margin: 0; }
a { color: inherit; }
strong { font-weight: 650; }
:focus-visible { outline: 2.5px solid var(--green); outline-offset: 2px; }
button { font: inherit; color: inherit; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--black); color: #fff; font: 500 .85rem var(--mono); text-decoration: none; }
.skip:focus { top: 12px; }

/* ── Black bar ── */
.bar { display: flex; align-items: center; gap: 24px; padding: 10px var(--gutter); background: var(--black); color: #fff; font: 400 .88rem var(--mono); }
.bar-clock { color: #9aa39d; }
#clock { color: var(--green-hi); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.bar-link { margin-left: auto; color: #fff; text-decoration: none; opacity: .85; }
.bar-link:hover { opacity: 1; color: var(--green-hi); }

/* ── Navigation cells ── */
.nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: stretch; height: 64px; padding-inline: max(0px, calc((100% - var(--max)) / 2)); background: var(--bg); border-bottom: 1px solid var(--line); }
.nav > * { display: flex; align-items: flex-end; padding: 0 18px 14px; border-right: 1px solid var(--line); text-decoration: none; font: 500 .98rem var(--display); transition: background-color .2s; }
.nav-mark { gap: 4px; align-items: center; padding: 0 18px; font: 900 1.45rem/1 var(--display); font-stretch: 125%; letter-spacing: -.02em; }
.nav-mark i { width: 9px; height: 9px; background: var(--green); margin-top: -12px; }
.nav-mark:hover { background: var(--paper); }
.nav-cell { min-width: 140px; }
.nav-cell:hover { background: var(--paper); }
/* where you are: a little pixel UFO on the menu's bottom line that slides through each section's cell as you scroll it
   (halfway through "Trajetória" = the UFO halfway under "Trajetória"), pulling a teal line behind it (js/alt.js).
   Its middle (the rim) sits right on the line, so the line runs into it. */
.nav > .nav-dot, .nav > .nav-trace { position: absolute; left: 0; z-index: 2; padding: 0; border: 0; min-width: 0; pointer-events: none; opacity: 0; transition: opacity .25s; }
.nav > .nav-dot { bottom: -9px; width: 40px; height: 18px; margin-left: -20px; line-height: 0; }
.nav-dot svg { display: block; animation: ufo-bob 1.6s steps(1) infinite; }
.ufo-a { fill: #ffc400; animation: ufo-a .8s steps(1) infinite; }
.ufo-b { fill: #ff2e74; animation: ufo-b .8s steps(1) infinite; }
@keyframes ufo-a { 0% { fill: #ffc400; } 50% { fill: #fff3b0; } }
@keyframes ufo-b { 0% { fill: #ffd0df; } 50% { fill: #ff2e74; } }
@keyframes ufo-bob { 0% { translate: 0 0; } 50% { translate: 0 -1px; } }
@media (prefers-reduced-motion: reduce) { .nav-dot svg, .ufo-a, .ufo-b { animation: none; } }
.nav-trace { bottom: -1px; height: 3px; width: 0; background: var(--green); }
.nav-dot.show, .nav-trace.show { opacity: 1; }
.nav-fill { flex: 1; padding: 0; }
.nav-lang { min-width: 72px; border: 0; border-right: 1px solid var(--line); background: none; cursor: pointer; justify-content: center; font: 500 .9rem var(--mono); }
.nav-go { min-width: 180px; gap: 8px; border-right: 0; background: var(--green); color: #fff; font-weight: 600; }
.nav-go:hover { background: color-mix(in srgb, var(--green) 82%, #000); }
@media (min-width: 1489px) { .nav > :first-child { border-left: 1px solid var(--line); } .nav-go { border-right: 1px solid var(--line); } }

/* ── Squares with symbols: one canvas, drawn only while some square is lit ── */
#trail { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; } /* behind the content: the text always stays on top */
.bar, main, .foot { position: relative; z-index: 1; }

/* ── The name: big, with the facts beside it ── */
.name { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 26px var(--edge) 22px; border-bottom: 1px solid var(--line); }
.name h1 { font: 900 clamp(2.9rem, 7vw, 6.6rem)/.88 var(--display); font-stretch: 125%; letter-spacing: -.025em; }
.name h1 span { display: inline-block; white-space: nowrap; }
.name-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding-bottom: 6px; font: 400 .9rem/1.5 var(--mono); color: var(--muted); text-align: right; }
.cursor { display: inline-block; width: .16em; height: .72em; margin-left: .06em; background: var(--green); vertical-align: baseline; animation: blink 1.1s steps(1) infinite; }
.sq { display: inline-block; width: .6em; height: .6em; background: var(--green); vertical-align: -.02em; }
@keyframes blink { 50% { opacity: 0; } }

/* ── Frames and cells: the graph-paper grid ── */
.frame { margin-inline: var(--edge); border: 1px solid var(--line); border-top: 0; }
.cell { padding: 24px; }
.mono-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; font: 400 .9rem/1.5 var(--mono); color: var(--ink); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border: 1px solid var(--line); font: 500 .76rem/1.5 var(--mono); color: var(--muted); white-space: nowrap; }
.tag-live { border-color: color-mix(in srgb, var(--green) 45%, transparent); color: var(--green); background: color-mix(in srgb, var(--green) 9%, transparent); }
.tag-live::before { content: ""; width: 6px; height: 6px; background: var(--green); }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; }
.hero-left { display: flex; flex-direction: column; justify-content: space-between; gap: 64px; min-height: 280px; border-right: 1px solid var(--line); }
.hero-tag { font: 500 clamp(2.4rem, 4.6vw, 4rem)/1 var(--display); letter-spacing: -.03em; }
.hero-right { display: flex; flex-direction: column; }
.hero-links { display: flex; flex-wrap: wrap; gap: 10px; border-bottom: 1px solid var(--line); }
.hero-links .btn { gap: 10px; }
/* contact buttons in their brand colors */
.brand { color: #fff; }
.brand .ico { color: #fff; }
.c-in { background: #0a66c2; }
.c-wa { background: #1c9e52; }
.c-gh { background: #24292f; }
.c-cv { background: var(--green); }
.c-mail { background: #d93025; }
.brand:hover, .brand:focus-visible { color: #fff; filter: brightness(1.08); }
/* a short blink when KK brings you here */
.hero-links.flash .brand { animation: contact-flash .9s ease-out; }
.hero-links.flash .brand:nth-child(2) { animation-delay: .06s; } .hero-links.flash .brand:nth-child(3) { animation-delay: .12s; }
.hero-links.flash .brand:nth-child(4) { animation-delay: .18s; } .hero-links.flash .brand:nth-child(5) { animation-delay: .24s; }
@keyframes contact-flash { 0%, 100% { transform: none; } 35% { transform: translateY(-6px) scale(1.06); } 65% { transform: translateY(1px); } }
.hero-lead { font-size: clamp(1.2rem, 1.9vw, 1.65rem); line-height: 1.3; letter-spacing: -.01em; border-bottom: 1px solid var(--line); flex: 1; }
.cell-cta { padding: 24px; }

/* ── Buttons: on hover the button lifts and colored layers show underneath ── */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; border: 0; border-radius: 6px; cursor: pointer;
  font: 600 1rem var(--display); text-decoration: none; transition: transform .22s cubic-bezier(.2, .9, .3, 1.3), box-shadow .22s cubic-bezier(.2, .9, .3, 1.3); }
.btn:hover, .btn:focus-visible { transform: translate(4px, -6px);
  box-shadow: -1px 2px 0 var(--p4), -2px 4px 0 var(--p3), -3px 6px 0 var(--p2), -4px 8px 0 var(--p1); }
.btn:active { transform: translate(1px, -1px); box-shadow: -1px 1px 0 var(--p1); transition-duration: .08s; }
.btn-green { background: var(--green); color: #fff; }
.btn-wide { display: flex; width: 100%; min-height: 76px; align-items: flex-end; font-size: 1.05rem; }
.btn-line { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-line:hover, .btn-line:focus-visible { background: #fff; box-shadow: inset 0 0 0 1px var(--ink), -1px 2px 0 var(--p4), -2px 4px 0 var(--p3), -3px 6px 0 var(--p2), -4px 8px 0 var(--p1); }
.btn-sm { padding: 8px 12px; font-size: .86rem; }

/* icons (GitHub, LinkedIn, WhatsApp, e-mail, résumé) next to their labels */
.ico { width: 1.05em; height: 1.05em; flex: none; }
.btn-l { display: inline-flex; align-items: center; gap: 10px; }
.nav-go .ico { width: 18px; height: 18px; }
.ck { display: inline-flex; align-items: center; gap: 9px; }
.ck .ico { width: 16px; height: 16px; color: var(--ink); }
a.crow:hover .ck .ico { color: #fff; }
.foot-row a { display: inline-flex; align-items: center; gap: 9px; }
.t-go .btn { justify-content: flex-start; gap: 8px; }

/* ── Agora: a slim row of cells ── */
.now { display: grid; grid-template-columns: 200px repeat(4, minmax(0, 1fr)); }
.now-head { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; border-right: 1px solid var(--line); font: 400 .85rem var(--mono); color: var(--muted); }
.now-head strong { font: 500 1.6rem/1 var(--display); letter-spacing: -.03em; color: var(--ink); }
.now-head strong::after { content: ""; display: inline-block; width: .32em; height: .32em; margin-left: .18em; background: var(--green); vertical-align: .08em; }
.now-list { display: contents; list-style: none; }
.now-list li { font-size: .95rem; line-height: 1.45; border-right: 1px solid var(--line); }
.now-list li:last-child { border-right: 0; }
.now-list li::before { content: ""; display: block; width: 7px; height: 7px; margin-bottom: 12px; background: var(--ink); }

/* ── Sections ── */
.sec { padding-top: clamp(56px, 8vw, 104px); }
.sec-head { display: flex; flex-direction: column; justify-content: space-between; gap: 56px; min-height: 220px; padding: 24px; border-top: 1px solid var(--line); }
.sec-title { padding: 0; font: 500 clamp(2.4rem, 5vw, 4.4rem)/1 var(--display); letter-spacing: -.035em;  }
.sec-head + .frame { border-top: 0; }

/* "sobre/" in short: one cell per fact, logo on top (what a recruiter checks first) */
.summary { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fact { display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact:nth-child(3n) { border-right: 0; }
.fact:nth-last-child(-n + 3) { border-bottom: 0; }
.fact-logo { align-self: flex-start; height: 40px; width: auto; max-width: 72px; margin-bottom: 16px; object-fit: contain; object-position: left center; }
.fact-shot { width: 64px; object-fit: cover; object-position: left top; box-shadow: 0 0 0 1px var(--line); }
.fact-badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 0 10px; height: 40px; box-shadow: inset 0 0 0 1.5px var(--ink); font: 600 .95rem var(--mono); }
.fact-badge i { width: 1px; height: 18px; background: var(--ink); }
.fact-open { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; width: 40px; height: 40px; box-shadow: inset 0 0 0 1.5px var(--green); }
.fact-open i { width: 14px; height: 14px; background: var(--green); animation: blink 1.6s steps(1) infinite; }
.fact-k { font: 400 .82rem var(--mono); color: var(--muted); }
.fact strong { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.fact-v { font-size: .93rem; color: var(--muted); }
.summary + .split { border-top: 1px solid var(--line); }

/* small technology logos next to their names */
.logo { width: 16px; height: 16px; flex: none; }
.stack { display: inline-flex; align-items: center; gap: 6px; }
.skill-col li { align-items: center; }
.skill-col li .logo { margin-left: -4px; }
.split { display: block; }
.split .prose { display: block; columns: 2 320px; column-gap: 56px; }
.split .prose p { break-inside: avoid; margin-bottom: 16px; }
.statement { font: 600 clamp(1.6rem, 3vw, 2.6rem)/1.1 var(--display); letter-spacing: -.03em; border-right: 1px solid var(--line); }
.prose { display: flex; flex-direction: column; gap: 16px; color: #1d2420; }

/* tabs (filter the agenda): the active one has a filled square and a green line on top */
.tabs { display: flex; }
.tab { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-width: 200px; padding: 22px 24px; border: 0; border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 4%, transparent); cursor: pointer; font: 500 1rem var(--display); box-shadow: inset 0 2px 0 transparent; transition: background-color .2s, box-shadow .2s; }
.tab i { width: 9px; height: 9px; border: 1.5px solid var(--muted); border-radius: 50%; transition: background-color .2s, border-color .2s; }
.tab:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.tab[aria-selected="true"] { background: var(--bg); box-shadow: inset 0 2px 0 var(--green); }
.tab[aria-selected="true"] i { background: var(--green); border-color: var(--green); }
.tabs-fill { flex: 1; }

/* agenda: a big label on the left, the slot on the right */
.agenda { list-style: none; padding: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto; gap: 24px; padding: 28px 24px; border-bottom: 1px solid var(--line); transition: background-color .2s, opacity .3s; }
.row:last-child { border-bottom: 0; }
.row:hover { background: color-mix(in srgb, var(--paper) 70%, transparent); }
.row[hidden] { display: none; }
.day { font: 500 clamp(1.6rem, 2.6vw, 2.3rem)/1.05 var(--display); letter-spacing: -.03em; }
.slot { display: flex; flex-direction: column; gap: 6px; }
.when { font: 500 .9rem/1.6 var(--mono); color: #8a7400; }
.row h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.row p:not(.day) { color: var(--muted); }
.row .tag { justify-self: end; align-self: start; }

/* featured project */
.feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
/* the screenshot fills its cell edge to edge, with the label over it in the corner (like the photos on githubuniverse.com) */
.feature-shot { position: relative; border-right: 1px solid var(--line); min-height: 340px; }
.cmp { position: absolute; inset: 0; overflow: hidden; background: #fff; --pos: 0%; }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cmp-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); pointer-events: none; }
.cmp-knob { position: absolute; top: 50%; left: var(--pos); z-index: 1; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; box-shadow: 0 0 0 3px #fff, 0 6px 18px rgba(0, 0, 0, .3); pointer-events: none; transition: transform .2s; }
.cmp-knob svg { width: 20px; height: 20px; }
.cmp:hover .cmp-knob { transform: scale(1.08); }
.cmp-tag { position: absolute; top: 10px; padding: 2px 8px; background: var(--black); color: #fff; font: 500 .74rem var(--mono); pointer-events: none; }
.cmp-tag.before { left: 10px; } .cmp-tag.after { right: 10px; background: var(--green); }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.shot-cap { position: absolute; left: 16px; bottom: 14px; z-index: 1; padding: 3px 8px; background: rgba(0, 0, 0, .72); color: #fff; font: 400 .82rem var(--mono); pointer-events: none; }
.shot-cap::after { content: ""; display: inline-block; width: .55em; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: #fff; animation: blink 1.1s steps(1) infinite; }
.feature-info { display: flex; flex-direction: column; }
.feature-info > .cell { border-bottom: 1px solid var(--line); }
.feature-info > .cell:last-child { border-bottom: 0; margin-top: auto; }
.feature-title { margin: 16px 0 10px; font: 700 clamp(1.7rem, 2.6vw, 2.3rem)/1.05 var(--display); font-stretch: 112%; letter-spacing: -.03em; }
.feats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; }
.feats li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 24px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.feats li:nth-child(odd) { border-right: 1px solid var(--line); }
.feats li:nth-last-child(-n + 2) { border-bottom: 0; }
.feats b { font-weight: 500; }
.ssw { font: 500 .7rem var(--mono); color: var(--green); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 22px; font: 400 .88rem var(--mono); color: var(--muted); }
.facts b { color: var(--ink); font-weight: 600; }

/* three project cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--line); transition: background-color .2s; }
.card:last-child { border-right: 0; }
.card:hover { background: var(--paper); }
.card h3 { font: 650 1.45rem/1.15 var(--display); letter-spacing: -.02em; }
.card p:not(.mono-row) { color: var(--muted); font-size: .98rem; }
.card .btn { margin-top: auto; align-self: flex-start; }
.more-gh { padding: 16px var(--edge) 0; font: 400 .86rem var(--mono); color: var(--muted); }

/* skills */
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.skill-col { border-right: 1px solid var(--line); }
.skill-col:last-child { border-right: 0; }
.skill-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); font: 500 .92rem var(--mono); }
.skill-gap { margin-top: 26px; }
.skill-col ul { list-style: none; padding: 0; counter-reset: s; }
.skill-col li { counter-increment: s; display: flex; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 1.02rem; }
.skill-col li:last-child { border-bottom: 0; }
.skill-col li::before { content: counter(s, decimal-leading-zero); font: 400 .78rem/1.9 var(--mono); color: var(--muted); }

/* ── Terminal chat ── */
.term { background: #0a0d0b; color: #d7e0da; border-color: var(--ink); font: 400 .95rem/1.6 var(--mono); }
.term-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 18px; border-bottom: 1px solid #222a25; font-size: .8rem; color: #7f8a83; }
.term-out { height: clamp(260px, 42vh, 440px); overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; scrollbar-color: #2b332e transparent; }
/* what the visitor typed: a small bubble on the right, like a normal chat */
.t-me { align-self: flex-end; max-width: 85%; padding: 8px 12px; border-radius: 12px 12px 4px 12px; background: #1b2a24; color: #fff; overflow-wrap: anywhere; }
.t-ai { color: #c9d3cc; white-space: normal; }
.t-ai strong { color: #fff; }
.t-ai.wait::after { content: "▍"; color: var(--green-hi); animation: blink 1s steps(1) infinite; }
.t-ai.err { color: #ffb4a8; }
.t-go { display: flex; flex-wrap: wrap; gap: 10px; margin-top: -4px; }
.t-go .btn { padding: 9px 12px; font: 600 .86rem var(--display); }
.t-go .btn-line { background: #151b17; color: #e5ece7; box-shadow: inset 0 0 0 1px #2c3530; }
.term-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 14px; }
.term-chips:empty { display: none; }
.term-chips button { border: 1px solid #2c3530; background: none; color: #aeb9b2; padding: 5px 10px; cursor: pointer; font: 400 .82rem var(--mono); }
.term-chips button:hover { border-color: var(--green-hi); color: #fff; }
.term-in { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 18px; border-top: 1px solid #222a25; }
.term-in label { color: var(--green-hi); }
.term-in input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: inherit; padding: 8px 0; }
.term-in input::placeholder { color: #66716a; }
.term-in .btn { padding: 10px 14px; }
.term-in .btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }

/* ── Invitation: colored tiles + heading + button ── */
.invite { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; aspect-ratio: 3 / 2; border-right: 1px solid var(--line); overflow: hidden; }
.tile { position: relative; display: grid; place-items: center; overflow: hidden; font: 800 clamp(5rem, 12vw, 11rem)/1 var(--mono); }
.t-brace { background: var(--green); color: #bba00a; }
.t-blue { background: #1f8fff; }
.t-cross { background: var(--green); }
.t-cross i { position: absolute; width: 22%; height: 22%; background: #ff7be5; }
.t-cross i:nth-child(1) { left: 39%; top: 17%; } .t-cross i:nth-child(2) { left: 17%; top: 39%; } .t-cross i:nth-child(3) { left: 39%; top: 39%; background: #c05200; }
.t-cross i:nth-child(4) { left: 61%; top: 39%; } .t-cross i:nth-child(5) { left: 39%; top: 61%; }
.t-blue2 { background: #ae85ff; color: #583af7; }
.t-dots { background: #1f8fff; background-image: radial-gradient(#583af7 22%, transparent 24%); background-size: 26% 26%; background-position: center; }
.t-prompt { background: var(--green-soft); color: var(--green); justify-items: start; padding-left: 14%; }
.t-prompt b { position: absolute; left: 50%; bottom: 26%; width: 34%; height: 9%; background: var(--green); animation: blink 1.1s steps(1) infinite; }
.invite-text { display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.invite-title { font: 500 clamp(2rem, 3.4vw, 3.1rem)/1.02 var(--display); letter-spacing: -.035em; overflow-wrap: anywhere; }
.invite-text p { color: var(--muted); font-size: 1.05rem; }

/* ── The assistant from anywhere: pixel-art bubble + floating terminal ── */
.ai-bubble { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 60px; height: 60px; padding: 0; border: 0; border-radius: 6px; cursor: pointer;
  display: grid; place-items: center; background: var(--green); transition: transform .22s cubic-bezier(.2, .9, .3, 1.3), box-shadow .22s cubic-bezier(.2, .9, .3, 1.3); }
.ai-bubble[hidden] { display: none; }
.ai-bubble svg { width: 32px; height: auto; }
.ai-bubble:hover, .ai-bubble:focus-visible { transform: translate(3px, -5px); box-shadow: -1px 2px 0 var(--p4), -2px 4px 0 var(--p3), -3px 6px 0 var(--p2), -4px 8px 0 var(--p1); }
/* the three dots "type", one after the other */
.ai-bubble .d1, .ai-bubble .d2, .ai-bubble .d3 { animation: ai-dot 1.4s steps(1) infinite; }
.ai-bubble .d2 { animation-delay: .2s; } .ai-bubble .d3 { animation-delay: .4s; }
@keyframes ai-dot { 0%, 60%, 100% { fill: var(--green); } 20%, 40% { fill: #fff; } }
.ai-unread { position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; background: #f73678; box-shadow: 0 0 0 2px var(--bg); display: none; }
.ai-bubble.unread .ai-unread { display: block; }
.ai-float { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 45; width: min(460px, calc(100vw - 32px)); height: min(600px, calc(100vh - 110px)); }
.ai-float[hidden] { display: none; }
.ai-float .term { height: 100%; margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--ink); box-shadow: -8px 8px 0 var(--green); }
.ai-float .term-out { height: auto; flex: 1; }
.term-close { display: none; border: 0; background: none; color: #aeb7b1; cursor: pointer; padding: 0 0 0 10px; font-size: .95rem; }
.term-close:hover { color: #fff; }
.ai-float .term-close { display: block; }
.ai-float .term-bar { flex-wrap: nowrap; }
.ai-float .term-bar > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-bar { align-items: center; }
.term-bar > span:nth-child(2) { margin-left: auto; }
.term-away { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 22px 24px; border-top: 1px solid var(--line); color: var(--muted); }
.term-away[hidden] { display: none; }
@media (max-width: 560px) {
  .ai-bubble { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 54px; height: 54px; }
  .ai-float { right: 8px; left: 8px; width: auto; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); height: calc(100svh - 80px); }
}
@media (prefers-reduced-motion: reduce) { .ai-bubble .d1, .ai-bubble .d2, .ai-bubble .d3 { animation: none; } }

/* ── Contact rows ── */
.contact { display: block; }
.crow { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color .2s, color .2s; }
.crow:last-child { border-bottom: 0; }
a.crow:hover { background: var(--green); color: #fff; }
a.crow:hover .ck, a.crow:hover .arrow { color: #fff; }
.ck { font: 400 .86rem var(--mono); color: var(--muted); }
.cv { font-size: 1.15rem; font-weight: 500; overflow-wrap: anywhere; }
.arrow { font-size: 1.2rem; color: var(--muted); transition: transform .2s; }
a.crow:hover .arrow { transform: translate(3px, -3px); }

/* ── Résumé viewer: a framed window over a dimmed page ── */
/* (an id, not the class .cv: that one is the value in the contact rows) */
#cv { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(11, 15, 12, .55); }
#cv[hidden] { display: none; }
.cv-box { display: flex; flex-direction: column; width: min(980px, 100%); height: min(92vh, 1200px); background: var(--bg); box-shadow: 0 0 0 1px var(--ink), -8px 8px 0 var(--green); }
.cv-bar { display: flex; align-items: stretch; background: var(--black); color: #fff; font: 400 .88rem var(--mono); }
.cv-bar > * { display: flex; align-items: center; padding: 12px 16px; }
#cv-title { flex: 1; }
.cv-dl { gap: 8px; color: #fff; text-decoration: none; border-left: 1px solid #2a312c; }
.cv-dl:hover { background: var(--green); }
.cv-x { border: 0; border-left: 1px solid #2a312c; background: none; color: #fff; cursor: pointer; font-size: 1rem; }
.cv-x:hover { background: #222a25; }
#cv-frame { flex: 1; width: 100%; border: 0; background: #fff; }

/* ── Mosaic of small tiles down the left margin (built by js/alt.js; only where there is margin) ── */
#mosaic { position: absolute; top: 0; left: 0; z-index: 0; display: grid; pointer-events: none; overflow: hidden; }
#mosaic .mt { position: relative; overflow: hidden; display: grid; place-items: center; font: 800 calc(var(--ts) * .78)/1 var(--mono); }
#mosaic .empty { background: none; }
#mosaic .dots { background-image: radial-gradient(var(--fg) 22%, transparent 24%); background-size: 50% 50%; background-position: center; }
#mosaic .cross i { position: absolute; width: 26%; height: 26%; background: var(--fg); }
#mosaic .cross i:nth-child(1) { left: 37%; top: 11%; } #mosaic .cross i:nth-child(2) { left: 11%; top: 37%; } #mosaic .cross i:nth-child(3) { left: 37%; top: 37%; background: var(--fg2); }
#mosaic .cross i:nth-child(4) { left: 63%; top: 37%; } #mosaic .cross i:nth-child(5) { left: 37%; top: 63%; }
#mosaic .quarter::after { content: ""; position: absolute; inset: 0; background: var(--fg); border-radius: 0 0 100% 0; }
#mosaic .quarter.r2::after { border-radius: 0 0 0 100%; } #mosaic .quarter.r3::after { border-radius: 100% 0 0 0; } #mosaic .quarter.r4::after { border-radius: 0 100% 0 0; }
#mosaic .half::after { content: ""; position: absolute; inset: 0; background: var(--fg); clip-path: polygon(0 0, 100% 0, 0 100%); }
#mosaic .half.r2::after { clip-path: polygon(100% 0, 100% 100%, 0 100%); }
#mosaic .glyph { color: var(--fg); }
body.mosaic-pad { padding-left: var(--pad, 0px); }

/* ── Footer: the full-width name, then a row of cells ── */
/* a closed box with a little air below; the AI bubble steps aside while the footer is on screen (js/alt.js) */
.foot { margin: clamp(56px, 8vw, 104px) var(--edge) 40px; border: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; }
.foot-row > * { padding: 20px 24px; border-right: 1px solid var(--line); font-size: .95rem; text-decoration: none; }
.foot-row > span:first-child { color: var(--muted); }
.foot-row a:hover { background: var(--paper); }
.foot-fill { flex: 1; padding: 0; }
.foot-row > :last-child { border-right: 0; }

/* ── Narrower screens ── */
@media (max-width: 1100px) {
  .nav-cell { min-width: 0; }
  .row { grid-template-columns: 200px minmax(0, 1fr); }
  .row .tag { grid-column: 2; justify-self: start; }
}
@media (max-width: 1100px) {
  .now { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .now-head { grid-column: 1 / -1; flex-direction: row; align-items: baseline; border-right: 0; border-bottom: 1px solid var(--line); }
  .now-list li { border-bottom: 1px solid var(--line); }
  .now-list li:nth-child(2n) { border-right: 0; }
  .now-list li:nth-last-child(-n + 2) { border-bottom: 0; }
}
@media (max-width: 860px) {
  .nav-cell:not(.nav-lang) { display: none; }
  .nav-go { min-width: 0; }
  .hero, .split, .feature, .contact, .invite { grid-template-columns: 1fr; }
  .hero-left, .statement, .feature-shot, .tiles { border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-shot { min-height: 0; aspect-ratio: 16 / 10; }
  .name { flex-direction: column; align-items: flex-start; }
  .name-side { flex-direction: row; flex-wrap: wrap; gap: 4px 14px; align-items: flex-start; text-align: left; }
  .tab { min-width: 0; flex: 1; padding: 16px; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3n) { border-right: 1px solid var(--line); }
  .fact:nth-child(2n) { border-right: 0; }
  .fact:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .fact:nth-last-child(-n + 2) { border-bottom: 0; }
  .tabs-fill { display: none; }
  .day { font-size: 1.5rem; }
  .hero-left { min-height: 220px; gap: 40px; }
  .cards, .skills { grid-template-columns: 1fr; }
  .card, .skill-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .card:last-child, .skill-col:last-child { border-bottom: 0; }
  .row { grid-template-columns: 1fr; gap: 10px; }
  .row .tag { grid-column: 1; grid-row: 1; justify-self: end; margin-bottom: -38px; }
}
@media (max-width: 560px) {
  .bar { gap: 14px; font-size: .78rem; }
  .bar-path { display: none; }
  .bar-label { display: none; }
  .nav { height: 56px; }
  .nav-mark { padding: 0 14px; }
  .hero-left { min-height: 0; gap: 36px; }
  .nav > * { padding: 0 14px 12px; }
  .cell, .cell-cta { padding: 18px; }
  .sec-head { min-height: 150px; gap: 36px; padding: 18px; }
  .shot-cap { left: 10px; bottom: 10px; font-size: .66rem; white-space: nowrap; }
  .summary { grid-template-columns: 1fr; }
  .fact, .fact:nth-child(3n) { border-right: 0; }
  .fact:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .fact-logo { margin-bottom: 10px; }
  .now { grid-template-columns: 1fr; }
  .now-list li { border-right: 0; }
  .now-list li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .name h1 span { display: block; }
  .foot-row > * { padding: 16px 18px; }
  .feats li { padding: 10px 18px; }
  .crow { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 16px 18px; }
  .crow .ck { grid-column: 1 / -1; }
  .row { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor, .t-prompt b, .t-ai.wait::after { animation: none; }
  .btn, .btn:hover { transition: none; }
}

/* ══ Layout v2 ══
   Hero: one block in reading order (status, name, role, intro, WhatsApp, contacts) with "Agora" as a column beside it.
   Sections: a narrow title column on the left that stays in view while you scroll, the content on the right. */
.hero2 { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); margin-top: 28px; border-top: 1px solid var(--line); }
.h-main { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding: 36px 32px 34px; border-right: 1px solid var(--line); min-width: 0; }
.h-status { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; font: 500 .86rem var(--mono); color: var(--green);
  background: color-mix(in srgb, var(--green) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 45%, transparent); }
.h-live { width: 8px; height: 8px; background: var(--green); animation: blink 1.6s steps(1) infinite; }
.h-name { margin: 2px 0 0; font: 900 clamp(2.6rem, 5.3vw, 6.4rem)/.88 var(--display); font-stretch: 125%; letter-spacing: -.025em; }
.h-name span { display: inline-block; white-space: nowrap; }
.h-role { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; font: 400 .9rem/1.5 var(--mono); color: var(--muted); }
.h-lead { margin: 4px 0 0; max-width: 48ch; font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.4; letter-spacing: -.01em; }
.h-cta { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; }
.h-cta .btn { min-height: 60px; align-items: center; font-size: 1.02rem; }
.h-cta .btn-wa { flex: 1 1 320px; max-width: 460px; }
.btn-wa { background: #1c9e52; color: #fff; font-weight: 600; }
.btn-wa:hover, .btn-wa:focus-visible { background: #178544; }
.hero2 .hero-links { padding: 0; border: 0; }
.h-now { display: flex; flex-direction: column; gap: 6px; padding: 36px 28px 30px; background: color-mix(in srgb, var(--paper) 55%, transparent); }
.h-now-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; font: 400 .8rem var(--mono); color: var(--muted); }
.h-now-head strong { font: 500 1.9rem/1 var(--display); letter-spacing: -.03em; color: var(--ink); }
.h-now-head strong::after { content: ""; display: inline-block; width: .3em; height: .3em; margin-left: .15em; background: var(--green); vertical-align: .1em; }
.h-now-list { list-style: none; margin: 0; padding: 0; }
.h-now-list li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); font-size: .98rem; line-height: 1.45; }
.h-now-list li::before { content: ""; width: 7px; height: 7px; margin-top: .5em; background: var(--ink); }
.h-now-list li:last-child::before { background: #1c9e52; }

/* nav: the WhatsApp button on the right */
.nav-go { background: #1c9e52; }
.nav-go:hover { background: #178544; }
.nav-cv { min-width: 120px; }

/* "Precisa de um site assim?" under the Ociani project */
.pitch { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding: 22px 24px; background: color-mix(in srgb, #1c9e52 7%, transparent); }
.pitch p { margin: 0; font-size: 1.12rem; }
.pitch .btn { min-height: 54px; align-items: center; }

.sec { display: grid; grid-template-columns: 260px minmax(0, 1fr); margin: clamp(40px, 5vw, 64px) var(--edge) 0; padding-top: 0; border: 1px solid var(--line);
  background: linear-gradient(var(--line), var(--line)) 260px 0 / 1px 100% no-repeat; }
.sec > * { grid-column: 2; min-width: 0; margin-inline: 0 !important; }
.sec > .frame { border: 0; border-bottom: 1px solid var(--line); }
.sec > .frame:last-child, .sec > .more-gh:last-child { border-bottom: 0; }
.sec > .sec-head { grid-column: 1; grid-row: 1 / span 40; align-self: start; position: sticky; top: 64px; min-height: 0; flex-direction: column-reverse; justify-content: flex-start; gap: 10px; padding: 26px 24px; border: 0; }
.sec > .sec-head .sec-title { font-size: clamp(1.7rem, 2.3vw, 2.3rem); line-height: 1.05; }
.sec > .sec-head .mono-row { font-size: .8rem; color: var(--muted); }
.sec > .more-gh { padding: 14px 24px 18px; }
.sec .tabs .tab:first-child { border-left: 0; }

/* footer: a dark band across the whole width, touching the bottom of the page */
.foot { margin: clamp(56px, 8vw, 96px) 0 0; border: 0; padding-inline: var(--edge); background: #0b0f0c; color: #e5ece7; }
.foot-row { border-inline: 1px solid #2c3530; }
.foot-row > * { border-color: #2c3530; padding-block: 26px; }
.foot-row > span:first-child { color: #9aa59e; }
.foot-row a:hover { background: #151b17; color: #fff; }
.foot-row .foot-wa { color: #5fe08f; font-weight: 600; }   /* each link in its brand color, lighter so it reads on the dark band */
.foot-row .foot-in { color: #6cb4ff; font-weight: 600; }
.foot-row .foot-mail { color: #ff8a80; font-weight: 600; }

@media (max-width: 1100px) { .hero2 { grid-template-columns: 1fr; } .h-main { border-right: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 860px) {
  .sec { grid-template-columns: 1fr; background: none; }
  .sec > *, .sec > .sec-head { grid-column: 1; grid-row: auto; }
  .sec > .sec-head { position: static; flex-direction: column-reverse; border-bottom: 1px solid var(--line); }
  .h-main { padding: 26px 18px; } .h-now { padding: 26px 18px; }
  .h-cta .btn { flex: 1 1 100%; max-width: none; }
  .pitch { padding: 20px 18px; } .pitch .btn { width: 100%; }
  .foot-row { border-inline: 0; } .foot-row > * { border-right: 0; border-bottom: 1px solid #2c3530; width: 100%; padding-block: 16px; }
  .foot-fill { display: none; }
}

/* the squares live behind the page, so nothing in the content has a background tint that would hide or dim them:
   hovering a card or a journey row shows a colored line instead */
.card:hover, .row:hover { background: none; box-shadow: inset 3px 0 0 var(--green); }
.tab[aria-selected="true"] { background: transparent; }
.h-now { background: none; }

/* ══ The capybara of Blumenau (pixel art, 48 x 28 pixels, drawn as SVG rectangles) ══
   Next to the clock in the black bar: she walks in when the page opens, blinks and flicks her ear now and then,
   and walks over to eat the grass that grows in the bar. In the footer: she swims.
   Each pose is its own picture stacked on top of the standing one; only one shows at a time. */
.bar { overflow: hidden; }
.bar-clock { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.capy { position: relative; display: inline-block; flex: none; line-height: 0; vertical-align: middle; }
.capy svg { display: block; }
.capy .step, .capy .shut, .capy .ear, .capy .eat1, .capy .eat2 { position: absolute; inset: 0; opacity: 0; }
/* standing: blink every 4.2 s, two quick ear flicks every 5.4 s (the standing picture hides while the ear one shows) */
.capy.blink > svg:first-child { animation: capy-ear-base 5.4s steps(1) 1.3s infinite; }
.capy.blink .ear { animation: capy-ear 5.4s steps(1) 1.3s infinite; }
.capy.blink .shut { animation: capy-shut 4.2s steps(1) infinite; }
/* walking: standing and step pictures take turns (4 legs at a time), and the body goes up 1 pixel on each step */
.capy.walking > svg:first-child { animation: capy-base .64s steps(1) infinite, capy-waddle .64s steps(1) infinite; }
.capy.walking .step { animation: capy-stepf .64s steps(1) infinite, capy-waddle .64s steps(1) infinite; }
/* eating: head down, nodding while she chews */
.capy.eating > svg:first-child { animation: none; opacity: 0; }
.capy.eating .eat1 { animation: capy-base .5s steps(1) infinite; }
.capy.eating .eat2 { animation: capy-stepf .5s steps(1) infinite; }
.capy.walking .shut, .capy.walking .ear, .capy.eating .shut, .capy.eating .ear { animation: none; opacity: 0; }
@keyframes capy-shut { 0%, 91% { opacity: 0; } 92%, 97% { opacity: 1; } 98% { opacity: 0; } } /* eyes shut for about a quarter of a second */
@keyframes capy-ear { 0%, 59% { opacity: 0; } 60%, 62% { opacity: 1; } 63%, 65% { opacity: 0; } 66%, 68% { opacity: 1; } 69% { opacity: 0; } }
@keyframes capy-ear-base { 0%, 59% { opacity: 1; } 60%, 62% { opacity: 0; } 63%, 65% { opacity: 1; } 66%, 68% { opacity: 0; } 69% { opacity: 1; } }
@keyframes capy-base { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes capy-stepf { 0% { opacity: 0; } 50% { opacity: 1; } }
@keyframes capy-waddle { 0% { translate: 0 0; } 50% { translate: 0 -1px; } }
/* the grass grows up out of the bar's floor, and goes down bite by bite while she eats */
.grass { position: absolute; line-height: 0; pointer-events: none; animation: grass-grow 1.2s steps(4) both; }
.grass svg { display: block; }
.grass.eaten { animation: grass-eat 2.4s steps(4) forwards; }
@keyframes grass-grow { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes grass-eat { from { clip-path: inset(0); } to { clip-path: inset(100% 0 0 0); } }
.swim { position: relative; display: inline-block; flex: none; overflow: hidden; vertical-align: middle; line-height: 0; }
.swim .body { position: absolute; top: 0; animation: capy-bob 1.8s ease-in-out infinite; }
.swim .water { position: absolute; left: 0; bottom: 0; }
@keyframes capy-bob { 50% { transform: translateY(1px); } }
/* "why a capybara?": hover, tap or Enter shows a small note, styled like Google's classic tooltips */
.capy-hit { cursor: help; }
.capy-hit:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.capy-tip { position: absolute; z-index: 60; max-width: min(240px, calc(100vw - 32px)); padding: 6px 8px; border-radius: 4px;
  background: rgba(60, 64, 67, .92); color: #fff; font: 400 12px/1.4 Roboto, Arial, sans-serif; letter-spacing: .2px;
  pointer-events: none; animation: capy-tip-in .15s ease-out; }
@keyframes capy-tip-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .capy svg, .swim .body, .grass { animation: none !important; }
  .capy svg:first-child { opacity: 1 !important; }
  .capy .step, .capy .shut, .capy .ear, .capy .eat1, .capy .eat2 { opacity: 0 !important; }
}

/* ══ Rounded corners ══
   Big boxes (hero, sections, chat window, résumé viewer) 14 px; buttons 8 px; small labels and tags 6 px.
   "clip" (not "hidden") cuts the content to the round corners without breaking the sticky section titles. */
:root { --r: 14px; --rb: 8px; --rt: 6px; }
.hero2, .sec, .ai-float .term, .cv-box { border-radius: var(--r); overflow: clip; }
.btn, .ai-bubble { border-radius: var(--rb); }
.h-status, .tag, .cmp-tag, .shot-cap, .fact-badge, .fact-open, .fact-shot, .term-chips button, .capy-tip { border-radius: var(--rt); }

/* the menu doesn't fit the résumé cell on medium screens (the résumé is also in the buttons under the name) */
@media (max-width: 1320px) { .nav-cv { display: none; } }
