/* Borracharia Móvel MM: curta controlado pelo dedo.
   Sem a classe .film (JS falhou ou movimento reduzido) a página vira leitura corrida, com tudo visível. */
@font-face { font-family: "Archivo MM"; src: url(fonts/archivo-exp-900i.woff2) format("woff2"); font-weight: 900; font-style: italic; font-stretch: 125%; font-display: swap; }
@font-face { font-family: "Archivo Texto"; src: url(fonts/archivo-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --red: #fa0202;          /* amostrado da logo */
  --red-deep: #a80000;
  --ink: #050505;
  --paper: #f6f4f1;
  --dim: #b9b4ae;          /* texto secundário, contraste 9:1 sobre o preto */
  --wa: #25d366;
  --disp: "Archivo MM", "Arial Black", system-ui, sans-serif;
  --text: "Archivo Texto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --out: cubic-bezier(.23, 1, .32, 1);
  --sh: 100svh;            /* altura segura: o que nunca fica sob a barra do navegador */
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); color: var(--paper); -webkit-text-size-adjust: 100%; scroll-padding-bottom: 6rem; }
body { margin: 0; font-family: var(--text); font-weight: 500; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-wrap: break-word; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3, .ph, .slogan, .n2, .c1, .c3, .b4, blockquote, .seal-t, .h24, .psi { font-family: var(--disp); font-weight: 900; font-style: italic; font-stretch: 125%; text-transform: uppercase; line-height: .94; letter-spacing: -.02em; text-wrap: balance; }
img { display: block; max-inline-size: 100%; block-size: auto; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 4px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 50; padding: 12px 16px; background: #fff; color: #000; border-radius: 6px; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* ---------- peças comuns aos dois modos ---------- */
.furou { color: var(--paper); }
.ph, .n2, .c3, blockquote em, #f2 { color: var(--red); }
blockquote em { font-style: inherit; }

.wa { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; padding: 14px 22px; border-radius: 14px; background: var(--wa); color: #04130a; text-decoration: none; font-family: var(--disp); font-weight: 900; font-style: italic; font-stretch: 125%; text-transform: uppercase; font-size: clamp(13px, 3.75cqw, 17px); white-space: nowrap; letter-spacing: -.01em; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transition: transform 140ms var(--out); position: relative; overflow: hidden; }
.wa svg { width: 28px; height: 28px; fill: currentColor; flex: none; }
.wa:active, .ln:active, .fab:active { transform: scale(.97); }
.f-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.ln { flex: 1 1 150px; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 12px; text-decoration: none; font-size: 14px; background: rgba(10, 10, 10, .6); transition: transform 140ms var(--out), border-color 160ms; white-space: nowrap; }
.ln svg { width: 20px; height: 20px; fill: var(--red); flex: none; }
.ln svg.st { fill: none; stroke: var(--red); stroke-width: 2; }
.ln svg.st circle:last-child { fill: var(--red); }
@media (hover: hover) and (pointer: fine) { .ln:hover { border-color: #fff; } .wa:hover { transform: translateY(-2px); } }
.foot { font-size: 12px; color: var(--dim); text-align: center; }
.foot a { text-underline-offset: 3px; }
.stars { display: inline-flex; gap: 3px; vertical-align: middle; }
.stars svg { width: 20px; height: 20px; fill: var(--red); }
.rate { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--paper); }

.fab { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 10px)); z-index: 30; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #04130a; box-shadow: 0 8px 24px -4px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .25); transition: transform 220ms var(--out), opacity 180ms ease-out, visibility 0s; }
.fab svg { width: 32px; height: 32px; fill: currentColor; }
.film .fab { opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9); transition: transform 220ms var(--out), opacity 180ms ease-out, visibility 0s 220ms; }
.film .fab.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.film .fab.on:active { transform: scale(.94); }

/* =====================================================================
   MODO LEITURA (sem .film): seções em fluxo, nada escondido
   ===================================================================== */
html:not(.film) body { background: var(--ink) url(img/asphalt.webp); }
html:not(.film) .stage { max-width: 480px; margin: 0 auto; padding: 0 22px; container-type: inline-size; }
html:not(.film) :is(.asphalt, .pool, .road, .gl, .seq, .chap, .poster, .studio, .fog, .glare, .wipe, .flash, .hint, .halo, .f-logo, .bg, .shade, .psi, .h24) { display: none; }
html:not(.film) .scene { padding: 56px 0; border-top: 1px solid rgba(255, 255, 255, .1); display: grid; gap: 18px; }
html:not(.film) .s0 { border: 0; padding-top: 72px; }
html:not(.film) .furou { font-size: 19cqw; }
html:not(.film) :is(.ph, .n1, .c2, .bt, .rua-t) { font-size: 9cqw; }
html:not(.film) :is(.n2, .c1, .c3, .slogan, .b4, .seal-t) { font-size: 7cqw; }
html:not(.film) .b4 span, html:not(.film) .seal-t span { display: block; }
html:not(.film) .still { width: 70%; margin: 0 auto; border-radius: 50%; }
html:not(.film) .logo { width: 100%; background: radial-gradient(closest-side, #000 60%, transparent); }
html:not(.film) .van img { border-radius: 10px; }
html:not(.film) .beat { display: block; }
html:not(.film) .shots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
html:not(.film) .shot img { border-radius: 6px; width: 100%; }
html:not(.film) blockquote { font-size: 7.4cqw; line-height: 1.02; }
html:not(.film) .dep { display: grid; gap: 16px; }
html:not(.film) .f-h { font-size: 12cqw; }
html:not(.film) .f-h span { display: block; }
html:not(.film) :is(.ph, .slogan, #f2) b { font-weight: 900; }
html:not(.film) .s8 { padding-bottom: 120px; }

/* =====================================================================
   MODO FILME
   ===================================================================== */
.film .film-track { height: 1452lvh; position: relative; }         /* (21,8 unidades x 0,62 + 1 tela) */
.film .stage { position: sticky; top: 0; height: 100lvh; overflow: clip; background: #000; }
.film .frame { position: relative; width: 100%; height: 100%; overflow: clip; container-type: size; background: var(--ink); }
.film .cam { position: absolute; inset: 0; will-change: transform; }
.film .cam > * { position: absolute; }
.film .wait { display: none; }

.film .asphalt { inset: -512px 0 0 0; background: url(img/asphalt.webp) repeat; background-size: 384px 384px; will-change: transform; }
.film .pool { inset: 0; background:
    radial-gradient(120cqw 70cqh at 50% 38%, rgba(255, 244, 230, .13), transparent 62%),
    radial-gradient(140cqw 60cqh at 50% 108%, rgba(250, 2, 2, .16), transparent 60%),
    radial-gradient(90cqw 80cqh at 50% 50%, transparent 40%, rgba(0, 0, 0, .82) 100%); }

.film .scene { inset: 0 0 auto 0; height: var(--sh); visibility: hidden; pointer-events: none; z-index: 3; }
.film .wipe { z-index: 4; }
.film .flash { z-index: 9; }
.film .road { z-index: 1; }
.film .fog { z-index: 2; }
.film .scene.on { visibility: visible; }
.film .scene > *, .film .beat > * { position: absolute; }
.film .scene :is(h1, h2, h3, p) { will-change: transform, opacity; }

/* 0 */
.film .furou { left: 0; right: 0; top: 30%; text-align: center; font-size: 16.4cqw; white-space: nowrap; text-shadow: 0 6px 40px rgba(0, 0, 0, .9); }
.film .furou-in { display: inline-block; animation: furou 900ms 120ms var(--out) both; }
@keyframes furou { from { opacity: 0; transform: translateY(8cqw) scale(1.12); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
.film .hint { text-shadow: 0 1px 12px #000, 0 0 3px #000; left: 0; right: 0; bottom: 4%; text-align: center; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); display: grid; justify-items: center; gap: 4px; }
.film .hint svg { width: 22px; height: 22px; fill: none; stroke: var(--red); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.5s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(3px); opacity: .5; } 50% { transform: translateY(-5px); opacity: 1; } }

/* 1 */
.film :is(.ph, .slogan, #f2) b { display: block; font-weight: 900; }
.film .ph { left: 0; right: 0; top: 9%; text-align: center; font-size: 10.6cqw; white-space: nowrap; opacity: 0; text-shadow: 0 4px 30px #000; }

/* webgl e sequências */
.film .gl, .film .seq { inset: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; z-index: 2; }
.film .chap { right: 5cqw; top: calc(env(safe-area-inset-top, 0px) + 4.4cqw); z-index: 8; margin: 0; font-family: var(--disp); font-weight: 900; font-style: italic; font-stretch: 125%; font-size: 13px; letter-spacing: .04em; color: var(--paper); mix-blend-mode: difference; }
.film .chap b { font-weight: 900; }
.film .chap i { color: var(--dim); font-size: 10px; margin-left: 2px; }
.film .still { display: none; }


.film .fog { inset: 0; opacity: 0; background: linear-gradient(to top, #8c120c 0%, #6a3a34 24%, #5d5957 56%, #6f6b69 100%); will-change: opacity; }

/* 2 */
.film .lockup { inset: 0; }
.film .lockup > * { position: absolute; }
.film .halo { left: 50%; top: 40%; width: 170cqw; height: 120cqw; margin: -60cqw 0 0 -85cqw; background: radial-gradient(closest-side, rgba(0, 0, 0, .94) 34%, rgba(40, 0, 0, .7) 58%, rgba(250, 2, 2, .22) 74%, transparent 100%); opacity: 0; transform: scale(.6); transition: opacity 160ms ease-out, transform 160ms ease-out; }
.film .logo { left: 5cqw; width: 90cqw; top: calc(40% - 23.4cqw); height: auto; opacity: 0; transform: scale(2.3); filter: blur(14px) brightness(3); transition: opacity 120ms ease-out, transform 140ms ease-out, filter 140ms ease-out; will-change: transform, opacity, filter; }
.film .slogan { left: 0; right: 0; top: calc(40% + 30cqw); text-align: center; font-size: 7.6cqw; white-space: nowrap; opacity: 0; text-shadow: 0 3px 24px #000; transform: translateY(5cqw) skewX(-8deg); transition: opacity 140ms ease-out, transform 140ms ease-out; }
.film .s2.hit .halo { opacity: 1; transform: none; transition: opacity 380ms ease-out, transform 700ms var(--out); }
.film .s2.hit .logo { opacity: 1; transform: none; filter: blur(0) brightness(1); transition: opacity 140ms ease-out, transform 520ms var(--out), filter 520ms var(--out); }
.film .s2.hit .slogan { opacity: 1; transform: none; transition: opacity 320ms 300ms ease-out, transform 520ms 300ms var(--out); }
.film .flash { inset: 0; background: #fff; opacity: 0; pointer-events: none; }

/* 3 */
.film .road { inset: 0; opacity: 0; will-change: transform, opacity; }
.film .road > * { position: absolute; inset: 0; }
.film .road img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; will-change: transform; transform-origin: 50% 37%; }
.film .r-sky { -webkit-mask-image: linear-gradient(to bottom, #000 34%, transparent 41%); mask-image: linear-gradient(to bottom, #000 34%, transparent 41%); }
.film .r-ground { -webkit-mask-image: linear-gradient(to bottom, transparent 33%, #000 39%); mask-image: linear-gradient(to bottom, transparent 33%, #000 39%); }
.film .mist { inset: 26% -60% 44% -60% !important; background: url(img/smoke.webp) 0 0 / 80% auto repeat-x; opacity: .16; mix-blend-mode: screen; will-change: transform; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 45%, transparent); }
.film .road::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .5), transparent 30%, transparent 70%, rgba(0, 0, 0, .7)); }
.film .n1 { left: 6cqw; right: 6cqw; top: 9%; font-size: 10.6cqw; opacity: 0; text-shadow: 0 4px 30px #000; }
.film .n2 { left: 6cqw; right: 6cqw; top: calc(9% + 45cqw); font-size: 10.6cqw; opacity: 0; text-shadow: 0 4px 30px #000; }
.film .seal { left: 0; right: 0; top: 0; height: 100%; opacity: 0; transform-origin: 50% 38%; will-change: transform, opacity; }
.film .seal > * { position: absolute; }
.film .h24 { left: 0; right: 0; top: 24%; display: flex; justify-content: center; align-items: flex-start; font-size: 35cqw; line-height: 1; color: var(--paper); text-shadow: 0 8px 50px rgba(0, 0, 0, .8); }
.film .h24 em { color: var(--red); }
.film .od { display: block; height: 1em; clip-path: inset(0 -.3em); }
.film .od b { display: block; font-weight: 900; will-change: transform; }
.film .od i { display: block; height: 1em; text-align: center; }
.film .seal-t { left: 0; right: 0; top: calc(24% + 38cqw); text-align: center; font-size: 11cqw; }
.film .seal-t b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.film .seal-t span { display: block; font-weight: 900; }
.film .seal-t span { color: var(--red); margin-top: 1.5cqw; }

/* 4 */
.film .s4 { height: 100%; }
.film .van { inset: 0; opacity: 0; background: #010101; will-change: transform, opacity; }
.film .van img { position: absolute; left: 0; top: 34%; width: 100%; height: auto; mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 80%, transparent); }

.film .s4 .seq, .film .s5 .seq { z-index: 0; }
.film #seqBurn, .film #seqOpen { z-index: 1; transform-origin: 44% 71.4%; will-change: transform, opacity; }
.film #seqBurn.fin { filter: brightness(.5) contrast(1.08); }
.gl-on .s2 :is(.logo, .halo) { display: none; }
/* estúdio do pneu 3D: fundo ardósia que morre na cor da névoa do chão */
.film .glare { inset: 0; opacity: 0; background: radial-gradient(circle at 50% 50%, #fff 0%, #fffdf6 55%, #fff1d0 100%); will-change: opacity; }
.film .c1, .film .c2, .film .c3 { left: 6cqw; right: 6cqw; opacity: 0; text-shadow: 0 4px 30px #000; }
.film .c1 { top: 9%; font-size: 8.4cqw; color: var(--paper); }
.film .c2 { top: 8%; font-size: 9cqw; }
.film .c3 { top: calc(8% + 31cqw); font-size: 7.6cqw; }
/* cortina: faixa de banda de rodagem (o macro do conserto) que atravessa em diagonal e revela os serviços */
.film .wipe { top: -10%; bottom: -10%; left: 0; width: 30cqw; background: #050505 url(img/tread.webp) 0 0 / 100% auto repeat-y; border-inline: 1.4cqw solid var(--red); box-shadow: 0 0 60px 20px rgba(0, 0, 0, .7); visibility: hidden; will-change: transform; }

/* 5 */
.film .s5 { height: 100%; background: var(--ink); will-change: clip-path; }
.film .s5 .bg { inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: brightness(.5) saturate(.92); will-change: transform, opacity; }
.film .s5 .shade { inset: 0; background: linear-gradient(to bottom, rgba(5, 5, 5, .92) 0%, rgba(5, 5, 5, .62) 26%, rgba(5, 5, 5, .1) 55%, rgba(5, 5, 5, .6) 100%); }
.film .psi { left: 0; right: 0; top: 63%; text-align: center; opacity: 0; color: var(--paper); text-shadow: 0 8px 50px rgba(0, 0, 0, .9); }
.film .psi b { display: block; font-size: 30cqw; line-height: .86; font-weight: 900; font-variant-numeric: tabular-nums; }
.film .psi span { display: block; font-size: 9cqw; color: var(--red); }
.film .beat { inset: 0 0 auto 0; height: var(--sh); opacity: 0; will-change: transform, opacity; }
.film .bt { left: 6cqw; right: 6cqw; top: 11%; font-size: 9.6cqw; }
.film .b4 { left: 6cqw; right: 6cqw; top: 26%; font-size: 10.4cqw; line-height: 1.04; white-space: nowrap; }
.film .b4 span { position: static; display: block; will-change: transform, opacity; }
.film .b4 span:nth-child(2) { color: var(--paper); }
.film .b4 span:nth-child(3) { font-size: 8.1cqw; }

/* 6 */
.film .s6 { height: 100%; }
.film .rua-t { left: 6cqw; right: 6cqw; top: calc(var(--sh) * .07); font-size: 10.2cqw; z-index: 22; opacity: 0; }
.film .rua-scrim { inset: 0 0 auto 0; height: calc(var(--sh) * .07 + 62cqw); z-index: 21; background: linear-gradient(to bottom, #050505 0%, rgba(5, 5, 5, .96) 52%, rgba(5, 5, 5, .6) 78%, transparent 100%); opacity: 0; }
.film .shots { inset: 0; }
.film .shot { position: absolute; left: 0; top: 0; overflow: hidden; border-radius: 3px; box-shadow: 0 30px 60px -10px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .14); will-change: transform; background: #111; }
.film .shot img { width: 100%; height: 100%; object-fit: cover; }

/* 7 */
.film .dep { left: 6cqw; right: 6cqw; top: 0; height: 100%; opacity: 0; display: flex; flex-direction: column; justify-content: center; gap: 5cqw; padding-bottom: 12cqw; }
.film .dep > * { position: static; }
.film blockquote { font-size: 7.5cqw; line-height: 1.04; text-wrap: pretty; }
.film blockquote::before { content: "“"; display: block; color: var(--red); font-size: 26cqw; line-height: .7; height: 13cqw; margin-left: -1cqw; }
.film blockquote em { display: block; font-size: 13.4cqw; margin-top: 3cqw; }
.film .w { opacity: .14; }
.film figcaption { font-size: 15px; color: var(--dim); opacity: 0; }
.film figcaption b { color: var(--paper); font-weight: 500; }
.film .rate { opacity: 0; }

/* 8 */
.film .s8 { display: flex; flex-direction: column; padding: calc(var(--sh) * .045) 6cqw calc(14px + env(safe-area-inset-bottom, 0px)); }
.film .s8 > * { position: static; }
.film .s8.on { pointer-events: auto; }
.film .s8::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(5, 5, 5, .78) 0%, rgba(5, 5, 5, .3) 42%, rgba(60, 4, 2, .5) 70%, rgba(5, 5, 5, .9) 100%); }
.film .f-logo { width: 72cqw; height: auto; align-self: center; opacity: 0; }
.film .f-h { text-align: center; margin-top: auto; }
.film .f-act { margin-top: auto; }
.film .f-h span { display: block; opacity: 0; will-change: transform, opacity; white-space: nowrap; }
.film #f1 { font-size: 10.8cqw; }
.film #f2 { font-size: 17.8cqw; margin-top: 2cqw; line-height: .9; }
.film .f-act { opacity: 0; will-change: transform, opacity; }
.film .foot { margin-top: 16px; opacity: 0; }

/* desktop: o palco vira um aparelho no centro */
@media (min-width: 620px) {
  .film .stage { display: grid; place-items: center; background: #020202 url(img/asphalt.webp); height: 100vh; }
  .film .film-track { height: 1452vh; }
  .film .frame { --sh: min(100vh - 32px, 900px); width: min(430px, 100vw); height: var(--sh); border-radius: 34px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 0 0 10px #0b0b0b, 0 0 0 11px rgba(255, 255, 255, .1), 0 40px 120px rgba(0, 0, 0, .9), 0 0 160px rgba(250, 2, 2, .14); }
  .film .fab { right: calc(50% - 215px + 16px); bottom: calc((100vh - min(100vh - 32px, 900px)) / 2 + 18px); }
}

