/* =============================================================
   CONSTRUTORA BSM · PORTFÓLIO
   Folha de estilo construída sobre o Design System oficial (CBSM).
   Tokens, tipografia, botões, cards e motion extraídos de
   cbsm_design-system.html — sem redesign, apenas fiel à marca.
   Metodologia: Mobile First (regras base = mobile; @media = up).
   ============================================================= */

/* -------------------------------------------------------------
   1. DESIGN TOKENS — variáveis exatas do Design System
   ------------------------------------------------------------- */
:root {
  /* Cores institucionais (paleta monocromática escura) */
  --c-primary:      #222222;   /* backgrounds de seção / navbar */
  --c-surface:      #1a1a1a;   /* superfícies elevadas (cards) */
  --c-surface-2:    #2a2a2a;   /* hover de superfície */
  --c-white:        #ffffff;   /* texto, ícones, botões */
  --c-gold:         #f0d57a;   /* links e detalhes de destaque */
  --c-accent-warm:  #ffbc7d;   /* acento laranja (transições) */

  /* Texto em fundo escuro */
  --t-strong:  rgba(255, 255, 255, 0.92);
  --t-base:    rgba(255, 255, 255, 0.72);
  --t-muted:   rgba(255, 255, 255, 0.45);
  --t-faint:   rgba(255, 255, 255, 0.18);

  /* Linhas e overlays */
  --line:        rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --overlay:     linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%);

  /* Tipografia */
  --font-primary:   "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display:   "Poppins", "Roboto", sans-serif;   /* títulos de obra */
  --font-serif:     "Roboto Slab", Georgia, serif;     /* tipografia secundária */

  /* Ritmo / espaçamento (token de seção do DS = 100px) */
  --section-pad: 100px;
  --container:   1240px;
  --gutter:      24px;

  /* Sombra da navbar (idêntica ao site original) */
  --shadow-nav: 0 4px 10px rgb(0 0 0 / 0.3);
  --shadow-card: 0 18px 50px rgb(0 0 0 / 0.45);

  /* Motion — timings do Design System */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --zoom-ease: ease-in-out;        /* .servico hover usa ease-in-out */
  --zoom-time: 0.5s;               /* transição de zoom do card */
}

/* -------------------------------------------------------------
   2. RESET LEVE + BASE
   ------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--c-primary);
  color: var(--t-base);
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--c-white); font-family: var(--font-primary); }

/* Container central reutilizável */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Acessibilidade — pular para o conteúdo */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 2000;
  background: var(--c-white);
  color: var(--c-primary);
  padding: 10px 18px;
  font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Foco visível e acessível em toda a página */
:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
}

/* -------------------------------------------------------------
   3. NAVBAR — fixa, sombra e logo (assinatura do site original)
   ------------------------------------------------------------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;            /* top:0; left:0; width:100% */
  z-index: 1000;
  background: rgba(34, 34, 34, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-nav);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}
.navbar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 72px;
}
.navbar__logo { flex-shrink: 0; display: flex; align-items: center; }
.navbar__logo img { height: 34px; width: auto; }

/* Pill switcher: Home | Portfólio */
.navbar__pages {
  display: flex; flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px; padding: 3px; gap: 2px;
}
.navbar__page {
  padding: 5px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--t-muted); white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.navbar__page.is-active  { background: var(--c-gold); color: var(--c-primary); }
.navbar__page:not(.is-active):hover { color: var(--c-white); }

/* Seções da página corrente — underline slide */
.navbar__sections {
  display: none; align-items: center; gap: 0; flex: 1;
  padding-left: 12px; margin-left: 4px;
  border-left: 1px solid rgba(255,255,255,0.10);
}
.navbar__sections a {
  position: relative;
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--t-muted); padding: 8px 12px;
  transition: color 0.25s var(--ease);
}
.navbar__sections a::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 0; height: 1px; transform: translateX(-50%);
  background: linear-gradient(to right, transparent, var(--c-gold), transparent);
  box-shadow: 0 0 10px rgba(240,213,122,0.8);
  transition: width 0.3s var(--ease);
}
.navbar__sections a:hover,
.navbar__sections a.is-active { color: var(--c-white); }
.navbar__sections a:hover::after,
.navbar__sections a.is-active::after { width: calc(100% - 20px); }

/* Botão "hambúrguer" (mobile) — animação grow */
.navbar__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--c-white);
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.navbar__toggle:hover { transform: scale(1.06); background: rgba(255,255,255,0.06); }
.navbar__toggle svg { width: 22px; height: 22px; fill: currentColor; }

/* Painel mobile colapsável */
.navbar__mobile {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
  border-bottom: 1px solid var(--line);
}
.navbar__mobile.is-open { grid-template-rows: 1fr; }
.navbar__mobile-inner { overflow: hidden; }
.navbar__mobile-pages {
  display: flex; gap: 8px;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--line);
}
.navbar__mobile ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
}
.navbar__mobile a {
  display: block; padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px; font-weight: 500;
  color: var(--t-base);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.navbar__mobile a:hover { color: var(--c-white); padding-left: 12px; }
.navbar__mobile .navbar__page { font-size: 12px; }

/* -------------------------------------------------------------
   4. BOTÕES — assinatura BSM (branco, sem raio, peso 800)
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;                 /* size-sm do DS */
  padding: 13px 30px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 800;                 /* peso documentado no DS */
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid var(--c-white);
  border-radius: 0;                 /* sem cantos arredondados */
  cursor: pointer;
  transition: filter 0.25s var(--ease), background 0.25s var(--ease),
              color 0.25s var(--ease), transform 0.25s var(--ease);
}
/* Primário: fundo branco, texto escuro */
.btn--primary {
  background: var(--c-white);
  color: var(--c-primary);
}
.btn--primary:hover { filter: brightness(0.85); transform: translateY(-2px); }

/* Secundário: contorno (inverso) sobre fundo escuro */
.btn--ghost {
  background: transparent;
  color: var(--c-white);
}
.btn--ghost:hover { background: var(--c-white); color: var(--c-primary); transform: translateY(-2px); }

.btn svg { width: 16px; height: 16px; fill: currentColor; }

/* -------------------------------------------------------------
   5. RÓTULO DE SEÇÃO (eyebrow) + títulos
   ------------------------------------------------------------- */
.section { padding-block: clamp(56px, 10vw, var(--section-pad)); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--c-gold);
}

.section__title {
  font-size: clamp(26px, 4.5vw, 40px);
  font-weight: 600;             /* Roboto 600 — títulos de seção do DS */
  line-height: 1.15;
  color: var(--c-white);
  max-width: 22ch;
}
.section__lead {
  margin-top: 18px;
  max-width: 56ch;
  color: var(--t-base);
  font-size: 17px;
}

/* -------------------------------------------------------------
   6. HERO — carrossel full-width (clone funcional do Swiper)
   ------------------------------------------------------------- */
.hero {
  position: relative;
  height: 88vh;
  min-height: 560px;
  margin-top: 72px;             /* compensa navbar fixa */
  overflow: hidden;
  background: #000;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s var(--ease);   /* cross-fade entre slides */
}
.hero__slide.is-active {
  opacity: 1;
}
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;            /* .hero img object-fit:cover do DS */
  object-position: center;
  transform: scale(1.05);       /* repouso */
  transition: transform 1s var(--ease);  /* suaviza o reset ao trocar de slide */
  will-change: transform;
}
/* Ken Burns: zoom lento + leve pan contínuo enquanto o slide está ativo.
   Sentido alterna por slide para dar mais vida. */
.hero__slide.is-active img { animation: heroKenIn 8s ease-out both; }
.hero__slide:nth-child(even).is-active img { animation-name: heroKenOut; }
@keyframes heroKenIn {
  0%   { transform: scale(1.04) translate3d(0, 0, 0); }
  100% { transform: scale(1.18) translate3d(-1.6%, -1.2%, 0); }
}
@keyframes heroKenOut {
  0%   { transform: scale(1.18) translate3d(1.6%, 1.2%, 0); }
  100% { transform: scale(1.04) translate3d(0, 0, 0); }
}
/* Overlay para legibilidade do texto sobre a foto */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(34,34,34,0.55) 0%, rgba(34,34,34,0.25) 40%, rgba(34,34,34,0.85) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.04;
  font-size: clamp(36px, 8vw, 84px);
  color: var(--c-white);
  max-width: 16ch;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.hero__title .accent { color: var(--c-gold); }
.hero__subtitle {
  margin-top: 22px;
  max-width: 52ch;
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--t-strong);
}
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px; }

/* Paginação — bullets 15×15 (branco / branco 51%), igual ao Swiper */
.hero__dots {
  position: absolute;
  z-index: 3;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border-radius: 999px;
  /* Cápsula glassmorphism — mesmos tokens do .pill / botões do site */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: width 0.35s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.hero__dot:hover { background: rgba(255, 255, 255, 0.75); }
/* Ativo: pílula dourada alongada com glow — assinatura visual da marca */
.hero__dot.is-active {
  width: 26px;
  background: var(--c-gold);
  box-shadow: 0 0 10px rgba(240, 213, 122, 0.85), 0 0 2px rgba(240, 213, 122, 1);
}

/* Indicador de rolagem — visível em todas as telas, com seta dourada animada */
.hero__scroll {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  bottom: 24px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--t-strong);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.hero__scroll-arrow {
  width: 13px;
  height: 13px;
  fill: var(--c-gold);
  filter: drop-shadow(0 0 6px rgba(240, 213, 122, 0.6));
  animation: hero-scroll-bounce 1.8s var(--ease) infinite;
}
@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateY(0);   opacity: 0.85; }
  50%      { transform: translateY(5px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll-arrow { animation: none; }
}
/* Em telas estreitas o rótulo colidiria com a cápsula de dots central —
   mantém só a seta dourada (um pouco maior) no canto inferior direito. */
@media (max-width: 760px) {
  .hero__scroll-txt { display: none; }
  .hero__scroll { right: 16px; bottom: 16px; }
  .hero__scroll-arrow { width: 16px; height: 16px; }
}

/* -------------------------------------------------------------
   7. STATS — faixa de indicadores (icon-box do DS)
   ------------------------------------------------------------- */
.stats {
  background: var(--c-primary);
  border-block: 1px solid var(--line);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);            /* "linhas" entre os boxes */
}
.stat {
  background: var(--c-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 38px 18px;
}
.stat__icon svg { width: 34px; height: 34px; fill: var(--c-white); opacity: 0.85; }
.stat__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 46px);
  color: var(--c-white);
  line-height: 1;
}
.stat__label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t-muted);
}

/* -------------------------------------------------------------
   8. GALERIA DE PROJETOS — grid + filtros + cards de obra
   ------------------------------------------------------------- */
.portfolio__head {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 44px;
}

/* Filtros (categorias reais de atuação da BSM) — faixa de largura total, centralizada */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.filter {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t-muted);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 10px 18px;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
              background 0.25s var(--ease);
}
.filter:hover { color: var(--c-white); border-color: var(--c-white); }
.filter.is-active {
  color: var(--c-primary);
  background: var(--c-white);
  border-color: var(--c-white);
}

/* ── Situação da obra (Tudo | Em andamento | Executadas) ─────────
   Eixo INDEPENDENTE do tipo (os dois compõem). A forma arredondada
   contrasta de propósito com os retângulos dos filtros de categoria,
   sinalizando que é outra dimensão. Escondido sem mistura de situações. */
.fase-switch[hidden] { display: none; }   /* o display:flex abaixo venceria o [hidden] */
.fase-switch {
  display: flex; justify-content: center; align-items: center; gap: 4px;
  width: max-content; max-width: 100%;
  margin: -8px auto 22px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(240, 213, 122, 0.22);
  border-radius: 999px;
  overflow-x: auto;
}
.fase-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  background: transparent; border: none; border-radius: 999px;
  font-family: var(--font-primary);
  font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--t-muted); cursor: pointer; white-space: nowrap;
  transition: color 0.22s var(--ease), background 0.22s var(--ease);
}
.fase-btn:hover { color: var(--c-white); }
.fase-btn.is-active {
  color: var(--c-gold);
  background: rgba(240, 213, 122, 0.13);
}
.fase-count { font-size: 10px; opacity: 0.65; }
.fase-check { width: 10px; height: 10px; color: currentColor; flex-shrink: 0; }

/* Ponto "ao vivo" — pulsa no botão Em andamento e no selo do card */
.fase-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--c-gold);
  animation: fase-pulse 1.8s var(--ease) infinite;
}
@keyframes fase-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(240, 213, 122, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(240, 213, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 213, 122, 0); }
}
@media (prefers-reduced-motion: reduce) { .fase-dot { animation: none; } }

/* Combinação de filtros sem resultado */
.gallery-nomatch {
  text-align: center; color: var(--t-muted);
  font-size: 14px; padding: 42px 0 12px;
}

/* Grid responsivo (Mobile First: 1 col → 2 → 3) */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Card de obra */
.work {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}
.work:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}
/* Estados do filtro */
.work.is-hidden { display: none; }

/* Moldura da imagem — grayscale escurecido em repouso (assinatura BSM),
   revela cor + zoom no hover, transição 0.5s ease-in-out do DS */
.work__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.work__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(66%) saturate(0%);          /* repouso: P&B escurecido */
  transform: scale(1.02);
  transition: transform var(--zoom-time) var(--zoom-ease),
              filter var(--zoom-time) var(--zoom-ease);
}
.work:hover .work__media img {
  transform: scale(1.15);                         /* zoom (DS: scale + ease-in-out) */
  filter: brightness(100%) saturate(100%);        /* revela cor */
}
.work__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);                      /* gradiente overlay do DS */
  opacity: 0.85;
  pointer-events: none;
}

/* Placeholder para obras ainda sem foto */
.work__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(240, 213, 122, 0.14), transparent 70%),
    linear-gradient(180deg, #272727, #1b1b1b);
}
.work__ph svg { width: 46px; height: 46px; fill: rgba(240, 213, 122, 0.45); }
.work__media--ph::after { opacity: 0.5; }          /* overlay mais leve sobre o placeholder */

/* Tag de categoria sobre a imagem */
.work__tag {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: var(--c-white);
  padding: 6px 12px;
}
/* Período da obra */
.work__period {
  position: absolute;
  z-index: 2;
  bottom: 14px;
  right: 16px;
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--t-strong);
}

/* Conteúdo textual do card */
.work__body {
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.work__title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 19px;
  line-height: 1.2;
  color: var(--c-white);
}
.work__desc {
  font-size: 14.5px;
  color: var(--t-base);
  line-height: 1.65;
}
/* Especificações técnicas (chips) */
.work__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.work__specs li {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--c-gold);
  border: 1px solid rgba(240, 213, 122, 0.3);
  padding: 4px 10px;
}

/* -------------------------------------------------------------
   9. CTA — chamada final (foto de fundo + overlay)
   ------------------------------------------------------------- */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}
.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.cta__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(40%) saturate(0%); }
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(34,34,34,0.7), rgba(34,34,34,0.92));
}
.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.cta__title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.08;
  color: var(--c-white);
  max-width: 18ch;
}
.cta__text { max-width: 52ch; color: var(--t-strong); font-size: 17px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 8px; }

/* -------------------------------------------------------------
   10. FOOTER
   ------------------------------------------------------------- */
.footer {
  background: var(--c-surface);
  border-top: 1px solid var(--line);
  padding-block: 56px 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.footer__logo img { height: 40px; margin-bottom: 18px; }
.footer__about { color: var(--t-muted); max-width: 42ch; font-size: 14.5px; }
.footer__col h4 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t-muted);
  margin-bottom: 16px;
}
.footer__col li { margin-bottom: 10px; }
.footer__col a, .footer__col span { color: var(--t-base); font-size: 14.5px; transition: color 0.2s var(--ease); }
.footer__col a:hover { color: var(--c-gold); }
.footer__bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: var(--t-faint);
}

/* -------------------------------------------------------------
   11. REVEAL ON SCROLL — entrada suave (extensão do lazy-fade do DS)
   ------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(8px);                 /* entrada com desfoque (fadeSlideIn premium) */
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }

/* Respeita usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__slide { transition: opacity 0.3s linear; }
}

/* =============================================================
   12. BREAKPOINTS — Mobile First (up)
   ============================================================= */

/* ≥ 600px — tablets pequenos */
@media (min-width: 600px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ≥ 880px — tablets / desktop pequeno */
@media (min-width: 880px) {
  .navbar__sections { display: flex; }
  .navbar__toggle { display: none; }
  .navbar__mobile { display: none; }
  .portfolio__head {
    flex-direction: row;
    align-items: stretch;              /* aside ocupa a altura → filtros no rodapé */
    justify-content: space-between;
    gap: 40px;
  }
  .portfolio__head > div:first-child { flex: 0 1 52ch; }   /* título */
  .portfolio__head-aside {
    flex: 1 1 0; min-width: 0;          /* só a vitrine 3D; filtros agora são faixa própria */
  }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ≥ 1100px — desktop */
@media (min-width: 1100px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================================
   13. CAMADA PREMIUM — efeitos dinâmicos
   Inspirados nos design systems Canvas e Creative Agency,
   adaptados à identidade BSM (acento dourado #F0D57A).
   ============================================================= */

/* --- 13.1 Stagger de entrada na galeria (cascata por coluna) --- */
@media (min-width: 600px) {
  .gallery .work:nth-child(2n)   { transition-delay: 0.09s; }
}
@media (min-width: 1100px) {
  .gallery .work:nth-child(3n-1) { transition-delay: 0.09s; }
  .gallery .work:nth-child(3n)   { transition-delay: 0.18s; }
}

/* --- 13.2 Progressive blur sob a navbar (frosted em camadas) --- */
.progressive-blur {
  position: fixed;
  inset: 0 0 auto 0;
  height: 110px;
  z-index: 900;                 /* abaixo da navbar (1000), acima do conteúdo */
  pointer-events: none;
}
.progressive-blur > div { position: absolute; inset: 0; }
/* desfoque mais forte junto à navbar, esmaecendo para baixo */
.progressive-blur > div:nth-child(1) {
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  -webkit-mask: linear-gradient(to bottom, #000 0%, #000 25%, transparent 55%);
          mask: linear-gradient(to bottom, #000 0%, #000 25%, transparent 55%);
}
.progressive-blur > div:nth-child(2) {
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  -webkit-mask: linear-gradient(to bottom, transparent 20%, #000 40%, transparent 70%);
          mask: linear-gradient(to bottom, transparent 20%, #000 40%, transparent 70%);
}
.progressive-blur > div:nth-child(3) {
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  -webkit-mask: linear-gradient(to bottom, transparent 45%, #000 65%, transparent 85%);
          mask: linear-gradient(to bottom, transparent 45%, #000 65%, transparent 85%);
}
.progressive-blur > div:nth-child(4) {
  backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px);
  -webkit-mask: linear-gradient(to bottom, transparent 65%, #000 85%, transparent 100%);
          mask: linear-gradient(to bottom, transparent 65%, #000 85%, transparent 100%);
}

/* --- 13.3 Grid blueprint com máscara radial --- */
.grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right,  rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse at center, #000 25%, transparent 78%);
}

/* --- 13.4 Beam border (feixe de luz percorrendo a moldura) --- */
.beam-frame { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.beam-h, .beam-v { position: absolute; background: rgba(255,255,255,0.06); overflow: hidden; }
.beam-h { left: 0; right: 0; height: 1px; }
.beam-v { top: 0; bottom: 0; width: 1px; }
.beam-h.is-top    { top: 0; }
.beam-h.is-bottom { bottom: 0; }
.beam-v.is-left   { left: 0; }
.beam-v.is-right  { right: 0; }
.beam-h::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, transparent, var(--c-gold), transparent);
  transform: translateX(-100%); opacity: 0.8;
  animation: beam-slide 7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.beam-v::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent, var(--c-gold), transparent);
  transform: translateY(-100%); opacity: 0.8;
  animation: beam-drop 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.beam-h.is-bottom::after { animation-delay: 3.5s; }
.beam-v.is-right::after  { animation-delay: 3s; }
@keyframes beam-slide {
  0%   { transform: translateX(-100%); opacity: 0; }
  10%  { opacity: 1; } 90% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}
@keyframes beam-drop {
  0%   { transform: translateY(-100%); opacity: 0; }
  10%  { opacity: 1; } 90% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

/* --- 13.5 Status pill (eyebrow do hero) com ponto pulsante --- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  margin-bottom: 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t-strong);
}
.pill__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-gold);
  box-shadow: 0 0 10px rgba(240, 213, 122, 0.9);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.75); }
}

/* --- 13.6 Botões: cantos blueprint que surgem no hover --- */
.btn { position: relative; }
.btn:not(.btn--shine)::before,
.btn:not(.btn--shine)::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:not(.btn--shine)::before {
  top: -5px; left: -5px;
  border-top: 2px solid var(--c-gold);
  border-left: 2px solid var(--c-gold);
  transform: translate(5px, 5px);
}
.btn:not(.btn--shine)::after {
  bottom: -5px; right: -5px;
  border-bottom: 2px solid var(--c-gold);
  border-right: 2px solid var(--c-gold);
  transform: translate(-5px, -5px);
}
.btn:not(.btn--shine):hover::before,
.btn:not(.btn--shine):hover::after { opacity: 1; transform: translate(0, 0); }

/* --- 13.7 Botão "shine": borda cônica dourada giratória --- */
.btn--shine {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: none;
  background: transparent;
  color: var(--c-primary);
}
.btn--shine .btn-spin {
  position: absolute;
  inset: -150%;
  z-index: -2;
  background: conic-gradient(from 0deg, transparent 0 68%, #fff3cf 82%, var(--c-gold) 92%, transparent 100%);
  animation: btn-spin 3.5s linear infinite;
}
.btn--shine .btn-core {
  position: absolute;
  inset: 2px;
  z-index: -1;
  background: var(--c-white);
  transition: background 0.3s var(--ease);
}
.btn--shine:hover { transform: translateY(-2px); }
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* --- 13.8 Cards de obra: cantos blueprint + brilho diagonal + borda dourada --- */
.work::before,
.work::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.work::before {
  top: 12px; left: 12px;
  border-top: 1.5px solid var(--c-gold);
  border-left: 1.5px solid var(--c-gold);
  transform: translate(7px, 7px);
}
.work::after {
  bottom: 12px; right: 12px;
  border-bottom: 1.5px solid var(--c-gold);
  border-right: 1.5px solid var(--c-gold);
  transform: translate(-7px, -7px);
}
.work:hover::before,
.work:hover::after { opacity: 1; transform: translate(0, 0); }
.work:hover { border-color: rgba(240, 213, 122, 0.4); }

/* Brilho diagonal que cruza a imagem no hover */
.work__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.22) 48%, transparent 62%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease);
}
.work:hover .work__media::before { transform: translateX(130%); }

/* --- 13.9 Stats: número em dourado e ícone elevado no hover --- */
.stat__num { transition: color 0.3s var(--ease); }
.stat__icon svg { transition: transform 0.4s var(--ease), opacity 0.3s var(--ease); }
.stat:hover .stat__num { color: var(--c-gold); }
.stat:hover .stat__icon svg { opacity: 1; transform: translateY(-4px); }
.stats { position: relative; overflow: hidden; }

/* --- 13.10 Reduced motion: silencia animações ambientes --- */
@media (prefers-reduced-motion: reduce) {
  .beam-h::after, .beam-v::after,
  .pill__dot, .btn--shine .btn-spin { animation: none !important; }
  .work__media::before { display: none; }
}

/* =============================================================
   14. MAPA DE ATUAÇÃO (Leaflet) + adições aos cards
   ============================================================= */

/* --- 14.1 Container do mapa --- */
.map-wrap { position: relative; margin-top: 8px; }
#mapa-bsm {
  height: clamp(360px, 56vh, 560px);
  width: 100%;
  border: 1px solid var(--line);
  background: #111;
  z-index: 1;            /* mantém o mapa abaixo da navbar fixa */
}
.leaflet-container { font-family: var(--font-primary); background: #111; }

/* Legenda (contagem por tipo) */
.map-legend { display: flex; flex-wrap: wrap; gap: 10px; }
.map-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--t-muted);
  border: 1px solid var(--line);
  padding: 6px 12px;
}
.map-legend__item b { color: var(--c-white); font-weight: 700; margin-left: 2px; }
.map-legend__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--c-gold);
  box-shadow: 0 0 8px rgba(240, 213, 122, 0.8);
}

/* --- 14.2 Marcador (pin) dourado com pulso --- */
.bsm-pin { display: grid; place-items: center; }
.bsm-pin__dot {
  position: relative;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--c-gold);
  border: 2px solid #1a1a1a;
  box-shadow: 0 0 0 4px rgba(240, 213, 122, 0.22), 0 0 12px rgba(240, 213, 122, 0.6);
}
.bsm-pin__dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(240, 213, 122, 0.5);
  animation: pin-pulse 2.4s ease-out infinite;
}
@keyframes pin-pulse {
  0%   { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* --- 14.3 Popup escuro, no tom da marca --- */
.leaflet-popup-content-wrapper {
  background: var(--c-surface);
  color: var(--t-base);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  box-shadow: var(--shadow-card);
}
.leaflet-popup-tip { background: var(--c-surface); border: 1px solid var(--line-strong); }
.leaflet-popup-content { margin: 0; width: 240px !important; }
.leaflet-container a.leaflet-popup-close-button { color: var(--t-muted); padding: 8px 8px 0 0; }
.leaflet-container a.leaflet-popup-close-button:hover { color: var(--c-white); }

.map-pop__img {
  width: 100%; height: 120px;
  object-fit: cover;
  display: block;
  filter: saturate(0) brightness(0.82);
}
.map-pop__body { padding: 14px 16px 16px; }
.map-pop__tag {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c-primary); background: var(--c-gold);
  padding: 3px 9px; margin-bottom: 9px;
}
.map-pop__title {
  font-family: var(--font-display);
  font-weight: 900; text-transform: uppercase;
  font-size: 15px; line-height: 1.2;
  color: var(--c-white); margin: 0 0 7px;
}
.map-pop__desc { font-size: 12.5px; line-height: 1.55; color: var(--t-base); margin: 0 0 9px; }
.map-pop__meta { font-family: var(--font-serif); font-size: 11.5px; color: var(--c-gold); margin: 0; }

/* --- 14.4 Controles Leaflet no tema escuro --- */
.leaflet-bar a, .leaflet-bar a:focus {
  background: var(--c-surface);
  color: #fff;
  border-bottom: 1px solid var(--line);
}
.leaflet-bar a:hover { background: var(--c-surface-2); }
.leaflet-control-attribution {
  background: rgba(26, 26, 26, 0.82) !important;
  color: var(--t-faint) !important;
}
.leaflet-control-attribution a { color: var(--t-muted) !important; }

/* --- 14.5 Adições aos cards: local + botão "Ver no mapa" --- */
.work__local {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--t-muted); margin: 0;
}
.work__local svg { width: 13px; height: 13px; fill: var(--c-gold); flex-shrink: 0; }
.work__map-btn {
  align-self: flex-start;
  margin-top: 16px;
  background: none; border: none; padding: 0;
  font-family: var(--font-primary);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-gold); cursor: pointer; opacity: 0.85;
  transition: opacity 0.2s var(--ease), letter-spacing 0.2s var(--ease);
}
.work__map-btn:hover { opacity: 1; letter-spacing: 0.12em; }

/* Botão "Ver em 3D" no card — espelha .work__map-btn (link em vez de button) */
.work__3d-btn {
  display: inline-block;
  align-self: flex-start;
  margin-top: 10px;
  text-decoration: none;
  font-family: var(--font-primary);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-gold); opacity: 0.85;
  transition: opacity 0.2s var(--ease), letter-spacing 0.2s var(--ease);
}
.work__3d-btn:hover { opacity: 1; letter-spacing: 0.12em; }

/* Mensagem de fallback se o JSON não carregar */
.gallery-empty {
  grid-column: 1 / -1;
  color: var(--t-muted);
  border: 1px dashed var(--line-strong);
  padding: 22px; text-align: center; font-size: 14px;
}

/* Reduced motion: sem pulso no pin */
@media (prefers-reduced-motion: reduce) {
  .bsm-pin__dot::after { animation: none; }
}

/* =============================================================
   15. TRAJETÓRIA — Gantt (eixo de anos, lanes paralelas, autoplay)
   ============================================================= */
.timeline-head { text-align: center; max-width: 660px; margin-inline: auto; }
.timeline-head .eyebrow::before { display: none; }
.timeline-head .section__title,
.timeline-head .section__lead { max-width: none; margin-inline: auto; }

.gantt { position: relative; margin-top: 40px; }

/* Legenda de tipos */
.gantt__legend { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 22px; }
.gantt-leg { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.04em; color: var(--t-muted); }
.gantt-leg__dot { width: 11px; height: 11px; border-radius: 2px; background: var(--c, var(--c-gold)); box-shadow: 0 0 8px color-mix(in srgb, var(--c, #f0d57a) 60%, transparent); }

/* Viewport rolável (swipe / arrasto / autoplay) */
.gantt__viewport {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  padding-bottom: 6px;
}
.gantt__viewport.is-grabbing { cursor: grabbing; }
.gantt__viewport::-webkit-scrollbar { height: 8px; }
.gantt__viewport::-webkit-scrollbar-track { background: transparent; }
.gantt__viewport::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }

.gantt__inner { position: relative; min-width: 100%; }

/* Grade de anos + rótulos */
.gantt__grid {
  position: absolute;
  top: 72px; bottom: 6px;
  width: 1px;
  background: var(--line);
}
.gantt__year {
  position: absolute;
  top: 4px;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--t-muted);
}

/* Marcos institucionais (pontos no eixo) */
.gantt-marker {
  position: absolute;
  top: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 150px;
  text-align: center;
  z-index: 3;
  pointer-events: none;
}
.gantt-marker__dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-surface);
  border: 1px solid rgba(240, 213, 122, 0.6);
  box-shadow: 0 0 12px rgba(240, 213, 122, 0.45);
}
.gantt-marker__dot svg { width: 13px; height: 13px; fill: var(--c-gold); }
.gantt-marker__txt { font-size: 10.5px; line-height: 1.25; color: var(--t-muted); }
.gantt-marker__txt b {
  display: block;
  color: var(--c-gold);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 1px;
}

/* Barras (obras) */
.gantt-bar {
  position: absolute;
  height: 42px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  padding: 0 12px;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  background: var(--c-surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid var(--c, #f0d57a);
  z-index: 2;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}
@supports (background: color-mix(in srgb, red, blue)) {
  .gantt-bar {
    background: color-mix(in srgb, var(--c) 15%, var(--c-surface));
    border-color: color-mix(in srgb, var(--c) 38%, transparent);
    border-left-color: var(--c);
  }
}
.gantt-bar:hover {
  transform: translateY(-2px);
  z-index: 6;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  filter: brightness(1.12);
}
.gantt-bar__name {
  font-weight: 700;
  font-size: 12px;
  color: var(--c-white);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gantt-bar__per { font-family: var(--font-serif); font-size: 10.5px; color: var(--t-muted); white-space: nowrap; }

/* Obra EM ANDAMENTO (início sem fim): hachura diagonal na borda direita
   sugerindo que a obra continua (sem data de término). */
.gantt-bar.is-ongoing::after {
  content: "";
  position: absolute; top: 0; right: 0; bottom: 0; width: 44px;
  background: repeating-linear-gradient(-45deg, transparent 0 5px, rgba(255,255,255,0.13) 5px 10px);
  pointer-events: none;
}

/* Controles — pod de vidro (glassmorphism), igual ao pill do hero */
.gantt__controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 10px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

/* Botões circulares de vidro */
.gantt__nav, .gantt__toggle {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--c-white);
  cursor: pointer;
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease),
              color 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.gantt__nav:hover, .gantt__toggle:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  border-color: rgba(240, 213, 122, 0.55);
  color: var(--c-gold);
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(240, 213, 122, 0.3);
}
.gantt__nav:active, .gantt__toggle:active { transform: translateY(0) scale(0.95); }
.gantt__nav svg, .gantt__toggle svg { width: 13px; height: 13px; fill: currentColor; }
/* play/pause em destaque dourado */
.gantt__toggle { color: var(--c-gold); border-color: rgba(240, 213, 122, 0.45); }
.gantt__nav:disabled { opacity: 0.3; cursor: default; }
.gantt__nav:disabled:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--c-white); transform: none; box-shadow: none;
}

/* Barra de progresso: trilho de vidro + preenchimento dourado + thumb brilhante */
.gantt__bar {
  position: relative;
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  touch-action: none;
}
.gantt__bar-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(to right, var(--c-accent-warm), var(--c-gold));
  box-shadow: 0 0 12px rgba(240, 213, 122, 0.7);
  transition: width 0.08s linear;
}
.gantt__bar-fill::after {                 /* thumb na ponta do preenchimento */
  content: "";
  position: absolute;
  right: -6px; top: 50%;
  width: 14px; height: 14px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--c-gold);
  border: 2px solid rgba(34, 34, 34, 0.9);
  box-shadow: 0 0 10px 2px rgba(240, 213, 122, 0.85);
  transition: transform 0.2s var(--ease);
}
.gantt__bar:hover .gantt__bar-fill::after { transform: translateY(-50%) scale(1.15); }

@media (prefers-reduced-motion: reduce) {
  .gantt__viewport { scroll-behavior: auto; }
  .gantt-bar { transition: none; }
}

/* =============================================================
   OBRA MODAL — galeria de progresso de construção
   ============================================================= */

/* Badge nos cards que têm galeria */
.work.has-gallery { cursor: pointer; }
.work__gallery-badge {
  position: absolute;
  z-index: 3;
  bottom: 12px; left: 14px;
  display: flex; align-items: center; gap: 5px;
  padding: 4px 9px;
  background: rgba(0,0,0,0.62);
  border: 1px solid rgba(240,213,122,0.35);
  border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--c-gold);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.work.has-gallery:hover .work__gallery-badge { opacity: 1; transform: translateY(0); }
.work__gallery-badge svg { width: 11px; height: 11px; fill: currentColor; display: block; }

/* Selo "N partes" (obra composta) — sempre visível, canto superior direito
   (tag = sup. esquerdo, período = inf. direito, galeria = inf. esquerdo). */
.work__parts-badge {
  position: absolute; z-index: 3;
  top: 14px; right: 16px;
  display: flex; align-items: center; gap: 5px;
  padding: 4px 9px;
  background: rgba(0,0,0,0.62);
  border: 1px solid rgba(240,213,122,0.35);
  border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--c-gold);
  pointer-events: none;
}
.work__parts-badge svg { width: 11px; height: 11px; fill: currentColor; display: block; }

/* Selo "Em andamento" — abaixo da tag de tipo (sup. esquerdo), sempre visível */
.work__status {
  position: absolute; z-index: 3;
  top: 52px; left: 14px;
  display: flex; align-items: center; gap: 6px;
  padding: 4px 9px;
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(240, 213, 122, 0.35);
  border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--c-gold);
  pointer-events: none;
}

/* ── Overlay + entrada ──────────────────────────────────────── */
.obra-modal {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: om-in 0.28s var(--ease) both;
}
@keyframes om-in { from { opacity: 0; } to { opacity: 1; } }

/* Backdrop: vignette radial — bordas mais escuras que o centro */
.obra-modal__bd {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 55% 45%, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.96) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

/* Caixa principal — perspectiva 3-D na entrada */
.obra-modal__box {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  width: 100%; max-width: 1200px; max-height: 90vh;
  background: linear-gradient(160deg, #202020 0%, #191919 100%);
  border: 1px solid rgba(240,213,122,0.18);
  border-radius: 14px; overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 40px 90px rgba(0,0,0,0.75),
    0 0 60px rgba(240,213,122,0.05);
  animation: om-box-in 0.38s var(--ease) both;
}
@keyframes om-box-in {
  from { transform: perspective(1100px) rotateX(3deg) translateY(30px) scale(0.96); opacity: 0; }
  to   { transform: perspective(1100px) rotateX(0deg) translateY(0)     scale(1);    opacity: 1; }
}

/* Feixe dourado animado no topo da caixa */
.obra-modal__box::before {
  content: "";
  position: absolute; top: 0; left: -60%; width: 55%;
  height: 1px; z-index: 5; pointer-events: none;
  background: linear-gradient(to right, transparent, rgba(240,213,122,0.75), transparent);
  animation: om-beam 6s cubic-bezier(0.4,0,0.2,1) 0.6s infinite;
}
@keyframes om-beam {
  0%   { left: -60%; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: 110%; opacity: 0; }
}

/* Linha de destaque interna no topo (highlight de luz) */
.obra-modal__box::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px; z-index: 5; pointer-events: none;
  background: linear-gradient(to right, transparent 5%, rgba(255,255,255,0.10) 50%, transparent 95%);
}

/* Botão fechar — glassmorphism */
.obra-modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 6;
  width: 30px; height: 30px; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.20);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 50%; color: var(--c-white); font-size: 18px; line-height: 1;
  cursor: pointer; transition: background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.obra-modal__close:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.08));
  border-color: rgba(240,213,122,0.45);
  box-shadow: 0 0 14px rgba(240,213,122,0.25);
}

/* ── Abas (obra composta: Geral | partes) ───────────────────── */
.obra-modal__tabs {
  display: flex; gap: 2px; flex-wrap: nowrap;
  overflow-x: auto; scrollbar-width: thin;
  padding: 10px 48px 0 14px;             /* 48px: não passa por baixo do fechar */
  background: rgba(0,0,0,0.28);
  border-bottom: 1px solid rgba(240,213,122,0.14);
  flex-shrink: 0;
}
.obra-modal__tab {
  appearance: none; border: none; cursor: pointer;
  padding: 9px 14px 8px; white-space: nowrap;
  background: transparent; color: var(--t-base);
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.obra-modal__tab:hover { color: var(--c-white); background: rgba(255,255,255,0.04); }
.obra-modal__tab.is-active { color: var(--c-gold); border-bottom-color: var(--c-gold); }

/* ── Grade 2×2 ──────────────────────────────────────────────── */
.obra-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  min-height: 0; flex: 1; overflow-y: auto;
  gap: 1px;
  background: rgba(240,213,122,0.10);
}

/* Fundo das células (o gap do grid revela o background dourado do container) */
.obra-modal__grid > * { background: #191919; }

/* ── Layout adaptativo conforme nº de fases com imagem ──────────
   n=3: 2×2 padrão (herda o template base acima).
   n=2: duas fases empilhadas à esquerda, info ocupando a coluna direita.
   n=1: uma fase à esquerda, info à direita, em linha única. */
.obra-modal__grid--n2 { grid-auto-flow: column; }
.obra-modal__grid--n2 .obra-modal__info { grid-column: 2; grid-row: 1 / 3; }

.obra-modal__grid--n1 { grid-template-rows: auto; }

/* n=0: entidade sem galeria visível (ex.: aba "Geral" de obra composta cujas
   fotos estão todas nas partes) — só o painel de info, em coluna única. */
.obra-modal__grid--n0 { grid-template-columns: 1fr; grid-template-rows: auto; }

/* n=4: quatro fases em 2×2 e a info ocupando a linha inteira embaixo (sem célula vazia).
   n=5: cinco fases + info completam um 2×3 natural (herda a base 2 colunas). */
.obra-modal__grid--n4 .obra-modal__info { grid-column: 1 / -1; }

/* Célula 4 — informações */
.obra-modal__info {
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px 22px; overflow-y: auto;
  background: radial-gradient(ellipse at 25% 20%, rgba(240,213,122,0.07) 0%, transparent 65%);
}

/* ── Carrossel individual ───────────────────────────────────── */
.omg { display: flex; flex-direction: column; overflow: hidden; position: relative; }

/* Label com borda dourada à esquerda e gradiente */
.omg__label {
  padding: 8px 14px 7px 14px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c-gold);
  background: linear-gradient(to right, rgba(240,213,122,0.12), rgba(240,213,122,0.03) 55%, transparent);
  border-bottom: 1px solid rgba(240,213,122,0.12);
  border-left: 2px solid var(--c-gold);
}

.omg__track { position: relative; line-height: 0; }
.omg__img-wrap { aspect-ratio: 16/9; overflow: hidden; cursor: zoom-in; }
.omg__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.25s; }

/* Setas — glassmorphism, visíveis só no hover da track */
.omg__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 50%; color: white; cursor: pointer; z-index: 2; padding: 0;
  opacity: 0;
  transition: opacity 0.25s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.omg__track:hover .omg__arrow { opacity: 1; }
.omg__arrow:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.26), rgba(255,255,255,0.10));
  border-color: rgba(240,213,122,0.5);
  box-shadow: 0 0 12px rgba(240,213,122,0.3);
}
.omg__arrow--prev { left: 10px; }
.omg__arrow--next { right: 10px; }
.omg__arrow svg { width: 9px; height: 9px; fill: currentColor; display: block; }

/* Dots */
.omg__dots {
  display: flex; justify-content: center; align-items: center; gap: 7px;
  padding: 7px 0 5px;
  background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.12));
}
.omg-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.2); border: none; cursor: pointer; padding: 0;
  transition: background 0.22s, transform 0.22s, box-shadow 0.22s;
}
.omg-dot.is-active {
  background: var(--c-gold);
  transform: scale(1.5);
  box-shadow: 0 0 7px rgba(240,213,122,0.85), 0 0 2px rgba(240,213,122,1);
}

/* ── Painel de informações ──────────────────────────────────── */
.obra-modal__title {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(15px,2vw,21px); color: var(--c-white); line-height: 1.25;
  padding-right: 28px; padding-bottom: 14px; position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
/* Linha dourada curta sob o título */
.obra-modal__title::after {
  content: "";
  position: absolute; bottom: -1px; left: 0;
  width: 36px; height: 2px;
  background: linear-gradient(to right, var(--c-gold), transparent);
  border-radius: 1px;
}
.obra-modal__resumo { font-size: 13.5px; color: var(--t-base); line-height: 1.72; margin: 0; }
.obra-modal__specs { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.obra-modal__specs li {
  font-size: 13px; color: var(--t-strong); padding-left: 16px; position: relative; line-height: 1.4;
}
.obra-modal__specs li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--c-gold);
  box-shadow: 0 0 5px rgba(240,213,122,0.6);
}

/* Botões de localização */
.obra-modal__location { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.obra-modal__earth {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  background: rgba(240,213,122,0.08); border: 1px solid rgba(240,213,122,0.28);
  border-radius: 6px; color: var(--c-gold); font-size: 12.5px; font-weight: 600;
  text-decoration: none; align-self: flex-start;
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.obra-modal__earth:hover {
  background: rgba(240,213,122,0.16); border-color: rgba(240,213,122,0.55);
  box-shadow: 0 0 18px rgba(240,213,122,0.2);
}
.obra-modal__earth svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
.obra-modal__maps { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.15); color: var(--t-base); }
.obra-modal__maps:hover {
  background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.32);
  color: var(--c-white); box-shadow: 0 0 14px rgba(255,255,255,0.06);
}

/* ── Lightbox ───────────────────────────────────────────────── */
.obra-lightbox {
  position: fixed; inset: 0; z-index: 4000;
  display: flex; align-items: center; justify-content: center;
  animation: om-in 0.2s var(--ease) both;
}
/* Vignette mais profunda no lightbox */
.obra-lightbox__bd {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.98) 100%);
  cursor: zoom-out;
}
.obra-lightbox__img-wrap {
  position: relative; z-index: 1;
  max-width: min(96vw, 1500px); max-height: 92vh;
  display: flex; align-items: center; justify-content: center;
}
@keyframes lb-in {
  from { transform: scale(0.93); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.obra-lightbox__img {
  max-width: 100%; max-height: 92vh; object-fit: contain; display: block;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.06);
  transition: opacity 0.2s;
  animation: lb-in 0.3s var(--ease) both;
}
/* Botão fechar — glassmorphism */
.obra-lightbox__close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 38px; height: 38px; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 50%; color: var(--c-white); font-size: 20px; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.obra-lightbox__close:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.24), rgba(255,255,255,0.10));
  border-color: rgba(240,213,122,0.4); box-shadow: 0 0 14px rgba(240,213,122,0.2);
}
/* Setas — glassmorphism maior */
.obra-lightbox__arrow {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 50px; height: 50px; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 50%; color: white; cursor: pointer; padding: 0;
  transition: background 0.2s, border-color 0.2s, transform 0.22s var(--ease), box-shadow 0.2s;
}
.obra-lightbox__arrow:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.08));
  border-color: rgba(240,213,122,0.45); transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(240,213,122,0.2);
}
.obra-lightbox__arrow--prev { left: 20px; }
.obra-lightbox__arrow--next { right: 20px; }
.obra-lightbox__arrow svg { width: 13px; height: 13px; fill: currentColor; display: block; }
/* Contador — pill glassmorphism */
.obra-lightbox__counter {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--t-base);
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 5px 16px; border-radius: 999px;
}

body.modal-open { overflow: hidden; }

@media (max-width: 600px) {
  /* Empilha tudo numa coluna, independente do nº de fases */
  .obra-modal__grid,
  .obra-modal__grid--n1,
  .obra-modal__grid--n2,
  .obra-modal__grid--n3,
  .obra-modal__grid--n4,
  .obra-modal__grid--n5 {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
    overflow-y: auto;
  }
  .obra-modal__grid--n2 .obra-modal__info { grid-column: auto; grid-row: auto; }
  .obra-modal__grid--n4 .obra-modal__info { grid-column: auto; }
  .obra-modal__info { padding: 18px 16px; }
}

/* =============================================================
   VITRINE DE MODELOS 3D — faixa rolante acima da galeria
   ============================================================= */
.models3d { margin: 0; }

/* Coluna direita do cabeçalho: vitrine 3D em cima, filtros embaixo.
   Mobile-first empilha; no desktop ocupa o espaço livre ao lado do título. */
.portfolio__head-aside { display: flex; flex-direction: column; gap: 20px; }

.models3d__head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.models3d__eyebrow {
  font-family: var(--font-primary);
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-gold);
}
.models3d__hint { margin: 0; font-size: 12px; color: var(--t-muted); }

/* Carrossel: viewport rola na horizontal; setas flutuam sobre as bordas */
.models3d__carousel { position: relative; }

.models3d__viewport {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;   /* esconde a barra de rolagem */
}
.models3d__viewport::-webkit-scrollbar { display: none; }
.models3d__viewport.is-static { overflow: hidden; }
.models3d__viewport.is-grabbing { cursor: grabbing; scroll-behavior: auto; }
/* Fade nas bordas só no modo carrossel (sinaliza que há mais a rolar) */
.models3d__viewport.is-carousel {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
}
/* padding vertical: espaço pro zoom/glow do hover não serem cortados.
   O padding lateral é definido via JS p/ centralizar o card focado. */
.models3d__track { display: flex; gap: 18px; width: max-content; padding: 30px 4px 34px; }
.models3d__viewport.is-static .models3d__track { width: 100%; justify-content: center; }

/* Setas de navegação (reveladas via JS só quando há overflow) */
.models3d__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; cursor: pointer; color: var(--c-white);
  background: linear-gradient(180deg, rgba(28,30,36,0.92), rgba(18,20,24,0.92));
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.models3d__arrow svg { width: 13px; height: 13px; fill: currentColor; }
.models3d__arrow--prev { left: 6px; }
.models3d__arrow--next { right: 6px; }
.models3d__arrow:hover {
  border-color: rgba(240,213,122,0.5);
  background: linear-gradient(180deg, rgba(42,46,56,0.95), rgba(24,26,32,0.95));
}
.models3d__arrow:disabled { opacity: 0; pointer-events: none; }   /* some no início/fim */
.models3d__arrow[hidden] { display: none; }

/* Card de modelo 3D — SEM moldura: o modelo "flutua" sobre o site.
   Stage (modelo grande) + nome discreto embaixo. */
.model3d-card {
  position: relative; flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: stretch;
  width: 540px; padding: 0; border: 0; background: transparent;
  cursor: pointer; scroll-snap-align: center;
  -webkit-tap-highlight-color: transparent;
}

/* Área do modelo: fundo transparente, deixa o 3D flutuar */
.model3d-card__stage {
  position: relative; display: block; width: 100%; height: 400px;
  border-radius: 18px;                 /* base p/ o traço dourado + glow do hover */
  transform-origin: center;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.model3d-card:hover, .model3d-card:focus-visible { z-index: 2; }   /* zoom por cima dos vizinhos */
.model3d-card:hover .model3d-card__stage,
.model3d-card:focus-visible .model3d-card__stage {
  transform: scale(1.1);               /* zoom bem maior que antes (era 1.04) */
  box-shadow: 0 22px 50px rgba(0,0,0,0.45), 0 0 26px rgba(240,213,122,0.12);
}

/* Sombra de "chão" suave: reforça a sensação de flutuar */
.model3d-card__stage::after {
  content: ""; position: absolute; left: 50%; bottom: 4%; z-index: -1;
  width: 58%; height: 16px; transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0,0,0,0.5), transparent 70%);
  filter: blur(5px); opacity: 0.75; pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.model3d-card:hover .model3d-card__stage::after { opacity: 0.4; }

/* Linha dourada percorrendo a borda no hover — à la cards de obra */
@property --m3d-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.model3d-card__stage::before {
  content: ""; position: absolute; inset: 0; z-index: 3;
  border-radius: inherit; padding: 2px;          /* espessura da linha */
  background: conic-gradient(from var(--m3d-angle),
    rgba(240,213,122,0) 0deg, rgba(240,213,122,0) 248deg,
    var(--c-gold) 312deg, #fff4d2 340deg, var(--c-gold) 360deg);
  /* mostra só o anel (border-box menos content-box) */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.35s var(--ease); pointer-events: none;
}
.model3d-card:hover .model3d-card__stage::before,
.model3d-card:focus-visible .model3d-card__stage::before {
  opacity: 1; animation: m3d-trace 2.4s linear infinite;
}
@keyframes m3d-trace { to { --m3d-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .model3d-card:hover .model3d-card__stage::before,
  .model3d-card:focus-visible .model3d-card__stage::before { animation: none; }
}

/* Pré-visualização 3D ao vivo (iframe do viewer/preview.html) — transparente */
.model3d-card__preview {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; display: block; background: transparent;
  pointer-events: none;   /* o clique vai para o botão, não para o iframe */
}

/* Legenda discreta abaixo do modelo */
.model3d-card__caption {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  margin-top: 2px; text-align: center;
}
.model3d-card__name {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600; line-height: 1.2; color: var(--c-white);
}
.model3d-card__cta {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-gold); opacity: 0.55; transition: opacity 0.25s var(--ease);
}
.model3d-card:hover .model3d-card__cta,
.model3d-card:focus-visible .model3d-card__cta { opacity: 1; }

/* =============================================================
   POPUP 3D — viewer embutido (iframe)
   ============================================================= */
.viewer-modal {
  position: fixed; inset: 0; z-index: 3500;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  animation: om-in 0.28s var(--ease) both;
}
.viewer-modal__bd {
  position: absolute; inset: 0; cursor: pointer;
  background: radial-gradient(ellipse at 55% 45%, rgba(0,0,0,0.74) 0%, rgba(0,0,0,0.96) 100%);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.viewer-modal__box {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  width: 100%; max-width: 1200px; height: 86vh; max-height: 860px;
  background: linear-gradient(160deg, #1c1f25 0%, #14161b 100%);
  border: 1px solid rgba(240,213,122,0.18); border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 40px 90px rgba(0,0,0,0.75), 0 0 60px rgba(240,213,122,0.05);
  animation: om-box-in 0.38s var(--ease) both;
}
.viewer-modal__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--line); background: rgba(0,0,0,0.25);
}
.viewer-modal__title {
  display: flex; flex-direction: column; margin-right: auto; line-height: 1.15;
  font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--c-white);
}
.viewer-modal__title small {
  font-family: var(--font-primary); font-size: 11px; font-weight: 400;
  letter-spacing: 0.04em; color: var(--t-muted);
}
.viewer-modal__open, .viewer-modal__close {
  flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.18); border-radius: 9px;
  color: var(--c-white); text-decoration: none; font-size: 18px; line-height: 1; cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.viewer-modal__open svg { width: 16px; height: 16px; fill: currentColor; }
.viewer-modal__open:hover, .viewer-modal__close:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.07));
  border-color: rgba(240,213,122,0.45); box-shadow: 0 0 14px rgba(240,213,122,0.22);
}
.viewer-modal__stage { position: relative; flex: 1; min-height: 0; background: #0d0f13; }
.viewer-modal__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.viewer-modal__spin {
  position: absolute; inset: 0; z-index: 1; display: grid; place-items: center;
  background: #0d0f13; transition: opacity 0.4s ease;
}
.viewer-modal__spin.is-hidden { opacity: 0; pointer-events: none; }
.viewer-modal__spin .spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid #2a2d35; border-top-color: var(--c-gold);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
  .model3d-card { width: 88vw; max-width: 460px; }
  .model3d-card__stage { height: 340px; }
  .viewer-modal__box { height: 92vh; }
}
