:root {
  /* base quente (tema "luz de palco") com melhor contraste */
  --bg:       #0c0b0a;
  --bg2:      #15120f;
  --bg3:      #201b15;
  --fg:       #ece7e0;
  --muted:    #9d9387;
  --accent:   #d4a24a;
  --accent2:  #efc983;
  --accent-soft: rgba(212, 162, 74, .12);
  --border:   #322a20;
  --shadow:   0 10px 34px rgba(0, 0, 0, .45);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, .35);
  --radius:   8px;
  --nav-h:    64px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(70% 38% at 50% -6%, rgba(212, 162, 74, .07), transparent 60%) no-repeat,
    var(--bg);
  color: var(--fg);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* NAV */
body > nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12, 11, 10, .85);
  backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 clamp(1rem, 5vw, 3rem);
  gap: 2rem;
}
.nav-logo {
  font-size: 1.1rem; font-weight: 600;
  color: var(--fg); white-space: nowrap; margin-right: auto;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-size: .9rem; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--fg); text-decoration: none; }
.nav-links a.blog-link {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: .3rem .8rem;
  border-radius: var(--radius);
  font-size: .85rem;
}
.nav-links a.blog-link:hover { background: var(--accent); color: #000; }
.nav-toggle { display: none; background: none; border: none;
  color: var(--fg); font-size: 1.5rem; cursor: pointer; }
@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg2); flex-direction: column; padding: 1rem 2rem;
    border-bottom: 1px solid var(--border); gap: 1rem; }
  .nav-links.open { display: flex; }
}

/* LAYOUT */
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 5vw, 2rem); }
.page-header {
  padding: 2.4rem 0 1.4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.8rem;
  position: relative;
}
/* traço dourado no início da linha do cabeçalho */
.page-header::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 120px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent); }
.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 300;
  letter-spacing: -.5px; }
.page-header p { color: var(--muted); margin-top: .5rem; }

/* GRID WORKS */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}
.work-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.work-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.work-card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--bg3); }
.work-card-img img { width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s; }
.work-card:hover .work-card-img img { transform: scale(1.05); }
.work-card-body { padding: 1rem 1.2rem 1.4rem; }
.work-card-body h2, .work-card-body h3 { font-size: 1.02rem; font-weight: 500; line-height: 1.4; }
/* Blog: data alinhada ao título e resumo em 3 linhas */
.work-card-body .photo-credit { text-align: left; margin-top: .45rem; }
.work-card-excerpt { color: var(--muted); font-size: .88rem; line-height: 1.55; margin-top: .6rem;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Blog: capa tipográfica quando o post não tem imagem */
.work-card-placeholder { display: flex; align-items: flex-end; width: 100%; height: 100%;
  padding: 1.2rem; color: var(--accent2); font-size: 1.15rem; font-weight: 300; line-height: 1.3;
  background:
    radial-gradient(60% 90% at 50% -10%, rgba(239, 201, 131, .28), transparent 70%),
    linear-gradient(180deg, var(--bg3), var(--bg2)); }
.work-card-placeholder:hover { text-decoration: none; color: var(--fg); }
.work-card-body a { color: var(--fg); }
.work-card-body a:hover { color: var(--accent); text-decoration: none; }

/* WORK DETAIL */
.work-detail { padding: 3rem 0; }
.work-hero { border-radius: var(--radius); overflow: hidden; margin-bottom: 2.5rem;
  max-height: 520px; }
.work-hero img { width: 100%; object-fit: cover; max-height: 520px; }
.work-meta { display: flex; gap: 1rem; align-items: center; margin-bottom: 2rem;
  flex-wrap: wrap; }
.work-title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 300; }
.work-text { line-height: 1.8; font-size: 1.0625rem; color: #e4ddd3; }
/* Linhas de leitura com ~70 caracteres (a ficha técnica continua larga) */
.work-text > p, .work-text > h2, .work-text > h3, .work-text > ul, .work-text > ol,
.work-text > blockquote, .work-text > pre { max-width: 70ch; }
.work-text p { margin-bottom: 1.15rem; }
.work-text h2 { font-size: 1.3rem; font-weight: 600; color: var(--accent2);
  line-height: 1.35; margin: 2.4rem 0 .8rem; }
.work-text h3 { font-size: 1.1rem; font-weight: 600; color: var(--fg);
  line-height: 1.4; margin: 2rem 0 .6rem; }
.work-text h2:first-child, .work-text h3:first-child { margin-top: 0; }
.work-text strong { color: var(--fg); font-weight: 600; }
.work-text a { text-decoration: underline; text-decoration-color: rgba(212, 162, 74, .45);
  text-underline-offset: 3px; overflow-wrap: anywhere; }
.work-text a:hover { text-decoration-color: currentColor; }
.work-text ul, .work-text ol { margin: 0 0 1.15rem; padding-left: 1.4rem; }
.work-text li { margin-bottom: .4rem; }
.work-text li::marker { color: var(--accent); }
.work-text blockquote { margin: 1.6rem 0; padding: .3rem 0 .3rem 1.2rem;
  border-left: 3px solid var(--accent); color: var(--fg); font-style: italic; }
.work-text blockquote p:last-child { margin-bottom: 0; }
.work-text img { border-radius: var(--radius); margin: 1.6rem 0; }
.work-text hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; max-width: 70ch; }
.work-text code { background: var(--bg3); padding: .1rem .35rem; border-radius: 4px; font-size: .9em; }
/* Ficha técnica — grid compacto cargo/nome */
.ficha { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .9rem 2rem; margin: 1.2rem 0 1.6rem; }
.ficha-item { display: flex; flex-direction: column; gap: .1rem; }
.ficha-item dt { color: var(--accent2); font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .6px; }
.ficha-item dd { margin: 0; color: var(--fg); line-height: 1.4; }
.ficha-span { grid-column: 1 / -1; }
.ficha-span dt { font-size: .8rem; padding-top: .6rem;
  border-top: 1px solid var(--border); }

/* GALLERY */
.gallery-title { font-size: .8rem; font-weight: 400; color: var(--muted);
  margin: 3rem 0 1.2rem; letter-spacing: 1px; text-transform: uppercase; }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem;
}
.gallery a { display: block; aspect-ratio: 4/3; overflow: hidden;
  border-radius: var(--radius); background: var(--bg3); }
.gallery a img { width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s, opacity .3s; }
.gallery a:hover img { transform: scale(1.06); opacity: .9; }
.photo-credit { font-size: .8rem; color: var(--muted); text-align: center;
  margin-top: .25rem; }

/* DOWNLOADS SECTION */
.downloads-list { margin-top: 2rem; }
.download-item {
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem 1.2rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .5rem;
  transition: border-color .2s;
}
.download-item:hover { border-color: var(--accent); }
.download-item .icon { font-size: 1.4rem; opacity: .6; }
.download-item .name { flex: 1; font-size: .95rem; }
.download-item .dl-link { font-size: .8rem; color: var(--accent);
  border: 1px solid var(--accent); padding: .25rem .7rem; border-radius: 20px; }
.download-item .dl-link:hover { background: var(--accent); color: #000;
  text-decoration: none; }

/* HEADLINES / HOME */
.hero-section { padding: 5rem 0 3rem; }
.hero-section h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 200; letter-spacing: -1px; line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-section h1 span { color: var(--accent); }
.hero-section p { color: var(--muted); font-size: 1.1rem; max-width: 600px; }
.hero-cta { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: .75rem 2rem;
  border-radius: var(--radius); font-size: .95rem;
  transition: all .2s;
}
.btn-primary { background: var(--accent); color: #1a1208; font-weight: 600;
  box-shadow: 0 6px 18px rgba(212, 162, 74, .22); }
.btn-primary:hover { background: var(--accent2); color: #1a1208; text-decoration: none;
  transform: translateY(-2px); box-shadow: 0 10px 24px rgba(212, 162, 74, .32); }
.btn-outline { border: 1px solid var(--border); color: var(--fg); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent);
  text-decoration: none; transform: translateY(-2px); }

.section-title {
  font-size: .75rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.5rem;
  font-weight: 400;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}
.featured-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 3/2; background: var(--bg3);
  border: 1px solid var(--border);
}
.featured-card img { width: 100%; height: 100%; object-fit: cover;
  position: relative; z-index: 0; transition: transform .4s; }
.featured-card:hover img { transform: scale(1.05); }
/* Overlay de cor (dourado da paleta) que se dissolve no hover */
.featured-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(212, 162, 74, .34), rgba(150, 104, 34, .24));
  opacity: 1; transition: opacity .45s ease;
}
.featured-card:hover::before { opacity: .1; }
.featured-card-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 1.5rem 1.2rem 1.2rem;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
}
.featured-card-overlay h3 { font-size: 1rem; font-weight: 500; color: #fff; }
.featured-card-overlay p { font-size: .8rem; color: rgba(255,255,255,.65);
  margin-top: .2rem; }
.featured-card a { color: inherit; }
.featured-card a:hover { text-decoration: none; }
.featured-card > a { position: absolute; inset: 0; z-index: 3; }

/* HOME — hero retrato + texto */
.home-hero { display: grid; grid-template-columns: 1fr 320px; gap: 3.5rem;
  align-items: center; padding: 4rem 0 3rem; }
.home-hero-eyebrow { color: var(--muted); font-size: .8rem; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 1rem; }
.home-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 300; line-height: 1.1; }
.home-hero h1 span { color: var(--accent); }
.home-hero-role { color: var(--accent2); font-size: 1.05rem; margin: 1.1rem 0 1rem; }
.home-hero p.lead { color: var(--muted); font-size: 1.1rem; line-height: 1.6; max-width: 520px; }
.home-hero .hero-cta { margin-top: 2rem; }
.home-hero-photo img { width: 100%; display: block; border-radius: var(--radius);
  border: 1px solid var(--border); }
@media (max-width: 760px) {
  .home-hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 2.5rem; }
  .home-hero-photo { max-width: 100%; }
  .home-hero-photo img { width: 100%; aspect-ratio: 16 / 11;
    object-fit: cover; object-position: center 22%; }
}

/* HOME — faixa de números (painel) */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem 2rem; align-items: center;
  padding: 2.2rem 0; margin: 2.5rem 0;
  /* faixa de fundo de ponta a ponta, com o conteúdo alinhado ao container */
  background: var(--bg2); box-shadow: 0 0 0 100vmax var(--bg2); clip-path: inset(0 -100vmax); }
.stat { min-width: 0; }
.stat .num { font-size: 1.7rem; font-weight: 600; color: var(--accent); line-height: 1.25; }
.stat .lbl { color: var(--muted); font-size: .82rem; margin-top: .35rem; line-height: 1.4; }

/* HOME — cabeçalho de seção com link */
.section-head { display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; margin: 3.5rem 0 0; }
.section-head .section-title { margin-bottom: 0; }
.section-head a { font-size: .85rem; white-space: nowrap; }

/* HOME — áreas de atuação */
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.2rem; margin: 1.5rem 0; }
.area { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem;
  transition: border-color .2s; }
.area:hover { border-color: var(--accent); }
.area h3 { color: var(--fg); font-size: 1rem; font-weight: 600; margin-bottom: .5rem; }
.area p { color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* HOME — faixa sobre/pesquisa */
.home-about { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: center; margin: 2rem 0; padding: 2.5rem 0; }
.home-about p { color: var(--muted); line-height: 1.7; margin-bottom: 1rem; }
@media (max-width: 700px) { .home-about { grid-template-columns: 1fr; gap: 1.5rem; } }

/* HOME — CTA final */
.cta-band { text-align: center; padding: 3rem 1rem 2.2rem; margin-top: 2rem; border-radius: 14px; }
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 300; margin-bottom: 1.8rem; }
.cta-band .hero-cta { justify-content: center; }

/* CLIPPING */
.clip-intro { max-width: 760px; color: var(--muted); line-height: 1.7; margin: 0 0 1.5rem; }
.clip-group { margin: 2.5rem 0; }
.clip-group-head { display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; border-bottom: 1px solid var(--border); padding-bottom: .6rem; margin-bottom: 1.2rem; }
.clip-group-head h2 { font-size: 1.15rem; font-weight: 600; color: var(--accent2); }
.clip-group-head .clip-work { font-size: .82rem; white-space: nowrap; }
.clip-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem; list-style: none; padding: 0; margin: 0; }
.clip-links a { display: block; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.1rem; transition: border-color .2s, background .2s; height: 100%; }
.clip-links a:hover { border-color: var(--accent); background: var(--bg2); text-decoration: none; }
.clip-title { display: block; color: var(--fg); font-size: .95rem; line-height: 1.4; margin-bottom: .5rem; }
.clip-src { display: block; color: var(--accent); font-size: .78rem; }
.clip-note { color: var(--muted); font-size: .85rem; margin-top: 3rem;
  border-top: 1px solid var(--border); padding-top: 1.2rem; line-height: 1.6; }

/* CV (currículo Lattes) */
.cv { max-width: 920px; margin: 0 auto; padding: 1rem 0 3rem; }
.cv-header { display: grid; grid-template-columns: 160px 1fr; gap: 2rem; align-items: start;
  padding-bottom: 2rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.cv-photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.cv-photo img { width: 100%; display: block; }
.cv-header h1, .cv-header .cv-name { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 300; margin: 0; }
.cv-role { color: var(--accent2); margin: .3rem 0 1rem; }
.cv-meta { list-style: none; padding: 0; margin: 0 0 1.2rem; font-size: .9rem; color: var(--muted); }
.cv-meta li { margin-bottom: .25rem; }
.cv-meta strong { color: var(--fg); font-weight: 500; }
.cv-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.cv-actions .btn { font-size: .85rem; padding: .5rem 1rem; }
.cv-section { margin: 2.6rem 0; }
.cv-section > h2 { font-size: 1.05rem; font-weight: 600; color: var(--accent2);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.3rem;
  padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.cv-section h3.sub { font-size: .8rem; text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted); margin: 1.6rem 0 .8rem; font-weight: 600; }
.cv-entry { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.cv-entry .yr { color: var(--accent); font-size: .85rem; font-weight: 600; padding-top: .15rem; }
.cv-entry h3 { font-size: 1rem; font-weight: 600; margin: 0 0 .25rem; }
.cv-entry p { margin: 0 0 .3rem; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.cv-list { list-style: none; padding: 0; margin: 0; }
.cv-list li { margin-bottom: .9rem; padding-left: 1.1rem; position: relative; line-height: 1.55;
  font-size: .94rem; }
.cv-list li::before { content: "›"; position: absolute; left: 0; color: var(--accent); }
.cv-works { columns: 2; column-gap: 2.5rem; list-style: none; padding: 0; margin: 0; }
.cv-works li { break-inside: avoid; margin-bottom: .65rem; font-size: .92rem; line-height: 1.45; }
.cv-works .yr { color: var(--accent); font-weight: 600; margin-right: .5rem; }
.cv-works .role { color: var(--muted); }
@media (max-width: 640px) {
  .cv-header { grid-template-columns: 1fr; gap: 1.2rem; }
  .cv-photo { width: min(220px, 55%); }
  .cv-entry { grid-template-columns: 1fr; gap: .15rem; }
  .cv-works { columns: 1; }
}

/* CONTATO */
.contact-content { max-width: 1000px; margin: 1rem auto 0; display: grid;
  grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-content .contact-item { margin: 0; }
/* número ímpar de canais: o último ocupa a linha toda */
.contact-content .contact-item:last-child:nth-child(even) { grid-column: 1 / -1; }
@media (max-width: 700px) { .contact-content { grid-template-columns: 1fr; } }
.contact-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.2rem; background: var(--bg2);
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 1rem; transition: border-color .2s;
}
.contact-item:hover { border-color: var(--accent); }
.contact-item .icon { font-size: 1.3rem; opacity: .7; padding-top: .1rem; }
.contact-item .info label, .contact-item .info .label { display: block; font-size: .75rem;
  color: var(--muted); text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: .25rem; }
.contact-item .info a, .contact-item .info span { font-size: 1rem; color: var(--fg); }
.contact-item .info a:hover { color: var(--accent); }

/* FOOTER */
footer {
  margin-top: 3rem; padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center; color: var(--muted); font-size: .85rem;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }

/* 404 */
.not-found { padding: 6rem 0 2rem; max-width: 640px; }
.not-found-code { font-size: .8rem; letter-spacing: 3px; color: var(--accent); margin-bottom: 1rem; }
.not-found h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 300; line-height: 1.2; margin-bottom: 1rem; }
.not-found p { color: var(--muted); }

/* BACK LINK */
.back-link { display: inline-flex; align-items: center; gap: .4rem;
  color: var(--muted); font-size: .9rem; margin-bottom: 2rem; }
.back-link:hover { color: var(--accent); text-decoration: none; }

/* LIGHTBOX (montado pelo main.js) */
.lightbox { display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.94); align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center;
  gap: .9rem; max-width: 100%; padding: 0 4.5rem; }
.lightbox img { max-width: min(1200px, 100%); max-height: 82vh; object-fit: contain;
  border-radius: var(--radius); }
.lightbox-caption { color: rgba(255,255,255,.75); font-size: .9rem; text-align: center;
  min-height: 1.2em; }
.lightbox-close, .lightbox-nav { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  color: #fff; cursor: pointer; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; transition: background .2s; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.2); }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; font-size: 1.2rem; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; font-size: 2rem; line-height: 1; padding-bottom: .2rem; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox.single .lightbox-nav { display: none; }
.lightbox-count { position: absolute; top: 1.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-size: .8rem; letter-spacing: 1px; }
@media (max-width: 600px) {
  .lightbox-figure { padding: 0 .5rem; }
  .lightbox img { max-height: 72vh; }
  .lightbox-nav { top: auto; bottom: 1.2rem; transform: none; }
  .lightbox-prev { left: calc(50% - 64px); }
  .lightbox-next { right: calc(50% - 64px); }
}

/* SECTION GROUP (downloads page) */
.section-group { margin-bottom: 2.5rem; }
.section-group-title {
  font-size: 1rem; font-weight: 500; color: var(--muted);
  margin-bottom: .75rem; padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   POLIMENTO VISUAL 2020s — elevação, animação, mobile, a11y
   ============================================================ */

/* Elevação e hover suave dos cards */
.featured-card { box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease; }
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work-card { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.work-card:hover { box-shadow: var(--shadow); }
.area { background: linear-gradient(180deg, var(--bg2), transparent); transition:
  transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.area:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.clip-links a:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.download-item { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.download-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* Surface quente nas faixas/seções */
.cta-band { background:
  radial-gradient(50% 120% at 50% 0%, rgba(212, 162, 74, .13), transparent 70%); }

/* Brilho sutil de "spotlight" atrás do hero */
.home-hero { position: relative; }
.home-hero::before {
  content: ""; position: absolute; z-index: -1;
  width: 60%; aspect-ratio: 1; right: -6%; top: -18%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 75%);
  filter: blur(8px); pointer-events: none;
}
.home-hero-photo img { box-shadow: var(--shadow); }

/* Scroll-reveal (apenas via JS; respeita prefers-reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(8px);
    transition: opacity .35s ease, transform .35s ease; will-change: opacity, transform; }
  .reveal.in { opacity: 1; transform: none; }
}

/* Foco acessível visível em teclado */
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; border-radius: 3px; }

/* Linha de acento sob títulos de seção da home */
.section-title { position: relative; }

/* ---------- MOBILE: nav animada + alvos de toque maiores ---------- */
@media (max-width: 700px) {
  .nav-links { transform-origin: top; animation: navOpen .22s ease; gap: .25rem;
    box-shadow: var(--shadow); }
  .nav-links a { width: 100%; padding: .85rem .25rem; font-size: 1.05rem;
    border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.blog-link { margin-top: .4rem; text-align: center; padding: .7rem; }
  .nav-toggle { font-size: 1.7rem; line-height: 1; padding: .2rem .4rem; }
}
@keyframes navOpen { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- MOBILE: respiro e legibilidade ---------- */
@media (max-width: 600px) {
  .home-hero { padding: 2rem 0 1.5rem; }
  .stats { grid-template-columns: 1fr 1fr; padding: 1.6rem 0; gap: 1.2rem 1rem; }
  .stat .num { font-size: 1.35rem; }
  .section-head { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .clip-links { grid-template-columns: 1fr; }
  .clip-group-head { flex-wrap: wrap; }
  .cta-band { padding: 3rem 1rem 2.5rem; }
  .hero-cta .btn { flex: 1 1 auto; text-align: center; }
}

/* Toque: remove highlight azul e melhora resposta tátil */
a, button { -webkit-tap-highlight-color: transparent; }

/* ---------- ACESSIBILIDADE ---------- */
/* Link "Pular para o conteúdo": invisível até receber foco pelo teclado */
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 2000;
  background: var(--accent); color: #1a1208; font-weight: 600; padding: .6rem 1rem;
  border-radius: var(--radius); }
.skip-link:focus { top: .75rem; text-decoration: none; color: #1a1208; }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- TRABALHOS: subtítulo, filtros, anterior/próximo ---------- */
.work-card-sub { color: var(--muted); font-size: .85rem; line-height: 1.45; margin-top: .35rem; }
.work-subtitle { width: 100%; color: var(--accent2); font-size: 1rem; margin-top: -.4rem; }
.work-meta { flex-direction: column; align-items: flex-start; gap: .6rem; }

.filtros { display: flex; flex-wrap: wrap; gap: .5rem; margin: -1rem 0 .5rem; }
.filtros[hidden] { display: none; }
.filtros button { background: transparent; color: var(--muted); border: 1px solid var(--border);
  border-radius: 999px; padding: .45rem 1rem; font: inherit; font-size: .88rem; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s; }
.filtros button:hover { color: var(--fg); border-color: var(--accent); }
.filtros button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent);
  color: #1a1208; font-weight: 600; }
.work-card.oculto { display: none; }
.filtros-vazio { color: var(--muted); padding: 2rem 0; }

.work-pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: stretch;
  margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.work-pager a { display: flex; flex-direction: column; gap: .25rem; color: var(--fg);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem;
  transition: border-color .2s, background .2s; }
.work-pager a:hover { border-color: var(--accent); background: var(--bg2); text-decoration: none; }
.work-pager span { color: var(--muted); font-size: .78rem; letter-spacing: 1px; text-transform: uppercase; }
.work-pager-next { text-align: right; align-items: flex-end; }
.work-pager-all { justify-content: center; color: var(--muted) !important; font-size: .9rem; }
@media (max-width: 640px) {
  .work-pager { grid-template-columns: 1fr 1fr; }
  .work-pager-all { grid-column: 1 / -1; grid-row: 2; text-align: center; align-items: center; }
}

/* ---------- HOME: grade 4×2 e textos do blog ---------- */
@media (min-width: 1000px) {
  .featured-grid { grid-template-columns: repeat(4, 1fr); }
  .featured-card { aspect-ratio: 4 / 5; }
}
@media (min-width: 640px) and (max-width: 999px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
}
.home-blog { margin-top: 1rem; }
.home-blog-grid:empty { display: none; }
.home-blog-grid { padding-top: 1.5rem; }

/* ---------- CONTATO ---------- */
.contact-cta { grid-column: 1 / -1; border: 1px solid var(--border); border-radius: var(--radius);
  min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2rem; margin-bottom: .5rem;
  background: linear-gradient(90deg, rgba(12, 11, 10, .95) 30%, rgba(12, 11, 10, .35)),
    url(/files/works/big_27.jpg) right 40% / cover, var(--bg2); }
.contact-cta p { color: var(--fg); margin-bottom: .2rem; font-size: 1.25rem; max-width: 26ch; line-height: 1.4; }
@media (max-width: 600px) {
  .contact-cta { min-height: 0; padding: 1.6rem 1.2rem;
    background: linear-gradient(180deg, rgba(12, 11, 10, .55), rgba(12, 11, 10, .95) 75%),
      url(/files/thumbs/works/big_27.webp) center 30% / cover, var(--bg2); }
  .contact-cta p { font-size: 1.1rem; }
}
.contact-cta .hero-cta { margin-top: 1.2rem; }
.contact-item .icon { color: var(--accent); opacity: 1; display: flex; }
.contact-item .icon svg { display: block; }

/* ============================================================
   DENSIDADE VISUAL — menos vazio, mais imagem (2026-10)
   O HTML correspondente é gerado por tools/visual.php.
   ============================================================ */

/* Home: brilho atrás de "Pesquisa & formação" e cards com luz dourada */
.home-about { position: relative; }
.home-about::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 80% at 20% 50%, rgba(212, 162, 74, .07), transparent 70%); }
.work-card:hover, .featured-card:hover { box-shadow: 0 0 0 1px var(--accent), 0 14px 40px rgba(212, 162, 74, .16); }
.work-card-img img { filter: brightness(.96) saturate(1.05); }
.work-card:hover .work-card-img img { filter: brightness(1.08); }
.works-grid { gap: 1.25rem; padding-top: 1rem; }

/* Trabalho: abertura com título sobre a foto e bordas preenchidas pela própria foto desfocada */
.work-detail { padding-top: 1rem; }
.work-hero.cine { position: relative; max-height: none; height: min(62vh, 560px); margin-bottom: 2rem;
  background: #000; isolation: isolate; }
.work-hero.cine::before { content: ""; position: absolute; inset: -30px; z-index: -1;
  background: var(--hero-img) center / cover; filter: blur(28px) brightness(.45) saturate(1.2); }
.work-hero.cine img { position: relative; width: 100%; height: 100%; max-height: none; object-fit: contain; }
.work-hero.cine .work-meta { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; z-index: 2;
  padding: 4rem 2rem 1.6rem; background: linear-gradient(transparent, rgba(0, 0, 0, .88)); }
.work-hero.cine .work-title { font-size: clamp(1.8rem, 4vw, 3rem); color: #fff; }
@media (max-width: 600px) {
  .work-hero.cine { height: auto; aspect-ratio: 4 / 5; max-height: 70vh; }
  .work-hero.cine .work-meta { padding: 3rem 1.2rem 1.1rem; }
}

/* Trabalho: texto à esquerda, ficha técnica numa coluna lateral (telas largas) */
@media (min-width: 1100px) {
  .work-text.duas-col { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0 3.5rem; align-items: start; }
  .work-text.duas-col > .col-texto { min-width: 0; }
  .work-text.duas-col > .col-ficha { position: sticky; top: calc(var(--nav-h) + 1.5rem);
    background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 1.4rem 1.5rem; }
  .col-ficha > h2 { margin-top: 0; font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase; }
  .col-ficha .ficha { grid-template-columns: 1fr 1fr; gap: .9rem 1.2rem; }
  .col-ficha .ficha-item dd { font-size: .88rem; }
}
.galeria-credito { color: var(--muted); font-size: .85rem; margin: -.6rem 0 1rem; }
.galeria-credito strong { color: var(--accent2); font-weight: 500; }

/* Downloads: um card por espetáculo, com foto */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 1.25rem; align-items: start; }
.dl-grid .section-group { margin: 0; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; }
.dl-capa { aspect-ratio: 16 / 7; background: var(--bg3) center / cover; position: relative; }
.dl-capa::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, var(--bg2)); }
.dl-grid .section-group-title { margin: -2.2rem 1.2rem .8rem; position: relative; font-size: 1.05rem;
  border: 0; padding: 0; }
.dl-grid .section-group-title a { color: #fff; }
.dl-grid .section-group-title a:hover { color: var(--accent2); text-decoration: none; }
.dl-grid .downloads-list { margin: 0; padding: 0 1rem 1rem; }
.dl-grid .download-item { background: var(--bg3); }

/* Clipping: miniatura do espetáculo no título do grupo */
.clip-group-head { align-items: center; }
.clip-group-head h2 { margin-right: auto; }
.clip-thumb { width: 64px; height: 44px; border-radius: 6px; object-fit: cover; flex: none;
  border: 1px solid var(--border); }

/* ---------- CELULAR ---------- */
@media (max-width: 639px) {
  /* Home: foto antes do texto, três botões numa linha, destaques em 2 colunas */
  .home-hero { padding-top: 1.2rem; gap: 1.5rem; }
  .home-hero-photo { order: -1; }
  .home-hero::before { right: 0; }  /* o brilho não pode passar da borda (rolagem lateral) */
  .home-hero-photo img { aspect-ratio: 4 / 3; object-position: center 25%; }
  .home-hero .hero-cta { flex-wrap: nowrap; gap: .5rem; }
  .home-hero .hero-cta .btn { flex: 1 1 0; padding: .75rem .4rem; font-size: .86rem; white-space: nowrap; }
  .featured-grid { grid-template-columns: 1fr 1fr; gap: .7rem; padding: 1.5rem 0; }
  .featured-card { aspect-ratio: 3 / 4; }
  .featured-card-overlay { padding: 1rem .7rem .7rem; }
  .featured-card-overlay h3 { font-size: .9rem; }
  .featured-card-overlay p { display: none; }

  /* Trabalhos: 2 colunas compactas e filtros numa linha deslizante */
  .filtros ~ .works-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .filtros ~ .works-grid .work-card-body { padding: .6rem .7rem .8rem; }
  .filtros ~ .works-grid .work-card-body h2 { font-size: .9rem; line-height: 1.3; }
  .filtros ~ .works-grid .work-card-sub { font-size: .72rem; line-height: 1.35; margin-top: .2rem; }
  .filtros { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -1rem; padding-right: 1rem; }
  .filtros::-webkit-scrollbar { display: none; }
  .filtros button { flex: none; }

  /* Galeria em 2 colunas */
  .gallery { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .gallery a { aspect-ratio: 1; border-radius: 6px; }
}
