/* =========================================================
   SEFERIN — Home v1
   Design base: frame 1280 × 832 (Figma "36").
   Escala fluida: 1 unidade de design = 100vw / 1280.
   ========================================================= */

/* Fontes: TT Commons Pro via Adobe Fonts (Typekit, kit mvo8xhx, carregado no <head>).
   O kit tem "tt-commons-pro" 400 (= Medium) e 700 (= ExtraBold).
   Pesos 500 do CSS caem no 400 (Medium); 600 cai no 700. Manrope (Google) fica só no menu/formulário. */

:root {
  /* cores (Figma) */
  --c-offwhite: #f2f2f1;
  --c-paper: #fffbfb;
  --c-cream: #fbf4ee;
  --c-sand: #a59885;
  --c-earth: #534842;
  --c-gold: #f0e39f;
  --c-ink: #000;
  --c-mute: #828282;

  /* escala */
  --u: calc(100vw / 1280);
  --v: calc(100vw / 1920);             /* telas desenhadas em 1920 */

  /* grid do Figma: 12 colunas "stretch", margem 20px, gutter 20px */
  --grid-cols: 12;
  --grid-margin: 20px;
  --grid-gutter: 20px;
  --gutter: var(--grid-margin);        /* margem lateral (apelido antigo) */
  --gap: var(--grid-gutter);           /* gutter entre colunas (apelido antigo) */
  --section-py: 80px;                  /* respiro padrão (topo/base) das seções */

  --f-sans: "tt-commons-pro", "Manrope", system-ui, sans-serif;
  --f-ui: "Manrope", system-ui, sans-serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-sand);
  color: var(--c-ink);
  font-family: var(--f-sans);
  line-height: 1.05;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, address { margin: 0; font: inherit; }
hr { border: 0; margin: 0; }

/* grid de 12 colunas (margem + gutter fixos, colunas esticam) */
.grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr));
  column-gap: var(--grid-gutter);
  padding-inline: var(--grid-margin);
}

.is-intro, .is-intro body { overflow: hidden; }

/* ---------- utilitários ---------- */
.dot {
  display: inline-block;
  width: calc(3.125 * var(--u));
  height: calc(3.125 * var(--u));
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: calc(4.85 * var(--u));
  font-size: calc(12 * var(--u));
  letter-spacing: -0.01em;
  color: var(--c-cream);
  padding-left: calc(32.66 * var(--u) - var(--gutter));
}
.eyebrow--dark { color: var(--c-ink); }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(19.3 * var(--u));
  padding: calc(4.667 * var(--u)) calc(9.333 * var(--u));
  border: calc(.667 * var(--u)) solid currentColor;
  border-radius: 999px;
  font-size: calc(9.208 * var(--u));
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out);
}
.pill:hover { background: var(--c-ink); color: var(--c-paper); }

/* =========================================================
   INTRO
   ========================================================= */
.intro { display: none; }
.js .intro {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 40;
  cursor: pointer; /* clique pula a intro */
}
.js .hero-logo { visibility: hidden; } /* JS mostra depois de posicionar as letras */
.intro__overlay {
  position: absolute;
  inset: 0;
  background: var(--c-earth);
  will-change: transform;
}
.intro__words {
  position: absolute;
  left: 0; right: 0;
  top: calc(388.41 / 832 * 100%);
  display: flex;
  justify-content: space-between;
  padding: 0 var(--grid-margin);
  font-weight: 500; /* kit: 400 = Medium. 600 caía no ExtraBold (700) */
  font-size: calc(12 * var(--u));
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--c-cream);
}
.intro__word { display: block; overflow: hidden; }
.intro__word > span { display: block; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: calc(560 * var(--u));
  color: var(--c-paper);
  overflow: hidden;
  background: var(--c-earth) url("../assets/img/hero-v2-poster.jpg") center / cover no-repeat;
}
.hero__media, .hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__video { object-fit: cover; }
.hero__media::after { /* leve véu p/ legibilidade do menu e logo */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / .18), transparent 18%, transparent 78%, rgb(0 0 0 / .12));
}

/* nav */
.site-nav {
  position: absolute;
  z-index: 30;
  top: 0;
  left: var(--grid-margin);
  right: var(--grid-margin);
  padding-top: calc(12.667 * var(--u));
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.js .hero .site-nav { opacity: 0; }

.site-nav__mark {
  position: relative;
  width: calc(30.24 * var(--u));
  height: calc(30.667 * var(--u));
  overflow: hidden;
}
.s70 { position: absolute; width: auto; height: auto; }
.s70--a { top: 0; right: 0; bottom: 55.66%; left: 40%; width: 60%; height: 44.34%; }
.s70--b { top: 11.88%; right: 0; bottom: 11.87%; left: 0; width: 100%; height: 76.25%; }
.s70--c { top: 55.66%; right: 40%; bottom: 0; left: 0; width: 60%; height: 44.34%; }

.site-nav__links {
  width: calc(374.414 * var(--u));
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-ui);
  font-weight: 500;
  font-size: calc(10.867 * var(--u));
  white-space: nowrap;
}
.site-nav__links ul { display: flex; gap: calc(37.333 * var(--u)); }
.site-nav__links a { position: relative; transition: opacity .3s; }
.site-nav__cta {
  text-decoration: underline;
  text-decoration-thickness: 5.5%;
  text-underline-offset: .2em;
}
/* camadas: logo e links acima do painel do submenu */
.site-nav__links { position: relative; z-index: 1; }
.site-nav__mark, .site-nav__links li, .site-nav__cta { position: relative; z-index: 2; }
.site-nav__links a { z-index: 2; }
.site-nav:has(.has-sub:hover, .has-sub:focus-within) .site-nav__links,
.site-nav:has(.has-sub:hover, .has-sub:focus-within) .site-nav__links a,
.site-nav:has(.has-sub:hover, .has-sub:focus-within) .site-nav__cta { color: #050505; }
.site-nav:has(.has-sub:hover, .has-sub:focus-within) .s70 { filter: brightness(0); }
.site-nav .s70 { transition: filter .45s var(--ease-out); }

/* Submenu Projetos: painel desce do topo; imagem à esquerda, lista vertical à direita.
   Os itens entram em cascata. O hover-dim (regra global) continua esmaecendo os demais. */
.nav-sub {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s .6s; /* some só depois do painel recolher */
}
.nav-sub::before {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0;
  transition: opacity .25s ease; /* o desfoque entra logo no hover */
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  background: rgb(40 34 34 / .22);
}
.nav-sub__panel {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: calc(532.15 * var(--v)); /* Figma 67:287 */
  background: #f2f2f1;
  pointer-events: auto;
  clip-path: inset(0 0 100% 0); /* recolhido: abre de cima para baixo, sem se mover */
  transition: clip-path .6s var(--ease-out);
}
.nav-sub__panel::after { /* filete entre as margens do grid */
  content: "";
  position: absolute;
  left: calc(20 * var(--v)); right: calc(20 * var(--v));
  top: calc(84.88 * var(--v));
  height: 1px;
  background: #050505;
}
.nav-sub__media {
  position: absolute;
  left: calc(33.33vw + 13 * var(--v));
  top: calc(106.87 * var(--v));
  width: calc(614 * var(--v));
  height: calc(398.28 * var(--v));
  overflow: hidden;
}
.nav-sub__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s var(--ease-out);
}
.nav-sub__img--todos { opacity: 1; }
.nav-sub:has(.nav-sub__list li:hover) .nav-sub__img--todos { opacity: 0; }
.nav-sub:has(li[data-k="todos"]:hover) .nav-sub__img--todos,
.nav-sub:has(li[data-k="saude"]:hover) .nav-sub__img--saude,
.nav-sub:has(li[data-k="residencial"]:hover) .nav-sub__img--residencial,
.nav-sub:has(li[data-k="interiores"]:hover) .nav-sub__img--interiores,
.nav-sub:has(li[data-k="comercial"]:hover) .nav-sub__img--comercial { opacity: 1; }
.nav-sub__list {
  position: absolute;
  left: calc(66.67vw + 5 * var(--v));
  top: calc(106.87 * var(--v));
  display: flex;
  flex-direction: column;
  font-family: var(--f-ui);
  font-weight: 500;
  font-size: max(15px, calc(24 * var(--v)));
  line-height: 1;
  color: #050505;
  white-space: nowrap;
}
.site-nav__links .nav-sub__list { gap: 0; } /* vence o gap do menu principal */
.nav-sub__list li {
  height: calc(37.26 * var(--v));
  display: flex;
  align-items: center;
  transition: opacity .45s var(--ease-out);
}
.nav-sub__list a { color: inherit; }
.has-sub:hover > .nav-sub,
.has-sub:focus-within > .nav-sub { visibility: visible; transition-delay: 0s; }
.has-sub:hover > .nav-sub::before,
.has-sub:focus-within > .nav-sub::before { opacity: 1; }
.has-sub:hover > .nav-sub .nav-sub__panel,
.has-sub:focus-within > .nav-sub .nav-sub__panel { clip-path: inset(0); }
.has-sub:hover > .nav-sub .nav-sub__list li,
.has-sub:focus-within > .nav-sub .nav-sub__list li { animation: navSubIn .5s var(--ease-out) backwards; animation-delay: .25s; }
.has-sub:hover > .nav-sub .nav-sub__list li:nth-child(2),
.has-sub:focus-within > .nav-sub .nav-sub__list li:nth-child(2) { animation-delay: .33s; }
.has-sub:hover > .nav-sub .nav-sub__list li:nth-child(3),
.has-sub:focus-within > .nav-sub .nav-sub__list li:nth-child(3) { animation-delay: .41s; }
.has-sub:hover > .nav-sub .nav-sub__list li:nth-child(4),
.has-sub:focus-within > .nav-sub .nav-sub__list li:nth-child(4) { animation-delay: .49s; }
@keyframes navSubIn { from { opacity: 0; } }
@media (max-width: 767px) { .nav-sub { display: none; } }

/* logo — mesmo elemento da intro, termina espalhado na largura */
.hero-logo {
  position: absolute;
  z-index: 50; /* acima do overlay da intro */
  left: var(--grid-margin);
  width: calc(100% - var(--grid-margin) * 2);
  bottom: calc(32.9 * var(--u));
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.hero-logo__letter {
  height: calc((100vw - var(--grid-margin) * 2) * .04712); /* proporção do logo na largura do grid */
  width: auto;
  will-change: transform;
}
.hero-logo__letter--s { height: calc((100vw - var(--grid-margin) * 2) * .04855); }

/* =========================================================
   SOBRE
   ========================================================= */
.about {
  position: relative;
  background: var(--c-sand);
  color: var(--c-cream);
  padding: var(--section-py) var(--grid-margin);
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr));
  column-gap: var(--grid-gutter);
}
.about .eyebrow { grid-column: 1 / 6; align-self: start; padding-left: 0; height: calc(13 * var(--u)); }
.about__body { grid-column: 6 / 13; }
.about__lead {
  width: calc(568.05 * var(--u));
  font-weight: 500;
  font-size: calc(32 * var(--u));
  letter-spacing: -0.01em;
}
.about__rule {
  margin-top: calc(21.57 * var(--u));
  height: calc(1.333 * var(--u));
  background: #fff;
  margin-left: calc(-.78 * var(--u));
}
.about__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: calc(25.57 * var(--u));
}
.about__text {
  width: calc(309.6 * var(--u));
  font-size: calc(12 * var(--u));
  letter-spacing: -0.01em;
}
.about__more {
  font-size: calc(13.333 * var(--u));
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ---------- link com seta (hover: seta troca de lado + sublinhado) ----------
   Trilho: [seta] [texto] [seta]. O link mostra só "texto + seta";
   no hover o trilho desliza p/ direita: a seta da direita sai,
   a da esquerda entra e o sublinhado se desenha. */
.link-arrow {
  --arrow-w: .85em;
  --arrow-gap: .4em;
  --shift: calc(var(--arrow-w) + var(--arrow-gap));
  --dur: .55s;
  --ease: cubic-bezier(.65, 0, .35, 1);
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  width: max-content;
  padding-bottom: .22em; /* espaço do sublinhado */
}
.link-arrow__track {
  display: flex;
  align-items: center;
  gap: var(--arrow-gap);
  margin-left: calc(var(--shift) * -1);
  transition: transform var(--dur) var(--ease);
}
.link-arrow__icon {
  flex: none;
  width: var(--arrow-w);
  height: calc(var(--arrow-w) * 9.52 / 16.96);
  background: currentColor;
  -webkit-mask: url("../assets/svg/arrow.svg") center / contain no-repeat;
          mask: url("../assets/svg/arrow.svg") center / contain no-repeat;
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: max(1px, .075em);
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--dur) var(--ease);
}
@media (hover: hover) {
  .link-arrow:hover .link-arrow__track { transform: translateX(var(--shift)); }
  .link-arrow:hover::after { transform: scaleX(1); transform-origin: left center; }
}
.link-arrow:focus-visible .link-arrow__track { transform: translateX(var(--shift)); }
.link-arrow:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
.link-arrow:focus-visible { outline: none; }

/* =========================================================
   HOVERS GLOBAIS
   ========================================================= */
/* Imagem com link: zoom suave. (O reveal limpa o transform ao terminar,
   então o hover volta a valer depois da entrada.) */
a :is(.project__media, .pp-card__media, .pd-other__media, .media-zoom) img {
  transition: transform 1.2s var(--ease-out);
}
/* Lista com hover: o item sob o mouse fica, os demais esmaecem. */
.hover-dim > * { transition: opacity .45s var(--ease-out); }
@media (hover: hover) {
  a:hover :is(.project__media, .pp-card__media, .pd-other__media, .media-zoom) img { transform: scale(1.05); }
  .hover-dim:has(> :hover) > :not(:hover) { opacity: .35; }
  /* listas com filetes (rodapé, prêmios): esmaece só o texto, os filetes ficam */
  .footer__list.hover-dim:has(> :hover) > :not(:hover) { opacity: 1; }
  .footer__list.hover-dim:has(> :hover) > :not(:hover) > * { opacity: .35; }
}
.footer__list > li > * { transition: opacity .4s ease; }

/* =========================================================
   PAINÉIS BRANCOS (Projetos / Espaços)
   ========================================================= */
.stack {
  display: flex;
  flex-direction: column;
  background: var(--c-offwhite);
}
.panel {
  position: relative;
  background: var(--c-offwhite);
  padding: var(--section-py) var(--gutter);
}
.panel__head {
  position: relative;
  height: calc(100.78 * var(--u)); /* título até o topo das imagens (146.9) */
}
.panel__title {
  text-align: center;
  font-weight: 500;
  font-size: calc(53.333 * var(--u));
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.panel__action {
  position: absolute;
  right: 0;
  top: calc(27.48 * var(--u));
}

/* projetos */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.project__media {
  height: calc(501.56 * var(--u));
  overflow: hidden;
  background: var(--c-offwhite);
}
.project__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.project__name {
  margin-top: calc(14.37 * var(--u));
  font-weight: 500;
  font-size: calc(21.333 * var(--u));
  letter-spacing: -0.01em;
}
.project__meta {
  margin-top: calc(7.14 * var(--u));
  font-size: calc(13.333 * var(--u));
  letter-spacing: -0.01em;
  color: var(--c-mute);
}

/* espaços (Especialistas em Saúde): filete separando de Projetos */
.spaces::before {
  content: "";
  position: absolute;
  top: calc(23.67 * var(--v));
  left: var(--grid-margin); right: var(--grid-margin);
  height: 1px;
  background: var(--c-ink);
}
.spaces .panel__head { height: calc(98.17 * var(--u)); }
.spaces .eyebrow {
  position: absolute;
  left: 0;
  top: calc(15.33 * var(--u));
}
.spaces__grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: stretch;
}
.spaces__main { grid-column: 1 / 9; height: calc(542.86 * var(--u)); overflow: hidden; }
.spaces__main img, .spaces__thumb img { width: 100%; height: 100%; object-fit: cover; }
.spaces__side { grid-column: 9 / 13; display: flex; flex-direction: column; }
.spaces__thumb { height: calc(266.875 * var(--u)); overflow: hidden; }
.spaces__text {
  margin-top: calc(19.43 * var(--u));
  width: calc(380.38 * var(--u));
  font-size: calc(13.333 * var(--u));
  letter-spacing: -0.01em;
}
.principles {
  margin-top: calc(34 * var(--u));
  display: flex;
  flex-direction: column;
  gap: calc(10.667 * var(--u));
  border-top: calc(.667 * var(--u)) solid var(--c-ink);
  padding-top: calc(10.667 * var(--u));
}
.principles li {
  display: flex;
  align-items: flex-start;
  gap: calc(34.667 * var(--u));
  font-size: calc(16 * var(--u));
  letter-spacing: -0.01em;
  padding-bottom: calc(10.667 * var(--u));
  border-bottom: calc(.667 * var(--u)) solid var(--c-ink);
}
.principles li:last-child { padding-bottom: 0; border-bottom: 0; }
.principles__n {
  width: calc(4 * var(--u));
  font-size: calc(9.333 * var(--u));
  letter-spacing: -0.01em;
  padding-top: .1em;
}
.spaces__cta { margin-top: auto; align-self: flex-start; width: calc(104.667 * var(--u)); }

/* =========================================================
   IMAGEM FULL
   ========================================================= */
.showcase {
  height: calc(746 * var(--u));
  overflow: hidden;
  background: var(--c-earth);
}
.showcase img {
  width: calc(1323.86 * var(--u));
  max-width: none;
  height: calc(772.21 * var(--u));
  object-fit: cover;
}

/* =========================================================
   FOOTER
   ========================================================= */
/* Footer revelado: fica preso no bottom da viewport, atrás do conteúdo.
   As seções acima (z-index 1, fundo opaco) sobem e revelam o footer.
   sticky (e não fixed) mantém a altura do footer no fluxo, então não
   precisa de padding compensando. Se o footer for mais alto que a tela,
   o JS põe .footer--static e ele volta ao fluxo normal. */
body > header, body > main, body > section {
  position: relative;
  z-index: 1;
  background-color: inherit;
}
.footer {
  position: sticky;
  bottom: 0;
  z-index: 0;
  background: var(--c-earth);
  color: var(--c-paper);
  padding: var(--section-py) var(--gutter);
  font-weight: 500;
  font-size: max(12px, calc(14 * var(--v)));
}
.footer--static { position: relative; }
.footer__cols { /* 4 blocos de 3 colunas do grid */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.footer__label { line-height: 1.1; margin-bottom: calc(15.4 * var(--v)); }
.footer__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  line-height: 1.23;
  padding: 0 0 calc(5 * var(--v));
  margin-bottom: calc(5 * var(--v));
  border-bottom: 1px solid var(--c-sand);
}
.footer__list li::after { /* bolinha dourada no fim de cada linha */
  content: "";
  width: max(4px, calc(5 * var(--v)));
  height: max(4px, calc(5 * var(--v)));
  border-radius: 50%;
  background: var(--c-gold);
  flex: none;
}
.footer__list a { transition: opacity .3s; }
.footer__list address { font-style: normal; line-height: 1.15; }
.footer__logo {
  margin: max(80px, calc(287 * var(--v))) 0 0;
  width: 100%;
  height: auto;
}

/* =========================================================
   MOBILE (sem layout no Figma ainda — versão provisória)
   ========================================================= */
@media (max-width: 767px) {
  :root { --grid-margin: 16px; --grid-gutter: 12px; }

  .site-nav { padding-top: 16px; align-items: center; }
  .site-nav__mark { width: 28px; height: 28px; }
  .site-nav__links { width: auto; gap: 20px; font-size: 13px; }
  .site-nav__links ul { gap: 16px; }

  .hero { min-height: 520px; }
  .intro__words { font-size: 11px; }

  .eyebrow { font-size: 13px; gap: 6px; }
  .dot, .footer__list li::after { width: 4px; height: 4px; }

  .about { display: block; padding: var(--section-py) var(--gutter); }
  .about__lead { width: auto; margin-top: 24px; font-size: 24px; }
  .about__rule { height: 1px; margin: 24px 0 0; }
  .about__foot { flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 20px; padding: 0; }
  .about__text { width: auto; font-size: 14px; line-height: 1.2; }
  .about__more { font-size: 13px; }

  .panel { padding: var(--section-py) var(--gutter); }
  .panel__head, .spaces .panel__head { height: auto; margin-bottom: 28px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
  .panel__title { font-size: 36px; }
  .panel__action { position: static; }
  .pill { height: 30px; padding: 6px 14px; font-size: 12px; border-width: 1px; }

  .projects__grid { grid-template-columns: 1fr; gap: 32px; }
  .project__media { height: auto; aspect-ratio: 400 / 501.56; }
  .project__name { margin-top: 12px; font-size: 20px; padding: 0; }
  .project__meta { margin-top: 6px; font-size: 13px; padding: 0; }

  .spaces .eyebrow { position: static; order: -1; }
  .spaces__grid { grid-template-columns: 1fr; row-gap: var(--gap); }
  .spaces__main, .spaces__side { grid-column: 1 / -1; }
  .spaces__main, .spaces__thumb { height: auto; aspect-ratio: 3 / 2; }
  .spaces__text { width: auto; margin-top: 20px; font-size: 15px; line-height: 1.2; }
  .principles { margin-top: 24px; gap: 12px; padding-top: 12px; border-top-width: 1px; }
  .principles li { font-size: 18px; gap: 28px; padding-bottom: 12px; border-bottom-width: 1px; }
  .principles__n { width: 10px; font-size: 11px; }
  .spaces__cta { margin-top: 28px; width: auto; }

  .showcase { height: 70svh; }
  .showcase img { width: 100%; height: 100%; }

  .footer { padding: var(--section-py) var(--gutter); font-size: 13px; }
  .footer__cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .footer__label { margin-bottom: 10px; opacity: .7; }
  .footer__list li { padding-bottom: 4px; margin-bottom: 6px; border-bottom-width: 1px; }
  .footer__logo { width: 100%; margin: 56px 0 0; }
}
@media (max-width: 420px) {
  .footer__cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .project__media img, .pill { transition: none; }
}

/* =========================================================
   REVEALS ON-SCROLL
   Estado inicial só quando o JS está ativo (sem JS, tudo visível).
   ========================================================= */
.js [data-reveal="img"] { clip-path: inset(0 100% 0 0); }
.js [data-reveal="text"] { opacity: 0; }
.js .about__rule { transform-origin: left center; }
.split-line { overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; } /* máscara das linhas */

/* =========================================================
   MENU MOBILE
   ========================================================= */
.menu-toggle, .mobile-menu { display: none; }

@media (max-width: 767px) {
  .site-nav__links { display: none; }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    position: fixed;
    z-index: 70;
    top: 12px;
    right: 8px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    border: 0;
    background: none;
    color: #fff;
    mix-blend-mode: difference; /* legível sobre vídeo, areia e branco */
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity .6s var(--ease-out);
  }
  .is-intro .menu-toggle { opacity: 0; pointer-events: none; }
  .menu-toggle__line {
    display: block;
    height: 1.5px;
    background: currentColor;
    transition: transform .6s var(--ease-out), width .6s var(--ease-out);
  }
  .menu-toggle__line:nth-child(1) { width: 24px; }
  .menu-toggle__line:nth-child(2) { width: 16px; margin-left: 8px; }
  /* hover só com mouse e nunca logo após fechar (o cursor ainda está em cima do botão) */
  @media (hover: hover) {
    .menu-toggle:not(.is-closing):hover .menu-toggle__line:nth-child(2) { width: 24px; margin-left: 0; }
  }

  .menu-open .menu-toggle { mix-blend-mode: normal; color: var(--c-ink); }
  .menu-open .menu-toggle__line:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  .menu-open .menu-toggle__line:nth-child(2) { width: 24px; margin-left: 0; transform: translateY(-3.75px) rotate(-45deg); }

  .menu-open, .menu-open body { overflow: hidden; }

  .mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: var(--c-paper);
    color: var(--c-ink);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
  }
  .mobile-menu__inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 84px 20px calc(28px + env(safe-area-inset-bottom));
  }
  .mobile-menu__eyebrow {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; opacity: .7;
    margin-bottom: 20px;
  }
  .mobile-menu__list { border-top: 1px solid var(--c-sand); }
  .mobile-menu__list li { border-bottom: 1px solid var(--c-sand); }
  .mobile-menu__list a {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 14px 0 12px;
  }
  .mobile-menu__n {
    width: 18px;
    padding-top: 6px;
    font-size: 11px;
    color: var(--c-sand);
  }
  .mobile-menu__label { display: block; overflow: hidden; }
  .mobile-menu__label > span {
    display: block;
    font-weight: 500;
    font-size: clamp(40px, 12vw, 56px);
    letter-spacing: -0.04em;
    line-height: 1;
  }
  .mobile-menu__foot {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
    font-size: 13px;
    line-height: 1.5;
  }
  .mobile-menu__foot div { display: flex; flex-direction: column; }
  .mobile-menu__foot a { opacity: .75; }
}

/* =========================================================
   CANAL DE COMPLIANCE (página Contato)
   ========================================================= */
.compliance {
  background: var(--c-gold);
  color: var(--c-earth);
  padding-block: var(--section-py);
  align-items: start;
}
.compliance__eyebrow {
  grid-column: 1 / 6;
  display: flex;
  align-items: center;
  gap: calc(7.3 * var(--v));
  font-size: max(13px, calc(18 * var(--v)));
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.compliance__eyebrow .dot { width: max(4px, calc(4.69 * var(--v))); height: max(4px, calc(4.69 * var(--v))); }
.compliance__body { grid-column: 6 / 13; }
.compliance__lead {
  font-weight: 500;
  font-size: calc(48 * var(--v));
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.compliance__rule { margin-top: calc(36 * var(--v)); height: 2px; background: var(--c-earth); }
.compliance__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--grid-gutter);
  margin-top: calc(46.7 * var(--v));
}
.compliance__text {
  max-width: calc(486.4 * var(--v));
  font-size: max(13px, calc(18 * var(--v)));
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.compliance__cta { font-size: max(13px, calc(20 * var(--v))); letter-spacing: -0.01em; white-space: nowrap; }

@media (max-width: 767px) {
  .compliance__eyebrow, .compliance__body { grid-column: 1 / -1; }
  .compliance__eyebrow { margin-bottom: 20px; }
  .compliance__lead { font-size: 24px; }
  .compliance__rule { margin-top: 24px; height: 1px; }
  .compliance__foot { flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 20px; }
  .compliance__text { max-width: none; font-size: 14px; line-height: 1.2; }
}
