/* =========================================================
   ANDRETTO.VIZ — estilos globais
   Paleta oficial: #FBEED7 #D9C19D #B7966B #946D43 #724A24 #502B0F #2E1402
   Tipografia aprovada (direção B — "Didone do logo"):
     Italiana (títulos/rótulos) + Archivo Expanded (interface)
   ========================================================= */

/* As fontes (@font-face) ficam em fonts.css */

:root {
  --cream: #FBEED7;
  --accent: #B7966B;      /* único acento de cor */
  --espresso: #2E1402;
  --bg: #0f0c09;          /* preto quente */
  --line: rgba(251, 238, 215, .12);

  --display: "Italiana", "Didot", "Bodoni 72", serif;
  --ui: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--cream);
  font-family: var(--ui); font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; height: 100vh; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* Texto de interface: Archivo expandido, caixa alta, pequeno */
.ui, .nav__links a, .hint, .contact__label {
  font-family: var(--ui); font-stretch: 125%; font-weight: 500;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}

/* Lenis (scroll suave) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ================= ABERTURA (proporção áurea) ================= */
.loader { position: fixed; inset: 0; z-index: 100; overflow: hidden; cursor: default;
  --L1: #d2ad66; --L3: rgba(251,238,215,.55); --cut: 50%; }
.loader.is-done { visibility: hidden; pointer-events: none; }
.intro__pan { position: absolute; left: 0; right: 0; background: var(--bg); }
.intro__pan--t { top: 0; bottom: 0; }          /* um painel só: sem emenda no meio da tela */
.intro__pan--b { display: none; }
.intro__sheet { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.intro__sheet line, .intro__sheet path { fill: none; vector-effect: non-scaling-stroke; }
.i-grid { opacity: 0; } .i-grid line { stroke: rgba(251,238,215,.045); stroke-width: 1; }
.intro__sheet .k { stroke: var(--L1); stroke-width: 1.3; stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro__sheet .gt { stroke: var(--L1); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro__sheet .sb { stroke: var(--L1); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro__sheet .ext, .intro__sheet .dl { stroke: var(--L3); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro__sheet .tk { stroke: var(--L1); stroke-width: 1.4; opacity: 0; }
.intro__sheet .cut { stroke: var(--L1); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.intro__sheet .phi { fill: var(--cream); font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 500; font-size: 15px; letter-spacing: .28em; opacity: 0; }
.intro__sheet .phiL { font-family: "Italiana", serif; font-size: 22px; letter-spacing: 0; fill: var(--L1); }
.i-fill { clip-path: inset(100% 0 0 0); } .i-shine, .i-lshine { opacity: 0; }
.i-lfill { clip-path: inset(0 100% 0 0); }
.i-symg { transform-origin: 0 0; }
.intro__sheet .cut, .intro__sheet .i-dim { display: none; }
.intro__sheet .i-asym { opacity: 0; fill: url(#avi-lg); }
.loader.is-final .intro__sheet .i-asym { opacity: 1; }
.loader.is-final .i-symg { display: none; }
/* versão curta (voltando à home) e "pular" */
.loader.is-final .i-cons, .loader.is-final .i-gtri, .loader.is-final .i-subs, .loader.is-final .i-dim { display: none; }
.loader.is-final .i-fill, .loader.is-final .i-lfill { clip-path: none; }
.loader.is-final .i-grid { opacity: 1; }
/* marcas de canto da prancha */
.intro__reg { position: absolute; width: 40px; height: 40px; border: 0 solid rgba(251,238,215,.5); opacity: 0; transition: opacity .8s ease .2s; }
.intro__reg:nth-of-type(1) { top: 40px; left: 40px; border-width: 1px 0 0 1px; }
.intro__reg:nth-of-type(2) { top: 40px; right: 40px; border-width: 1px 1px 0 0; }
.intro__reg:nth-of-type(3) { bottom: 40px; left: 40px; border-width: 0 0 1px 1px; }
.intro__reg:nth-of-type(4) { bottom: 40px; right: 40px; border-width: 0 1px 1px 0; }
.loader.is-in .intro__reg, .loader.is-final .intro__reg { opacity: 1; }
.loader.is-opening .intro__reg { opacity: 0; transition-duration: .4s; transition-delay: 0s; }
@media (max-width: 820px) { .intro__reg { width: 26px; height: 26px; } .intro__reg:nth-of-type(n) { margin: -16px; } }

/* ================= MENU ================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px var(--gutter);
  mix-blend-mode: difference;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav__logo img { width: 150px; opacity: 0; transform: translateY(-6px); transition: opacity .8s ease, transform .8s ease; }
.nav.show-logo .nav__logo img { opacity: 1; transform: none; }
.nav__links { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav__links a { color: #fff; position: relative; padding: 4px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ================= SEQUÊNCIAS DE FRAMES ================= */
.seq { position: relative; }
.seq--hero   { height: 100vh; height: 100svh; }
.seq--living { height: 520vh; }
.seq__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.seq__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.seq__shade  { position: absolute; inset: 0; background: var(--bg); opacity: 0; pointer-events: none; }

.hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--espresso); font-size: 10px;
}
.hint i { width: 1px; height: 44px; background: rgba(46,20,2,.25); position: relative; overflow: hidden; }
.hint i::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--espresso);
  animation: drip 2.2s cubic-bezier(.7,0,.3,1) infinite;
}
@keyframes drip { 0% { top: -100%; } 60%,100% { top: 100%; } }

/* ================= FAIXA (índice) =================
   Não ocupa a tela inteira: deixa ver que há mais abaixo. */
.band {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1px 1fr 1px 1fr; align-items: center;
  height: clamp(260px, 42vh, 440px);
  padding: 0 var(--gutter);
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band__item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* P3: separadores = linhas de cota (traços nas pontas) + linha de medida numerada */
.band__sep { position: relative; z-index: 2; height: 46%; background: rgba(251,238,215,.18); }
.band__sep::before, .band__sep::after { content: ""; position: absolute; left: -6px; width: 13px; height: 1px; background: rgba(251,238,215,.45); }
.band__sep::before { top: 0; } .band__sep::after { bottom: 0; }
.band__dim { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); top: 16%; height: 1px; background: rgba(251,238,215,.14); pointer-events: none; }
.band__dim span { position: absolute; top: -4px; width: 1px; height: 9px; background: rgba(251,238,215,.45); }
.band__dim b { position: absolute; top: -20px; transform: translateX(-50%); font-weight: 500; color: rgba(251,238,215,.35); }
.band__item { z-index: 3; }

/* Luz L1 (aprovada): lanterna com inércia que revela a malha de construção */
.band { --x: 50%; --y: 50%; overflow: hidden; }
.band__glow, .band__grid { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.band__glow { background: radial-gradient(340px circle at var(--x) var(--y), rgba(183,150,107,.16), transparent 70%); }
.band__grid {
  background-image:
    linear-gradient(rgba(251,238,215,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251,238,215,.22) 1px, transparent 1px),
    linear-gradient(rgba(251,238,215,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251,238,215,.08) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(260px circle at var(--x) var(--y), #000 0%, rgba(0,0,0,.5) 45%, transparent 75%);
          mask-image: radial-gradient(260px circle at var(--x) var(--y), #000 0%, rgba(0,0,0,.5) 45%, transparent 75%);
}
.band__coords {
  position: absolute; z-index: 2; left: var(--x); top: var(--y);
  transform: translate(16px, 16px); font-size: 9px; white-space: pre;
  color: rgba(183,150,107,.8); pointer-events: none; opacity: 0; transition: opacity .4s ease;
}
.band.is-hover .band__coords { opacity: 1; }
/* Estilo A (aprovado): só tipografia + linha dourada que se desenha */
.band__label {
  position: relative; padding-bottom: 12px;
  font-family: var(--display); font-size: clamp(28px, 2.8vw, 42px);
  letter-spacing: .02em; line-height: 1;
  transition: letter-spacing .8s var(--ease), color .6s ease;
}
.band__label::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .8s var(--ease);
}
.band__item:hover .band__label { letter-spacing: .08em; }
.band__item:hover .band__label::after { transform: scaleX(1); transform-origin: left; }

/* ================= PAINEL DE CONTATO ================= */
.contact { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.contact.is-open { visibility: visible; }
.contact__backdrop {
  position: absolute; inset: 0; background: rgba(15,12,9,.72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .6s ease;
}
.contact.is-open .contact__backdrop { opacity: 1; }
.contact__panel {
  position: absolute; left: 50%; bottom: 0;
  width: min(560px, 100%);
  transform: translate(-50%, 100%);
  background: var(--bg);
  border: 1px solid var(--line); border-bottom: 0;
  padding: 56px var(--gutter) 44px;
  transition: transform .8s var(--ease);
}
.contact.is-open .contact__panel { transform: translate(-50%, 0); }
.contact__close { position: absolute; top: 18px; right: 18px; width: 28px; height: 28px; }
.contact__close svg { width: 100%; height: 100%; stroke: var(--cream); stroke-width: 1; fill: none; }
.contact__list { list-style: none; margin: 0; padding: 0; }
.contact__list a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 22px 0; border-top: 1px solid var(--line);
  transition: color .5s ease;
}
.contact__list li:last-child a { border-bottom: 1px solid var(--line); }
.contact__label { color: rgba(251,238,215,.5); }
.contact__value { font-family: var(--ui); font-stretch: 100%; font-weight: 300; font-size: clamp(16px, 2vw, 19px); letter-spacing: .01em; }
.contact__list a:hover { color: var(--accent); }

/* ================= SELETOR DE LÍNGUA ================= */
.lang { position: relative; margin-left: 6px; }
.lang__cur { color: #fff; font: inherit; font-family: var(--ui); font-stretch: 125%; font-weight: 500; font-size: 11px; letter-spacing: .14em;
  padding: 4px 0 4px 14px; border-left: 1px solid rgba(255,255,255,.35); }
.lang__list { list-style: none; margin: 0; padding: 8px 0 0; position: absolute; right: 0; top: 100%;
  display: flex; flex-direction: column; gap: 6px; opacity: 0; pointer-events: none; transform: translateY(-4px);
  transition: opacity .4s ease, transform .5s var(--ease); }
.lang.is-open .lang__list { opacity: 1; pointer-events: auto; transform: none; }
.lang__list button { color: rgba(255,255,255,.6); font-family: var(--ui); font-stretch: 125%; font-weight: 500; font-size: 11px; letter-spacing: .14em; padding: 2px 0; }
.lang__list button:hover, .lang__list button[aria-current="true"] { color: #fff; }

/* ================= RODAPÉ (R2) ================= */
.foot {
  position: relative; z-index: 2; background: var(--bg); overflow: hidden;
  border-top: 1px solid var(--line);
  padding: 90px var(--gutter) 34px; text-align: center;
}
.foot__bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.foot > *:not(.foot__bg) { position: relative; z-index: 1; }
.foot__brand { position: relative; width: min(340px, 72vw); margin: 0 auto 64px; --gap: 22px; }
.foot__mask { overflow: hidden; padding-top: 6px; }
.foot__logo { display: block; width: 100%; height: auto; }
.foot__logo path { fill: #fff; }
.foot__line { position: absolute; left: 50%; bottom: calc(-1 * var(--gap)); width: 100vw; max-width: 1240px; height: 1px;
  background: linear-gradient(90deg, transparent, #d2ad66 20%, #d2ad66 80%, transparent); transform: translateX(-50%); }
/* animação (só quando o JS está ativo) */
.foot--anim .foot__line { transform: translateX(-50%) scaleX(0); transition: transform 1.2s cubic-bezier(.65,0,.35,1); }
.foot--anim .foot__logo { transform: translateY(105%); transition: transform 1.4s cubic-bezier(.76,0,.24,1) .7s; }
.foot--anim .foot__nav, .foot--anim .foot__icons, .foot--anim .foot__bottom { opacity: 0; transform: translateY(14px);
  transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
.foot--anim.is-in .foot__line { transform: translateX(-50%) scaleX(1); }
.foot--anim.is-in .foot__logo { transform: none; }
.foot--anim.is-in .foot__nav { opacity: 1; transform: none; transition-delay: 1.7s; }
.foot--anim.is-in .foot__icons { opacity: 1; transform: none; transition-delay: 1.86s; }
.foot--anim.is-in .foot__bottom { opacity: 1; transform: none; transition-delay: 2.02s; }
@media (max-width: 820px) { .foot__brand { --gap: 14px; margin-bottom: 48px; } }
@media (prefers-reduced-motion: reduce) { .foot--anim .foot__line, .foot--anim .foot__logo, .foot--anim .foot__nav, .foot--anim .foot__icons, .foot--anim .foot__bottom { transform: none !important; opacity: 1 !important; transition: none !important; } .foot__line { transform: translateX(-50%) !important; } }
.foot__nav { display: flex; justify-content: center; gap: 48px; margin: 0 0 34px; }
.foot__nav a { position: relative; font-family: var(--display); font-size: 30px; letter-spacing: .02em; }
.foot__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease);
}
.foot__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.foot__icons { display: flex; justify-content: center; gap: 28px; margin: 0 0 64px; }
.foot__icons svg { width: 21px; height: 21px; fill: none; stroke: var(--cream); stroke-width: 1; transition: stroke .5s ease, transform .6s var(--ease); }
.foot__icons a:hover svg { stroke: var(--accent); transform: translateY(-2px); }
.foot__bottom { display: flex; justify-content: space-between; padding-top: 18px; border-top: 1px solid rgba(210,173,102,.28); font-size: 11px; }
.foot__bottom small { font-size: inherit; color: rgba(251,238,215,.72); }
.foot__bottom { align-items: center; gap: 16px; }
.foot__origin { text-align: center; }
.foot__bottom a { color: #d2ad66; display: inline-flex; align-items: center; gap: 10px; transition: color .5s ease; }
.foot__bottom a svg { width: 9px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform .5s var(--ease); }
.foot__bottom a:hover { color: #f0d79b; }
.foot__bottom a:hover svg { transform: translateY(-3px); }

/* ================= CELULAR (retrato) ================= */
@media (max-width: 820px) and (orientation: portrait) {
  .seq--hero { height: 100vh; height: 100svh; }
  .seq--living { height: 440vh; }
  .nav { padding: 20px var(--gutter); }
  .nav__logo img { width: 96px; }
  .nav__links { gap: 12px; }
  .nav__links a { font-size: 10px; letter-spacing: .08em; font-stretch: 100%; }
  .band { grid-template-columns: 1fr; height: auto; padding: 36px var(--gutter); }
  .band__item { height: 88px; }
  .band__sep { height: 1px; width: 56%; justify-self: center; }
  .band__sep::before, .band__sep::after { left: auto; top: -6px; width: 1px; height: 13px; }
  .band__sep::before { left: 0; } .band__sep::after { right: 0; bottom: auto; }
  .band__dim, .band__coords { display: none; }
  .band__label { font-size: 24px; }
  .foot__nav { gap: 22px; }
  .foot__bottom { flex-direction: column; gap: 10px; }
  .lang__cur { font-size: 10px; letter-spacing: .08em; font-stretch: 100%; padding-left: 10px; }
  .foot__nav a { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .hint i::after { animation: none; }
}

/* ================= DESTAQUE DA HOME — Andretto Concept 60M =================
   Seção longa com um quadro "grudado" na tela: ao rolar, a janela
   se abre até a tela cheia, a cota "60 M" se desenha e o texto entra. */
.feat { position: relative; height: 100vh; height: 100svh; }
.feat__pin { position: relative; height: 100%; overflow: hidden; }
.feat__media { position: absolute; inset: 0; clip-path: inset(16% 20% 16% 20%); will-change: clip-path; }
.feat__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.22); will-change: transform; }
.feat__shade { position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(to top, rgba(15,12,9,.82) 0%, rgba(15,12,9,.25) 42%, rgba(15,12,9,0) 62%); }
.feat__dim { position: absolute; left: 20%; right: 20%; top: calc(16% - 34px); display: flex; align-items: center; gap: 14px; color: rgba(251,238,215,.7); }
.feat__dim span { flex: 1; height: 1px; background: rgba(251,238,215,.4); position: relative; transform: scaleX(0); }
.feat__dim span:first-child { transform-origin: right; } .feat__dim span:last-child { transform-origin: left; }
.feat__dim span:first-child::before, .feat__dim span:last-child::after { content: ""; position: absolute; top: -5px; width: 1px; height: 11px; background: rgba(251,238,215,.6); }
.feat__dim span:first-child::before { left: 0; } .feat__dim span:last-child::after { right: 0; }
.feat__dim b { font-weight: 500; opacity: 0; }
.feat__txt { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 9vh; opacity: 0; transform: translateY(30px); }
.feat__lbl { color: var(--accent); margin: 0 0 18px; }
.feat__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(54px, 9vw, 150px); line-height: .9; }
.feat__line { margin: 22px 0 0; font-family: var(--ui); font-weight: 300; font-stretch: 100%; font-size: clamp(16px, 1.4vw, 20px); color: rgba(251,238,215,.85); }
.feat__cta { display: inline-flex; align-items: center; gap: 16px; margin-top: 30px; padding-bottom: 10px; border-bottom: 1px solid rgba(251,238,215,.3); transition: color .4s ease, border-color .4s ease, gap .5s var(--ease); }
.feat__cta svg { width: 40px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1; }
.feat__cta:hover { color: var(--accent); border-color: var(--accent); gap: 24px; }
@media (max-width: 820px) {
  .feat { height: 100vh; height: 100svh; min-height: 640px; }
  /* no celular o iate não cabe cortado em pé: a imagem fica numa faixa larga e o texto embaixo */
  .feat__media { inset: auto 0; top: 15vh; height: 78vw; clip-path: inset(12% 8% 12% 8%); }
  .feat__dim { left: 8%; right: 8%; top: calc(15vh + 9.4vw - 26px); }
  .feat__shade { display: none; }
  .feat__txt { top: calc(15vh + 78vw + 5vh); bottom: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .feat { height: auto; } .feat__pin { position: relative; }
  .feat__media { clip-path: none; } .feat__img { transform: none; }
  .feat__shade, .feat__txt { opacity: 1; transform: none; } .feat__dim { display: none; }
}

/* ================= HERO EM VÍDEO =================
   Computador: o vídeo preenche a tela.
   Celular: o vídeo inteiro numa faixa (o logo de gelo cabe) e, atrás,
   uma versão minúscula do mesmo vídeo, ampliada e desfocada, preenche a tela. */
.hero-v { background: var(--bg); }
.hero-v__main, .hero-v__bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-v__main { object-fit: cover; }
.hero-v__bg { display: none; }
@media (max-width: 820px) and (orientation: portrait) {
  .hero-v__bg { display: block; object-fit: cover; filter: blur(14px) brightness(.5); transform: scale(1.15); }
  .hero-v__main { object-fit: contain; transform: scale(1.16);
    -webkit-mask-image: linear-gradient(to bottom, transparent 33%, #000 40%, #000 60%, transparent 67%);
            mask-image: linear-gradient(to bottom, transparent 33%, #000 40%, #000 60%, transparent 67%); }
}

/* ================= IATE (home) — 3 fotos pequenas + "ver todos os projetos" =================
   Faixa discreta com o interior do iate (o destaque acima já mostra o exterior).
   Cada foto se revela ao entrar na tela; clicar abre o zoom. */
.yg { padding: 10vh var(--gutter) 6vh; display: flex; flex-direction: column; align-items: center; gap: 44px; }
.yg__grid { width: 100%; max-width: 1280px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.yg__i { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; }
/* a máscara fica na imagem (e não na moldura) para o navegador detectar quando a moldura entra na tela */
.yg__i img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in;
  clip-path: inset(100% 0 0 0); transform: scale(1.1); filter: brightness(.88);
  transition: clip-path 1.2s var(--ease), transform 1.6s var(--ease), filter .8s ease; }
.yg__i.is-in img { clip-path: inset(0 0 0 0); transform: scale(1); }
.yg__i:nth-child(2) img { transition-delay: .12s; }
.yg__i:nth-child(3) img { transition-delay: .24s; }
.yg__i:nth-child(4) img { transition-delay: .36s; }
.yg__i:hover img { transform: scale(1.05); filter: brightness(1); }
.yg__all { margin-top: 0; }
@media (max-width: 820px) {
  .yg { padding: 7vh var(--gutter) 4vh; gap: 30px; }
  .yg__grid { gap: 8px; grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .yg__i img { clip-path: none; transform: none; } }

/* ================= FILME EM DESTAQUE — lançamentos imobiliários =================
   Home: texto de venda à esquerda, filme vertical à direita (com botão de som
   sobre o vídeo) e, abaixo, um mosaico: a obra (vertical), o interior se
   montando e a fachada. Página do projeto: só o filme. */
.vfilm { position: relative; padding: 16vh var(--gutter) 14vh; border-top: 1px solid var(--line); }
.vfilm__in { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 8vw; align-items: center; }
.vfilm__lbl { color: var(--accent); margin: 0 0 22px; }
.vfilm__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(36px, 3.7vw, 64px); line-height: 1.04; letter-spacing: .005em; }
.vfilm__spec { margin: 30px 0 0; max-width: 40ch; font-weight: 300; font-stretch: 100%; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.7; color: rgba(251,238,215,.78); }
.vfilm__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; margin-top: 42px; }
.vfilm__acts .feat__cta { margin-top: 0; }
.vfilm__quote { display: inline-flex; align-items: center; gap: 16px; padding: 15px 22px; border: 1px solid var(--accent); color: var(--cream);
  background: rgba(183,150,107,.08); transition: background .5s ease, color .4s ease, gap .5s var(--ease); }
.vfilm__quote svg { width: 34px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1; }
.vfilm__quote:hover { background: var(--accent); color: var(--bg); gap: 22px; }
.vfilm__col { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.vfilm__cap { margin: 0; font-size: 9px; color: rgba(251,238,215,.55); }
.vfilm__frame { position: relative; margin: 0; height: min(82vh, 900px); aspect-ratio: 1080 / 1942; overflow: hidden; }
/* a máscara fica no vídeo (e não na moldura) para o navegador detectar quando a moldura entra na tela */
.vfilm__frame video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; background: #000;
  clip-path: inset(100% 0 0 0); transform: scale(1.06); transition: clip-path 1.5s var(--ease), transform 2s var(--ease); }
.vfilm.is-in .vfilm__frame video { clip-path: inset(0 0 0 0); transform: none; }
.vfilm__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(251,238,215,.18); }
.vfilm__bar i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.vfilm__tc { position: absolute; top: 16px; right: 16px; font-size: 9px; color: rgba(251,238,215,.8); font-variant-numeric: tabular-nums; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.vfilm__tc, .vfilm__bar, .vfilm__snd { opacity: 0; transition: opacity 1s ease 1.2s; }
.vfilm.is-in .vfilm__tc, .vfilm.is-in .vfilm__bar, .vfilm.is-in .vfilm__snd { opacity: 1; }
/* botão de som sobre o vídeo */
.vfilm__snd { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  padding: 12px 18px; color: var(--cream); background: rgba(15,12,9,.42); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(251,238,215,.35); font-size: 10px; transition: opacity 1s ease 1.2s, background .4s ease, border-color .4s ease, color .4s ease; }
.vfilm__snd:hover { background: rgba(15,12,9,.65); border-color: var(--accent); }
.vfilm__snd.is-on { color: var(--accent); border-color: rgba(183,150,107,.6); }
.vfilm__snd:not(.is-on)::after { content: ""; position: absolute; inset: -1px; border: 1px solid rgba(183,150,107,.7); animation: vfping 2.4s ease-out infinite; pointer-events: none; }
@keyframes vfping { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.12, 1.4); } }
.vfilm__eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.vfilm__eq b { width: 1px; height: 4px; background: currentColor; }
.vfilm__snd.is-on .vfilm__eq b { animation: vfeq .9s ease-in-out infinite alternate; }
.vfilm__snd.is-on .vfilm__eq b:nth-child(2) { animation-delay: -.3s; } .vfilm__snd.is-on .vfilm__eq b:nth-child(3) { animation-delay: -.6s; }
@keyframes vfeq { from { height: 2px; } to { height: 11px; } }
/* o texto entra em camadas, junto com o filme (como créditos de abertura) */
.vfilm__l1, .vfilm__l2 { display: block; }
.vfilm__word { margin: 26px 0 0; font-family: var(--display); font-size: clamp(22px, 2vw, 32px); color: var(--accent); letter-spacing: .01em; }
.vfilm__tag { margin: 22px 0 0; color: rgba(251,238,215,.55); font-size: 10px; }
.vfilm__txt > * { opacity: 0; transform: translateY(22px); filter: blur(6px);
  transition: opacity 1.2s ease, transform 1.4s var(--ease), filter 1.2s ease; }
.vfilm__title > span { opacity: 0; transform: translateY(24px); filter: blur(8px); transition: opacity 1.3s ease, transform 1.5s var(--ease), filter 1.3s ease; }
.vfilm__txt > .vfilm__title { opacity: 1; transform: none; filter: none; }
.vfilm.is-in .vfilm__txt > *, .vfilm.is-in .vfilm__title > span { opacity: 1; transform: none; filter: none; }
.vfilm.is-in .vfilm__lbl  { transition-delay: .1s; }
.vfilm.is-in .vfilm__l1   { transition-delay: .5s; }
.vfilm.is-in .vfilm__l2   { transition-delay: 1.8s; }
.vfilm.is-in .vfilm__word { transition-delay: 3.2s; }
.vfilm.is-in .vfilm__spec { transition-delay: 4.5s; }
.vfilm.is-in .vfilm__tag  { transition-delay: 4.9s; }
.vfilm.is-in .vfilm__acts { transition-delay: 5.2s; }
/* mosaico: a obra (vertical, duas linhas) + interior se montando + fachada */
.vfilm__grid { max-width: 1280px; margin: 12vh auto 0; display: grid; grid-template-columns: .554fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.vfilm__clip { position: relative; margin: 0; overflow: hidden; background: #000; }
.vfilm__clip--build { grid-row: 1 / span 2; }
.vfilm__clip--room { aspect-ratio: 1920 / 814; }
.vfilm__clip--still { aspect-ratio: 1600 / 893; }
.vfilm__clip video, .vfilm__clip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  clip-path: inset(100% 0 0 0); transform: scale(1.08); transition: clip-path 1.2s var(--ease), transform 1.8s var(--ease); }
.vfilm__clip.is-in video, .vfilm__clip.is-in img { clip-path: inset(0 0 0 0); transform: scale(1); }
.vfilm__clip--room video { transition-delay: .15s; } .vfilm__clip--still img { transition-delay: .3s; }
.vfilm__clip figcaption { position: absolute; left: 18px; bottom: 16px; z-index: 2; font-size: 9px; color: rgba(251,238,215,.9); text-shadow: 0 1px 8px rgba(0,0,0,.6);
  opacity: 0; transition: opacity 1s ease 1.2s; }
.vfilm__clip.is-in figcaption { opacity: 1; }
.vfilm__clip::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(to top, rgba(10,8,6,.55), transparent); pointer-events: none; }
/* página do projeto */
.vfilm--proj { border-top: 0; padding-top: 4vh; }
.vfilm--proj .vfilm__in { grid-template-columns: auto; justify-content: center; }
@media (max-width: 820px) {
  .vfilm { padding: 11vh var(--gutter) 10vh; }
  .vfilm__in { grid-template-columns: 1fr; gap: 40px; }
  .vfilm__col { align-items: stretch; }
  .vfilm__frame { height: auto; width: 100%; }
  .vfilm__acts { margin-top: 30px; }
  .vfilm__cap { text-align: right; }
  .vfilm__grid { grid-template-columns: 1fr; margin-top: 8vh; gap: 8px; }
  .vfilm__clip--build { grid-row: auto; aspect-ratio: 4 / 5; order: 2; }
  .vfilm__clip--room { order: 1; } .vfilm__clip--still { order: 3; }
}
@media (prefers-reduced-motion: reduce) {
  .vfilm__frame video, .vfilm__clip video, .vfilm__clip img { clip-path: none; transform: none; }
  .vfilm__txt > *, .vfilm__title > span { opacity: 1 !important; transform: none !important; filter: none !important; }
  .vfilm__snd::after { animation: none; }
}

/* ================= ABERTURA "HORIZONTE" (intro.js) =================
   Duas metades escuras que se separam na linha do horizonte;
   o logo fica num recorte logo acima do fio e sobe de trás dele. */
.loader { --hz-w: min(46vw, 560px); }
.hz__pan { position: absolute; left: 0; right: 0; background: var(--bg); will-change: transform; }
.hz__pan--t { top: 0; height: 50%; }
.hz__pan--b { top: 50%; bottom: 0; }
.hz__mask { position: absolute; left: 50%; bottom: calc(50% + 2.2vh); width: var(--hz-w); transform: translateX(-50%); overflow: hidden; }
.hz__rise { transform: translateY(118%); }
.hz__logo { display: block; width: 100%; height: auto; }
.hz__line { position: absolute; left: 50%; top: 50%; width: 0; height: 1px; margin-top: -.5px; transform: translateX(-50%);
  background: #C9A35E; box-shadow: 0 0 10px rgba(201,163,94,.55); }
@media (max-width: 820px) { .loader { --hz-w: 72vw; } }

/* ================= VISUALIZADOR DE IMAGENS E VÍDEOS (site inteiro) =================
   lightbox.js: zoom, setas, tela cheia e player completo para vídeos. */
.lbx { position: fixed; inset: 0; z-index: 120; background: #0a0806; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
.lbx.is-open { opacity: 1; visibility: visible; }
.lbx__frame { position: absolute; inset: 72px 96px 64px; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: zoom-out; }
.lbx__img { max-width: 100%; max-height: 100%; cursor: zoom-in; transition: transform .45s var(--ease), opacity .2s ease; user-select: none; -webkit-user-drag: none; }
.lbx__img.is-out { opacity: 0; }
.lbx.is-zoom .lbx__img { cursor: zoom-out; transition: transform .45s var(--ease), transform-origin .12s linear, opacity .2s ease; }
.lbx__vid { display: none; max-width: 100%; max-height: 100%; background: #000; outline: none; }
.lbx.is-video .lbx__img { display: none; } .lbx.is-video .lbx__vid { display: block; }
.lbx.is-video .lbx__zin, .lbx.is-video .lbx__zout { display: none; }
.lbx.is-fs .lbx__frame { inset: 0; }
.lbx__nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; padding: 0; border-radius: 50%; z-index: 2;
  border: 1px solid rgba(251,238,215,.22); background: rgba(15,12,9,.35); color: rgba(251,238,215,.8); cursor: pointer;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: border-color .35s ease, color .35s ease, transform .35s var(--ease), opacity .35s ease; }
.lbx__nav svg, .lbx__t svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1; }
.lbx__prev { left: 24px; } .lbx__next { right: 24px; }
.lbx__nav:hover { border-color: var(--accent); color: var(--accent); }
.lbx__prev:hover { transform: translateX(-3px); } .lbx__next:hover { transform: translateX(3px); }
.lbx__tools { position: absolute; top: 14px; right: 16px; z-index: 3; display: flex; gap: 4px; }
.lbx__t { width: 44px; height: 44px; padding: 0; border: 0; background: rgba(15,12,9,.3); color: rgba(251,238,215,.75); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: color .3s ease; }
.lbx__t:hover { color: var(--accent); }
.lbx__idx { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); color: rgba(251,238,215,.55); }
.lbx.is-single .lbx__nav, .lbx.is-single .lbx__idx { display: none; }
.lbx.is-zoom .lbx__nav { opacity: .35; }
@media (max-width: 820px) {
  .lbx__frame { inset: 64px 0 84px; }
  .lbx__nav { top: auto; bottom: 16px; margin-top: 0; width: 46px; height: 46px; }
  .lbx__prev { left: 16px; } .lbx__next { right: 16px; }
  .lbx__idx { bottom: 32px; }
  .lbx__tools { top: 10px; right: 8px; }
}
/* tudo que abre no visualizador */
[data-zoom], .vfilm__clip, .pvid video, .feat__img, .yg__i img { cursor: zoom-in; }
/* botão "ampliar" sobre filmes */
.vfilm__exp { position: absolute; top: 12px; left: 12px; z-index: 3; width: 38px; height: 38px; padding: 0; display: flex; align-items: center; justify-content: center;
  color: var(--cream); background: rgba(15,12,9,.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(251,238,215,.3); cursor: pointer;
  opacity: 0; transition: opacity 1s ease 1.2s, border-color .3s ease, color .3s ease; }
.vfilm.is-in .vfilm__exp { opacity: 1; }
.vfilm__exp:hover { color: var(--accent); border-color: var(--accent); }
.vfilm__exp svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.2; }
/* filme horizontal (ex.: Winter Chalet) */
.vfilm--wide .vfilm__in { grid-template-columns: 1fr; justify-items: stretch; }
.vfilm--wide .vfilm__col { align-items: stretch; }
.vfilm--wide .vfilm__frame { width: 100%; height: auto; max-height: 82vh; }

/* ================= FAIXAS DE PROJETOS (home, strips.js) =================
   Duas faixas em sentidos opostos: arquitetura (cima, ←) e interiores (baixo, →).
   Altura fixa; a largura de cada imagem segue a proporção dela (--ar). */
.strips { padding: 4vh 0 16vh; overflow: hidden; }
.strips__lbl { color: var(--accent); margin: 0 var(--gutter) 26px; }
.strips__rows { display: flex; flex-direction: column; gap: 14px; }
.strip { overflow: hidden; }
.strip__track { display: flex; gap: 14px; width: max-content; will-change: transform; }
.strip__i { position: relative; flex: none; height: clamp(190px, 30vh, 340px); aspect-ratio: var(--ar); overflow: hidden; background: #000; display: block; }
.strip__i img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.86); transform: scale(1.001);
  transition: filter .8s ease, transform 1.4s var(--ease); user-select: none; -webkit-user-drag: none; }
.strip__i::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to top, rgba(10,8,6,.7), transparent); opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.strip__n { position: absolute; left: 16px; bottom: 14px; z-index: 2; font-size: 9px; color: var(--cream); opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .6s var(--ease); }
.strip__i:hover img { filter: brightness(1); transform: scale(1.04); }
.strip__i:hover::after, .strip__i:hover .strip__n { opacity: 1; transform: none; }
/* entrada: as faixas sobem e aparecem */
.strips .strip { opacity: 0; transform: translateY(30px); transition: opacity 1.2s ease, transform 1.4s var(--ease); }
.strips .strip + .strip { transition-delay: .15s; }
.strips.is-in .strip { opacity: 1; transform: none; }
.strips__all { margin: 46px var(--gutter) 0; }
.strips.is-static .strip { overflow-x: auto; opacity: 1; transform: none; }
@media (max-width: 820px) {
  .strips { padding: 2vh 0 11vh; }
  .strips__rows, .strip__track { gap: 8px; }
  .strip__i { height: 150px; }
  .strip__n { opacity: 1; transform: none; font-size: 8px; left: 10px; bottom: 9px; }
  .strip__i::after { opacity: 1; }
}
/* setas das faixas */
.strip { position: relative; }
.strip__nav { position: absolute; top: 50%; z-index: 3; width: 48px; height: 48px; margin-top: -24px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(251,238,215,.3); background: rgba(15,12,9,.45); color: rgba(251,238,215,.85); cursor: pointer;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color .35s ease, color .35s ease, transform .35s var(--ease), background .35s ease; }
.strip__nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.1; }
.strip__prev { left: var(--gutter); } .strip__next { right: var(--gutter); }
.strip__nav:hover { border-color: var(--accent); color: var(--accent); background: rgba(15,12,9,.7); }
.strip__prev:hover { transform: translateX(-3px); } .strip__next:hover { transform: translateX(3px); }
@media (max-width: 820px) { .strip__nav { width: 38px; height: 38px; margin-top: -19px; } .strip__nav svg { width: 15px; height: 15px; } .strip__prev { left: 10px; } .strip__next { right: 10px; } }
