/* =========================================================
   Agência 1123 · 2026
   ========================================================= */

/* Fontes servidas pelo próprio site (variáveis: um arquivo cobre os pesos 400–700).
   Origem: Google Fonts, licença SIL Open Font License. latin-ext só baixa se a página usar esses caracteres */
@font-face {
    font-family: 'Unbounded';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(../fonts/unbounded-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Unbounded';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(../fonts/unbounded-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(../fonts/manrope-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(../fonts/manrope-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --bg: #070708;
    --bg-2: #0d0d10;
    --surface: #121216;
    --surface-2: #18181d;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .16);
    --text: #f5f3f7;
    --muted: #a19eaa;
    --pink: #ff00bf;
    --pink-soft: #fa5ca6;
    --pink-mid: #fc30c9;
    --pink-deep: #c4008f;
    --gradient: linear-gradient(100deg, #ff00bf 0%, #fc30c9 50%, #fa5ca6 100%);

    --font-display: 'Unbounded', system-ui, sans-serif;
    --font-body: 'Manrope', system-ui, sans-serif;

    --container: 1320px;
    --gutter: clamp(16px, 4vw, 40px);
    --radius: 24px;
    --radius-sm: 14px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --header-h: 84px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 0; /* o header se esconde ao descer; as seções já têm respiro interno */
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
/* <picture> com WebP (php/inc/picture.php) sem mudar o layout: o <img> segue como filho direto
   e o <source> não vira item invisível em flex/grid (empurrava o logo do rodapé para o meio) */
picture { display: contents; }
picture > source { display: none; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }

::selection { background: var(--pink); color: #fff; }

:focus-visible {
    outline: 2px solid var(--pink);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Grain overlay ---------- */
.grain {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: .06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Type helpers ---------- */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: normal;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 0 4px rgba(255, 0, 191, .18), 0 0 18px var(--pink);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    50% { box-shadow: 0 0 0 7px rgba(255, 0, 191, 0), 0 0 10px var(--pink); }
}

.display {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.3rem, 6vw, 5.2rem);
    line-height: 1.02;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 4px;
    transition: border-color .3s, color .3s;
}
.link-arrow span { transition: transform .4s var(--ease); }
.link-arrow:hover { color: var(--pink); border-color: var(--pink); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn {
    --h: 58px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: var(--h);
    padding: 0 28px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .01em;
    white-space: nowrap;
    overflow: hidden;
    isolation: isolate;
    transition: transform .4s var(--ease), background .3s, border-color .3s, color .3s, box-shadow .4s;
}
.btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .4s var(--ease);
}
.btn:hover svg { transform: rotate(45deg); }

.btn--primary {
    background: var(--pink);
    color: #fff;
    box-shadow: 0 10px 40px -10px rgba(255, 0, 191, .7);
}
.btn--primary::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--gradient);
    opacity: 0;
    transition: opacity .4s;
}
.btn--primary:hover { box-shadow: 0 14px 50px -8px rgba(255, 0, 191, .9); }
.btn--primary:hover::before { opacity: 1; }

.btn--ghost {
    border-color: var(--line-strong);
    color: var(--text);
    background: rgba(255, 255, 255, .02);
    backdrop-filter: blur(10px);
}
.btn--ghost:hover { border-color: var(--text); background: var(--text); color: var(--bg); }

.btn--sm { --h: 44px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Custom cursor ---------- */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: var(--pink);
    pointer-events: none;
    display: grid;
    place-items: center;
    opacity: 0;
    mix-blend-mode: normal;
    transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s, background .3s;
    will-change: transform;
}
.cursor__label {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    opacity: 0;
    transform: scale(.5);
    transition: opacity .25s, transform .35s var(--ease);
}
.cursor.is-visible { opacity: 1; }
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(255, 0, 191, .25); }
.cursor.is-label { width: 90px; height: 90px; margin: -45px 0 0 -45px; background: var(--pink); }
.cursor.is-label .cursor__label { opacity: 1; transform: scale(1); }

@media (hover: none), (pointer: coarse) {
    .cursor { display: none; }
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background .4s, border-color .4s, height .4s var(--ease), transform .5s var(--ease);
    border-bottom: 1px solid transparent;
}
.header.is-scrolled {
    --header-h: 70px;
    background: rgba(7, 7, 8, .72);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-color: var(--line);
}
.header.is-hidden { transform: translateY(-100%); }

.header__inner {
    display: flex;
    align-items: center;
    gap: 32px;
}
.header__logo img { height: 40px; width: auto; transition: height .4s var(--ease); }
.header.is-scrolled .header__logo img { height: 34px; }

.nav {
    display: flex;
    gap: 4px;
    margin-left: auto;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
}
.nav__link {
    position: relative;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    transition: color .3s, background .3s;
}
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: var(--text); background: rgba(255, 255, 255, .08); }

.burger {
    display: none;
    width: 48px;
    height: 48px;
    margin-left: auto;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: transparent;
    position: relative;
    z-index: 60;
}
.burger span {
    position: absolute;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .4s var(--ease), top .4s var(--ease);
}
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 27px; }
.burger[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
    background: rgba(7, 7, 8, .96);
    backdrop-filter: blur(20px);
    clip-path: circle(0% at calc(100% - 40px) 40px);
    visibility: hidden;
    transition: clip-path .7s var(--ease), visibility 0s .7s;
}
.mobile-menu.is-open {
    clip-path: circle(150% at calc(100% - 40px) 40px);
    visibility: visible;
    transition: clip-path .7s var(--ease);
}
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav a {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 8vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -.03em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s, transform .6s var(--ease), color .3s;
}
.mobile-menu__nav a:hover,
.mobile-menu__nav a.is-active { color: var(--pink); }
.mobile-menu__nav small {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--pink);
    letter-spacing: .1em;
}
.mobile-menu.is-open .mobile-menu__nav a { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(1) { transition-delay: .15s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(2) { transition-delay: .2s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(3) { transition-delay: .25s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(4) { transition-delay: .3s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(5) { transition-delay: .35s; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 40px) 0 72px;
    overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .55;
    will-change: transform;
}
.blob--1 {
    width: 46vw; height: 46vw;
    max-width: 720px; max-height: 720px;
    top: -12%; right: -8%;
    background: radial-gradient(circle, var(--pink) 0%, transparent 65%);
    animation: float1 18s ease-in-out infinite;
}
.blob--2 {
    width: 38vw; height: 38vw;
    max-width: 600px; max-height: 600px;
    bottom: -18%; right: 22%;
    background: radial-gradient(circle, var(--pink-deep) 0%, transparent 65%);
    opacity: .45;
    animation: float2 22s ease-in-out infinite;
}
.blob--3 {
    width: 26vw; height: 26vw;
    max-width: 420px; max-height: 420px;
    top: 30%; left: -10%;
    background: radial-gradient(circle, var(--pink-soft) 0%, transparent 65%);
    opacity: .25;
    animation: float1 26s ease-in-out infinite reverse;
}
@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-6%, 8%) scale(1.08); }
    66% { transform: translate(5%, -4%) scale(.95); }
}
@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10%, -10%) scale(1.15); }
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%);
    opacity: .6;
}

.hero__content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: clamp(32px, 4vw, 72px);
    align-items: center;
}
/* container: o título se mede pela largura desta coluna */
.hero__main { min-width: 0; container-type: inline-size; }

.hero__visual {
    position: relative;
    aspect-ratio: 3 / 4;
    width: min(34vw, 62vh * .75); /* sempre 3:4, no máximo 62% da altura da tela */
    justify-self: end;
    border: 1px solid var(--line-strong);
    border-radius: calc(var(--radius) + 8px);
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 40px 120px -40px rgba(255, 0, 191, .45);
}
/* Filme vertical (9:16) preenchendo o quadro 3:4: corta só um pouco de cima e de baixo */
.hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
video.hero__media { opacity: 0; transition: opacity .8s ease; }
.hero__visual.is-playing video.hero__media { opacity: 1; }
.hero__sound {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(7, 7, 8, .6);
    backdrop-filter: blur(8px);
    transition: background .3s, border-color .3s;
}
.hero__sound:hover { background: var(--pink); border-color: var(--pink); }
.hero__sound svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero__sound-on,
.hero__sound[aria-pressed="true"] .hero__sound-off { display: none; }
.hero__sound[aria-pressed="true"] .hero__sound-on { display: block; }
.hero__visual-tag {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(7, 7, 8, .7);
    backdrop-filter: blur(8px);
    z-index: 2;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    transition: color .3s;
}
.hero__visual-tag:hover { color: var(--text); }
.hero__eyebrow {
    padding: 8px 16px 8px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
    backdrop-filter: blur(8px);
    margin-bottom: 36px;
    color: var(--text);
    letter-spacing: .08em;
}

/* Duas linhas em qualquer tela: 7.2cqi faz "o consumidor comprar." (a linha mais larga) caber na coluna */
.hero__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: min(clamp(2.6rem, 4.6vw, 4.3rem), 7.2cqi);
    line-height: .98;
    letter-spacing: -.045em;
    margin-bottom: 32px;
}
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line__inner {
    display: inline-block;
    animation: lineUp 1.1s var(--ease) both;
}
.line:nth-child(2) .line__inner { animation-delay: .1s; }
.line:nth-child(3) .line__inner { animation-delay: .2s; }
@keyframes lineUp { from { transform: translateY(110%); } }

.rotator {
    display: inline-block;
    transition: opacity .45s, transform .45s var(--ease), filter .45s;
}
.rotator.is-out { opacity: 0; transform: translateY(-30%); filter: blur(8px); }
.rotator.is-in { opacity: 0; transform: translateY(30%); filter: blur(8px); transition: none; }

.hero__lead {
    max-width: 520px;
    margin-bottom: 32px;
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--muted);
}
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__partners {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}
.hero__partners span {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}
.hero__partners img {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: .6;
    transition: opacity .3s;
}
.hero__partners img:hover { opacity: 1; }

.scroll-hint {
    position: absolute;
    right: var(--gutter);
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    writing-mode: vertical-rl;
}
.scroll-hint i {
    position: relative;
    width: 1px;
    height: 60px;
    background: var(--line-strong);
    overflow: hidden;
}
.scroll-hint i::after {
    content: '';
    position: absolute;
    left: 0;
    top: -50%;
    width: 1px;
    height: 50%;
    background: var(--pink);
    animation: scrollLine 2s var(--ease) infinite;
}
@keyframes scrollLine { to { top: 100%; } }

/* ---------- Ticker ---------- */
/* corta as pontas da faixa inclinada, que passam da largura da tela (evita rolagem lateral) */
.ticker-wrap { overflow-x: hidden; overflow-x: clip; }
.ticker {
    position: relative;
    padding: 26px 0;
    border-block: 1px solid var(--line);
    background: var(--bg-2);
    overflow: hidden;
    transform: rotate(-1.5deg) scale(1.03);
    margin: 20px 0;
}
.ticker__track {
    display: flex;
    align-items: center;
    gap: 40px;
    width: max-content;
    animation: marquee 40s linear infinite;
}
.ticker span {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    font-weight: 500;
    letter-spacing: -.02em;
    white-space: nowrap;
}
.ticker span:nth-of-type(even) {
    /* contorno desenhado por baixo e preenchido com a cor da faixa:
       esconde as sobreposições internas da fonte variável e deixa ~1.6px visíveis */
    color: var(--bg-2);
    -webkit-text-stroke: 3.2px rgba(255, 255, 255, .85);
    paint-order: stroke fill;
}
.ticker b { color: var(--pink); font-size: 1.4rem; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(90px, 12vw, 160px) 0; }

.section-head { margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head--split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    flex-wrap: wrap;
}
.section-head__aside { max-width: 400px; color: var(--muted); }
.section-head__aside p { margin-bottom: 20px; }
.section-head--center { text-align: center; }

/* ---------- About ---------- */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}
.about__text p { color: var(--muted); margin-bottom: 20px; }
.about__lead {
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    line-height: 1.4;
    color: var(--text) !important;
    font-weight: 500;
    letter-spacing: -.01em;
    margin-bottom: 28px !important;
}

.about__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.stat-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.stat-card p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.stat-card b { color: var(--text); font-weight: 600; }
.stat-card--accent {
    grid-column: 1 / -1;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(255, 0, 191, .35), transparent 55%),
        var(--surface);
    border-color: rgba(255, 0, 191, .3);
}
.stat-card--accent p { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--text); line-height: 1.4; }
.stat-card__kicker {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--pink);
}

.ring { position: relative; width: 120px; height: 120px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle {
    fill: none;
    stroke: var(--line-strong);
    stroke-width: 8;
}
.ring .ring__bar {
    stroke: var(--pink);
    stroke-linecap: round;
    stroke-dasharray: 326.7;
    stroke-dashoffset: 326.7;
    transition: stroke-dashoffset 1.8s var(--ease) .2s;
    filter: drop-shadow(0 0 6px rgba(255, 0, 191, .6));
}
.is-visible .ring .ring__bar { stroke-dashoffset: calc(326.7 - 326.7 * var(--p) / 100); }
.ring strong {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: -.03em;
}

/* ---------- Services ---------- */
.services { background: var(--bg-2); }
.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.service {
    --x: 50%;
    --y: 50%;
    position: relative;
    padding: clamp(28px, 3.5vw, 44px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    isolation: isolate;
    transition: border-color .4s, transform .5s var(--ease);
}
.service::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(500px circle at var(--x) var(--y), rgba(255, 0, 191, .16), transparent 45%);
    opacity: 0;
    transition: opacity .4s;
}
.service:hover { border-color: rgba(255, 0, 191, .35); }
.service:hover::before { opacity: 1; }

.service__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: clamp(40px, 6vw, 80px);
}
.service__num {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    color: var(--pink);
    padding: 6px 12px;
    border: 1px solid rgba(255, 0, 191, .35);
    border-radius: 999px;
}
.service__icon {
    width: 56px;
    height: 56px;
    opacity: .9;
    transition: transform .6s var(--ease);
}
.service:hover .service__icon { transform: rotate(-8deg) scale(1.1); }
.service__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: 1.1;
    margin-bottom: 14px;
}
.service__desc { color: var(--muted); margin-bottom: 28px; max-width: 440px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
    padding: 7px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    background: rgba(255, 255, 255, .02);
    transition: border-color .3s, background .3s;
}
.tags li:hover { border-color: var(--pink); background: rgba(255, 0, 191, .08); }
.tags--lg li { font-size: 14px; padding: 9px 16px; }

/* ---------- Cases ---------- */
.cases__grid {
    columns: 3;
    column-gap: 20px;
}
/* Home: cada case fixo na sua coluna (definidas em index.php) */
.cases__grid--cols { columns: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; align-items: start; }
.case {
    position: relative;
    display: block;
    break-inside: avoid;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    margin-bottom: 20px;
    transform: translateZ(0);
}
.case.reveal { transform: translateY(40px); }
.case.reveal.is-visible { transform: translateZ(0); }

.case__media img {
    width: 100%;
    height: auto;
    transition: transform 1.2s var(--ease), filter .6s;
}
.case::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 7, 8, .92) 0%, rgba(7, 7, 8, .2) 45%, transparent 70%);
    opacity: .0;
    transition: opacity .5s;
}
.case:hover .case__media img { transform: scale(1.06); }
.case:hover::after { opacity: 1; }

.case__info {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    z-index: 2;
    transform: translateY(16px);
    opacity: 0;
    transition: transform .6s var(--ease), opacity .4s;
}
.case:hover .case__info,
.case:focus-visible .case__info { transform: none; opacity: 1; }
.case__brand {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 4px;
}
.case__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: -.02em;
    line-height: 1.25;
}
.case__arrow {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--pink);
    color: #fff;
    font-size: 18px;
    transform: scale(0) rotate(-45deg);
    transition: transform .5s var(--ease);
}
.case:hover .case__arrow { transform: scale(1) rotate(0); }

.cases__more { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- Numbers ---------- */
.numbers {
    padding-block: clamp(80px, 10vw, 130px);
    border-block: 1px solid var(--line);
    background:
        radial-gradient(60% 120% at 50% 120%, rgba(255, 0, 191, .18), transparent 60%),
        var(--bg);
}
.numbers__title {
    text-align: center;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    color: var(--muted);
    margin-bottom: 56px;
}
.numbers__title b { color: var(--text); font-weight: 600; }
.numbers__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.number {
    text-align: center;
    padding: 12px 20px;
    border-left: 1px solid var(--line);
}
.number:first-child { border-left: 0; }
.number strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5.4rem);
    font-weight: 600;
    letter-spacing: -.05em;
    line-height: 1;
    margin-bottom: 12px;
}
.number i {
    font-style: normal;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: .6em;
    vertical-align: super;
    margin-left: 2px;
}
.number > span { color: var(--muted); font-size: 15px; font-weight: 500; }

/* ---------- Clients ---------- */
.logos { display: flex; flex-direction: column; gap: 14px; }
.logos__row {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.logos__track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: marquee 60s linear infinite;
}
.logos__row--reverse .logos__track { animation-direction: reverse; animation-duration: 70s; }
.logos__row:nth-child(3) .logos__track { animation-duration: 66s; }
.logos__row:nth-child(4) .logos__track { animation-duration: 76s; }
.logos__row:hover .logos__track { animation-play-state: paused; }

.logo-item {
    flex: none;
    width: 200px;
    height: 112px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition: border-color .3s, background .3s;
}
.logo-item img {
    width: 160px;
    height: auto;
    /* os logos já vêm em versão clara para fundo escuro */
    filter: grayscale(1);
    opacity: .55;
    transition: opacity .3s, filter .3s;
}
.logo-item:hover { border-color: rgba(255, 0, 191, .35); background: var(--surface-2); }
.logo-item:hover img { filter: none; opacity: 1; }

/* ---------- Contact ---------- */
.contact { overflow: hidden; }
.contact__glow {
    position: absolute;
    width: 900px;
    height: 900px;
    left: 50%;
    top: 0;
    transform: translate(-50%, -40%);
    background: radial-gradient(circle, rgba(255, 0, 191, .22), transparent 60%);
    filter: blur(40px);
    z-index: -1;
}
.contact__layout {
    position: relative;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(48px, 6vw, 96px);
    align-items: start;
}
.contact__intro {
    position: sticky;
    top: calc(var(--header-h) + 40px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.contact__intro .eyebrow { margin-bottom: 20px; }
.contact__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(3rem, 7.4vw, 7.4rem);
    line-height: .92;
    letter-spacing: -.055em;
    margin-bottom: 28px;
}
.contact__lead {
    max-width: 420px;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.3vw, 1.15rem);
    margin-bottom: 40px;
}
.contact__big-cta {
    position: relative;
    width: clamp(140px, 13vw, 180px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--pink);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    font-weight: 700;
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1.2;
    box-shadow: 0 20px 80px -20px rgba(255, 0, 191, .9);
    transition: transform .5s var(--ease), box-shadow .5s;
}
.contact__big-cta svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .5s var(--ease);
}
.contact__big-cta:hover { box-shadow: 0 30px 100px -10px rgba(255, 0, 191, 1); }
.contact__big-cta:hover svg { transform: rotate(45deg); }

/* ---------- Form ---------- */
.form {
    position: relative;
    padding: clamp(24px, 3.5vw, 48px);
    border: 1px solid var(--line-strong);
    border-radius: calc(var(--radius) + 8px);
    background: rgba(18, 18, 22, .75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .8);
}
.form__body { display: flex; flex-direction: column; gap: 16px; transition: opacity .4s, transform .5s var(--ease); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { position: relative; }
.field input,
.field textarea {
    width: 100%;
    height: 64px;
    padding: 26px 20px 8px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .03);
    color: var(--text);
    font: inherit;
    font-size: 16px;
    outline: none;
    transition: border-color .3s, background .3s, box-shadow .3s;
}
.field textarea { height: auto; min-height: 140px; padding-top: 32px; resize: vertical; line-height: 1.5; }
.field label {
    position: absolute;
    left: 21px;
    top: 21px;
    color: var(--muted);
    font-size: 16px;
    pointer-events: none;
    transform-origin: left top;
    transition: transform .3s var(--ease), color .3s;
}
.field input:hover,
.field textarea:hover { border-color: rgba(255, 255, 255, .28); }
.field input:focus,
.field textarea:focus {
    border-color: var(--pink);
    background: rgba(255, 0, 191, .04);
    box-shadow: 0 0 0 4px rgba(255, 0, 191, .12);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
    transform: translateY(-11px) scale(.75);
    color: var(--pink);
}

.form__group { margin: 8px 0 0; padding: 0; border: 0; min-width: 0; }
.form__group legend {
    padding: 0;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    background: rgba(255, 255, 255, .02);
    transition: border-color .3s, background .3s, color .3s;
    user-select: none;
}
.chip:hover span { border-color: rgba(255, 255, 255, .35); }
.chip input:checked + span { border-color: var(--pink); background: var(--pink); color: #fff; }
.chip input:checked + span::before { content: '✓'; font-size: 12px; }
.chip input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 3px; }

.form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 8px;
}
.form__footer .btn { flex: none; }

.check { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    display: grid;
    place-items: center;
    transition: background .3s, border-color .3s;
}
.check__box::after { content: '✓'; font-size: 12px; color: #fff; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .3s var(--ease); }
.check input:checked + .check__box { background: var(--pink); border-color: var(--pink); }
.check input:checked + .check__box::after { opacity: 1; transform: none; }
.check input:focus-visible + .check__box { outline: 2px solid var(--pink); outline-offset: 3px; }

.field.is-invalid input,
.field.is-invalid textarea { border-color: #ff4d6d; box-shadow: 0 0 0 4px rgba(255, 77, 109, .12); }
.field.is-invalid label { color: #ff4d6d; }
.check.is-invalid .check__box { border-color: #ff4d6d; }
.check.is-invalid { color: #ffb3c1; }
.form__group.is-invalid legend { color: #ff4d6d; }
.form__group.is-invalid legend::after { content: ' · ' attr(data-msg); text-transform: none; letter-spacing: 0; font-weight: 600; }
.form__group.is-invalid .chip span { border-color: rgba(255, 77, 109, .6); }

/* campo invisível anti-spam (fora da tela, não usar display:none) */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__error {
    margin: 0;
    padding: 14px 18px;
    border: 1px solid rgba(255, 77, 109, .4);
    border-radius: var(--radius-sm);
    background: rgba(255, 77, 109, .08);
    color: #ffb3c1;
    font-size: 14px;
}
.form__error a { color: #fff; text-decoration: underline; }

.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading svg { animation: btnSpin 1s linear infinite; }
@keyframes btnSpin { to { transform: rotate(360deg); } }

.form__success {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity .5s, transform .6s var(--ease), visibility 0s .5s;
}
.form__success h3 { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 600; letter-spacing: -.03em; }
.form__success p { color: var(--muted); max-width: 340px; }
.form__success-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--pink);
    color: #fff;
    font-size: 30px;
    box-shadow: 0 20px 60px -15px rgba(255, 0, 191, .9);
    margin-bottom: 8px;
}
.form.is-sent .form__body { opacity: 0; transform: scale(.98); pointer-events: none; }
.form.is-sent .form__success { opacity: 1; visibility: visible; transform: none; transition: opacity .5s .2s, transform .6s var(--ease) .2s; }

/* ---------- Footer ---------- */
.footer {
    position: relative;
    padding: 56px 0 28px;
    border-top: 1px solid var(--line);
    overflow: hidden;
}
.footer__top {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.footer__logo { height: 52px; width: auto; }

.footer > .container { position: relative; z-index: 1; }
.footer__stage { margin: 36px 0; }
.footer__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr 1.6fr;
    gap: 16px;
}
.footer__card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(18, 18, 22, .45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.footer__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}
.footer__label--sub { margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer__link {
    font-size: 16px; /* mesmo tamanho do endereço (coluna "Visite") */
    font-weight: 600;
    letter-spacing: -.01em;
    overflow-wrap: anywhere;
    transition: color .3s;
}
.footer__link:hover { color: var(--pink); }
.footer__address { font-size: 16px; line-height: 1.55; }
.footer__address .link-arrow { display: flex; width: max-content; margin-top: 16px; font-size: 14px; }

.socials { display: flex; gap: 10px; }
.socials a {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    transition: background .3s, border-color .3s, transform .4s var(--ease);
}
.socials a:hover { background: var(--pink); border-color: var(--pink); transform: translateY(-3px); }
.socials svg,
.wa-float svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.socials .fill,
.wa-float .fill { fill: currentColor; stroke: none; }

.footer__wordmark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(8rem, 34vw, 30rem);
    line-height: .8;
    letter-spacing: -.07em;
    text-align: center;
    white-space: nowrap;
    /* fundo do footer, colado na base */
    position: absolute;
    z-index: 0;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 4%);
    background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03) 85%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    user-select: none;
    /* o texto gigante transborda para cima e cobria os ícones sociais */
    pointer-events: none;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: var(--muted);
}
.footer__bottom .link-arrow { font-size: 14px; margin-right: 72px; } /* livre do botão flutuante do WhatsApp */

/* ---------- WhatsApp float ---------- */
.wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 40;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 10px 30px -8px rgba(37, 211, 102, .7);
    transform: scale(0);
    transition: transform .5s var(--ease);
}
.wa-float.is-visible { transform: scale(1); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- Cookie ---------- */
.cookie {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 60;
    max-width: 420px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 16px 16px 22px;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: rgba(18, 18, 22, .9);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .6);
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
    transform: translateY(150%);
    transition: transform .7s var(--ease);
}
.cookie .btn { flex: none; height: 48px; padding: 0 26px; font-size: 14px; }
.cookie.is-visible { transform: none; }

/* ---------- Páginas internas ---------- */
.page-hero {
    position: relative;
    padding: calc(var(--header-h) + 56px) 0 clamp(48px, 6vw, 80px);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

/* fundo animado (php/inc/hero-art.php) */
.hero-art {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.hero-art path { vector-effect: non-scaling-stroke; }
.hero-art__ribbon--a { animation: ribbonA 18s linear infinite; }
.hero-art__ribbon--b { animation: ribbonB 34s linear infinite; }
.hero-art__float { animation: ribbonFloat 9s ease-in-out infinite alternate; }

@keyframes ribbonA { to { transform: translateX(-720px); } }          /* 1 período = loop sem emenda */
@keyframes ribbonB { from { transform: translateX(-1100px); } to { transform: none; } }
@keyframes ribbonFloat { from { transform: translateY(-14px); } to { transform: translateY(14px); } }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: clamp(32px, 5vw, 56px);
    font-size: 14px;
    color: var(--muted);
}
.breadcrumb a { transition: color .3s; }
.breadcrumb a:hover { color: var(--pink); }
.breadcrumb [aria-current] { color: var(--text); }

.page-hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
    align-items: end;
    gap: 40px clamp(40px, 6vw, 96px);
}
.page-hero__content .eyebrow { margin-bottom: 20px; }
.page-hero__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    line-height: 1;
    letter-spacing: -.045em;
}
.page-hero__aside { max-width: 420px; color: var(--muted); }

/* ---------- Portfólio ---------- */
.portfolio { padding-top: clamp(48px, 6vw, 72px); }

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: clamp(32px, 4vw, 48px);
}
.filter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 18px 0 20px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, .02);
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    transition: color .3s, border-color .3s, background .3s;
}
.filter span {
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-size: 12px;
    color: var(--text);
    transition: background .3s;
}
.filter:hover { color: var(--text); border-color: rgba(255, 255, 255, .35); }
.filter.is-active { color: #fff; background: var(--pink); border-color: var(--pink); }
.filter.is-active span { background: rgba(0, 0, 0, .22); color: #fff; }

/* animação do filtro */
.case.is-out {
    opacity: 0 !important;
    transform: scale(.96) !important;
    transition: opacity .25s, transform .25s !important;
}
.case[hidden] { display: none; }

.portfolio__empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Página de case ---------- */
.case-hero__subtitle {
    margin-top: 16px;
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    color: var(--muted);
}
.case-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 32px;
    margin: 0;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(18, 18, 22, .6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.case-meta dt {
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
.case-meta dd { margin: 0; font-weight: 600; display: flex; flex-direction: column; gap: 2px; }
.case-meta a { transition: color .3s; }
.case-meta a:hover { color: var(--pink); }
.case-meta a[target] { overflow-wrap: anywhere; }

.case-section { position: relative; padding: clamp(64px, 8vw, 120px) 0; }
.case-section + .case-section { padding-top: 0; }
.case-section__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: -.04em;
}

/* vídeo: capa leve que só carrega o YouTube no clique */
.case-videos__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: clamp(28px, 4vw, 48px);
}
.case-videos__head p,
.case-gallery__head p { color: var(--muted); font-size: 15px; }
.case-videos__grid { display: grid; gap: 20px; }
.case-videos--many .case-videos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* quantidade ímpar: o primeiro ocupa a linha toda */
.case-videos--many .video:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.case-videos--many .video:not(:first-child) .video__play,
.case-videos--many .video:first-child:nth-last-child(even) .video__play { width: clamp(60px, 6vw, 80px); }
.video {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: calc(var(--radius) + 8px);
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 40px 120px -50px rgba(255, 0, 191, .5);
    isolation: isolate;
}
.video img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease), filter .6s;
}
.video::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 7, 8, .75), transparent 55%);
}
.video:hover img { transform: scale(1.04); }
.video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: clamp(72px, 9vw, 112px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--pink);
    color: #fff;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 0 rgba(255, 0, 191, .6), 0 20px 60px -10px rgba(255, 0, 191, .9);
    animation: playPulse 2.4s ease-out infinite;
    transition: transform .5s var(--ease);
}
.video__play svg { width: 34%; height: 34%; fill: currentColor; margin-left: 6%; }
.video:hover .video__play { transform: translate(-50%, -50%) scale(1.08); }
@keyframes playPulse { 70%, 100% { box-shadow: 0 0 0 28px rgba(255, 0, 191, 0), 0 20px 60px -10px rgba(255, 0, 191, .9); } }
.video__label {
    position: absolute;
    left: clamp(20px, 3vw, 36px);
    bottom: clamp(18px, 3vw, 32px);
    z-index: 2;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
}
.video iframe { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border: 0; }
.video video { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; background: #000; }
.video.is-playing { cursor: default; }
.video.is-playing .video__play,
.video.is-playing .video__label { display: none; }

/* vídeos verticais hospedados no site: capa leve, o <video> só entra no clique */
.clips {
    display: grid;
    grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
    gap: 20px;
    max-width: calc(var(--cols, 4) * var(--col-max, 360px));
}
.case-videos__grid + .clips { margin-top: 20px; }
/* formatos misturados: cada vídeo cresce na proporção da sua largura, então a linha fica com altura única */
.clips--mixed { display: flex; flex-wrap: wrap; max-width: none; }
.clip {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    box-shadow: 0 40px 100px -50px rgba(255, 0, 191, .45);
    isolation: isolate;
}
.clip img,
.clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip img { transition: transform 1.2s var(--ease); }
.clip video { object-fit: contain; }
.clip:hover img { transform: scale(1.04); }
.clip::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 7, 8, .55), transparent 40%);
    pointer-events: none;
}
.clip.is-playing::after { display: none; }
.clip .video__play { width: clamp(56px, 5vw, 72px); }
/* 1 ou 2 vídeos: título à esquerda e vídeos à direita, como nas galerias */
.case-clips--side .container {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 40px clamp(40px, 6vw, 96px);
    align-items: start;
}
.case-clips--side .case-videos__head { display: block; position: sticky; top: calc(var(--header-h) + 32px); margin: 0; }
.case-clips--side .case-videos__head p { margin-top: 16px; }
.clip:hover .video__play { transform: translate(-50%, -50%) scale(1.08); }

/* sobre + galeria: título à esquerda, conteúdo à direita */
.case-about__grid,
.case-gallery .container {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 40px clamp(40px, 6vw, 96px);
    align-items: start;
}
.case-about__body p { color: var(--muted); margin-bottom: 20px; max-width: 640px; }
.case-about__body .case-about__lead {
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    line-height: 1.45;
    color: var(--text);
    font-weight: 500;
    letter-spacing: -.01em;
}
.case-about__body .case-about__tagline {
    margin-bottom: 22px;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.4vw, 2.1rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.03em;
    color: var(--text);
    text-wrap: balance;
}
.case-about__tagline + .case-about__lead { color: #cfccd6; }
.case-skills { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.case-skills--solo { margin-top: 0; padding-top: 0; border-top: 0; align-self: center; }
.case-skills__label {
    display: block;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.case-gallery__head { position: sticky; top: calc(var(--header-h) + 32px); }
.case-gallery__head p { margin-top: 16px; }
/* mosaico: imagens de proporções diferentes sem buracos */
.gallery { columns: 2; column-gap: 16px; }
.gallery:has(> :only-child) { columns: 1; }
/* imagem única: não amplia além do tamanho real (evita borrar) */
.gallery:has(> :only-child) .gallery__item { width: fit-content; max-width: 100%; }
.gallery:has(> :only-child) .gallery__item img { width: auto; max-width: 100%; }
.gallery__item {
    position: relative;
    display: block;
    break-inside: avoid;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}
.gallery__item img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }

/* lightbox */
.lightbox {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(7, 7, 8, .92); backdrop-filter: blur(12px); }
.lightbox__img {
    max-width: min(92vw, 1100px);
    max-height: 86vh;
    width: auto;
    height: auto;
    border-radius: var(--radius-sm);
    box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9);
    animation: lbIn .4s var(--ease);
}
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } }
.lightbox__close,
.lightbox__nav {
    position: fixed;
    z-index: 2;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(18, 18, 22, .8);
    font-size: 18px;
    transition: background .3s, border-color .3s;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--pink); border-color: var(--pink); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__nav[hidden] { display: none; }
.lightbox__count { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); font-size: 14px; color: var(--muted); }

/* case anterior / próximo */
.case-nav { padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.case-nav__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.case-nav__item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color .4s, background .4s;
}
.case-nav__item--next { flex-direction: row-reverse; text-align: right; }
.case-nav__item img {
    flex: none;
    width: clamp(88px, 10vw, 128px);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: transform .8s var(--ease);
}
.case-nav__item:hover { border-color: rgba(255, 0, 191, .4); background: var(--surface-2); }
.case-nav__item:hover img { transform: scale(1.06); }
.case-nav__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.case-nav__label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); }
.case-nav__title { font-family: var(--font-display); font-size: clamp(1.05rem, 1.6vw, 1.4rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.case-nav__brand { font-size: 14px; color: var(--muted); }
.case-nav__all { display: flex; justify-content: center; margin-top: 32px; }

/* ---------- Faixa de CTA ---------- */
.cta-band {
    overflow: hidden;
    border-top: 1px solid var(--line);
}
.cta-band__inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    flex-wrap: wrap;
}
.cta-band .eyebrow { margin-bottom: 20px; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Entrada do topo das páginas ----------
   Só CSS (sem esperar o JavaScript): o conteúdo do primeiro quadro aparece logo (LCP) */
.hero-in { animation: heroIn 1s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes heroIn { from { opacity: 0; transform: translateY(40px); } }

/* ---------- Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
    transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .nav, .header__cta { display: none; }
    .burger { display: block; }
    .about__grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__card--wide { grid-column: 1 / -1; }
    .contact__layout { grid-template-columns: 1fr; }
    .contact__intro { position: static; }
    .scroll-hint { display: none; }
    .page-hero__content { grid-template-columns: 1fr; }
    .case-about__grid,
    .case-gallery .container,
    .case-clips--side .container { grid-template-columns: 1fr; }
    .case-clips--side .case-videos__head { position: static; }
    .case-gallery__head { position: static; }
    .hero-art { opacity: .55; }
    .hero__content { grid-template-columns: 1fr; }
    .hero__title { font-size: min(clamp(2.6rem, 8vw, 5.4rem), 7.2cqi); }
    .hero__visual { margin-top: 48px; width: min(100%, 460px, 78svh * .75); justify-self: center; }
}

@media (max-width: 820px) {
    .services__grid { grid-template-columns: 1fr; }
    .cases__grid { columns: 2; column-gap: 14px; }
    .cases__grid--cols { display: block; }
    .cases__col { display: contents; }
    .case-nav__grid { grid-template-columns: 1fr; }
    .case-videos--many .case-videos__grid { grid-template-columns: 1fr; }
    .clips { grid-template-columns: repeat(min(var(--cols, 4), 2), minmax(0, 1fr)); gap: 12px; }
    .case { margin-bottom: 14px; }
    .numbers__grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
    .number:nth-child(3) { border-left: 0; }
}

@media (max-width: 560px) {
    :root { --header-h: 72px; --radius: 20px; }
    body { font-size: 16px; }
    .header__logo img { height: 34px; }
    .hero { padding-bottom: 60px; }
    .hero__title { font-size: min(8.6vw, 7.2cqi); margin-bottom: 28px; }
    .hero__actions { width: 100%; }
    .hero__actions .btn { flex: 1; padding: 0 18px; }
    .hero__partners { gap: 16px 20px; margin-top: 48px; }
    .hero__partners span { width: 100%; }
    .hero__partners img { height: 38px; }
    .about__stats { grid-template-columns: 1fr; }
    .stat-card { flex-direction: row; align-items: center; }
    .stat-card--accent { flex-direction: column; align-items: flex-start; }
    .ring { width: 96px; height: 96px; flex: none; }
    .ring strong { font-size: 1.35rem; }
    .cases__grid { columns: 1; }
    /* mobile: info sempre visível */
    .case::after { opacity: 1; }
    .case__info { opacity: 1; transform: none; left: 20px; bottom: 18px; }
    .footer__grid { grid-template-columns: 1fr; }
    .footer__card { padding: 24px; }
    .form__row { grid-template-columns: 1fr; }
    .form__footer { flex-direction: column; align-items: stretch; }
    .chip span { font-size: 13px; padding: 8px 14px; }
    .logo-item { width: 150px; height: 88px; }
    .logo-item img { width: 120px; }
    .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; flex-direction: column; align-items: stretch; }
    .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
    .filters::-webkit-scrollbar { display: none; }
    .filter { flex: none; }
    .case-meta { grid-template-columns: 1fr; padding: 22px; gap: 18px; }
    .gallery { column-gap: 10px; }
    .gallery__item { margin-bottom: 10px; }
    .lightbox__nav { top: auto; bottom: 16px; transform: none; }
    .lightbox__close { top: 12px; right: 12px; }
    .cta-band__actions { width: 100%; }
    .cta-band__actions .btn { flex: 1; }
    .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal, .line__inner { opacity: 1; transform: none; }
    .hero-in, .line__inner { animation: none; }
    .hero-art__dots { display: none; }
}
