/* Sessão 01 — Serviços (index.html). Transposição do arquivo de design
   "Serviços Agnaldo Augusto" no modo Responsivo: desktop ≥1080px, tablet
   720–1079px e celular <720px. O conteúdo ocupa o mesmo quadro de 1440px e o
   mesmo recuo lateral (5,25 módulos da grade de 47) do resto da home; o fundo
   fica transparente para a grade contínua da página (style.css, body.page-home)
   passar por baixo. As fontes vêm do mesmo link do Google Fonts das outras
   páginas. */

.services--experience {
  --services-ink: #10233f;
  --services-accent: #a32d32;
  --services-muted: #6f8198;
  --services-paper: #f0ece5;
  --services-paper-light: #f7f4ee;
  --services-sand: #c7b49a;
  /* = --home-gutter (style.css), medido na própria seção */
  --services-gutter: calc((100cqw - min(100cqw, 1440px)) / 2 + min(11.170212766cqw, 160.851064px));
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 0;
  container-type: inline-size;
  color: var(--services-ink);
}

.services--experience p { color: var(--services-ink); }
.services--experience button,
.services--experience a { -webkit-tap-highlight-color: transparent; }

.services-experience__inner {
  position: relative;
  z-index: 1;
  padding-inline: var(--services-gutter);
}

.services-journey {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  /* Camada própria: a linha muda a cada quadro de rolagem (stroke-dashoffset)
     e cobre a seção inteira. Na camada da página, cada quadro redesenhava
     também todo o texto e as imagens embaixo dela (a rolagem caía para ~30
     quadros/s num computador lento); sozinha, só a linha é redesenhada. */
  will-change: transform;
}

.services-journey__track,
.services-journey__progress {
  fill: none;
  stroke-linecap: butt;
  stroke-linejoin: round;
}

.services-journey__track {
  stroke: var(--services-muted);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.services-journey__progress {
  stroke: var(--services-accent);
  stroke-width: 3;
}

.services-journey__node-ring { fill: var(--services-paper); stroke: var(--services-muted); stroke-width: 1; }
.services-journey__node-dot { fill: var(--services-muted); }
.services-journey__start { fill: var(--services-accent); }
.services-journey__tick { stroke: var(--services-accent); stroke-width: 1; opacity: 0; transition: opacity 0.5s ease; }
.services-journey__node.is-active .services-journey__node-ring { stroke: var(--services-accent); }
.services-journey__node.is-active .services-journey__node-dot { fill: var(--services-accent); }
.services-journey__node.is-active .services-journey__tick { opacity: 1; }

.services-journey__tags {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.services-journey__tags span {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--services-ink);
  background: transparent;
  font: 600 11px/1 var(--ff-ui, 'Cabin', sans-serif);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.services-journey__tags b { padding: 3px 6px; background: var(--services-paper); font: inherit; }

.services-journey__tags span::before {
  content: '';
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--services-accent);
  box-shadow: 0 0 0 3px var(--services-paper);
}

.services-journey__tags span.is-visible { opacity: 1; }

.services-intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  padding-top: 150px;
}

.services-kicker {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--services-ink);
  font-family: var(--ff-ui, 'Cabin', sans-serif);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.services-kicker span { color: var(--services-accent); font-weight: 500; letter-spacing: 0.14em; }
.services-kicker i { display: block; width: 28px; height: 1px; background: var(--services-muted); }
.services-kicker strong { font-weight: 600; }
.services-kicker b { color: var(--services-accent); font-weight: 500; }

.services-intro h2 {
  grid-column: 1 / span 9;
  margin: 30px 0 0;
  color: var(--services-ink);
  font-family: var(--ff-heading, 'Noto Serif', serif);
  font-size: clamp(36px, 2.9cqw + 22px, 64px);
  font-weight: 350;
  line-height: 1.06;
  letter-spacing: -0.018em;
}

.services-intro h2 span { display: block; }
.services-intro h2 em { color: var(--services-accent); font-style: italic; }

.services-intro__copy {
  grid-column: 8 / span 5;
  grid-row: 3;
  margin-top: 48px;
}

.services-intro__copy p:first-child {
  margin: 0;
  font-size: clamp(19px, 0.45cqw + 17px, 24px);
  line-height: 1.36;
  text-wrap: pretty;
}

.services-intro__copy p + p {
  max-width: 46ch;
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 26px;
  text-wrap: pretty;
}

.services-intro__areas {
  grid-column: 1 / span 6;
  grid-row: 3;
  align-self: end;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 0 4px;
  list-style: none;
}

.services-intro__areas li {
  display: flex;
  flex: 1 1 auto;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  color: var(--services-ink);
  font-family: var(--ff-ui, 'Cabin', sans-serif);
  white-space: nowrap;
}

.services-intro__areas li:not(:last-child)::after {
  content: '';
  height: 1px;
  flex: 1 1 auto;
  min-width: 12px;
  margin-inline: 14px;
  background: rgba(111, 129, 152, 0.55);
}

.services-intro__areas small { color: var(--services-accent); font-size: 11px; letter-spacing: 0.12em; }
.services-intro__areas span { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }

.service-chapter {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  margin-top: 200px;
  align-items: start;
}

.service-chapter--brand .service-chapter__copy { grid-column: 2 / span 4; grid-row: 1; }
.service-chapter--brand .service-list { grid-column: 2 / span 4; grid-row: 2; align-self: end; padding-top: 40px; }
.service-chapter--brand .service-lab { grid-column: 7 / span 6; grid-row: 1 / span 2; }

.service-chapter--design .service-chapter__copy { grid-column: 8 / span 5; grid-row: 1; padding-top: 88px; }
.service-chapter--design .service-list { grid-column: 8 / span 5; grid-row: 2; padding-top: 40px; }
.service-chapter--design .service-lab { grid-column: 1 / span 6; grid-row: 1 / span 2; }

.service-chapter--motion { row-gap: 96px; }
.service-chapter--motion .service-chapter__copy { grid-column: 2 / span 4; }
/* No meio da altura do bloco da esquerda (título → texto); o script ainda encaixa os filetes na grade */
.service-chapter--motion .service-list { grid-column: 8 / span 5; grid-row: 1; align-self: center; }
.service-chapter--motion .service-lab { grid-column: 2 / span 10; grid-row: 2; }

.service-chapter--digital { row-gap: 0; }
.service-chapter--digital .service-chapter__copy { grid-column: 2 / span 10; text-align: center; }
.service-chapter--digital .service-chapter__copy > p { max-width: 56ch; margin-inline: auto; }
/* destaque em 2 linhas: "Uma boa interface não termina na aparência." / "Ela precisa funcionar." */
.service-chapter--digital .service-chapter__copy > .service-chapter__lead { max-width: 48ch; text-wrap: balance; }
.service-chapter--digital .service-list { grid-column: 2 / span 10; margin-top: 64px; }
.service-chapter--digital .service-lab { grid-column: 2 / span 10; margin-top: 155px; }

.service-chapter__title { display: flex; align-items: baseline; gap: 16px; }
.service-chapter__title--centered { justify-content: center; }
.service-chapter__number {
  color: var(--services-accent);
  font: 500 14px/1 var(--ff-ui, 'Cabin', sans-serif);
  letter-spacing: 0.14em;
}

.service-chapter__title h3 {
  margin: 0;
  color: var(--services-ink);
  font-family: var(--ff-heading, 'Noto Serif', serif);
  font-size: clamp(32px, 1.1cqw + 26px, 44px);
  font-weight: 350;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.service-chapter--digital .service-chapter__title h3 { font-size: clamp(34px, 1.6cqw + 26px, 50px); }

.service-chapter__copy .service-chapter__lead {
  margin: 22px 0 0;
  font-size: clamp(19px, 0.45cqw + 17px, 24px);
  line-height: 1.36;
  text-wrap: pretty;
}

.service-chapter__lead em { color: var(--services-accent); font-style: italic; }
.service-chapter__lead span { display: block; }

.service-chapter__copy > p:last-of-type {
  max-width: 44ch;
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 26px;
  text-wrap: pretty;
}
/* 04 é centrado: a regra acima (mesma força, mais abaixo) zerava o margin-inline: auto.
   Mais largo que os outros capítulos: o texto do 04 fica com 1–2 linhas a menos */
.service-chapter--digital .service-chapter__copy > p:last-of-type { max-width: 76ch; margin-inline: auto; }

/* "Saiba mais": leva à página do serviço (identidade-visual.html, video-e-motion.html,
   criacao-de-sites.html). Mesmo padrão do link em caixa alta do site (.lc-more a). */
.service-chapter__more {
  display: inline-block;
  margin-top: 22px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: var(--services-ink);
  font: 600 13px/1 var(--ff-ui, 'Cabin', sans-serif);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}
.service-chapter__more span { display: inline-block; transition: transform 0.25s ease; }
@media (hover: hover) and (pointer: fine) {
  .service-chapter__more:hover { color: var(--services-accent); }
  .service-chapter__more:hover span { transform: translateX(3px); }
}
.service-chapter__more:focus-visible { outline: 2px solid var(--services-accent); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .service-chapter__more, .service-chapter__more span { transition: none; }
}

.service-list h4 {
  margin: 0 0 12px;
  color: var(--services-ink);
  font: 600 11px/1.25 var(--ff-ui, 'Cabin', sans-serif);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.service-list ol {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(111, 129, 152, 0.65);
  list-style: none;
}

.service-list li {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0;
  /* --grid-pad: o script completa a altura até um número inteiro de quadrados da grade */
  padding: 18px 0 calc(20px + var(--grid-pad, 0px));
  border-top: 1px solid rgba(111, 129, 152, 0.65);
}
.service-list li::before { content: ''; position: absolute; left: 0; top: -1.5px; width: 24px; height: 3px; background: var(--services-accent); }

.service-list li > span {
  color: var(--services-accent);
  font: 600 11px/22px var(--ff-ui, 'Cabin', sans-serif);
  letter-spacing: 0.12em;
}

.service-list strong {
  display: block;
  color: var(--services-ink);
  font: 600 16px/22px var(--ff-ui, 'Cabin', sans-serif);
  letter-spacing: 0.01em;
}

.service-list li p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; text-wrap: pretty; }
.service-list--columns ol { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; }

.service-lab { width: 100%; margin: 0; }
/* Painel = Janela do Design System: linha fina azul-noturno, raio 12px, sem sombra */
.service-lab__panel {
  --lab-pad: 30px;
  position: relative;
  z-index: 1;
  padding: var(--lab-pad);
  overflow: clip;
  background: var(--services-paper-light);
  border: 1px solid var(--services-ink);
  border-radius: 12px;
  contain: layout paint;
}

.service-lab__panel--dark { color: var(--services-paper); background: var(--services-ink); }

.service-lab__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(111, 129, 152, 0.5);
  color: var(--services-ink);
  font: 600 11px/1.25 var(--ff-ui, 'Cabin', sans-serif);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.service-lab__panel--dark .service-lab__head { color: var(--services-paper); border-bottom-color: rgba(199, 180, 154, 0.4); }
.service-lab__head b { margin-right: 10px; color: var(--services-accent); }
.service-lab__steps { color: var(--services-muted); }
.service-lab__steps i { margin-inline: 7px; color: var(--services-accent); font-style: normal; }
.service-lab--editorial .service-lab__head > span:last-child { color: var(--services-accent); }

.service-lab figcaption {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  color: var(--services-ink);
  font: 400 13px/1.45 var(--ff-ui, 'Cabin', sans-serif);
  text-wrap: pretty;
}

.service-lab figcaption > i { width: 16px; height: 1.5px; flex: 0 0 16px; margin-top: 9px; background: var(--services-accent); }
.service-lab__status { min-height: 45px; margin: 12px 0 0; font-size: 15px; font-style: italic; line-height: 1.5; text-wrap: pretty; }

.identity-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  margin-top: 22px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(199, 180, 154, 0.7);
  container-type: inline-size;
}

.identity-part { transition: opacity 0.35s ease, filter 0.35s ease; }
.identity-art[data-active] .identity-part:not(.is-active) { opacity: 0.14; }
.identity-art__safe { position: absolute; inset: 7cqw; border: 1px dashed rgba(199, 180, 154, 0.95); }
.identity-art__measure { position: absolute; left: 7cqw; right: 7cqw; top: 2.2cqw; height: 2.8cqw; color: var(--services-ink); }
.identity-art__measure > i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(111, 129, 152, 0.6); }
.identity-art__measure > i:first-child { left: 0; }
.identity-art__measure > i:nth-child(2) { left: 33cqw; }
.identity-art__measure > i:nth-child(3) { right: 0; }
.identity-art__measure::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(111, 129, 152, 0.6); }
.identity-art__measure small { position: absolute; top: 50%; padding-inline: 6px; background: #fff; font: 400 clamp(10px, 1.9cqw, 11px)/1 var(--ff-ui, 'Cabin', sans-serif); transform: translate(-50%, -50%); }
.identity-art__measure small:nth-of-type(1) { left: 16.5cqw; }
.identity-art__measure small:nth-of-type(2) { left: 59.5cqw; }
.identity-art__axis { position: absolute; background: rgba(111, 129, 152, 0.6); }
.identity-art__axis--v { left: 40cqw; inset-block: 0; width: 1px; }
.identity-art__axis--h { left: 0; right: 0; top: 58cqw; height: 1px; }
.identity-art__circle { position: absolute; left: 22cqw; top: 40cqw; width: 36cqw; height: 36cqw; border: 1px dashed rgba(111, 129, 152, 0.6); border-radius: 50%; }
.identity-art__field { position: absolute; left: 40cqw; top: 7cqw; width: 53cqw; height: 51cqw; background: var(--services-ink); }
.identity-art__arch { position: absolute; left: 40cqw; top: 31.5cqw; width: 53cqw; height: 26.5cqw; border-radius: 26.5cqw 26.5cqw 0 0; background: var(--services-sand); }
.identity-art__dot { position: absolute; left: 81cqw; top: 14cqw; width: 6cqw; height: 6cqw; border-radius: 50%; background: var(--services-accent); }
.identity-art__glyph { position: absolute; left: 11cqw; top: 17.15cqw; color: var(--services-ink); font: 300 46cqw/1 var(--ff-heading, 'Noto Serif', serif); }
.identity-art__rule { position: absolute; left: 44cqw; top: 66cqw; width: 10cqw; height: 1.1cqw; background: var(--services-accent); }
.identity-art__type { position: absolute; left: 44cqw; background: var(--services-ink); }
.identity-art__type--a { top: 70.5cqw; width: 34cqw; height: 3cqw; }
.identity-art__type--b { top: 76.5cqw; width: 26cqw; height: 1.6cqw; opacity: 0.55; }
.identity-art__type--c { top: 81.5cqw; width: 44cqw; height: 1cqw; opacity: 0.24; box-shadow: 0 3.5cqw 0 rgba(16, 35, 63, 0.24); }
.identity-art__swatches { position: absolute; left: 11cqw; top: 73cqw; display: flex; gap: 1.5cqw; }
.identity-art__swatches i { width: 5.5cqw; height: 5.5cqw; background: var(--services-ink); }
.identity-art__swatches i:nth-child(2) { background: var(--services-accent); }
.identity-art__swatches i:nth-child(3) { background: var(--services-sand); }
.identity-art__swatches i:nth-child(4) { background: var(--services-paper); box-shadow: inset 0 0 0 1px rgba(16, 35, 63, 0.22); }
/* Seleção do Design System: moldura fina, alças nos cantos e etiqueta, no vinho
   (o filete do Design System sobre fundo claro). Anda de um componente para o outro. */
.identity-art__select {
  --sx: 7cqw; --sy: 7cqw; --sw: 86cqw; --sh: 86cqw;
  position: absolute;
  z-index: 3;
  left: var(--sx);
  top: var(--sy);
  width: var(--sw);
  height: var(--sh);
  box-shadow: inset 0 0 0 1px var(--services-accent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.2, 0.65, 0.2, 1), left 0.32s cubic-bezier(0.2, 0.65, 0.2, 1), top 0.32s cubic-bezier(0.2, 0.65, 0.2, 1), width 0.32s cubic-bezier(0.2, 0.65, 0.2, 1), height 0.32s cubic-bezier(0.2, 0.65, 0.2, 1);
}
.identity-art__select > i { position: absolute; width: 7px; height: 7px; box-sizing: border-box; background: #fff; border: 1px solid var(--services-accent); }
.identity-art__select > i:nth-child(1) { left: 0; top: 0; transform: translate(-50%, -50%); }
.identity-art__select > i:nth-child(2) { right: 0; top: 0; transform: translate(50%, -50%); }
.identity-art__select > i:nth-child(3) { left: 0; bottom: 0; transform: translate(-50%, 50%); }
.identity-art__select > i:nth-child(4) { right: 0; bottom: 0; transform: translate(50%, 50%); }
.identity-art[data-active] .identity-art__select { opacity: 1; }
.identity-art[data-active='type'] .identity-art__select { --sx: 11cqw; --sy: 26.5cqw; --sw: 24cqw; --sh: 46.5cqw; }
.identity-art[data-active='color'] .identity-art__select { --sx: 39cqw; --sy: 6cqw; --sw: 55cqw; --sh: 53cqw; }
.identity-art[data-active='shape'] .identity-art__select { --sx: 39cqw; --sy: 30.5cqw; --sw: 55cqw; --sh: 28.5cqw; }
.identity-art[data-active='composition'] .identity-art__select { --sx: 7cqw; --sy: 7cqw; --sw: 86cqw; --sh: 86cqw; }
.identity-art__label {
  position: absolute;
  left: 0;
  bottom: 100%;
  margin-bottom: 4px;
  padding: 0.25em 0.55em 0.2em;
  color: #fff;
  background: var(--services-accent);
  font: 500 clamp(9px, 2cqw, 11px)/1.2 var(--ff-ui, 'Cabin', sans-serif);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.identity-art__label:empty { display: none; }
/* Composição ocupa a área segura inteira: a etiqueta vai para baixo da moldura */
.identity-art[data-active='composition'] .identity-art__label { top: 100%; bottom: auto; margin: 4px 0 0; }

.service-controls { display: grid; gap: 8px; margin-top: 18px; }
.service-controls--identity { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-controls--formats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(16, 35, 63, 0.22);
  border-radius: 0;
  color: var(--services-ink);
  background: transparent;
  outline-offset: 3px;
  font: 500 14px/1.2 var(--ff-ui, 'Cabin', sans-serif);
  white-space: nowrap;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.service-controls button:hover { border-color: var(--services-accent); background: #fff; }
.service-controls button:focus-visible { outline: 2px solid var(--services-accent); }
.service-controls button[aria-pressed='true'] { color: var(--services-paper); border-color: var(--services-ink); background: var(--services-ink); box-shadow: inset 0 -3px 0 var(--services-accent); }
/* Identidade: quatro botões numa fileira. Texto, espaço do ícone e recuo
   acompanham a largura da fileira (o mesmo tamanho nos quatro, com folga
   dentro da borda); numa fileira estreita, os ícones saem. No celular
   (duas colunas) valem as regras do fim do arquivo. */
.service-controls--identity { container-type: inline-size; }
.service-controls--identity button {
  gap: clamp(4px, 1.2cqw, 8px);
  padding-inline: clamp(8px, 2.6cqw, 14px);
  font-size: clamp(11px, 2.7cqw, 13px);
}
@container (max-width: 400px) {
  .service-controls--identity .control-icon { display: none; }
}

.control-icon { display: flex; align-items: center; flex: 0 0 auto; }
.control-icon--type { font: 400 17px/1 var(--ff-heading, 'Noto Serif', serif); }
.control-icon--color { gap: 2px; }
.control-icon--color i { width: 6px; height: 12px; background: var(--services-ink); box-shadow: 0 0 0 1px rgba(240, 236, 229, 0.6); }
.control-icon--color i:nth-child(2) { background: var(--services-accent); }
.control-icon--color i:nth-child(3) { background: var(--services-sand); }
.control-icon--shape { width: 16px; height: 8px; border-radius: 8px 8px 0 0; background: currentColor; }
.control-icon--composition { position: relative; width: 14px; height: 14px; border: 1px dashed currentColor; }
.control-icon--composition::before { content: ''; position: absolute; left: 5px; inset-block: -1px; width: 1px; background: currentColor; }
.control-icon--composition::after { content: ''; position: absolute; top: 7px; inset-inline: -1px; height: 1px; background: currentColor; }

.editorial-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  margin-top: 22px;
  background-color: #fbf9f5;
  background-image: radial-gradient(rgba(111, 129, 152, 0.4) 1px, transparent 1.4px);
  background-position: 9px 9px;
  background-size: 18px 18px;
  box-shadow: inset 0 0 0 1px rgba(199, 180, 154, 0.55);
  container-type: inline-size;
}
/* Prancheta que muda de formato (posições do arquivo de design, em % da prancheta) */
.editorial-frame {
  --format-ease: 0.9s cubic-bezier(0.65, 0, 0.35, 1);
  position: absolute;
  left: 15.6%; top: 7%; width: 68.8%; height: 86%;
  overflow: hidden;
  container-type: size;
  color: var(--services-ink);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(199, 180, 154, 0.85), 0 26px 44px -30px rgba(16, 35, 63, 0.5);
  transition: left var(--format-ease), top var(--format-ease), width var(--format-ease), height var(--format-ease);
}
.editorial-stage[data-format='vertical'] .editorial-frame { left: 28.85%; top: 3%; width: 42.3%; height: 94%; }
.editorial-stage[data-format='horizontal'] .editorial-frame { left: 3%; top: 16.95%; width: 94%; height: 66.1%; }
.editorial-frame > * { position: absolute; transition: left var(--format-ease), top var(--format-ease), width var(--format-ease), height var(--format-ease); }
.editorial-frame__safe { inset: 7%; border: 1px dashed rgba(199, 180, 154, 0.9); }
.editorial-frame__field { left: 0; top: 0; width: 100%; height: 50%; background: var(--services-ink); transform-origin: 0 0; }
.editorial-frame__dot { left: 64%; top: 11%; width: 22cqmin; height: 22cqmin; border-radius: 50%; background: var(--services-accent); }
.editorial-frame__count { left: 7%; top: 7%; color: var(--services-paper); font: 600 clamp(10px, 3.4cqmin, 13px)/1 var(--ff-ui, 'Cabin', sans-serif); letter-spacing: 0.14em; white-space: nowrap; }
.editorial-frame__count span { color: var(--services-sand); }
.editorial-frame__eyebrow { left: 7%; top: 57%; color: var(--services-accent); font: 600 clamp(10px, 3.2cqmin, 12px)/1 var(--ff-ui, 'Cabin', sans-serif); letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap; }
.services--experience .editorial-frame__title { left: 7%; top: 61.5%; width: 50%; margin: 0; color: var(--services-ink); font: 300 12cqmin/1.04 var(--ff-heading, 'Noto Serif', serif); letter-spacing: -0.01em; }
.editorial-frame__title > span { display: block; white-space: nowrap; transform-origin: 0 0; transition: transform var(--format-ease); }
.editorial-frame__title em { color: var(--services-accent); font-style: italic; }
.editorial-frame__bars { left: 57%; top: 61%; width: 36%; display: grid; gap: 2.2cqmin; }
.editorial-frame__bars i { display: block; height: 1.1cqmin; min-height: 2px; background: rgba(16, 35, 63, 0.24); transform-origin: 0 50%; }
.editorial-frame__bars i:nth-child(2) { width: 86%; }
.editorial-frame__bars i:nth-child(3) { width: 62%; }
.editorial-frame__rule { left: 7%; top: 89%; width: 12%; height: 1cqmin; min-height: 2px; background: var(--services-accent); transform-origin: 0 50%; }
.editorial-frame__guide { left: 7%; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--services-accent); opacity: 0.3; transform-origin: 50% 0; transition: opacity 0.45s ease; }
.editorial-stage.is-moving .editorial-frame__guide { opacity: 0.9; }

.editorial-stage[data-format='vertical'] .editorial-frame__field { height: 45%; }
.editorial-stage[data-format='vertical'] .editorial-frame__dot { left: 39%; top: 10%; }
.editorial-stage[data-format='vertical'] .editorial-frame__count { top: 4%; }
.editorial-stage[data-format='vertical'] .editorial-frame__eyebrow { top: 50%; }
.services--experience .editorial-stage[data-format='vertical'] .editorial-frame__title { top: 53.5%; width: 61%; }
.editorial-stage[data-format='vertical'] .editorial-frame__title > span { transform: scale(1.4); }
.editorial-stage[data-format='vertical'] .editorial-frame__bars { left: 7%; top: 77%; width: 70%; }
.editorial-stage[data-format='vertical'] .editorial-frame__rule { top: 91%; width: 18%; }

.editorial-stage[data-format='horizontal'] .editorial-frame__field { left: 58%; width: 42%; height: 100%; }
.editorial-stage[data-format='horizontal'] .editorial-frame__dot { left: 72.8%; top: 39%; }
.editorial-stage[data-format='horizontal'] .editorial-frame__count { left: 62%; top: 9%; }
.editorial-stage[data-format='horizontal'] .editorial-frame__eyebrow { top: 17%; }
.services--experience .editorial-stage[data-format='horizontal'] .editorial-frame__title { top: 24%; width: 38%; }
.editorial-stage[data-format='horizontal'] .editorial-frame__title > span { transform: scale(1.25); }
.editorial-stage[data-format='horizontal'] .editorial-frame__bars { left: 7%; top: 63%; width: 40%; }
.editorial-stage[data-format='horizontal'] .editorial-frame__rule { top: 84%; width: 9%; }
.format-icon { display: block; border: 1px solid currentColor; }
.format-icon--square { width: 14px; height: 14px; }
.format-icon--vertical { width: 9px; height: 16px; }
.format-icon--horizontal { width: 17px; height: 10px; }

.service-lab--motion .service-lab__head b { color: var(--services-sand); }
.service-lab--motion .service-lab__head { align-items: center; border-bottom-color: rgba(199, 180, 154, 0.25); }
.motion-phase-labels { position: relative; display: grid; min-width: 156px; justify-items: end; margin-left: auto; color: var(--services-sand); }
.motion-phase-labels i { grid-area: 1 / 1; font-style: normal; opacity: 0; }
/* Botão da sequência: parado = fundo areia com "play"; tocando = vazado com "pausa" */
.motion-toggle { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 1px solid var(--services-sand); border-radius: 50%; color: var(--services-ink); background: var(--services-sand); cursor: pointer; touch-action: manipulation; transition: color 0.25s ease, background-color 0.25s ease; }
.motion-toggle[data-playing='true'] { color: var(--services-paper); background: transparent; }
.motion-toggle:hover { color: var(--services-ink); background: var(--services-paper); }
.motion-toggle span { display: block; width: 0; height: 0; margin-left: 3px; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid currentColor; }
.motion-toggle[data-playing='true'] span { width: 10px; height: 13px; margin-left: 0; border: 0; border-inline: 3px solid currentColor; }
.motion-toggle:focus-visible { outline: 2px solid var(--services-sand); outline-offset: 3px; }

.motion-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 8 / 3;
  margin-top: 22px;
  background: var(--services-ink);
  box-shadow: inset 0 0 0 1px rgba(199, 180, 154, 0.2);
  container-type: inline-size;
}
.motion-corner { position: absolute; width: 2.4cqw; height: 2.4cqw; border-color: rgba(199, 180, 154, 0.5); border-style: solid; }
.motion-corner--tl { left: 4%; top: 6%; border-width: 1px 0 0 1px; }
.motion-corner--tr { right: 4%; top: 6%; border-width: 1px 1px 0 0; }
.motion-corner--bl { left: 4%; bottom: 6%; border-width: 0 0 1px 1px; }
.motion-corner--br { right: 4%; bottom: 6%; border-width: 0 1px 1px 0; }
.motion-stage__line { position: absolute; left: 8%; right: 8%; top: calc(64% - 1px); height: 2px; background: var(--services-sand); transform: scaleX(0); transform-origin: 50%; }
.motion-stage__dot { position: absolute; left: 50%; top: 64%; width: 1.6cqw; height: 1.6cqw; margin: -0.8cqw 0 0 -0.8cqw; border-radius: 50%; background: var(--services-accent); opacity: 0; }
.motion-letter { position: absolute; top: 64%; width: 0; height: 0; color: var(--services-paper); }
.motion-letter--0 { left: 14%; }
.motion-letter--1 { left: 32%; }
.motion-letter--2 { left: 50%; }
.motion-letter--3 { left: 68%; }
.motion-letter--4 { left: 86%; }
.motion-letter > i { position: absolute; left: -9cqw; top: -0.888em; width: 18cqw; color: inherit; font: 300 12cqw/1 var(--ff-heading, 'Noto Serif', serif); font-style: normal; text-align: center; opacity: 0; }
.motion-beat { position: absolute; top: calc(64% - 1.2cqw); width: 2px; height: 2.4cqw; background: var(--services-sand); opacity: 0; }
.motion-beat--0 { left: calc(14% - 1px); }
.motion-beat--1 { left: calc(32% - 1px); }
.motion-beat--2 { left: calc(50% - 1px); }
.motion-beat--3 { left: calc(68% - 1px); background: var(--services-accent); }
.motion-beat--4 { left: calc(86% - 1px); }
/* Inglês: R·H·Y·T·H·M — seis letras, a cada 15% (a sexta só existe no inglês).
   "Rhythm." é mais longa que "Ritmo.": um pouco menor, com o sublinhado antes
   do "y" (a descendente) e o conector começando depois da palavra. */
.motion-letter--5,
.motion-beat--5 { display: none; }
html[data-lang='en'] .motion-letter--5,
html[data-lang='en'] .motion-beat--5 { display: block; }
html[data-lang='en'] .motion-letter--0 { left: 12.5%; }
html[data-lang='en'] .motion-letter--1 { left: 27.5%; }
html[data-lang='en'] .motion-letter--2 { left: 42.5%; }
html[data-lang='en'] .motion-letter--3 { left: 57.5%; }
html[data-lang='en'] .motion-letter--4 { left: 72.5%; }
html[data-lang='en'] .motion-letter--5 { left: 87.5%; }
html[data-lang='en'] .motion-beat--0 { left: calc(12.5% - 1px); }
html[data-lang='en'] .motion-beat--1 { left: calc(27.5% - 1px); }
html[data-lang='en'] .motion-beat--2 { left: calc(42.5% - 1px); }
html[data-lang='en'] .motion-beat--3 { left: calc(57.5% - 1px); }
html[data-lang='en'] .motion-beat--4 { left: calc(72.5% - 1px); }
html[data-lang='en'] .motion-beat--5 { left: calc(87.5% - 1px); }
html[data-lang='en'] .motion-word__resolved i { font-size: 12cqw; }
html[data-lang='en'] .motion-stage__underline { width: 14%; }
html[data-lang='en'] .motion-stage__connector { left: 57%; width: 13%; }
.motion-word__resolved { position: absolute; left: 10%; top: 64%; width: 0; height: 0; }
.motion-word__resolved i { position: absolute; left: 0; top: -0.888em; color: var(--services-paper); font: italic 300 13cqw/1 var(--ff-heading, 'Noto Serif', serif); white-space: nowrap; }
.motion-stage__underline { position: absolute; left: 10%; top: calc(64% + 2.6cqw); width: 16%; height: 3px; background: var(--services-accent); transform-origin: 0 50%; }
.motion-stage__connector { position: absolute; left: 50%; top: 64%; width: 20%; height: 1px; background: rgba(199, 180, 154, 0.7); transform-origin: 0 50%; }
.motion-stage__circle { position: absolute; left: calc(80% - 10cqw); top: calc(64% - 20cqw); width: 20cqw; height: 20cqw; border-radius: 50%; background: var(--services-sand); transform-origin: 50% 100%; }

.motion-timeline { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-top: 22px; }
.motion-timeline__labels { position: absolute; inset: 0; pointer-events: none; }
.motion-timeline__labels span { position: absolute; top: 0; padding-left: 10px; color: var(--services-sand); font: 600 11px/1 var(--ff-ui, 'Cabin', sans-serif); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.motion-timeline__labels span:first-child { left: 0; padding-left: 0; }
.motion-timeline__labels span:nth-child(2) { left: 30%; }
.motion-timeline__labels span:nth-child(3) { left: 68%; }
.motion-timeline__labels span:not(:first-child)::before { content: ''; position: absolute; left: 0; top: 18px; width: 1px; height: 20px; background: rgba(199, 180, 154, 0.45); }
.motion-timeline__track { position: relative; height: 58px; grid-column: 2; }
.motion-timeline__track::before { content: ''; position: absolute; left: 0; right: 0; top: 30px; height: 1px; background: rgba(199, 180, 154, 0.32); }
.motion-timeline__track > i { position: absolute; left: 0; right: 0; top: 30px; height: 2px; margin-top: -0.5px; background: var(--services-sand); transform-origin: left; }
.motion-timeline__track > b { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; pointer-events: none; }
.motion-timeline__track > b::before { content: ''; position: absolute; left: -1px; top: 19px; width: 2px; height: 22px; background: var(--services-accent); }
.motion-timeline__track > b::after { content: ''; position: absolute; left: -4px; top: 15px; width: 8px; height: 8px; background: var(--services-accent); }
.motion-timeline__ticks { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(199,180,154,.45) 0 1px, transparent 1px 6.25%); clip-path: polygon(0 64%,100% 64%,100% 76%,0 76%); opacity: .85; }
.motion-timeline__markers { position: absolute; inset: 0; }
.motion-timeline__markers i { position: absolute; top: 30px; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; background: var(--services-ink); box-shadow: inset 0 0 0 1px var(--services-sand); transform: rotate(45deg); }
.motion-timeline__markers i:nth-child(1) { left: 4%; }
.motion-timeline__markers i:nth-child(2) { left: 17%; }
.motion-timeline__markers i:nth-child(3) { left: 30%; }
.motion-timeline__markers i:nth-child(4) { left: 38%; }
.motion-timeline__markers i:nth-child(5) { left: 50%; }
.motion-timeline__markers i:nth-child(6) { left: 58%; }
.motion-timeline__markers i:nth-child(7) { left: 70%; }
.motion-timeline__markers i:nth-child(8) { left: 92%; }
.motion-timeline__time { grid-column: 3; color: var(--services-sand); font: 500 12px/1 var(--ff-ui, 'Cabin', sans-serif); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; white-space: nowrap; }

.service-lab__head--digital { align-items: center; }
.service-controls--digital { grid-template-columns: repeat(3, minmax(0, 1fr)); width: auto; margin: 0; }
.service-controls--digital button { min-height: 44px; padding: 8px 12px; font-size: 14px; }
.digital-control-icon { display: inline-flex; align-items: center; justify-content: center; width: 13px; height: 13px; flex: 0 0 13px; color: currentColor; font-style: normal; }
.digital-control-icon--structure { border: 1px dashed currentColor; }
.digital-control-icon--interface { background: currentColor; }
.digital-control-icon--interaction { border: 1.5px solid currentColor; border-radius: 50%; }
.digital-control-icon--interaction::after { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.digital-demo { position: relative; display: flex; flex-direction: column; aspect-ratio: 16 / 9; margin-top: 26px; background: #fff; box-shadow: 0 0 0 1px rgba(199, 180, 154, 0.8), 0 30px 60px -40px rgba(16, 35, 63, 0.5); container-type: inline-size; }
.digital-demo__columns { position: absolute; inset: 0 4cqw; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.6cqw; pointer-events: none; transition: opacity 0.5s ease; }
.digital-demo__columns i { background: rgba(163, 45, 50, 0.05); box-shadow: inset 1px 0 rgba(163, 45, 50, 0.16), inset -1px 0 rgba(163, 45, 50, 0.16); }
.digital-demo__nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 4cqw; padding: 1.7cqw 0; border-bottom: 1px solid rgba(16, 35, 63, 0.12); outline: 1px dashed transparent; outline-offset: 4px; transition: border-color 0.5s ease, outline-color 0.5s ease; }
.digital-demo__brand { display: flex; align-items: center; gap: 2.2cqw; }
.digital-demo__mark { position: relative; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--services-ink); box-shadow: inset 0 0 0 1px transparent; transition: background-color 0.5s ease, box-shadow 0.5s ease; }
.digital-demo__mark i { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--services-accent); transition: background-color 0.5s ease; }
.digital-demo__links { display: flex; align-items: center; gap: 2.2cqw; color: var(--services-ink); font: 500 clamp(12px, 1.3cqw, 13px)/1.2 var(--ff-ui, 'Cabin', sans-serif); }
.digital-demo__nav-cta { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; color: var(--services-ink); box-shadow: inset 0 0 0 1px rgba(16, 35, 63, 0.3); outline: 1px dashed transparent; outline-offset: -1px; font: 600 clamp(12px, 1.3cqw, 13px)/1 var(--ff-ui, 'Cabin', sans-serif); transition: box-shadow 0.5s ease, outline-color 0.5s ease; }
.digital-demo__burger { display: none; flex-direction: column; align-items: flex-end; gap: 4px; }
.digital-demo__burger i { width: 20px; height: 1.5px; background: var(--services-ink); }
.digital-demo__burger i:last-child { width: 13px; background: var(--services-accent); }
.digital-demo__body { position: relative; flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 5cqw; align-items: center; align-content: center; padding: 4cqw 4cqw 4.4cqw; background: var(--services-paper); transition: background-color 0.5s ease; }
.digital-demo__content,
.digital-demo__card { position: relative; min-width: 0; outline: 1px dashed transparent; transition: background-color 0.5s ease, outline-color 0.5s ease, box-shadow 0.5s ease; }
.digital-demo__content { outline-offset: 4px; }
.digital-demo__accent { display: block; width: 32px; height: 3px; margin-bottom: 14px; background: var(--services-accent); transform-origin: 0 50%; transition: transform 0.5s ease; }
.digital-demo__content small { display: block; color: var(--services-accent); font: 600 clamp(11px, 1.15cqw, 12px)/1.2 var(--ff-ui, 'Cabin', sans-serif); letter-spacing: 0.16em; text-transform: uppercase; }
.digital-demo__content h4 { margin: 1.4cqw 0 0; color: var(--services-ink); font: 300 clamp(24px, 3.5cqw, 36px)/1.1 var(--ff-heading, 'Noto Serif', serif); letter-spacing: -0.012em; }
.digital-demo__content h4 em { color: var(--services-accent); font-style: italic; }
.digital-demo__content > p { max-width: 34ch; margin: 1.2cqw 0 0; font-size: clamp(13.5px, 1.5cqw, 15px); line-height: 1.55; }
.digital-demo__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 2.4cqw; font: 600 clamp(12.5px, 1.35cqw, 14px)/1 var(--ff-ui, 'Cabin', sans-serif); }
.digital-demo__button { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; color: var(--services-paper); background: var(--services-ink); outline: 1px dashed transparent; outline-offset: -1px; transition: background-color 0.5s ease, color 0.5s ease, outline-color 0.5s ease; }
.digital-demo__link { display: inline-flex; align-items: center; padding-bottom: 4px; color: var(--services-ink); box-shadow: inset 0 -1px 0 var(--services-accent); transition: box-shadow 0.5s ease; }
.digital-demo__card { padding: 2.2cqw; outline-offset: -1px; background: #fff; box-shadow: 0 22px 40px -26px rgba(16, 35, 63, 0.45); }
.digital-demo__card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 14px; }
.digital-demo__card-head > strong { color: var(--services-ink); font: 600 clamp(11px, 1.15cqw, 12px)/1.2 var(--ff-ui, 'Cabin', sans-serif); letter-spacing: 0.16em; text-transform: uppercase; }
.digital-demo__steps { display: flex; align-items: center; gap: 6px; }
.digital-demo__steps i { width: 20px; height: 20px; border-radius: 50%; color: var(--services-ink); background: transparent; box-shadow: inset 0 0 0 1px rgba(16, 35, 63, 0.25); font: 700 10px/20px var(--ff-ui, 'Cabin', sans-serif); font-style: normal; text-align: center; transition: background-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease; }
.digital-demo__steps b { position: relative; width: 12px; height: 1px; background: rgba(16, 35, 63, 0.25); }
.digital-demo__steps b::after { content: ''; position: absolute; inset: 0; background: var(--services-accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
/* Etapa atual em azul; concluídas em areia; o filete entre elas enche de vinho */
.digital-demo__card[data-step='1'] .digital-demo__steps i:nth-of-type(1),
.digital-demo__card[data-step='2'] .digital-demo__steps i:nth-of-type(2),
.digital-demo__card[data-step='3'] .digital-demo__steps i:nth-of-type(3) { color: var(--services-paper); background: var(--services-ink); box-shadow: inset 0 0 0 1px var(--services-ink); }
.digital-demo__card[data-step='2'] .digital-demo__steps i:nth-of-type(1),
.digital-demo__card[data-step='3'] .digital-demo__steps i:nth-of-type(-n + 2),
.digital-demo__card[data-step='4'] .digital-demo__steps i { color: var(--services-ink); background: var(--services-sand); box-shadow: inset 0 0 0 1px var(--services-sand); }
.digital-demo__card[data-step='2'] .digital-demo__steps b:nth-of-type(1)::after,
.digital-demo__card[data-step='3'] .digital-demo__steps b::after,
.digital-demo__card[data-step='4'] .digital-demo__steps b::after { transform: scaleX(1); }
.digital-demo__options { display: grid; gap: 6px; }
.digital-demo__options button,
.digital-demo__services button { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; margin: 0; padding: 0 14px; border: 0; border-radius: 0; color: var(--services-ink); background: var(--services-paper); outline: 1px solid rgba(16, 35, 63, 0.1); outline-offset: -1px; font: 500 clamp(13px, 1.45cqw, 15px)/1.2 var(--ff-ui, 'Cabin', sans-serif); text-align: left; cursor: pointer; touch-action: manipulation; transition: background-color 0.25s ease, color 0.25s ease, outline-color 0.25s ease; }
.digital-demo__options button:hover,
.digital-demo__services button:hover { background: rgba(199, 180, 154, 0.38); outline-color: rgba(163, 45, 50, 0.6); }
.digital-demo__options button > i { flex: 0 0 14px; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(16, 35, 63, 0.42); transition: background-color 0.25s ease, box-shadow 0.25s ease; }
.digital-demo__options button > s { width: 10px; height: 6px; margin-left: auto; border-bottom: 2px solid currentColor; border-left: 2px solid currentColor; opacity: 0; transform: translateY(-2px) rotate(-45deg); transition: opacity 0.25s ease; }
.digital-demo__options button[aria-pressed='true'],
.digital-demo__services button[aria-pressed='true'] { color: var(--services-paper); background: var(--services-ink); outline-color: var(--services-ink); }
.digital-demo__options button[aria-pressed='true'] > i { background: var(--services-accent); box-shadow: inset 0 0 0 1.5px var(--services-paper); }
.digital-demo__options button[aria-pressed='true'] > s { opacity: 1; }
.digital-demo__options button:focus-visible,
.digital-demo__services button:focus-visible,
.digital-demo__card-foot button:focus-visible { outline: 2px solid var(--services-accent); outline-offset: 2px; }
/* Etapas do assistente: empilhadas na mesma célula (a altura não pula) */
.digital-demo__panes { display: grid; }
.digital-demo__pane { grid-area: 1 / 1; min-width: 0; transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.45s; }
.digital-demo__pane:not(.is-active) { visibility: hidden; opacity: 0; transform: translateX(28px); pointer-events: none; }
.digital-demo__pane.is-past { transform: translateX(-28px); }
.digital-demo__pane.is-active { transition: opacity 0.35s ease 0.08s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s; }
.digital-demo__services { display: grid; gap: 6px; }
.digital-demo__services button > i { position: relative; flex: 0 0 14px; width: 14px; height: 14px; box-shadow: inset 0 0 0 1.5px rgba(16, 35, 63, 0.42); transition: background-color 0.2s ease, box-shadow 0.2s ease; }
.digital-demo__services button[aria-pressed='true'] > i { background: var(--services-accent); box-shadow: none; }
.digital-demo__services button[aria-pressed='true'] > i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 7px; height: 4px; border-bottom: 2px solid #fff; border-left: 2px solid #fff; transform: rotate(-45deg); }
.digital-demo__hint { display: block; margin-top: 10px; color: var(--services-muted); font: 500 12px/1.3 var(--ff-ui, 'Cabin', sans-serif); }
.digital-demo__summary { display: grid; margin: 0; }
.digital-demo__summary div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(16, 35, 63, 0.12); }
.digital-demo__summary div:first-child { border-top: 1px solid rgba(16, 35, 63, 0.12); }
.digital-demo__summary dt { color: var(--services-muted); font: 600 11px/1.6 var(--ff-ui, 'Cabin', sans-serif); letter-spacing: 0.16em; text-transform: uppercase; }
.digital-demo__summary dd { margin: 0; color: var(--services-ink); font: 500 15px/1.4 var(--ff-ui, 'Cabin', sans-serif); }
.digital-demo__pane--done { display: grid; justify-items: center; align-content: center; gap: 10px; text-align: center; }
.digital-demo__pane--done strong { color: var(--services-ink); font: 300 clamp(20px, 2.4cqw, 26px)/1.15 var(--ff-heading, 'Noto Serif', serif); }
.digital-demo__real { padding-bottom: 4px; color: var(--services-ink); box-shadow: inset 0 -1px 0 var(--services-accent); font: 600 12px/1 var(--ff-ui, 'Cabin', sans-serif); letter-spacing: 0.14em; text-decoration: none; text-transform: uppercase; transition: color 0.2s ease; }
.digital-demo__real:hover { color: var(--services-accent); }
.digital-demo__real:focus-visible { outline: 2px solid var(--services-accent); outline-offset: 4px; }
/* Concluído: o círculo e o ✓ se desenham e oito pontos se espalham */
.digital-demo__success { position: relative; width: 56px; height: 56px; }
.digital-demo__success svg { display: block; width: 100%; height: 100%; overflow: visible; }
.digital-demo__success circle { fill: none; stroke: var(--services-accent); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; }
.digital-demo__success path { fill: none; stroke: var(--services-accent); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; }
.digital-demo__pane--done.is-active .digital-demo__success circle { animation: dg-draw 0.6s cubic-bezier(0.65, 0, 0.35, 1) 0.1s forwards; }
.digital-demo__pane--done.is-active .digital-demo__success path { animation: dg-draw 0.4s cubic-bezier(0.65, 0, 0.35, 1) 0.55s forwards; }
.digital-demo__success i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--services-accent); opacity: 0; }
.digital-demo__success i:nth-of-type(odd) { background: var(--services-sand); }
.digital-demo__success i:nth-of-type(4n) { background: var(--services-ink); }
.digital-demo__success i:nth-of-type(1) { --x: 0; --y: -40px; }
.digital-demo__success i:nth-of-type(2) { --x: 28px; --y: -28px; }
.digital-demo__success i:nth-of-type(3) { --x: 40px; --y: 0; }
.digital-demo__success i:nth-of-type(4) { --x: 28px; --y: 22px; }
.digital-demo__success i:nth-of-type(5) { --x: 0; --y: 30px; }
.digital-demo__success i:nth-of-type(6) { --x: -28px; --y: 22px; }
.digital-demo__success i:nth-of-type(7) { --x: -40px; --y: 0; }
.digital-demo__success i:nth-of-type(8) { --x: -28px; --y: -28px; }
.digital-demo__pane--done.is-active .digital-demo__success i { animation: dg-burst 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards; }
/* Rodapé do componente: voltar + avançar (Continuar → Revisar → Confirmar → Recomeçar) */
.digital-demo__card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 14px; }
.digital-demo__back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 0; padding: 0 4px; border: 0; color: var(--services-ink); background: none; font: 600 13px/1 var(--ff-ui, 'Cabin', sans-serif); cursor: pointer; transition: color 0.2s ease; }
.digital-demo__back:hover { color: var(--services-accent); }
.digital-demo__card[data-step='1'] .digital-demo__back,
.digital-demo__card[data-step='4'] .digital-demo__back { visibility: hidden; }
.digital-demo__next { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin: 0 0 0 auto; padding: 0 20px; border: 0; border-radius: 0; color: var(--services-ink); background: rgba(16, 35, 63, 0.1); outline: 1px dashed transparent; outline-offset: -1px; font: 600 clamp(13px, 1.4cqw, 14px)/1 var(--ff-ui, 'Cabin', sans-serif); transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, outline-color 0.5s ease; }
.digital-demo__next:not(:disabled) { color: #fff; background: var(--services-accent); cursor: pointer; }
.digital-demo__next:not(:disabled):hover { background: #8a262b; }
.digital-demo__next.is-busy { color: #fff; background: var(--services-accent); }
.digital-demo__next.is-busy::before { content: ''; width: 13px; height: 13px; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%; animation: dg-spin 0.7s linear infinite; }
.digital-demo__card[data-step='4'] .digital-demo__next { color: var(--services-ink); background: transparent; box-shadow: inset 0 0 0 1px rgba(16, 35, 63, 0.3); }
.digital-demo__card[data-step='4'] .digital-demo__next:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--services-accent); }
/* Notificação que desce no topo da tela ao concluir */
.digital-demo__toast { position: absolute; z-index: 12; left: 50%; top: 12px; display: inline-flex; align-items: center; gap: 10px; max-width: calc(100% - 24px); padding: 10px 16px; color: var(--services-paper); background: var(--services-ink); box-shadow: 0 16px 34px -18px rgba(16, 35, 63, 0.7); font: 600 13px/1.2 var(--ff-ui, 'Cabin', sans-serif); white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%, -18px); transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.digital-demo__toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.digital-demo__toast i { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--services-sand); box-shadow: 0 0 0 4px rgba(199, 180, 154, 0.25); }
.digital-demo__toast span { overflow: hidden; text-overflow: ellipsis; }
/* Onda do clique */
.dg-ripple { position: absolute; border-radius: 50%; background: currentColor; pointer-events: none; transform: translate(-50%, -50%) scale(0); }
/* Dica ao entrar no modo Interação: as opções acendem em sequência */
.digital-demo__options.is-hinting button { animation: dg-hint 1.3s ease-in-out 2; }
.digital-demo__options.is-hinting button:nth-child(2) { animation-delay: 0.12s; }
.digital-demo__options.is-hinting button:nth-child(3) { animation-delay: 0.24s; }
.digital-demo__options.is-hinting button:nth-child(4) { animation-delay: 0.36s; }

/* Selo da área escolhida (canto do conteúdo): eco dos laboratórios 01–04 */
.digital-demo__preview { position: absolute; z-index: 1; top: 0; right: 0; width: 76px; height: 76px; overflow: hidden; background: var(--services-ink); box-shadow: 0 14px 30px -18px rgba(16, 35, 63, 0.6); opacity: 0; pointer-events: none; transform: scale(0.6) rotate(-8deg); transition: opacity 0.35s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }
.digital-demo[data-area] .digital-demo__preview { opacity: 1; transform: none; }
.dg-art { position: absolute; inset: 0; opacity: 0; transform: scale(0.8); transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.digital-demo[data-area='0'] .dg-art--brand,
.digital-demo[data-area='1'] .dg-art--comm,
.digital-demo[data-area='2'] .dg-art--motion,
.digital-demo[data-area='3'] .dg-art--digital { opacity: 1; transform: none; }
.dg-art i { position: absolute; display: block; }
.dg-art--brand i:nth-child(1) { left: 16%; right: 16%; bottom: 0; height: 34%; border-radius: 999px 999px 0 0; background: var(--services-sand); transform-origin: 50% 100%; animation: dg-arch 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
.dg-art--brand i:nth-child(2) { right: 18%; top: 18%; width: 16%; height: 16%; border-radius: 50%; background: var(--services-accent); animation: dg-pulse 1.6s ease-in-out infinite; }
.dg-art--comm i { left: 50%; top: 50%; width: 52%; height: 52%; background: var(--services-paper); transform: translate(-50%, -50%); animation: dg-format 4.2s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
.dg-art--comm i::before { content: ''; position: absolute; right: 14%; top: 14%; width: 26%; aspect-ratio: 1; border-radius: 50%; background: var(--services-accent); }
.dg-art--comm i::after { content: ''; position: absolute; left: 14%; bottom: 16%; width: 46%; height: 9%; background: var(--services-ink); }
.dg-art--motion::before { content: ''; position: absolute; left: 14%; right: 14%; top: 64%; height: 2px; background: var(--services-sand); }
.dg-art--motion i { bottom: 36%; width: 3px; height: 20%; margin-left: -1.5px; background: var(--services-sand); transform-origin: 50% 100%; animation: dg-beat 1.2s ease-in-out infinite; }
.dg-art--motion i:nth-child(1) { left: 22%; }
.dg-art--motion i:nth-child(2) { left: 36%; animation-delay: 0.12s; }
.dg-art--motion i:nth-child(3) { left: 50%; background: var(--services-accent); animation-delay: 0.24s; }
.dg-art--motion i:nth-child(4) { left: 64%; animation-delay: 0.36s; }
.dg-art--motion i:nth-child(5) { left: 78%; animation-delay: 0.48s; }
.dg-art--digital i:nth-child(1) { left: 16%; right: 16%; top: 20%; bottom: 20%; background: var(--services-paper); }
.dg-art--digital i:nth-child(2) { left: 16%; right: 16%; top: 20%; height: 12%; background: var(--services-sand); }
.dg-art--digital i:nth-child(3) { left: 27%; top: 52%; width: 30%; height: 14%; background: var(--services-accent); animation: dg-press 1.8s ease-in-out infinite; }
/* O atalho `animation:` das regras acima volta o play-state para "running" e
   vencia o "paused" lá de cima: as 4 figuras animavam sempre, até fora da tela
   (e dg-format, que muda largura/altura, refazia o layout da página a cada
   quadro). Aqui, depois delas e mais específico: só a figura da área escolhida
   anima. Fora da tela, o data-motion-offscreen (js/core/script.js) pausa. */
.digital-demo .dg-art i { animation-play-state: paused; }
.digital-demo[data-area='0'] .dg-art--brand i,
.digital-demo[data-area='1'] .dg-art--comm i,
.digital-demo[data-area='2'] .dg-art--motion i,
.digital-demo[data-area='3'] .dg-art--digital i { animation-play-state: running; }
/* o layout que dg-format refaz fica dentro da figura (o tamanho dela vem do inset) */
.dg-art { contain: strict; }

/* Largura da própria demonstração (não da tela): estreita, o componente ganha
   espaço; bem estreita, conteúdo e componente ficam um embaixo do outro */
@container (max-width: 760px) {
  .digital-demo__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}
@container (max-width: 560px) {
  .digital-demo__body { grid-template-columns: minmax(0, 1fr); }
}

@keyframes dg-draw { to { stroke-dashoffset: 0; } }
@keyframes dg-burst { 0% { opacity: 1; transform: translate(0, 0) scale(0.4); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1); } }
@keyframes dg-spin { to { transform: rotate(360deg); } }
@keyframes dg-hint { 0%, 100% { outline-color: rgba(16, 35, 63, 0.1); background-color: var(--services-paper); } 45% { outline-color: var(--services-accent); background-color: #fff; } }
@keyframes dg-arch { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.35); } }
@keyframes dg-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
@keyframes dg-format { 0%, 25% { width: 52%; height: 52%; } 33%, 58% { width: 36%; height: 64%; } 66%, 91% { width: 66%; height: 40%; } 100% { width: 52%; height: 52%; } }
@keyframes dg-beat { 0%, 100% { transform: scaleY(0.45); } 40% { transform: scaleY(1.6); } }
@keyframes dg-press { 0%, 60%, 100% { transform: scale(1); } 70% { transform: scale(0.82); } 80% { transform: scale(1.06); } }
.digital-demo__status { min-height: 23px; margin: 14px 0 0; color: var(--services-ink); font: italic 15px/1.5 var(--ff-heading, 'Noto Serif', serif); text-wrap: pretty; }
.digital-demo__annotation { position: absolute; z-index: 4; left: -9px; top: -9px; display: flex; align-items: center; gap: 6px; pointer-events: none; transition: opacity 0.4s ease; }
.digital-demo__nav > .digital-demo__annotation { left: -13px; top: -13px; }
.digital-demo__annotation b { width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; color: var(--services-paper); background: var(--services-accent); font: 700 10px/18px var(--ff-ui, 'Cabin', sans-serif); text-align: center; }
.digital-demo__annotation i { padding: 2px 6px; color: var(--services-accent); background: #fff; font: 600 10px/1.2 var(--ff-ui, 'Cabin', sans-serif); font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
/* Cursor do Design System ("seta" e "mao"): ícone Phosphor cheio em azul-noturno
   com contorno marfim por baixo (7% do tamanho, mínimo 2px). O ponto (0,0) do
   elemento é a ponta da seta / do dedo; a escala do clique sai desse ponto. */
.digital-demo__cursor { --cursor: 30px; position: absolute; z-index: 10; left: 0; top: 0; width: 0; height: 0; opacity: 0; pointer-events: none; }
.ds-cursor {
  position: absolute;
  width: var(--cursor);
  height: var(--cursor);
  overflow: visible;
  fill: var(--services-ink);
  stroke: var(--services-paper);
  stroke-width: 17;
  stroke-linejoin: round;
  paint-order: stroke fill;
  transition: opacity 0.16s ease;
}
.ds-cursor--seta { left: calc(var(--cursor) * -0.125); top: calc(var(--cursor) * -0.125); }
.ds-cursor--mao { left: calc(var(--cursor) * -0.4375); top: calc(var(--cursor) * -0.07); opacity: 0; }
.digital-demo__cursor.is-hand .ds-cursor--seta { opacity: 0; }
.digital-demo__cursor.is-hand .ds-cursor--mao { opacity: 1; }

/* Texto ↔ barra de wireframe (modo Estrutura) */
.dg-t { position: relative; display: inline-block; max-width: 100%; vertical-align: top; transition: color 0.5s ease; }
.dg-t::after { content: ''; position: absolute; left: 0; top: 28%; bottom: 28%; width: 100%; background: rgba(111, 129, 152, 0.3); opacity: 0; transition: opacity 0.5s ease; }
.dg-t--short::after { width: 88%; }
.dg-t--option::after { width: 70%; }
.dg-t--lines { display: block; }
.dg-t--lines::after { right: 14%; top: 0.14em; bottom: 0; width: auto; background: repeating-linear-gradient(to bottom, rgba(111, 129, 152, 0.3) 0 0.62em, transparent 0.62em 1.1em); }
.digital-demo[data-mode='structure'] .dg-t,
.digital-demo[data-mode='structure'] .dg-t * { color: transparent; }
.digital-demo[data-mode='structure'] .dg-t::after { opacity: 1; }

.digital-demo[data-mode='structure'] .digital-demo__nav { border-bottom-color: transparent; outline-color: var(--services-muted); }
.digital-demo[data-mode='structure'] .digital-demo__mark { background: transparent; box-shadow: inset 0 0 0 1px var(--services-muted); }
.digital-demo[data-mode='structure'] .digital-demo__mark i { background: transparent; }
.digital-demo[data-mode='structure'] .digital-demo__nav-cta { box-shadow: none; outline-color: var(--services-muted); }
.digital-demo[data-mode='structure'] .digital-demo__body { background: transparent; }
.digital-demo[data-mode='structure'] .digital-demo__content { outline-color: var(--services-muted); }
.digital-demo[data-mode='structure'] .digital-demo__accent { transform: scaleX(0); }
.digital-demo[data-mode='structure'] .digital-demo__button { color: var(--services-ink); background: transparent; outline-color: var(--services-muted); }
.digital-demo[data-mode='structure'] .digital-demo__link { box-shadow: none; }
.digital-demo[data-mode='structure'] .digital-demo__card { background: transparent; box-shadow: none; outline-color: var(--services-muted); }
.digital-demo[data-mode='structure'] .digital-demo__card .digital-demo__steps i { color: var(--services-ink); background: transparent; box-shadow: inset 0 0 0 1px var(--services-muted); }
.digital-demo[data-mode='structure'] .digital-demo__options button { background: transparent; outline: 1px dashed var(--services-muted); }
.digital-demo[data-mode='structure'] .digital-demo__next { background: transparent; outline-color: var(--services-muted); }
.digital-demo:not([data-mode='structure']) .digital-demo__columns,
.digital-demo:not([data-mode='structure']) .digital-demo__annotation { opacity: 0; }

.services-process {
  position: relative;
  z-index: 1;
  margin-top: 80px;
  /* embaixo menor: a seção de Projetos já abre com o próprio respiro (112px) */
  padding: 140px var(--services-gutter) 56px;
  color: var(--services-ink);
}
.services-process__inner { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.services-process__title { grid-column: 1 / span 6; }
.services-process__title > span { display: flex; align-items: center; gap: 14px; color: var(--services-accent); font: 500 13px/1 var(--ff-ui, 'Cabin', sans-serif); letter-spacing: 0.2em; text-transform: uppercase; }
.services-process__title > span::before { content: ''; display: block; width: 40px; height: 2px; background: var(--services-accent); }
.services-process h3 { margin: 30px 0 0; color: var(--services-ink); font: 350 clamp(34px, 2.5cqw + 20px, 56px)/1.07 var(--ff-heading, 'Noto Serif', serif); letter-spacing: -0.016em; }
.services-process h3 em { color: var(--services-accent); font-style: italic; }
.services-process__title ol { display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 40px 0 0; padding: 0; list-style: none; }
.services-process__title li { display: flex; align-items: baseline; gap: 10px; color: var(--services-ink); font: 600 12px/1.2 var(--ff-ui, 'Cabin', sans-serif); letter-spacing: 0.16em; text-transform: uppercase; }
.services-process__title li span { color: var(--services-accent); font-weight: 500; }
.services-process__copy { grid-column: 8 / span 5; }
.services-process__copy > p { max-width: 44ch; margin: 0; color: var(--services-ink); font-size: 17px; line-height: 28px; text-wrap: pretty; }
.services-process__copy .services-process__prompt { margin-top: 18px; font-size: 16px; font-style: italic; line-height: 26px; }
.services-process__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 34px; margin-top: 36px; margin-left: -62px; }
.services-process__primary { display: inline-flex; align-items: center; gap: 18px; color: var(--services-ink); font: 600 15px/1 var(--ff-ui, 'Cabin', sans-serif); letter-spacing: 0.16em; text-transform: uppercase; outline-offset: 6px; }
.services-process__primary i { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--services-accent); border-radius: 50%; font: 400 20px/1 var(--ff-ui, 'Cabin', sans-serif); font-style: normal; transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease; }
/* a seta aponta para a direita: o link abre a página de projetos (projetos.html) */
.services-process__primary svg { display: block; width: 14px; height: 16px; transform: rotate(-90deg); }
.services-process__primary svg path { fill: none; stroke: currentColor; stroke-width: 1.5; }
.services-process__primary span { padding: 6px 0; border-bottom: 1px solid rgba(16, 35, 63, 0.3); }
.services-process__primary i.is-complete { color: var(--services-paper); background: var(--services-accent); }
/* Hover/foco: a seta fica azul noturno, também depois que a linha vermelha chega nela */
.services-process__primary:hover i,
.services-process__primary:focus-visible i { color: var(--services-paper); background: var(--services-ink); border-color: var(--services-ink); transform: translateX(3px); }
.services-process__secondary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--services-ink); font: 500 13px/1 var(--ff-ui, 'Cabin', sans-serif); letter-spacing: 0.14em; text-transform: uppercase; outline-offset: 6px; }
.services-process__secondary:hover { color: var(--services-accent); }
.services-process__primary:focus-visible,
.services-process__secondary:focus-visible { outline: 2px solid var(--services-accent); }

/* Tablet (720–1079px) — e base do celular: uma coluna, com recuo de 56px */
@media (max-width: 1079px) {
  .services-intro { display: block; padding-top: 112px; }
  .services-intro__copy { margin: 36px 0 0 56px; max-width: 680px; }
  .services-intro__areas { margin: 40px 0 0 56px; }
  .service-chapter { grid-template-columns: minmax(0, 1fr); row-gap: 48px; margin-top: 150px; padding-left: 56px; }
  .service-chapter .service-chapter__copy,
  .service-chapter .service-list,
  .service-chapter .service-lab { grid-column: 1; grid-row: auto; padding-top: 0; margin-top: 0; }
  .service-chapter--brand .service-lab,
  .service-chapter--design .service-lab { grid-row: 3; max-width: 600px; }
  .service-chapter--design .service-chapter__copy { grid-row: 1; }
  .service-chapter--design .service-list { grid-row: 2; }
  .service-chapter--motion .service-lab,
  .service-chapter--digital .service-lab { max-width: 760px; }
  .service-chapter--motion { row-gap: 48px; }
  .service-chapter--digital { row-gap: 52px; }
  .service-chapter--digital .service-chapter__copy { text-align: left; }
  .service-chapter--digital .service-chapter__copy > p,
  .service-chapter--digital .service-chapter__copy > p:last-of-type { margin-inline: 0; }
  .service-chapter__title--centered { justify-content: flex-start; }
  .service-list--columns ol { grid-template-columns: minmax(0, 1fr); }
  .service-lab__panel { --lab-pad: 28px; }
  .motion-stage { aspect-ratio: 2 / 1; }
  .motion-timeline__labels span { font-size: 10px; letter-spacing: 0.1em; }
  .digital-demo { aspect-ratio: auto; }
  .digital-demo__preview { width: 60px; height: 60px; }
  .digital-demo__columns { inset-inline: 24px; gap: 12px; }
  .digital-demo__nav { margin-inline: 24px; padding: 14px 0; }
  .digital-demo__brand,
  .digital-demo__links { gap: 18px; }
  .digital-demo__body { gap: 28px; padding: 30px 24px; }
  .digital-demo__card { padding: 18px; }
  .digital-demo__content h4 { margin-top: 12px; }
  .digital-demo__content > p { margin-top: 10px; }
  .digital-demo__actions { margin-top: 20px; }
  .services-process { margin-top: 64px; padding-block: 110px 48px; }
  .services-process__inner { display: block; padding-left: 56px; }
  .services-process__copy { margin-top: 40px; }
  .services-process__actions { margin-left: -70px; }
}

/* Celular (<720px) */
@media (max-width: 719px) {
  .services-experience__inner { padding-inline: 20px; }
  .services-intro { padding-top: 88px; }
  .services-kicker { gap: 10px; font-size: 11px; letter-spacing: 0.14em; }
  .services-kicker i { width: 22px; }
  .services-kicker b { margin-inline: -3px; }
  .services-intro h2 { font-size: 36px; line-height: 1.08; }
  .services-intro__copy { margin: 36px 0 0 30px; }
  .services-intro__copy p:first-child { font-size: 19px; }
  .services-intro__areas { flex-wrap: wrap; gap: 12px 22px; margin: 40px 0 0 30px; }
  .services-intro__areas li { flex: 0 1 auto; }
  .services-intro__areas li::after { display: none; }
  .service-chapter { row-gap: 36px; margin-top: 120px; padding-left: 30px; }
  .service-chapter--brand { margin-top: 112px; }
  .service-chapter--motion { row-gap: 36px; }
  .service-chapter--digital { row-gap: 40px; }
  .service-chapter .service-lab { max-width: none; }
  .service-chapter__title h3 { font-size: 32px; }
  .service-chapter--digital .service-chapter__title h3 { font-size: 34px; }
  .service-chapter__copy .service-chapter__lead { font-size: 19px; }
  .service-chapter__copy > p:last-of-type { font-size: 15px; line-height: 24px; }
  .service-lab__panel { --lab-pad: 18px; }
  .service-lab__steps { display: none; }
  .service-controls--identity { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-controls button { padding-inline: 8px; font-size: 13px; }
  .control-icon { display: none; }
  .identity-art__measure { display: none; }
  .identity-art__swatches { left: 11cqw; top: 73.5cqw; display: grid; grid-template-columns: 18.2cqw 5.2cqw 2.6cqw; gap: 0; }
  .identity-art__swatches i { width: auto; height: 3cqw; }
  .identity-art__swatches i:nth-child(3) { grid-column: 1 / -1; width: 26cqw; height: 0.6cqw; margin-top: 1.1cqw; }
  .identity-art__swatches i:nth-child(4) { position: absolute; left: 0; top: 0; width: 18.2cqw; height: 3cqw; opacity: 0.32; }
  .editorial-stage { aspect-ratio: 1; }
  .editorial-frame { left: 7%; top: 7%; width: 86%; height: 86%; }
  .editorial-stage[data-format='vertical'] .editorial-frame { left: 23.55%; top: 3%; width: 52.9%; height: 94%; }
  .editorial-stage[data-format='horizontal'] .editorial-frame { left: 3%; top: 23.55%; width: 94%; height: 52.9%; }
  .motion-stage { aspect-ratio: 4 / 3; }
  .motion-timeline { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .motion-timeline__labels,
  .motion-timeline__time { display: none; }
  .motion-timeline__track { height: 40px; }
  .motion-timeline__track::before,
  .motion-timeline__track > i,
  .motion-timeline__markers i { top: 20px; }
  .motion-timeline__track > b::before { top: 9px; }
  .motion-timeline__track > b::after { top: 5px; }
  .motion-timeline__ticks { clip-path: polygon(0 67%,100% 67%,100% 85%,0 85%); }
  .service-lab__head--digital { align-items: stretch; }
  .service-controls--digital { width: 100%; margin-top: 8px; }
  .service-controls--digital button { padding-inline: 8px; font-size: 13px; }
  .digital-control-icon { display: none; }
  .digital-demo { min-height: 653px; }
  .digital-demo__columns { inset-inline: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .digital-demo__columns i:nth-child(n + 5) { display: none; }
  .digital-demo__nav { margin-inline: 18px; padding: 12px 0; }
  .digital-demo__links,
  .digital-demo__nav-cta { display: none; }
  .digital-demo__burger { display: flex; }
  .digital-demo__body { grid-template-columns: minmax(0, 1fr); gap: 26px; align-content: center; padding: 26px 18px 46px; }
  .digital-demo__content > p,
  .digital-demo__link { display: none; }
  .digital-demo__card { padding: 16px; }
  .digital-demo__annotation i { display: none; }
  .services-process { margin-top: 48px; padding: 88px 20px 40px; }
  .services-process__inner { padding-left: 30px; }
  .services-process h3 { font-size: 34px; }
  .services-process__actions { align-items: flex-start; flex-direction: column; margin-left: -44px; }
  .services-journey__tags span { max-width: 190px; overflow: hidden; font-size: 9px; letter-spacing: 0.11em; text-overflow: ellipsis; }
}

@media (prefers-reduced-motion: reduce) {
  .services--experience *,
  .services--experience *::before,
  .services--experience *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    /* (as transições de cor e opacidade continuam: versão suave, style.css §27) */
  }
}

/* =============================================
   Peças de software do Design System (Agnaldo Augusto · Design System):
   Janela (01–03), Réguas (01–02), Seleção (01), Navegador e Cursor (04).
   Ícones Phosphor em símbolos SVG no index.html (#ph-*). Tokens do DS:
   linha fina 1px, raio da janela 12px, sem sombra.
   ============================================= */
.ds-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ds-icone { display: block; flex: none; width: 1em; height: 1em; fill: currentColor; }

/* Janela: barra de título com os três pontos, o arquivo aberto e "expandir" */
.ds-janela {
  display: flex;
  align-items: center;
  gap: 0.9em;
  margin: calc(var(--lab-pad) * -1) calc(var(--lab-pad) * -1) calc(var(--lab-pad) * 0.8);
  padding: 0.62em 0.85em;
  color: var(--services-ink);
  background: var(--services-paper);
  border-bottom: 1px solid var(--services-ink);
  font: 400 13px/1.2 var(--ff-ui, 'Cabin', sans-serif);
  letter-spacing: 0.01em;
}
.ds-janela__pontos { display: flex; gap: 0.38em; }
.ds-janela__pontos i { width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--services-accent); }
.ds-janela__pontos i:nth-child(2) { background: var(--services-sand); }
.ds-janela__pontos i:nth-child(3) { background: var(--services-muted); }
.ds-janela__titulo { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-janela .ds-icone { width: 1.1em; height: 1.1em; }
/* Janela escura (movimento): barra azul-noturno, primeiro ponto marfim */
.service-lab__panel--dark .ds-janela { color: var(--services-paper); background: var(--services-ink); border-bottom-color: rgba(240, 236, 229, 0.16); }
.service-lab__panel--dark .ds-janela__pontos i:first-child { background: var(--services-paper); }

/* Réguas em volta do documento (traço a cada 10, 50 e 100px, números a cada 100) */
.ds-documento { display: grid; grid-template-columns: 16px minmax(0, 1fr); grid-template-rows: 16px auto; margin-top: 22px; }
.ds-documento > .identity-art,
.ds-documento > .editorial-stage { grid-column: 2; grid-row: 2; margin-top: 0; }
.ds-documento__canto { grid-column: 1; grid-row: 1; background: var(--services-paper); box-shadow: inset -1px -1px 0 rgba(16, 35, 63, 0.35); }
.ds-regua {
  position: relative;
  overflow: hidden;
  color: rgba(16, 35, 63, 0.7);
  background-color: var(--services-paper);
  background-repeat: no-repeat;
  font: 400 9px/1 var(--ff-ui, 'Cabin', sans-serif);
  letter-spacing: 0.02em;
}
.ds-regua--h {
  grid-column: 2;
  grid-row: 1;
  background-image:
    repeating-linear-gradient(90deg, currentColor 0 1.5px, transparent 1.5px 100px),
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 50px),
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 10px);
  background-size: 100% 100%, 100% 45%, 100% 22%;
  background-position: left bottom;
  box-shadow: inset 0 -1px 0 rgba(16, 35, 63, 0.35);
}
.ds-regua--v {
  grid-column: 1;
  grid-row: 2;
  background-image:
    repeating-linear-gradient(180deg, currentColor 0 1.5px, transparent 1.5px 100px),
    repeating-linear-gradient(180deg, currentColor 0 1px, transparent 1px 50px),
    repeating-linear-gradient(180deg, currentColor 0 1px, transparent 1px 10px);
  background-size: 100% 100%, 45% 100%, 22% 100%;
  background-position: right top;
  box-shadow: inset -1px 0 0 rgba(16, 35, 63, 0.35);
}
.ds-regua b { position: absolute; font-weight: 400; }
.ds-regua--h b { top: 2px; }
.ds-regua--v b { left: 2px; writing-mode: vertical-rl; transform: rotate(180deg); }
.ds-regua--h b:nth-child(1) { left: 103px; }
.ds-regua--h b:nth-child(2) { left: 203px; }
.ds-regua--h b:nth-child(3) { left: 303px; }
.ds-regua--h b:nth-child(4) { left: 403px; }
.ds-regua--h b:nth-child(5) { left: 503px; }
.ds-regua--h b:nth-child(6) { left: 603px; }
.ds-regua--v b:nth-child(1) { top: 103px; }
.ds-regua--v b:nth-child(2) { top: 203px; }
.ds-regua--v b:nth-child(3) { top: 303px; }
.ds-regua--v b:nth-child(4) { top: 403px; }
.ds-regua--v b:nth-child(5) { top: 503px; }
.ds-regua--v b:nth-child(6) { top: 603px; }

/* Navegador: abas em areia, barra de endereço em marfim, borda azul-noturno */
.ds-navegador {
  margin-top: 26px;
  overflow: hidden;
  color: var(--services-ink);
  border: 1.5px solid var(--services-ink);
  border-radius: 0.5em;
  font: 400 15px/1.1 var(--ff-ui, 'Cabin', sans-serif);
}
.ds-navegador__abas { display: flex; align-items: flex-end; gap: 0.8em; padding: 0.5em 0.8em 0; background: var(--services-sand); }
.ds-navegador__pontos { display: flex; align-self: center; gap: 0.38em; padding-bottom: 0.4em; }
.ds-navegador__pontos i { width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--services-accent); }
.ds-navegador__pontos i:nth-child(2) { background: var(--services-ink); }
.ds-navegador__pontos i:nth-child(3) { background: var(--services-muted); }
.ds-navegador__aba { display: flex; align-items: center; gap: 0.6em; min-width: 0; max-width: 62%; padding: 0.42em 0.8em 0.5em; background: var(--services-paper); border-radius: 0.45em 0.45em 0 0; font-size: 0.78em; }
.ds-navegador__aba > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-navegador__aba .ds-icone { width: 0.8em; height: 0.8em; }
.ds-navegador__mais { align-self: center; width: 0.85em; height: 0.85em; margin-bottom: 0.4em; }
.ds-navegador__barra { display: flex; align-items: center; gap: 0.7em; padding: 0.45em 0.8em; background: var(--services-paper); border-bottom: 1.5px solid var(--services-ink); }
.ds-navegador__barra > .ds-icone { width: 0.95em; height: 0.95em; }
.ds-navegador__url { display: flex; flex: 1; align-items: center; gap: 0.45em; min-width: 0; padding: 0.28em 0.8em; border-radius: 1em; background: #fff; font-size: 0.8em; }
.ds-navegador__url .ds-icone { width: 0.9em; height: 0.9em; }
.ds-navegador__url > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-navegador > .digital-demo { margin-top: 0; box-shadow: none; }

@media (max-width: 719px) {
  .ds-janela { font-size: 12px; }
  .ds-documento { grid-template-columns: 12px minmax(0, 1fr); grid-template-rows: 12px auto; }
  .ds-regua b { display: none; }
  .ds-navegador { margin-top: 20px; font-size: 12.5px; }
  .ds-navegador__barra > .ds-icone:nth-of-type(2),
  .ds-navegador__barra > .ds-icone:last-child { display: none; }
  .digital-demo__cursor { --cursor: 26px; }
  .ds-cursor { stroke-width: 19.7; }
}
