: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 { 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; }
.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: 2px;
  top: 471px; left: 1169px; width: 240px; height: 142px;
  background: linear-gradient(#0c24313b, #0c24313b), url("assets/avid-timeline.webp") center / 100% 100%;
  transform: matrix3d(.9578664014, 0, 0, -.0001755566609,
                      .007071719017, .9688255053, 0, .0000294654959,
                      0, 0, 1, 0, 0, 0, 0, 1);
  overflow: hidden;
}
.hero-timeline-cursor {
  position: absolute; inset-block: 0; left: clamp(3px, var(--timeline-progress, 0%), calc(100% - 3px));
  width: 1px; background: #e8dbc3; box-shadow: 0 0 2px #131820;
}
.hero-timeline-cursor::before {
  content: ""; position: absolute; top: 0; left: -1.5px;
  border: 2px solid transparent; border-top: 4px solid #e8dbc3; border-bottom: 0;
}
.hero-showreel-mirror {
  --screen-edge: 2px;
  top: 469px; left: 1432px; width: 272px; height: 153px;
  background: #07080b url("assets/showreel.webp") center / contain no-repeat;
  transform: matrix3d(.8756082481, -.04154345703, 0, -.0004808200477,
                      0, .9512321884, 0, -.00002065875097,
                      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; }
.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; }
#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: 660px) {
  html { scroll-padding-top: 72px; }
  .header-inner { min-height: 62px; }
  .menu-toggle { display: block; }
  .navigation { 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; }
  .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; }
}
