/* =========================================================
   MRH Consulting — estilos v9
   Site claro, com um único capítulo escuro (Mídia).
   Cada capítulo define as próprias cores (--bg, --fg, --fg-2...),
   e os componentes só usam esses tokens: o contraste fica garantido em qualquer fundo.
   1. Fontes e tokens  2. Base  3. Componentes  4. Navegação  5. Abertura
   6. Serviços  7. Mídia  8. Cases  9. Sobre / Método / Contato
   10. Página de cases  11. Janela de mídia  12. Rodapé  13. Movimento  14. Responsivo
   ========================================================= */

/* 1. Fontes e tokens ------------------------------------- */
@font-face{font-family:"Inter MRH";src:url("fonts/inter-400.v2.woff") format("woff");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Inter MRH";src:url("fonts/inter-700.v2.woff") format("woff");font-weight:600 900;font-style:normal;font-display:swap}
@font-face{font-family:"Inter MRH Display";src:url("fonts/inter-display-700.v2.woff") format("woff");font-weight:600 900;font-style:normal;font-display:swap}

:root{
  --white:#fff;
  --mist:#f5f5f7;
  --ink:#1d1d1f;
  --violet:#6b36c4;        /* ações (texto branco: 7,1:1) */
  --violet-hover:#5d2db0;
  --violet-deep:#4a2080;   /* painel de contato */
  --wa:#1fa855;

  --f-display:"Inter MRH Display","Inter MRH",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --f-text:"Inter MRH",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --wrap:1120px;
  --gut:clamp(20px,5vw,40px);
  --ch-pad:clamp(88px,12vw,152px);
  --r-tile:24px;
  --r-card:18px;
  --ease:cubic-bezier(.16,1,.3,1);
  --nav-h:52px;
  --shadow-card:0 1px 2px rgba(0,0,0,.05),0 14px 34px -18px rgba(0,0,0,.22);
}

/* Paletas por capítulo (todas as combinações de texto ≥ 4,5:1) */
.ch-light,body{--bg:#fff;--fg:#1d1d1f;--fg-2:#424245;--fg-3:#5e5e63;--line:#d2d2d7;--surface:#f5f5f7;--surface-2:#fff;--accent:#5b2aa8}
.ch-mist{--bg:#f5f5f7;--fg:#1d1d1f;--fg-2:#424245;--fg-3:#5e5e63;--line:#d2d2d7;--surface:#fff;--surface-2:#f5f5f7;--accent:#5b2aa8}
.ch-dark{--bg:#0b0b0d;--fg:#f5f5f7;--fg-2:#d2d2d7;--fg-3:#aeaeb3;--line:#2e2e32;--surface:#18181b;--surface-2:#202024;--accent:#c4b0ff}

/* 2. Base ------------------------------------------------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:calc(var(--nav-h) + 8px);scrollbar-color:#b8b8bf transparent}
body{margin:0;background:var(--bg);color:var(--fg);font:400 17px/1.5 var(--f-text);letter-spacing:-.011em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
h1,h2,h3,p,dl,dd,ol,ul,figure{margin:0}
ol,ul{list-style:none;padding:0}
::selection{background:#ddd0fb;color:#1d1d1f}
:focus-visible{outline:2px solid var(--violet);outline-offset:3px;border-radius:6px}
.ch-dark :focus-visible{outline-color:#c4b0ff}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sprite{position:absolute;width:0;height:0;overflow:hidden}
.skip-link{position:absolute;left:12px;top:-60px;z-index:100;background:var(--ink);color:#fff;padding:10px 16px;border-radius:999px;font-weight:600;transition:top .2s}
.skip-link:focus{top:12px}

.wrap{width:100%;max-width:calc(var(--wrap) + var(--gut)*2);margin:0 auto;padding:0 var(--gut)}
.ch{position:relative;padding:var(--ch-pad) 0;background:var(--bg);color:var(--fg);overflow:clip}

.display{font-family:var(--f-display);font-weight:700;font-size:clamp(2.5rem,6vw,4.5rem);line-height:1.05;letter-spacing:-.03em;text-wrap:balance}
.display .quiet{color:var(--fg-3)}
.lede{font-size:clamp(1.125rem,1.6vw,1.3rem);line-height:1.45;letter-spacing:-.016em;color:var(--fg-2);max-width:42ch;text-wrap:pretty}
.ch-head{display:grid;gap:22px;margin-bottom:clamp(44px,6vw,80px)}
.ch-head.center{justify-items:center;text-align:center}
.ch-head.center .lede{max-width:46ch}
.ch-head.row{grid-template-columns:1fr auto;align-items:end}
.sub-title{font-family:var(--f-display);font-weight:700;font-size:clamp(1.5rem,2.4vw,2rem);letter-spacing:-.022em;line-height:1.12}

/* 3. Componentes ----------------------------------------- */
.btn{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:0 24px;border-radius:999px;font-weight:600;font-size:17px;letter-spacing:-.01em;transition:background-color .25s var(--ease),transform .25s var(--ease)}
.btn svg{width:20px;height:20px;fill:currentColor}
.btn-violet{background:var(--violet);color:#fff}
.btn-violet:hover{background:var(--violet-hover);transform:translateY(-1px)}
.btn-violet:active{transform:scale(.98)}
.more{display:inline-flex;align-items:center;gap:2px;font-size:17px;color:var(--accent)}
.more svg{width:16px;height:16px;transition:transform .25s var(--ease)}
.more:hover{text-decoration:underline;text-underline-offset:3px}
.more:hover svg{transform:translateX(3px)}

/* 4. Navegação -------------------------------------------- */
.gnav{position:sticky;top:0;z-index:50;height:var(--nav-h);background:rgba(255,255,255,.82);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);color:var(--ink);border-bottom:1px solid rgba(0,0,0,.08)}
.gnav-inner{max-width:calc(var(--wrap) + var(--gut)*2);height:100%;margin:0 auto;padding:0 var(--gut);display:flex;align-items:center;gap:28px}
.brand img{height:30px;width:auto}
.nav-main{display:flex;gap:28px;margin-left:auto;font-size:14px}
.nav-main a{color:#424245;transition:color .2s}
.nav-main a:hover,.nav-main a.is-active{color:#000}
.nav-main a.is-active{font-weight:600}
.gnav-cta{font-size:14px;font-weight:600;background:var(--violet);color:#fff;padding:7px 15px;border-radius:999px;transition:background-color .2s}
.gnav-cta:hover{background:var(--violet-hover)}
.menu{display:none;width:40px;height:40px;margin-right:-10px;position:relative}
.menu-bar{position:absolute;left:12px;width:16px;height:1.5px;background:var(--ink);border-radius:2px;transition:transform .35s var(--ease)}
.menu-bar:first-child{top:16px}.menu-bar:last-child{top:23px}
.menu[aria-expanded="true"] .menu-bar:first-child{transform:translateY(3.5px) rotate(45deg)}
.menu[aria-expanded="true"] .menu-bar:last-child{transform:translateY(-3.5px) rotate(-45deg)}
.mobile-nav{display:none}

/* 5. Abertura --------------------------------------------- */
.hero{padding:clamp(64px,9vw,112px) 0 clamp(64px,8vw,104px);text-align:center}
.hero-copy{display:grid;justify-items:center;gap:26px}
.hero-title{font-family:var(--f-display);font-weight:700;font-size:clamp(3rem,9.5vw,6rem);line-height:1;letter-spacing:-.04em}
.hero-title .hl{display:inline-block}
.hero-title .hl-2{color:var(--violet)}
.hero-sub{font-size:clamp(1.125rem,1.7vw,1.35rem);line-height:1.45;letter-spacing:-.016em;color:var(--fg-2);max-width:40ch;text-wrap:balance}
.hero-actions{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:16px 28px}

/* vitrine: três projetos reais, o do meio em destaque */
.showcase{position:relative;height:calc(min(100vw - var(--gut) * 2,var(--wrap)) * .58 * .5625 + 4px);margin:clamp(56px,7vw,88px) auto 0;--p:0}
.sc-item{position:absolute;left:50%;bottom:0;width:58%;border-radius:20px;overflow:hidden;background:#111;box-shadow:0 2px 4px rgba(0,0,0,.06),0 30px 60px -28px rgba(29,29,31,.45);transition:box-shadow .4s var(--ease)!important}
.sc-center{z-index:2;transform:translateX(-50%) translateY(calc(var(--p) * -14px))}
.sc-left,.sc-right{width:44%;bottom:6%;opacity:.96}
.sc-left{transform:translateX(calc(-50% - 62% - var(--p) * 22%))}
.sc-right{transform:translateX(calc(-50% + 62% + var(--p) * 22%))}
.sc-item:hover{box-shadow:0 2px 4px rgba(0,0,0,.06),0 40px 70px -26px rgba(29,29,31,.55)}
.sc-chip{position:absolute;left:14px;bottom:14px;display:inline-flex;align-items:center;gap:8px;padding:7px 14px 7px 8px;border-radius:999px;background:rgba(255,255,255,.94);color:var(--ink);font-size:14px;font-weight:600;box-shadow:0 6px 16px -8px rgba(0,0,0,.45)}
.sc-chip svg{width:26px;height:26px;padding:7px 6px 7px 8px;border-radius:50%;background:var(--ink);color:#fff}
.sc-chip .case-cat{color:inherit;font-size:inherit;letter-spacing:0}
.showcase-note{margin-top:22px;font-size:14px;color:var(--fg-3)}
.hero-proof{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:16px 32px;margin-top:clamp(56px,7vw,80px);padding-top:clamp(32px,4vw,44px);border-top:1px solid var(--line);color:var(--fg-2);font-size:16px}
.hero-proof b{color:var(--fg)}
.proof-logos{display:flex;align-items:center;gap:36px}
.proof-logos img{height:32px;width:auto}

/* 6. Serviços --------------------------------------------- */
.services .ch-head{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);align-items:end;gap:24px 64px}
.seg{display:inline-flex;gap:4px;padding:4px;background:#e8e8ed;border-radius:999px;max-width:100%;overflow-x:auto;scrollbar-width:none}
.seg::-webkit-scrollbar{display:none}
.seg-btn{flex:none;padding:10px 18px;border-radius:999px;font-size:15px;font-weight:600;color:#424245;white-space:nowrap;transition:color .25s,background-color .25s,box-shadow .25s}
.seg-btn:hover{color:#000}
.seg-btn[aria-selected="true"]{background:#fff;color:#000;box-shadow:0 2px 8px -2px rgba(0,0,0,.14),0 1px 2px rgba(0,0,0,.06)}
.panels{margin-top:24px}
.panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:clamp(32px,5vw,72px);align-items:center;background:var(--surface);border-radius:var(--r-tile);padding:clamp(28px,4.5vw,56px);box-shadow:var(--shadow-card)}
.panel+.panel{margin-top:16px}
.js .panel{display:none}
.js .panel.is-active{display:grid;animation:panel-in .6s var(--ease) both}
.panel-copy{display:grid;gap:16px;align-content:center}
.panel-copy h3{font-size:17px;font-weight:600;color:var(--accent)}
.panel .claim{font-family:var(--f-display);font-weight:700;font-size:clamp(1.75rem,3.2vw,2.5rem);line-height:1.08;letter-spacing:-.028em;text-wrap:balance}
.panel-copy p:not(.claim):not(.facets){color:var(--fg-2);max-width:46ch}
.facets{font-size:14px;color:var(--fg-3)}
.panel-art{position:relative;aspect-ratio:4/3;border-radius:18px;background:var(--surface-2);display:grid;place-items:center;overflow:hidden}

/* artes (geometria, sem texto inventado) */
.mini-chart{width:78%;display:grid;gap:14px}
.mc-label{font-size:13px;font-weight:600;color:var(--fg-2)}
.mini-chart svg{width:100%;overflow:visible}
.mc-goal{stroke:#b8b8bf;stroke-width:2;stroke-dasharray:6 7}
.mc-line{fill:none;stroke:var(--violet);stroke-width:5;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1}
.mc-dot{fill:var(--violet);opacity:0}
.is-active .mc-line{animation:draw 1.6s var(--ease) .15s forwards}
.is-active .mc-dot{animation:fade .4s 1.5s forwards}
.mc-status{justify-self:end;font-size:13px;font-weight:600;color:#126b36;background:#dff3e6;padding:5px 12px;border-radius:999px}

.chat{width:84%;display:grid;gap:10px}
.bubble{max-width:84%;padding:11px 15px;border-radius:18px;font-size:14px;line-height:1.35}
.bubble.me{justify-self:end;background:var(--violet);color:#fff;border-bottom-right-radius:6px}
.bubble.ai{justify-self:start;background:#fff;color:var(--ink);border-bottom-left-radius:6px;display:grid;gap:7px;min-width:58%;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.bubble.ai b{font-size:12px;color:#424245;font-weight:600}
.bubble.ai i{display:block;height:7px;border-radius:4px;background:#d2d2d7}
.bubble.ai i.short{width:60%}
.bubble.done{display:block}
.bubble.done b{font-size:14px;color:var(--ink)}
.is-active .bubble{animation:rise .6s var(--ease) both}
.is-active .bubble:nth-child(2){animation-delay:.25s}.is-active .bubble:nth-child(3){animation-delay:.5s}.is-active .bubble:nth-child(4){animation-delay:.75s}

.browser{width:84%;border-radius:12px;background:#fff;border:1px solid #d2d2d7;overflow:hidden;box-shadow:0 18px 40px -24px rgba(0,0,0,.35)}
.b-bar{display:flex;align-items:center;gap:6px;padding:10px 12px;background:#ececf0}
.b-bar i{width:9px;height:9px;border-radius:50%;background:#c7c7cc}
.b-bar span{flex:1;height:14px;margin-left:12px;border-radius:7px;background:#dcdce1}
.b-body{padding:20px;display:grid;gap:18px}
.b-hero{display:grid;gap:9px;padding:18px;border-radius:10px;background:#1d1d1f}
.b-hero i{display:block;height:10px;border-radius:5px;background:rgba(255,255,255,.9)}
.b-hero .t1{width:70%;height:14px}.b-hero .t2{width:48%;background:rgba(255,255,255,.5)}
.b-hero .cta{width:72px;height:20px;border-radius:10px;background:var(--violet);margin-top:6px}
.b-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.b-grid i{height:54px;border-radius:8px;background:#ececf0}
.is-active .b-grid i{animation:rise .6s var(--ease) both}
.is-active .b-grid i:nth-child(2){animation-delay:.1s}.is-active .b-grid i:nth-child(3){animation-delay:.2s}

.dash{width:80%;display:grid;gap:18px}
.d-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.d-kpis i{height:52px;border-radius:10px;background:#fff;position:relative;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.d-kpis i::after{content:"";position:absolute;left:12px;bottom:12px;width:46%;height:10px;border-radius:5px;background:var(--ink)}
.d-kpis i:first-child::after{background:var(--violet)}
.d-bars{height:140px;display:flex;align-items:flex-end;gap:10px;border-bottom:1px solid #c7c7cc;padding-bottom:2px}
.d-bars i{flex:1;border-radius:6px 6px 2px 2px;background:#c9b6f0;transform-origin:bottom}
.d-bars i:nth-child(1){height:34%}.d-bars i:nth-child(2){height:48%}.d-bars i:nth-child(3){height:42%}.d-bars i:nth-child(4){height:61%}
.d-bars i:nth-child(5){height:56%}.d-bars i:nth-child(6){height:74%}.d-bars i:nth-child(7){height:82%}.d-bars i:nth-child(8){height:96%;background:var(--violet)}
.is-active .d-bars i{animation:grow .9s var(--ease) both}
.is-active .d-bars i:nth-child(n+5){animation-delay:.12s}

.trail{width:80%;display:grid;gap:12px;counter-reset:t}
.trail li{display:grid;grid-template-columns:40px 1fr;column-gap:14px;align-items:center;padding:14px 16px;border-radius:14px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.trail li::before{counter-increment:t;content:counter(t);grid-row:span 2;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font-weight:700;background:#efe9fb;color:#5b2aa8}
.trail li:last-child{background:var(--violet);color:#fff}
.trail li:last-child::before{background:rgba(255,255,255,.2);color:#fff}
.trail b{font-size:16px}
.trail span{font-size:13px;color:#424245}
.trail li:last-child span{color:#fff}
.is-active .trail li{animation:rise .6s var(--ease) both}
.is-active .trail li:nth-child(2){animation-delay:.12s}.is-active .trail li:nth-child(3){animation-delay:.24s}

/* 7. Mídia (único capítulo escuro) ------------------------ */
.flight{background:var(--surface);border-radius:var(--r-tile);padding:clamp(20px,4vw,48px) clamp(16px,4vw,48px) clamp(20px,3vw,32px)}
.flight svg{width:100%;height:auto;overflow:visible}
.f-grid line{stroke:#2e2e32;stroke-width:1}
.f-axis text,.f-goal-t{fill:#aeaeb3;font-size:15px;font-family:var(--f-text)}
.f-goal{stroke:#5e5e63;stroke-width:2;stroke-dasharray:8 9}
.f-area{fill:url(#flightFill);opacity:0;transition:opacity 1.2s ease .9s}
.f-line{fill:none;stroke:#b394ff;stroke-width:5;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 2.2s var(--ease) .2s}
.f-end{opacity:0;transition:opacity .5s ease 2s}
.f-end rect{fill:var(--violet)}
.f-end text{fill:#fff;font-size:14px;font-weight:600;font-family:var(--f-text)}
.f-end circle{fill:#fff;stroke:var(--violet);stroke-width:4}
.flight.on .f-line,html:not(.js) .f-line{stroke-dashoffset:0}
.flight.on .f-area,.flight.on .f-end,html:not(.js) .f-area,html:not(.js) .f-end{opacity:1}
.flight figcaption{margin-top:20px;font-size:14px;color:var(--fg-3);text-align:center}

.results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(48px,6vw,80px) clamp(32px,6vw,96px);margin-top:clamp(72px,9vw,120px)}
.result dt{font-family:var(--f-display);font-weight:700;font-size:clamp(2rem,4.2vw,3.4rem);line-height:1.04;letter-spacing:-.032em}
.result dt em{font-style:normal;color:var(--accent)}
.result dd{margin-top:14px;color:var(--fg-2);max-width:40ch}

.fronts{margin-top:clamp(88px,11vw,140px)}
.fronts ul{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:28px;border-top:1px solid var(--line)}
.fronts li{display:grid;gap:10px;align-content:start;padding:28px 28px 0 0}
.fronts li+li{padding-left:28px;border-left:1px solid var(--line)}
.fronts b{font-size:19px;letter-spacing:-.018em}
.fronts span{font-size:15px;color:var(--fg-2)}

.sides{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:clamp(64px,8vw,104px)}
.side{background:var(--surface);border-radius:var(--r-card);padding:28px;display:grid;gap:6px}
.side span{font-size:14px;color:var(--accent);font-weight:600}
.side b{font-family:var(--f-display);font-size:clamp(1.25rem,2vw,1.6rem);letter-spacing:-.022em;line-height:1.15}
.stack{display:grid;justify-items:center;gap:16px;margin-top:32px;text-align:center}
.stack p{font-size:15px;color:var(--fg-2);text-wrap:balance}
.stack-list{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-width:760px}
.stack-list li{font-size:13px;color:var(--fg-2);background:var(--surface);border-radius:999px;padding:6px 12px}
.nw{white-space:nowrap}
.midia-cta{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:16px 28px;margin-top:52px}

/* 8. Cases ------------------------------------------------ */
.rail-nav{display:flex;gap:12px}
.rail-btn{width:44px;height:44px;border-radius:50%;background:#e8e8ed;color:var(--ink);display:grid;place-items:center;transition:background-color .2s,opacity .2s}
.rail-btn:hover{background:#dcdce1}
.rail-btn:disabled{opacity:.35;cursor:default}
.rail-btn svg{width:20px;height:20px}
.rail-btn[data-rail="-1"] svg{transform:scaleX(-1)}
.rail{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding:8px max(var(--gut),calc((100vw - var(--wrap)) / 2)) 28px;scroll-padding-inline:max(var(--gut),calc((100vw - var(--wrap)) / 2));scrollbar-width:none}
.rail::-webkit-scrollbar{display:none}
.rail .case-card{flex:0 0 clamp(280px,32vw,380px);scroll-snap-align:start}

.case-card{display:flex;flex-direction:column;background:var(--surface);border-radius:var(--r-card);overflow:hidden;transition:transform .45s var(--ease),box-shadow .45s var(--ease)}
.case-card:not(.sc-item):hover{transform:translateY(-4px);box-shadow:var(--shadow-card)}
.case-thumb{position:relative;display:block;width:100%;aspect-ratio:16/9;overflow:hidden;background:#111}
.case-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .8s var(--ease)}
.case-card:hover .case-thumb img{transform:scale(1.03)}
.case-thumb.is-audio{background:#1b1430}
.case-thumb.is-audio img{object-fit:contain;padding:14px}
.case-play{position:absolute;left:14px;bottom:14px;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.95);color:#000;box-shadow:0 8px 20px -8px rgba(0,0,0,.5);transition:transform .3s var(--ease)}
.case-play svg{width:18px;height:18px;margin-left:2px}
.case-thumb:hover .case-play{transform:scale(1.08)}
.case-badge{position:absolute;right:12px;top:12px;font-size:12px;font-weight:600;color:#fff;background:rgba(0,0,0,.72);padding:5px 10px;border-radius:999px}
.case-body{display:grid;gap:8px;padding:22px 24px 26px;align-content:start}
.case-cat{font-size:13px;font-weight:600;color:var(--accent)}
.case-title{font-size:21px;line-height:1.2;letter-spacing:-.02em;font-weight:700}
.case-sub{display:block;font-weight:400;color:var(--fg-2)}
.case-desc{font-size:15px;color:var(--fg-2);display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.case-all{background:var(--violet)!important;color:#fff}
.case-all a{display:grid;align-content:end;gap:12px;height:100%;min-height:340px;padding:32px}
.case-all b{font-family:var(--f-display);font-size:clamp(2.5rem,4vw,3.25rem);letter-spacing:-.035em;line-height:1}
.case-all span,.case-all .more{color:#fff}

/* 9. Sobre / Método / Contato ----------------------------- */
.about-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(40px,7vw,104px);align-items:center}
.portrait{border-radius:var(--r-tile);overflow:hidden;background:#2a2a2d;aspect-ratio:618/773;box-shadow:var(--shadow-card)}
.portrait img{width:100%;height:100%;object-fit:cover}
.about-copy{display:grid;gap:20px;align-content:center}
.about-role{color:var(--accent);font-weight:600;margin-top:-8px}
.about-points{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 32px;margin:12px 0 8px;padding-top:28px;border-top:1px solid var(--line)}
.about-points dt{font-weight:600}
.about-points dd{margin-top:4px;font-size:15px;color:var(--fg-2)}

.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.steps li{background:var(--surface);border-radius:var(--r-tile);padding:clamp(28px,3.5vw,44px);display:grid;gap:12px;align-content:start}
.step-n{font-family:var(--f-display);font-weight:700;font-size:64px;line-height:1;letter-spacing:-.04em;color:var(--violet);margin-bottom:16px}
.steps b{font-size:21px;letter-spacing:-.02em}
.steps p{color:var(--fg-2)}

.contact{padding-top:0}
.contact-panel{display:grid;justify-items:center;gap:22px;text-align:center;background:var(--violet-deep);color:#fff;border-radius:32px;padding:clamp(56px,8vw,104px) clamp(20px,5vw,72px)}
.contact-panel .display .quiet{color:#d9cdf5}
.contact-panel .lede{color:#ece6fb}
.contact-links{width:100%;max-width:620px;margin-top:20px;display:grid;gap:12px;text-align:left}
.contact-links a{display:grid;grid-template-columns:28px 1fr 20px;align-items:center;gap:18px;padding:20px 24px;border-radius:var(--r-card);background:#fff;color:var(--ink);transition:transform .35s var(--ease),box-shadow .35s var(--ease)}
.contact-links a:hover{transform:translateY(-2px);box-shadow:0 18px 36px -18px rgba(0,0,0,.5)}
.contact-links svg{width:26px;height:26px;fill:currentColor;color:var(--violet)}
.contact-links li:first-child svg:first-child{color:var(--wa)}
.contact-links span{display:grid;font-size:15px;color:#424245;overflow-wrap:anywhere}
.contact-links b{font-size:19px;color:var(--ink);letter-spacing:-.018em}
.contact-links .go{width:20px;height:20px;color:#86868b;fill:none}

/* 10. Página de cases / 404 ------------------------------- */
.page-hero{padding:clamp(64px,9vw,112px) 0 clamp(36px,5vw,56px);text-align:center}
.page-hero .display{font-size:clamp(2.75rem,7vw,4.75rem)}
.page-hero .lede{margin:22px auto 0;max-width:44ch}
.case-filters{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:36px auto 0}
.case-filter{padding:9px 16px;border-radius:999px;background:var(--mist);font-size:14px;font-weight:600;color:#424245;transition:background-color .2s,color .2s}
.case-filter span{color:#5e5e63;font-weight:400;margin-left:2px}
.case-filter:hover{color:#000;background:#ebebef}
.case-filter[aria-pressed="true"]{background:var(--ink);color:#fff}
.case-filter[aria-pressed="true"] span{color:#d2d2d7}
.cases-page{padding-top:0}
.case-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.case-grid .case-title{font-size:19px}
.case-grid .case-body{padding:20px 20px 24px}
.case-grid .case-card[hidden]{display:none}
.case-grid .case-desc{-webkit-line-clamp:4;line-clamp:4}
.case-thumb-bg,.case-cover{display:none}
.case-thumb.is-audio .case-cover{display:block}
.notfound{text-align:center;padding:clamp(120px,16vw,200px) 0}
.notfound .lede{margin:22px auto 34px}

/* 11. Janela de mídia ------------------------------------- */
.video-modal{width:min(960px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:22px;background:#fff;color:var(--ink);overflow:auto;box-shadow:0 40px 120px -20px rgba(0,0,0,.45)}
.video-modal::backdrop{background:rgba(29,29,31,.55);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.video-modal[open]{animation:modal-in .5s var(--ease)}
.modal-open body{overflow:hidden}
.vm-head{display:flex;align-items:center;justify-content:space-between;padding:14px 14px 14px 24px}
.vm-cat{font-size:13px;font-weight:600;color:#5b2aa8}
.vm-close{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#e8e8ed;color:var(--ink);transition:background-color .2s}
.vm-close:hover{background:#dcdce1}
.vm-frame{aspect-ratio:16/9;background:#000}
.vm-frame[hidden]{display:none}
.vm-frame iframe{width:100%;height:100%;border:0;display:block}
.vm-local{display:grid;place-items:center;height:100%;padding:24px;text-align:center;color:#d2d2d7}
.vm-audio{display:grid;grid-template-columns:200px 1fr;gap:28px;align-items:center;padding:12px 28px 4px}
.vm-audio[hidden]{display:none}
.vm-cover{width:200px;height:200px;border-radius:16px;object-fit:cover}
.vm-player{display:flex;align-items:center;gap:18px}
.vm-play{flex:none;width:56px;height:56px;border-radius:50%;background:var(--violet);color:#fff;display:grid;place-items:center}
.vm-play svg{width:22px;height:22px}
.vm-play .i-pause,.vm-play.is-playing .i-play{display:none}
.vm-play.is-playing .i-pause{display:block}
.vm-track{flex:1;display:grid;gap:6px}
.vm-track input{width:100%;accent-color:var(--violet)}
.vm-times{display:flex;justify-content:space-between;font-size:12px;color:#5e5e63;font-variant-numeric:tabular-nums}
.vm-info{padding:20px 28px 28px;display:grid;gap:10px}
.vm-info h3{font-size:22px;letter-spacing:-.02em}
.vm-info p{color:#424245;max-width:68ch}
.vm-lyrics-btn{justify-self:start;color:#5b2aa8;font-weight:600}
.vm-lyrics{display:grid;gap:14px;color:#424245;font-size:15px}
.vm-lyrics[hidden]{display:none}
.vm-lyrics strong{display:block;color:var(--ink)}

/* 12. Rodapé ---------------------------------------------- */
.gfoot{background:var(--mist);color:#424245;font-size:13px;padding:40px 0 48px}
.gfoot-row{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-bottom:24px;border-bottom:1px solid #d2d2d7}
.gfoot-row img{height:30px;width:auto}
.gfoot-links{display:flex;flex-wrap:wrap;gap:8px 24px}
.gfoot-links a:hover{color:#000;text-decoration:underline;text-underline-offset:3px}
.gfoot-legal{padding-top:20px;color:#5e5e63}

/* 13. Movimento ------------------------------------------- */
@keyframes draw{to{stroke-dashoffset:0}}
@keyframes fade{to{opacity:1}}
@keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes grow{from{transform:scaleY(.08)}to{transform:none}}
@keyframes panel-in{from{opacity:0;transform:translateY(10px) scale(.99)}to{opacity:1;transform:none}}
@keyframes modal-in{from{opacity:0;transform:translateY(24px) scale(.97)}to{opacity:1;transform:none}}
@keyframes title-in{from{opacity:0;transform:translateY(24px);filter:blur(8px)}to{opacity:1;transform:none;filter:none}}
@keyframes rise-big{from{opacity:0;translate:0 60px}to{opacity:1;translate:0 0}}

.js .hero-title .hl{animation:title-in 1s var(--ease) both}
.js .hero-title .hl-2{animation-delay:.1s}
.js .hero-sub,.js .hero-actions{animation:title-in .9s var(--ease) .25s both}
.js .sc-center{animation:rise-big 1.2s var(--ease) .4s both}
.js .sc-left,.js .sc-right{animation:rise-big 1.2s var(--ease) .6s both}
.js .showcase-note,.js .hero-proof{animation:title-in 1s var(--ease) .9s both}

.js [data-reveal]{opacity:0;transform:translateY(28px);transition:opacity .9s var(--ease),transform .9s var(--ease)}
.js [data-reveal].on{opacity:1;transform:none}

/* 14. Responsivo ------------------------------------------ */
@media (max-width:1068px){
  .fronts ul{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fronts li:nth-child(3){padding-left:0;border-left:0}
  .fronts li:nth-child(n+3){border-top:1px solid var(--line);margin-top:28px}
  .case-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:860px){
  .nav-main,.gnav-cta{display:none}
  .menu{display:block;margin-left:auto}
  .mobile-nav{display:grid;position:absolute;left:0;right:0;top:var(--nav-h);background:rgba(255,255,255,.97);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);padding:8px var(--gut) 28px;border-bottom:1px solid #d2d2d7;clip-path:inset(0 0 100% 0);visibility:hidden;transition:clip-path .45s var(--ease),visibility 0s linear .45s}
  .mobile-nav.open{clip-path:inset(0 0 0 0);visibility:visible;transition:clip-path .45s var(--ease)}
  .mobile-nav a{font-family:var(--f-display);font-weight:700;font-size:28px;letter-spacing:-.025em;padding:10px 0;color:var(--ink)}
  .services .ch-head,.ch-head.row{grid-template-columns:1fr}
  .rail-nav{display:none}
  .panel{grid-template-columns:1fr}
  .panel-art{order:-1}
  .about-grid{grid-template-columns:1fr}
  .portrait{max-width:420px}
  .steps{grid-template-columns:1fr}
  .sides{grid-template-columns:1fr}
  .showcase{height:auto;display:grid;gap:14px}
  .sc-item,.sc-center,.sc-left,.sc-right{position:relative;left:auto;bottom:auto;width:100%;transform:none;opacity:1}
  .sc-left,.sc-right{display:none}
}
@media (max-width:640px){
  body{font-size:16px}
  .results{grid-template-columns:1fr}
  .fronts ul{grid-template-columns:1fr}
  .fronts li,.fronts li+li{padding:24px 0 0;border-left:0}
  .fronts li+li{border-top:1px solid var(--line);margin-top:24px}
  .about-points{grid-template-columns:1fr}
  .case-grid{grid-template-columns:1fr}
  .proof-logos{gap:24px}
  .proof-logos img{height:26px}
  .gfoot-row{flex-direction:column;align-items:flex-start}
  .vm-audio{grid-template-columns:1fr;justify-items:center}
  .vm-player{width:100%}
  .contact-links a{padding:18px}
  .hero-actions .btn{width:100%;justify-content:center;max-width:340px}
  .f-axis text,.f-goal-t{font-size:28px}
  .f-end rect,.f-end text{display:none}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-delay:0s!important;transition-duration:.01ms!important}
  .js [data-reveal]{opacity:1;transform:none}
}
.case-desc[hidden]{display:none}
.sc-right .sc-chip{left:auto;right:14px}

/* Celular: ajustes finos de layout ------------------------ */
@media (max-width:860px){
  /* abas viram fichas que quebram linha: nenhuma opção fica escondida */
  .seg{display:flex;flex-wrap:wrap;gap:8px;padding:0;background:none;border-radius:0;overflow:visible}
  .seg-btn{padding:9px 14px;font-size:14px;background:#e8e8ed}
  .seg-btn[aria-selected="true"]{background:var(--ink);color:#fff;box-shadow:none}
  .case-filters{gap:6px}
  .case-filter{padding:8px 13px;font-size:13px}
}
@media (max-width:640px){
  :root{--ch-pad:64px}
  .display{font-size:clamp(2rem,9.2vw,2.4rem);line-height:1.08}
  .page-hero .display{font-size:clamp(2.2rem,10vw,2.6rem)}
  .ch-head{gap:16px;margin-bottom:36px}
  .lede{font-size:1.0625rem}
  .hero{padding:48px 0 56px}
  .hero-copy{gap:22px}
  .showcase{margin-top:44px}
  .hero-proof{margin-top:44px;padding-top:28px;gap:14px 24px;font-size:15px}
  .panel{padding:22px;gap:24px}
  .panel .claim{font-size:1.6rem}
  .flight{padding:16px 12px 18px}
  .f-axis text{font-size:34px}
  .f-goal-t{display:none}
  .results{gap:40px;margin-top:56px}
  .result dt{font-size:1.85rem}
  .fronts{margin-top:64px}
  .sides{margin-top:48px}
  .side{padding:20px 22px}
  .midia-cta{margin-top:40px}
  .rail .case-card{flex-basis:82%}
  .case-all a{min-height:260px}
  .about-grid{gap:32px}
  .portrait{max-width:none;aspect-ratio:1/1}
  .portrait img{object-position:50% 18%}
  .about-points{gap:18px}
  .steps{gap:10px}
  .steps li{grid-template-columns:44px 1fr;column-gap:14px;row-gap:4px;padding:20px 22px}
  .step-n{grid-row:span 2;font-size:40px;margin:0}
  .steps b{font-size:18px;align-self:end}
  .steps p{font-size:15px}
  .contact-panel{border-radius:24px;padding:44px 18px}
  .contact-links a{padding:16px 18px;gap:14px}
  .gfoot-links{display:grid;grid-template-columns:repeat(3,auto);justify-content:start;gap:10px 28px}
}

/* Página de cases: grupos por categoria (o mais recente primeiro em cada grupo) */
.case-groups{display:grid;gap:clamp(56px,7vw,88px)}
.case-group[hidden]{display:none}
.case-group-title{font-family:var(--f-display);font-weight:700;font-size:clamp(1.6rem,2.6vw,2.1rem);letter-spacing:-.025em;line-height:1.1;margin-bottom:22px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.case-group-title span{font-family:var(--f-text);font-weight:400;font-size:.55em;letter-spacing:0;color:var(--fg-3);margin-left:6px;vertical-align:middle}
.case-group .case-cat{display:none}
@media (max-width:640px){.case-groups{gap:48px}.case-group-title{margin-bottom:16px;padding-bottom:12px}}
