/* Marchetti Bonetti+ — monografia */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/Archivo-var.woff2") format("woff2-variations"), url("/assets/fonts/Archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fbfbfa;
  --paper-2: #f2f2f0;
  --ink: #1b1b1c;
  --ink-2: #545459;
  --ink-3: #6b6b70;
  --line: #e0e0de;
  --line-2: #cfcfcc;
  --night: #111112;
  --night-2: #1c1c1e;
  --on-night: #f2f2f0;
  --on-night-2: #a9a9ad;
  --petrol: #2e8aa5;
  --gutter: clamp(20px, 4vw, 64px);
  --col-gap: clamp(16px, 2vw, 32px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
  color-scheme: light;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-stretch: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
  caret-color: var(--ink);
}
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
html { scrollbar-color: var(--line-2) var(--paper); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--line-2); border: 3px solid var(--paper); border-radius: 10px; }

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.prose a, .text-link { text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1px; text-decoration-color: var(--line-2); transition: text-decoration-color 300ms var(--ease); }
.prose a:hover, .text-link:hover { text-decoration-color: currentColor; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }
dl, dd { margin: 0; }
svg { display: block; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.t-hero { font-size: clamp(2.4rem, 5.4vw, 5.25rem); line-height: 1.02; letter-spacing: -0.03em; font-weight: 400; }
.t-1 { font-size: clamp(2.25rem, 4.6vw, 4.25rem); line-height: 1.04; letter-spacing: -0.028em; }
.t-2 { font-size: clamp(1.6rem, 2.7vw, 2.5rem); line-height: 1.12; letter-spacing: -0.02em; }
.t-3 { font-size: clamp(1.15rem, 1.5vw, 1.375rem); line-height: 1.3; letter-spacing: -0.01em; }
.t-statement { font-size: clamp(1.45rem, 2.5vw, 2.35rem); line-height: 1.3; letter-spacing: -0.018em; font-weight: 350; text-wrap: pretty; }
.t-small { font-size: 0.8125rem; line-height: 1.45; letter-spacing: 0.005em; }
.t-meta { font-size: 0.875rem; line-height: 1.5; color: var(--ink-3); }
.prose { max-width: 64ch; font-size: 1.0625rem; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
.prose p + p { margin-top: 1.15em; }
.muted { color: var(--ink-3); }

/* ---------- layout ---------- */
main { position: relative; }
.wrap { padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.section { padding-block: clamp(88px, 12vw, 176px); }
.section + .section:not(.night) { padding-top: 0; }
.section.night + .section.section { padding-top: clamp(88px, 12vw, 176px); }
blockquote { margin: 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 72px); flex-wrap: wrap; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 14px; line-height: 1; }
.logo svg { height: 22px; width: auto; }
.logo .mb { fill: currentColor; }
.logo__name { font-size: 0.8125rem; letter-spacing: 0.01em; line-height: 1.25; white-space: nowrap; }
.logo__name span { display: block; opacity: 0.72; }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 0 var(--gutter);
  color: var(--on-night);
  transition: color 500ms var(--ease), background-color 500ms var(--ease), box-shadow 500ms var(--ease), transform 600ms var(--ease);
}
.header.is-solid { color: var(--ink); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: saturate(1.2) blur(12px); box-shadow: inset 0 -1px 0 var(--line); }
.header.is-night { color: var(--on-night); background: color-mix(in srgb, var(--night) 90%, transparent); backdrop-filter: blur(12px); box-shadow: inset 0 -1px 0 rgba(255,255,255,0.08); }
.header.is-hidden { transform: translateY(-100%); }
.nav { display: flex; gap: clamp(20px, 2.6vw, 40px); font-size: 0.9375rem; }
.nav a { position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 500ms var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.menu-btn { display: none; font-size: 0.9375rem; align-items: center; gap: 10px; }
.menu-btn .bars { width: 20px; height: 8px; position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform 500ms var(--ease), top 500ms var(--ease); }
.menu-btn .bars::before { top: 0; } .menu-btn .bars::after { top: 7px; }
.menu-open .menu-btn .bars::before { top: 3.5px; transform: rotate(45deg); }
.menu-open .menu-btn .bars::after { top: 3.5px; transform: rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--paper); color: var(--ink);
  padding: calc(var(--header-h) + 48px) var(--gutter) 32px;
  display: none; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden;
  transition: opacity 500ms var(--ease), visibility 0s linear 500ms;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity 500ms var(--ease), visibility 0s; }
.menu ul { display: grid; gap: 4px; }
.menu li a { font-size: clamp(2.25rem, 10vw, 3.25rem); letter-spacing: -0.03em; line-height: 1.15; }
.menu li a[aria-current="page"] { color: var(--ink-3); }
.menu__foot { display: grid; gap: 10px; color: var(--ink-2); justify-items: start; }
.menu-open .header { color: var(--ink); background: var(--paper); box-shadow: none; backdrop-filter: none; }

/* ---------- buttons & links ---------- */
.arrow-link { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9375rem; padding-bottom: 4px; border-bottom: 1px solid currentColor; transition: gap 500ms var(--ease); }
.arrow-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.arrow-link:hover { gap: 16px; }
.play { display: inline-flex; align-items: center; gap: 16px; font-size: 0.9375rem; text-align: left; line-height: 1.35; }
.play__ring { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; transition: background-color 500ms var(--ease), color 500ms var(--ease), transform 600ms var(--ease); }
.play__ring svg { width: 12px; height: 12px; fill: currentColor; margin-left: 3px; }
.play:hover .play__ring { background: var(--on-night); color: var(--night); transform: scale(1.06); }
.play small { display: block; font-size: 0.8125rem; opacity: 0.72; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 26px; background: var(--ink); color: var(--paper); font-size: 0.9375rem; border-radius: 999px; transition: background-color 400ms var(--ease), gap 400ms var(--ease); }
.btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { background: var(--ink-2); gap: 16px; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--paper); color: var(--ink); display: grid; place-items: center; transition: clip-path 1000ms var(--ease); clip-path: inset(0 0 0 0); }
.loader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader__inner { display: grid; justify-items: center; gap: 28px; }
.loader__mark { width: 120px; opacity: 0; transform: translateY(6px); transition: opacity 700ms var(--ease), transform 900ms var(--ease); }
.loader__mark .mb { fill: var(--ink-2); }
.loader.is-in .loader__mark { opacity: 1; transform: none; }
.loader__line { width: 160px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.loader__line i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
html:not(.js) .loader { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; background: var(--night); color: var(--on-night); overflow: clip; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media video, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,11,0.62) 0%, rgba(10,10,11,0.18) 42%, rgba(10,10,11,0) 64%), linear-gradient(to bottom, rgba(10,10,11,0.35) 0%, rgba(10,10,11,0) 22%); }
.hero__body { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; }
.hero__title { max-width: 15ch; }
.hero__sub { margin-top: 20px; font-size: 0.9375rem; color: rgba(242,242,240,0.85); }
.js .hero .js-in { opacity: 0; transform: translateY(14px); transition: opacity 1200ms var(--ease), transform 1400ms var(--ease); }
.js .hero.is-ready .js-in { opacity: 1; transform: none; }
.hero.is-ready .js-in.d1 { transition-delay: 140ms; }
.hero.is-ready .js-in.d2 { transition-delay: 320ms; }

/* ---------- imagens ---------- */
.js .reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1300ms var(--ease); }
.js .reveal img { transform: scale(1.06); transition: transform 1800ms var(--ease); }
.js .reveal.in { clip-path: inset(0 0 0 0); }
.js .reveal.in img { transform: none; }
.media { position: relative; overflow: hidden; background: var(--paper-2); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--16x9 { aspect-ratio: 16 / 9; }

/* ---------- apresentação ---------- */
.intro__statement { grid-column: 1 / span 9; }
.intro__facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--col-gap); border-top: 1px solid var(--line); padding-top: 22px; margin-top: clamp(56px, 7vw, 104px); }
.intro__facts dt { font-size: 0.8125rem; color: var(--ink-3); margin-bottom: 6px; }
.intro__facts dd { font-size: 1.0625rem; line-height: 1.4; }
.intro__more { grid-column: 1 / -1; margin-top: 40px; }

/* ---------- destaques ---------- */
.frames { position: relative; height: calc(var(--n) * 100vh); background: var(--night); color: var(--on-night); }
.frames__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }
.frame { position: absolute; inset: 0; opacity: 0; transition: opacity 900ms var(--ease); }
.frame.is-active { opacity: 1; z-index: 1; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 2400ms var(--ease); }
.frame.is-active img { transform: none; }
.frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,11,0.6) 0%, rgba(10,10,11,0.08) 40%, rgba(10,10,11,0) 60%), linear-gradient(to bottom, rgba(10,10,11,0.34) 0%, rgba(10,10,11,0) 24%); }
.frame__cap { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(56px, 7vw, 88px); z-index: 2; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.frame__cap h3 a { transition: opacity 300ms; }
.frame__cap h3 a:hover { opacity: 0.75; }
.frame__meta { margin-top: 10px; font-size: 0.9375rem; color: rgba(242,242,240,0.85); }
.frames__head { position: absolute; z-index: 3; top: calc(var(--header-h) + 24px); left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; font-size: 0.9375rem; color: rgba(242,242,240,0.88); }
.frames__ticks { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: 28px; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 8px; }
.frames__ticks i { height: 1px; background: rgba(242,242,240,0.28); position: relative; overflow: hidden; }
.frames__ticks i::after { content: ""; position: absolute; inset: 0; background: var(--on-night); transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--ease); }
.frames__ticks i.on::after { transform: scaleX(1); }

/* ---------- índice de projetos ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.seg { display: flex; gap: 4px 24px; flex-wrap: wrap; font-size: 0.9375rem; }
.seg button { position: relative; padding: 4px 0; color: var(--ink-3); transition: color 300ms var(--ease); }
.seg button sup { font-size: 0.6875rem; margin-left: 3px; }
.seg button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease); }
.seg button[aria-pressed="true"] { color: var(--ink); }
.seg button[aria-pressed="true"]::after { transform: scaleX(1); }
.seg button:hover { color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) var(--col-gap); }
.cards > li.is-hidden { display: none; }
.card { display: block; }
.card .media img { transition: transform 1400ms var(--ease); }
.card:hover .media img { transform: scale(1.035); }
.card__cap { margin-top: 16px; display: grid; gap: 2px; }
.card__name { font-size: 1.0625rem; letter-spacing: -0.005em; }
.card__meta { font-size: 0.875rem; color: var(--ink-3); }
.empty { padding: 40px 0; color: var(--ink-3); }
.list { border-top: 1px solid var(--line); }
.list li.is-hidden { display: none; }
.list a, .list__head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 3fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--col-gap); align-items: baseline; }
.list a { padding: 18px 0; border-bottom: 1px solid var(--line); }
.list a .name { transition: transform 500ms var(--ease), color 300ms var(--ease); }
.list a span { color: var(--ink-3); font-size: 0.9375rem; transition: color 300ms var(--ease); }
.list a .name { color: var(--ink); font-size: 1.0625rem; }
.list a span:last-child, .list__head span:last-child { text-align: right; }
.list:hover a .name { color: var(--ink-3); }
.list a:hover .name { color: var(--ink); }
.list a:hover .name { transform: translateX(12px); }
.list__head { padding: 0 0 10px; font-size: 0.8125rem; color: var(--ink-3); }
.preview { position: fixed; z-index: 40; top: 0; left: 0; width: 300px; aspect-ratio: 4 / 3; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(0.96); transition: opacity 300ms var(--ease), transform 500ms var(--ease); background: var(--paper-2); overflow: hidden; }
.preview.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.preview img { width: 100%; height: 100%; object-fit: cover; }
[data-view="lista"] .cards, [data-view="lista"] .empty, [data-view="imagens"] .list-wrap { display: none; }
@media (hover: none) { .preview { display: none; } }

/* ---------- noite (filme) ---------- */
.night { background: var(--night); color: var(--on-night); }
.night .prose, .night .muted, .night .t-meta { color: var(--on-night-2); }
.film { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 48px; align-items: end; }
.film__text { grid-column: 1 / span 4; display: grid; gap: 32px; align-content: end; }
.film__media { grid-column: 6 / span 7; cursor: pointer; }
.film__frame { position: relative; }
.film__frame .play__ring { position: absolute; left: 24px; bottom: 24px; width: 72px; height: 72px; color: var(--on-night); background: rgba(10,10,11,0.2); backdrop-filter: blur(6px); }
.film__frame .play__ring svg { width: 16px; height: 16px; }
.film__media:hover .play__ring { background: var(--on-night); color: var(--night); transform: scale(1.06); }
.film__media figcaption { margin-top: 14px; color: var(--on-night-2); font-size: 0.875rem; }
.quote { font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.25; letter-spacing: -0.015em; font-weight: 350; text-wrap: pretty; }
.quote footer { margin-top: 16px; font-size: 0.875rem; color: var(--on-night-2); }
.night .play:hover .play__ring { background: var(--on-night); color: var(--night); }

dialog.filme { border: 0; padding: 0; margin: 0; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: #000; color: var(--on-night); }
dialog.filme[open] { animation: open-film 900ms var(--ease) both; }
@keyframes open-film { from { clip-path: inset(18% 12% 18% 12%); opacity: 0.4; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
dialog.filme::backdrop { background: rgba(0,0,0,0.92); }
dialog.filme video { width: 100%; height: 100%; object-fit: contain; }
dialog.filme .close { position: absolute; top: 24px; right: var(--gutter); z-index: 2; display: inline-flex; align-items: center; gap: 10px; font-size: 0.9375rem; padding: 10px 16px; border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; background: rgba(0,0,0,0.4); transition: background-color 300ms, color 300ms; }
dialog.filme .close svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 1.4; }
dialog.filme .close:hover { background: var(--on-night); color: #000; }

/* ---------- escritório ---------- */
.office { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 40px; align-items: end; }
.office__media { grid-column: 1 / span 7; }
.office__text { grid-column: 9 / span 4; display: grid; gap: 28px; justify-items: start; }
.partners { border-top: 1px solid var(--line); width: 100%; }
.partners li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.partners li span { color: var(--ink-3); }

/* ---------- trajetória / prêmios ---------- */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 32px; }
.split__head { grid-column: 1 / span 4; }
.split__body { grid-column: 5 / span 8; }
.chrono { border-top: 1px solid var(--line); }
.chrono li { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--col-gap); padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.chrono b { font-weight: 400; font-size: 0.9375rem; }
.chrono h3 { font-size: 1.0625rem; letter-spacing: -0.005em; line-height: 1.4; }
.chrono p { color: var(--ink-3); font-size: 0.9375rem; line-height: 1.55; }

/* ---------- contato ---------- */
.contact-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--col-gap); border-top: 1px solid var(--line); padding-top: 24px; }
.contact-cols dt { font-size: 0.8125rem; color: var(--ink-3); margin-bottom: 8px; }
.contact-cols dd { font-size: 1rem; line-height: 1.55; overflow-wrap: anywhere; }
.contact-cols a { transition: opacity 300ms; }
.contact-cols a:hover { opacity: 0.6; }
.contact-cta { margin-top: clamp(40px, 5vw, 64px); }
.contato { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 48px; margin-top: clamp(64px, 8vw, 120px); }
.contato__text { grid-column: 1 / span 4; display: grid; gap: 20px; align-content: start; }
.contato__form { grid-column: 6 / span 7; }
.form { display: grid; gap: 28px; }
.form label { display: grid; gap: 6px; font-size: 0.8125rem; color: var(--ink-3); }
.form input, .form textarea { font: inherit; font-size: 1.0625rem; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line-2); padding: 10px 0 12px; border-radius: 0; transition: border-color 300ms var(--ease); }
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--ink); }
.form input::placeholder, .form textarea::placeholder { color: var(--ink-3); opacity: 1; }
.form textarea { min-height: 128px; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px var(--col-gap); }
.form__foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form__status { font-size: 0.875rem; color: var(--ink-3); }
.form__status.err { color: var(--ink); }

/* ---------- footer ---------- */
.footer { padding: clamp(56px, 7vw, 96px) var(--gutter) 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 40px; font-size: 0.9375rem; }
.footer__brand { grid-column: 1 / span 4; display: grid; gap: 18px; align-content: start; color: var(--ink-2); }
.footer__brand .logo { color: var(--ink); }
.footer__col { grid-column: span 2; display: grid; gap: 6px; align-content: start; }
.footer__h { font-size: 0.8125rem; color: var(--ink-3); margin-bottom: 6px; }
.frames__title { font-size: inherit; letter-spacing: 0; line-height: inherit; }
.footer__col a { transition: opacity 300ms; }
.footer__col a:hover { opacity: 0.6; }
.footer__base { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; font-size: 0.8125rem; color: var(--ink-3); }

/* ---------- páginas internas ---------- */
.page-head { padding: calc(var(--header-h) + clamp(56px, 8vw, 112px)) var(--gutter) clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 24px; align-items: end; }
.page-head h1 { grid-column: 1 / span 7; }
.page-head .lead { grid-column: 8 / span 5; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.6; max-width: 46ch; }
.proj-head { padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) var(--gutter) clamp(32px, 4vw, 56px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 28px; align-items: end; }
.proj-head__title { grid-column: 1 / span 8; display: grid; gap: 16px; justify-items: start; }
.proj-head__meta { grid-column: 9 / span 4; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; font-size: 0.9375rem; border-top: 1px solid var(--line); padding-top: 16px; }
.proj-head__meta dt { color: var(--ink-3); }
.crumb { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9375rem; color: var(--ink-3); transition: color 300ms; }
.crumb svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.25; stroke-linecap: round; }
.crumb:hover { color: var(--ink); }
.proj-cover { padding: 0 var(--gutter); }
.proj-body { padding: clamp(64px, 9vw, 128px) var(--gutter); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 48px; }
.proj-body .prose { grid-column: 1 / span 6; font-size: 1.125rem; color: var(--ink); }
.proj-body .ficha { grid-column: 8 / span 5; }
.ficha { border-top: 1px solid var(--line); font-size: 0.9375rem; }
.ficha div { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ficha dt { color: var(--ink-3); }
.ficha dd { overflow-wrap: anywhere; }
.gallery { padding: 0 var(--gutter) clamp(64px, 9vw, 128px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: clamp(24px, 3vw, 48px); align-items: end; }
.gallery .g-full { grid-column: 1 / -1; }
.gallery .g-a { grid-column: 1 / span 7; }
.gallery .g-b { grid-column: 9 / span 4; }
.gallery .g-c { grid-column: 3 / span 8; }
.gallery .g-d { grid-column: 1 / span 6; }
.gallery .g-e { grid-column: 7 / span 6; }
.next { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); padding: clamp(48px, 6vw, 80px) var(--gutter); border-top: 1px solid var(--line); align-items: end; }
.next__text { grid-column: 1 / span 6; display: grid; gap: 12px; }
.next__media { grid-column: 9 / span 4; }
.next .media img { transition: transform 1400ms var(--ease); }
.next:hover .media img { transform: scale(1.035); }

.mvv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px var(--col-gap); border-top: 1px solid var(--line); padding-top: 24px; }
.mvv dt { font-size: 0.8125rem; color: var(--ink-3); margin-bottom: 8px; }
.mvv dd { font-size: 1.125rem; line-height: 1.45; letter-spacing: -0.005em; }
.about-media { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 24px; align-items: end; }
.about-media .a { grid-column: 1 / span 8; }
.about-media .b { grid-column: 10 / span 3; }
.about-media figcaption { margin-top: 10px; font-size: 0.8125rem; color: var(--ink-3); }
.team { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) var(--col-gap); }
.team figcaption { margin-top: 12px; display: grid; gap: 2px; }
.team b { font-weight: 400; font-size: 0.9375rem; }
.team span { font-size: 0.8125rem; color: var(--ink-3); line-height: 1.4; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .team { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .office__text { grid-column: 8 / span 5; }
  .film__text { grid-column: 1 / span 5; }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav, .logo__name { display: none; }
  .menu-btn { display: inline-flex; }
  .menu { display: flex; }
  .hero__body { grid-template-columns: 1fr; gap: 28px; }
  .hero__media video { transform: scale(1.35); transform-origin: 62% 82%; }
  .film__frame .play__ring { display: none; }
  .intro__statement { grid-column: 1 / -1; }
  .intro__facts { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .film__text, .film__media, .office__media, .office__text, .split__head, .split__body, .contato__text, .contato__form,
  .page-head h1, .page-head .lead, .proj-head__title, .proj-head__meta, .proj-body .prose, .proj-body .ficha,
  .next__text, .about-media .a { grid-column: 1 / -1; }
  .next__media { grid-column: 1 / span 8; margin-top: 24px; }
  .about-media .b { grid-column: 5 / -1; }
  .gallery .g-a, .gallery .g-c, .gallery .g-d, .gallery .g-e { grid-column: 1 / -1; }
  .gallery .g-b { grid-column: 4 / -1; }
  .contact-cols { grid-template-columns: 1fr 1fr; }
  .mvv { grid-template-columns: 1fr; }
  .list a, .list__head { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) minmax(0, 1fr); }
  .list a span:nth-child(2), .list a span:nth-child(5), .list__head span:nth-child(2), .list__head span:nth-child(5) { display: none; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col { grid-column: span 4; }
  .frame__cap { flex-direction: column; align-items: flex-start; }
  .chrono li { grid-template-columns: 64px minmax(0, 1fr); }
  .chrono p { grid-column: 2; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr 1fr; }
  .contact-cols, .form__row { grid-template-columns: 1fr; }
  .footer__col { grid-column: span 6; }
  .ficha div { grid-template-columns: 1fr; gap: 2px; }
  .list a, .list__head { grid-template-columns: minmax(0, 1fr) auto; }
  .list a span:nth-child(3), .list__head span:nth-child(3) { display: none; }
  .gallery .g-b, .next__media { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal img, .js .hero .js-in, .frame img { transition: none !important; clip-path: none !important; transform: none !important; opacity: 1 !important; }
  .frame { transition: none; }
  dialog.filme[open] { animation: none; }
}

/* =========================================================
   v5 — refinamentos
   ========================================================= */

/* acessibilidade: pular para o conteúdo */
.skip { position: fixed; left: var(--gutter); top: 12px; z-index: 200; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: 999px; font-size: 0.875rem; transform: translateY(-160%); transition: transform 300ms var(--ease); }
.skip:focus { transform: none; }

/* transições entre páginas */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 380ms; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
.header { view-transition-name: site-header; }

/* cabeçalho: navegação + idioma */
.header__right { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.lang { display: flex; gap: 2px; font-size: 0.8125rem; letter-spacing: 0.02em; }
.lang a { padding: 4px 6px; border-radius: 4px; opacity: 0.55; transition: opacity 300ms; }
.lang a:hover, .lang a[aria-current] { opacity: 1; }
.logo .mk-p { transform-box: fill-box; transform-origin: 50% 50%; transition: transform 800ms var(--ease); }
.logo:hover .mk-p { transform: rotate(90deg); }

/* abertura: o monograma é revelado por máscara, sem nunca ser escalado ou deformado */
.loader { background: var(--paper); }
.loader__inner { gap: 26px; transition: opacity 500ms var(--ease), transform 800ms var(--ease); }
.lm { position: relative; width: clamp(128px, 14vw, 168px); aspect-ratio: 1103 / 426; }
.lm svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lm__mb path { fill: var(--ink-2); }
.lm__c path { fill: var(--petrol); }
.lm__p path { fill: #f2f2f0; }
.lm__mb { clip-path: inset(0 100% 0 0); }
.lm__c { clip-path: circle(0% at 80.6% 50%); }
.lm__p { opacity: 0; }
.loader.is-in .lm__mb { animation: lm-wipe 1000ms cubic-bezier(0.65, 0, 0.35, 1) 150ms forwards; }
.loader.is-in .lm__c { animation: lm-iris 900ms cubic-bezier(0.65, 0, 0.35, 1) 800ms forwards; }
.loader.is-in .lm__p { animation: lm-fade 600ms ease 1350ms forwards; }
@keyframes lm-wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes lm-iris { to { clip-path: circle(42% at 80.6% 50%); } }
@keyframes lm-fade { to { opacity: 1; } }
.loader__cap { font-size: 0.8125rem; letter-spacing: 0.01em; color: var(--ink-2); text-align: center; opacity: 0; transform: translateY(6px); transition: opacity 800ms var(--ease) 1400ms, transform 900ms var(--ease) 1400ms; }
.loader__cap span { color: var(--ink-3); }
.loader.is-in .loader__cap { opacity: 1; transform: none; }
.loader__line { width: clamp(128px, 14vw, 168px); margin-top: 4px; }
.loader.is-done .loader__inner { opacity: 0; transform: translateY(-14px); }

/* hero: título palavra por palavra, vídeo entra em fusão sobre o pôster */
.hero__media { background: #0d0d0e url("/assets/video/hero-poster.webp") center / cover no-repeat; }
.hero__media video { opacity: 0; transition: opacity 1400ms var(--ease); }
.hero__media video.is-playing { opacity: 1; }
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero__title .w > span { display: inline-block; }
.js .hero__title .w > span { transform: translateY(112%); transition: transform 1300ms cubic-bezier(0.22, 1, 0.36, 1); transition-delay: calc(var(--i) * 70ms); }
.js .hero.is-ready .hero__title .w > span { transform: none; }
.js .hero.is-ready .js-in.d1 { transition-delay: 560ms; }
.js .hero.is-ready .js-in.d2 { transition-delay: 760ms; }
.hero__cue { position: absolute; left: 50%; bottom: 0; width: 1px; height: 64px; background: rgba(242,242,240,0.24); overflow: hidden; transform: translateX(-50%); }
.hero__cue i { position: absolute; left: 0; top: 0; width: 1px; height: 22px; background: var(--on-night); animation: cue 2.6s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
@keyframes cue { 0% { transform: translateY(-24px); } 70%, 100% { transform: translateY(70px); } }

/* filme: a foto ocupa a coluna inteira, de cima a baixo */
.film-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: stretch; }
.film-split__text { grid-column: 1 / span 4; padding: clamp(56px, 6vw, 96px) 0 clamp(56px, 6vw, 96px) var(--gutter); display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(24px, 3vw, 40px); }
.film-split__media { grid-column: 5 / -1; position: relative; overflow: hidden; cursor: pointer; margin: 0; aspect-ratio: 16 / 10; }
.film-split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transition: transform 2000ms var(--ease); }
.film-split__media:hover img { transform: scale(1.025); }
.film-split__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,11,0.5), rgba(10,10,11,0) 32%); pointer-events: none; }
.film-split__media figcaption { position: absolute; left: 28px; bottom: 24px; z-index: 1; color: rgba(242,242,240,0.88); font-size: 0.8125rem; }
.js .film-split__media.reveal { clip-path: inset(0 0 0 100%); transition: clip-path 1400ms var(--ease); }
.js .film-split__media.reveal.in { clip-path: inset(0 0 0 0); }

/* portfólio: categorias e projetos de borda a borda */
[data-index] > .toolbar { margin-bottom: 0; }
.pf-cat { padding-top: clamp(80px, 9vw, 144px); scroll-margin-top: 40px; }
.pf-cat.is-hidden { display: none; }
.pf-cat__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; margin-bottom: clamp(28px, 3.5vw, 48px); padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.pf-cat__desc { color: var(--ink-3); font-size: 0.9375rem; }
.pf-list { display: grid; gap: clamp(64px, 7vw, 112px); }
.pf__link { display: block; }
.pf__media { position: relative; aspect-ratio: 16 / 9; max-height: 88vh; width: 100%; overflow: hidden; background: var(--paper-2); }
.pf__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 2000ms var(--ease); }
.pf__link:hover .pf__media img { transform: scale(1.02); }
.pf__cap { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t a" "m a"; column-gap: 32px; row-gap: 6px; align-items: end; padding: 22px var(--gutter) 0; }
.pf__cap h3 { grid-area: t; }
.pf__meta { grid-area: m; font-size: 0.9375rem; color: var(--ink-3); }
.pf__cap .arrow-link { grid-area: a; }
.pf__link:hover .arrow-link { gap: 16px; }
[data-view="lista"] .pf-wrap, [data-view="imagens"] .list-wrap { display: none; }
.list-wrap { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(88px, 12vw, 176px); }
.pf-wrap { padding-bottom: clamp(88px, 12vw, 176px); }

/* rodapé: créditos */
.footer__photos { grid-column: 1 / -1; font-size: 0.8125rem; color: var(--ink-3); max-width: 96ch; }
.footer__base { align-items: center; }
.credit { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); transition: color 300ms; }
.credit img { height: 14px; width: auto; opacity: 0.8; transition: opacity 300ms, transform 600ms var(--ease); }
.credit:hover { color: var(--ink); }
.credit:hover img { opacity: 1; transform: translateY(-1px); }
.totop { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); transition: color 300ms; }
.totop svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 500ms var(--ease); }
.totop:hover { color: var(--ink); }
.totop:hover svg { transform: translateY(-3px); }
.page-head--404 { min-height: 72vh; align-content: end; }

@media (max-width: 860px) {
  .header__right { gap: 18px; }
  .film-split { min-height: 0; }
  .film-split__media { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 4 / 3; min-height: 0; }
  .film-split__text { grid-column: 1 / -1; padding: 48px var(--gutter) 72px; }
  .pf__media { aspect-ratio: 4 / 3; }
  .pf__cap { grid-template-columns: 1fr; grid-template-areas: "t" "m" "a"; }
  .pf__cap .arrow-link { justify-self: start; margin-top: 10px; }
  .hero__cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .js .hero__title .w > span, .js .film-split__media.reveal { transform: none; clip-path: none; transition: none; }
  .hero__media video { opacity: 1; transition: none; }
  .hero__cue i { animation: none; }
  .lm__mb, .lm__c { clip-path: none !important; animation: none !important; }
  .lm__p { opacity: 1; animation: none !important; }
}

/* =========================================================
   v6 — correções da revisão
   ========================================================= */
.lm__mb { clip-path: inset(0 100% 0 0); }
.loader.is-in .lm__mb { animation: lm-wipe 950ms cubic-bezier(0.22, 1, 0.36, 1) 120ms forwards; }
@keyframes lm-wipe { to { clip-path: inset(0 43.5% 0 0); } }
.loader.is-in .lm__c { animation: lm-iris 800ms cubic-bezier(0.22, 1, 0.36, 1) 620ms forwards; }
@keyframes lm-iris { to { clip-path: circle(27% at 80.6% 50%); } }
.loader.is-in .lm__p { animation: lm-fade 500ms ease 1050ms forwards; }
.lm__p path { fill: #e0e0de; }
.loader__cap { transition-delay: 1050ms; }
.loader { transition: clip-path 800ms var(--ease); }

/* idioma com contraste sólido */
.lang a { opacity: 1; }
.lang a:not([aria-current]) { color: color-mix(in srgb, currentColor 68%, transparent); }
.lang a:hover { color: inherit; }
.hero__media::after { background: linear-gradient(to top, rgba(10,10,11,0.62) 0%, rgba(10,10,11,0.18) 42%, rgba(10,10,11,0) 64%), linear-gradient(to bottom, rgba(10,10,11,0.46) 0%, rgba(10,10,11,0) 24%); }

/* destaques: um indicador, menos rolagem por quadro */
.frames { height: calc(var(--n) * 75vh + 25vh); }
.frames__count { position: absolute; z-index: 3; top: calc(var(--header-h) + 24px); right: var(--gutter); font-size: 0.9375rem; color: rgba(242,242,240,0.9); }

/* próximo projeto */
.next__title { display: inline-flex; align-items: baseline; gap: 0.35em; }
.next__arrow svg { width: 0.6em; height: 0.6em; stroke: currentColor; fill: none; stroke-width: 1.25; transition: transform 600ms var(--ease); }
.next:hover .next__arrow svg { transform: translateX(6px); }

/* ficha: consultores em lista */
.ficha__list { display: grid; gap: 4px; }

/* fechamento da home */
.closing { display: grid; gap: 32px; justify-items: start; border-top: 1px solid var(--line); padding-top: clamp(64px, 8vw, 120px); }
.closing__title { max-width: 18ch; }
.closing__cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.contact-cols { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* portfólio: títulos de categoria menores que o da página */
.pf-cat__head h2 { font-size: clamp(1.6rem, 2.7vw, 2.5rem); line-height: 1.12; letter-spacing: -0.02em; }
.pf-cat:first-child { padding-top: clamp(48px, 5vw, 72px); }

@media (max-width: 860px) {
  /* vídeo do hero sem ampliação extra no celular */
  .hero__media video { transform: none; }
  /* destaques empilhados no celular, na proporção das fotos */
  .frames { height: auto; }
  .frames__stage { position: static; height: auto; display: grid; gap: 48px; padding: 72px 0; }
  .frame { position: relative; inset: auto; opacity: 1; transition: none; }
  .frame img { position: relative; inset: auto; height: auto; aspect-ratio: 4 / 3; transform: none; }
  .frame::after { display: none; }
  .frame__cap { position: static; padding: 18px var(--gutter) 0; }
  .frames__count { display: none; }
  /* filtros em uma linha com rolagem */
  .toolbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 24px; }
  .toolbar::-webkit-scrollbar { display: none; }
  .seg { flex-wrap: nowrap; white-space: nowrap; }
  .contact-cols { grid-template-columns: 1fr 1fr; }
  .film-split__media figcaption { position: static; display: none; }
  .film-split__media::after { display: none; }
}
@media (hover: none) {
  .seg[aria-label="Modo de visualização"], .seg[aria-label="View"] { display: none; }
}
@media (max-width: 560px) {
  .contact-cols { grid-template-columns: 1fr; }
}
