/* ============================================================
   LA BRISA — Experiência 01 (Home) + Experiência 02 (site horizontal)
   Conceito: um único ambiente escuro e mineral. A Home é a rocha;
   o site é o interior do cristal — azul institucional, facetas finas.
   ============================================================ */
:root {
  --azul: #003A60;          /* cor institucional */
  --noite: #071D2C;         /* preto azulado (marca) */
  --carbon: #0f1215;        /* fundo do site: cinza escuro */
  --carbon-2: #15181c;
  --grafite: #12171c;
  --mineral: #2E6F8E;
  --gelo: #BFE3F0;
  --off: #EEF2F0;
  --off-2: rgba(238, 242, 240, .66);
  --line: rgba(238, 242, 240, .18);
  --pend: #F0D58A;          /* sinaliza material pendente (placeholder) */
  --home-bg: #0b0c0e;

  --font: "Montserrat", "Helvetica Neue", Arial, system-ui, sans-serif;
  --g: clamp(16px, 4vw, 64px);          /* gutter */
  --nav-h: 72px;
  --hud-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .2, 1);

  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; background: var(--carbon); color: var(--off); overflow: hidden; }
body {
  font-family: var(--font); font-weight: 400; line-height: 1.55; font-size: clamp(14px, 1.1vw, 18px);
  padding-left: max(0px, env(safe-area-inset-left, 0px)); padding-right: max(0px, env(safe-area-inset-right, 0px));
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--gelo); outline-offset: 3px; }

.skip-link { position: fixed; left: 8px; top: -60px; z-index: 300; background: var(--off); color: var(--noite); padding: 10px 14px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 8px; }

/* ---------- utilidades ---------- */
.fine-only { display: inline; } .touch-only { display: none; }
.hint-fine { display: inline; } .hint-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .fine-only { display: none; } .touch-only { display: inline; }
  .hint-fine { display: none; } .hint-touch { display: inline; }
}
.ph-chip {
  display: inline-block; font-style: normal; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--pend); border: 1px dashed rgba(240, 213, 138, .6); padding: .35em .7em; border-radius: 2px; background: rgba(15, 18, 21, .62);
}
.ph-facets {
  position: absolute; inset: 0; opacity: .9;
  background:
    linear-gradient(115deg, transparent 30%, rgba(191,227,240,.14) 30.4%, transparent 31%),
    linear-gradient(62deg, transparent 52%, rgba(191,227,240,.12) 52.4%, transparent 53%),
    linear-gradient(160deg, rgba(0,0,0,0) 20%, rgba(70,92,108,.32) 60%, rgba(10,12,14,.8)),
    radial-gradient(60% 70% at 70% 30%, rgba(226,236,244,.24), transparent 70%),
    #1a2026;
  background-size: 140% 140%, 140% 140%, 100% 100%, 100% 100%, auto;
  animation: facetDrift 14s ease-in-out infinite alternate;
}
@keyframes facetDrift { to { background-position: 18% 10%, -10% 14%, 0 0, 0 0, 0 0; } }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; z-index: 100; top: 0; left: 0; right: 0; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: max(var(--g), env(safe-area-inset-left, 0px)) max(var(--g), env(safe-area-inset-right, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.brand { display: flex; flex-direction: column; line-height: 1; gap: 5px; }
.brand-mark { font-weight: 700; letter-spacing: .34em; font-size: .92rem; }
.brand-sub { font-weight: 300; letter-spacing: .26em; font-size: .56rem; text-transform: uppercase; color: var(--off-2); }
.menu { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.menu a { font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--off-2); position: relative; padding: 8px 0; transition: color .3s; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--off); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.menu a:hover, .menu a.on { color: var(--off); }
.menu a.on::after, .menu a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.bni-toggle { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; padding: 9px 12px; border: 1px solid var(--line); color: var(--off-2); transition: all .3s; }
.bni-toggle:hover, .bni-toggle[aria-pressed="true"] { color: var(--noite); background: var(--off); border-color: var(--off); }
.nav-cta { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 11px 18px; background: var(--off); color: var(--noite); transition: background .3s, color .3s; }
.nav-cta:hover { background: var(--gelo); }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--off); transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ============================================================
   HOME
   ============================================================ */
.home { position: fixed; inset: 0; z-index: 50; background: var(--home-bg); overflow: hidden; }
.home.gone { visibility: hidden; pointer-events: none; }
#stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.home-ui { position: absolute; inset: 0; pointer-events: none; transition: opacity .35s ease; }
.home-ui.leaving { opacity: 0; }
.home-ui > * { pointer-events: none; }
.home-ui button { pointer-events: auto; }

.h-copy {
  position: absolute; left: max(var(--g), env(safe-area-inset-left, 0px)); top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 6vh);
  width: min(38vw, 620px);
  animation: titleIn 1.6s var(--ease) .15s both;
}
@keyframes titleIn { from { opacity: 0; filter: blur(14px); transform: translateY(14px); } to { opacity: 1; filter: blur(0); transform: none; } }
.h-title { font-weight: 600; text-transform: uppercase; letter-spacing: -.025em; line-height: 1.02; font-size: clamp(1.9rem, 4.1vw, 4.9rem); text-wrap: balance; }
.h-sub { margin-top: 2.4vh; max-width: 30ch; font-size: clamp(.86rem, 1.05vw, 1.1rem); font-weight: 300; color: var(--off-2); }

.h-wipe { position: absolute; left: var(--lx1, 50%); top: var(--ly1, 80%); width: max-content; max-width: calc(100vw - 40px); }
.w-txt { font-size: clamp(.78rem, 1.05vw, 1.08rem); letter-spacing: .14em; text-transform: uppercase; font-weight: 500; white-space: nowrap; color: var(--off-2); }
/* frase que acompanha o cursor onde o diamante é revelado */
.h-follow { position: absolute; left: 0; top: 0; margin: 0; opacity: 0; display: flex; align-items: center; gap: 10px; white-space: nowrap; pointer-events: none; translate: -50% 0;
  font-size: clamp(.78rem, 1.05vw, 1.08rem); letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: #fff; -webkit-text-stroke: 3px #2a2f35; paint-order: stroke fill; text-shadow: 0 1px 14px rgba(0, 0, 0, .6); will-change: transform, opacity; }
.h-follow i { width: 8px; height: 8px; transform: rotate(45deg); background: #fff; box-shadow: 0 0 12px rgba(191, 227, 240, .95); flex: 0 0 auto; }
.h-hint { position: absolute; left: var(--rx, 50%); top: var(--ry, 50%); transform: translate(-100%, -32px); display: flex; align-items: center; gap: 10px; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--off-2); white-space: nowrap; transition: opacity .6s; text-shadow: 0 1px 12px rgba(0,0,0,.9); }
.hint-dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--off); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(238,242,240,.55); } 100% { box-shadow: 0 0 0 16px rgba(238,242,240,0); } }
.h-reveal { position: absolute; left: var(--rx, auto); right: auto; top: var(--ry, auto); transform: translateX(-100%); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--off-2); border-bottom: 1px solid var(--line); padding: 6px 0; transition: color .3s, opacity .5s; white-space: nowrap; }
.h-reveal:hover { color: var(--off); border-color: var(--off); }

.h-band {
  position: absolute; left: 0; right: 0; bottom: 0; height: clamp(84px, 14vh, 140px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: max(var(--g), env(safe-area-inset-left, 0px)) max(var(--g), env(safe-area-inset-right, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.band-fill { position: absolute; inset: 0; background: var(--azul); transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--ease-io); }
.band-text {
  position: relative; font-weight: 600; text-transform: uppercase; letter-spacing: -.01em; font-size: clamp(1.1rem, 3vw, 3.4rem); line-height: 1.05;
  color: transparent; -webkit-text-stroke: 1px rgba(238,242,240,.32); transition: color .9s ease .5s, -webkit-text-stroke-color .9s ease .5s;
}
.h-band.on .band-fill { transform: scaleX(1); }
.h-band.on .band-text { color: var(--off); -webkit-text-stroke-color: transparent; }
.h-band.on { border-top-color: transparent; }

.cta {
  position: relative; pointer-events: auto; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  padding: 1.15em 1.9em; background: var(--off); color: var(--noite); transition: background .35s, transform .35s var(--ease), box-shadow .35s;
}
.cta::after { content: ""; width: 22px; height: 1px; background: currentColor; transition: width .35s var(--ease); }
.cta:hover { background: #fff; box-shadow: 0 0 0 6px rgba(191,227,240,.18); }
.cta:hover::after { width: 34px; }
.cta-lg { font-size: .8rem; }
.cta-ghost { font-weight: 500; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; padding: 1.15em 0; border-bottom: 1px solid var(--line); color: var(--off-2); transition: color .3s, border-color .3s; }
.cta-ghost:hover { color: var(--off); border-color: var(--off); }

.ring { position: fixed; z-index: 60; left: 0; top: 0; width: 120px; height: 120px; margin: -60px 0 0 -60px; border: 1px solid rgba(238,242,240,.35); border-radius: 50%; opacity: 0; pointer-events: none; transition: opacity .3s, width .3s, height .3s, margin .3s; will-change: transform; }
.ring.on { opacity: 1; }
.skip-anim { position: fixed; z-index: 120; right: max(var(--g), env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--off-2); border-bottom: 1px solid var(--line); padding: 6px 0; }

/* ============================================================
   SITE HORIZONTAL
   ============================================================ */
.site { position: fixed; inset: 0; z-index: 10; background: var(--carbon-2); }
/* luz de estúdio: foco suave no alto à esquerda, reflexo frio embaixo à direita e vinheta */
.light { position: absolute; inset: -6%; pointer-events: none; opacity: 0; transition: opacity 2.2s ease .15s;
  background:
    radial-gradient(52% 48% at 26% 16%, rgba(238, 243, 248, .15), rgba(238, 243, 248, .04) 45%, transparent 68%),
    radial-gradient(42% 52% at 88% 86%, rgba(132, 172, 200, .10), transparent 66%),
    radial-gradient(130% 100% at 50% 46%, transparent 52%, rgba(0, 0, 0, .55) 100%);
  animation: breathe 22s ease-in-out infinite alternate; }
body[data-mode="site"] .light { opacity: 1; }
@keyframes breathe { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-1.2%, .8%, 0) scale(1.05); } }
.scroller { position: absolute; inset: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.scroller::-webkit-scrollbar { display: none; }
.track { position: relative; display: flex; height: 100%; width: max-content; }
.bgfield { position: absolute; inset: 0; pointer-events: none; }

.chap { display: flex; flex: 0 0 auto; height: 100%; position: relative; }
.panel {
  position: relative; flex: 0 0 auto; width: var(--w, 100vw); height: 100%;
  padding-block: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 3vh) calc(var(--hud-h) + env(safe-area-inset-bottom, 0px) + 2vh);
  padding-inline: var(--g);
}
.mega { font-weight: 600; text-transform: uppercase; letter-spacing: -.035em; line-height: .94; font-size: min(8.4vw, 17vh); }
.mega .l { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.mega .l > span { display: block; transform: translateY(0); }
.js .mega .l > span { transform: translateY(108%); transition: transform 1.1s var(--ease); }
.js .mega.in .l:nth-child(2) > span { transition-delay: .09s; }
.js .mega.in .l:nth-child(3) > span { transition-delay: .18s; }
.js .mega.in .l:nth-child(4) > span { transition-delay: .27s; }
.js .mega.in .l > span { transform: none; }
.title { font-weight: 600; text-transform: uppercase; letter-spacing: -.03em; line-height: 1; font-size: min(4.6vw, 9vh); text-wrap: balance; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.7rem); font-weight: 400; line-height: 1.4; max-width: 30ch; }
.soft { font-size: clamp(.86rem, 1.05vw, 1.1rem); font-weight: 300; color: var(--off-2); max-width: 36ch; margin-top: 2.2vh; }

.rv { opacity: 1; transform: none; }
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform 1.1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* ----- Solução ----- */
.p-sol-a { --w: 100vw; display: flex; flex-direction: column; justify-content: center; }
.sol-mega { position: relative; z-index: 2; font-size: min(8.8vw, 19vh); }
.sol-copy { position: relative; z-index: 2; margin-top: 5vh; margin-left: auto; margin-right: 6vw; width: min(32vw, 460px); }
.diam { position: absolute; z-index: 1; right: -17vw; top: 9vh; width: 70vw; mix-blend-mode: screen; opacity: .62; pointer-events: none;
  -webkit-mask-image: radial-gradient(52% 58% at 52% 50%, #000 38%, transparent 78%); mask-image: radial-gradient(52% 58% at 52% 50%, #000 38%, transparent 78%); }
.diam img { width: 100%; filter: grayscale(1) contrast(1.15) brightness(.95); }

.p-sol-b { --w: 100vw; display: grid; grid-template-columns: minmax(0, 25vw) minmax(0, 1fr); gap: 4vw; align-items: start; }
.svc-head { display: grid; gap: 3vh; align-content: start; padding-top: 3vh; }
.tag-hint { font-size: .72rem; letter-spacing: .06em; color: var(--off-2); max-width: 26ch; }
.svc-list { align-self: start; margin-top: 1.5vh; border-bottom: 1px solid var(--line); }
.svc { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 2.4vw; align-items: center; border-top: 1px solid var(--line); padding: 1.55vh 0; cursor: pointer; transition: opacity .4s, padding .5s var(--ease); outline-offset: -2px; }
.svc-n { font-weight: 500; text-transform: uppercase; letter-spacing: -.02em; line-height: 1.04; font-size: min(2.45vw, 4.7vh); transition: transform .55s var(--ease), color .3s; }
.svc-d { font-size: clamp(.8rem, .98vw, 1.02rem); font-weight: 300; color: var(--off-2); max-width: 36ch; transition: color .3s; }
.svc-pv { display: none; }
.svc-list:hover .svc:not(:hover), .svc-list.has-on .svc:not(.on) { opacity: .38; }
.svc:hover .svc-n, .svc.on .svc-n { transform: translateX(1.2vw); }
.svc:hover .svc-d, .svc.on .svc-d { color: var(--off); }

/* ----- Cases ----- */
.p-cases-a { --w: 80vw; display: flex; flex-direction: column; justify-content: center; gap: 4vh; }
.cases-lead { margin-left: 28vw; }
.p-reel { --w: 74vw; display: flex; align-items: center; padding-inline: 0; }
.reel { width: 100%; }
.reel-frame { position: relative; aspect-ratio: 16 / 9; width: min(64vw, 128vh * 0.9); background: #0a0c0e; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0,0,0,.7); }
.reel-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.reel-link { color: var(--off); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.reel-link:hover { border-color: var(--off); }
.reel-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.reel-ph { position: absolute; inset: 0; }
.play { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border: 1px solid rgba(238,242,240,.7); border-radius: 50%; display: grid; place-items: center; background: rgba(15,18,21,.4); backdrop-filter: blur(6px); transition: transform .4s var(--ease), background .3s; }
.play svg { width: 30px; fill: var(--off); margin-left: 4px; }
.play:hover { transform: scale(1.08); background: rgba(238,242,240,.18); }
.play[disabled] { cursor: not-allowed; opacity: .55; }
.reel figcaption { display: flex; align-items: center; gap: 18px; margin-top: 2vh; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--off-2); flex-wrap: wrap; }
.reel figcaption b { color: var(--off); font-weight: 600; }

.p-cases-b { --w: auto; display: flex; align-items: center; padding-inline: 0 var(--g); }
.case-list { display: flex; gap: 3vw; align-items: stretch; height: 100%; padding-block: 2vh; }
.case-list > li { flex: 0 0 auto; width: min(32vw, 52vh); display: flex; }
.case-list > li:nth-child(even) { margin-top: 11vh; }
.case-list > li:nth-child(odd) { margin-bottom: 11vh; }
.case { width: 100%; display: flex; flex-direction: column; text-align: left; position: relative; }
.case-media { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: #0a0c0e; }
.case-media .ph-facets { transition: transform 1.2s var(--ease); }
.case:hover .case-media .ph-facets, .case:focus-visible .case-media .ph-facets { transform: scale(1.14); }
.case-media .ph-chip { position: absolute; left: 14px; top: 14px; }
.case-meta { padding-top: 2vh; display: grid; gap: .5em; }
.case-meta small { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--off-2); }
.case-meta strong { font-size: clamp(1.05rem, 1.8vw, 2rem); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; }
.case-meta strong.is-ph { color: var(--pend); font-weight: 500; }
.case-open { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid var(--line); width: max-content; padding-bottom: 4px; transition: border-color .3s; }
.case:hover .case-open { border-color: var(--off); }

.p-exp { --w: 112vw; display: grid; grid-template-columns: minmax(0, 24vw) minmax(0, 1fr); gap: 7vw; align-items: center; }
.portrait { position: relative; aspect-ratio: 3 / 4; max-height: 70vh; width: 100%; background: linear-gradient(160deg, #20262c, #101317); overflow: hidden; display: grid; place-items: end start; padding: 14px; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.exp-copy { display: grid; gap: 3.2vh; align-content: center; }
.exp-copy .title { max-width: 14ch; font-size: min(4.2vw, 8.4vh); }
.sig { font-size: 1.05rem; font-weight: 500; }
.sig small { display: block; font-weight: 300; font-size: .74rem; letter-spacing: .1em; color: var(--off-2); margin-top: 3px; }
.clients { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; max-width: 58vw; }
.clients li { width: auto; aspect-ratio: 5 / 2; display: grid; place-items: center; border: 1px dashed rgba(240,213,138,.5); color: var(--pend); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; text-align: center; padding: 6px; }
.clients li.real { position: relative; min-width: 0; min-height: 0; overflow: hidden; border: 1px solid var(--line); color: var(--off-2); }
.clients li.real img { position: absolute; inset: 0; margin: auto; max-width: 76%; max-height: 60%; width: auto; height: auto; opacity: .9; }

/* ----- Método ----- */
.p-met-a { --w: 92vw; display: flex; flex-direction: column; justify-content: center; gap: 5vh; }
.met-mega { font-size: min(7.6vw, 16vh); }
.p-met-a .lead { margin-left: 10vw; max-width: 28ch; }
.flow { position: relative; flex: 0 0 auto; width: 250vw; height: 100%; }
.flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.f-base { fill: none; stroke: rgba(238,242,240,.16); stroke-width: 1; }
.f-line { fill: none; stroke: var(--gelo); stroke-width: 2; filter: drop-shadow(0 0 8px rgba(191,227,240,.7)); }
.f-head { fill: #fff; filter: drop-shadow(0 0 10px rgba(191,227,240,1)); }
.flow-layer { position: absolute; top: 50%; font-weight: 700; text-transform: uppercase; letter-spacing: -.04em; font-size: 24vw; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(238,242,240,.07); white-space: nowrap; transform: translateY(-50%); pointer-events: none; }
.ghost-a { left: 6%; } .ghost-b { left: 58%; }
.steps { position: absolute; inset: 0; }
.node { position: absolute; width: 0; height: 0; }
.dot { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; background: var(--carbon); border: 1px solid rgba(238,242,240,.5); transform: rotate(45deg); transition: background .6s, border-color .6s, box-shadow .6s, transform .8s var(--ease); }
.node.lit .dot { background: var(--gelo); border-color: var(--gelo); box-shadow: 0 0 22px rgba(191,227,240,.85); transform: rotate(45deg) scale(1.15); }
.dot-dia { width: 54px; height: 54px; left: -27px; top: -27px; transform: none; border-radius: 50%; background: url("../assets/diamante.webp") 50% 52% / 340% auto; border: 1px solid rgba(238,242,240,.4); filter: grayscale(1) brightness(.55); }
.node.lit .dot-dia { transform: scale(1.1); filter: none; box-shadow: 0 0 46px rgba(191,227,240,.9); }
.nb { position: absolute; left: 0; top: 40px; width: min(23vw, 340px); opacity: .42; transform: translateY(10px); transition: opacity .8s, transform .9s var(--ease); }
.node.up .nb { top: auto; bottom: 40px; }
.node.lit .nb { opacity: 1; transform: none; }
.nb .n { display: block; font-size: .7rem; letter-spacing: .2em; font-weight: 500; color: var(--gelo); margin-bottom: 1.4vh; }
.nb h3 { font-weight: 600; text-transform: uppercase; letter-spacing: -.03em; line-height: 1; font-size: min(3.5vw, 7vh); }
.nb p { margin-top: 1.6vh; font-size: clamp(.86rem, 1.05vw, 1.1rem); font-weight: 300; color: var(--off-2); max-width: 26ch; }
.node.last .nb { left: auto; right: -20px; text-align: left; }

/* ----- Contato ----- */
.p-contact { --w: 100vw; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 4vw; align-items: center; overflow: hidden; }
.diam-end { right: -22vw; top: 6vh; width: 66vw; opacity: .3; }
.c-left { position: relative; z-index: 2; display: grid; gap: 2.4vh; align-content: center; }
.c-mega { font-size: min(4.7vw, 10.6vh); }
.signature { font-size: .74rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gelo); }
.c-cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.channels { display: flex; gap: 14px 28px; flex-wrap: wrap; font-size: .8rem; color: var(--off-2); }
.channels li { display: flex; align-items: center; gap: 10px; }
.channels b { color: var(--off); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .66rem; }
.channels .copy { font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--line); padding: 2px 0; }
.c-right { position: relative; z-index: 2; display: grid; gap: 3.4vh; align-content: center; max-width: 440px; }
.cform { display: grid; gap: 2vh; }
.fld { display: grid; gap: 4px; }
.fld label { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--off-2); }
.fld input, .fld textarea { font: inherit; color: var(--off); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: .6em 0; border-radius: 0; resize: none; transition: border-color .3s; }
.fld input::placeholder, .fld textarea::placeholder { color: rgba(238,242,240,.35); }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--gelo); }
.cform .cta { justify-self: start; margin-top: 1vh; }
.cform.done .fld, .cform.done #f-send { display: none; }
.f-out { font-size: .82rem; line-height: 1.5; color: var(--off-2); border-left: 2px solid var(--gelo); padding-left: 14px; }
.f-out.warn { border-color: var(--pend); color: var(--pend); }
.f-out a { text-decoration: underline; color: var(--off); }
.f-out pre { white-space: pre-wrap; font: inherit; margin: 6px 0; color: var(--off); }
.bni-box { display: none; gap: 18px; padding: 22px; border: 1px solid var(--line); background: rgba(15,18,21,.55); }
body[data-bni="1"] .bni-box { display: grid; }
.bni-msg { font-size: clamp(1rem, 1.3vw, 1.35rem); font-weight: 500; line-height: 1.35; }
.bni-qr { display: flex; align-items: center; gap: 18px; }
#qr { background: #fff; padding: 8px; width: 118px; height: 118px; flex: 0 0 auto; }
#qr img, #qr canvas { width: 100%; height: 100%; display: block; }
.bni-qr p { font-size: .8rem; color: var(--off-2); word-break: break-all; }

/* ----- HUD (progresso + anterior/próximo) ----- */
.hud { position: absolute; z-index: 40; left: 0; right: 0; bottom: 0; height: calc(var(--hud-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-inline: max(var(--g), env(safe-area-inset-left, 0px)) max(var(--g), env(safe-area-inset-right, 0px)); display: flex; align-items: center; gap: 22px; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud-btn { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: background .3s, border-color .3s, opacity .3s; background: rgba(15,18,21,.4); backdrop-filter: blur(4px); }
.hud-btn svg { width: 20px; fill: none; stroke: var(--off); stroke-width: 1.6; }
.hud-btn:hover { background: var(--off); border-color: var(--off); }
.hud-btn:hover svg { stroke: var(--noite); }
.hud-btn[disabled] { opacity: .25; pointer-events: none; }
.hud-track { position: relative; flex: 1 1 auto; height: 46px; display: flex; align-items: center; }
.hud-bar { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.hud-bar i { position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--gelo); box-shadow: 0 0 10px rgba(191,227,240,.7); }
.hud-ticks { position: absolute; inset: 0; }
.hud-tick { position: absolute; top: 0; height: 100%; transform: translateX(-1px); display: flex; flex-direction: column; justify-content: center; padding-left: 10px; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--off-2); white-space: nowrap; border-left: 1px solid var(--line); transition: color .3s, border-color .3s; }
.hud-tick.on { color: var(--off); border-color: var(--off); }
.hud-tick:hover { color: var(--off); }
.hud-tick span { transform: translateY(-14px); }

/* ----- detalhe do case ----- */
.modal { position: fixed; inset: 0; z-index: 200; }
.modal-back { position: absolute; inset: 0; background: rgba(8,9,11,.72); backdrop-filter: blur(8px); animation: fade .4s ease both; }
.modal-card { position: absolute; right: 0; top: 0; bottom: 0; width: min(680px, 100%); background: var(--carbon); border-left: 1px solid var(--line); overflow-y: auto; padding: calc(var(--nav-h) + 12px) max(var(--g), 24px) 48px; animation: slideIn .6s var(--ease) both; overscroll-behavior: contain; }
@keyframes fade { from { opacity: 0; } } @keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }
.modal-x { position: absolute; right: max(var(--g), 20px); top: calc(env(safe-area-inset-top, 0px) + 22px); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid var(--line); padding: 4px 0; }
.m-media { position: relative; aspect-ratio: 16 / 9; background: #0a0c0e; overflow: hidden; margin-bottom: 26px; }
.m-media .ph-chip { position: absolute; left: 12px; top: 12px; }
.m-media video { width: 100%; height: 100%; object-fit: cover; }
.m-tag { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--off-2); }
.modal-card h3 { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; margin: 8px 0 28px; }
.modal-card h3.is-ph { color: var(--pend); }
.m-steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.m-steps li { display: grid; grid-template-columns: 8.5em 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.m-steps b { font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gelo); padding-top: .25em; }
.m-steps span { font-size: .95rem; font-weight: 300; }
.m-steps .is-ph { color: var(--pend); }

/* ----- prévia flutuante (serviços) ----- */
.preview { position: fixed; z-index: 90; left: 0; top: 0; width: min(24vw, 400px); aspect-ratio: 16 / 10; pointer-events: none; opacity: 0; transform: translate3d(-999px, -999px, 0) scale(.92); transition: opacity .35s ease; will-change: transform; }
.preview.on { opacity: 1; }
.pv-body { position: absolute; inset: 0; overflow: hidden; border: 1px solid rgba(238,242,240,.3); background: #0a0c0e; box-shadow: 0 30px 70px -20px rgba(0,0,0,.65); }
.pv-body .ph-chip { position: absolute; left: 10px; top: 10px; }
.pv-body b { position: absolute; left: 12px; bottom: 10px; right: 12px; font-size: .78rem; font-weight: 500; letter-spacing: .02em; }
.pv-body video, .pv-body img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ----- modo BNI ----- */
.bni-hud { display: grid; gap: 3px; padding-left: 20px; border-left: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bni-row { display: flex; align-items: baseline; gap: 8px; }
.bni-stage { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gelo); }
.bni-time { font-size: 1.25rem; font-weight: 600; }
.bni-time.over { color: var(--pend); }
.bni-of, .bni-total { font-size: .7rem; color: var(--off-2); }
.bni-actions { display: flex; align-items: baseline; gap: 12px; }
.bni-actions button { font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--line); padding: 3px 0; color: var(--off-2); }
.bni-actions button:hover { color: var(--off); border-color: var(--off); }
.notes { position: fixed; z-index: 96; right: 0; top: calc(var(--nav-h) + 8px); width: min(460px, 100%); max-height: calc(100% - var(--nav-h) - 24px); overflow: auto; padding: 22px; background: rgba(12,14,17,.96); border: 1px solid var(--line); display: grid; gap: 12px; }
.notes h4 { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gelo); }
.notes-act { font-size: .86rem; color: var(--pend); }
.notes-say { font-size: .96rem; font-weight: 300; line-height: 1.6; }
.notes-warn { font-size: .7rem; color: var(--off-2); }
.notes-x, .notes-win { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid var(--line); width: max-content; padding: 3px 0; }
.notes-win { justify-self: start; }

/* ============================================================
   MOBILE / RETRATO
   ============================================================ */
@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  :root { --nav-h: 64px; --hud-h: 70px; }
  .menu { position: fixed; inset: 0; z-index: -1; background: var(--carbon); flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding: 0 max(var(--g), env(safe-area-inset-left, 0px)); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
  .menu.open { opacity: 1; visibility: visible; }
  .menu a { font-size: clamp(1.8rem, 9vw, 3rem); font-weight: 600; letter-spacing: -.03em; text-transform: uppercase; color: var(--off); padding: 6px 0; }
  .burger { display: block; z-index: 2; }
  .bni-toggle, .nav-cta { display: none; }
  .brand { z-index: 2; }

  /* Home */
  .h-copy { width: auto; right: max(var(--g), env(safe-area-inset-right, 0px)); top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 3vh); }
  .h-title { font-size: clamp(1.7rem, 8.6vw, 3.4rem); }
  .h-sub { display: none; }
  .h-band { height: auto; flex-direction: column; align-items: stretch; justify-content: center; gap: 14px; padding-block: 14px calc(14px + env(safe-area-inset-bottom, 0px)); }
  .band-text { font-size: clamp(1.15rem, 6.2vw, 2rem); }
  .h-band .cta { width: 100%; }
  .w-txt { font-size: .64rem; letter-spacing: .1em; }

  /* Site */
  .panel { padding-block: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 2vh) calc(var(--hud-h) + env(safe-area-inset-bottom, 0px) + 1.5vh); }
  .mega { font-size: min(13.2vw, 8.6vh); }
  .title { font-size: min(10vw, 7vh); }
  .lead { font-size: clamp(1rem, 4.6vw, 1.3rem); max-width: 28ch; }
  .p-sol-a { --w: 100vw; justify-content: flex-start; padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 6vh); }
  .sol-mega { font-size: min(9.4vw, 7.6vh); }
  .sol-copy { width: auto; margin: 4vh 0 0; }
  .diam { width: 150vw; right: -66vw; top: auto; bottom: 4vh; opacity: .4; }
  .p-sol-b { --w: 100vw; display: block; }
  .svc-head { padding-top: 0; margin-bottom: 2vh; gap: 1vh; }
  .svc-head .title { font-size: min(8.6vw, 6vh); }
  .svc { grid-template-columns: 1fr; gap: 6px; padding: 1.5vh 0; }
  .svc-n { font-size: clamp(.98rem, 4.6vw, 1.3rem); }
  .svc:hover .svc-n, .svc.on .svc-n { transform: none; }
  .svc-d { display: none; max-width: none; }
  .svc-pv { display: none; position: relative; height: min(46vw, 26vh); overflow: hidden; border: 1px solid var(--line); margin-top: 4px; }
  .svc.on .svc-d { display: block; }
  .svc.on .svc-pv { display: block; }
  .svc-list:hover .svc:not(:hover) { opacity: 1; }
  .svc-list.has-on .svc:not(.on) { opacity: .5; }
  .preview { display: none; }

  .p-cases-a { --w: 100vw; }
  .cases-lead { margin-left: 0; }
  .p-reel { --w: 100vw; padding-inline: var(--g); }
  .reel-frame { width: 100%; }
  .play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
  .p-cases-b { padding-inline: 0; }
  .case-list { gap: 14px; padding-inline: var(--g) 0; }
  .case-list > li { width: 78vw; }
  .case-list > li:nth-child(n) { margin: 0; }
  .case-media { flex: 0 1 46vh; }
  .p-exp { --w: 100vw; display: flex; flex-direction: column; justify-content: center; gap: 3vh; align-items: stretch; }
  .portrait { width: 34vw; max-height: 22vh; aspect-ratio: 3/4; flex: 0 0 auto; }
  .exp-copy { gap: 2vh; }
  .exp-copy .title { font-size: min(8.2vw, 5.6vh); max-width: 16ch; }
  .clients { max-width: none; gap: 8px; }
  .clients { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .clients li.real img { max-width: 90%; max-height: 72%; }
  .clients li { width: auto; padding: 2px; font-size: .52rem; letter-spacing: .04em; aspect-ratio: 5 / 3; }
  .p-met-a { --w: 100vw; }
  .met-mega { font-size: min(9.6vw, 7.6vh); }
  .p-met-a .lead { margin-left: 0; }
  .flow { width: 430vw; }
  .nb { width: 64vw; }
  .nb h3 { font-size: min(9vw, 6vh); }
  .nb p { font-size: .92rem; max-width: 26ch; }
  .flow-layer { font-size: 60vw; }
  .p-contact { --w: 200vw; display: grid; grid-template-columns: 100vw 100vw; gap: 0; align-items: center; padding-inline: 0; overflow: hidden; }
  .c-left, .c-right { padding-inline: max(var(--g), env(safe-area-inset-left, 0px)) max(var(--g), env(safe-area-inset-right, 0px)); }
  .c-mega { font-size: min(8.6vw, 6.8vh); }
  .c-left { gap: 2vh; }
  .c-cta { gap: 14px; }
  .cta { white-space: normal; text-align: left; font-size: .72rem; }
  .c-right { max-width: none; gap: 2vh; }
  .cform { gap: 1.2vh; }
  .fld textarea { rows: 2; }
  .diam-end { width: 130vw; right: -50vw; top: 20vh; opacity: .22; }
  .bni-hud { display: none; }
  .hud-tick { font-size: .56rem; padding-left: 6px; letter-spacing: .1em; }
  .hud-tick:not(.on) span { opacity: 0; }
}
@media (max-height: 560px) and (orientation: landscape) {
  :root { --nav-h: 54px; --hud-h: 58px; }
  .menu { gap: 18px; }
  .h-title { font-size: clamp(1.4rem, 3.6vw, 2.4rem); }
  .h-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .mega .l > span, .js .rv { transform: none !important; }
}

/* v3.1 — mobile: dica acima do rótulo, botão "Ver o diamante" numa linha própria */
@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  .h-hint { left: var(--lx1, 20px); transform: translate(0, -34px); }
  .h-reveal { top: calc(var(--ry, 0px) + 30px); }
}

/* v3.2 — dica com contraste alto */
.h-hint { color: #fff; font-weight: 500; padding: 9px 14px; background: rgba(12, 14, 17, .78); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); text-shadow: none; }
.h-hint .hint-dot { border-color: #fff; }
@media (max-width: 860px) { .ghost-b { left: 72%; } }
.p-reel { padding-left: var(--g, 58px); }
@media (max-width: 860px) { .p-reel { padding-left: var(--g, 20px); } }
/* v3.4 — play no canto, para não cobrir o título da capa */
.play { left: auto; top: auto; right: 28px; bottom: 28px; margin: 0; width: 72px; height: 72px; }
@media (max-width: 860px) { .play { right: 14px; bottom: 14px; width: 54px; height: 54px; } .play svg { width: 22px; } }

/* v3.6 — acentos sem corte, leitura do rótulo da Home, respiro na seção "Da estratégia à percepção" */
.mega .l { padding-top: .22em; margin-top: -.22em; padding-bottom: .16em; margin-bottom: -.16em; }
.w-txt { color: #fff; font-weight: 600; font-size: clamp(.9rem, 1.3vw, 1.3rem); letter-spacing: .13em; padding: 11px 18px; background: rgba(10, 12, 15, .8); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); text-shadow: none; }
.w-coal { color: #fff; }
@media (min-width: 861px) and (min-aspect-ratio: 1/1) {
  .p-sol-b { grid-template-columns: minmax(0, 27vw) minmax(0, 1fr); gap: 6.5vw; }
  .svc-head .title { font-size: min(4vw, 8vh); }
}
@media (max-width: 860px), (max-aspect-ratio: 1/1) { .w-txt { font-size: .74rem; letter-spacing: .09em; padding: 9px 14px; } }
@media (min-width: 861px) and (min-aspect-ratio: 1/1) { .h-hint { transform: translate(-100%, -64px); } }

/* v3.7 — frases da Home maiores e com melhor diagramação */
.w-txt { font-size: clamp(1.05rem, 1.85vw, 1.9rem); letter-spacing: .1em; font-weight: 600; padding: 14px 26px; line-height: 1.1; }
.h-follow { font-size: clamp(1.05rem, 1.9vw, 1.9rem); font-weight: 700; letter-spacing: .1em; gap: 14px; -webkit-text-stroke: 5px #232830; paint-order: stroke fill; }
.h-follow i { width: 11px; height: 11px; }
.h-hint { transform: translate(-100%, -84px); }
@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  .w-txt { font-size: .86rem; letter-spacing: .08em; padding: 10px 16px; white-space: normal; max-width: calc(100vw - 40px); line-height: 1.25; }
  .h-follow { font-size: .88rem; letter-spacing: .07em; -webkit-text-stroke: 4px #232830; gap: 10px; }
  .h-hint { transform: translate(0, -44px); }
}

/* v3.7b — rótulo em duas linhas, com barra de destaque (sem pílula) */
.w-txt { padding: 2px 0 2px 18px; background: none; border: 0; border-left: 3px solid #fff; border-radius: 0; -webkit-backdrop-filter: none; backdrop-filter: none; white-space: nowrap; text-shadow: 0 2px 18px rgba(0,0,0,.9), 0 0 3px rgba(0,0,0,.7); font-size: clamp(1.05rem, 1.7vw, 1.75rem); line-height: 1.22; max-width: none; }
.w-txt .w-coal { display: block; }
@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  .w-txt { font-size: .9rem; padding-left: 12px; white-space: nowrap; }
  .h-reveal { top: calc(var(--ry, 0px) + 36px); }
}

/* v3.8 — a pergunta virou a headline; sem rótulo estático */
@media (min-width: 861px) and (min-aspect-ratio: 1/1) { .h-hint { transform: translate(-100%, -44px); } }
@media (max-width: 860px), (max-aspect-ratio: 1/1) { .h-hint { left: var(--rx, 20px); transform: translate(-100%, -4px); } .h-reveal { top: calc(var(--ry, 0px) + 40px); } }
@media (min-width: 861px) and (min-aspect-ratio: 1/1) { .h-title .ht-l { display: block; white-space: nowrap; } }
@media (min-width: 861px) and (min-aspect-ratio: 1/1) { .h-title { font-size: clamp(1.9rem, 3.7vw, 4.4rem); } }
@media (max-width: 860px), (max-aspect-ratio: 1/1) { .h-title .ht-l { display: block; white-space: nowrap; } .h-title { font-size: clamp(1.5rem, 8vw, 3.2rem); } }
/* v3.10 — headline em duas linhas */
@media (min-width: 861px) and (min-aspect-ratio: 1/1) { .h-title { font-size: clamp(1.9rem, 3.3vw, 4rem); } }
@media (max-width: 860px), (max-aspect-ratio: 1/1) { .h-title { font-size: clamp(1.25rem, 6.4vw, 2.8rem); } }

/* v3.13 · foto do Júlio */
.portrait img { object-position: 50% 24%; }

/* v3.14 · 12 logos de clientes (placeholders) */
@media (max-height: 520px) { .portrait { max-height: 16vh; } .p-exp { gap: 1.5vh; } .exp-copy { gap: 1vh; } .clients { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; } .clients li { aspect-ratio: 5 / 1.15; padding: 2px; font-size: .5rem; line-height: 1.1; } }

/* v3.19 · prévia dos serviços com frames reais */
.pv-show { position: absolute; inset: 0; background: #0a0c0e; }
.pv-show img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .55s ease; }
.pv-show img.on { opacity: 1; }
.pv-show img.pt { object-fit: contain; }
.pv-body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(to top, rgba(8,10,12,.86), rgba(8,10,12,0)); pointer-events: none; }
.pv-body b { z-index: 2; }
.preview { width: min(28vw, 480px); }

/* v3.20 · cases com vídeo */
.case-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.case-media.is-playing video { opacity: 1; }
.case-play { position: absolute; left: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(10,12,14,.55); border: 1px solid rgba(238,242,240,.45); backdrop-filter: blur(4px); transition: opacity .3s, transform .4s var(--ease); pointer-events: none; z-index: 2; }
.case-play svg { width: 16px; height: 16px; fill: var(--off); margin-left: 2px; }
.case-media.is-playing .case-play { opacity: 0; transform: scale(.8); }
.m-media video { object-fit: contain; background: #000; }

.case-media.vid { aspect-ratio: 16 / 9; flex: 0 0 auto; width: 100%; }
.case-list > li { align-self: center; }
.case-list > li { width: min(38vw, 66vh); }
@media (max-width: 860px), (max-aspect-ratio: 1/1) { .case-list > li { width: 78vw; } }

/* v3.31 · com mouse, a prévia flutuante vale em qualquer largura de janela */
@media (hover: hover) and (pointer: fine) {
  .preview { display: block; width: clamp(240px, 28vw, 480px); }
  .svc.on .svc-pv { display: none; }
  .svc.on .svc-d { display: none; }
}

/* v3.32 · logotipo oficial no lugar do texto */
.brand { display: block; line-height: 0; }
.brand-logo { display: block; height: 64px; width: auto; max-width: none; }
@media (max-width: 860px), (max-aspect-ratio: 1/1) { .brand-logo { height: 56px; } }
@media (max-height: 560px) and (orientation: landscape) { .brand-logo { height: 38px; } }

/* v3.33 · título da Solução 15% menor */
.sol-mega { font-size: min(7.48vw, 16.15vh); }
@media (max-width: 860px), (max-aspect-ratio: 1/1) { .sol-mega { font-size: min(7.99vw, 6.46vh); } }

/* v3.34 · Método: só a linha em movimento é azul (azul da logo) */
.f-line { stroke: #44C8F4; stroke-width: 2.5; filter: drop-shadow(0 0 8px rgba(68,200,244,.7)); }
.f-head { fill: #44C8F4; filter: drop-shadow(0 0 10px rgba(68,200,244,1)); }
.node.lit .dot { background: var(--off); border-color: var(--off); box-shadow: 0 0 18px rgba(238,242,240,.45); }
.node.lit .dot-dia { box-shadow: 0 0 40px rgba(238,242,240,.55); }

/* v3.36 aprovado · cases em 4 colunas x 2 linhas (20% menores) e foto 15% maior */
@media (min-width: 861px) and (min-aspect-ratio: 1/1) {
  .p-cases-b { --rh: calc(min(36vw, 64.8vh) + 38px); }
  .case-list { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); gap: 18px 2.2vw; align-content: space-between; height: var(--rh); padding-block: 0; }
  .case-list > li, .case-list > li:nth-child(n) { width: calc((var(--rh) - 18px - 146px) / 1.125); margin: 0; align-self: start; }
  .case-meta { padding-top: .8vh; gap: .2em; }
  .case-meta strong { font-size: clamp(.9rem, 1.1vw, 1.2rem); }
  .p-exp { grid-template-columns: minmax(0, 27.6vw) minmax(0, 1fr); }
  .portrait { max-height: 80.5vh; }
}
.menu a, .menu a:hover { color: #7DD8F8; }
.menu a.on, .menu a.on:hover { color: #FFFFFF; }

/* v3.38 aprovado · ícones de redes e correção da linha clara ao lado do showreel */
.channels .ic { display: inline-flex; align-items: center; color: var(--off); letter-spacing: 0; }
.channels li:hover .ic { color: #7DD8F8; }
.reel-frame.playing { background: #000; }
.reel-frame.playing .reel-ph { display: none; }
.reel-frame iframe { left: -1px; width: calc(100% + 2px); }

/* v3.39 aprovado · celular: troca de frames a cada 1 s também com reduzir movimento (sem fade) */
@media (prefers-reduced-motion: reduce) { .svc-pv .pv-show img { transition: none !important; } }

/* v3.40 aprovado · contatos sempre em 2 colunas x 2 linhas (WhatsApp/E-mail | Instagram/Vimeo) */
.channels { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-template-columns: repeat(2, minmax(0, max-content)); gap: 14px clamp(24px, 4vw, 56px); }
.channels li { flex-wrap: wrap; min-width: 0; }
.channels li > span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  .channels { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px 16px; font-size: .68rem; }
  .channels li { gap: 4px 8px; align-content: flex-start; }
  .channels b { font-size: .6rem; flex: 0 0 100%; }
  .channels .ic { flex: 0 0 100%; }
}

/* v3.41 aprovado · celular: Contato compacto para nunca ficar sob a linha do tempo (HUD) */
@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  .c-left { gap: clamp(8px, 1.5vh, 16px); }
  .c-mega { font-size: min(8.6vw, 5.4vh); }
  .c-left .lead { font-size: clamp(.9rem, 3.7vw, 1.08rem); }
  .c-left .cta-lg { padding-block: .85em; }
  .c-left .cta-ghost { padding: .5em 0; }
  .c-cta { gap: 4px 18px; }
  .channels { gap: 12px 16px; }
}
@media (max-height: 660px) and (max-width: 860px), (max-height: 660px) and (max-aspect-ratio: 1/1) {
  .c-left .cta-ghost { display: none; }
  .c-left .signature { font-size: .62rem; letter-spacing: .18em; }
}
@media (max-height: 620px) and (max-width: 860px), (max-height: 620px) and (max-aspect-ratio: 1/1) {
  .c-mega { font-size: min(8vw, 4.5vh); }
  .c-left .lead { font-size: .84rem; line-height: 1.3; }
  .c-left .signature { display: none; }
  .c-left { gap: 8px; }
  .channels { gap: 8px 14px; }
}
