:root {
  color-scheme: dark;
  --bg: #101010;
  --surface: #191919;
  --surface-hover: #202020;
  --ink: #f7f6f3;
  --muted: #aaa9a6;
  --line: #353535;
  --accent: #ed302f;
  --accent-hover: #ff4b47;
  --paper: #f4f3f0;
  --paper-ink: #171717;
  --paper-muted: #64635f;
  --paper-line: #d5d4d0;
  --header-bg: rgb(16 16 16 / 93%);
  --display: "Space Grotesk", "Arial", sans-serif;
  --body: "Manrope", "Arial", sans-serif;
  --header-height: 96px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #faf9f6;
  --surface: #efeeeb;
  --surface-hover: #e7e6e2;
  --ink: #171717;
  --muted: #64635f;
  --line: #d5d4d0;
  --accent: #ce2323;
  --accent-hover: #b71d1d;
  --paper: #eeede9;
  --header-bg: rgb(250 249 246 / 94%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 24px); scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
body.menu-open, body.dialog-open { overflow: hidden; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input { border-radius: 0; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: default; }
img, svg { display: block; }
img { max-width: 100%; }
svg { width: 24px; height: 24px; flex: 0 0 auto; }
p { margin: 0 0 1.25em; }
h1, h2, h3 { font-family: var(--display); line-height: 1.18; font-weight: 600; margin: 0; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--accent); color: #fff; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.container { width: min(100% - 112px, 1320px); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 20px; z-index: 200; background: var(--accent); color: #fff; padding: 12px 20px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.accent-text { color: var(--accent); }

/* Navegação: a gaveta fica fora do cabeçalho para ocupar a tela inteira. */
.site-header { position: sticky; top: 0; z-index: 80; background: var(--header-bg); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-height); }
.brand { display: flex; align-items: center; gap: 13px; flex: 0 0 auto; }
.brand-logo { width: 65px; height: 65px; object-fit: contain; transition: transform .6s var(--ease); }
.brand:hover .brand-logo { transform: rotate(-8deg); }
.brand strong { font-family: var(--display); font-size: 17px; line-height: 1.25; font-weight: 600; letter-spacing: -.5px; }
.brand strong > span, .footer-brand > span > span { color: var(--accent); }
.desktop-nav { display: flex; justify-content: flex-end; align-items: center; gap: clamp(12px, 1.4vw, 22px); margin-left: auto; }
.desktop-nav a { position: relative; font-size: 14px; font-weight: 600; white-space: nowrap; padding: 13px 0; color: var(--muted); transition: color .25s; }
.desktop-nav a::after { content: ""; position: absolute; height: 2px; left: 0; right: 0; bottom: 5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.desktop-nav a:hover, .desktop-nav a[aria-current="location"] { color: var(--ink); }
.desktop-nav a:hover::after, .desktop-nav a[aria-current="location"]::after { transform: scaleX(1); }
.desktop-nav .nav-contact { color: var(--ink); }
.header-controls { display: flex; align-items: center; gap: 3px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 44px; padding: 8px; border: 0; background: transparent; color: var(--ink); transition: color .25s, background .25s; }
.icon-button:hover { color: var(--accent); }
.icon-button svg { width: 20px; height: 20px; }
.icon-moon, .icon-play { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }
[data-motion="paused"] .icon-pause { display: none; }
[data-motion="paused"] .icon-play { display: block; }
[data-theme="light"] .brand-logo, [data-theme="light"] .contact-logo, [data-theme="light"] .footer-brand img, [data-theme="light"] .mobile-nav-brand img { filter: brightness(0); }
.menu-toggle { display: none; position: relative; width: 44px; margin-left: 8px; }
.menu-toggle span { position: absolute; width: 23px; height: 2px; background: currentColor; transition: transform .35s var(--ease); }
.menu-toggle span:first-child { transform: translateY(-4px); }
.menu-toggle span:last-child { transform: translateY(4px); }
.menu-open .menu-toggle span:first-child { transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: rotate(-45deg); }
.reading-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.reading-progress span { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.menu-overlay { position: fixed; inset: 0; z-index: 60; background: rgb(0 0 0 / 65%); backdrop-filter: blur(6px); }
.mobile-nav { position: fixed; top: var(--header-height); right: 0; bottom: 0; z-index: 70; width: min(500px, 88vw); padding: 24px 40px 40px; overflow-y: auto; background: var(--bg); border-left: 1px solid var(--line); visibility: hidden; transform: translateX(102%); transition: transform .5s var(--ease), visibility 0s .5s; }
.menu-open .mobile-nav { visibility: visible; transform: none; transition: transform .5s var(--ease), visibility 0s; }
.mobile-nav-brand { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.mobile-nav-links { display: grid; gap: 0; padding-top: 16px; }
.mobile-nav-links a { font-family: var(--display); font-size: clamp(21px, 3.2vw, 30px); line-height: 1.3; padding: 10px 0; transition: color .25s, transform .25s; }
.mobile-nav-links a:hover, .mobile-nav-links a[aria-current="location"] { color: var(--accent); transform: translateX(7px); }
.text-button { border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 9px 24px; margin-top: 20px; }

/* Abertura editorial e fotografia original. */
.hero { position: relative; isolation: isolate; overflow: hidden; }
#brand-background { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-grid { position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: calc((100vw - 112px) / 6) 100%; background-position: 56px 0; opacity: .15; mask-image: linear-gradient(to bottom, #000, transparent 95%); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 70px; padding-top: 76px; padding-bottom: 90px; }
.eyebrow { font-size: 12px; text-transform: uppercase; font-weight: 700; letter-spacing: .18em; }
.hero-intro { display: flex; align-items: center; gap: 12px; margin-bottom: 23px; }
.hero-intro::before { content: ""; width: 30px; height: 2px; background: var(--accent); }
.hero h1 { font-size: clamp(58px, 5.9vw, 91px); letter-spacing: -.065em; line-height: 1.025; }
.hero h1 > span { display: block; }
.title-dot { color: var(--ink); }
.hero-description { color: var(--muted); font-size: 16px; line-height: 1.9; max-width: 510px; margin-top: 28px; margin-bottom: 27px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { position: relative; min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 36px; padding: 13px 25px; border: 1px solid transparent; font-size: 14px; font-weight: 700; overflow: hidden; transition: background .3s, border-color .3s, transform .35s var(--ease); }
.button:hover { transform: translateY(-4px); }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-hover); }
.button-mark { font-size: 22px; font-weight: 400; line-height: 1; transition: transform .5s var(--ease); }
.button:hover .button-mark { transform: rotate(90deg); }
.button-outline { border-color: var(--line); background: transparent; min-width: 130px; }
.button-outline:hover { border-color: var(--ink); background: var(--surface); }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 23px 0 0; }
.social-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.5; vertical-align: middle; transition: border-color .3s, color .3s, background .3s, transform .35s var(--ease); }
.social-link .social-icon { width: 18px; height: 18px; flex: 0 0 18px; transition: transform .35s var(--ease); }
.social-link:hover, .social-link:focus-visible { color: #fff; border-color: #cf2525; background: #cf2525; }
.contact-socials-label { display: block; margin-bottom: 10px; }
.contact-social-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.contact-social-actions .social-link { min-height: 48px; padding: 10px 16px; }
@media (hover: hover) and (pointer: fine) {
  .social-link:hover { transform: translateY(-3px); }
  .social-link:hover .social-icon { transform: rotate(-7deg); }
}
.hero-visual { position: relative; width: min(100% - 20px, 454px); justify-self: end; padding-bottom: 25px; padding-top: 25px; }
.portrait-frame { position: relative; aspect-ratio: 4 / 4.7; overflow: hidden; background: #bbb; transform: translate3d(0, var(--portrait-y, 0px), 0); }
.portrait { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: grayscale(1) contrast(1.08); transition: filter 1s, transform 1.5s var(--ease); }
.hero-visual:hover .portrait { filter: grayscale(.15) contrast(1.03); transform: scale(1.035); }
.portrait-outline { position: absolute; top: 49px; bottom: 1px; left: 24px; right: -24px; border: 1px solid var(--accent); }
.portrait-grain { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 65%, rgb(0 0 0 / 25%)); pointer-events: none; }
.portrait-corner { position: absolute; width: 27px; height: 27px; }
.corner-top { top: 12px; left: 12px; border-top: 1px solid #fff9; border-left: 1px solid #fff9; }
.corner-bottom { bottom: 12px; right: 12px; border-bottom: 1px solid #fff9; border-right: 1px solid #fff9; }
.logo-stamp { position: absolute; left: -44px; top: -10px; width: 124px; height: 124px; background: var(--accent); display: grid; place-items: center; transform: rotate(-9deg); animation: stamp-sway 10s ease-in-out infinite; }
.logo-stamp img { width: 116px; height: 116px; object-fit: contain; }
.experience-badge { position: absolute; left: -50px; bottom: 1px; display: flex; align-items: center; gap: 17px; background: var(--ink); color: var(--bg); padding: 22px 26px; box-shadow: 0 12px 35px #0002; }
.stat-value { font-family: var(--display); font-weight: 600; font-size: 76px; line-height: 1; letter-spacing: -.07em; }
.stat-label { font-size: 12px; line-height: 1.65; }
.portrait-caption { position: absolute; right: -49px; top: 51%; font-size: 10px; letter-spacing: .23em; writing-mode: vertical-rl; color: var(--muted); }
.hero-bottom { display: flex; align-items: center; gap: 32px; padding-bottom: 28px; }
.hero-bottom-line { flex: 1; height: 1px; background: var(--line); }
.scroll-cue { display: flex; gap: 16px; align-items: center; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.scroll-cue-track { width: 17px; height: 27px; border: 1px solid var(--muted); border-radius: 20px; padding-top: 5px; display: flex; justify-content: center; }
.scroll-cue-track span { width: 2px; height: 6px; background: var(--accent); animation: scroll-cue 2s ease-in-out infinite; }

/* Seções e cards: revelação, flutuação e inclinação em camadas independentes. */
.section { position: relative; padding: 112px 0; scroll-margin-top: 0; }
.section-light { --ink: var(--paper-ink); --muted: var(--paper-muted); --line: var(--paper-line); --surface: #fff; --surface-hover: #f8f7f4; background: var(--paper); color: var(--ink); color-scheme: light; }
.section-heading { display: flex; align-items: baseline; gap: 17px; margin-bottom: 48px; }
.section-heading h2 { font-size: clamp(36px, 3.9vw, 58px); letter-spacing: -.055em; }
.section-heading h2 > span { color: var(--accent); }
.section-tick { display: block; width: 22px; height: 9px; flex: 0 0 auto; background: var(--accent); transform: translateY(-5px); }
.grid { display: grid; gap: 24px; }
.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { min-width: 0; }
.card-float { height: 100%; }
.card-surface { position: relative; isolation: isolate; height: 100%; padding: 30px; background: var(--surface); border: 1px solid var(--line); transition: border-color .35s, box-shadow .35s, transform .55s var(--ease); overflow: hidden; transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); }
.card-surface::after { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(350px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgb(237 48 47 / 8%), transparent 65%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.card h3 { font-size: 21px; letter-spacing: -.03em; line-height: 1.4; }
.card p { color: var(--muted); font-size: 16px; line-height: 1.9; margin-top: 18px; }
.card.is-visible .card-float { animation: card-float var(--float-duration, 7s) ease-in-out var(--float-delay, 0s) infinite; }
.card:not(.is-visible) .card-float { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card-surface { border-color: var(--accent); box-shadow: 0 20px 45px #00000012; }
  .card:hover .card-surface::after { opacity: 1; }
  .card:hover .card-float { animation-play-state: paused; }
}
.reveal { opacity: 1; transform: none; }
.motion-ready .reveal { opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.motion-ready .reveal.is-visible { opacity: 1; transform: none; }
.reveal.is-visible.is-offscreen .card-float { animation-play-state: paused; }

.about-section { border-bottom: 1px solid var(--line); }
.about-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 110px; align-items: center; }
.about-lead { font-size: 21px; line-height: 1.8; letter-spacing: -.02em; }
.expertise-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; }
.expertise-list li { position: relative; padding-left: 22px; color: var(--muted); font-size: 16px; }
.expertise-list li::before { content: "+"; position: absolute; left: 0; color: var(--accent); font-family: var(--display); }
.teaching-card .card-surface { padding: 42px; min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; }
.teaching-card h3 { margin-bottom: 24px; }
.teaching-logo { position: absolute; top: 10px; right: 20px; width: 200px; height: 200px; opacity: .12; background: var(--accent); mask: url("../assets/images/logo.png") center / contain no-repeat; transform: rotate(9deg); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { border: 1px solid var(--line); padding: 7px 11px; font-size: 12px; background: var(--surface); }
.education-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.education-grid .card:last-child { grid-column: span 3; }
.education-grid .card:last-child ul { columns: 3; column-gap: 48px; }
.education-grid .card-surface { border-top: 2px solid var(--accent); }
.education-grid .card h3 { min-height: 60px; }
.education-grid .card:last-child h3 { min-height: 0; margin-bottom: 20px; }
.education-list { margin: 24px 0 0; padding-left: 17px; color: var(--muted); font-size: 16px; line-height: 1.95; }
.education-list li { padding-left: 5px; margin-bottom: 8px; break-inside: avoid; }
.education-list li::marker { color: var(--accent); }
.experience-layout { display: grid; grid-template-columns: .65fr 1.35fr; gap: 70px; }
.experience-layout > .section-heading { align-self: start; position: sticky; top: calc(var(--header-height) + 50px); }
.timeline { list-style: none; padding: 0 0 0 31px; margin: 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 40px 20px; margin: 0 0 32px; border-bottom: 1px solid var(--line); }
.timeline li:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }
.timeline li::before { content: ""; position: absolute; width: 9px; height: 9px; left: -36px; top: 12px; background: var(--accent); box-shadow: 0 0 0 6px var(--bg); }
.time { font-family: var(--display); color: var(--accent); font-size: 16px; margin-bottom: 12px; }
.timeline-item h3 { font-size: 25px; letter-spacing: -.04em; }
.timeline-item p { margin: 12px 0 0; color: var(--muted); font-size: 16px; }

.section-topline { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
.section-topline .section-heading { margin-bottom: 0; }
.search-field { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); width: 270px; padding: 9px 0; }
.search-field svg { width: 18px; height: 18px; color: var(--muted); }
.search-field input { min-width: 0; width: 100%; background: transparent; border: 0; color: var(--ink); padding: 5px; font-size: 13px; }
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 36px; }
.chip { background: transparent; color: var(--muted); border: 1px solid var(--line); padding: 8px 20px; font-size: 12px; font-weight: 600; transition: background .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--paper-ink); color: #fff; border-color: var(--paper-ink); }
.projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-card .card-surface { display: flex; flex-direction: column; min-height: 330px; padding: 34px; }
.project-card:first-child .card-surface { background: #181818; color: #f7f6f3; --muted: #b4b2ae; --line: #454545; }
.project-card h3 { max-width: 85%; font-size: 29px; letter-spacing: -.045em; margin-top: 28px; }
.project-card p { max-width: 430px; margin-bottom: 32px; }
.project-symbol { position: absolute; right: 28px; top: 25px; color: var(--accent); }
.project-symbol svg { width: 26px; height: 26px; }
.project-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: auto; border-top: 1px solid var(--line); padding-top: 18px; }
.project-categories { font-size: 11px; color: var(--muted); }
.project-open { display: inline-flex; align-items: center; gap: 24px; border: 0; background: transparent; color: inherit; padding: 8px 0 8px 15px; font-size: 12px; font-weight: 700; }
.project-open span { color: var(--accent); font-size: 23px; font-weight: 400; transition: transform .4s; }
.project-open:hover span { transform: rotate(90deg); }
.empty-state { border: 1px solid var(--line); padding: 40px; color: var(--muted); }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; font-size: 11px; line-height: 1.8; color: var(--muted); }
.meta-status { color: var(--accent); }
.card-year { display: inline-block; font-family: var(--display); font-size: 38px; letter-spacing: -.06em; line-height: 1; color: var(--accent); margin-bottom: 35px; }
#lista-eventos .card h3 { font-size: 21px; }
#lista-eventos .card-meta { display: block; }
.three-columns .card-surface { min-height: 290px; }
.three-columns .card p:last-child { margin-bottom: 0; }
.text-link { display: inline; background: transparent; border: 0; border-bottom: 1px solid var(--accent); color: var(--accent); padding: 0; font: inherit; cursor: pointer; transition: color .3s; overflow-wrap: anywhere; }
.text-link:hover { color: var(--ink); }
.event-slides { display: inline-block; margin-top: 16px; font-size: 13px; }

.publications { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.publication { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease), background .4s; }
.publication:hover { padding-inline: 20px; background: #fff7; }
.publication h3 { font-size: clamp(19px, 1.75vw, 24px); letter-spacing: -.025em; line-height: 1.45; max-width: 850px; }
.publication p { font-size: 12px; color: var(--muted); margin: 9px 0 0; }
.publication-link { font-size: 12px; padding: 12px 0 12px 20px; border-bottom: 1px solid var(--accent); }
.contact-section { overflow: hidden; isolation: isolate; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 120px; align-items: start; }
.contact-copy { padding-top: 16px; }
.contact-copy .section-heading { margin-bottom: 32px; }
.contact-copy h2 { font-size: clamp(56px, 6.7vw, 96px); }
.contact-copy p { font-size: 16px; color: var(--muted); line-height: 2; max-width: 400px; }
.contact-copy .contact-note { margin-top: 38px; font-size: 12px; }
.contact-logo { margin-top: 60px; margin-left: -18px; }
.contact-watermark { position: absolute; left: -200px; bottom: -180px; width: 850px; height: 850px; z-index: -1; opacity: .025; background: var(--accent); mask: url("../assets/images/logo.png") center / contain no-repeat; transform: rotate(-14deg); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 28px; padding-bottom: 28px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 13px; }
.footer-brand img { width: 48px; height: 48px; }
.footer-inner small { font-size: 10px; color: var(--muted); }
.back-to-top { display: grid; place-items: center; border: 1px solid var(--line); width: 56px; height: 44px; font-size: 11px; transition: border-color .3s, color .3s; }
.back-to-top:hover { border-color: var(--accent); color: var(--accent); }

.project-dialog { position: fixed; margin: auto; padding: 0; width: min(760px, calc(100% - 32px)); max-width: calc(100% - 32px); max-height: calc(100dvh - 48px); border: 1px solid var(--line); background: var(--bg); color: var(--ink); overflow-y: auto; overflow-x: hidden; }
.project-dialog::backdrop { background: #000b; backdrop-filter: blur(8px); }
.project-dialog[open] { animation: dialog-in .45s var(--ease); }
.dialog-inner { position: relative; padding: 48px; min-width: 0; }
.dialog-close { position: absolute; right: 15px; top: 15px; }
.dialog-accent { width: 40px; height: 5px; background: var(--accent); margin-bottom: 30px; }
.dialog-inner h2 { font-size: 34px; letter-spacing: -.04em; margin-bottom: 22px; overflow-wrap: anywhere; padding-right: 10px; }
.dialog-inner > p { color: var(--muted); font-size: 15px; }
.dialog-links { display: flex; flex-wrap: wrap; gap: 24px; padding: 0; list-style: none; font-size: 13px; }
.dialog-links a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.chart-figure { margin: 40px 0 0; border-top: 1px solid var(--line); padding-top: 20px; }
.chart-figure figcaption { font-size: 11px; color: var(--muted); }
#chart { width: 100%; height: auto; display: block; }
.noscript-message { padding: 25px; text-align: center; }

@keyframes card-float { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(0, -6px, 0) rotate(var(--float-rotation, .25deg)); } }
@keyframes stamp-sway { 0%, 100% { transform: translate3d(0, 0, 0) rotate(-9deg); } 50% { transform: translate3d(0, -8px, 0) rotate(-4deg); } }
@keyframes scroll-cue { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(8px); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(22px) scale(.98); } to { opacity: 1; transform: none; } }

/* Responsividade sem depender de uma largura fixa de canvas ou iframe. */
@media (min-width: 1500px) { .hero-inner { gap: 100px; } }
@media (max-width: 1279px) {
  .desktop-nav { display: none; }
  .header-controls { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .hero-inner { gap: 65px; }
  .hero h1 { font-size: clamp(60px, 6.1vw, 78px); }
  .about-layout { gap: 60px; }
  .contact-layout { gap: 70px; }
}
@media (max-width: 1000px) {
  :root { --header-height: 80px; }
  .container { width: calc(100% - 64px); }
  .brand-logo { width: 55px; height: 55px; }
  .brand strong { font-size: 15px; }
  .hero-inner { gap: 50px; padding-top: 70px; padding-bottom: 80px; }
  .hero h1 { font-size: clamp(45px, 6.1vw, 63px); }
.hero-description { font-size: 16px; }
  .hero-visual { width: calc(100% - 10px); }
  .portrait-frame { aspect-ratio: 4 / 5.8; }
  .logo-stamp { width: 95px; height: 95px; left: -30px; top: 0; }
  .logo-stamp img { width: 90px; height: 90px; }
  .experience-badge { left: -30px; padding: 18px 20px; }
  .stat-value { font-size: 61px; }
  .portrait-caption { right: -34px; font-size: 9px; }
  .section { padding: 85px 0; }
  .about-layout { gap: 40px; }
  .about-lead { font-size: 18px; }
  .teaching-card .card-surface { padding: 28px; }
  .education-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .education-grid .card:last-child { grid-column: span 2; }
  .education-grid .card:last-child ul { columns: 2; }
  .three-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #lista-orientacoes .card:last-child, #lista-bancas .card:last-child { grid-column: span 2; }
  .three-columns .card-surface { min-height: 250px; }
  .project-card h3 { font-size: 25px; }
  .card-surface, .project-card .card-surface { padding: 28px; }
  .contact-layout { gap: 45px; }
}
@media (max-width: 700px) {
  :root { --header-height: 76px; }
  html { scroll-padding-top: calc(var(--header-height) + 18px); }
  .container { width: calc(100% - 40px); }
  .header-inner { gap: 10px; }
  .brand { gap: 7px; }
  .brand-logo { width: 49px; height: 49px; }
  .brand strong { font-size: 13px; letter-spacing: -.3px; }
  .header-controls { gap: 0; }
  .icon-button { width: 35px; }
  .menu-toggle { margin-left: 3px; width: 36px; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; padding-top: 44px; padding-bottom: 64px; }
  .hero-intro { font-size: 10px; margin-bottom: 22px; }
  .hero h1 { font-size: clamp(48px, 10.8vw, 74px); line-height: 1.04; }
  .hero-description { font-size: 16px; max-width: 470px; margin-top: 24px; margin-bottom: 25px; }
  .hero-actions .button { min-height: 51px; padding: 12px 22px; }
  .social-links { margin-top: 20px; }
  .hero-visual { width: min(calc(100% - 36px), 420px); justify-self: center; margin-left: 5px; padding-top: 15px; }
  .portrait-frame { aspect-ratio: 4 / 4.55; }
  .portrait-outline { top: 34px; right: -18px; left: 18px; bottom: 6px; }
  .portrait-caption { right: -28px; font-size: 8px; }
  .logo-stamp { width: 96px; height: 96px; left: -20px; top: -10px; }
  .experience-badge { left: -20px; bottom: -2px; padding: 17px 21px; }
  .stat-value { font-size: 64px; }
  .hero-bottom { padding-bottom: 23px; }
  .hero-grid { background-size: calc((100vw - 40px) / 3) 100%; background-position: 20px 0; }
  .section { padding: 66px 0; }
  .section-heading { margin-bottom: 32px; gap: 12px; }
  .section-heading h2 { font-size: clamp(35px, 7.8vw, 49px); line-height: 1.17; }
  .section-tick { width: 15px; height: 7px; transform: translateY(-3px); }
  .about-layout, .experience-layout, .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .about-lead { font-size: 19px; }
  .expertise-list { gap: 13px; }
  .expertise-list li { font-size: 16px; }
  .teaching-card .card-surface { min-height: 320px; padding: 30px; }
  .grid { gap: 22px; }
  .education-grid, .three-columns, .projects-grid { grid-template-columns: minmax(0, 1fr); }
  .education-grid .card:last-child, #lista-orientacoes .card:last-child, #lista-bancas .card:last-child { grid-column: auto; }
  .education-grid .card:last-child ul { columns: auto; }
  .education-grid .card h3 { min-height: 0; }
  .education-list { margin-top: 20px; font-size: 16px; }
  .card h3 { font-size: 23px; }
  .card p { font-size: 16px; }
  .card-surface, .project-card .card-surface { padding: 28px; }
  .experience-layout > .section-heading { position: static; margin-bottom: 0; }
  .timeline { margin-left: 5px; padding-left: 20px; }
  .timeline li { padding-left: 7px; padding-bottom: 30px; margin-bottom: 26px; }
  .timeline li::before { left: -25px; }
  .timeline-item h3 { font-size: 24px; }
  .timeline-item p { font-size: 16px; }
  .section-topline { align-items: stretch; flex-direction: column; gap: 21px; margin-bottom: 24px; }
  .search-field { width: 100%; }
  .search-field input { padding: 8px 5px; font-size: 14px; }
  .filters { gap: 7px; margin-bottom: 28px; }
  .chip { padding: 9px 18px; }
  .project-card h3 { font-size: 28px; }
  .project-card .card-surface { min-height: 320px; }
  .project-categories { font-size: 11px; }
  .card-meta { font-size: 12px; }
  .three-columns .card-surface { min-height: 260px; }
  .publication { gap: 16px; padding: 25px 0; }
  .publication h3 { font-size: 19px; }
  .publication p { font-size: 11px; }
  .publication-link { padding-left: 0; font-size: 11px; }
  .publication:hover { padding-inline: 0; }
  .contact-copy { padding-top: 0; }
  .contact-copy h2 { font-size: 67px; }
  .contact-copy p { font-size: 15px; }
  .contact-copy .contact-note { margin-top: 24px; }
  .contact-logo { width: 100px; height: 100px; margin-top: 22px; }
  .contact-watermark { width: 600px; height: 600px; }
  .footer-inner { flex-wrap: wrap; gap: 14px; padding-top: 22px; padding-bottom: 22px; }
  .footer-inner small { order: 3; flex-basis: 100%; font-size: 10px; }
  .footer-brand { font-size: 12px; }
  .back-to-top { margin-left: auto; }
  .mobile-nav { padding: 20px 28px 32px; width: min(420px, 88vw); }
  .mobile-nav-brand { display: none; }
  .mobile-nav-links { padding-top: 0; }
  .mobile-nav-links a { font-size: 25px; padding: 10px 0; }
  .dialog-inner { padding: 34px 25px; }
  .dialog-inner h2 { font-size: 28px; padding-right: 16px; }
  .dialog-inner > p { font-size: 14px; }
  .dialog-close { top: 8px; right: 8px; }
}
@media (max-width: 359px) {
  .container { width: calc(100% - 32px); }
  .brand strong { font-size: 12px; }
  .brand-logo { width: 42px; height: 42px; }
  .icon-button { width: 32px; }
  .hero h1 { font-size: 45px; }
  .card-surface, .project-card .card-surface { padding: 23px; }
  .chip { padding-inline: 14px; }
  .project-card h3 { font-size: 26px; }
}

/* O controle manual e a preferência do sistema desligam todo movimento. */
[data-motion="paused"] *, [data-motion="paused"] *::before, [data-motion="paused"] *::after { animation-play-state: paused !important; }
[data-motion="paused"] .portrait-frame, [data-motion="paused"] .card-surface { transform: none; }
[data-motion="paused"] .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-ready .reveal { opacity: 1; transform: none; }
  .portrait-frame, .card-surface { transform: none !important; }
}
@media print {
  .site-header, .mobile-nav, .menu-overlay, #brand-background, .hero-grid, .hero-bottom, .header-controls, .back-to-top, .contact-watermark { display: none !important; }
  :root { --bg: #fff; --ink: #111; --muted: #444; --surface: #fff; --line: #bbb; }
  .container { width: 100%; }
  .section { padding: 28px 0; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .card-float, .card-surface { animation: none !important; transform: none !important; }
  .card { break-inside: avoid; }
  .hero-inner { padding-top: 0; grid-template-columns: 1fr 1fr; }
}
