:root { --ac: #ffcc4d; --bg: #0e0e0e; --panel: #1c1c1c; --line: #3a3a3a;
  --sans: "Figtree", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; --title: "Gabarito", var(--sans); --gut: 20px; --r: 14px; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color-scheme: dark; scrollbar-gutter: stable; scroll-padding: 84px 0 24px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { background: var(--bg); color: #fff; font: 400 1.0625rem/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; } button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; } ul { list-style: none; } b, strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; border-radius: 4px; } main:focus { outline: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 200; left: 16px; top: 12px; padding: 12px 18px; border-radius: 999px; background: var(--ac); color: #0e0e0e; font-weight: 600; transform: translateY(-80px); } .skip:focus { transform: none; }
.page { display: grid; grid-template-columns: minmax(310px, 27vw) minmax(0, 1fr); }
.side { position: sticky; top: 0; height: 100svh; padding: 26px 24px 20px; display: flex; flex-direction: column; }
h1 { font: 700 clamp(4rem, 6.2vw, 6.4rem)/.9 var(--title); letter-spacing: -.035em; }
.intro { margin-top: 20px; font-size: 1.1875rem; max-width: 25em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 24px; } .txt { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.foot { position: relative; margin-top: auto; min-height: 150px; display: flex; align-items: flex-end; }
.links { color: #c4c4c4; font-size: 1rem; transition: opacity .2s; }
.result { position: absolute; inset: auto 0 0; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 16px 18px; opacity: 0; transform: translateY(10px); transition: opacity .18s, transform .3s cubic-bezier(.22,1,.36,1); pointer-events: none; }
.result b { display: none; } .result p { font-size: 1.125rem; line-height: 1.4; } .result small { display: block; margin-top: 6px; color: #c4c4c4; font-size: 1rem; }
.foot.show .links { opacity: 0; pointer-events: none; } .foot.show .links:focus-within { opacity: 1; } .foot.show .result { opacity: 1; transform: none; }
main#work { padding: 0 var(--gut) 24px 0; min-width: 0; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; background: var(--bg); padding: 10px 0; }
.tabs { position: relative; display: flex; gap: 28px; }
.tabs button { min-height: 44px; min-width: 44px; color: #a6a6a6; font-size: 1.125rem; transition: color .15s; }
.tabs [aria-selected=true] { color: #fff; font-weight: 500; }
.tabs .line { position: absolute; left: 0; bottom: 4px; height: 3px; width: 100px; border-radius: 2px; background: var(--ac); transform-origin: 0 50%; transition: transform .24s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.tabs.still .line { transition: none; }
.pv, .vp { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; } .pv { margin-right: -12px; } .i-play, .paused #pause .i-pause, .pp.is .i-pause, .cp.is .i-pause { display: none; } .paused #pause .i-play, .pp.is .i-play, .cp.is .i-play { display: block; }
.panel[hidden] { display: none !important; }
#p-uiux, #p-motion { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } #p-motion { gap: 32px 14px; } #p-uiux .col { display: grid; gap: 14px; align-content: start; }
.card { display: block; position: relative; } .card:focus-visible { outline-offset: 4px; border-radius: var(--r); }
/* Corners: four small page-coloured pieces painted on their own layer above the video. Browsers sometimes skip
   rounded clipping on a playing video, so the corners would flick between round and square. */
.thumb { position: relative; aspect-ratio: 16 / 9; isolation: isolate; } .thumb > video { display: block; width: 100%; height: 100%; object-fit: cover; }
.tall .thumb { aspect-ratio: 4 / 5; }
.card .thumb::before { content: ""; position: absolute; inset: -1px; z-index: 4; pointer-events: none; will-change: transform;
  background: radial-gradient(circle at 15px 15px, transparent 14px, #0e0e0e 14.6px) 0 0 / 15px 15px no-repeat, radial-gradient(circle at 0 15px, transparent 14px, #0e0e0e 14.6px) 100% 0 / 15px 15px no-repeat,
    radial-gradient(circle at 15px 0, transparent 14px, #0e0e0e 14.6px) 0 100% / 15px 15px no-repeat, radial-gradient(circle at 0 0, transparent 14px, #0e0e0e 14.6px) 100% 100% / 15px 15px no-repeat; }
.card .thumb::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: var(--r); border: 1px solid rgba(255,255,255,.14); pointer-events: none; will-change: transform; }
.cap { padding-top: 12px; font-size: 1.1875rem; line-height: 1.35; } .cap b { font-weight: 500; } #p-uiux .cap .k { display: none; } #p-uiux .cap span { display: block; font-size: 1rem; color: #c4c4c4; }
#p-motion .cap { padding-right: 60px; }
.dur { position: absolute; right: 2px; margin-top: -25px; font-size: 1rem; line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; } .chips i { font-style: normal; font-size: 1rem; background: #262626; border-radius: 5px; padding: 4px 10px; }
/* Mouse on desktop: a window bar slides in and pushes the picture down, both on the same curve. Touch screens keep the title under the picture. */
@media (min-width: 901px) and (hover: hover) {
  #p-uiux .card { overflow: hidden; } .card .thumb { overflow: hidden; }
  #p-uiux .card::before { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; will-change: transform;
    background: radial-gradient(circle at 14px 14px, transparent 13.4px, #0e0e0e 14px) 0 0 / 14px 14px no-repeat, radial-gradient(circle at 0 14px, transparent 13.4px, #0e0e0e 14px) 100% 0 / 14px 14px no-repeat; }
  #p-uiux .cap { position: absolute; z-index: 3; inset: 0 0 auto; height: 48px; padding: 0 18px 0 78px; display: flex; align-items: center; gap: 12px; background: #1c1c1c; font-size: 1rem; white-space: nowrap; transform: translateY(-100%); }
  #p-uiux .cap::before { content: ""; position: absolute; left: 18px; top: 19px; width: 10px; height: 10px; border-radius: 50%; background: #6a6a6a; box-shadow: 17px 0 #6a6a6a, 34px 0 #6a6a6a; }
  #p-uiux .cap b { font-weight: 600; } #p-uiux .cap .k { display: block; } #p-uiux .cap .h { display: none; } #p-uiux .cap span { overflow: hidden; text-overflow: ellipsis; }
  #p-uiux .cap, #p-uiux .thumb > video { transition: transform .5s cubic-bezier(.32,.72,0,1); will-change: transform; }
  #p-uiux .card:is(:hover, :focus-visible) .cap { transform: none; } #p-uiux .card:is(:hover, :focus-visible) .thumb > video { transform: translateY(48px); }
}
@media (hover: hover) { .txt:hover { color: var(--ac); } .go:hover { background: #efb62b; } .pv:hover { background: #262626; } .tabs button:hover { color: #fff; } }
/* cards pop in when the page loads or the filter changes */
.panel.in .card { animation: pop .42s cubic-bezier(.2,1.2,.4,1) backwards; animation-delay: calc(var(--n) * 45ms); } @keyframes pop { from { transform: translateY(26px) scale(.94); opacity: 0; } }
main .mlinks { display: none; }
@media (max-width: 900px) {
  .page { display: block; padding: 0 16px; } .side { position: static; height: auto; padding: 24px 0 14px; }
  h1 { font-size: clamp(4.25rem, 22vw, 7rem); } .intro { margin-top: 14px; font-size: 1.125rem; } .cta { margin-top: 20px; } .foot { display: none; }
  main#work { padding: 0; } .top { margin: 0 -16px; padding: 6px 16px; }
  #p-uiux, #p-motion { grid-template-columns: minmax(0, 1fr); gap: 30px; } #p-uiux .col { display: contents; }
  main .mlinks { display: block; padding-top: 48px; }
}
@media (min-width: 901px) and (max-height: 620px) { .side { overflow-y: auto; } .foot { min-height: 64px; padding-top: 16px; } .result { display: none; } .foot.show .links { opacity: 1; pointer-events: auto; } }
/* About */
.cv { display: grid; grid-template-columns: minmax(310px, 27vw) minmax(0, 1fr); padding: 0 var(--gut) 96px 0; }
.cv header { position: sticky; top: 0; align-self: start; padding: 26px 24px; } .cv h1 { margin-top: 96px; font-size: clamp(3rem, 4.6vw, 4.6rem); line-height: 1; }
.cvb { max-width: 900px; padding-top: 118px; } .cv .lead { font-size: clamp(1.375rem, 2.1vw, 1.9rem); line-height: 1.35; max-width: 27em; letter-spacing: -.01em; }
.cv section { margin-top: 72px; } .cv h2 { font-size: 1.0625rem; font-weight: 500; color: var(--ac); padding-bottom: 14px; }
.cv li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.cv h3 { font-size: 1.375rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; } .cv .yr { line-height: 1.75; } .cv .role { margin-top: 2px; color: #c4c4c4; } .cv li p:not(.role) { max-width: 36em; } .cv h3 ~ p:not(.role) { margin-top: 8px; }
.cv h3 a, .find a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; } .cv h3 a { display: inline-block; padding: 8px 0; margin: -8px 0; } @media (hover: hover) { .cv h3 a:hover, .find a:hover { color: var(--ac); } }
.find { display: flex; flex-wrap: wrap; gap: 0 28px; border-top: 1px solid var(--line); padding-top: 12px; } .find a { display: inline-flex; align-items: center; min-height: 48px; }
@media (max-width: 900px) { .cv { display: block; padding: 0 16px 100px; } .cv header { position: static; padding: 24px 0 0; } .cv h1 { margin-top: 72px; } .cvb { padding-top: 20px; } .cv section { margin-top: 56px; } }
@media (max-width: 600px) { .cv li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
@media print { body, html { background: #fff; color: #000; } .cv, .cv header { display: block; position: static; padding: 0; } .back { display: none !important; } .cv h1, .cvb { margin: 0; padding: 12px 0 0; } .cv h2, .cv .role { color: #000; } .cv section { margin-top: 28px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.copy { padding: 32px var(--gut) 28px; color: #c4c4c4; font-size: 1rem; }
.page > .copy { grid-column: 1 / -1; padding-top: 48px; }
@media (max-width: 900px) { .copy, .page > .copy { padding: 8px 0 28px; text-align: left; } .about .copy { padding: 0 16px 28px; } .cv { padding-bottom: 56px; } .work.ui .copy { padding: 20px 20px 28px; } }

.flinks { display: flex; gap: 4px; margin: 0 0 4px -10px; } .flinks a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; } @media (hover: hover) { .flinks a:hover { background: #262626; } }
@media (max-width: 900px) { .copy, .page > .copy { padding-top: 4px; } .work .copy { padding-top: 24px; } }
.cv .reach { font-size: 1.1875rem; border-top: 1px solid var(--line); padding: 24px 0 18px; } .cv .go .sr { color: inherit; } .cv #contact .find { border: 0; }
.work.mo .copy { padding: 24px 0 28px; } .work.ui .copy { padding-left: var(--edge); }
