@font-face {
  font-family: Geist;
  src: url(assets/fonts/geist.woff2) format("woff2");
  font-weight: 400 750;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url(assets/fonts/ibm-plex-mono.woff2) format("woff2");
  font-display: swap;
}
:root {
  --ground: #101216;
  --surface: #171a20;
  --ink: #f1ede6;
  --muted: #b5b6bb;
  --line: #343840;
  --copper: #f2b477;
  --space: min(5.4vw, 6rem);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 1rem/1.6 Geist, system-ui, sans-serif; }
h1, h2, h3, p, figure, ul, dl, dd { margin: 0; }
p, dd, figcaption { color: var(--muted); }
h1, h2, h3 { line-height: 1; }
a { color: inherit; text-underline-offset: .28em; }
a:hover { color: var(--copper); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 5px; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.shell { width: min(100% - var(--space) * 2, 90rem); margin-inline: auto; }
.skip { position: fixed; z-index: 10; left: 1rem; top: .5rem; translate: 0 -160%; background: var(--ink); color: var(--ground); padding: .5rem 1rem; }
.skip:focus { translate: 0; }
.topbar { position: sticky; top: 0; z-index: 4; background: #101216f4; border-bottom: 1px solid #282b31; }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 4.6rem; gap: 1.2rem; }
.nav a { text-decoration: none; }
.wordmark { display: inline-flex; align-items: center; gap: .75rem; justify-self: start; font-weight: 650; letter-spacing: -.035em; }
.wordmark > span:first-child { display: grid; place-items: center; width: 2.05rem; aspect-ratio: 1; border: 1px solid #a87b62; color: var(--copper); font: .76rem var(--mono); }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem); color: var(--muted); font-size: .92rem; }
.nav-cv { justify-self: end; font-size: .9rem; padding: .38rem .7rem; border: 1px solid var(--line); }
.nav-cv span { color: var(--copper); margin-inline-start: .25rem; }
.technical { color: var(--copper); font: 400 .85rem/1.4 var(--mono); }
.button { display: inline-flex; justify-content: center; align-items: center; width: fit-content; min-height: 3rem; padding: .66rem 1.12rem; border: 1px solid #66666b; color: var(--ink); background: var(--ground); text-decoration: none; font-size: .9rem; font-weight: 650; cursor: pointer; }
.button:hover { border-color: var(--copper); }
.button-filled { background: var(--copper); color: #1b120f; border-color: var(--copper); }
.button-filled:hover { background: #ffd1a6; color: #1b120f; }

.cine { --progress: 0; position: relative; }
.cine.is-enhanced { height: 385svh; }
.cine-stage { position: relative; top: 4.6rem; height: calc(100svh - 4.6rem); min-height: 34rem; isolation: isolate; overflow: hidden; }
.cine.is-enhanced .cine-stage { position: sticky; }
.cine:not(.is-enhanced) .cine-stage { top: 0; }
.cine-poster, .cine-canvas, .cine-shade { position: absolute; inset: 0; height: 100%; width: 100%; pointer-events: none; }
.cine-poster img { width: 100%; height: 100%; object-fit: cover; }
.cine-canvas { opacity: 0; }
.cine-canvas.is-ready { opacity: 1; }
.cine-shade { background: linear-gradient(90deg, #101216 2%, #101216e8 26%, #10121635 61%, transparent 84%), linear-gradient(0deg, #101216 0%, transparent 25%); }
.cine-layout { position: relative; height: 100%; display: grid; align-items: center; padding-block: 2rem 4.8rem; }
.cine-text { display: grid; width: min(100%, 50rem); }
.moment { grid-area: 1 / 1; align-self: center; transition: opacity .28s ease, transform .36s ease; }
.moment:not(.is-current) { opacity: 0; transform: translateY(14px); pointer-events: none; }
.cine:not(.is-enhanced) .moment:not(.is-current) { display: none; }
.moment .role { margin-bottom: 1.35rem; }
.moment h1 { font-size: clamp(3.8rem, 7.9vw, 8.15rem); line-height: .87; letter-spacing: -.066em; font-weight: 620; }
.moment h1 span { color: var(--copper); }
.moment h2 { font-size: clamp(3.1rem, 6.8vw, 6.7rem); line-height: .94; letter-spacing: -.064em; font-weight: 600; }
.hero-description { max-width: 28rem; margin: 1.45rem 0 1.55rem; font-size: clamp(1.04rem, 1.45vw, 1.35rem); }
.cine-meta { position: absolute; inset: auto 0 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font: .76rem/1.3 var(--mono); color: #c5c4c7; }
.cine-label, .cine-progress { display: flex; align-items: center; gap: .6rem; }
.cine-label b { width: .38rem; height: .38rem; background: var(--copper); }
.cine-progress i { position: relative; width: clamp(2rem, 6vw, 6rem); height: 1px; background: #76767e; }
.cine-progress i::before { content: ""; position: absolute; inset: 0; background: var(--copper); transform: scaleX(var(--progress)); transform-origin: left; }
.cine:not(.is-enhanced) .cine-progress { display: none; }

.section { padding-block: clamp(4rem, 8vw, 8rem); border-top: 1px solid var(--line); }
.section-intro { display: grid; grid-template-columns: 1fr minmax(14rem, .55fr); align-items: end; gap: 1rem 3rem; margin-bottom: clamp(1.7rem, 4vw, 3.6rem); }
.section h2 { font-size: clamp(2.8rem, 6.55vw, 6rem); letter-spacing: -.06em; font-weight: 595; }
.section-intro .technical, .profile .technical { margin-bottom: .75rem; }
.intro-summary { font-size: clamp(1rem, 1.65vw, 1.3rem); max-width: 32ch; }
.featured { background: #13161b; }
.feature-figure { position: relative; display: grid; align-items: end; isolation: isolate; min-height: clamp(18rem, 47vw, 39rem); overflow: hidden; background: #13161b; }
.feature-figure img { position: absolute; inset: 0; z-index: -1; height: 100%; width: 100%; object-fit: cover; }
.arte--fundo { mask-image: radial-gradient(ellipse 68% 72%, black 46%, transparent 93%); }
.feature-figure figcaption { display: flex; align-items: end; justify-content: space-between; gap: .8rem; padding: clamp(.9rem, 3vw, 2.6rem); background: linear-gradient(0deg, #13161b, transparent); font: .78rem/1.45 var(--mono); }
.results { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-block: 1px solid var(--line); margin-block: 1.5rem; }
.results li { padding: 1.45rem clamp(.9rem, 2vw, 2rem); }
.results li + li { border-left: 1px solid var(--line); }
.results strong, .results span { display: block; }
.results strong { color: var(--copper); font-size: clamp(1.55rem, 2.9vw, 2.75rem); line-height: 1.05; font-weight: 580; letter-spacing: -.055em; }
.results span { color: var(--muted); max-width: 36ch; margin-top: .47rem; }
.feature-detail { max-width: 54rem; }
.feature-detail > p { margin-block: 1.55rem 1rem; }
details > summary { cursor: pointer; color: var(--ink); }
details > summary:hover { color: var(--copper); }
.bullet-list { padding: .5rem 0 .25rem 1.25rem; color: var(--muted); }
.bullet-list li { padding-block: .24rem; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.project-card { background: var(--ground); min-width: 0; }
.project-copy { padding: clamp(1.15rem, 2.4vw, 2.2rem); }
.project-copy h3 { font-size: clamp(1.38rem, 2.3vw, 2.25rem); font-weight: 580; letter-spacing: -.05em; }
.project-copy p, .project-copy a { display: block; margin-top: .85rem; }
.project-copy a { width: fit-content; font-weight: 600; }
.tags { padding: 0; display: flex; flex-wrap: wrap; gap: .22rem .65rem; list-style: none; margin-top: 1rem; color: #ded1c4; font: .73rem/1.55 var(--mono); }
.diagram { --diagram-accent: #f5b478; position: relative; display: grid; place-items: center; height: clamp(10rem, 16vw, 15rem); overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 53% 50%, #272523, #15171d 70%); }
.diagram::before { content: ""; position: absolute; inset: 10% 5%; border: 1px solid #42444b; background: repeating-linear-gradient(90deg, transparent 0 19.5%, #55505a4a 19.5% 20%), repeating-linear-gradient(0deg, transparent 0 24.5%, #55505a4a 24.5% 25%); mask-image: radial-gradient(ellipse 75% 88%, black 8%, transparent 78%); }
.diagram span, .diagram i, .diagram b { grid-area: 1 / 1; display: block; position: relative; }
.retrieval span { width: 25%; height: 38%; border: 1px solid #706050; background: repeating-linear-gradient(#262427 0 17%, #3c3435 17% 19%); transform: skewY(-13deg) translate(-62%, -14%); }
.retrieval span:nth-child(2) { transform: skewY(-13deg) translate(-52%, 4%); }
.retrieval span:nth-child(3) { transform: skewY(-13deg) translate(-42%, 22%); }
.retrieval i { width: 14%; height: 1px; background: #b47d5a; transform: translate(84%, -1.1rem); }
.retrieval i:nth-of-type(2) { transform: translate(84%, 0); }
.retrieval i:nth-of-type(3) { transform: translate(84%, 1.1rem); }
.retrieval b { width: 13%; aspect-ratio: 1; border: 2px solid #d29162; background: #563e36; transform: translateX(155%) rotate(45deg); }
.fleet { --diagram-accent: #aebcf2; background: radial-gradient(ellipse, #222538, #15171d 73%); }
.fleet span { width: 47%; height: 32%; transform: skewY(-17deg) scaleX(1.08) rotate(11deg); border: 1px solid #7b82a0; }
.fleet span:nth-child(2) { height: 20%; width: 33%; }
.fleet span:nth-child(3) { width: 18%; height: 8%; }
.fleet i { width: .62rem; aspect-ratio: 1; background: var(--diagram-accent); border-radius: 50%; transform: translate(-2.75rem, .95rem); }
.fleet i:nth-of-type(2) { transform: translate(-.3rem, -.15rem); }
.fleet i:nth-of-type(3) { transform: translate(2.65rem, -.95rem); }
.ledger { --diagram-accent: #b5c7a7; background: radial-gradient(ellipse, #222c29, #15171d 73%); }
.ledger span { width: 52%; height: 48%; border: 1px solid #72837b; background: repeating-linear-gradient(0deg, #2b3533 0 19%, #455850 19% 21%); transform: skewY(-9deg) translateY(8%); }
.ledger span:nth-child(2) { width: 39%; height: 34%; transform: skewY(-9deg) translate(21%, 7%); }
.ledger span:nth-child(3) { width: 24%; height: 25%; transform: skewY(-9deg) translate(49%, 3%); }
.ledger i { width: .8rem; height: 1.05rem; background: var(--diagram-accent); transform: skewY(-9deg) translate(-2.8rem, .8rem); }
.ledger i:nth-of-type(2) { height: 1.8rem; transform: skewY(-9deg) translate(-1.55rem, .4rem); }
.ledger i:nth-of-type(3) { height: 2.55rem; transform: skewY(-9deg) translate(-.3rem, 0); }
.more-work { margin-top: 1.25rem; }
.more-work summary, .profile details summary { padding-block: .7rem; }
.other-project { display: grid; grid-template-columns: 1fr 2fr; gap: .6rem 2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.other-project h3 { line-height: 1.25; }
.other-project a { display: inline-block; margin-top: .3rem; }

.split-section, .profile-layout { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.split-section .intro-summary { margin: 1rem 0 1.3rem; }
.job { border-bottom: 1px solid var(--line); padding-block: 1rem; }
.job:first-child { border-top: 1px solid var(--line); }
.job summary { display: flex; align-items: start; justify-content: space-between; gap: .5rem 1.25rem; list-style: none; }
.job summary::-webkit-details-marker { display: none; }
.job summary::after { content: "+"; color: var(--copper); }
.job[open] summary::after { content: "−"; }
.job summary > span { flex: 1; }
.job summary strong, .job summary span span { display: block; }
.job summary span span, .job time { color: var(--muted); font-size: .9rem; }
.job time { white-space: nowrap; }
.job[open] .tags { margin-bottom: .45rem; }

.profile { background: #14171c; }
.profile-layout {
  grid-template-columns: minmax(0, 9rem) minmax(0, 46rem);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.portrait { margin-top: .35rem; }
.portrait img { width: 100%; }
.arte--esquerda {
  mask-image: linear-gradient(to bottom, black 84%, transparent),
    linear-gradient(to right, transparent, black 5% 95%, transparent);
  mask-composite: intersect;
}
.profile-copy > p:not(.technical) { font-size: 1.16rem; margin: 1rem 0 1.2rem; }
.profile-copy details { border-top: 1px solid var(--line); }
.toolbox { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.toolbox dt { color: var(--ink); font-weight: 600; }
.toolbox dd, .education span, .paper span { font-size: .92rem; }
.education { list-style: none; padding: 0; color: var(--muted); }
.education li { margin-bottom: .6rem; }
.education strong, .education span, .paper span { display: block; }
.education strong { color: var(--ink); }
.paper { margin: 1rem 0; }
.paper a { color: var(--copper); }

.contact { background: radial-gradient(ellipse at 12% 90%, #261e1b, transparent 52%); }
.contact-layout { align-items: center; }
.email { overflow-wrap: anywhere; font-size: clamp(1.05rem, 2vw, 1.6rem); text-decoration-color: #a48066; }
.social { display: flex; flex-wrap: wrap; gap: .7rem 1.15rem; margin-top: 1.2rem; color: var(--muted); }
.contact-form { display: grid; gap: .88rem; padding: clamp(1rem, 3vw, 2.4rem); background: #171a20; border: 1px solid var(--line); }
.contact-form label { display: grid; gap: .25rem; }
.contact-form input, .contact-form textarea { background: var(--ground); border: 1px solid #5c606a; border-radius: 0; color: var(--ink); padding: .65rem; min-width: 0; }
.contact-form textarea { resize: vertical; }
.whatsapp { position: fixed; right: 1rem; bottom: 1rem; z-index: 3; }
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer .shell { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.1rem; padding-block: 1.35rem; flex-wrap: wrap; }
.footer .marca-texto { color: var(--ink); font-weight: 650; }

@media (max-width: 900px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .project-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .project-card:last-child .diagram { height: auto; min-height: 12rem; border-bottom: 0; border-right: 1px solid var(--line); }
  .split-section, .profile-layout { gap: 2rem; }
}
@media (max-width: 700px) {
  :root { --space: clamp(1rem, 5vw, 2rem); scroll-padding-top: 4.65rem; }
  .nav { min-height: 3.9rem; gap: .6rem; }
  .nav-links { font-size: .82rem; gap: clamp(.55rem, 2.4vw, 1rem); }
  .wordmark-name { display: none; }
  .nav-cv { font-size: .77rem; padding-inline: .38rem; }
  .nav-cv span { margin-inline-start: .1rem; }
  .cine-stage { top: 3.9rem; height: calc(100svh - 3.9rem); min-height: 34rem; }
  .cine-shade { background: linear-gradient(180deg, #101216 0%, #101216e3 17%, #10121649 43%, transparent 54%, #101216 100%); }
  .cine-layout { align-items: start; padding-block: clamp(2.1rem, 7.5svh, 5rem) 3rem; }
  .moment .role { margin-bottom: .9rem; }
  .moment h1 { font-size: clamp(3.15rem, 12.5vw, 5.3rem); }
  .moment h2 { font-size: clamp(2.8rem, 11vw, 4.65rem); }
  .hero-description { font-size: 1rem; max-width: 30ch; margin: .95rem 0 1rem; }
  .cine-meta { inset: auto 0 1.1rem; font-size: .67rem; gap: .45rem; flex-wrap: wrap; }
  .cine-progress i { display: none; }
  .section-intro, .split-section { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .portrait { width: min(100%, 8rem); }
  .results { grid-template-columns: 1fr; }
  .results li + li { border-top: 1px solid var(--line); border-left: 0; }
  .results li { padding: 1.08rem .25rem; }
  .results span { max-width: 52ch; }
  .feature-figure { min-height: clamp(16rem, 60vw, 21rem); }
  .feature-figure figcaption { align-items: center; }
  .feature-figure figcaption .button { flex: none; padding-inline: .65rem; }
}
@media (max-width: 500px) {
  .project-grid, .project-card:last-child { grid-template-columns: 1fr; }
  .project-card:last-child .diagram { min-height: 10rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .other-project, .toolbox { grid-template-columns: 1fr; }
  .job summary { flex-wrap: wrap; }
  .job summary > span { flex-basis: 75%; }
  .job time { order: 1; flex-basis: 100%; }
}
@media (max-height: 530px) and (min-width: 701px) {
  .cine.is-enhanced { height: auto; }
  .cine.is-enhanced .cine-stage { position: relative; top: 0; }
  .cine-stage { height: 35rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .moment { transition: none; }
}
