/* Vezzi Studio | landing page
   Direção: brandkit/new-brandkit (marfim e linho como base, cobre como acento, oliva em um bloco, Playfair Display + Montserrat).
   Formas: cantos retos (botões, fotos), arco nos retratos. Sem cartões, sem vidro. Veja DESIGN.md. */

@font-face { font-family: "Playfair Display"; font-weight: 400 600; font-style: normal; font-display: swap; src: url(assets/fonts/playfair-var.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 400 500; font-style: italic; font-display: swap; src: url(assets/fonts/playfair-italic.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 200 500; font-style: normal; font-display: swap; src: url(assets/fonts/montserrat-var.woff2) format("woff2"); }

:root {
  /* paleta do brandkit */
  --marfim: #F8F5EE;      /* Ivory */
  --linho: #E7D9C8;       /* Sunwashed Linen */
  --areia: #DCC8B2;       /* Warm Sand */
  --nevoa: #B6B49C;       /* Olive Mist */
  --salvia: #98A084;      /* Sage Garden */
  --oliva: #667055;       /* Deep Olive */
  --grafite: #2E2E28;     /* Olive Charcoal */
  --terracota: #C28B6A;   /* Terracotta Glow (logo e detalhes grandes) */

  /* derivados, só para contraste */
  --cobre: #9C5535;             /* terracota escurecida: botões e texto sobre marfim/linho (>= 5:1) */
  --cobre-hover: #844527;
  --oliva-fundo: #5C6649;       /* oliva 10% mais fundo: bloco oliva, texto claro passa AA */
  --on-oliva: #F8F5EE;
  --on-oliva-soft: #EAE1D2;
  --terracota-sobre-oliva: #F0CDB8;
  --on-grafite: #EFE6D8;
  --on-grafite-soft: #CFC6B6;
  --tinta: #2E2E28;
  --tinta-suave: #55564B;
  --fio: rgb(46 46 40 / .2);
  --fio-escuro: rgb(248 245 238 / .24);

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;

  --r: 2px;                 /* único raio: botões e fotos */
  --gutter: clamp(20px, 6vw, 96px);
  --max: 1240px;
  --section-y: clamp(80px, 10vw, 124px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 1px); -webkit-text-size-adjust: 100%; scrollbar-color: var(--oliva) var(--marfim); }
body { margin: 0; background: var(--marfim); color: var(--tinta); font: 400 1rem/1.75 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--terracota); color: var(--grafite); }
:focus-visible { outline: 2px solid var(--cobre); outline-offset: 3px; }
.section--olive :focus-visible, .lightbox :focus-visible { outline-color: var(--terracota-sobre-oliva); }
.skip { position: absolute; left: 12px; top: -64px; z-index: 100; background: var(--grafite); color: var(--marfim); padding: 12px 18px; }
.skip:focus { top: 12px; }
.i { width: 1.1em; height: 1.1em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 80px; pointer-events: none; }
.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }

/* tipografia */
.h2 { font: 400 clamp(2rem, 4vw, 3.4rem)/1.12 var(--serif); letter-spacing: -.006em; text-wrap: balance; }
.h2 em { font-style: italic; letter-spacing: 0; }
.h2--xl { font-size: clamp(2.2rem, 4.4vw, 3.8rem); line-height: 1.05; }
.lead { margin-top: 20px; font-size: clamp(1rem, 1.3vw, 1.1rem); color: var(--tinta-suave); max-width: 52ch; text-wrap: pretty; }

/* botões: retangulares, versais com respiro, como no kit */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 0 28px; border-radius: 999px; background: var(--cobre); color: #FFF9F2; font: 400 .6875rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; white-space: nowrap; border: 1px solid var(--cobre); transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .25s var(--ease); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: .75rem; }
.btn--ghost { background: transparent; color: var(--cobre); border-color: var(--cobre); }
.btn:active { transform: translateY(1px); }
@media (hover: hover) {
  .btn:hover { background: var(--cobre-hover); border-color: var(--cobre-hover); }
  .btn--ghost:hover { background: var(--cobre); color: #FFF9F2; }
}
.link-quiet { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 400 .6875rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--cobre); text-decoration: none; transition: gap .4s var(--ease), color .4s var(--ease); }
@media (hover: hover) { .link-quiet:hover { gap: 16px; color: var(--cobre-hover); } }

/* menu: barra de largura total sobre marfim, fio ao rolar */
.header { position: fixed; z-index: 50; inset: 0 0 auto 0; background: var(--marfim); border-bottom: 1px solid transparent; transition: border-color .5s var(--ease); }
.header.is-scrolled { border-bottom-color: var(--fio); }
.header__bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__brand { display: flex; align-items: center; min-height: 44px; flex: none; position: relative; z-index: 2; }
.header__brand img { height: 28px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(24px, 3.4vw, 52px); }
.nav__list { display: flex; align-items: center; gap: clamp(24px, 3.2vw, 52px); }
.nav__list a { position: relative; display: flex; align-items: center; min-height: 44px; font: 400 .75rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--tinta); transition: color .4s var(--ease); }
@media (hover: hover) { .nav__list a:hover { color: var(--cobre); } }
.nav__list a[aria-current="true"] { color: var(--cobre); }
.nav__extra { display: none; }
.menu-btn { display: none; align-items: center; gap: 12px; min-height: 46px; padding: 0 2px 0 12px; background: none; border: 0; cursor: pointer; font: 400 .75rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--tinta); position: relative; z-index: 2; }
.menu-btn__bars { position: relative; width: 24px; height: 9px; border-block: 1px solid currentColor; transition: border-color .2s; }
.menu-btn__bars::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transform: translateY(-50%); transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] .menu-btn__bars { border-color: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before, .menu-btn[aria-expanded="true"] .menu-btn__bars::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(-50%) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-50%) rotate(-45deg); }

/* hero: o slogan em duas linhas e uma "janela" em arco (assinatura do kit) */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); min-height: 100svh; padding-top: var(--header-h); background: var(--marfim); align-items: stretch; }
.hero__text { align-self: center; padding: clamp(24px, 5svh, 80px) clamp(16px, 2vw, 40px) clamp(24px, 5svh, 80px) max(var(--gutter), calc((100vw - var(--max)) / 2)); }
.hero__title { font: 400 clamp(2.4rem, min(5.4vw, 10svh), 5rem)/1.08 var(--serif); letter-spacing: -.012em; text-wrap: balance; }
.hero__title span { display: block; }
.hero__title-2 { font-style: italic; font-size: .6em; line-height: 1.2; letter-spacing: 0; color: var(--cobre); margin-top: .75em; max-width: 20em; }
.hero__lead { margin-top: clamp(20px, 3.6svh, 34px); max-width: 34ch; font-size: clamp(1rem, 1.25vw, 1.12rem); color: var(--tinta-suave); }
.hero__actions { margin-top: clamp(20px, 4svh, 36px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.hero__arch img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .hero__arch img { animation: settle 1.8s var(--ease) .1s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes reveal { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
  @keyframes settle { from { transform: scale(1.12) translateY(6%); } to { transform: none; } }
  /* o detalhe sobe um pouco mais rápido que a janela: profundidade sem efeito chamativo (onde houver suporte) */
  @supports (animation-timeline: scroll()) {
    @keyframes drift-a { to { transform: translateY(-28px); } }
  }
}

/* manifesto: o momento de escala da página, como abertura de revista */

/* seções */
.section { padding-block: var(--section-y); }
.projects { padding-top: clamp(40px, 5vw, 72px); }
.section--linho { background: var(--linho); --cobre: #844527; --cobre-hover: #6F3A20; } /* o cobre padrão dá 4,0:1 sobre linho; este dá >= 5,5:1 */
.section--olive { background: var(--oliva-fundo); color: var(--on-oliva); --tinta-suave: var(--on-oliva-soft); --fio: var(--fio-escuro); }
.section__head { margin-bottom: clamp(32px, 4.5vw, 60px); }
.section__head--split { display: block; }
.section__head--split .lead { margin-top: 14px; max-width: 40ch; }
.section__head--narrow .h2 { max-width: 14em; }
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* os arcos abrem como a janela do hero: cortina de baixo para cima, depois de o bloco aparecer */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] :is(.person__photo, .cta__arch img) { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease) .15s, transform .9s var(--ease); }
  .js [data-reveal].is-in :is(.person__photo, .cta__arch img) { clip-path: inset(0); }
}

/* projetos: abertura em largura total, depois ritmo assimétrico; legenda abaixo da foto */
@media (hover: hover) { .work__btn:hover img { transform: scale(1.04); } }
@media (hover: hover) { .work__btn::after { opacity: 0; } .work__btn:hover::after, .work__btn:focus-visible::after { opacity: 1; } }

/* delicadeza: texto corrido leve sobre fundos claros (no oliva e no rodapé fica 400, para não afinar em fundo escuro) */
.lead, .hero__lead, .cta__text p, .person p:last-child, .studio__text p { font-weight: 300; }
/* molduras finas em fio, a um respiro dos arcos (a cortina corta só a imagem, não o contorno) */

/* quem somos: texto à esquerda, retratos em arco à direita */
.person__photo { overflow: hidden; border-radius: 999px 999px 0 0; background: var(--areia); }
.person__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; transition: transform 1.2s var(--ease); }
@media (hover: hover) { .person:hover .person__photo img { transform: scale(1.04); } }
.person__name { margin-top: 22px; font: 400 clamp(1.3rem, 1.8vw, 1.6rem)/1.2 var(--serif); }
.person__role { margin-top: 4px; font: 500 .75rem/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--cobre); }
.person p:last-child { margin-top: 12px; font-size: .9375rem; color: var(--tinta-suave); max-width: 38ch; }

/* serviços: linhas alternadas, janela em arco de um lado e título grande do outro */

/* serviços e atendimento: um só bloco oliva; serviços à esquerda, título e arco à direita (espelha o atendimento abaixo) */

/* atendimento: bloco oliva, só tipografia e fios */
.section--olive .h2 { color: var(--on-oliva); }

/* obra real (aparece só com fotos em CONFIG.obra) */
.obra[hidden] { display: none; }
.obra__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.obra__list img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: var(--linho); }
.obra__list span { display: block; margin-top: 14px; font: 400 1.2rem/1.3 var(--serif); }

/* contato */
.cta { padding-block: clamp(64px, 8vw, 112px) calc(clamp(64px, 8vw, 112px) + clamp(28px, 4vw, 48px)); }
.cta__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.cta__text p { margin-top: 22px; max-width: 40ch; color: var(--tinta-suave); }
.cta__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.cta__arch { justify-self: end; width: min(100%, 380px); aspect-ratio: 3 / 4; overflow: hidden; border-radius: 999px 999px 0 0; background: var(--areia); }
.cta__arch img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }

/* rodapé */

/* botão fixo de WhatsApp (só no celular) */
.fab { display: none; }

/* visualização ampliada */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(46 46 40 / .97); color: var(--on-grafite); }
.lightbox::backdrop { background: rgb(46 46 40 / .97); }
.lightbox[open] { display: grid; place-items: center; animation: lbIn .3s var(--ease); }
@keyframes lbIn { from { opacity: 0; } }
.lightbox__fig { display: grid; gap: 14px; justify-items: center; width: min(100% - 32px, 1500px); }
.lightbox__img { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; }
.lightbox__cap { font: 400 1.4rem/1.2 var(--serif); text-align: center; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--fio-escuro); background: transparent; color: var(--on-grafite); cursor: pointer; transition: background-color .2s; }
.lightbox__btn .i { width: 22px; height: 22px; }
@media (hover: hover) { .lightbox__btn:hover { background: rgb(248 245 238 / .12); } }
.lightbox__close { top: max(18px, env(safe-area-inset-top)); right: 18px; }
.lightbox__prev, .lightbox__next { top: 50%; margin-top: -26px; }
.lightbox__prev { left: 18px; } .lightbox__prev .i { transform: rotate(-135deg); }
.lightbox__next { right: 18px; } .lightbox__next .i { transform: rotate(45deg); }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== responsividade ===== */
@media (min-width: 1600px) { :root { --max: 1360px; --header-h: 84px; } body { font-size: 1.0625rem; } .header__brand img { height: 32px; } }
@media (min-width: 2200px) { :root { --max: 1560px; } html { font-size: 112.5%; } }

/* tablet e celular: menu em tela cheia */
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .header__brand img { height: 26px; }
  .menu-btn { display: inline-flex; }
  .nav { position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: calc(var(--header-h) + 12px) var(--gutter) max(28px, env(safe-area-inset-bottom)); background: var(--marfim); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s linear .3s; overflow-y: auto; }
  .nav.is-open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease), visibility 0s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; max-width: 560px; margin-inline: auto; }
  .nav__list li { padding-block: 2px; }
  .nav__list a { font: 400 clamp(1.9rem, 7.5vw, 2.6rem)/1.15 var(--serif); letter-spacing: 0; text-transform: none; padding: 18px 0; display: flex; align-items: center; justify-content: space-between; }
  .nav__list a[aria-current="true"] { color: var(--cobre); }
  .nav__cta { width: 100%; max-width: 560px; margin: 32px auto 0; min-height: 54px; font-size: .78rem; }
  .nav__extra { display: grid; gap: 4px; width: 100%; max-width: 560px; margin: 0 auto; padding-top: 40px; }
  .nav__extra p { font: 500 .75rem/1.7 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--tinta-suave); }
  .nav__extra ul { display: flex; flex-wrap: wrap; gap: 0 24px; }
  .nav__extra a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; text-decoration: none; }

  .hero { grid-template-columns: 1fr; min-height: 0; align-items: start; }
  .hero { border-bottom: 0; }
  .hero__text { display: flex; flex-direction: column; }
  .hero__lead { order: 3; }
  .hero__text { padding: clamp(32px, 6vw, 56px) var(--gutter) clamp(48px, 8vw, 80px); }
  .hero__title { font-size: clamp(2.5rem, 8.5vw, 4.4rem); }

  .section__head--split { grid-template-columns: 1fr; }
  .section__head--split .lead { justify-self: start; }
  .obra__list { grid-template-columns: 1fr 1fr; }
  .cta__grid { grid-template-columns: 1fr; }

  .fab { display: flex; align-items: center; justify-content: center; gap: 10px; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; min-height: calc(50px + env(safe-area-inset-bottom)); padding: 0 22px env(safe-area-inset-bottom); border-radius: 0; background: var(--cobre); color: #FFF9F2; font: 500 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; box-shadow: 0 -6px 18px -12px rgb(46 46 40 / .5); opacity: 0; visibility: hidden; transform: translateY(100%); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s; }
  .fab.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s; }
  body.is-locked .fab { opacity: 0; visibility: hidden; }
}

@media (max-width: 640px) {
  .hero__actions .btn { width: 100%; }
  .hero__actions .link-quiet { width: 100%; justify-content: center; }
  .person__role { letter-spacing: .1em; }
  .cta__actions .btn { width: 100%; }
  .cta__arch { justify-self: center; width: min(78%, 320px); }
}
@media (max-width: 400px) {
  :root { --gutter: 18px; }
  .h2 { font-size: 2rem; }
  .hero__title { font-size: 2.4rem; }
  .btn { white-space: normal; text-align: center; padding: 0 20px; }
  .person__photo img { aspect-ratio: 4 / 4.4; }
}
@media (max-width: 340px) { .header__brand img { height: 24px; } }

@media (max-height: 560px) and (orientation: landscape) and (min-width: 700px) { .hero { min-height: 0; } }
.nb { white-space: nowrap; }


/* ===== v6 (2026-10-19): hero integrado, manifesto, galeria, bloco oliva no eixo central, rodapé mínimo ===== */
.hero__visual { display: flex; justify-content: flex-end; align-items: flex-end; padding: clamp(24px, 3vw, 48px) var(--gutter) 0 clamp(16px, 2vw, 40px); }
.hero__frame { position: relative; height: min(calc(100svh - var(--header-h) - 48px), 980px); aspect-ratio: 4 / 5.2; max-width: 100%; }
.hero__arch { position: absolute; inset: 0; overflow: hidden; border-radius: 999px 999px 0 0; background: var(--areia); }
@media (min-width: 961px) {
  .hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .hero__visual { padding: 0; }
  .hero__frame { height: calc(100svh - var(--header-h)); max-height: 980px; width: 100%; aspect-ratio: auto; }
  .hero__arch { border-radius: clamp(160px, 30vw, 440px) 0 0 0; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%); mask-image: linear-gradient(to right, transparent 0, #000 16%); }
}

.manifesto__text em { font-style: italic; color: var(--cobre); }
.manifesto__sign { margin-top: clamp(24px, 3vw, 40px); font: 400 .6875rem/1.7 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--tinta-suave); }

.projects .section__head { text-align: center; margin-bottom: clamp(28px, 4vw, 52px); }
.projects .h2 { font-size: clamp(1.6rem, 2.7vw, 2.4rem); }
.projects .lead { margin-inline: auto; }

.work__btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--linho); cursor: zoom-in; overflow: hidden; }
.work__btn img { display: block; width: 100%; height: 100%; object-fit: cover; }
.work--a { margin: 0; }

.works__next { display: grid; justify-items: center; gap: 6px; text-align: center; padding-top: clamp(36px, 5vw, 72px); }
.works__next p { font: italic 400 clamp(1.5rem, 2.8vw, 2.4rem)/1.2 var(--serif); }

.studio__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.pillars { margin-top: clamp(24px, 3vw, 40px); display: grid; gap: 6px; }
.pillars li { font: italic 400 1.2rem/1.4 var(--serif); }
.people { display: grid; justify-items: center; }
.person { width: min(100%, 400px); }

.svc__item h3 { font: 400 clamp(1.5rem, 2.1vw, 1.9rem)/1.2 var(--serif); color: var(--on-oliva); }
.svc__item p { margin-top: 12px; margin-inline: auto; max-width: 34ch; color: var(--on-oliva-soft); font-size: .9375rem; }
.partners { display: grid; justify-items: center; margin-top: clamp(56px, 7vw, 100px); }
.partners__title { font: italic 400 clamp(1.4rem, 2.2vw, 1.9rem)/1.25 var(--serif); color: var(--on-oliva); }
.partners p { margin-top: 10px; max-width: 52ch; color: var(--on-oliva-soft); font-size: .9375rem; }
.partners__logos { margin-top: clamp(28px, 4vw, 48px); min-height: 80px; }
.partners__logos[hidden] { display: none; }


@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    @keyframes slowzoom { from { transform: scale(1.14) translateY(-3%); } to { transform: none; } }
  }
}
@media (prefers-reduced-motion: reduce) {
}

@media (max-width: 960px) {
  .studio__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
}

@media (max-width: 960px) {
  .hero__visual { order: -1; justify-content: center; align-items: flex-start; padding: clamp(20px, 4vw, 40px) var(--gutter) 0; }
  .hero__frame { height: auto; width: min(100%, 440px); aspect-ratio: 4 / 4.6; }
}
@media (max-width: 640px) { .hero__frame { width: min(86%, 360px); } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .hero__frame { animation: drift-a linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  }
}


/* ===== v6.1: hero atravessa o cabeçalho, rodapé claro com cantos superiores arredondados ===== */
.hero__lead { margin-top: clamp(28px, 5svh, 48px); }
.hero__actions { margin-top: clamp(28px, 5.5svh, 52px); }
.hero__title-2 { margin-top: .9em; }
@media (min-width: 961px) {
  .hero { padding-top: 0; }
  .hero__text { padding-top: calc(var(--header-h) + clamp(24px, 5svh, 72px)); }
  .hero__visual { align-items: stretch; }
  .hero__frame { height: 100svh; max-height: none; }
  .hero__arch { border-radius: 85% 0 0 0 / 70% 0 0 0; }
  .header:not(.is-scrolled) { background: transparent; }
}
.header { transition: border-color .5s var(--ease), background-color .5s var(--ease); }

.footer { position: relative; margin-top: calc(-1 * clamp(28px, 4vw, 48px)); padding-top: clamp(20px, 2.4vw, 28px); border-radius: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0 0; background: var(--marfim); color: var(--tinta-suave); text-align: center; }
.footer__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px 24px; }
.footer__nav { grid-column: 2; }
.footer__social { grid-column: 3; justify-self: end; }
.footer__social { display: flex; gap: 8px; }
.footer__social a { display: flex; justify-content: center; align-items: center; padding: 0; width: 44px; height: 44px; border: 1px solid var(--fio); border-radius: 999px; color: var(--tinta-suave); transition: color .4s var(--ease), border-color .4s var(--ease); }
.footer__social .i { width: 18px; height: 18px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 0 clamp(16px, 2.4vw, 32px); }
.footer a { display: flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--tinta); font-size: .875rem; transition: color .4s var(--ease); }
@media (hover: hover) { .footer a:hover, .footer__social a:hover { color: var(--cobre); border-color: var(--cobre); } }
.footer__legal { margin: 0; padding: 6px var(--gutter) max(20px, env(safe-area-inset-bottom)); font-size: .75rem; line-height: 1.6; color: var(--tinta-suave); text-wrap: balance; }
@media (max-width: 820px) { .footer__row { display: flex; flex-direction: column-reverse; justify-content: center; } .footer__nav { justify-content: center; } }


/* ===== v7 (2026-10-19): menu, manifesto, galeria, setas no oliva, atendimento em quadros ===== */
/* arredondado como linguagem: botões em pílula, rodapé, slides e quadros */
.manifesto { position: relative; isolation: isolate; padding-block: clamp(72px, 9vw, 130px) clamp(40px, 5vw, 72px); text-align: center; }
.manifesto::before { content: ""; position: absolute; z-index: -1; left: 50%; top: clamp(24px, 4vw, 56px); bottom: 0; width: min(100% - var(--gutter) * 2, 860px); transform: translateX(-50%); background: #F0E8DB; border-radius: 999px 999px 0 0; }
.manifesto .wrap { padding-top: clamp(80px, 11vw, 160px); }
.manifesto__text { max-width: 30em; margin-inline: auto; padding-inline: clamp(8px, 4vw, 48px); font: 400 clamp(1.35rem, 2.3vw, 2rem)/1.55 var(--serif); text-wrap: balance; color: var(--tinta); }


/* soluções conectadas por setas */
.svc, .atend__head { display: grid; justify-items: center; text-align: center; }
.svc .h2 { max-width: 16em; }
.svc__cols { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; gap: 0 clamp(14px, 2.4vw, 36px); width: 100%; max-width: 1080px; margin-top: clamp(40px, 5vw, 72px); }
.svc__arrow { display: grid; place-items: center; width: 40px; height: 40px; margin-top: 2px; border: 1px solid var(--terracota-sobre-oliva); border-radius: 999px; color: var(--terracota-sobre-oliva); }
.svc__arrow .i { transform: rotate(45deg); }

/* atendimento: seção própria, quadros lado a lado, o clicado se destaca */
.atend { background: var(--marfim); }
.atend__head .h2 { max-width: 16em; }
.atend__head .lead { margin-top: 16px; max-width: none; }
.atend__head .lead span { display: block; text-wrap: balance; }
.steps { display: flex; gap: clamp(12px, 1.6vw, 20px); margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; list-style: none; }
.step { flex: 1 1 0; min-width: 0; display: flex; transition: flex-grow .9s var(--ease); }
.step.is-active { flex-grow: 1.7; }
.step__btn { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; width: 100%; min-height: 300px; padding: clamp(24px, 2.6vw, 38px); border: 0; border-radius: 26px; background: var(--linho); color: var(--tinta); font: inherit; text-align: left; cursor: pointer; transition: background-color .7s var(--ease), color .7s var(--ease), transform .7s var(--ease), box-shadow .7s var(--ease); }
.step__n { font: italic 400 2.6rem/1 var(--serif); color: #844527; transition: color .7s var(--ease), transform .7s var(--ease); transform-origin: left center; }
.step__t { font: 400 clamp(1.1rem, 1.9vw, 1.9rem)/1.2 var(--serif); }
.step.is-active .step__btn { background: var(--oliva-fundo); color: var(--on-oliva); box-shadow: 0 36px 60px -34px rgb(46 46 40 / .6); }
.step.is-active .step__n { color: var(--terracota-sobre-oliva); transform: scale(1.15); }
.step.is-active .step__txt { color: var(--on-oliva-soft); font-weight: 400; }
.steps__note { margin-top: clamp(14px, 1.6vw, 22px); margin-inline: auto; max-width: none; text-wrap: balance; text-align: center; font: italic 400 .9375rem/1.5 var(--serif); color: var(--tinta-suave); }

/* menu desktop: itens perto da logo, só o botão fica sobre a foto */
@media (min-width: 961px) {
  .nav { flex: 1; }
  .nav__list { margin-left: clamp(32px, 5vw, 88px); }
  .nav__cta { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .step, .step__btn, .step__n, .step__txt, }

@media (max-width: 960px) {
  .svc__cols { grid-template-columns: 1fr; gap: 0; }
  .svc__arrow { margin: 22px auto; }
  .svc__arrow .i { transform: rotate(135deg); }
  .steps { flex-direction: column; }
  .step.is-active { flex-grow: 1; }
  .step__btn { min-height: 0; }
  .manifesto::before { width: calc(100% - var(--gutter) * 2); }

  /* hero maior, por baixo do cabeçalho, encostado em cima e à direita */
  .header:not(.is-scrolled) { background: transparent; }
  .hero { padding-top: 0; }
  .hero__visual { order: -1; padding: 0; justify-content: flex-end; align-items: flex-start; }
  .hero__frame { height: clamp(400px, 64svh, 580px); width: 92%; aspect-ratio: auto; }
  .hero__arch { border-radius: 90% 0 0 0 / 55% 0 0 0; }

  /* menu em cascata, delicado */
  .nav { padding-top: calc(var(--header-h) + 28px); background: var(--marfim); }
  .nav__list { max-width: 420px; margin-inline: 0; }
  .nav__list li { padding: 0; opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .nav.is-open .nav__list li { opacity: 1; transform: none; }
  .nav.is-open .nav__list li:nth-child(1) { transition-delay: .12s; }
  .nav.is-open .nav__list li:nth-child(2) { transition-delay: .19s; }
  .nav.is-open .nav__list li:nth-child(3) { transition-delay: .26s; }
  .nav.is-open .nav__list li:nth-child(4) { transition-delay: .33s; }
  .nav.is-open .nav__list li:nth-child(5) { transition-delay: .40s; }
  .nav__list a { font: 400 clamp(1.5rem, 6vw, 1.9rem)/1.2 var(--serif); padding: 13px 0; justify-content: flex-start; color: var(--tinta); }
  .nav__cta { margin: 28px 0 0; max-width: 260px; min-height: 46px; opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease) .5s, transform .7s var(--ease) .5s, background-color .4s var(--ease); }
  .nav.is-open .nav__cta { opacity: 1; transform: none; }
  .nav__extra { margin: 0; padding-top: 32px; max-width: 420px; opacity: 0; transition: opacity .8s var(--ease) .6s; }
  .nav.is-open .nav__extra { opacity: 1; }
}
@media (max-width: 960px) and (prefers-reduced-motion: reduce) {
  .nav__list li, .nav__cta, .nav__extra { transition: none; transform: none; }
}


/* ===== v8 (2026-10-19): coverflow, revelação por rolagem, quadros expansíveis (comportamento inspirado no smoothui, em CSS e JS puros) ===== */
.gallery { overflow-x: clip; overflow-y: visible; --sw: min(64vw, 920px); position: relative; margin-top: clamp(20px, 2.4vw, 36px); outline-offset: 6px; }
.gallery__track { position: relative; height: calc(var(--sw) * .625 + 56px); margin: 0; padding: 0; list-style: none; perspective: 1500px; touch-action: pan-y; user-select: none; }
.gallery__slide { position: absolute; top: 0; left: 50%; width: var(--sw); margin-left: calc(var(--sw) / -2); z-index: calc(10 - var(--ao, 0));
  transform: translateX(calc(var(--o, 0) * 62%)) translateZ(calc(var(--ao, 0) * -220px)) rotateY(calc(var(--o, 0) * -34deg)) scale(calc(1 - var(--ao, 0) * .04));
  opacity: calc(1 - var(--ao, 0) * .34); visibility: visible; pointer-events: auto;
  transition: transform 1s var(--ease), opacity .8s var(--ease); }
.gallery__slide[style*="--ao: 3"], .gallery__slide[style*="--ao: 4"], .gallery__slide[style*="--ao: 5"] { opacity: 0; pointer-events: none; }
.gallery__slide.is-active { opacity: 1; }
.gallery__slide .work__btn { border-radius: 22px; cursor: pointer; box-shadow: 0 24px 50px -34px rgb(46 46 40 / .5); transition: box-shadow 1s var(--ease); }
.gallery__slide.is-active .work__btn { cursor: zoom-in; box-shadow: 0 44px 80px -36px rgb(92 70 40 / .6); }
.gallery__slide .work__btn img { aspect-ratio: 16 / 10; transition: transform 1.4s var(--ease); pointer-events: none; }
.gallery__slide.is-active .work__btn:hover img { transform: scale(1.03); }
.gallery__name { display: block; margin-top: 16px; text-align: center; font: italic 400 1.2rem/1.3 var(--serif); color: var(--tinta); opacity: 0; transition: opacity .7s var(--ease); }
.gallery__slide.is-active .gallery__name { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .gallery__slide { transform: none; transition: opacity .4s; opacity: 0; }
  .gallery__slide.is-active { opacity: 1; }
  .gallery__track { perspective: none; }
}
@media (max-width: 960px) { .gallery { --sw: 78vw; } .gallery__slide { transform: translateX(calc(var(--o, 0) * 58%)) translateZ(calc(var(--ao, 0) * -160px)) rotateY(calc(var(--o, 0) * -30deg)); } }

/* foto principal: máscara em cortina e contraparalaxe ligadas à rolagem (onde há animation-timeline) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .work--a .work__btn { animation: sir-mask linear both; animation-timeline: view(); animation-range: entry 4% cover 42%; }
    .work--a .work__btn img { transform: scale(1.18); animation: sir-par linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .person__photo img { animation: slowzoom linear both; animation-timeline: view(); animation-range: entry 0% exit 60%; }
    @keyframes sir-mask { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0); } }
    @keyframes sir-par { from { transform: scale(1.18) translateY(-6%); } to { transform: scale(1.18) translateY(6%); } }
  }
}

/* quadros do atendimento: o clicado se expande e revela o texto (desfoque para nítido) */
.step__body { margin-top: auto; clip-path: inset(0 100% 0 0); transition: clip-path .8s var(--ease) .25s; }
.step.is-active .step__body { clip-path: inset(0 0 0 0); }
.step__txt { text-align: justify; text-justify: inter-word; hyphens: auto; min-height: 0; overflow: hidden; max-width: 34ch; font-size: .9375rem; line-height: 1.7; font-weight: 400; color: var(--on-oliva-soft); }
.step__btn { min-height: max(260px, var(--step-h, 0px)); }
.steps.is-measuring, .steps.is-measuring * { transition: none !important; }
@media (max-width: 960px) {
  .step__btn { min-height: 0; }
  .step__t { font-size: 1.375rem; }
  .step__txt { max-width: none; }
  .step__body { display: grid; grid-template-rows: 0fr; margin-top: 0; transition: grid-template-rows .6s var(--ease), clip-path .8s var(--ease) .15s; }
  .step.is-active .step__body { grid-template-rows: 1fr; }
}
/* em linha: o texto tem largura e altura fixas (medidas em main.js) e é só revelado da esquerda para a direita; o quadro só cresce para o lado */
@media (min-width: 961px) {
  .step__btn { overflow: hidden; }
  .step__body { display: block; width: var(--txt-w, auto); height: var(--txt-h, auto); }
  .step__txt { display: block; max-width: none; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) { .step__body { transition: none; } }

/* Reveal text no hero: as palavras sobem de uma máscara, em sequência; o botão entra depois (main.js divide o texto e dispara).
   Sem JS ou com movimento reduzido o texto aparece direto; os atrasos em CSS são só uma rede de segurança. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__title, .js .hero__lead { visibility: hidden; animation: rt-show 0s 1.6s forwards; }
  .js .hero__title.rt-ready, .js .hero__lead.rt-ready { visibility: visible; animation: none; }
  .hero__title .rt-w, .rt-w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .2em; margin: 0 -.06em -.2em; }
  .rt-i { display: inline-block; opacity: 0; transform: translateY(110%); transition: transform .9s var(--ease) var(--d, 0s), opacity .7s var(--ease) var(--d, 0s); }
  .rt-ready.rt-on .rt-i { opacity: 1; transform: none; }
  .js .hero__actions { opacity: 0; transform: translateY(18px); animation: rt-btn-show 0s 2.4s forwards; }
  .js .hero__text.rt-split .hero__actions { animation: none; }
  .js .hero__text.rt-go .hero__actions { opacity: 1; transform: none; transition: opacity .9s var(--ease) var(--rt-btn, .5s), transform .9s var(--ease) var(--rt-btn, .5s); }
  @keyframes rt-show { to { visibility: visible; } }
  @keyframes rt-btn-show { to { opacity: 1; transform: none; } }
}

/* Contato com foto: imagem na seção inteira, véu escuro uniforme (sem degradê) para o texto manter contraste >= 4,5:1, texto centralizado.
   Parallax em camadas (main.js): o fundo anda mais devagar que a página, o texto um pouco mais rápido; no mouse, as camadas seguem o ponteiro. */
.cta--photo { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; min-height: clamp(540px, 90svh, 840px); padding-block: clamp(80px, 10vw, 140px) calc(clamp(80px, 10vw, 140px) + clamp(28px, 4vw, 48px)); color: var(--on-oliva); }
.cta__bg { position: absolute; inset: -14% 0; z-index: -2; will-change: transform; }
.cta__bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.cta__scrim { position: absolute; inset: 0; z-index: -1; background: rgb(38 36 30 / .62); }
.cta__center { position: relative; will-change: transform; }
.cta--photo .cta__text { margin-inline: auto; text-align: center; }
.cta--photo .h2 { color: var(--on-oliva); }
.cta--photo .cta__text p { margin-inline: auto; max-width: 44ch; color: var(--on-oliva-soft); font-weight: 400; }
.cta--photo .cta__actions { justify-content: center; align-items: center; gap: 12px 28px; }
.cta--photo .link-quiet { color: var(--on-oliva); }
.cta--photo :focus-visible { outline-color: var(--terracota-sobre-oliva); }
@media (hover: hover) { .cta--photo .link-quiet:hover { color: var(--terracota-sobre-oliva); } }

/* Links do menu: a rolagem para o conteúdo da seção (título logo abaixo da barra), não para o começo do respiro */
#projetos { scroll-margin-top: calc(24px - clamp(40px, 5vw, 72px)); }
#studio, #servicos, #atendimento { scroll-margin-top: calc(24px - var(--section-y)); }

/* Telas com mouse: cada seção ocupa a tela inteira (abaixo da barra) e a rolagem é livre, sem encaixe.
   Seções mais altas que a tela rolam normalmente. Em celular e tablet cada seção tem a altura do conteúdo. */
@media (min-width: 961px) and (hover: hover) and (min-height: 560px) {
  .manifesto, .section { min-height: calc(100svh - var(--header-h)); display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; }
  .manifesto { align-content: center; }
  .cta--photo { min-height: max(calc(100svh - var(--header-h)), 680px); padding-block: clamp(96px, 14svh, 170px) calc(clamp(96px, 14svh, 170px) + clamp(28px, 4vw, 48px)); }
  #projetos, #studio, #servicos, #atendimento { scroll-margin-top: 0; }
  .section:not(.cta--photo):not(.projects) { padding-block: clamp(64px, 11svh, 132px); }
}
