/* Case palette: XR pink, campaign blue, ink, graphite and paper white. */
.pm-page {
  --pm-pink: #ff248e;
  --pm-blue: #171cc4;
  --pm-ink: #080808;
  --pm-panel: #141414;
  --pm-white: #f7f7fa;
  --pm-muted: #b3b3bd;
  margin: 0;
  background: var(--pm-ink);
  color: var(--pm-white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}
.pm-page *, .pm-page *::before, .pm-page *::after { box-sizing: border-box; }
.pm-page a { color: inherit; }
.pm-page a:focus-visible { outline: 2px solid var(--pm-pink); outline-offset: 5px; }
.pm-wrap { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.pm-header { border-bottom: 1px solid #ffffff14; }
.pm-header .pm-wrap { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.pm-logo { display: flex; align-items: center; min-height: 44px; }
.pm-logo img { width: 137px; height: auto; }
.pm-nav { display: flex; gap: 28px; align-items: center; }
.pm-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 13px; }
.pm-nav .pm-lang { color: var(--pm-muted); }
.pm-skip { position: absolute; top: -100px; padding: 12px; background: #080808; z-index: 10; }
.pm-skip:focus { top: 10px; }
.pm-hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; padding-block: 80px 60px; }
.pm-eyebrow { color: var(--pm-pink); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 20px; }
.pm-page h1 { font-size: clamp(48px, 5.8vw, 84px); line-height: .98; letter-spacing: -.055em; margin: 0 0 26px; }
.pm-page h1 span { display: block; color: var(--pm-pink); font-size: 1.35em; }
.pm-lead { max-width: 37ch; font-size: clamp(20px, 2vw, 26px); line-height: 1.4; text-wrap: balance; margin: 0 0 30px; }
.pm-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pm-button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 54px; padding: 14px 26px; border-radius: 50px; background: linear-gradient(135deg, #ff248e, #d4006e); font-size: 13px; font-weight: 700; text-decoration: none; transition: transform .2s; }
.pm-button:hover { transform: translateY(-2px); }
button.pm-button { border: 0; color: inherit; font-family: inherit; cursor: pointer; }
button.pm-button:focus-visible { outline: 2px solid #ff80bb; outline-offset: 5px; }
.pm-button--dark { background: linear-gradient(135deg, #303030, #080808); box-shadow: inset 0 0 0 1px #ffffff28; }
.pm-art { position: relative; margin: 0; padding: 14px; }
.pm-art::before, .pm-art::after { content: ''; position: absolute; width: 68px; height: 68px; border: solid #6368ff; pointer-events: none; }
.pm-art::before { top: 0; left: 0; border-width: 3px 0 0 3px; border-radius: 20px 0 0; }
.pm-art::after { bottom: 0; right: 0; border-width: 0 3px 3px 0; border-radius: 0 0 20px; }
.pm-art img { display: block; width: 100%; height: auto; border-radius: 12px; }
.pm-meta { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 24px; padding-block: 28px; margin: 0; border-block: 1px solid #ffffff1a; }
.pm-meta dt { color: var(--pm-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.pm-meta dd { margin: 8px 0 0; font-size: 16px; font-weight: 700; }
.pm-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 390px); gap: 100px; align-items: start; padding-block: 90px; }
.pm-page h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; letter-spacing: -.035em; margin: 0 0 24px; text-wrap: balance; }
.pm-copy p { color: var(--pm-muted); max-width: 56ch; }
.pm-copy strong { color: var(--pm-white); }
.pm-steps { list-style: none; padding: 0; margin: 36px 0; counter-reset: step; }
.pm-steps li { counter-increment: step; position: relative; border-top: 1px solid #ffffff1a; padding: 20px 0 20px 52px; }
.pm-steps li::before { content: '0' counter(step); position: absolute; left: 0; top: 22px; font: 12px/1.6 'Courier New', monospace; color: var(--pm-pink); }
.pm-steps h3 { font-size: 19px; margin: 0 0 5px; }
.pm-steps p { margin: 0; font-size: 15px; }
.pm-credit { padding: 24px; border-radius: 16px; background: var(--pm-panel); border: 1px solid #ffffff14; }
.pm-credit h3 { margin: 0 0 10px; font-size: 20px; }
.pm-credit p { margin: 0; }
.pm-source { font-size: 12px; margin-top: 24px; }
.pm-source a { text-underline-offset: 4px; }
.pm-film { margin: 0; scroll-margin-top: 24px; }
.pm-film video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: var(--pm-blue); border: 1px solid #ffffff26; border-radius: 20px; }
.pm-film figcaption { margin-top: 14px; color: var(--pm-muted); font-size: 12px; }
.pm-bottom { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 36px; background: var(--pm-panel); border: 1px solid #ffffff14; border-radius: 20px; margin-bottom: 70px; }
.pm-bottom h2 { margin: 0; font-size: clamp(24px, 2.5vw, 34px); max-width: 24ch; }
.pm-footer { border-top: 1px solid #ffffff14; padding-block: 26px; color: var(--pm-muted); font-size: 12px; }
.pm-footer .pm-wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
/* Keep the supplied campaign artwork complete in portfolio cards. */
.xr-featured-case--scan { margin-bottom: 24px; }
.xr-featured-case--leap { margin-bottom: 24px; }
.xr-featured-case--leap .xr-featured-case-img { background: #000; }
.xr-featured-case--leap .xr-featured-case-img img { object-fit: contain; object-position: center; transform: none !important; }
@media (max-width: 767px) {
  .xr-featured-case--leap .xr-featured-case-img { flex-basis: auto; width: 100%; max-width: 100%; height: 360px; min-height: 360px; }
}
.xr-featured-case--scan .xr-featured-case-img { background: #171cc4; }
.xr-featured-case--scan .xr-featured-case-img img { object-fit: contain; object-position: center; transform: none !important; }
.xr-featured-case--scan:hover .xr-featured-case-img img { transform: none !important; }
.xr-case-video-trigger {
  display: block;
  position: relative;
  padding: 0;
  border: 0;
  overflow: hidden;
  cursor: pointer;
  background: #171cc4;
  color: #fff !important;
  font: inherit;
  text-align: center;
}
.xr-case-video-trigger::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, #000b 100%);
}
.xr-case-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff248e, #d4006e);
  box-shadow: 0 0 0 10px #ffffff26, 0 10px 30px #0005;
  transition: box-shadow 250ms ease;
}
.xr-case-video-play svg { width: 27px; height: 27px; margin-left: 5px; fill: currentColor; }
.xr-case-video-trigger:hover .xr-case-video-play { box-shadow: 0 0 0 15px #ffffff33, 0 10px 30px #0005; }
.xr-case-video-label { position: absolute; bottom: 24px; left: 16px; right: 16px; z-index: 1; font-size: 13px; font-weight: 700; color: #fff; }
.xr-case-video-trigger:focus-visible { outline: 3px solid #ff80bb; outline-offset: -5px; }
.xr-featured-case a.xr-featured-cta { text-decoration: none; color: #fff; }
.xr-featured-case--boticario .xr-case-video-trigger { background: #141414; }
.xr-project-film { background: #0d0d0d; }
.xr-project-film-preview { width: min(100%, 400px); margin: 0 auto; }
.xr-project-film-preview .xr-case-video-trigger { width: 100%; background: #141414; border-radius: 20px; border: 1px solid #ffffff26; }
.xr-project-film-preview .xr-case-video-trigger > img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
.xr-project-film-preview figcaption { margin-top: 16px; color: #b3aeb7; font-size: 12px; text-align: center; }
.pm-film .xr-case-video-trigger { width: 100%; border-radius: 20px; border: 1px solid #ffffff26; }
.pm-film .xr-case-video-trigger > img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
.pg-item--scan > img, .xr-case-card--scan > img, .en-portfolio-item--scan > img { object-fit: contain; object-position: center top; background: #171cc4; }
@media (max-width: 900px) {
  .pm-hero { gap: 32px; }
  .pm-story { gap: 40px; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); }
  .pm-meta { grid-template-columns: 1fr 1fr; }
  .pm-meta > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .pm-wrap { width: calc(100% - 40px); }
  .pm-header .pm-wrap { min-height: 76px; }
  .pm-logo img { width: 112px; }
  .pm-nav { gap: 16px; }
  .pm-nav a { font-size: 12px; }
  .pm-hero { grid-template-columns: minmax(0, 1fr); padding-block: 48px 36px; }
  .pm-page h1 { font-size: clamp(48px, 11vw, 72px); }
  .pm-story { grid-template-columns: minmax(0, 1fr); padding-block: 56px; gap: 40px; }
  .pm-film { width: min(100%, 360px); margin-inline: auto; }
  .pm-bottom { flex-direction: column; align-items: flex-start; padding: 24px; margin-bottom: 44px; }
  .pm-actions .pm-button { width: 100%; }
  .xr-featured-case--scan .xr-featured-case-img { min-height: 0; aspect-ratio: 616 / 410; flex-basis: auto; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .pm-page *, .pm-page *::before, .pm-page *::after { transition: none !important; scroll-behavior: auto !important; } }

/* ============================================================
   Cabeçalho XR Studio — o mesmo em todas as páginas principais.
   Fonte única: as páginas que ainda trazem estas regras inline
   (index, martech, projetos) devem migrar para cá.
   Markup esperado: <header class="en-header"> + .en-mobile-nav,
   comportamento em assets/js/xr-header.js.
   ============================================================ */

.en-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 9990;
	/* Sem esta linha o menu herdava a fonte de cada pagina — Rubik na home,
	   Inter em live-mkt e projetos-especiais, Arimo em projetos, Arial em
	   sites-imersivos — e o mesmo 13px rendia larguras diferentes. A fonte
	   vem do <link> do Google Fonts que acompanha esta folha em cada pagina. */
	font-family: 'Rubik', Arial, Helvetica, sans-serif;
	display: flex; align-items: center; justify-content: space-between;
	padding: 18px 48px;
	background: rgba(8,8,8,0.92);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(255,255,255,0.06);
}
.en-header img { height: 38px; }
.en-header-right { display: flex; align-items: center; gap: 16px; }
.en-nav { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.en-nav a { color: rgba(255,255,255,0.6); font-size: 13px; font-weight: 600; text-decoration: none; letter-spacing: 0.06em; text-transform: uppercase; transition: color 200ms; }
.en-nav a:hover { color: #FF248E; }
.en-cta-wa {
	display: inline-flex; align-items: center; gap: 8px;
	background: linear-gradient(135deg,#FF248E,#d4006e);
	color: #fff !important; font-size: 13px; font-weight: 700;
	padding: 12px 24px; border-radius: 50px; letter-spacing: 0.06em;
	text-transform: uppercase; text-decoration: none;
	transition: 300ms all ease; box-shadow: 0 4px 20px rgba(255,36,142,0.35);
}
.en-cta-wa:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,36,142,0.5); }
.en-lang-btn {
	display: inline-flex; align-items: center; gap: 5px;
	border: 1px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.55) !important;
	font-size: 12px; font-weight: 700; padding: 8px 14px; border-radius: 50px;
	text-decoration: none; letter-spacing: 0.1em; text-transform: uppercase;
	transition: 300ms all ease;
}
.en-lang-btn:hover { border-color: #FF248E; color: #FF248E !important; }
.en-lang-active { color: #FF248E; }

/* Mobile menu (hamburger + drawer) */
.en-hamburger {
	display: none;
	flex-direction: column; justify-content: center; align-items: center; gap: 5px;
	width: 40px; height: 40px; background: transparent; border: none; padding: 0;
	cursor: pointer; flex-shrink: 0;
}
.en-hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: 300ms all ease; }
.en-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.en-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.en-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.en-mobile-nav-backdrop {
	position: fixed; inset: 0; background: rgba(0,0,0,0.55);
	z-index: 9988; opacity: 0; pointer-events: none; transition: opacity 300ms ease;
}
.en-mobile-nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

.en-mobile-nav {
	font-family: 'Rubik', Arial, Helvetica, sans-serif;
	position: fixed; top: 0; right: 0; height: 100%; width: min(82vw, 320px);
	background: rgba(8,8,8,0.98); backdrop-filter: blur(14px);
	border-left: 1px solid rgba(255,255,255,0.08);
	z-index: 9989; padding: 100px 32px 32px;
	transform: translateX(100%); transition: transform 350ms ease;
	display: flex; flex-direction: column; gap: 28px; overflow-y: auto;
}
.en-mobile-nav.is-open { transform: translateX(0); }
.en-mobile-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.en-mobile-nav ul a {
	display: block; padding: 16px 0; color: #fff; font-size: 17px; font-weight: 600;
	text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.08);
	text-transform: uppercase; letter-spacing: 0.04em;
}
.en-mobile-nav ul a:hover, .en-mobile-nav ul a:active { color: #FF248E; }
.en-mobile-nav-cta {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: linear-gradient(135deg,#FF248E,#d4006e); color: #fff !important;
	font-size: 14px; font-weight: 700; padding: 15px 24px; border-radius: 50px;
	text-decoration: none; letter-spacing: 0.06em; text-transform: uppercase;
}
body.en-nav-open { overflow: hidden; }

/* Tablet + mobile: o nav completo (5 itens + CTA + idioma) não cabe — vira hambúrguer */
@media (max-width: 1024px) {
	.en-nav { display: none; }
	.en-hamburger { display: flex; }
	.en-header { padding: 16px 28px; }
}
@media (max-width: 768px) {
	.en-header { padding: 14px 20px; }
	.en-cta-wa span { display: none; }
}

/* Item da página atual — o único acréscimo ao bloco da home. */
.en-nav a.is-current { color: #FF248E; }
.en-mobile-nav ul a.is-current { color: #FF248E; }

/* O cabeçalho é fixo: páginas cujo topo encostava num header estático
   ganham este respiro via .xr-header-offset no primeiro bloco. */
.xr-header-offset { padding-top: 76px; }
@media (max-width: 1024px) { .xr-header-offset { padding-top: 70px; } }
@media (max-width: 768px)  { .xr-header-offset { padding-top: 64px; } }

/* Seis itens não cabem entre 1024 e 1200px: nesta faixa o nav vira
   hambúrguer. A regra vivia em xr-special-brand.css, que nem toda
   página carrega — como o cabeçalho é o mesmo em todas, ela vem junto. */
@media (max-width: 1200px) {
	.xr-has-sites-nav .en-nav { display: none; }
	.xr-has-sites-nav .en-hamburger { display: flex; }
}

/* O ícone do WhatsApp no drawer é SVG inline: sem esta regra ele cai no
   tamanho intrínseco (300x150) nas páginas que não definem .xr-svg-icon. */
.en-mobile-nav-cta svg { display: inline-block; width: 1em; height: 1em; fill: currentColor; vertical-align: -0.125em; }

/* No mobile quem aparece e o menu compartilhado do xr-responsive.js, montado
   no <body>. Ele ja era uniforme entre as paginas, mas em Arial: o atalho
   `font:` de .xr-mobile-dialog[open] (xr-responsive.css) fixa a familia junto
   com o tamanho. Repetimos aquela especificidade para alinhar o menu mobile
   ao cabecalho, sem mexer em xr-responsive.css — que as paginas de case usam
   sem carregar a Rubik. */
.xr-mobile-dialog[open], .xr-mobile-toggle { font-family: 'Rubik', Arial, Helvetica, sans-serif; }
