:root {
  color-scheme: dark;
  --background: #101115;
  --panel: #17181e;
  --border: #34353d;
  --text: #f8f4ee;
  --muted: #b9b9c4;
  --gold: #f2cb91;
  --ink: #181411;
  --width: 1184px;
  --gutter: clamp(20px, 5.5vw, 84px);
  --sans: "Inter", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--background); color: var(--text); font: 16px/1.6 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.05; font-weight: 700; }
h2 { margin-bottom: 0; font-size: clamp(2.2rem, 5.1vw, 4.25rem); letter-spacing: -.064em; }
h1 > span, h2 > span { color: var(--gold); }
.wrap { width: min(var(--width), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { padding-block: clamp(64px, 8vw, 116px); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: var(--gold); font: 600 .72rem/1.4 var(--mono); letter-spacing: .135em; text-transform: uppercase; }
.accent-line { width: 27px; height: 1px; background: currentColor; flex: none; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 9; top: 10px; left: 10px; background: var(--gold); color: var(--ink); padding: 12px; }
.site-header { position: sticky; z-index: 5; top: 0; background: #101115f5; border-bottom: 1px solid #ffffff15; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 25px; }
.brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; font-weight: 650; letter-spacing: -.035em; }
.monogram { width: 40px; height: 38px; display: grid; grid-auto-flow: column; place-content: center; border: 1px solid #f2cb9166; border-radius: 4px; font-weight: 750; letter-spacing: -.105em; }
.monogram span { color: var(--gold); }
.navigation { margin-left: auto; display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); color: var(--muted); font-size: .9rem; }
.navigation a:hover, .site-footer a:hover { color: var(--gold); }
.navigation-contact { color: var(--text); border: 1px solid var(--border); padding: 8px 14px; border-radius: 4px; }
.navigation-contact span, .text-link span, .contact .button-outline span { margin-left: 5px; color: var(--gold); }
.menu-toggle { display: none; padding: 8px 10px; border: 1px solid var(--border); background: transparent; border-radius: 4px; cursor: pointer; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.share-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--gold); background: transparent; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; }
.share-toggle:hover { border-color: var(--gold); }
.hero { display: grid; align-items: center; min-height: clamp(540px, 70svh, 740px); position: relative; isolation: isolate; background: #121828; }
.hero-scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: url("assets/suite.webp") center / cover no-repeat; }
.hero-scene::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg,#0c0d12ec 0%,#0c0d12bb 32%,#0c0d1233 65%,#0c0d1210),linear-gradient(0deg,#101115 0%,#10111500 22%); }
.hero-scene-plane { position: absolute; top: 50%; left: 50%; width: 1798px; height: 875px; transform: translate(-50%, -50%) scale(var(--scene-scale, 1)); }
/* Match the perspective and soft edges of the screens in suite.webp. */
#hero-showreel, .hero-showreel-mirror, .hero-timeline {
  position: absolute;
  background: #07080b; transform-origin: top left; filter: brightness(.9) saturate(.88);
  mask-image: linear-gradient(90deg, transparent, #000 var(--screen-edge), #000 calc(100% - var(--screen-edge)), transparent),
              linear-gradient(transparent, #000 var(--screen-edge), #000 calc(100% - var(--screen-edge)), transparent);
  mask-composite: intersect;
}
#hero-showreel {
  --screen-edge: 3px;
  top: 126px; left: 917px; width: 864px; height: 486px; object-fit: contain;
  transform: matrix3d(.74006155201, -.11126799558, 0, -.00029486480599,
                      -.0020428424105, .67618083786, 0, -.00001477075826,
                      0, 0, 1, 0, 0, 0, 0, 1);
}
.hero-timeline {
  --screen-edge: .5px;
  top: 474px; left: 1172px; width: 240px; height: 142px;
  background: linear-gradient(#0c24313b, #0c24313b), url("assets/avid-timeline.webp") center / 100% 100%;
  transform: matrix3d(.90745981532, -.022973666211, 0, -.00033772229822,
                      -.014074873317, .95709138552, 0, -.0000048168628735,
                      0, 0, 1, 0, 0, 0, 0, 1);
  overflow: hidden;
}
.hero-timeline-cursor {
  --playhead-color: #94c9ed;
  position: absolute; inset-block: 0; left: clamp(3px, var(--timeline-progress, 0%), calc(100% - 3px));
  width: .7px; background: var(--playhead-color);
}
.hero-timeline-cursor::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  border: 1.75px solid transparent; border-top: 3px solid var(--playhead-color); border-bottom: 0;
}
.hero-showreel-mirror {
  --screen-edge: .5px;
  top: 466px; left: 1433px; width: 272px; height: 153px;
  background: #07080b url("assets/showreel.webp") center / cover no-repeat;
  transform: matrix3d(.88514053713, -.032422730298, 0, -.00043419755846,
                      -.013018553421, .96988222989, 0, -.000026671001763,
                      0, 0, 1, 0, 0, 0, 0, 1);
}
.hero-inner { padding-block: 60px 76px; }
.hero-reel-toggle { min-height: 44px; margin-top: 6px; padding: 0 2px; border: 0; background: transparent; color: var(--muted); font-size: .82rem; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.hero-reel-toggle:hover { color: var(--gold); }
.hero h1 { margin: 0 0 21px; font-size: clamp(4.35rem, 10vw, 9rem); letter-spacing: -.09em; line-height: .87; }
.hero-description { max-width: 390px; color: #dddde5; font-size: clamp(1rem, 1.7vw, 1.19rem); margin-bottom: 32px; }
.actions, .contact-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 47px; padding: 10px 17px; border: 1px solid transparent; border-radius: 4px; font-size: .91rem; font-weight: 650; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.button-primary { background: var(--gold); color: var(--ink); }
.button-primary:hover { background: #ffe2b9; }
.button-quiet, .button-outline { border-color: #ffffff40; background: #13141a55; }
.button-quiet:hover, .button-outline:hover { color: var(--gold); border-color: var(--gold); background: #191a23; }
.play-icon { width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid currentColor; }
.section-header { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 31px; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.filters button { cursor: pointer; padding: 7px 12px; border: 1px solid var(--border); color: var(--muted); background: transparent; border-radius: 4px; font-size: .83rem; }
.filters button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 650; }
.filters button:hover:not([aria-pressed="true"]) { color: var(--text); border-color: var(--muted); }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.project-card { display: block; position: relative; width: 100%; cursor: pointer; overflow: hidden; text-align: left; border: 1px solid var(--border); border-radius: 5px; padding: 0; background: var(--panel); }
.project-card:hover { border-color: #f2cb91a0; }
.project-art { display: block; aspect-ratio: 16 / 9; background-color: #242938; background-repeat: no-repeat; background-size: cover; background-position: center; transition: filter .25s ease; }
.project-card:hover .project-art { filter: brightness(1.17); }
.art-illustration { background-image: url("assets/covers.webp"); background-size: 200% 200%; }
.art-shine { background-position: left top; }
.art-americas { background-position: right top; }
.art-cuida { background-position: left bottom; }
.art-emergencia { background-position: right bottom; }
.project-card .art-illustration { aspect-ratio: 3 / 2; }
.project-card .art-real { aspect-ratio: 3 / 2; }
.video-thumbnail {
  --thumbnail-accent: var(--gold);
  display: block;
  position: relative;
  container-type: inline-size;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  background: var(--background);
}
.thumbnail-image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.video-thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #08090cef, #08090c65 40%, transparent 77%);
  pointer-events: none;
}
.thumbnail-title {
  z-index: 1;
  position: absolute;
  left: 5%;
  bottom: 12%;
  display: grid;
  gap: .05em;
  color: #fffaf2;
  font: 900 clamp(1rem, 9cqi, 3.4rem)/.99 var(--sans);
  letter-spacing: -.042em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px #000b;
}
.thumbnail-title::before { content: ""; width: .82em; height: .1em; margin-bottom: .29em; background: var(--thumbnail-accent); }
.thumbnail-title span:last-child:not(:first-child) { color: var(--thumbnail-accent); }
.thumbnail-esquadrao { --thumbnail-accent: #ffda75; }
.thumbnail-americas { --thumbnail-accent: #ffbf81; }
.thumbnail-libertadores .thumbnail-title { font-size: clamp(1rem, 7.8cqi, 3rem); }
.thumbnail-cuida { --thumbnail-accent: #ffe4bd; }
.thumbnail-cuida .thumbnail-title { left: auto; right: 5%; justify-items: end; text-align: right; }
.thumbnail-renascer { --thumbnail-accent: #d8e4a8; }
.thumbnail-terra { --thumbnail-accent: #ffcb98; }
.thumbnail-play, .thumbnail-duration {
  position: absolute;
  z-index: 1;
  color: #fffaf2;
  background: #101115d9;
}
.thumbnail-play {
  display: grid;
  place-items: center;
  top: 8%;
  right: 5%;
  width: clamp(30px, 10cqi, 48px);
  aspect-ratio: 1;
  border: 1px solid #fffaf27d;
  border-radius: 50%;
}
.thumbnail-play::before { content: ""; width: 31%; height: 38%; transform: translateX(12%); background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.thumbnail-duration { right: 5%; bottom: 5%; padding: 3px 5px; border-radius: 3px; font: 650 .72rem/1.2 var(--mono); }
.thumbnail-cuida .thumbnail-duration { right: auto; left: 5%; }
.project-card:hover .thumbnail-image, .project-card:focus-visible .thumbnail-image { transform: scale(1.035); }
.project-card:hover .thumbnail-play, .project-card:focus-visible .thumbnail-play { color: var(--ink); background: var(--thumbnail-accent); border-color: var(--thumbnail-accent); }
.card-body { min-height: 105px; padding: 17px 18px 19px; display: grid; gap: 4px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-meta { color: var(--gold); font: 600 .67rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .085em; }
.card-title { display: block; padding-right: 25px; font-weight: 700; font-size: clamp(1.25rem, 3vw, 2rem); line-height: 1.12; letter-spacing: -.04em; }
.card-arrow { color: var(--muted); font-size: 1.08rem; line-height: 1; align-self: flex-start; }
.project-card:hover .card-arrow { color: var(--gold); }
.card-format { font-size: .86rem; color: var(--muted); }
.project-card.compact .card-body { min-height: 123px; }
.image-note { margin: 18px 0 0; font-size: .78rem; color: var(--muted); }
.reel-section { background: #151821; border-block: 1px solid #2a2d38; }
.reel-layout { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(26px, 6vw, 84px); align-items: center; }
.reel-copy p:last-child { margin: 22px 0 0; max-width: 450px; color: var(--muted); }
.reel-screen { min-width: 0; }
.video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; background-color: #07080b; border: 1px solid var(--border); border-radius: 5px; }
.reel-fallback { display: grid; gap: 14px; justify-items: start; min-height: 230px; align-content: center; color: var(--muted); border: 1px solid var(--border); border-radius: 5px; padding: clamp(22px, 5vw, 52px); background: radial-gradient(at 80% 20%,#303751,#181b27 65%); }
.reel-fallback p { margin: 0; }
.career { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 92px); }
.career-bio { display: grid; grid-template-columns: minmax(0, 1fr) clamp(110px, 14vw, 170px); gap: clamp(16px, 3vw, 32px); align-items: start; margin-top: 22px; }
.career-bio p { margin: 0; color: var(--muted); }
.career-portrait { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 5px; }
.career h3 { font-size: 1rem; margin: 0 0 14px; }
.formation { margin: 0 0 30px; }
.formation > div { border-top: 1px solid var(--border); padding: 13px 0; }
.formation > div:last-child { border-bottom: 1px solid var(--border); }
.formation dt { font-weight: 600; }
.formation dd { margin: 2px 0 0; color: var(--muted); font-size: .87rem; }
.skills-list { display: flex; list-style: none; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.skills-list li { border: 1px solid var(--border); border-radius: 4px; padding: 5px 10px; font-size: .82rem; color: var(--muted); }
.award-section { background: #18181c; border-block: 1px solid #333138; }
.awards { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; margin-top: 32px; }
.awards article { min-width: 0; border-top: 1px solid #d4ae79a0; padding: 17px 5px 0 0; }
.awards h3 { font-size: clamp(1.2rem, 2.5vw, 1.72rem); letter-spacing: -.04em; margin-bottom: 9px; }
.awards p:not(.eyebrow), .text-link { font-size: .86rem; color: var(--muted); }
.awards .eyebrow { min-height: 22px; margin-bottom: 12px; }
.award-highlights, .award-list ul { margin: 0; padding-left: 1.2rem; color: var(--muted); font-size: .86rem; }
.award-highlights li + li, .award-list li + li { margin-top: 4px; }
.award-details { margin-top: 20px; }
.award-details summary { width: fit-content; cursor: pointer; color: var(--gold); font-weight: 600; }
.award-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); gap: 20px; margin: 18px 0; }
.award-list h4 { margin: 0 0 6px; font-size: .95rem; }
.award-list .text-link { display: inline-block; margin-top: 7px; }
.text-link { color: var(--text); text-decoration: underline; text-underline-offset: .22em; }
.text-link:hover { color: var(--gold); }
.contact { display: flex; align-items: end; gap: 28px; justify-content: space-between; flex-wrap: wrap; }
.contact .eyebrow { margin-bottom: 14px; }
.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: .84rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; padding-block: 23px; }
dialog { background: var(--panel); color: var(--text); padding: 0; border: 1px solid #4a4b55; border-radius: 7px; width: min(780px, calc(100% - 32px)); max-height: calc(100% - 32px); }
dialog::backdrop { background: #08090cd9; backdrop-filter: blur(5px); }
.dialog-shell { position: relative; }
.dialog-close { position: absolute; z-index: 1; top: 12px; right: 12px; display: grid; place-content: center; width: 40px; height: 40px; font-size: 1.65rem; cursor: pointer; border: 1px solid #ffffff55; border-radius: 5px; background: #0a0b10ec; }
.dialog-close:hover { color: var(--gold); }
.dialog-body { padding: clamp(24px, 5vw, 42px); padding-top: 34px; }
.dialog-body h2 { font-size: clamp(2rem, 6vw, 3.15rem); margin: 0 0 16px; }
.dialog-body > p:not(.eyebrow) { color: var(--muted); }
.dialog-body .eyebrow { margin-right: 28px; }
.dialog-links { display: flex; flex-wrap: wrap; gap: 11px; }
#compartilhar-dialog { width: min(480px, calc(100% - 32px)); }
#compartilhar-titulo { padding-right: 44px; font-size: clamp(1.5rem, 5vw, 2.3rem); }
.share-url { width: 100%; margin-bottom: 16px; padding: 10px; border: 1px solid var(--border); border-radius: 4px; background: var(--background); color: var(--text); font: inherit; }
.share-url:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.share-status { margin: 0; }
.share-status:not(:empty) { margin-top: 12px; }
#projeto-visual .art-illustration { aspect-ratio: 3 / 2; }
#projeto-visual .video-frame { border-radius: 0; border: 0; }
@media (max-width: 790px) {
  .hero { min-height: 0; background: #101115; }
  .hero-inner { padding-bottom: 16px; }
  .hero-scene { position: relative; z-index: auto; aspect-ratio: 4 / 3; background-position: right center; }
  .hero-scene-plane { left: auto; right: 0; transform: translateY(-50%) scale(var(--scene-scale, 1)); transform-origin: right center; }
  .hero-scene::after { background: linear-gradient(180deg,#101115 0%,#10111500 16%,#10111500 72%,#101115 100%); }
  .awards { gap: 24px; }
  .reel-layout { grid-template-columns: 1fr; }
}
@media (max-width: 740px) {
  html { scroll-padding-top: 72px; }
  .header-inner { min-height: 62px; gap: 8px; }
  .menu-toggle { display: block; }
  .navigation { margin-left: 0; display: none; position: absolute; inset: 100% 0 auto; padding: 12px var(--gutter) 22px; background: var(--background); border-bottom: 1px solid var(--border); }
  .navigation.is-open { display: grid; gap: 4px; }
  .navigation a { padding: 9px; }
  .navigation-contact { border-color: transparent; }
}
@media (max-width: 660px) {
  .hero-inner { padding-block: 48px 16px; }
  .hero h1 { font-size: clamp(3.83rem, 12vw, 5.55rem); }
  .project-grid, .career, .awards { grid-template-columns: 1fr; }
  .project-card .project-art { aspect-ratio: 3 / 2; }
  .project-card.compact .card-body { min-height: 100px; }
  .work .section-header { gap: 20px; margin-bottom: 22px; }
  .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .career-bio { grid-template-columns: 1fr; }
  .career-portrait { width: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.project-page { max-width: 900px; }
.project-page .project-back { display: inline-block; margin-bottom: 30px; }
.project-page h1 { margin: 0 0 22px; font-size: clamp(2.2rem, 7vw, 4.6rem); letter-spacing: -.055em; }
.project-page .project-summary { max-width: 64ch; margin: 22px 0; color: var(--muted); }
