/* =========================================================================
   Horvysa — estilos do site
   Tokens em tokens.css. O preloader tem estilos próprios, inline no <head>.
   Índice: base · componentes · cabeçalho · palco 3D · seções · soluções
           (palco de demonstração, navegador, celular, painel) · estudos
           · diálogo · processo · contato/briefing · rodapé · revelação
           · responsivo · movimento reduzido
   ========================================================================= */

/* ---------- Base ---------- */
html.js body { visibility: visible; } /* guarda do preloader contra flash sem estilo */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--hz-graphite);
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--hz-graphite);
  color: var(--hz-white);
  font: 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[class], ol[class], .site-footer ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--hz-orange); color: var(--hz-graphite); }
:focus-visible { outline: 2px solid var(--hz-orange); outline-offset: 3px; border-radius: 6px; }
.section--contact :focus-visible { outline-color: var(--hz-graphite); }
.section--contact .brief :focus-visible { outline-color: var(--hz-orange); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

.skip {
  position: fixed; top: 12px; left: 16px; z-index: 300;
  padding: 12px 18px; border-radius: 100px;
  background: var(--hz-orange); color: var(--hz-graphite); font-weight: 700;
  transform: translateY(-180%); transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- Tipografia e componentes ---------- */
.h2 { font: 600 var(--fs-h2)/1.04 var(--font-display); letter-spacing: -.035em; text-wrap: balance; }
.h3 { font: 600 var(--fs-h3)/1.15 var(--font-display); letter-spacing: -.025em; text-wrap: balance; }
.hl { color: var(--hz-orange); }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--hz-muted-dark); max-width: 46ch; }

.link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s var(--ease), color .2s;
  padding-bottom: 2px;
}
.link:hover { background-size: 100% 1px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 650; padding: 6px 0;
  background: linear-gradient(var(--hz-orange), var(--hz-orange)) 0 100% / 100% 2px no-repeat;
  transition: background-size .35s var(--ease);
}
.link-arrow span { transition: transform .35s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }
.link-arrow:hover { background-size: 40% 2px; }

.btn {
  --bg: transparent; --fg: currentColor; --bd: transparent; --fill: transparent;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid var(--bd); border-radius: 100px;
  background: var(--bg); color: var(--fg);
  font: 650 15px/1.2 var(--font-sans); white-space: nowrap;
  /* efeito magnético (interactions.js) e pressão usam propriedades separadas */
  translate: calc(var(--mx, 0) * 1px) calc(var(--my, 0) * 1px);
  transition: background-color var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease), border-color var(--dur-hover) var(--ease),
              box-shadow var(--dur-hover) var(--ease), scale var(--dur-press) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
/* Preenchimento: entra da esquerda no hover e sai pela direita */
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: var(--fill);
  clip-path: inset(0 0 0 100% round 100px);
  transition: clip-path var(--dur-hover) var(--ease);
}
.btn:hover::before { clip-path: inset(0 0 0 0 round 100px); }
.btn:active { scale: .97; }
/* Seta: sai pela direita e reentra pela esquerda */
.btn__arrow {
  display: inline-block; width: 1.05em; overflow: hidden; text-align: left; line-height: 1.2;
  text-indent: 0; text-shadow: -1.2em 0 0 currentColor;
  transition: text-indent var(--dur-hover) var(--ease);
}
.btn:hover .btn__arrow { text-indent: 1.2em; }
.btn:focus-visible { outline-offset: 4px; }
.btn--primary { --bg: var(--hz-orange); --fg: var(--hz-graphite); --fill: var(--hz-orange-hover); }
.btn--primary:hover { box-shadow: 0 14px 34px -14px var(--hz-orange-glow); }
.btn--primary:active { --bg: var(--hz-orange-press); --fill: var(--hz-orange-press); }
.btn--ghost { --fg: var(--hz-white); --bd: rgba(255, 255, 255, .3); --fill: rgba(255, 255, 255, .1); }
.btn--ghost:hover { --bd: var(--hz-white); }
.btn--dark { --bg: var(--hz-graphite); --fg: var(--hz-white); --fill: var(--hz-ink-4); }
.btn--dark:hover .btn__arrow { color: var(--hz-orange); }
.btn--quiet { --fg: inherit; padding-inline: 14px; --fill: rgba(24, 24, 27, .07); }
/* Magnético: a área de clique fica parada enquanto o botão se desloca (no máximo 6 px) */
.btn--magnetic::after {
  content: ""; position: absolute; inset: -7px; border-radius: inherit;
  translate: calc(var(--mx, 0) * -1px) calc(var(--my, 0) * -1px);
}
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 16px 28px; font-size: 16px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Cabeçalho (tema acompanha a seção sob ele) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  color: #fff;
  background: rgba(24, 24, 27, .82);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--hz-line-dark);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
html[data-header-theme="light"] .site-header { color: var(--hz-graphite); background: rgba(255, 255, 255, .86); border-bottom-color: rgba(24, 24, 27, .08); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; padding: 6px 0; }
.brand__logo { width: 128px; height: auto; aspect-ratio: 1397 / 318; }
.brand__word { fill: currentColor; transition: fill .35s var(--ease); } /* branco no escuro, grafite no claro */
.nav { display: flex; align-items: center; gap: 36px; }
.nav__list { display: flex; gap: 30px; }
.nav__link { position: relative; font-size: 15px; font-weight: 500; padding: 8px 0; opacity: .82; transition: opacity .2s; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--hz-orange); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link.is-current { opacity: 1; }
.nav__link.is-current { font-weight: 600; }
.nav__link:hover::after, .nav__link.is-current::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 2px; font-size: 14px; }
.menu-toggle__icon, .menu-toggle__icon::before, .menu-toggle__icon::after {
  display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .35s var(--ease), background-color .2s;
}
.menu-toggle__icon { position: relative; }
.menu-toggle__icon::before, .menu-toggle__icon::after { content: ""; position: absolute; left: 0; }
.menu-toggle__icon::before { top: -7px; }
.menu-toggle__icon::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { transform: translateY(-7px) rotate(-45deg); }

.menu {
  position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 99;
  background: var(--hz-graphite); color: #fff;
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transform: translateY(-12px);
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.menu.is-open { opacity: 1; transform: none; }
.menu__inner { display: flex; flex-direction: column; gap: 32px; padding-top: 24px; padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
.menu__list a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--hz-line-dark);
  font: 600 clamp(28px, 8vw, 40px)/1.1 var(--font-display); letter-spacing: -.03em;
}
.menu__list li { opacity: 0; transform: translateY(12px); transition: opacity .4s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 50ms + 60ms); }
.menu.is-open .menu__list li { opacity: 1; transform: none; }
.menu .btn { align-self: stretch; }

/* ---------- Palco 3D (primeira dobra + transição) ---------- */
.stage {
  --intro-out: 0; --areas-in: 0; --a1: 0; --a2: 0; --a3: 0;
  --plate-x: 73%; --plate-y: 52%;
  position: relative;
  background: var(--hz-graphite);
  isolation: isolate;
}
.stage__sticky { position: relative; z-index: 1; }
.stage__visual {
  --plx: 0; --ply: 0; /* cursor suavizado (-1…1), escrito por stage.js */
  position: absolute; z-index: 0; top: 0; left: 0; right: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  touch-action: pan-y pinch-zoom; /* no toque, o gesto vertical continua rolando a página */
  -webkit-user-select: none; user-select: none;
}
.stage__visual.is-grabbable { cursor: grab; }
html.is-dragging-symbol, html.is-dragging-symbol * { cursor: grabbing !important; }
/* Placa de luz atrás da composição: separa o símbolo grafite do fundo grafite */
.stage__visual::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(34% 50% at var(--plate-x) var(--plate-y), #36363D 0%, rgba(42, 42, 48, .6) 42%, transparent 76%),
    radial-gradient(26% 30% at calc(var(--plate-x) - 12%) calc(var(--plate-y) + 26%), rgba(240, 100, 45, .1), transparent 70%);
  translate: calc(var(--plx) * -14px) calc(var(--ply) * -10px); /* camada mais distante: move menos */
}
.stage__canvas { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.stage__canvas canvas { display: block; width: 100%; height: 100%; }
.stage.is-3d .stage__canvas { opacity: 1; }

/* Composição estática: só aparece sem WebGL (ou sem JS). Com WebGL provável ela
   fica oculta enquanto a cena carrega, para não haver troca entre composições. */
.stage__fallback { position: absolute; inset: 0; transition: opacity .8s var(--ease); }
.stage.is-3d-pending .stage__fallback, .stage.is-3d .stage__fallback { opacity: 0; visibility: hidden; }
.fb-symbol {
  position: absolute; left: var(--plate-x); top: var(--plate-y);
  width: auto; height: min(40vh, 360px); max-width: none;
  transform: translate(-50%, -50%) rotate(-6deg);
  translate: calc(var(--plx) * -10px) calc(var(--ply) * -8px);
  fill: var(--hz-orange);
  filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .55)) drop-shadow(0 0 1px rgba(255, 255, 255, .3));
}
.fb-card {
  position: absolute; display: grid; align-content: start; gap: 10px;
  padding: 16px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: var(--shadow-float);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.fb-card--browser { left: 56%; top: 19%; width: min(22vw, 300px); height: min(16vw, 200px); transform: rotate(-4deg); }
.fb-card--phone { left: 85%; top: 30%; width: min(10vw, 140px); height: min(21vw, 280px); transform: rotate(5deg); border-radius: 24px; }
.fb-card--chart { left: 64%; top: 66%; width: min(18vw, 240px); height: min(11vw, 140px); transform: rotate(3deg); }
/* Parallax da composição estática: cartões mais próximos se deslocam mais */
.fb-card--browser { translate: calc(var(--plx) * -6px) calc(var(--ply) * -5px); }
.fb-card--phone { translate: calc(var(--plx) * -18px) calc(var(--ply) * -12px); }
.fb-card--chart { translate: calc(var(--plx) * -24px) calc(var(--ply) * -16px); }

/* Indicação do arraste: aparece sob o símbolo depois da entrada e some ao rolar ou girar */
.stage__hint {
  position: absolute; left: var(--hint-x, 72%); top: var(--hint-y, 86%); z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px 7px 10px; border-radius: 100px;
  font-size: 13px; font-weight: 500; line-height: 1.2; color: rgba(255, 255, 255, .8); white-space: nowrap;
  background: rgba(24, 24, 27, .6); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.stage__hint svg { color: var(--hz-orange); flex: none; }
.stage.is-3d.is-draggable.has-hint .stage__hint { opacity: calc(1 - var(--intro-out) * 3); }
.stage.has-dragged .stage__hint, .stage.is-static .stage__hint { opacity: 0 !important; }
.fb-dots { display: flex; gap: 6px; } .fb-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.fb-dots i:first-child { background: var(--hz-orange); }
.fb-line { height: 8px; width: 70%; border-radius: 8px; background: rgba(255, 255, 255, .16); }
.fb-line--lg { height: 14px; width: 86%; background: rgba(255, 255, 255, .3); }
.fb-line--sm { width: 45%; }
.fb-pill { width: 40%; height: 22px; border-radius: 20px; background: var(--hz-orange); margin-top: 6px; }
.fb-ring { width: 56px; height: 56px; border-radius: 50%; border: 6px solid rgba(255, 255, 255, .15); border-top-color: var(--hz-orange); border-right-color: var(--hz-orange); margin: 10px auto; }
.fb-row { height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .08); }
.fb-bars { display: flex; align-items: flex-end; gap: 8px; height: 100%; }
.fb-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: rgba(255, 255, 255, .22); }
.fb-bars i:nth-child(4) { background: var(--hz-orange); }

/* Textos do palco: coluna própria, sempre à esquerda da composição */
.stage__layer { position: relative; z-index: 2; pointer-events: none; } /* a área livre deixa o símbolo receber o arraste */
.stage__copy, .areas { pointer-events: auto; }
.stage__intro { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 24px) 0 80px; }
.stage__copy { max-width: min(580px, 46vw); }
.stage__title {
  margin: 0 0 28px;
  font: 650 var(--fs-display)/1.02 var(--font-display);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.stage__title span { color: var(--hz-orange); }
.stage__lead { max-width: 30em; font-size: var(--fs-lead); line-height: 1.55; color: rgba(255, 255, 255, .8); }
.stage__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.stage__areas { padding: 64px 0 128px; }
.areas { max-width: min(520px, 42vw); }
.areas__title { margin: 0 0 32px; font: 600 clamp(1.875rem, 2.4vw + .5rem, 2.875rem)/1.08 var(--font-display); letter-spacing: -.035em; text-wrap: balance; }
.areas__title span { color: var(--hz-orange); }
.areas__list { display: grid; }
.areas__list li:first-child .area { border-top: 1px solid var(--hz-line-dark); } /* a linha some junto com o item na transição */
.area {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
  padding: 20px 4px; border-bottom: 1px solid var(--hz-line-dark);
  transition: padding var(--dur-hover) var(--ease);
}
/* Traço laranja: acompanha o hover, o foco e a interface em destaque na rolagem */
.area::before {
  content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 2px; border-radius: 2px;
  background: var(--hz-orange); transform: scaleY(0); transition: transform var(--dur) var(--ease);
}
.area:hover, .area:focus-visible, .area.is-lit { padding-left: 14px; }
.area:hover::before, .area:focus-visible::before, .area.is-lit::before { transform: scaleY(1); }
.area.is-lit .area__arrow { transform: translateX(4px); }
.area__body strong { display: block; font: 600 21px/1.25 var(--font-display); letter-spacing: -.02em; }
.area__body span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--hz-muted-dark); }
.area__arrow { color: var(--hz-orange); transition: transform .35s var(--ease); }
.area:hover .area__arrow { transform: translateX(4px); }

/* Coreografia por rolagem (stage.js ativa em telas largas com movimento) */
html.stage-pinned .stage { height: 220vh; } /* sequência curta: pouco mais de uma tela */
html.stage-pinned .stage__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
html.stage-pinned .stage__visual { height: 100%; }
html.stage-pinned .stage__layer { position: absolute; inset: 0; display: flex; align-items: center; padding: var(--header-h) 0 0; min-height: 0; }
html.stage-pinned .stage__layer > .wrap { width: 100%; }
html.stage-pinned .stage__intro { opacity: calc(1 - var(--intro-out)); transform: translate3d(0, calc(var(--intro-out) * -56px), 0); }
html.stage-pinned .areas__title { opacity: var(--areas-in); transform: translate3d(0, calc((1 - var(--areas-in)) * 32px), 0); }
html.stage-pinned .areas__list li { opacity: var(--a); transform: translate3d(calc((1 - var(--a)) * -28px), 0, 0); }
html.stage-pinned .areas__list li:nth-child(1) { --a: var(--a1); }
html.stage-pinned .areas__list li:nth-child(2) { --a: var(--a2); }
html.stage-pinned .areas__list li:nth-child(3) { --a: var(--a3); }
html.stage-pinned .stage:not(.is-areas-on) .areas { pointer-events: none; }
html.stage-pinned .stage.is-intro-off .stage__copy { pointer-events: none; }

/* ---------- Seções (folhas sobrepostas) ---------- */
.section { position: relative; padding: clamp(72px, 8vw, 120px) 0; }
.section--light { background: var(--hz-white); color: var(--hz-graphite); }
.section--dark { background: var(--hz-graphite); color: var(--hz-white); }
.sheet {
  z-index: 2;
  margin-top: calc(var(--radius-lg) * -1);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.section--dark.sheet { box-shadow: 0 -1px 0 rgba(255, 255, 255, .06); }

/* ---------- Soluções ---------- */
.svc-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.svc-head__title { max-width: 18ch; font-size: clamp(2rem, 3.2vw + .5rem, 3.5rem); line-height: 1.04; }
.svc-head__lead { max-width: 44ch; font-size: 17px; color: var(--hz-muted); padding-bottom: 6px; }
/* Abas: só o nome. Seleção = sublinhado laranja na linha de base + cor + peso */
.svc__tabs { display: flex; flex-wrap: wrap; gap: 0 40px; border-bottom: 1px solid var(--hz-line); margin-bottom: clamp(28px, 3vw, 44px); }
.svc__tab {
  position: relative; padding: 14px 0 16px; text-align: left;
  font: 500 clamp(18px, 1.5vw, 22px)/1.2 var(--font-display); letter-spacing: -.02em;
  color: #71717A; /* 4,8:1 sobre branco */
  transition: color .3s var(--ease);
}
.svc__tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px;
  background: var(--hz-orange); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
}
/* O traço segue a direção da troca: sai para um lado e entra pelo outro */
.svc__tabs[data-dir="prev"] .svc__tab::after { transform-origin: left; }
.svc__tabs[data-dir="prev"] .svc__tab[aria-selected="true"]::after,
.svc__tabs[data-dir="next"] .svc__tab::after { transform-origin: right; }
.svc__tabs[data-dir="next"] .svc__tab[aria-selected="true"]::after { transform-origin: left; }
.svc__tab:hover:not([aria-selected="true"])::after { transform: scaleX(.18); transform-origin: left; }
.svc__tab:active { scale: .98; }
.svc__tab { transition: color var(--dur-hover) var(--ease), scale var(--dur-press) var(--ease); }
.svc__tab:hover { color: var(--hz-graphite); }
.svc__tab[aria-selected="true"] { color: var(--hz-graphite); font-weight: 650; }
.svc__tab[aria-selected="true"]::after { transform: scaleX(1); }
.svc__tab:focus-visible { outline-offset: 4px; }

/* Painel: contexto e entregas ao lado da demonstração */
.svc__panel {
  display: grid; grid-template-columns: minmax(0, 4.3fr) minmax(0, 7.7fr);
  grid-template-areas: "info demo" "more demo"; grid-template-rows: auto 1fr;
  gap: 24px clamp(28px, 4vw, 64px); align-items: start;
}
.svc__panel + .svc__panel { margin-top: 72px; } /* sem JS: todas visíveis */
.svc.is-ready .svc__panel + .svc__panel { margin-top: 0; }
.svc__panel:focus-visible { outline-offset: 8px; }
.svc__info { grid-area: info; display: grid; gap: 18px; }
.svc__info .h3 { max-width: 20ch; }
.svc__facts { display: grid; gap: 14px; }
.svc__facts div { display: grid; gap: 2px; }
.svc__facts dt { font-size: 14px; font-weight: 650; color: var(--hz-graphite); }
.svc__facts dd { font-size: 15.5px; color: var(--hz-muted); max-width: 42ch; }
.svc__more { grid-area: more; display: grid; gap: 14px; justify-items: start; }
.svc__sub { font: 600 15px/1.3 var(--font-display); letter-spacing: -.01em; }
.deliverables { justify-self: stretch; font-size: 15px; }
.deliverables li { padding: 9px 0; border-bottom: 1px solid var(--hz-line); }
.deliverables li:first-child { border-top: 1px solid var(--hz-line); }
.svc__more .btn { margin-top: 6px; }
.svc__demo { grid-area: demo; display: grid; gap: 12px; min-width: 0; }
.svc__demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.svc__hint { font-size: 14px; color: var(--hz-muted); max-width: 52ch; }
.svc__hint strong { color: var(--hz-graphite); font-weight: 650; }
.svc__expand {
  min-height: 40px; padding: 8px 16px; border-radius: 100px; border: 1px solid #C4C4CA;
  font-size: 14px; font-weight: 600; color: var(--hz-graphite);
  transition: background-color .2s, border-color .2s;
}
.svc__expand:hover { background: var(--hz-soft); border-color: var(--hz-graphite); }
.svc__panel.is-entering .svc__stage > * { animation: hz-in-demo var(--dur-panel) var(--ease) both; }
.svc__panel.is-entering .svc__info, .svc__panel.is-entering .svc__more { animation: hz-in var(--dur-panel) var(--ease) both; }
.svc__panel.is-entering .svc__more { animation-delay: .05s; }
/* direção da troca: a demonstração entra pelo lado da aba escolhida */
.svc[data-dir="prev"] { --demo-from: -28px; }
@keyframes hz-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes hz-in-demo { from { opacity: 0; transform: translateX(var(--demo-from, 28px)) scale(.985); } }
/* Altura: acompanha a troca de painel em vez de saltar (services.js) */
.svc.is-resizing { overflow: clip; overflow-clip-margin: 48px; transition: height var(--dur-panel) var(--ease); }
/* Controles das demonstrações: mesma resposta ao toque */
.svc__stage :is(.mini-nav__links button, .mini-btn, .app-book, .app-tabbar button, .seg button, [data-screen-go]),
.svc__expand { transition-property: background-color, color, border-color, box-shadow, scale; transition-duration: var(--dur-fast), var(--dur-fast), var(--dur-fast), var(--dur-fast), var(--dur-press); }
.svc__stage :is(.mini-nav__links button, .mini-btn, .app-book, .app-tabbar button, .seg button, [data-screen-go]):active,
.svc__expand:active { scale: .96; }

/* Palco da demonstração: mesma luz e piso para os três mockups */
.svc__stage {
  --mock-shadow: 0 1px 2px rgba(24, 24, 27, .06), 0 30px 60px -28px rgba(24, 24, 27, .45), 0 60px 80px -60px rgba(24, 24, 27, .35);
  position: relative; display: grid; place-items: center;
  min-height: clamp(420px, 36vw, 540px); padding: clamp(20px, 3vw, 44px);
  border-radius: 24px;
  background:
    radial-gradient(70% 55% at 50% 0%, #FFFFFF 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(60% 30% at 50% 100%, rgba(24, 24, 27, .08), transparent 70%),
    linear-gradient(180deg, #F4F4F5, #E9E9EC);
  overflow: hidden;
}
.svc__stage > * { position: relative; width: 100%; }
.svc__stage-placeholder { border-radius: 24px; background: var(--hz-soft); }

/* Navegador demonstrativo */
.browser {
  max-width: 820px; border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: var(--mock-shadow), 0 0 0 1px rgba(24, 24, 27, .06);
}
.browser__bar { display: flex; align-items: center; gap: 16px; height: 42px; padding: 0 16px; background: #F7F7F8; border-bottom: 1px solid var(--hz-line); }
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: #D4D4D8; }
.browser__dots i:first-child { background: var(--hz-orange); }
.browser__url {
  flex: 1; max-width: 340px; margin-inline: auto; padding: 5px 14px; border-radius: 100px;
  background: #fff; border: 1px solid var(--hz-line);
  font: 12px var(--font-mono); color: var(--hz-muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser__site {
  --char: #2B2926; --terra: #A9552F;
  position: relative; height: clamp(380px, 32vw, 450px); overflow: hidden;
  background: #FBF8F3; color: var(--char);
}
.mini-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 28px; border-bottom: 1px solid rgba(43, 41, 38, .08); }
.mini-logo { font: 500 17px/1 var(--font-display); letter-spacing: -.03em; }
.mini-logo b { font-weight: 700; }
.mini-nav__links { display: flex; gap: 4px; }
.mini-nav__links button {
  min-height: 34px; padding: 6px 13px; border-radius: 100px; font-size: 13px; color: #5b5750;
  transition: background-color .25s, color .25s;
}
.mini-nav__links button:hover { background: rgba(43, 41, 38, .07); color: var(--char); }
.mini-nav__links button[aria-pressed="true"] { background: var(--char); color: #fff; }
.mini-page {
  position: absolute; inset: 67px 0 0; padding: 28px;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .45s var(--ease), transform .55s var(--ease), visibility 0s .45s;
}
.mini-page.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mini-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center; }
.mini-kicker { font: 600 11px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--terra); }
.mini-title { margin: 10px 0 12px; font: 600 clamp(24px, 2.4vw, 34px)/1.05 var(--font-display); letter-spacing: -.035em; }
.mini-title--sm { font-size: clamp(19px, 1.7vw, 24px); margin: 0 0 18px; }
.mini-text { font-size: 13.5px; line-height: 1.5; color: #5b5750; max-width: 34ch; }
.mini-btn {
  display: inline-flex; align-items: center; min-height: 36px; margin-top: 18px; padding: 8px 16px; border-radius: 100px;
  background: var(--char); color: #fff; font-size: 12.5px; font-weight: 600;
  transition: background-color .25s, transform .25s var(--ease);
}
.mini-btn:hover { background: #45403A; }
.mini-btn:active { transform: scale(.97); }
.mini-art { position: relative; height: clamp(170px, 16vw, 220px); display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding: 0 8px; border-radius: 14px; background: linear-gradient(180deg, #F4D9C6, #EFE8DE 70%); overflow: hidden; }
.mini-art::before { content: ""; position: absolute; width: 70px; height: 70px; border-radius: 50%; right: 18%; top: 14%; background: #F2A679; opacity: .8; }
.mini-art i { position: relative; flex: 1; border-radius: 999px 999px 0 0; background: linear-gradient(180deg, #D8CDBF, #C3B5A4); }
.mini-art i:nth-child(1) { height: 62%; } .mini-art i:nth-child(2) { height: 88%; background: linear-gradient(180deg, #2F2C28, #45403A); } .mini-art i:nth-child(3) { height: 50%; }
.mini-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(43, 41, 38, .1); }
.mini-features b { display: block; font: 600 13.5px var(--font-display); }
.mini-features span { font-size: 12px; color: #6b665e; }
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mini-grid figure { margin: 0; }
.mini-grid figcaption { margin-top: 8px; font: 600 13px var(--font-display); }
.mini-grid small { display: block; font: 400 11.5px var(--font-sans); color: #6b665e; }
.mini-img { display: block; height: clamp(170px, 17vw, 240px); border-radius: 12px; }
.mini-img--1 { background: linear-gradient(160deg, #E9C9AE, #B98463); }
.mini-img--2 { background: linear-gradient(200deg, #3A3733, #6F665C); }
.mini-img--3 { background: radial-gradient(circle at 30% 30%, #F6E7D6, #CDB9A1); }
.mini-img--4 { background: linear-gradient(180deg, #D7DDD3, #97A38F); }
.mini-contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
.mini-form { display: grid; gap: 10px; }
.mini-field { display: block; height: 42px; padding: 6px 12px; border-radius: 10px; border: 1px solid rgba(43, 41, 38, .18); background: #fff; }
.mini-field small { font-size: 11px; color: #8a847a; }
.mini-field--tall { height: 84px; }
.mini-form .mini-btn { justify-self: start; margin-top: 4px; }
.mini-sent { min-height: 20px; font-size: 12.5px; font-weight: 600; color: #2F6B3A; }

/* Celular 3D (CSS) */
.phone-stage { position: relative; display: grid; place-items: center; height: clamp(470px, 40vw, 540px); perspective: 1400px; }
.phone-stage::after {
  content: ""; position: absolute; bottom: 2%; left: 50%; width: 260px; height: 36px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(24, 24, 27, .32), transparent);
  filter: blur(6px); z-index: -1;
}
.phone {
  --w: 246px; --h: 500px; --d: 16px; --r: 40px;
  position: relative; width: var(--w); height: var(--h);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -18deg)) rotateZ(var(--rz, 1deg));
  transition: transform .9s var(--ease);
}
.phone__face { position: absolute; display: block; background: linear-gradient(90deg, #2a2a2f, #3b3b42 50%, #1e1e22); }
.phone__face--back { inset: 0; border-radius: var(--r); background: linear-gradient(140deg, #2d2d33, #18181B); transform: translateZ(calc(var(--d) / -2)) rotateY(180deg); }
.phone__face--left, .phone__face--right { top: var(--r); height: calc(100% - var(--r) * 2); width: var(--d); }
.phone__face--left { left: calc(var(--d) / -2); transform: rotateY(-90deg); }
.phone__face--right { left: calc(100% - var(--d) / 2); transform: rotateY(90deg); }
.phone__face--right::after { content: ""; position: absolute; left: 25%; right: 25%; top: 18%; height: 56px; border-radius: 3px; background: var(--hz-orange); }
.phone__face--top, .phone__face--bottom { left: var(--r); width: calc(100% - var(--r) * 2); height: var(--d); background: linear-gradient(180deg, #2a2a2f, #3b3b42 50%, #1e1e22); }
.phone__face--top { top: calc(var(--d) / -2); transform: rotateX(90deg); }
.phone__face--bottom { top: calc(100% - var(--d) / 2); transform: rotateX(-90deg); }
.phone__front {
  position: absolute; inset: 0; padding: 9px; border-radius: var(--r);
  background: #0E0E10;
  box-shadow: inset 0 0 0 1.5px #44444b, 0 50px 80px -30px rgba(24, 24, 27, .55);
  transform: translateZ(calc(var(--d) / 2));
}
.phone__screen {
  position: relative; height: 100%; overflow: hidden; border-radius: calc(var(--r) - 9px);
  background: #F6F6F7; color: var(--hz-graphite); font-size: 13px; line-height: 1.4;
}
.phone__screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 38%); }
.app-status { display: flex; align-items: center; justify-content: space-between; padding: 12px 22px 0; height: 40px; font: 600 12px var(--font-sans); }
.app-island { width: 84px; height: 24px; border-radius: 20px; background: #0E0E10; }
.app-bars { display: flex; gap: 2px; align-items: flex-end; height: 10px; }
.app-bars i { width: 3px; background: var(--hz-graphite); border-radius: 1px; }
.app-bars i:nth-child(1) { height: 4px; } .app-bars i:nth-child(2) { height: 7px; } .app-bars i:nth-child(3) { height: 10px; }
.app-screen {
  position: absolute; inset: 44px 0 66px; padding: 14px 18px;
  display: flex; flex-direction: column; gap: 12px;
  opacity: 0; visibility: hidden; transform: translateX(18px);
  transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s .4s;
}
.app-screen.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.app-screen.is-leaving { transform: translateX(-18px); }
.app-hello { font-size: 12.5px; color: var(--hz-muted); }
.app-h { font: 650 20px/1.15 var(--font-display); letter-spacing: -.03em; margin-top: -8px; }
.app-card { display: grid; gap: 2px; padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.app-card--accent { background: var(--hz-graphite); color: #fff; }
.app-card small { font-size: 11px; color: var(--hz-orange); font-weight: 600; letter-spacing: .02em; }
.app-card b { font: 600 15px var(--font-display); }
.app-card span { font-size: 11.5px; color: var(--hz-muted-dark); }
.app-card.is-updated { animation: hz-flash 1.2s var(--ease); }
@keyframes hz-flash { 0% { box-shadow: 0 0 0 0 rgba(240, 100, 45, .7); } 100% { box-shadow: 0 0 0 10px rgba(240, 100, 45, 0); } }
.app-goal { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; }
.app-goal b { display: block; font-size: 13px; }
.app-goal span { font-size: 11.5px; color: var(--hz-muted); }
.app-ring {
  position: relative; display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%;
  background: conic-gradient(var(--hz-orange) calc(var(--v) * 360deg), #ECECEE 0);
}
.app-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.app-ring b { position: relative; font-size: 11px; }
.app-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.app-actions > * { padding: 12px 4px; border-radius: 14px; background: #fff; text-align: center; font-size: 11.5px; font-weight: 600; }
.app-actions button { background: var(--hz-orange); color: var(--hz-graphite); transition: background-color .2s; }
.app-actions button:hover { background: var(--hz-orange-hover); }
.app-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.app-week span { display: grid; justify-items: center; gap: 2px; padding: 8px 0; border-radius: 14px; background: #fff; font-size: 10.5px; color: var(--hz-muted); }
.app-week b { font-size: 14px; color: var(--hz-graphite); }
.app-week .is-on { background: var(--hz-graphite); color: #bbb; }
.app-week .is-on b { color: #fff; }
.app-slots { display: grid; gap: 8px; }
.app-slots li { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: #fff; }
.app-slots time { font: 600 11.5px var(--font-mono); color: var(--hz-muted); }
.app-slots b { display: block; font-size: 13px; }
.app-slots span { font-size: 11px; color: var(--hz-muted); }
.app-slots em { font-style: normal; font-size: 10px; font-weight: 600; padding: 5px 8px; border-radius: 100px; background: var(--hz-soft); white-space: nowrap; }
.app-book {
  min-height: 30px; padding: 5px 10px; border-radius: 100px; white-space: nowrap;
  font-size: 11px; font-weight: 650; background: var(--hz-orange-soft); color: var(--hz-orange-text);
  transition: background-color .2s, color .2s;
}
.app-book:hover { background: rgba(240, 100, 45, .22); }
.app-book[aria-pressed="true"] { background: #E6F4EC; color: #1F6B3A; }
.app-profile { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: #fff; }
.app-profile b { display: block; font-size: 14px; }
.app-profile div span { font-size: 11.5px; color: var(--hz-muted); }
.app-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--hz-orange); color: var(--hz-graphite); font: 700 14px var(--font-display); }
.app-settings { display: grid; border-radius: 16px; background: #fff; overflow: hidden; }
.app-settings li { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 8px 14px; font-size: 12.5px; border-bottom: 1px solid var(--hz-soft); }
.app-settings em { font-style: normal; color: var(--hz-muted); font-size: 11.5px; }
.app-switch { position: relative; flex: none; width: 40px; height: 24px; border-radius: 20px; background: #C4C4CA; transition: background-color .25s; }
.app-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .3s var(--ease); }
.app-switch[aria-checked="true"] { background: var(--hz-orange); }
.app-switch[aria-checked="true"]::after { transform: translateX(16px); }
.app-toast {
  position: absolute; left: 14px; right: 14px; bottom: 72px; z-index: 2;
  padding: 10px 12px; border-radius: 12px; background: var(--hz-graphite); color: #fff; font-size: 11.5px; font-weight: 600;
  opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .35s var(--ease);
  pointer-events: none;
}
.app-toast.is-on { opacity: 1; transform: none; }
.app-tabbar {
  position: absolute; left: 10px; right: 10px; bottom: 10px; height: 52px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 5px;
  border-radius: 20px; background: rgba(255, 255, 255, .94); box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .2);
}
.app-tabbar button { border-radius: 15px; font-size: 12px; font-weight: 600; color: var(--hz-muted); transition: background-color .25s, color .25s; }
.app-tabbar button:hover { color: var(--hz-graphite); }
.app-tabbar button[aria-pressed="true"] { background: var(--hz-graphite); color: #fff; }

/* Painel de sistema */
.dash {
  max-width: 820px;
  display: grid; grid-template-columns: 56px minmax(0, 1fr);
  border-radius: 14px; overflow: hidden; background: #fff; color: var(--hz-graphite);
  box-shadow: var(--mock-shadow), 0 0 0 1px rgba(24, 24, 27, .06);
}
.dash__side { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 0; background: var(--hz-graphite); }
.dash__side i { width: 22px; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, .12); }
.dash__side i.dash__mark { width: 24px; height: 24px; margin-bottom: 10px; border-radius: 7px; background: var(--hz-orange); }
.dash__side i.is-on { background: rgba(255, 255, 255, .4); }
.dash__main { display: grid; gap: 16px; padding: 20px; min-width: 0; }
.dash__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dash__title { font: 650 20px/1.1 var(--font-display); letter-spacing: -.02em; }
.dash__sub { margin-top: 4px; font-size: 12px; color: var(--hz-muted); }
.dash__filters { display: flex; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; border-radius: 100px; background: var(--hz-soft); }
.seg button { min-height: 32px; padding: 6px 12px; border-radius: 100px; font-size: 12.5px; font-weight: 600; color: var(--hz-muted); transition: background-color .25s, color .25s, box-shadow .25s; }
.seg button:hover { color: var(--hz-graphite); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--hz-graphite); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.dash__select {
  appearance: none; min-height: 38px; padding: 6px 32px 6px 12px; border-radius: 100px; border: 1px solid var(--hz-line);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2318181B' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { padding: 12px 14px; border-radius: 12px; background: var(--hz-soft); }
.kpi span { display: block; font-size: 11.5px; color: var(--hz-muted); }
.kpi b { display: block; margin-top: 2px; font: 650 22px/1.2 var(--font-display); letter-spacing: -.02em; }
.kpi b.is-changed { animation: hz-in .45s var(--ease); }
.kpi em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--hz-success); }
.kpi em.is-down { color: var(--hz-danger); }
.dash__chart { padding: 14px 14px 30px; border-radius: 12px; border: 1px solid var(--hz-line); }
.dash__chart-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--hz-muted); margin-bottom: 10px; }
.dash__legend { display: inline-flex; align-items: center; gap: 6px; }
.dash__legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--hz-orange); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 124px; }
.bar { position: relative; flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 6px; }
.bar i { display: block; height: var(--v, 0%); min-height: 3px; border-radius: 4px 4px 2px 2px; background: #D4D4D8; transition: height .6s var(--ease), background-color .3s; }
.bar:hover i, .bar:focus-visible i { background: #A1A1AA; }
.bar.is-max i { background: var(--hz-orange); }
.bar small { position: absolute; bottom: -18px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--hz-muted); }
.bar__tip {
  position: absolute; left: 50%; bottom: calc(var(--v, 0%) + 8px); z-index: 2;
  padding: 4px 8px; border-radius: 8px; background: var(--hz-graphite); color: #fff;
  font-size: 11px; font-weight: 600; white-space: nowrap;
  opacity: 0; transform: translate(-50%, 4px); transition: opacity .2s, transform .25s var(--ease);
  pointer-events: none;
}
.bar:hover .bar__tip, .bar:focus-visible .bar__tip, .bar.is-tip .bar__tip { opacity: 1; transform: translate(-50%, 0); }
.bar:focus-visible { outline-offset: 2px; }
.dash__table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dash__table th { text-align: left; font-weight: 500; font-size: 11px; color: var(--hz-muted); padding: 0 0 6px; border-bottom: 1px solid var(--hz-line); }
.dash__table td { padding: 8px 0; border-bottom: 1px solid var(--hz-soft); }
.dash__table tbody tr { animation: hz-in .45s var(--ease) both; }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 11.5px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--ok { color: var(--hz-success); } .status--wait { color: #8A5A00; } .status--late { color: var(--hz-danger); }

/* ---------- Estudos conceituais (editorial) ---------- */
.works-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.works-head__title { font: 600 clamp(2.5rem, 5.4vw, 5.75rem)/.95 var(--font-display); letter-spacing: -.05em; }
.works-head__note { max-width: 40ch; color: var(--hz-muted-dark); font-size: 16px; padding-bottom: 10px; }
.works-head__note strong { color: #fff; font-weight: 600; }

.study { position: relative; }
.study + .study, .study-pair, .study-pair + .study { margin-top: clamp(64px, 8vw, 112px); }
.study__media { position: relative; border-radius: 24px; overflow: hidden; }
.study__body { display: grid; gap: 14px; }
.study__kind { font-size: 14px; color: var(--hz-muted-dark); }
.study__title { margin-top: 6px; font: 600 clamp(28px, 3vw, 44px)/1.05 var(--font-display); letter-spacing: -.035em; }
.study__desc { margin-top: 12px; color: rgba(255, 255, 255, .82); font-size: 17px; max-width: 42ch; }
.study__problem { color: var(--hz-muted-dark); font-size: 15.5px; max-width: 40ch; }
.study__problem strong { color: #fff; font-weight: 600; }
.study__open {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  border-radius: 100px; border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-weight: 650;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.study__open span { color: var(--hz-orange); transition: transform .35s var(--ease); }
.study__open:hover { background: #fff; color: var(--hz-graphite); border-color: #fff; }
.study__open:hover span { transform: translateX(4px); color: var(--hz-orange-text); }
/* Inclinação e brilho (interactions.js): só a imagem; textos e botões ficam parados */
.study__media {
  --rx: 0; --ry: 0; --nx: 0; --ny: 0; --gx: .5; --gy: .5; --glare: 0;
  transform: perspective(1200px) rotateX(calc(var(--rx) * 1deg)) rotateY(calc(var(--ry) * 1deg));
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: box-shadow var(--dur) var(--ease);
}
.study__media.is-tilting { will-change: transform; }
.study__media[data-open] { cursor: pointer; }
/* profundidade: fundo parado, janelas ao fundo movem pouco, detalhes à frente movem mais */
.cover > * { translate: calc(var(--nx) * var(--depth, 0px)) calc(var(--ny) * var(--depth, 0px)); }
.cover > .cv-window, .cover > .cv-map, .cover > .cv-phone--back { --depth: 4px; }
.cover > .cv-phone, .cover > .cv-list, .cover > .cv-window--arq-2 { --depth: 10px; }
.cover > .cv-toast, .cover > .cv-alert, .cover > .cv-phone--front { --depth: 16px; }
.cover > .study__glare, .cover > .study__cta { --depth: 0px; }
.study__glare {
  inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(45% 60% at calc(var(--gx) * 100%) calc(var(--gy) * 100%), rgba(255, 255, 255, .18), transparent 70%);
  opacity: var(--glare);
}
.study__cta {
  right: clamp(14px, 2vw, 24px); bottom: clamp(14px, 2vw, 24px); z-index: 5;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 100px;
  background: #fff; color: var(--hz-graphite);
  font: 650 14px/1.2 var(--font-sans); white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
  opacity: 0; translate: 0 8px; pointer-events: none;
  transition: opacity var(--dur-hover) var(--ease), translate var(--dur-hover) var(--ease);
}
.study__cta span { color: var(--hz-orange-text); }
@media (hover: hover) and (pointer: fine) {
  .study__media[data-open]:hover { box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .75); }
  .study__media[data-open]:hover .study__cta { opacity: 1; translate: 0 0; }
}
/* teclado: o foco no botão do estudo destaca a imagem e mostra a mesma chamada */
.study:has(.study__open:focus-visible) .study__media { box-shadow: 0 0 0 2px var(--hz-orange), 0 40px 70px -40px rgba(0, 0, 0, .75); }
.study:has(.study__open:focus-visible) .study__cta { opacity: 1; translate: 0 0; }

.study--feature .study__media { aspect-ratio: 16 / 6.8; }
.study--feature .study__body { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 48px; align-items: end; margin-top: 40px; }
.study--feature .study__open { align-self: center; }
.study-pair { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.study--tall .study__media { aspect-ratio: 4 / 4.6; }
.study--wide { margin-top: clamp(40px, 6vw, 96px); }
.study--wide .study__media { aspect-ratio: 4 / 3; }
.study-pair .study__body { margin-top: 28px; }
.study-pair .study__open { margin-top: 8px; }
.study--split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.study--split .study__media { aspect-ratio: 16 / 10; }
.study--split .study__open { margin-top: 8px; }

/* Capas: composições em HTML/CSS medidas em cqw, escalam como uma imagem */
.cover { container-type: inline-size; isolation: isolate; }
.cover > * { position: absolute; }
.cover--clinica { background: radial-gradient(70% 90% at 85% 0%, rgba(240, 100, 45, .38), transparent 60%), radial-gradient(60% 60% at 10% 110%, rgba(255, 255, 255, .06), transparent 60%), linear-gradient(160deg, #2A2A30, #19191C); }
.cv-window { border-radius: 1.4cqw; background: #fff; color: var(--hz-graphite); overflow: hidden; box-shadow: 0 .3cqw .8cqw rgba(0, 0, 0, .25), 0 4cqw 7cqw -2cqw rgba(0, 0, 0, .6); }
.cv-window__bar { display: flex; align-items: center; gap: .6cqw; height: 3.4cqw; padding: 0 1.4cqw; background: #F4F4F5; font-size: 1cqw; color: var(--hz-muted); }
.cv-window__bar i { width: .8cqw; height: .8cqw; border-radius: 50%; background: #D4D4D8; }
.cv-window__bar i:first-child { background: var(--hz-orange); }
.cv-window__bar span { margin-left: 1cqw; font-weight: 600; color: var(--hz-graphite); }
.cv-window--clinica { left: 6cqw; top: 7cqw; width: 58cqw; bottom: -4cqw; }
.cv-cal {
  display: grid; grid-template-columns: 5cqw repeat(3, 1fr); grid-template-rows: 3cqw repeat(6, 1fr); gap: .6cqw;
  height: calc(100% - 3.4cqw); padding: 1.2cqw 1.4cqw;
}
.cv-cal__head { display: contents; }
.cv-cal__head b { align-self: center; font: 600 1.15cqw var(--font-display); }
.cv-cal__hours { display: contents; }
.cv-cal__hours span { grid-column: 1; font: 500 .95cqw var(--font-mono); color: var(--hz-muted); }
.cv-cal__hours span:nth-child(1) { grid-row: 2; } .cv-cal__hours span:nth-child(2) { grid-row: 3; } .cv-cal__hours span:nth-child(3) { grid-row: 4; }
.cv-cal__hours span:nth-child(4) { grid-row: 5; } .cv-cal__hours span:nth-child(5) { grid-row: 6; } .cv-cal__hours span:nth-child(6) { grid-row: 7; }
.cv-ev {
  grid-column: var(--c); grid-row: calc(var(--r) + 1) / span var(--l);
  display: grid; align-content: start; gap: .2cqw;
  padding: .8cqw 1cqw; border-radius: .7cqw; background: #F4F4F5; border-left: .3cqw solid var(--hz-graphite);
  font-size: .95cqw; color: var(--hz-muted); overflow: hidden;
}
.cv-ev b { font-size: 1.05cqw; color: var(--hz-graphite); }
.cv-ev--o { background: #FDE8DE; border-color: var(--hz-orange); }
.cv-ev--g { background: transparent; border: .1cqw dashed #C4C4CA; }
.cv-toast {
  left: 44cqw; top: 55%; display: flex; align-items: center; gap: 1cqw;
  padding: 1.2cqw 1.6cqw; border-radius: 1.2cqw; background: rgba(24, 24, 27, .9); color: #fff;
  box-shadow: 0 3cqw 5cqw -2cqw rgba(0, 0, 0, .6); font-size: 1.05cqw;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.cv-toast i { width: 2.4cqw; height: 2.4cqw; border-radius: 50%; background: var(--hz-orange); }
.cv-toast b { display: block; font: 600 1.2cqw var(--font-display); }
.cv-toast span { color: var(--hz-muted-dark); }
.cv-phone {
  display: grid; align-content: start; gap: 1.2cqw;
  width: 19cqw; aspect-ratio: 9 / 19; padding: 4cqw 1.4cqw 1.4cqw;
  border-radius: 3cqw; background: #F6F6F7; color: var(--hz-graphite);
  border: .7cqw solid #0E0E10; box-shadow: 0 .3cqw .8cqw rgba(0, 0, 0, .3), 0 5cqw 8cqw -2cqw rgba(0, 0, 0, .65);
  font-size: 1.15cqw;
}
.cv-phone__island { position: absolute; top: 1.1cqw; left: 50%; width: 5.5cqw; height: 1.6cqw; margin-left: -2.75cqw; border-radius: 2cqw; background: #0E0E10; }
.cv-phone__h { font: 650 1.7cqw/1.15 var(--font-display); letter-spacing: -.03em; }
.cv-phone__card { display: grid; gap: .2cqw; padding: 1.2cqw; border-radius: 1.3cqw; background: #fff; }
.cv-phone__card b { font: 600 1.35cqw var(--font-display); }
.cv-phone__card small { font-size: 1cqw; color: var(--hz-muted); }
.cv-phone__btn { padding: 1cqw; border-radius: 3cqw; text-align: center; background: var(--hz-orange); font-weight: 700; }
.cv-phone__btn--ghost { background: transparent; border: .12cqw solid #C4C4CA; }
.cv-phone--clinica { right: 9cqw; top: 6cqw; transform: rotate(3deg); }

.cover--cafe { background: radial-gradient(90% 60% at 50% 100%, rgba(240, 100, 45, .36), transparent 70%), linear-gradient(170deg, #2E241F, #19191C 70%); }
.cover--cafe .cv-phone { width: 44cqw; padding: 9cqw 3cqw 3cqw; border-width: 1.4cqw; border-radius: 7cqw; gap: 2.4cqw; font-size: 2.4cqw; }
.cover--cafe .cv-phone__island { top: 2.4cqw; width: 12cqw; height: 3.4cqw; margin-left: -6cqw; }
.cover--cafe .cv-phone__h { font-size: 3.6cqw; }
.cover--cafe .cv-phone__card { padding: 2.4cqw; border-radius: 2.6cqw; }
.cover--cafe .cv-phone__card b { font-size: 2.8cqw; }
.cover--cafe .cv-phone__card small { font-size: 2.1cqw; }
.cover--cafe .cv-phone__btn { padding: 2cqw; font-size: 2.3cqw; }
.cv-phone--back { left: 8cqw; top: 9cqw; transform: rotate(-8deg); }
.cv-phone--front { right: 7cqw; top: 22cqw; transform: rotate(5deg); }
.cv-stamps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4cqw; padding: 2.4cqw; border-radius: 2.6cqw; background: #fff; }
.cv-stamps i { aspect-ratio: 1; border-radius: 50%; border: .3cqw dashed #C4C4CA; }
.cv-stamps i.on { border: 0; background: var(--hz-orange); }
.cv-menu { display: flex; justify-content: space-between; padding: 1.8cqw 2cqw; border-radius: 2cqw; background: #fff; }
.cv-menu small { color: var(--hz-muted); }

.cover--arq { background: radial-gradient(80% 70% at 20% 0%, #FFFFFF, transparent 60%), linear-gradient(160deg, #EFE8DE, #D8CBBA); }
.cover--arq .cv-window { box-shadow: 0 .3cqw .8cqw rgba(43, 41, 38, .15), 0 5cqw 8cqw -3cqw rgba(43, 41, 38, .5); }
.cv-window--arq { left: 7cqw; top: 9cqw; right: 16cqw; bottom: 12cqw; background: #FBF8F3; color: #2B2926; }
.cv-site__nav { display: flex; align-items: center; gap: 2.4cqw; padding: 1.8cqw 2.6cqw; font-size: 1.45cqw; color: #6b665e; border-bottom: .12cqw solid rgba(43, 41, 38, .1); }
.cv-site__nav b { margin-right: auto; font: 500 2cqw var(--font-display); color: #2B2926; letter-spacing: -.03em; }
.cv-site__nav em { font-style: normal; font-weight: 700; }
.cv-site__cta { padding: .6cqw 1.6cqw; border-radius: 3cqw; background: #2B2926; color: #fff; }
.cv-site__hero { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqw; align-items: end; height: calc(100% - 5.6cqw); padding: 2.6cqw; }
.cv-site__hero small { font: 600 1.2cqw var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: #A9552F; }
.cv-site__hero p { margin: 1.4cqw 0 2cqw; font: 600 3.6cqw/1.02 var(--font-display); letter-spacing: -.04em; }
.cv-site__btn { display: inline-block; padding: 1cqw 2cqw; border-radius: 3cqw; background: #2B2926; color: #fff; font-size: 1.4cqw; font-weight: 600; }
.cv-arches { display: flex; align-items: flex-end; gap: 1cqw; height: 100%; }
.cv-arches i { flex: 1; border-radius: 999px 999px 0 0; background: linear-gradient(180deg, #D8CDBF, #BCAE9C); }
.cv-arches i:nth-child(1) { height: 58%; } .cv-arches i:nth-child(2) { height: 92%; background: linear-gradient(180deg, #A9552F, #7E3D20); } .cv-arches i:nth-child(3) { height: 72%; }
.cv-window--arq-2 { right: 5cqw; bottom: 6cqw; width: 30cqw; padding: 2cqw; background: #fff; }
.cv-window--arq-2 p { margin-bottom: 1.4cqw; font: 600 1.8cqw var(--font-display); color: #2B2926; }
.cv-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1cqw; }
.cv-tiles i { aspect-ratio: 3 / 4; border-radius: 1cqw; background: linear-gradient(160deg, #E9C9AE, #B98463); }
.cv-tiles i:nth-child(2) { background: linear-gradient(200deg, #3A3733, #6F665C); }
.cv-tiles i:nth-child(3) { background: linear-gradient(180deg, #D7DDD3, #97A38F); }

.cover--rota { background: radial-gradient(60% 70% at 70% 30%, rgba(240, 100, 45, .14), transparent 70%), linear-gradient(160deg, #222226, #151518); }
.cv-map { inset: 0; width: 100%; height: 100%; }
.cv-list {
  right: 4cqw; top: 5cqw; width: 30cqw; display: grid; gap: 1cqw; padding: 2cqw;
  border-radius: 1.8cqw; background: rgba(24, 24, 27, .86); border: .12cqw solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 1.6cqw; color: #fff;
  box-shadow: 0 4cqw 6cqw -2cqw rgba(0, 0, 0, .6);
}
.cv-list p { margin-bottom: .6cqw; font: 600 1.9cqw var(--font-display); }
.cv-list span { display: flex; justify-content: space-between; padding: 1.1cqw 1.2cqw; border-radius: 1cqw; background: rgba(255, 255, 255, .06); }
.cv-list i { font-style: normal; font-weight: 600; }
.cv-list i.ok { color: #7DDB9F; } .cv-list i.warn { color: var(--hz-orange); }
.cv-alert {
  left: 5cqw; bottom: 6cqw; display: grid; gap: .4cqw; padding: 1.6cqw 2cqw; max-width: 42cqw;
  border-radius: 1.6cqw; background: var(--hz-orange); color: var(--hz-graphite); font-size: 1.55cqw;
  box-shadow: 0 4cqw 6cqw -2cqw rgba(0, 0, 0, .6);
}
.cv-alert b { font: 650 2cqw var(--font-display); }

/* Identidade própria de cada estudo (a moldura continua Horvysa) */
/* Saúde: verde-azulado, fundo claro, sem serifa */
.cover--clinica { background: radial-gradient(70% 90% at 85% 0%, rgba(45, 212, 191, .28), transparent 60%), linear-gradient(160deg, #0E3B39, #141A1C 75%); }
.cover--clinica .cv-window__bar i:first-child { background: #0F766E; }
.cover--clinica .cv-cal__head b, .cover--clinica .cv-phone__h, .cover--clinica .cv-phone__card b, .cover--clinica .cv-toast b { font-family: var(--font-sans); font-weight: 700; letter-spacing: 0; }
.cover--clinica .cv-ev { border-left-color: #134E4A; background: #F1F7F6; }
.cover--clinica .cv-ev--o { background: #D5F0EC; border-color: #0F766E; }
.cover--clinica .cv-toast { background: rgba(15, 118, 110, .95); }
.cover--clinica .cv-toast i { background: #CCFBF1; }
.cover--clinica .cv-toast span { color: #CCFBF1; }
.cover--clinica .cv-phone { background: #F4FAF9; }
.cover--clinica .cv-phone__btn { background: #0F766E; color: #fff; }
.cover--clinica .cv-phone__btn--ghost { background: transparent; color: #0F766E; border-color: #0F766E; }
/* Cafeteria: café, creme e caramelo, títulos com serifa */
.cover--cafe { background: radial-gradient(90% 60% at 50% 100%, rgba(200, 137, 75, .42), transparent 70%), linear-gradient(170deg, #3B2418, #1C1512 72%); }
.cover--cafe .cv-phone { background: #F4EBDD; color: #3B2418; border-color: #1C1512; }
.cover--cafe .cv-phone__h, .cover--cafe .cv-phone__card b, .cover--cafe .cv-menu b { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: 0; }
.cover--cafe .cv-phone__card, .cover--cafe .cv-stamps, .cover--cafe .cv-menu { background: #FFF8EE; }
.cover--cafe .cv-stamps i.on { background: #7A4A2A; }
.cover--cafe .cv-stamps i { border-color: #C9B79C; }
.cover--cafe .cv-phone__btn { background: #C8894B; color: #2A1A10; }
.cover--cafe .cv-menu small, .cover--cafe .cv-phone__card small { color: #7A6552; }
/* Arquitetura: areia, pedra e terracota, títulos leves */
.cover--arq .cv-site__hero p { font-weight: 400; letter-spacing: -.03em; }
/* Logística: azul-noite, sinais verde e âmbar, dados em monoespaçada */
.cover--rota { background: radial-gradient(60% 70% at 70% 30%, rgba(52, 211, 153, .12), transparent 70%), linear-gradient(160deg, #0F1A2E, #0B1220); }
.cover--rota .cv-list { background: rgba(15, 23, 42, .9); border-color: rgba(148, 163, 184, .2); }
.cover--rota .cv-list p { font-family: var(--font-sans); font-weight: 700; letter-spacing: 0; }
.cover--rota .cv-list span { font-family: var(--font-mono); background: rgba(148, 163, 184, .1); }
.cover--rota .cv-list i.ok { color: #34D399; } .cover--rota .cv-list i.warn { color: #FBBF24; }
.cover--rota .cv-alert { background: #FBBF24; color: #0B1220; font-family: var(--font-mono); }
.cover--rota .cv-alert b { font-family: var(--font-sans); font-weight: 700; letter-spacing: 0; }

/* ---------- Diálogo de estudo ---------- */
.work-dialog {
  width: min(1080px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 1px solid var(--hz-line-dark); border-radius: 28px;
  background: var(--hz-ink-2); color: #fff;
  overflow: auto; overscroll-behavior: contain;
}
.work-dialog::backdrop { background: rgba(10, 10, 12, .76); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.work-dialog[open] { animation: hz-dialog .5s var(--ease) both; }
.work-dialog[open]::backdrop { animation: hz-fade .4s ease both; }
@keyframes hz-dialog { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes hz-fade { from { opacity: 0; } }
.work-dialog__inner { position: relative; }
.work-dialog__close {
  position: sticky; top: 16px; float: right; z-index: 3; margin: 16px 16px -60px 0;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(24, 24, 27, .8); border: 1px solid var(--hz-line-dark); color: #fff; font-size: 26px; line-height: 1;
  transition: background-color .25s, transform .3s var(--ease);
}
.work-dialog__close:hover { background: var(--hz-orange); color: var(--hz-graphite); transform: rotate(90deg); }
.work-dialog__cover { position: relative; aspect-ratio: 16 / 7.4; overflow: hidden; background: #141417; }
/* Cada capa mantém a própria proporção dentro do diálogo, centralizada */
.work-dialog__cover > .cover {
  position: absolute; top: 0; bottom: 0; left: 50%; height: 100%; width: auto;
  aspect-ratio: var(--ar, 16 / 7.4); transform: translateX(-50%);
}
.cover--clinica { --ar: 16 / 6.8; } .cover--cafe { --ar: 4 / 4.6; } .cover--arq { --ar: 4 / 3; } .cover--rota { --ar: 16 / 10; }
.work-dialog__body { padding: clamp(24px, 4vw, 56px); }
.wd__kicker { font-size: 14px; color: var(--hz-orange-hover); }
.wd__title { margin: 10px 0 36px; font: 600 clamp(32px, 4vw, 56px)/1 var(--font-display); letter-spacing: -.04em; }
.wd__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.work-dialog h3 { margin-bottom: 12px; font: 600 15px var(--font-display); color: #fff; }
.work-dialog p { color: rgba(255, 255, 255, .84); }
.wd__decisions { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--hz-line-dark); }
.wd__decisions ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 0; list-style: none; }
.wd__decisions li { color: rgba(255, 255, 255, .78); font-size: 15px; }
.wd__decisions li b { display: block; margin-bottom: 6px; color: #fff; font: 600 17px/1.3 var(--font-display); letter-spacing: -.01em; }
.wd__features { margin-top: 36px; }
.wd__identity { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--hz-line-dark); font-size: 15px; color: var(--hz-muted-dark) !important; }
.wd__identity strong { color: #fff; font-weight: 600; }
.wd__features ul { display: flex; flex-wrap: wrap; gap: 8px 12px; padding: 0; list-style: none; color: rgba(255, 255, 255, .84); }
.wd__features li { padding: 6px 14px; border-radius: 100px; border: 1px solid var(--hz-line-dark); font-size: 14.5px; }
.work-dialog__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 24px clamp(24px, 4vw, 56px) clamp(24px, 4vw, 40px); border-top: 1px solid var(--hz-line-dark);
  font-size: 14px;
}
.work-dialog__foot p { color: var(--hz-muted-dark); }
html.dialog-open { overflow: hidden; }

/* ---------- Demonstração ampliada ---------- */
.demo-dialog {
  width: min(1180px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: 24px; background: #F4F4F5; color: var(--hz-graphite);
  overflow: auto; overscroll-behavior: contain;
}
.demo-dialog::backdrop { background: rgba(10, 10, 12, .76); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.demo-dialog[open] { animation: hz-dialog .45s var(--ease) both; }
.demo-dialog__head {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 3vw, 28px); background: rgba(244, 244, 245, .95); border-bottom: 1px solid var(--hz-line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.demo-dialog__title { font: 600 18px/1.3 var(--font-display); letter-spacing: -.015em; }
.demo-dialog__note { font-size: 14px; color: var(--hz-muted); }
.demo-dialog__close {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--hz-graphite); color: #fff; font-size: 26px; line-height: 1; transition: background-color .2s;
}
.demo-dialog__close:hover { background: var(--hz-ink-3); }
.demo-dialog__body { padding: clamp(12px, 3vw, 32px); }
.svc__stage.is-expanded { min-height: min(76vh, 780px); }
.svc__stage.is-expanded .browser, .svc__stage.is-expanded .dash { max-width: 1060px; }
.svc__stage.is-expanded .browser__site { height: clamp(460px, 64vh, 660px); }

/* ---------- Processo ---------- */
.process { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.process__aside { align-self: stretch; } /* a coluna precisa da altura da linha para o sticky funcionar */
.process__sticky { position: sticky; top: calc(var(--header-h) + 32px); }
.process__title { margin: 0 0 16px; max-width: 14ch; }
.process__lead { margin-bottom: 28px; max-width: 38ch; font-size: 17px; color: var(--hz-muted); }
.pv {
  position: relative; aspect-ratio: 5 / 4; max-height: 50vh; width: 100%;
  border-radius: 28px; overflow: hidden; background: var(--hz-graphite);
  box-shadow: 0 40px 80px -40px rgba(24, 24, 27, .5);
}
.pv__grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.4px);
  background-size: 22px 22px; opacity: .9; transition: opacity .8s var(--ease);
}
.pv[data-step="3"] .pv__grid, .pv[data-step="4"] .pv__grid { opacity: .3; }
.pv__b {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  border-radius: var(--br, 10px);
  border: 1.5px solid var(--bd, rgba(255, 255, 255, .5));
  background: var(--bg, transparent);
  transform: rotate(var(--rot, 0deg));
  transition: left .9s var(--ease), top .9s var(--ease), width .9s var(--ease), height .9s var(--ease),
              transform .9s var(--ease), background-color .6s var(--ease), border-color .6s var(--ease), border-radius .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 40ms);
}
.pv__b::after {
  content: ""; position: absolute; inset: 22% 14%;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .35) 0 3px, transparent 3px 11px);
  -webkit-mask: linear-gradient(90deg, #000 60%, transparent); mask: linear-gradient(90deg, #000 60%, transparent);
  opacity: 0; transition: opacity .6s var(--ease);
}
.pv[data-step="3"] .pv__b::after { opacity: 1; }
.pv[data-step="4"] .pv__b::after { opacity: .5; }
.pv__trend {
  position: absolute; left: 8%; right: 8%; top: 64%; bottom: 14%; width: 84%; height: 22%; overflow: visible;
  clip-path: inset(-20% 100% -20% -5%);
  transition: clip-path 1.2s var(--ease) .3s;
}
.pv[data-step="4"] .pv__trend { clip-path: inset(-20% -5% -20% -5%); }
.pv__trend path { fill: none; stroke: var(--hz-orange); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pv__label { position: absolute; left: 24px; bottom: 20px; color: #fff; font: 600 16px var(--font-display); letter-spacing: -.01em; }
.process__steps { display: grid; padding-top: 8px; }
/* A sequência se lê pela linha contínua: laranja até a etapa em foco, cinza depois dela */
.step { position: relative; display: grid; gap: 12px; padding: 28px 0 32px 36px; }
.step::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--hz-line); transition: background-color .5s var(--ease);
}
.step:first-child::before { top: 30px; }
.step:last-child::before { bottom: 32px; }
.step.is-done::before, .step.is-active::before { background: var(--hz-orange); }
.step.is-active::before { width: 4px; left: -1px; }
.step__title { font: 600 clamp(28px, 2.8vw, 42px)/1.05 var(--font-display); letter-spacing: -.04em; color: #71717A; transition: color .4s var(--ease); }
.step.is-active .step__title, .step.is-done .step__title { color: var(--hz-graphite); }
.step p { color: var(--hz-muted); font-size: 16.5px; max-width: 44ch; }
.step .step__out { color: var(--hz-graphite); font-size: 15.5px; }
.step__out span { font-weight: 700; }

/* ---------- Sobre e perguntas frequentes ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about__intro { position: sticky; top: calc(var(--header-h) + 40px); }
.about__text { margin: 20px 0 24px; max-width: 40ch; font-size: var(--fs-lead); color: rgba(255, 255, 255, .84); }
.faq__title { margin-bottom: 8px; font: 600 20px/1.3 var(--font-display); color: var(--hz-muted-dark); }
.faq__item { border-bottom: 1px solid var(--hz-line-dark); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 56px; padding: 16px 0; cursor: pointer; list-style: none;
  font: 600 clamp(17px, 1.4vw, 20px)/1.3 var(--font-display); letter-spacing: -.015em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font: 400 26px/1 var(--font-sans); color: var(--hz-orange); transition: transform .3s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: #fff; }
.faq__item summary:focus-visible { outline-offset: 4px; }
.faq__item p { padding: 0 40px 22px 0; max-width: 62ch; color: rgba(255, 255, 255, .8); }

/* ---------- Contato e briefing (seção laranja) ---------- */
.section--contact { background: var(--hz-orange); color: var(--hz-graphite); padding-bottom: clamp(80px, 10vw, 136px); }
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__intro { position: sticky; top: calc(var(--header-h) + 40px); }
.contact__title { margin: 0 0 24px; font: 650 clamp(2.25rem, 3.4vw + .5rem, 4rem)/1 var(--font-display); letter-spacing: -.045em; text-wrap: balance; }
.contact__title span { color: #fff; } /* branco sobre laranja: 3,2:1, texto grande */
.contact__lead { max-width: 34ch; font-size: var(--fs-lead); }
.contact__next { margin-top: 32px; padding-top: 20px; border-top: 1.5px solid rgba(24, 24, 27, .3); max-width: 38ch; font-size: 15.5px; }
.contact__next-title { margin-bottom: 4px; font-weight: 700; }
.contact__direct { margin-top: 20px; font-size: 15.5px; }
.contact__direct .link-arrow { background-image: linear-gradient(var(--hz-graphite), var(--hz-graphite)); }
.contact__direct + .contact__direct--mail { margin-top: 8px; }

.brief {
  position: relative; padding: clamp(24px, 3.2vw, 44px); border-radius: 28px;
  background: #fff; color: var(--hz-graphite);
  box-shadow: 0 50px 100px -40px rgba(24, 24, 27, .55), 0 2px 4px rgba(24, 24, 27, .08);
}
.brief__status { margin-bottom: 24px; padding: 14px 16px; border-radius: 14px; background: var(--hz-soft); font-size: 14px; line-height: 1.5; color: var(--hz-muted); }
.brief__status strong { display: block; color: var(--hz-graphite); }
.brief__wa-note { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--hz-soft); font-size: 14px; line-height: 1.5; color: var(--hz-muted); }
.brief__wa-note strong { color: var(--hz-graphite); }
.brief__fields { margin: 0; padding: 0; border: 0; min-width: 0; }
.brief__fields[disabled] { opacity: .55; }
.brief__progress { margin-bottom: 32px; }
.brief__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.brief__steps li { font-size: 13.5px; font-weight: 500; color: var(--hz-muted); transition: color .3s; }
.brief__steps li[aria-current="step"] { color: var(--hz-graphite); font-weight: 700; }
.brief__steps li.is-done { color: var(--hz-graphite); }
.brief__bar { height: 3px; border-radius: 3px; background: var(--hz-soft); overflow: hidden; }
.brief__bar span { display: block; height: 100%; width: var(--progress, 25%); background: var(--hz-orange); border-radius: inherit; transition: width .6s var(--ease); }
.brief__count { margin-top: 10px; font: 500 12px var(--font-mono); color: var(--hz-muted); }
.brief__step { margin: 0; padding: 0; border: 0; min-width: 0; }
.brief.is-ready .brief__step:not(.is-current) { display: none; }
.brief.is-ready .brief__step.is-current { animation: hz-in .5s var(--ease) both; }
.brief:not(.is-ready) .brief__step + .brief__step { margin-top: 40px; }
.brief__q { display: block; margin-bottom: 20px; padding: 0; font: 600 clamp(22px, 2vw, 28px)/1.2 var(--font-display); letter-spacing: -.025em; }
.brief__hint { margin: -8px 0 14px; font-size: 14px; color: var(--hz-muted); }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input, .chip input, .consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__box {
  position: relative; display: grid; gap: 4px; height: 100%; padding: 18px 18px 18px 50px;
  border-radius: 16px; border: 1.5px solid var(--hz-line); background: #fff;
  transition: border-color .25s, background-color .25s, box-shadow .3s var(--ease), transform .3s var(--ease);
}
.choice__box::before {
  content: ""; position: absolute; left: 18px; top: 20px; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid #A1A1AA; background: #fff; transition: border-color .25s, box-shadow .25s;
}
.choice__box b { font: 600 16px/1.3 var(--font-display); letter-spacing: -.01em; }
.choice__box small { font-size: 13.5px; color: var(--hz-muted); }
.choice:hover .choice__box { border-color: #A1A1AA; transform: translateY(-2px); }
.choice input:checked + .choice__box { border-color: var(--hz-graphite); box-shadow: 0 12px 28px -18px rgba(24, 24, 27, .5); }
.choice input:checked + .choice__box::before { border-color: var(--hz-orange); box-shadow: inset 0 0 0 5px var(--hz-orange); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--hz-orange); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { position: relative; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 100px;
  border: 1.5px solid var(--hz-line); font-size: 14px; font-weight: 600;
  transition: background-color .25s, border-color .25s, color .25s;
}
.chip span::before { content: "+"; font-weight: 700; color: var(--hz-muted); }
.chip:hover span { border-color: #A1A1AA; }
.chip input:checked + span { background: var(--hz-graphite); border-color: var(--hz-graphite); color: #fff; }
.chip input:checked + span::before { content: "✓"; color: var(--hz-orange); }
.chip input:focus-visible + span { outline: 2px solid var(--hz-orange); outline-offset: 2px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field label { font-size: 14px; font-weight: 600; }
.req { font-weight: 400; color: var(--hz-muted); font-size: 13px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid #C4C4CA; background: #fff; color: var(--hz-graphite);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #71717A; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--hz-graphite); box-shadow: 0 0 0 3px var(--hz-orange-soft), 0 0 0 1px var(--hz-orange); }
.field [aria-invalid="true"], .field [aria-invalid="true"]:hover { border-color: var(--hz-danger); }
.field-error { font-size: 13.5px; font-weight: 600; color: var(--hz-danger); }
.field-error:not(:empty) { margin-top: 2px; }
.field-error:not(:empty)::before { content: "! "; }
.brief__step > .field-error:not(:empty) { margin-top: 12px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { position: relative; display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; cursor: pointer; font-size: 14.5px; }
.consent span::before {
  content: ""; display: inline-block; flex: none; width: 20px; height: 20px; margin-right: 10px; vertical-align: -4px;
  border-radius: 6px; border: 1.5px solid #A1A1AA; background: #fff; transition: background-color .2s, border-color .2s;
}
.consent input:checked + span::before { background: var(--hz-graphite) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' fill='none' stroke='%23F0642D' stroke-width='2'/%3E%3C/svg%3E") no-repeat center; border-color: var(--hz-graphite); }
.consent input:focus-visible + span::before { outline: 2px solid var(--hz-orange); outline-offset: 2px; }
.review { display: grid; border-top: 1px solid var(--hz-line); }
.review > div { display: grid; grid-template-columns: 150px 1fr auto; gap: 16px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--hz-line); }
.review dt { font-size: 13px; font-weight: 600; color: var(--hz-muted); }
.review dd { font-size: 15px; white-space: pre-wrap; word-break: break-word; }
.review button { min-height: 32px; font-size: 13px; font-weight: 650; color: var(--hz-graphite); text-decoration: underline; text-decoration-color: var(--hz-orange); text-underline-offset: 4px; text-decoration-thickness: 2px; padding: 2px 4px; }
.brief__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--hz-line); }
.brief__nav [data-brief-next], .brief__nav [data-brief-submit] { margin-left: auto; }
.brief__nav [data-brief-copy].btn--primary { margin-left: auto; }
.brief__result:empty { display: none; }
.brief__result { margin-top: 20px; padding: 16px; border-radius: 14px; font-size: 15px; background: var(--hz-soft); }
.brief__result.is-success { background: #E6F4EC; color: #14532D; }
.brief__result.is-error { background: #FDECEA; color: #7A1B12; }
.brief__result:focus { outline: none; }

/* ---------- Rodapé ---------- */
.site-footer { position: relative; z-index: 2; background: var(--hz-graphite); color: #fff; padding: 72px 0 32px; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.2fr) auto auto; gap: 32px 64px; align-items: start; padding-bottom: 56px; }
.site-footer__logo { width: 148px; height: auto; aspect-ratio: 1397 / 318; }
.site-footer__tagline { margin-top: 18px; color: var(--hz-muted-dark); max-width: 28ch; }
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: 12px 32px; padding-top: 6px; }
.site-footer__contact { display: grid; gap: 12px; justify-items: start; }
.site-footer__cta { padding-top: 2px; font-size: 17px; }
.site-footer ul a {
  color: rgba(255, 255, 255, .86);
  background: linear-gradient(var(--hz-orange), var(--hz-orange)) no-repeat left bottom / 0 2px;
  padding-bottom: 3px;
  transition: color var(--dur-fast), background-size var(--dur-hover) var(--ease);
}
.site-footer ul a:hover { color: #fff; background-size: 100% 2px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--hz-line-dark); font-size: 13px; color: var(--hz-muted-dark); }

/* ---------- Revelação ao rolar (só com JS e movimento permitido) ---------- */
html.motion-ok [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
html.motion-ok [data-reveal].is-revealed { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .study--feature .study__body { grid-template-columns: minmax(0, 1fr) auto; }
  .study--feature .study__problem { grid-row: 2; }
  .study--feature .study__open { grid-column: 2; grid-row: 1; }
  .wd__decisions ul { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 1100px) {
  .contact { grid-template-columns: 1fr; }
  .contact__intro { position: static; }
  .about { grid-template-columns: 1fr; }
  .about__intro { position: static; }
}

@media (max-width: 899px) {
  :root { --header-h: 64px; --radius-lg: 24px; }
  .menu-ready .nav { display: none; }
  .menu-ready .menu-toggle { display: inline-flex; }
  .site-header__bar { flex-wrap: wrap; }
  .menu-ready .site-header__bar { flex-wrap: nowrap; }
  .nav { flex-wrap: wrap; gap: 12px 24px; padding-bottom: 12px; }

  /* Palco: cena em cima, texto embaixo, sem fixação */
  .stage { --plate-x: 50%; --plate-y: 50%; }
  .stage__visual { height: 42svh; }
  .stage__intro { min-height: 0; align-items: flex-end; padding: calc(42svh + 4px) 0 48px; } /* começa onde a cena termina */
  .stage__copy, .areas { max-width: none; }
  .fb-symbol { height: 26vh; }
  .fb-card--browser { left: 6%; top: 14%; width: 40vw; height: 28vw; }
  .fb-card--phone { left: 74%; top: 18%; width: 20vw; height: 40vw; }
  .fb-card--chart { left: 42%; top: 60%; width: 38vw; height: 20vw; }
  .stage__areas { padding: 24px 0 96px; }

  .svc-head { grid-template-columns: 1fr; }
  .svc__tabs { gap: 0 24px; }
  .svc__tab { padding: 10px 0 12px; font-size: 17px; }
  /* Contexto → demonstração → entregas, na ordem do HTML */
  .svc__panel { grid-template-columns: minmax(0, 1fr); grid-template-areas: "info" "demo" "more"; grid-template-rows: none; gap: 24px; }
  .svc__stage { min-height: 0; padding: 18px 12px; border-radius: 20px; }
  .demo-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .demo-dialog__body { padding: 12px; }
  .svc__stage.is-expanded { min-height: 0; }

  .works-head { grid-template-columns: 1fr; }
  .study--feature .study__body, .study-pair .study__body, .study--split .study__body { grid-template-columns: 1fr; gap: 12px; }
  .study--feature .study__problem, .study--feature .study__open { grid-column: auto; grid-row: auto; }
  .study-pair .study__open { grid-column: auto; }
  .study-pair, .study--split { grid-template-columns: 1fr; }
  .study--wide { margin-top: 0; }
  .study--tall .study__media { aspect-ratio: 4 / 4.2; }
  .study--feature .study__media { aspect-ratio: 4 / 3.2; }
  .study--split .study__body { order: 2; }
  .cover--clinica .cv-window--clinica { width: 70cqw; }
  .cover--clinica .cv-phone--clinica { width: 30cqw; right: 4cqw; font-size: 1.8cqw; padding: 6cqw 2cqw 2cqw; border-radius: 4.5cqw; }
  .cover--clinica .cv-phone__h { font-size: 2.6cqw; }
  .cover--clinica .cv-phone__card b { font-size: 2cqw; }
  .cover--clinica .cv-phone__card small { font-size: 1.6cqw; }
  .cover--clinica .cv-toast { display: none; }
  .wd__cols { grid-template-columns: 1fr; gap: 24px; }
  .work-dialog__cover { aspect-ratio: 4 / 3.2; }

  .process { grid-template-columns: 1fr; }
  .process__sticky { position: static; }
  .process__visual { display: none; }
  .process__steps { padding-top: 16px; }
  .step { padding: 20px 0 22px 24px; gap: 10px; }
  .step:first-child::before { top: 22px; }
  .step:last-child::before { bottom: 22px; }
  .step__title { font-size: 28px; }

  .site-footer__top { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .stage__actions { margin-top: 28px; }
  .stage__actions .btn { width: 100%; }
  .stage__title { margin: 8px 0 12px; font-size: clamp(2rem, 9vw, 2.625rem); }
  .stage__lead { font-size: 16px; }
  .stage__actions { gap: 10px; }
  .stage__actions .btn--lg { min-height: 52px; padding: 14px 22px; }
  .browser__site { height: 440px; }
  .mini-hero { grid-template-columns: 1fr; }
  .mini-art { display: none; }
  .mini-grid { grid-template-columns: 1fr 1fr; }
  .mini-img { height: 100px; }
  .mini-contact { grid-template-columns: 1fr; gap: 16px; }
  .mini-nav { padding: 12px 14px; }
  .mini-page { padding: 18px 14px; inset: 59px 0 0; }
  .mini-nav__links button { padding: 6px 9px; font-size: 12px; }
  .dash { grid-template-columns: 1fr; }
  .dash__side { display: none; }
  .dash__main { padding: 14px; }
  .dash__kpis { gap: 6px; }
  .kpi { padding: 10px; }
  .kpi b { font-size: 16px; }
  .phone { --w: 224px; --h: 456px; }
  .phone-stage { height: 490px; }
  .choices, .field-row { grid-template-columns: 1fr; }
  .brief__steps li { font-size: 12px; }
  .review > div { grid-template-columns: 1fr auto; }
  .review dt { grid-column: 1 / -1; }
  .brief__nav .btn { flex: 1 1 auto; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .phone, .pv__b, .mini-page, .app-screen, .menu, .menu__list li, .study__media, .svc__tab::after, .step::before, .faq__item summary::after,
  .stage__canvas, .stage__fallback, .bar i, .bar__tip, .app-toast, .app-switch::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
  .svc__panel.is-entering .svc__stage > *, .svc__panel.is-entering .svc__info, .svc__panel.is-entering .svc__more, .demo-dialog[open],
  .brief.is-ready .brief__step.is-current, .dash__table tbody tr, .work-dialog[open], .work-dialog[open]::backdrop,
  .app-card.is-updated, .kpi b.is-changed { animation: none; }
  .choice:hover .choice__box { transform: none; }
  .btn:active, .svc__tab:active, .svc__expand:active, .svc__stage button:active { scale: none; }
  .btn::before, .btn__arrow, .area, .area::before, .stage__hint, .study__cta, .site-footer ul a { transition-duration: .01ms !important; }
  .btn:hover .btn__arrow { text-indent: 0; }
  .study__media { transform: none !important; }
  .cover > * { translate: none; }
  .stage__visual::before, .fb-card, .fb-symbol { translate: none; }
  .svc.is-resizing { transition: none; }
  .pv__trend { transition: none; }
}
