:root {
    color-scheme: only light;
    supported-color-schemes: light;
    --ink: #0c1220;
    --ink-soft: #3a4558;
    --paper: #f5f7fb;
    --paper-deep: #e8edf5;
    --navy: #132038;
    --navy-mid: #1c2f4a;
    --navy-deep: #0a0c10;
    --logo-blue: #1e4080;
    --logo-blue-dark: #0f2758;
    --logo-face: #141c28;
    --logo-silver: #c8ced8;
    --logo-silver-mid: #9aa3b0;
    --logo-silver-soft: #e8ecf2;
    --gold: #1e3a73;
    --gold-bright: #2a4f96;
    --gold-soft: rgba(30, 58, 115, 0.12);
    --line: rgba(19, 32, 56, 0.1);
    --white: #ffffff;
    --shadow: 0 24px 60px rgba(12, 18, 32, 0.12);
    --font-display: "Orbitron", "Syne", sans-serif;
    --font-body: "Manrope", sans-serif;
    --header-h: 64px;
    --footer-h: 48px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    color-scheme: only light;
    background-color: #f8f9fc;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background-color: #f8f9fc;
    background-image:
        radial-gradient(1200px 700px at 12% -10%, rgba(184, 150, 46, 0.12), transparent 55%),
        radial-gradient(900px 600px at 100% 0%, rgba(28, 47, 74, 0.1), transparent 50%),
        linear-gradient(180deg, #f8f9fc 0%, var(--paper) 40%, #eef2f8 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Impede o Opera/Chrome de forçar tema escuro nesta página */
@media (prefers-color-scheme: dark) {
    :root,
    html,
    body {
        color-scheme: only light;
        background-color: #f8f9fc;
        color: var(--ink);
    }
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

/* ——— Header ——— */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    background: rgba(245, 247, 251, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    animation: headerIn 0.7s var(--ease) both;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.logo-full {
    height: 3rem;
    width: auto;
    max-width: min(55vw, 280px);
    display: block;
    object-fit: contain;
    object-position: center center;
}

.brand-signal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 0.35rem;
    width: 100%;
    padding: 0.85rem 1.15rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(19, 32, 56, 0.08);
    box-shadow: 0 10px 28px rgba(12, 18, 32, 0.1);
}

.brand-logo-full {
    width: min(100%, 640px);
    height: auto;
    max-height: none;
    min-height: clamp(5.5rem, 14vw, 9.5rem);
    object-fit: contain;
    object-position: center center;
    display: block;
    margin-inline: auto;
    filter: drop-shadow(0 4px 12px rgba(8, 12, 20, 0.18));
}

.logo-mark {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.45rem;
    display: block;
    object-fit: contain;
    background: transparent;
    box-shadow: none;
}

.logo-wordmark {
    height: 1.65rem;
    width: auto;
    display: block;
    border-radius: 0.35rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0.15rem;
}

nav a {
    display: block;
    text-decoration: none;
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

nav a:hover,
nav a.active {
    color: var(--navy);
    background: var(--gold-soft);
}

.menu-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.2rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
}

.lang-switch a {
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.lang-switch a:hover {
    color: var(--navy);
}

.lang-switch a.active {
    background: var(--navy);
    color: var(--white);
}

.menu-toggle span {
    display: block;
    width: 1.35rem;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ——— Tabs ——— */
main {
    flex: 1;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeUp 0.55s var(--ease) both;
}

/* Home fills the viewport — no vertical scroll */
body:has(#tab-inicio.active) {
    height: 100svh;
    max-height: 100svh;
    overflow: hidden;
}

body:has(#tab-inicio.active) main {
    min-height: 0;
    overflow: hidden;
}

#tab-inicio.active {
    display: flex;
    flex-direction: column;
    height: calc(100svh - var(--header-h) - var(--footer-h));
    max-height: calc(100svh - var(--header-h) - var(--footer-h));
    overflow: hidden;
}

/* Gestão Pública — cabe na viewport sem rolagem */
body:has(#tab-publica.active) {
    height: 100svh;
    max-height: 100svh;
    overflow: hidden;
}

body:has(#tab-publica.active) main {
    min-height: 0;
    overflow: hidden;
}

#tab-publica.active {
    display: flex;
    flex-direction: column;
    height: calc(100svh - var(--header-h) - var(--footer-h));
    max-height: calc(100svh - var(--header-h) - var(--footer-h));
    overflow: hidden;
}

#tab-publica.active .page-shell {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    width: min(1180px, 100%);
    padding: clamp(0.85rem, 2vw, 1.35rem) clamp(1.1rem, 3vw, 2rem) 0.85rem;
    box-sizing: border-box;
}

#tab-publica.active .page-header {
    margin-bottom: 0.75rem;
    flex: 0 0 auto;
}

#tab-publica.active .page-header h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    margin-bottom: 0.35rem;
}

#tab-publica.active .eyebrow {
    margin-bottom: 0.3rem;
    font-size: 0.7rem;
}

#tab-publica.active .page-lead-oneline {
    max-width: none;
    width: 100%;
    white-space: nowrap;
    font-size: clamp(0.82rem, 1.15vw, 0.98rem);
}

#tab-publica.active .grid-cards-publica {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    align-content: stretch;
}

#tab-publica.active .card {
    padding: 0.75rem 0.85rem 0.85rem;
    border-radius: 0.75rem;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#tab-publica.active .card h3 {
    font-size: clamp(0.88rem, 1.1vw, 1rem);
    margin-bottom: 0.35rem;
    -webkit-text-stroke-width: 0.028em;
}

#tab-publica.active .card p {
    font-size: clamp(0.78rem, 0.95vw, 0.88rem);
    line-height: 1.35;
    overflow: hidden;
}

#tab-publica.active .card:hover {
    transform: translateY(-2px);
}

/* Iniciativa Privada — mesmo espaçamento do topo que Gestão Pública */
body:has(#tab-privada.active) {
    height: 100svh;
    max-height: 100svh;
    overflow: hidden;
}

body:has(#tab-privada.active) main {
    min-height: 0;
    overflow: hidden;
}

#tab-privada.active {
    display: flex;
    flex-direction: column;
    height: calc(100svh - var(--header-h) - var(--footer-h));
    max-height: calc(100svh - var(--header-h) - var(--footer-h));
    overflow: hidden;
}

#tab-privada.active .page-shell {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    width: min(1180px, 100%);
    padding: clamp(0.85rem, 2vw, 1.35rem) clamp(1.1rem, 3vw, 2rem) 0.85rem;
    box-sizing: border-box;
}

#tab-privada.active .page-header {
    margin-bottom: 0.75rem;
    flex: 0 0 auto;
}

#tab-privada.active .page-header h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    margin-bottom: 0.35rem;
}

#tab-privada.active .eyebrow {
    margin-bottom: 0.3rem;
    font-size: 0.7rem;
}

#tab-privada.active .page-lead-oneline {
    max-width: none;
    width: 100%;
    white-space: nowrap;
    font-size: clamp(0.82rem, 1.15vw, 0.98rem);
}

#tab-privada.active .grid-cards {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    align-content: stretch;
}

#tab-privada.active .card {
    padding: 0.75rem 0.85rem 0.85rem;
    border-radius: 0.75rem;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#tab-privada.active .card h3 {
    font-size: clamp(0.88rem, 1.1vw, 1rem);
    margin-bottom: 0.35rem;
    -webkit-text-stroke-width: 0.028em;
}

#tab-privada.active .card p {
    font-size: clamp(0.78rem, 0.95vw, 0.88rem);
    line-height: 1.35;
    overflow: hidden;
}

/* C.V. — mesmo espaçamento do topo */
body:has(#tab-cv.active) {
    height: 100svh;
    max-height: 100svh;
    overflow: hidden;
}

body:has(#tab-cv.active) main {
    min-height: 0;
    overflow: hidden;
}

#tab-cv.active {
    display: flex;
    flex-direction: column;
    height: calc(100svh - var(--header-h) - var(--footer-h));
    max-height: calc(100svh - var(--header-h) - var(--footer-h));
    overflow: hidden;
}

#tab-cv.active .page-shell,
#tab-cv.active .cv-shell {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    width: min(1100px, 100%);
    padding: clamp(0.85rem, 2vw, 1.35rem) clamp(1.1rem, 3vw, 2rem) 0.85rem;
    box-sizing: border-box;
}

#tab-cv.active .page-header,
#tab-cv.active .cv-shell .page-header {
    margin-bottom: 0.65rem;
    flex: 0 0 auto;
}

#tab-cv.active .page-header h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    margin-bottom: 0.35rem;
}

#tab-cv.active .eyebrow {
    margin-bottom: 0.3rem;
    font-size: 0.7rem;
}

#tab-cv.active .page-lead-oneline {
    font-size: clamp(0.82rem, 1.15vw, 0.98rem);
}

#tab-cv.active .cv-frame-wrap {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: none;
}

/* Acadêmico — cabe na viewport sem rolagem */
body:has(#tab-academico.active) {
    height: 100svh;
    max-height: 100svh;
    overflow: hidden;
}

body:has(#tab-academico.active) main {
    min-height: 0;
    overflow: hidden;
}

#tab-academico.active {
    display: flex;
    flex-direction: column;
    height: calc(100svh - var(--header-h) - var(--footer-h));
    max-height: calc(100svh - var(--header-h) - var(--footer-h));
    overflow: hidden;
}

#tab-academico.active .page-shell {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    width: min(1100px, 100%);
    padding: clamp(0.85rem, 2vw, 1.35rem) clamp(1.1rem, 3vw, 2rem) 0.85rem;
    box-sizing: border-box;
}

#tab-academico.active .page-header {
    margin-bottom: 0.75rem;
    flex: 0 0 auto;
}

#tab-academico.active .page-header h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    margin-bottom: 0.35rem;
}

#tab-academico.active .eyebrow {
    margin-bottom: 0.3rem;
    font-size: 0.7rem;
}

#tab-academico.active .page-lead-oneline {
    max-width: none;
    width: 100%;
    white-space: nowrap;
    font-size: clamp(0.78rem, 1.05vw, 0.95rem);
}

#tab-academico.active .timeline-academico {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

#tab-academico.active .timeline-item {
    padding: 0.7rem 1rem;
    border-radius: 0.75rem;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#tab-academico.active .timeline-item h3 {
    font-size: clamp(0.92rem, 1.15vw, 1.05rem);
    margin-bottom: 0.2rem;
    -webkit-text-stroke-width: 0.028em;
}

#tab-academico.active .institution {
    font-size: clamp(0.75rem, 0.95vw, 0.84rem);
    margin-bottom: 0.3rem;
}

#tab-academico.active .timeline-item p:last-child {
    font-size: clamp(0.78rem, 0.95vw, 0.88rem);
    line-height: 1.35;
    overflow: hidden;
}

/* Capoeira — cabe na viewport sem rolagem */
body:has(#tab-capoeira.active) {
    height: 100svh;
    max-height: 100svh;
    overflow: hidden;
}

body:has(#tab-capoeira.active) main {
    min-height: 0;
    overflow: hidden;
}

#tab-capoeira.active {
    display: flex;
    flex-direction: column;
    height: calc(100svh - var(--header-h) - var(--footer-h));
    max-height: calc(100svh - var(--header-h) - var(--footer-h));
    overflow: hidden;
}

#tab-capoeira.active .page-shell {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    width: min(1100px, 100%);
    padding: clamp(0.7rem, 1.6vw, 1.1rem) clamp(1.1rem, 3vw, 2rem) 0.7rem;
    box-sizing: border-box;
}

#tab-capoeira.active .page-header {
    margin-bottom: 0.55rem;
    flex: 0 0 auto;
}

#tab-capoeira.active .page-header h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    margin-bottom: 0.25rem;
}

#tab-capoeira.active .eyebrow {
    margin-bottom: 0.25rem;
    font-size: 0.7rem;
}

#tab-capoeira.active .page-lead-oneline {
    font-size: clamp(0.8rem, 1.05vw, 0.95rem);
}

#tab-capoeira.active .about-text {
    flex: 0 0 auto;
    gap: 0.4rem;
    font-size: clamp(0.82rem, 1vw, 0.92rem);
    line-height: 1.4;
}

#tab-capoeira.active .capoeira-thanks {
    margin-top: 0.15rem;
    padding: 0.55rem 0.85rem;
    font-size: clamp(0.82rem, 1vw, 0.92rem);
}

#tab-capoeira.active .gallery {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 0.75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    align-content: stretch;
}

#tab-capoeira.active .gallery-item {
    aspect-ratio: auto;
    height: 100%;
    max-height: min(28svh, 220px);
    border-radius: 0.7rem;
}

#tab-capoeira.active .gallery-item:hover {
    transform: translateY(-2px);
}

/* Contato — cabe na viewport sem rolagem */
body:has(#tab-contato.active) {
    height: 100svh;
    max-height: 100svh;
    overflow: hidden;
}

body:has(#tab-contato.active) main {
    min-height: 0;
    overflow: hidden;
}

#tab-contato.active {
    display: flex;
    flex-direction: column;
    height: calc(100svh - var(--header-h) - var(--footer-h));
    max-height: calc(100svh - var(--header-h) - var(--footer-h));
    overflow: hidden;
}

#tab-contato.active .page-shell {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    width: min(820px, 100%);
    padding: clamp(0.65rem, 1.5vw, 1rem) clamp(1rem, 3vw, 1.75rem) 0.65rem;
    box-sizing: border-box;
}

#tab-contato.active .page-header {
    margin-bottom: 0.55rem;
    flex: 0 0 auto;
}

#tab-contato.active .page-header h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    margin-bottom: 0.25rem;
}

#tab-contato.active .eyebrow {
    margin-bottom: 0.25rem;
    font-size: 0.7rem;
}

#tab-contato.active .page-lead-oneline {
    font-size: clamp(0.8rem, 1.05vw, 0.95rem);
}

#tab-contato.active .contact-panel {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

#tab-contato.active .contact-row {
    padding: 0.65rem 0.8rem;
    border-radius: 0.75rem;
    gap: 0.1rem;
}

#tab-contato.active .contact-row span:last-child {
    font-size: 0.88rem;
}

#tab-contato.active .contact-card-link {
    flex: 0 0 auto;
    margin: 0.45rem 0 0;
    font-size: 0.82rem;
    color: var(--ink-soft);
}

#tab-contato.active .contact-card-link a {
    color: var(--gold-bright);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

#tab-contato.active .contact-save {
    border-color: rgba(30, 58, 115, 0.28);
    background: rgba(30, 58, 115, 0.06);
}

#tab-contato.active .contact-form {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 0.65rem;
    padding: 0.75rem 0.95rem 0.85rem;
    gap: 0.35rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#tab-contato.active .contact-form-label {
    margin-top: 0.15rem;
    font-size: 0.68rem;
}

#tab-contato.active .contact-form textarea {
    min-height: 0;
    height: min(14svh, 110px);
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
    resize: none;
}

#tab-contato.active .star-rating .star {
    font-size: 1.55rem;
}

#tab-contato.active .rating-hint {
    font-size: 0.75rem;
}

#tab-contato.active .contact-submit {
    margin-top: 0.25rem;
    padding: 0.55rem 0.95rem;
    font-size: 0.84rem;
}

/* ——— Hero ——— */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 1.1fr);
    align-items: start;
    gap: clamp(1rem, 2.5vw, 2rem);
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 0.25rem clamp(1.25rem, 4vw, 2.5rem) 0;
    flex: 1 1 auto;
    min-height: 0;
}

.hero-visual {
    position: relative;
    width: min(100%, 34svh, 320px);
    max-width: 320px;
    margin-inline: auto;
    margin-top: 0;
    height: auto;
    max-height: none;
    background: transparent;
    overflow: visible;
    border-radius: 1.1rem;
    box-shadow: none;
    animation: fadeUp 0.9s var(--ease) both;
}

.hero-visual::after {
    display: none;
}

.hero-visual img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: unset;
    object-position: center top;
    transform: none;
    border-radius: 1.1rem;
    background: #ffffff;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 0.5rem 0 0;
    animation: copyIn 0.9s var(--ease) 0.15s both;
    min-height: 0;
}

.brand-underline {
    display: block;
    width: 2.75rem;
    height: 2px;
    margin: 0.55rem auto 0.7rem;
    background: linear-gradient(90deg, var(--gold), transparent);
}

/* Letras no estilo PJ: face escura + borda prata 3D */
.chrome-letter,
.hero-copy h1,
.page-header h2,
.card h3,
.timeline-item h3,
.cv-panel h3 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--logo-face);
    -webkit-text-stroke: 0.045em var(--logo-silver);
    paint-order: stroke fill;
    text-shadow:
        0.5px 0.5px 0 var(--logo-silver-soft),
        1px 1px 0 var(--logo-silver-mid),
        1.5px 2px 0 #6d7684,
        2px 3px 0 #4a5260,
        3px 5px 10px rgba(8, 12, 20, 0.28);
}

.hero-copy h1 {
    font-size: clamp(1.2rem, 2.1vw, 1.65rem);
    letter-spacing: 0.02em;
    line-height: 1.25;
    text-transform: none;
    max-width: 26ch;
    margin-bottom: 0.55rem;
    margin-inline: auto;
}

.hero-credentials {
    font-family: var(--font-body);
    font-size: clamp(0.72rem, 1.05vw, 0.9rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--navy);
    margin: -0.15rem auto 0.65rem;
    max-width: 42ch;
    line-height: 1.35;
}

.hero-lead {
    font-size: clamp(0.88rem, 1.15vw, 0.98rem);
    color: var(--ink-soft);
    max-width: 44ch;
    margin-bottom: 0.55rem;
    line-height: 1.45;
}

.hero-lead.secondary {
    margin-bottom: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
}

.btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.86rem;
    padding: 0.65rem 1.05rem;
    border-radius: 0.5rem;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 10px 28px rgba(19, 32, 56, 0.22);
}

.btn-primary:hover {
    background: var(--navy-mid);
}

.btn-ghost {
    background: transparent;
    color: var(--navy);
    border: 1px solid var(--line);
}

.btn-ghost:hover {
    background: var(--white);
    box-shadow: var(--shadow);
}

/* Quote pinned to bottom of home */
.intro-band {
    padding: 0.45rem clamp(1rem, 3vw, 2rem) 0.55rem;
    max-width: min(1120px, 96vw);
    width: 100%;
    margin: auto auto 0;
    flex: 0 0 auto;
}

.quote {
    position: relative;
    padding: 0.45rem 0 0.45rem 0.95rem;
    border-left: 2px solid var(--gold);
}

.quote p {
    font-family: var(--font-body);
    font-size: clamp(0.7rem, 1.05vw, 0.86rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.35;
    color: var(--navy);
    white-space: nowrap;
}

.quote cite {
    display: block;
    margin-top: 0.3rem;
    font-style: normal;
    font-size: 0.72rem;
    color: var(--ink-soft);
}

.site-footer {
    text-align: center;
    padding: 0.7rem 1rem;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.78rem;
    height: var(--footer-h);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* ——— Inner pages ——— */
.page-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2.5rem) 4rem;
}

.page-shell.narrow {
    width: min(760px, 100%);
}

.page-header {
    margin-bottom: 2.5rem;
}

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6rem;
}

.page-header h2 {
    font-size: clamp(1.7rem, 3.3vw, 2.45rem);
    letter-spacing: 0.01em;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.page-lead {
    color: var(--ink-soft);
    font-size: 1.05rem;
    max-width: 48ch;
}

.page-lead-oneline {
    max-width: none;
    width: 100%;
    white-space: nowrap;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.1rem;
}

.card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1.35rem 1.3rem 1.45rem;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(184, 150, 46, 0.35);
}

.card h3 {
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    margin-bottom: 0.55rem;
    -webkit-text-stroke-width: 0.035em;
}

.card p {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-item {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1.35rem 1.4rem;
    border-left: 3px solid var(--gold);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
    cursor: pointer;
}

a.timeline-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(30, 58, 115, 0.35);
}

.timeline-item h3 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    -webkit-text-stroke-width: 0.035em;
}

.institution {
    color: var(--gold);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.timeline-item p:last-child,
.about-text p,
.cv-panel p {
    color: var(--ink-soft);
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 1.05rem;
}

.capoeira-thanks {
    margin-top: 0.25rem;
    padding: 0.95rem 1.1rem;
    border-left: 3px solid var(--gold);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 0 0.75rem 0.75rem 0;
    color: var(--navy);
    font-size: 1.02rem;
    line-height: 1.5;
}

.capoeira-thanks strong {
    color: var(--ink);
}

.gallery {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.gallery-item {
    appearance: none;
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    padding: 0;
    overflow: hidden;
    cursor: zoom-in;
    background: #fff;
    aspect-ratio: 16 / 10;
    max-height: 180px;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(8, 12, 20, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    backdrop-filter: blur(4px);
}

.lightbox[hidden] {
    display: none !important;
}

.lightbox-img {
    max-width: min(1100px, 94vw);
    max-height: 88svh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.75rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.1rem;
    width: 2.6rem;
    height: 2.6rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--navy);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s var(--ease);
}

.lightbox-close:hover {
    transform: scale(1.06);
}

@media (max-width: 820px) {
    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}

.cv-panel {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1.75rem;
}

.cv-panel h3 {
    margin: 1.5rem 0 0.85rem;
    -webkit-text-stroke-width: 0.035em;
}

.cv-shell {
    width: min(1100px, 100%);
    padding-bottom: 2rem;
}

.cv-shell .page-header {
    margin-bottom: 1.1rem;
}

.cv-open-link {
    color: var(--gold-bright);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.cv-frame-wrap {
    position: relative;
    width: 100%;
    height: min(78svh, 920px);
    min-height: 520px;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
}

.cv-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.skills-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.skills-list li {
    position: relative;
    padding-left: 1.15rem;
    color: var(--ink-soft);
}

.skills-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--gold);
}

.contact-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1.15rem 1.35rem;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}

a.contact-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: rgba(184, 150, 46, 0.4);
}

.contact-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

.contact-row span:last-child {
    font-weight: 600;
    color: var(--navy);
    font-size: 1.05rem;
}

.contact-form {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1.25rem 1.35rem 1.4rem;
}

.contact-form-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 0.35rem;
}

.contact-form textarea {
    width: 100%;
    resize: vertical;
    min-height: 6.5rem;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
    background: #fff;
    line-height: 1.45;
}

.contact-form textarea:focus {
    outline: 2px solid rgba(30, 58, 115, 0.35);
    outline-offset: 1px;
}

.contact-honey {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
}

.star-rating {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.star-rating .star {
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 1.85rem;
    line-height: 1;
    color: #c5cad3;
    padding: 0.15rem;
    transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.star-rating .star:hover,
.star-rating .star.is-active,
.star-rating .star.is-hover {
    color: #e6a817;
    transform: scale(1.08);
}

.rating-hint {
    font-size: 0.82rem;
    color: var(--ink-soft);
    margin: 0;
}

.rating-hint.is-error {
    color: #b42318;
}

.contact-submit {
    align-self: flex-start;
    margin-top: 0.55rem;
}

/* ——— Motion ——— */
@keyframes headerIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes imageReveal {
    from { clip-path: inset(0 0 0 35%); opacity: 0.6; }
    to { clip-path: inset(0 0 0 0); opacity: 1; }
}

@keyframes imageZoom {
    from { opacity: 0; transform: scale(1.04); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes copyIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ——— Responsive ——— */
@media (max-width: 980px) {
    body:has(#tab-inicio.active),
    body:has(#tab-publica.active),
    body:has(#tab-privada.active),
    body:has(#tab-academico.active),
    body:has(#tab-cv.active),
    body:has(#tab-capoeira.active),
    body:has(#tab-contato.active) {
        height: auto;
        max-height: none;
        overflow: auto;
    }

    #tab-inicio.active,
    #tab-publica.active,
    #tab-privada.active,
    #tab-academico.active,
    #tab-cv.active,
    #tab-capoeira.active,
    #tab-contato.active {
        height: auto;
        max-height: none;
        overflow: visible;
    }

    #tab-publica.active .page-shell,
    #tab-privada.active .page-shell,
    #tab-academico.active .page-shell,
    #tab-cv.active .page-shell,
    #tab-cv.active .cv-shell,
    #tab-capoeira.active .page-shell,
    #tab-contato.active .page-shell {
        height: auto;
        padding: 1.25rem 1.1rem 2rem;
    }

    #tab-privada.active .grid-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
    }

    #tab-cv.active .cv-frame-wrap {
        height: min(70svh, 720px);
        min-height: 360px;
    }

    #tab-contato.active .contact-panel {
        grid-template-columns: 1fr;
    }

    #tab-contato.active .contact-form textarea {
        height: 120px;
        resize: vertical;
    }

    #tab-academico.active .timeline-academico {
        grid-template-rows: none;
        gap: 0.85rem;
    }

    #tab-capoeira.active .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem;
    }

    #tab-capoeira.active .gallery-item {
        max-height: 160px;
        height: auto;
        aspect-ratio: 16 / 10;
    }

    #tab-publica.active .page-lead-oneline {
        white-space: normal;
    }

    #tab-publica.active .grid-cards-publica {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        gap: 0.85rem;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        padding-top: 0.65rem;
        flex: none;
    }

    .hero-visual {
        order: 2;
        width: min(100%, 42vw, 280px);
        max-width: 280px;
        height: auto;
        max-height: none;
        margin: 0 auto;
        background: transparent;
    }

    .hero-visual img {
        width: 100%;
        height: auto;
        object-fit: unset;
        transform: none;
    }

    .hero-copy {
        order: 1;
        padding-top: 0;
        align-items: center;
        text-align: center;
        animation-name: fadeUp;
    }

    .hero-copy h1 {
        max-width: none;
        font-size: 1.3rem;
    }

    .intro-band {
        margin-top: 0.75rem;
        padding-bottom: 0.85rem;
        max-width: 100%;
    }

    .quote p {
        white-space: normal;
        font-size: 0.78rem;
    }
}

@media (max-width: 820px) {
    #tab-publica.active .grid-cards-publica {
        grid-template-columns: 1fr;
    }

    #tab-academico.active .page-lead-oneline,
    .page-lead-oneline {
        white-space: normal;
    }

    #tab-capoeira.active .gallery,
    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: rgba(248, 249, 252, 0.97);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--line);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    }

    nav.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    nav ul {
        flex-direction: column;
        padding: 0.75rem 1rem 1.25rem;
        gap: 0.2rem;
    }

    nav a {
        padding: 0.85rem 1rem;
        border-radius: 0.6rem;
    }
}
