/* ============ v2 · idiomas, filmes no scroll, WhatsApp, plano de pagamento ============ */

/* ---------- portão de idioma ---------- */
.gate { position: fixed; inset: 0; z-index: 200; background: var(--obsidian); color: var(--lime); display: grid; place-items: center; clip-path: inset(0 0 0 0); overflow: auto; }
.gate__bg { position: absolute; inset: 0; overflow: hidden; }
.gate__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.gate__bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(90% 80% at 50% 50%, rgba(20, 17, 15, 0.55), rgba(20, 17, 15, 0.95)); }
.gate__inner { position: relative; width: min(760px, calc(100% - 32px)); display: grid; gap: clamp(20px, 3vh, 32px); padding-block: 48px; }
.gate__brand .wordmark { font-size: 1.1rem; }
.gate__q { color: var(--fg-2); line-height: 1.8; }
.gate__list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line-2); }
.gate__list button { width: 100%; display: grid; grid-template-columns: 2.6rem 1fr auto 2rem; align-items: baseline; gap: 12px; padding: clamp(14px, 2.4vh, 22px) 0; border-top: 1px solid var(--line-2); color: var(--lime); text-align: start; transition: color 0.4s var(--ease), padding 0.6s var(--ease); }
.gate__list button[dir='rtl'] { grid-template-columns: 2.6rem 1fr auto 2rem; }
.gate__n { color: var(--fg-3); }
.gate__native { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1; letter-spacing: -0.01em; }
.gate__native:lang(ar) { font-family: 'IBM Plex Sans Arabic', 'Geeza Pro', 'Noto Sans Arabic', sans-serif; font-weight: 300; letter-spacing: 0; }
.gate__native:lang(zh) { font-family: 'Noto Serif SC', 'Songti SC', 'PingFang SC', serif; letter-spacing: 0.04em; }
.gate__hello { color: var(--fg-2); font-size: 0.95rem; }
.gate__arr { color: var(--bronze-hi); opacity: 0; transform: translateX(-10px); transition: all 0.5s var(--ease); }
.gate__list button:hover, .gate__list button:focus-visible, .gate__list button.is-picked { color: var(--bronze-hi); padding-inline-start: 12px; outline: none; }
.gate__list button:hover .gate__arr, .gate__list button:focus-visible .gate__arr, .gate__list button.is-suggested .gate__arr { opacity: 1; transform: none; }
.gate__fine { color: var(--fg-3); }
@media (max-width: 560px) { .gate__list button { grid-template-columns: 2rem 1fr 1.4rem; } .gate__hello { display: none; } }

/* ---------- seletor de idioma ---------- */
.lsw { position: relative; }
.lsw__btn { height: 38px; min-width: 46px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--fg); letter-spacing: 0.08em; transition: border-color 0.3s; }
.lsw__btn:hover { border-color: var(--bronze-hi); }
.lsw__menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 160px; list-style: none; margin: 0; padding: 6px; background: var(--night); border: 1px solid var(--line-2); border-radius: 4px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all 0.35s var(--ease); z-index: 5; }
.lsw.is-open .lsw__menu { opacity: 1; visibility: visible; transform: none; }
.lsw__menu a { display: block; padding: 10px 12px; color: var(--fg-2); border-radius: 2px; }
.lsw__menu a:hover, .lsw__menu a.is-on { color: var(--lime); background: rgba(244, 241, 236, 0.06); }
.lsw__menu a.is-on::after { content: ' ·'; color: var(--bronze-hi); }
.hdr__right { gap: 10px; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float { position: fixed; z-index: 70; inset-inline-end: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); height: 54px; min-width: 54px; padding: 0 16px; display: flex; align-items: center; gap: 10px; border-radius: 999px; background: var(--bronze-hi); color: var(--obsidian); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35); transition: transform 0.5s var(--ease), background 0.3s; }
.wa-float svg { width: 22px; height: 22px; flex: none; }
.wa-float:hover { transform: translateY(-3px); background: var(--lime); }
.wa-float__l { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 0.6s var(--ease); }
.wa-float:hover .wa-float__l { max-width: 160px; }
body.menu-open .wa-float { opacity: 0; pointer-events: none; }
@media (max-width: 640px) { .wa-float { bottom: 62px; height: 50px; min-width: 50px; padding: 0 14px; } }

/* ---------- hero: pôster → vídeo (desktop) ou sequência (celular) ---------- */
.hero__poster, .hero__poster img, .hero__seq, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__seq, .hero__video { opacity: 0; transition: opacity 1.2s var(--ease); }
.has-seq .hero__seq, .has-video .hero__video { opacity: 1; }
.btn--play i { font-style: normal; font-size: 0.7em; display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid currentColor; border-radius: 50%; margin-inline-end: 4px; padding-inline-start: 2px; }

/* ---------- SAGA: quatro filmes no scroll ---------- */
.saga { position: relative; height: 560vh; background: var(--obsidian); }
.saga__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.saga__frame { position: absolute; inset: 0; will-change: clip-path; }
.saga__frame picture, .saga__poster, .saga__frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.saga__frame canvas { opacity: 0; transition: opacity 0.8s var(--ease); }
.saga__frame.is-ready canvas { opacity: 1; }
.saga__shade { position: absolute; inset: 0; z-index: 10; pointer-events: none; background: linear-gradient(90deg, rgba(20, 17, 15, 0.82) 0%, rgba(20, 17, 15, 0.25) 46%, transparent 70%), linear-gradient(0deg, rgba(20, 17, 15, 0.95), rgba(20, 17, 15, 0.6) 12%, transparent 40%), linear-gradient(180deg, rgba(20, 17, 15, 0.55), transparent 22%); }
.saga__src { position: absolute; z-index: 11; top: calc(var(--header-h) + 14px); inset-inline-end: var(--gutter); color: var(--fg-3); }
.saga__index { position: absolute; z-index: 11; inset-inline-end: var(--gutter); bottom: clamp(32px, 7vh, 72px); list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; width: min(260px, 26vw); }
.saga__index li { display: grid; grid-template-columns: 2rem 1fr; gap: 4px 10px; color: var(--fg-3); transition: color 0.5s; }
.saga__index li.is-on { color: var(--lime); }
.saga__index b { font-weight: 400; }
.saga__index i { grid-column: 1 / -1; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.saga__index u { position: absolute; inset: 0; background: var(--bronze-hi); transform-origin: left; transform: scaleX(var(--p, 0)); }
[dir='rtl'] .saga__index u { transform-origin: right; }
.saga__chapters { position: absolute; z-index: 11; inset: 0; display: grid; align-items: end; padding-bottom: clamp(36px, 8vh, 88px); pointer-events: none; }
.saga__ch { grid-area: 1 / 1; max-width: min(720px, 60vw); display: grid; gap: 18px; justify-items: start; opacity: 0; visibility: hidden; transition: opacity 0.7s var(--ease), visibility 0s 0.7s; }
.saga__ch.is-on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.9s var(--ease) 0.1s; }
.saga__ch .eyebrow { display: flex; gap: 14px; align-items: center; color: var(--fg-2); }
.saga__name { font-size: var(--t-mega); line-height: 0.9; }
.saga__name .line-mask > span { display: block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.saga__ch.is-on .saga__name .line-mask > span { transform: none; }
.saga__line { color: var(--champagne); max-width: 30ch; }
.saga__facts { display: flex; gap: clamp(18px, 3vw, 44px); margin: 4px 0 6px; }
.saga__facts dt { color: var(--fg-3); margin-bottom: 4px; }
.saga__facts dd { margin: 0; color: var(--lime); font-size: 1rem; }
@media (max-width: 760px) {
  .saga { height: 480vh; }
  .saga__shade { background: linear-gradient(0deg, rgba(20, 17, 15, 0.95) 0%, rgba(20, 17, 15, 0.55) 38%, transparent 62%), linear-gradient(180deg, rgba(20, 17, 15, 0.6), transparent 20%); }
  .saga__index { top: calc(var(--header-h) + 40px); bottom: auto; inset-inline-end: auto; inset-inline-start: var(--gutter); width: calc(100% - var(--gutter) * 2); grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .saga__index li { grid-template-columns: 1fr; font-size: 0.62rem; }
  .saga__index li span { display: none; }
  .saga__src { display: none; }
  .saga__ch { max-width: none; gap: 12px; }
  .saga__line { font-size: 1.15rem; }
}

/* ---------- faixa do filme ---------- */
.filmband { position: relative; min-height: 92svh; display: grid; align-items: end; cursor: pointer; overflow: hidden; margin-block: clamp(40px, 8vh, 100px); }
.filmband__media { position: absolute; inset: 0; }
.filmband__media img { width: 100%; height: 100%; object-fit: cover; }
.filmband::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 17, 15, 0.9), transparent 55%); pointer-events: none; }
.filmband__txt { position: relative; z-index: 2; display: grid; gap: 22px; justify-items: start; padding-bottom: clamp(36px, 8vh, 80px); }
.filmband__play { position: absolute; z-index: 2; inset-inline-end: var(--gutter); bottom: clamp(36px, 8vh, 80px); width: clamp(96px, 11vw, 150px); aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--lime); display: grid; place-items: center; transition: transform 0.8s var(--ease), background 0.4s, color 0.4s; }
.filmband__play i { font-style: normal; font-size: 1.4rem; padding-inline-start: 5px; }
.filmband:hover .filmband__play { transform: scale(1.08); background: var(--lime); color: var(--obsidian); }
[dir='rtl'] .filmband__play i, [dir='rtl'] .btn--play i { padding-inline-start: 0; padding-inline-end: 5px; direction: ltr; }

/* ---------- player do filme ---------- */
.film { position: fixed; inset: 0; z-index: 150; background: #000; display: grid; place-items: center; }
.film video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.film__x { position: absolute; top: 18px; inset-inline-end: 18px; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--lime); background: rgba(20, 17, 15, 0.5); backdrop-filter: blur(8px); }
.film__cap { position: absolute; top: 26px; inset-inline-start: 22px; color: var(--fg-3); }
@media (max-width: 640px) { .film__cap { display: none; } }

/* ---------- plano de pagamento ---------- */
.plan__head { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; margin-bottom: clamp(32px, 6vh, 64px); }
.plan__big { display: grid; grid-template-columns: auto auto; gap: 4px 18px; align-items: baseline; }
.plan__big b { font-family: var(--f-display); font-weight: 300; font-size: clamp(3rem, 6vw, 6rem); line-height: 0.9; color: var(--bronze-lo); }
.plan__big b small { font-size: 0.4em; }
.plan__big span { color: var(--fg-2); }
.plan__bar { list-style: none; margin: 0; padding: 0; display: flex; gap: 3px; min-height: 150px; }
.plan__bar li { position: relative; min-width: 0; display: grid; align-content: end; gap: 6px; padding: 14px 10px 0; border-top: 2px solid var(--ink); background: linear-gradient(180deg, rgba(180, 146, 90, 0.16), transparent); transition: background 0.4s; }
.plan__bar li:last-child { border-top-color: var(--bronze); background: linear-gradient(180deg, rgba(180, 146, 90, 0.34), transparent); }
.plan__bar li:hover { background: linear-gradient(180deg, rgba(180, 146, 90, 0.42), transparent); }
.plan__bar b { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2.6rem); line-height: 1; }
.plan__bar b small { font-size: 0.5em; color: var(--fg-2); }
.plan__bar span { color: var(--fg-2); font-size: var(--t-micro); line-height: 1.35; overflow-wrap: anywhere; }
.plan__note { color: var(--fg-2); margin-top: 12px; }
.plan__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); margin-top: clamp(36px, 6vh, 64px); }
.plan__calc .in input { font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.6rem); }
.plan__hint { color: var(--fg-3); margin: 8px 0 18px; }
.plan__table { width: 100%; border-collapse: collapse; }
.plan__table th, .plan__table td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: start; font-weight: 400; vertical-align: top; }
.plan__table td { text-align: end; padding-inline-start: 12px; white-space: nowrap; }
.plan__table td small { display: block; color: var(--fg-3); font-size: var(--t-micro); }
.plan__table th { font-size: var(--t-small); color: var(--fg-2); }
.plan__tot th, .plan__tot td { border-bottom: 0; padding-top: 16px; font-family: var(--f-display); font-size: 1.5rem; color: var(--fg); }
.plan__gv { margin-top: 14px; color: var(--bronze-lo); }
.plan__facts { display: grid; gap: 18px; align-content: start; }
.plan__facts > div { display: grid; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.plan__facts > div > span { color: var(--fg-3); }
.plan__mix ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.plan__mix li { display: grid; grid-template-columns: 1fr auto 7.5rem; gap: 10px; align-items: baseline; }
.plan__mix li small { color: var(--fg-3); text-align: end; }
.plan__src { color: var(--fg-3); line-height: 1.6; }
.plan__facts .btn { justify-self: start; }
@media (max-width: 860px) {
  .plan__head, .plan__grid { grid-template-columns: 1fr; }
  .plan__bar { flex-direction: column; min-height: 0; }
  .plan__bar li { flex: none !important; grid-template-columns: 5.5rem 1fr; align-items: baseline; padding: 12px 10px; border-top-width: 1px; }
}

/* ---------- transparência: barra 60/40 ---------- */
.trust__plan { margin-top: clamp(40px, 7vh, 72px); display: grid; gap: 14px; max-width: 980px; }
.trust__plan > .mono { color: var(--fg-3); }
.trust__bar { display: flex; gap: 3px; }
.trust__bar span { display: grid; gap: 4px; padding: 14px 14px 12px; border-top: 2px solid var(--ink); background: linear-gradient(180deg, rgba(180, 146, 90, 0.18), transparent); }
.trust__bar span:last-child { border-top-color: var(--bronze); }
.trust__bar b { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1; }
.trust__bar small { color: var(--fg-2); }

/* ---------- página de projeto: hero com filme no scroll ---------- */
.phero--seq { height: auto; min-height: 0; display: block; overflow: visible; }
.phero__track { position: relative; height: 260vh; }
.phero__stick { position: sticky; top: 0; height: 100svh; min-height: 600px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.phero__seq { position: absolute; inset: 0; }
.phero__seq picture, .phero__seq img, .phero__seq canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phero__seq canvas { opacity: 0; transition: opacity 0.8s var(--ease); }
.phero__seq.is-ready canvas { opacity: 1; }
.phero__src { position: absolute; z-index: 2; inset-inline-end: var(--gutter); top: calc(var(--header-h) + 44px); color: var(--fg-3); }
.phero__hint { position: absolute; z-index: 2; inset-inline-end: var(--gutter); bottom: 50%; color: var(--fg-3); writing-mode: vertical-rl; display: flex; align-items: center; gap: 10px; }
.phero__hint i { width: 1px; height: 52px; background: linear-gradient(var(--bronze-hi), transparent); }
@media (max-width: 760px) { .phero__track { height: 220vh; } .phero__src, .phero__hint { display: none; } }

/* ---------- idiomas: tipografia ---------- */
html[lang='ru'] { --f-sans: 'Hanken Grotesk', 'Manrope', 'Helvetica Neue', Arial, sans-serif; }
html[lang='ar'] {
  --f-display: 'IBM Plex Sans Arabic', 'Geeza Pro', 'Noto Sans Arabic', sans-serif;
  --f-sans: 'IBM Plex Sans Arabic', 'Geeza Pro', 'Noto Sans Arabic', sans-serif;
  --t-mega: clamp(2.8rem, 8.4vw, 9.5rem);
  --t-xl: clamp(2.2rem, 5.2vw, 5.8rem);
  --t-l: clamp(1.8rem, 3.6vw, 3.9rem);
}
html[lang='ar'] body, html[lang='ar'] .display, html[lang='ar'] h1, html[lang='ar'] h2, html[lang='ar'] h3, html[lang='ar'] .h-xl, html[lang='ar'] .h-l, html[lang='ar'] .h-m, html[lang='ar'] .mono, html[lang='ar'] .eyebrow, html[lang='ar'] .tag { letter-spacing: 0 !important; }
html[lang='ar'] .display, html[lang='ar'] .h-xl, html[lang='ar'] .h-l { font-weight: 200; line-height: 1.15; }
html[lang='ar'] em { font-style: normal; }
html[lang='ar'] .mono, html[lang='ar'] .eyebrow, html[lang='ar'] .tag { font-family: 'IBM Plex Sans Arabic', var(--f-mono); text-transform: none; }
html[lang='ar'] .line-mask { padding-bottom: 0.12em; }
html[lang|='zh'] {
  --f-display: 'Cormorant Garamond', 'Noto Serif SC', 'Songti SC', serif;
  --f-sans: 'Hanken Grotesk', 'Noto Sans SC', 'PingFang SC', sans-serif;
  --t-mega: clamp(2.8rem, 8.6vw, 9.8rem);
  --t-xl: clamp(2.2rem, 5.4vw, 6rem);
}
html[lang|='zh'] .display, html[lang|='zh'] .h-xl, html[lang|='zh'] .h-l { font-weight: 300; letter-spacing: 0.02em; line-height: 1.15; }
html[lang|='zh'] em { font-style: normal; }
html[lang|='zh'] .mono, html[lang|='zh'] .eyebrow { font-family: var(--f-mono), 'Noto Sans SC', sans-serif; letter-spacing: 0.06em; }

/* ---------- RTL (árabe) ---------- */
[dir='rtl'] .hero__title .line-mask:nth-child(2) { padding-left: 0; padding-right: 7vw; }
[dir='rtl'] .hero__scroll { right: auto; left: var(--gutter); }
[dir='rtl'] .arr, [dir='rtl'] .dl-list__arr, [dir='rtl'] .gate__arr { display: inline-block; transform: scaleX(-1); }
[dir='rtl'] .saga__shade { background: linear-gradient(270deg, rgba(20, 17, 15, 0.82) 0%, rgba(20, 17, 15, 0.25) 46%, transparent 70%), linear-gradient(0deg, rgba(20, 17, 15, 0.95), rgba(20, 17, 15, 0.6) 12%, transparent 40%), linear-gradient(180deg, rgba(20, 17, 15, 0.55), transparent 22%); }
[dir='rtl'] .portfolio__track, [dir='rtl'] .rail, [dir='rtl'] .rail__track, [dir='rtl'] .sched__days, [dir='rtl'] canvas, [dir='rtl'] .plate__map, [dir='rtl'] .facade, [dir='rtl'] .leaflet-container { direction: ltr; }
[dir='rtl'] .portfolio__track > *, [dir='rtl'] .rail__item { direction: rtl; }
[dir='rtl'] input[type='tel'], [dir='rtl'] input[type='email'], [dir='rtl'] .num { direction: ltr; unicode-bidi: isolate; }
[dir='rtl'] .plan__table td { text-align: left; }
/* pôsteres dos filmes: mesmo enquadramento do canvas (corta as legendas gravadas na base) */
/* quadros das sequências já vêm sem a faixa de legendas: só cobrir */
.saga__poster, .phero__seq img, .hero__poster img, .gate__bg img { object-position: 50% 50%; }
.phero__hint { inset-inline-end: auto; right: var(--gutter); }
[dir='rtl'] .phero__hint { right: auto; left: var(--gutter); }
html[lang='ar'] *, html[lang='ar'] *::before, html[lang='ar'] *::after { letter-spacing: 0 !important; }
@media (max-width: 640px) { .demo-ribbon { max-width: calc(100vw - 96px); left: 16px; transform: none; white-space: normal; line-height: 1.4; } }

/* MAPA — satélite real (Esri) com tom da marca + alternador Satélite / Mapa */
.leaflet-container .tiles-sat { filter: brightness(0.72) saturate(0.78) contrast(1.06); }
.leaflet-container .tiles-labels { opacity: 0.85; }
.leaflet-container .pin span { background: rgba(14, 12, 11, 0.86); padding: 5px 8px; border: 1px solid rgba(212, 179, 124, 0.35); font-size: 0.6rem; letter-spacing: 0.12em; }
.leaflet-container .pin i { box-shadow: 0 0 0 5px rgba(212, 179, 124, 0.28), 0 0 18px rgba(0, 0, 0, 0.6); }
.mapsw { display: flex; background: rgba(14, 12, 11, 0.82); border: 1px solid var(--line); backdrop-filter: blur(8px); margin: 14px !important; }
.mapsw button { padding: 9px 14px; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); transition: color 0.3s, background 0.3s; }
.mapsw button.is-on { color: var(--obsidian); background: var(--lime); }
.mapsw button:not(.is-on):hover { color: var(--lime); }
.pop__links { flex-wrap: wrap; }
[data-lang='ar'] .mapsw button { letter-spacing: 0; }
.leaflet-container .pin--up span { left: 50%; top: auto; bottom: 22px; translate: -50% 0; }
.leaflet-container .pin--down span { left: 50%; top: 22px; translate: -50% 0; }
