/* Identidade: a mesma do portfólio no Adobe Portfolio — branco, grafite #191919, cinza #999, painéis #f2f2f2, Franklin Gothic */
:root {
  --bg: #ffffff;
  --panel: #f2f2f2;
  --ink: #191919;
  --muted: #999999;
  --line: #e6e6e6;
  --font: "Libre Franklin", "Franklin Gothic Medium", "Franklin Gothic", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 400; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header: menu à esquerda, monograma RR ao centro */
header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); }
header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: 18px; padding-bottom: 14px; border-bottom: 4px solid var(--panel); }
nav { display: flex; gap: 22px; font-size: 14px; }
nav a { color: var(--muted); transition: color .2s; }
nav a:hover, nav a.on { color: var(--ink); font-weight: 500; }
.logo img { height: 48px; width: auto; }
.head-right { justify-self: end; font-size: 14px; }
.head-right a { border: 1px solid var(--ink); padding: 7px 16px; transition: all .2s; }
.head-right a:hover { background: var(--ink); color: #fff; }

/* Hero */
.hero { text-align: center; padding: clamp(70px, 10vw, 120px) 0 clamp(60px, 8vw, 100px); }
.hero h1 { font-weight: 700; font-size: clamp(44px, 7vw, 76px); line-height: 1.05; letter-spacing: -.01em; }
.hero .roles { color: var(--muted); font-size: clamp(17px, 1.8vw, 20px); margin-top: 10px; }
.hero .intro { max-width: 58ch; margin: 28px auto 0; font-size: 17px; color: #555; }
.ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.btn { display: inline-block; padding: 12px 24px; font-size: 14px; font-weight: 500; border: 1px solid var(--ink); transition: all .2s; cursor: pointer; background: none; font-family: inherit; color: inherit; }
.btn:hover { background: var(--ink); color: #fff; }
.btn.solid { background: var(--ink); color: #fff; }
.btn.solid:hover { background: #fff; color: var(--ink); }

section { padding: clamp(64px, 9vw, 110px) 0; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
h2 { font-weight: 700; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.01em; }
.kicker { color: var(--muted); font-size: 14px; }

/* Trabalhos — linhas no estilo do site original: painel cinza com título + imagem */
#trabalhos { padding-top: 0; }
.filters { display: flex; gap: 18px; font-size: 14px; }
.filters button { background: none; border: 0; font: inherit; color: var(--muted); cursor: pointer; padding: 2px 0; border-bottom: 2px solid transparent; }
.filters button.active, .filters button:hover { color: var(--ink); border-color: var(--ink); }
.projects { display: grid; gap: 16px; }
.project { display: grid; grid-template-columns: 2fr 3fr; min-height: 340px; cursor: pointer; }
.project:nth-child(even) { grid-template-columns: 3fr 2fr; }
.project:nth-child(even) .info { order: 2; }
.project.hide { display: none; }
.project .info { background: var(--panel); display: grid; place-content: center; text-align: center; padding: 32px; }
.project h3 { font-weight: 500; font-size: 20px; line-height: 1.3; }
.project .year { color: var(--muted); font-size: 14px; }
.project .more { margin-top: 18px; font-size: 13px; color: var(--muted); transition: color .2s; }
.project .cover { background: var(--panel) center/cover no-repeat; overflow: hidden; }
.project .cover.contain { background-size: contain; background-color: #fff; }
.project .cover div { width: 100%; height: 100%; background: inherit; transition: transform .6s ease; }
.project:hover .cover div { transform: scale(1.03); }
.project:hover .more { color: var(--ink); }

/* Modal de projeto */
.modal { position: fixed; inset: 0; z-index: 50; background: #fff; overflow-y: auto; display: none; }
.modal.open { display: block; }
.modal-bar { position: sticky; top: 0; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); z-index: 2; }
.modal-bar .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.modal-bar button { background: none; border: 0; font: inherit; font-size: 14px; cursor: pointer; }
.modal-body { padding: 48px 0 80px; }
.modal-body h3 { font-weight: 700; font-size: clamp(30px, 4.5vw, 48px); line-height: 1.1; }
.meta { display: flex; gap: 40px; flex-wrap: wrap; margin: 20px 0 8px; font-size: 14px; }
.meta dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.modal-body .desc { color: #555; max-width: 65ch; margin-top: 16px; }
.gallery { columns: 3 260px; column-gap: 12px; margin-top: 36px; }
.gallery img { width: 100%; margin-bottom: 12px; break-inside: avoid; background: var(--panel); }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 36px; }
.videos.single { grid-template-columns: 1fr; }
.videos iframe { width: 100%; aspect-ratio: 9/16; border: 0; background: var(--ink); }
.videos.single iframe { aspect-ratio: 16/9; }

/* Serviços */
.services { background: var(--panel); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 2px solid var(--line); }
.service { background: #fff; padding: 32px 28px; }
.service span { color: var(--muted); font-size: 13px; }
.service h3 { font-weight: 500; font-size: 20px; margin: 10px 0 8px; line-height: 1.25; }
.service p { color: #666; font-size: 15px; }

/* Sobre */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.portrait { aspect-ratio: 4/5; background: var(--panel) url(/img/retrato.jpg) center/cover; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.about p { color: #555; margin-top: 16px; max-width: 60ch; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 32px 0; }
.facts div { padding: 18px 0; }
.facts dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.facts dd { font-weight: 500; font-size: 16px; }
.timeline { list-style: none; }
.timeline li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.timeline time, .timeline em { color: var(--muted); font-style: normal; font-size: 14px; }
.timeline em { display: block; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; list-style: none; }
.tools li { background: var(--panel); padding: 6px 14px; font-size: 13px; }

/* Contato */
.contact { background: var(--ink); color: #fff; text-align: center; }
.contact h2 { font-size: clamp(36px, 6vw, 64px); }
.contact p { color: var(--muted); margin-top: 14px; }
.contact-list { display: flex; justify-content: center; gap: clamp(24px, 5vw, 64px); flex-wrap: wrap; margin-top: 44px; }
.contact-list dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.contact-list dd { font-size: 18px; font-weight: 500; }
.contact-list a:hover { text-decoration: underline; }
.contact .btn { border-color: #fff; }
.contact .btn:hover { background: #fff; color: var(--ink); }
.contact .btn.solid { background: #fff; color: var(--ink); }
.contact .btn.solid:hover { background: none; color: #fff; }

footer { padding: 24px 0; font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .project, .project:nth-child(even) { grid-template-columns: 1fr; }
  .project:nth-child(even) .info { order: 0; }
  .project .cover { aspect-ratio: 4/3; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; }
  .portrait { max-width: 380px; }
}
@media (max-width: 560px) {
  header .wrap { grid-template-columns: 1fr auto; }
  .head-right { display: none; }
  .logo { justify-self: end; grid-column: 2; grid-row: 1; }
  .service-grid, .facts { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
