/* =====================================================================
   Edgard Genaro / Portfólio · v7
   Minimalismo grotesco com cor por seção: a página muda entre preto (topo e
   rodapé), cinza escuro, branco e azul durante a rolagem. Palavras em
   destaque em serifada itálica. Da subscrr.app vieram os cantos arredondados,
   o cabeçalho em cápsula, os botões em pílula e mais respiro entre os blocos.
   v7: cases curtos e diretos (problema, situação, solução e resultado), com
   imagens grandes e reais, quadros de sitemap e renders de estúdio.
   Instrument Sans (texto e rótulos em caixa-alta) · Instrument Serif itálico (destaques)
   ===================================================================== */

/* ---------- Fontes locais (subsets latin + latin-ext) ---------- */
@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
  src: url(../fonts/InstrumentSans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
  src: url(../fonts/InstrumentSans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/InstrumentSerif-Italic-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/InstrumentSerif-Italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/JetBrainsMono-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/JetBrainsMono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Cores que transitam ----------
   Registradas com @property para a troca de tema ser animada: a página inteira
   muda de cor quando uma seção nova chega ao meio da tela. */
@property --bg { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --bg-2 { syntax: "<color>"; inherits: true; initial-value: #f2f2f2; }
@property --fg { syntax: "<color>"; inherits: true; initial-value: #111112; }
@property --fg-2 { syntax: "<color>"; inherits: true; initial-value: #3d3d40; }
@property --fg-3 { syntax: "<color>"; inherits: true; initial-value: #6a6a6f; }
@property --fg-dim { syntax: "<color>"; inherits: true; initial-value: #8e8e93; }
@property --line { syntax: "<color>"; inherits: true; initial-value: rgb(17 17 18 / 0.1); }
@property --line-2 { syntax: "<color>"; inherits: true; initial-value: rgb(17 17 18 / 0.2); }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #0a5fd0; }
@property --hl { syntax: "<color>"; inherits: true; initial-value: #1a8cff; }
@property --bar { syntax: "<color>"; inherits: true; initial-value: #c8c8cc; }
@property --cta-bg { syntax: "<color>"; inherits: true; initial-value: #0a5fd0; }
@property --cta-fg { syntax: "<color>"; inherits: true; initial-value: #ffffff; }

/* ---------- Tokens ---------- */
:root {
  --ink: #111112;
  --blue: #1a8cff;       /* azul da marca, o mesmo do site anterior */
  --blue-deep: #0a56c8;  /* azul de fundo, com texto branco (6,6:1) */
  --blue-soft: #e3effd;

  --f-sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --f-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  /* rótulos e legendas pequenas: a mesma Instrument Sans, em caixa-alta (26/09/2026, pedido do Edgard; saiu a JetBrains Mono) */
  --f-mono: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  --maxw: 1440px;
  --margin: clamp(20px, 4.6vw, 80px);
  --gutter: clamp(16px, 1.8vw, 28px);
  --s-1: clamp(12px, 1.2vw, 16px);
  --s-2: clamp(20px, 2.4vw, 32px);
  --s-3: clamp(36px, 4.6vw, 64px);
  --s-4: clamp(64px, 8.4vw, 128px);
  --s-5: clamp(104px, 13vw, 208px);
  --header-h: 84px;      /* cápsula do cabeçalho com a folga de cima e de baixo */

  /* Cantos arredondados (v6) */
  --r-sm: 10px;
  --r-md: clamp(14px, 1.4vw, 20px);
  --r-lg: clamp(20px, 2.2vw, 32px);
  --r-xl: clamp(26px, 3.2vw, 48px);
  --r-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (max-width: 900px) { :root { --header-h: 76px; } }

/* ---------- Temas: branco, cinza escuro, preto e azul ----------
   Sem JS, cada seção pinta o próprio fundo. Com JS (html.st), o <body> recebe o
   tema da seção que está no meio da tela e as seções usam as cores do <body>.
   O preto (night) é fixo nas camadas que ficam por baixo: topo e rodapé.
   --fg-dim é a segunda cor dos títulos (3:1 ou mais, só em texto grande).
   --accent é o destaque em texto; --hl, em linhas, barras e bordas.
   --cta-bg e --cta-fg pintam os botões principais. */
:root,
body[data-theme="light"],
html:not(.st) [data-theme="light"] {
  --bg: #ffffff; --bg-2: #f2f2f2;
  --fg: #111112; --fg-2: #3d3d40; --fg-3: #6a6a6f; --fg-dim: #8e8e93;
  --line: rgb(17 17 18 / 0.1); --line-2: rgb(17 17 18 / 0.2);
  --accent: #0a5fd0; --hl: #1a8cff; --bar: #c8c8cc;
  --cta-bg: #0a5fd0; --cta-fg: #ffffff;
  color-scheme: light;
}
body[data-theme="dark"],
html:not(.st) [data-theme="dark"],
.dark {
  --bg: #1b1b1d; --bg-2: #252528;
  --fg: #f5f5f3; --fg-2: #c9c9c6; --fg-3: #95959a; --fg-dim: #6e6e74;
  --line: rgb(245 245 243 / 0.12); --line-2: rgb(245 245 243 / 0.24);
  --accent: #6cb4ff; --hl: #1a8cff; --bar: #55555b;
  --cta-bg: #0a5fd0; --cta-fg: #ffffff;
  color-scheme: dark;
}
body[data-theme="blue"],
html:not(.st) [data-theme="blue"] {
  --bg: #0a56c8; --bg-2: #1a62cd;
  --fg: #ffffff; --fg-2: #e6eefb; --fg-3: #c9dbf6; --fg-dim: #8fbcff;
  --line: rgb(255 255 255 / 0.2); --line-2: rgb(255 255 255 / 0.38);
  --accent: #ffffff; --hl: #ffffff; --bar: rgb(255 255 255 / 0.38);
  --cta-bg: #ffffff; --cta-fg: #0a56c8;
  color-scheme: dark;
}
body[data-theme="night"],
[data-theme="night"] {
  --bg: #09090b; --bg-2: #151518;
  --fg: #f5f5f3; --fg-2: #c9c9c6; --fg-3: #95959a; --fg-dim: #6a6a70;
  --line: rgb(245 245 243 / 0.12); --line-2: rgb(245 245 243 / 0.24);
  --accent: #6cb4ff; --hl: #1a8cff; --bar: #3d3d43;
  --cta-bg: #0a5fd0; --cta-fg: #ffffff;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background-color: var(--bg); color: var(--fg);
  font-family: var(--f-sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition-property: --bg, --bg-2, --fg, --fg-2, --fg-3, --fg-dim, --line, --line-2, --accent, --hl, --bar, --cta-bg, --cta-fg;
  transition-duration: 0.9s;
  transition-timing-function: var(--ease);
}
@media (min-width: 1200px) { body { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) { body { transition-duration: 0s; } }

:where([data-theme]:not(body)) { display: flow-root; background-color: var(--bg); color: var(--fg); }
:where([data-theme="blue"]:not(body)) { padding-bottom: var(--s-5); }
.dark { background-color: var(--bg); color: var(--fg); }
html:not(.st) .row[data-theme] { box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(0 -100vmax); }

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; }
ul, ol { list-style: none; }
strong, b { font-weight: 600; }

:focus-visible { outline: 2px solid var(--hl); outline-offset: 3px; }
::selection { background: var(--fg); color: var(--bg); }

.skip {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  padding: 12px 16px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-size: 14px;
}
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Seções em sequência ----------
   Nada passa por cima de nada: as seções rolam uma depois da outra, na ordem da página, e o rodapé vem no fim. */
main { position: relative; overflow: clip; background-color: var(--bg); }

/* ---------- Tipografia ---------- */
.mono {
  font-family: var(--f-mono); font-size: 11.5px; line-height: 1.5;
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
  color: var(--fg-3);
}
.cover-caption .label, .fig figcaption .label, .film figcaption .label, .device figcaption .label,
.ba-row--head > *, .compare .tag, .table thead th, .findings > li::before { font-weight: 500; font-variant-numeric: tabular-nums; }
.muted { color: var(--fg-3); }
.dim { color: var(--fg-dim); }
/* Palavra em destaque: serifada itálica, um pouco maior para igualar a altura visual */
.acc { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.1em; line-height: 0; letter-spacing: -0.005em; }

.display {
  font-weight: 500;
  font-size: clamp(3.5rem, 10.4vw, 11.5rem); line-height: 0.88; letter-spacing: -0.05em;
}
.huge { font-weight: 500; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.08; letter-spacing: -0.02em; }
.t-xl {
  font-weight: 480;
  font-size: clamp(2rem, 3.7vw, 3.5rem); line-height: 1.04; letter-spacing: -0.028em;
  text-wrap: balance;
}
.t-lg { font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.38; letter-spacing: -0.01em; max-width: 40ch; text-wrap: pretty; }
.t-lg .dim { color: var(--fg-3); }
.t-md { font-weight: 480; font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.28; letter-spacing: -0.008em; }
.t-body { color: var(--fg-2); max-width: 62ch; text-wrap: pretty; }
@media (max-width: 600px) { .display { letter-spacing: -0.038em; } }

.prose { max-width: 64ch; color: var(--fg-2); text-wrap: pretty; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 1em; }
.prose strong { color: var(--fg); }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.prose ul li { position: relative; padding-left: 1.2em; }
.prose ul li + li { margin-top: 0.4em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 0.5em; height: 1px; background: currentColor; }

.arrow { width: 0.95em; height: 0.95em; flex: none; transition: translate 0.35s var(--ease); }
.arrow--down { rotate: 90deg; }
.arrow--up { rotate: -90deg; }
.arrow--left { rotate: 180deg; }
.arrow--up-right { rotate: -45deg; }

/* ---------- Grade ---------- */
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--margin) * 2); margin-inline: auto; padding-inline: var(--margin); }
.row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  width: 100%; max-width: calc(var(--maxw) + var(--margin) * 2);
  margin-inline: auto; padding-inline: var(--margin);
}
.row .row { padding-inline: 0; max-width: none; }
.cell { min-width: 0; }
.cell--lg { padding-block: var(--s-2); }
.cell--0 { padding: 0; }
.c1 { grid-column: span 1; } .c2 { grid-column: span 2; } .c3 { grid-column: span 3; }
.c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; }
.c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c9 { grid-column: span 9; }
.c10 { grid-column: span 10; } .c11 { grid-column: span 11; } .c12 { grid-column: 1 / -1; }
.stack { display: flex; flex-direction: column; gap: var(--s-1); }

@media (max-width: 900px) {
  .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row > .cell { grid-column: 1 / -1; }
  .row--pairs > .cell { grid-column: span 1; }
  .row--pairs > .cell.m-full { grid-column: 1 / -1; }
  .hide-m { display: none !important; }
}

/* ---------- Links e botões ---------- */
.link {
  position: relative; display: inline-flex; align-items: center; gap: 0.55em; width: fit-content;
  padding-bottom: 5px; border-bottom: 1px solid var(--line-2);
  font-weight: 500; transition: color 0.3s;
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.55s var(--ease);
}
.link:hover::after { transform: scaleX(1); transform-origin: left; }
.link:hover .arrow { translate: 3px 0; }
.link:hover .arrow--down { translate: 0 3px; }
.link:hover .arrow--up-right { translate: 2px -2px; }
.link--quiet { color: var(--fg-3); }
.link--quiet:hover { color: var(--fg); }

/* Botão em pílula: o principal é cheio, o secundário só tem contorno */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 54px; padding: 0 26px; border: 0; border-radius: var(--r-pill);
  background-color: var(--cta-bg); color: var(--cta-fg);
  font-weight: 500; font-size: 16px; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.35s var(--ease), translate 0.5s var(--ease);
}
.btn:hover { translate: 0 -2px; }
.btn:hover .arrow { translate: 3px 0; }
.btn:hover .arrow--down { translate: 0 3px; }
.btn--ghost { background-color: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--fg); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.blocks > .cta-row { grid-column: 5 / -1; }
@media (max-width: 760px) { .blocks > .cta-row { grid-column: 1 / -1; } .cta-row .btn { flex: 1 1 100%; } }

/* ---------- Cabeçalho em cápsula, flutuando sobre a página ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  padding: 12px var(--margin) 0;
  color: var(--fg); pointer-events: none;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: var(--maxw); min-height: 60px; margin-inline: auto;
  padding: 7px 7px 7px 24px; border-radius: var(--r-pill);
  background-color: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -30px rgb(0 0 0 / 0.4);
  pointer-events: auto;
}
.brand { display: grid; gap: 2px; line-height: 1.15; }
.brand-name { padding-block: 7px; margin-block: -7px; font-size: 16px; font-weight: 600; letter-spacing: -0.005em; transition: color 0.25s; }
.brand-name:hover { color: var(--accent); }
.brand-meta { font-size: 13px; color: var(--fg-3); }
.brand-meta [data-clock] { font-variant-numeric: tabular-nums; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); font-size: 15px; }
.site-nav a:not(.nav-cta) { position: relative; padding-block: 6px; color: var(--fg-3); transition: color 0.25s; }
.site-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease);
}
.site-nav a:not(.nav-cta):hover { color: var(--fg); }
.site-nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.site-nav .nav-cta {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: var(--r-pill);
  background-color: var(--cta-bg); color: var(--cta-fg); font-weight: 500;
  transition: background-color 0.3s, color 0.3s, translate 0.5s var(--ease);
}
.site-nav .nav-cta:hover { translate: 0 -1px; }
@media (max-width: 900px) {
  .site-header { padding: 10px 10px 0; }
  .header-inner { min-height: 56px; padding: 6px 6px 6px 18px; }
  .site-nav { gap: 16px; }
  .site-nav .nav-cta { min-height: 42px; padding: 0 16px; }
}
/* Celular pequeno: some a hora para o nome e o botão caberem numa linha */
@media (max-width: 380px) {
  .header-inner { gap: 10px; padding-left: 16px; }
  .brand-meta { display: none; }
  .brand-name, .site-nav a { white-space: nowrap; }
  .site-nav { gap: 12px; }
  .site-nav .nav-cta { min-height: 40px; padding: 0 14px; }
}

/* =====================================================================
   Home
   ===================================================================== */
.hero {
  position: relative; overflow: clip;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + var(--s-3)); padding-bottom: var(--s-2);
}
/* Retrato grande e translúcido, como no site anterior: some no fundo pela esquerda e por baixo */
.hero-portrait { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-portrait img {
  position: absolute; bottom: 0; right: max(1vw, calc((100% - var(--maxw)) / 2 - 2vw));
  height: 100%; width: auto; max-width: none; opacity: 0.62;
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 97%), linear-gradient(to right, transparent 2%, #000 42%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 58%, transparent 97%), linear-gradient(to right, transparent 2%, #000 42%);
  mask-composite: intersect;
}
.hero-grid, .facts { position: relative; z-index: 1; }
.hero-copy { grid-column: 1 / -1; display: flex; flex-direction: column; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.hero-title { margin-top: var(--s-2); }
.rotator {
  display: grid; justify-items: start; color: var(--hl);
  font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.12em; line-height: 0.92; letter-spacing: -0.012em;
}
.rotator > * { grid-area: 1 / 1; white-space: nowrap; padding-right: 0.08em; }
.rotator .ch { display: inline-block; }
.hero-foot { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-3); }
.hero-intro { max-width: 38ch; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.rotator-toggle { margin-left: 12px; padding: 6px 0; border: 0; background: none; color: var(--fg-3); cursor: pointer; transition: color 0.25s; }
.rotator-toggle:hover { color: var(--fg); }
.facts { margin-top: var(--s-4); row-gap: var(--s-2); }
.facts > div { border-top: 1px solid var(--line-2); padding-top: 14px; }
.facts dd { margin-top: 6px; font-size: 16px; line-height: 1.4; }
@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: calc(var(--header-h) + var(--s-2)); }
  .hero-portrait img { height: min(64%, 560px); top: 0; bottom: auto; right: -14vw; opacity: 0.55; }
  .hero-title { margin-top: 52vw; }
  .rotator-toggle { margin-left: 0; }
}

/* Frase que acende palavra por palavra */
.manifesto { padding-block: var(--s-4) var(--s-4); }
.manifesto .row { row-gap: var(--s-2); }
.manifesto-label { grid-column: 1 / span 3; padding-top: 1em; }
.manifesto-text {
  grid-column: 4 / -1;
  font-weight: 480; font-size: clamp(1.9rem, 4.3vw, 4.3rem); line-height: 1.06; letter-spacing: -0.03em;
  text-wrap: pretty;
}
@media (max-width: 900px) { .manifesto-label, .manifesto-text { grid-column: 1 / -1; } }

.section { padding-top: var(--s-5); padding-bottom: var(--s-3); }
.section-head { row-gap: var(--s-2); margin-bottom: var(--s-4); }
.section-head > .cell { border-top: 1px solid var(--line-2); padding-top: var(--s-2); }
.section-head > .mono { grid-column: 1 / span 3; color: var(--accent); }
.section-head > .t-xl { grid-column: 4 / -1; padding-right: clamp(0px, 10vw, 200px); }
@media (max-width: 900px) {
  .section-head > .mono, .section-head > .t-xl { grid-column: 1 / -1; }
  .section-head > .cell + .cell { border-top: 0; padding-top: 0; }
}

/* O que eu faço: cartões com ícone que muda de forma (ideia dos serviços de arturospatino.com) */
.pillars { row-gap: var(--gutter); }
.svc {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-start; gap: clamp(48px, 7vw, 112px);
  padding: clamp(24px, 2.4vw, 36px); border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow 0.45s var(--ease);
}
.svc:hover { box-shadow: inset 0 0 0 1px var(--fg-3); }
.svc-top { display: grid; justify-items: start; gap: var(--s-2); }
.svc-icon { width: clamp(120px, 11vw, 164px); height: auto; margin-left: -10px; overflow: visible; color: var(--fg); }
.svc-icon * { vector-effect: non-scaling-stroke; }
.pillar-word { font-weight: 500; font-size: clamp(2.2rem, 3.4vw, 3.3rem); line-height: 0.92; letter-spacing: -0.04em; }
.svc p { color: var(--fg-2); max-width: 36ch; margin-top: var(--s-1); }
.svc-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-1); }
.svc-list li { padding: 5px 11px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; line-height: 1.3; color: var(--fg-2); }
/* Ponto que segue o mouse dentro do cartão, com um halo que chega atrasado */
.svc-dot, .svc-halo {
  position: absolute; left: 0; top: 0; z-index: 2; border-radius: 50%; background: var(--fg);
  pointer-events: none; opacity: 0; translate: var(--mx, 50%) var(--my, 50%);
}
.svc-dot { width: 10px; height: 10px; margin: -5px 0 0 -5px; transition: opacity 0.25s; }
.svc-halo { width: 52px; height: 52px; margin: -26px 0 0 -26px; transition: opacity 0.3s, translate 0.55s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .js .svc[data-morph] { cursor: none; }
  .js .svc[data-morph]:hover .svc-dot { opacity: 1; }
  .js .svc[data-morph]:hover .svc-halo { opacity: 0.12; }
}
@media (max-width: 1100px) and (min-width: 901px) { .pillars > .c4 { grid-column: span 6; } .pillars > .c4:last-child { grid-column: 1 / -1; } }

/* Galeria de cases (pedido de 26/09/2026: mais direta, só a imagem em destaque e o título do case) */
.cases-head { row-gap: var(--s-2); align-items: end; margin-bottom: var(--s-4); }
.cases-head > .mono { grid-column: 1 / -1; border-top: 1px solid var(--line-2); padding-top: var(--s-2); color: var(--accent); }
.cases-title {
  grid-column: 1 / span 7; display: flex; align-items: flex-start; gap: 0.1em;
  font-weight: 500; font-size: clamp(4.4rem, 14vw, 14rem); line-height: 0.8; letter-spacing: -0.055em;
}
.cases-title .mono { margin-top: 0.7em; color: var(--fg-3); }
.cases-head > .t-lg { grid-column: 8 / -1; }
@media (max-width: 900px) { .cases-title, .cases-head > .t-lg { grid-column: 1 / -1; } }

.case-grid { list-style: none; row-gap: var(--s-4); align-items: start; }
.case-card { grid-column: span 6; }
/* a coluna da direita desce: galeria em degrau, como numa prancha */
.case-card:nth-child(even) { margin-top: clamp(56px, 9vw, 168px); }
.case-card a { display: grid; gap: 14px; color: inherit; text-decoration: none; }
.case-card-media.cover { aspect-ratio: 4 / 3; }
.case-card-media > img { transition: scale 1.2s var(--ease); }
.case-card a:hover .case-card-media > img { scale: 1.035; }
.case-card-meta { display: flex; justify-content: space-between; align-items: center; color: var(--fg-3); }
.case-card-meta .arrow { transition: translate 0.45s var(--ease); }
.case-card a:hover .case-card-meta .arrow { translate: 4px 0; }
.case-card-title { font-weight: 500; font-size: clamp(1.9rem, 3.1vw, 3.1rem); line-height: 1.04; letter-spacing: -0.035em; transition: color 0.45s var(--ease); }
.case-card a:hover .case-card-title { color: var(--accent); }
.case-card a:hover .case-card-title .dim { color: inherit; opacity: 0.55; }
.case-card a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: var(--r-md); }
@media (max-width: 900px) {
  .case-grid { row-gap: var(--s-3); }
  .case-card { grid-column: 1 / -1; }
  .case-card:nth-child(even) { margin-top: 0; }
  .case-card-media.cover { aspect-ratio: 16 / 11; }
}

/* Método: a etapa do meio da tela fica em destaque */
.steps { border-bottom: 1px solid var(--line-2); }
.step {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-1);
  align-items: start; padding-block: var(--s-3); border-top: 1px solid var(--line-2);
}
.step-n { grid-column: 1 / span 1; padding-top: 1.1em; }
.step-word { grid-column: 2 / span 6; font-weight: 500; font-size: clamp(3rem, 7.6vw, 7.8rem); line-height: 0.88; letter-spacing: -0.048em; transition: opacity 0.6s var(--ease), translate 0.6s var(--ease); }
.step-body { grid-column: 9 / -1; display: grid; gap: var(--s-1); align-content: start; padding-top: 0.6em; }
.step-body p { color: var(--fg-2); max-width: 40ch; }
.js .steps > .step:not(.is-active) .step-word { opacity: 0.32; }
.js .steps > .step:hover .step-word { opacity: 1; translate: 8px 0; }
@media (max-width: 900px) {
  .step { grid-template-columns: minmax(0, 1fr); }
  .step > * { grid-column: 1 / -1; }
  .step-n, .step-body { padding-top: 0; }
}

.about { padding-top: var(--s-5); }
.about-grid { row-gap: var(--s-3); align-items: end; }
.about-photo { grid-column: 1 / span 5; position: relative; aspect-ratio: 4 / 5; }
.about-photo img {
  position: absolute; bottom: 0; left: 50%; translate: -50% 0; height: 100%; width: auto; max-width: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 58%, transparent 97%);
}
.about-text { grid-column: 7 / -1; display: flex; flex-direction: column; gap: var(--s-2); padding-bottom: var(--s-4); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-top: var(--s-1); }
.stats > div { border-top: 1px solid var(--line-2); padding-top: 14px; }
.stats dd { font-weight: 500; font-size: clamp(2.6rem, 4.6vw, 4.4rem); line-height: 1; letter-spacing: -0.04em; margin-top: 10px; }
/* Duas portas: quem tem um negócio e quem contrata para um time */
.audiences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.audiences > div { display: grid; gap: 8px; align-content: start; padding-top: 14px; border-top: 1px solid var(--line-2); }
.audiences p:last-child { color: var(--fg-2); font-size: 16px; line-height: 1.5; }
@media (max-width: 900px) {
  .about-photo, .about-text { grid-column: 1 / -1; }
  .about-photo { width: min(88%, 480px); margin-inline: auto; }
  .about-text { padding-bottom: var(--s-3); }
}
@media (max-width: 600px) { .audiences { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Rodapé / contato ---------- */
.site-footer { padding-top: var(--s-4); padding-bottom: var(--s-2); }
.contact-grid { row-gap: var(--s-3); align-items: end; }
.contact-label { border-top: 1px solid var(--line-2); padding-top: var(--s-2); }
.contact-copy { grid-column: 1 / span 8; display: flex; flex-direction: column; gap: var(--s-2); }
.contact-title { font-weight: 500; font-size: clamp(2.8rem, 6.2vw, 6.4rem); line-height: 0.95; letter-spacing: -0.045em; max-width: 14ch; }
.contact-links { grid-column: 9 / -1; border-top: 1px solid var(--line-2); }
.contact-links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-2); font-size: 17px; transition: color 0.3s, padding 0.5s var(--ease); }
.contact-links a:hover { color: var(--accent); padding-left: 12px; }
.contact-links a > span { display: grid; gap: 4px; }
.contact-links a:hover .arrow { translate: 3px 0; }
.contact-links a:hover .arrow--up-right { translate: 2px -2px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: var(--s-4); padding-top: 18px; box-shadow: inset 0 1px 0 var(--line); }
.footer-bottom a { display: inline-block; padding-block: 12px; margin-block: -12px; transition: color 0.25s; }
.footer-bottom a:hover { color: var(--fg); }
@media (max-width: 900px) { .contact-copy, .contact-links { grid-column: 1 / -1; } }

/* =====================================================================
   Mockup vivo (v6)
   Fundo arredondado na cor do case, a página real dentro de cada tela e o render
   dos aparelhos por cima, com a tela vazada. O palco tem 1600 px e é reduzido para
   a largura da figura; cada tela é encaixada com matrix3d (gerado pelo build).
   Durante a rolagem a página desce dentro da tela.
   ===================================================================== */
.device { display: grid; gap: 14px; align-content: start; }
.device-view { position: relative; aspect-ratio: var(--ar); container-type: inline-size; }
.device-panel { position: absolute; inset: 9% 0 0; border-radius: var(--r-xl); background-color: var(--device-bg); }
.device-stage { position: absolute; left: 0; top: 0; width: var(--sw); aspect-ratio: var(--ar); transform-origin: 0 0; scale: var(--k, 1); }
@supports (scale: tan(atan2(1px, 2px))) {
  .device-stage { scale: var(--k, tan(atan2(100cqw, var(--sw)))); }
}
.device-screen { position: absolute; left: 0; top: 0; overflow: hidden; transform-origin: 0 0; background-color: #000; }
.device-screen img { display: block; width: 100%; max-width: none; height: auto; }
.device-screen.is-cover img { height: 100%; object-fit: cover; object-position: top center; }
.device-render { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.device figcaption { display: flex; gap: 12px; align-items: baseline; max-width: 72ch; font-size: 14px; line-height: 1.5; color: var(--fg-3); }
.device figcaption .label { flex: none; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2); }
/* Nos capítulos, o aparelho inteiro cabe na altura da tela */
.blocks .device { width: 100%; max-width: calc((100svh - var(--header-h) - 110px) * var(--ar)); margin-inline: auto; }

/* =====================================================================
   Páginas de case (v7)
   topo com nome, uma frase e a ficha · capa grande · resumo em quatro partes ·
   capítulos curtos com imagens grandes · resultado · próximo case
   ===================================================================== */
.case-hero { position: relative; padding-top: calc(var(--header-h) + var(--s-1)); padding-bottom: var(--s-3); }
.case-nav { column-gap: 0; }
.case-nav > .cell { padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 11px; }
.case-nav > .cell:last-child { text-align: right; }
.case-nav a { display: inline-flex; align-items: center; gap: 8px; padding-block: 8px; margin-block: -8px; color: var(--fg-2); transition: color 0.25s; }
.case-nav a:hover { color: var(--fg); }

.case-title {
  padding-block: var(--s-3) var(--s-2);
  font-weight: 500; font-size: clamp(3.4rem, 12.4vw, 13rem); line-height: 0.84; letter-spacing: -0.052em;
  text-wrap: balance;
}
.case-title--long { font-size: clamp(3rem, 9vw, 9.6rem); }
.case-intro { row-gap: var(--s-2); align-items: end; }
.case-lead { grid-column: 1 / span 6; font-weight: 480; font-size: clamp(1.4rem, 2.2vw, 2.1rem); line-height: 1.15; letter-spacing: -0.022em; max-width: 28ch; text-wrap: pretty; }
.case-facts { grid-column: 8 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px var(--gutter); }
.case-facts > div { border-top: 1px solid var(--line-2); padding-top: 10px; }
.case-facts dd { margin-top: 4px; font-size: 15px; line-height: 1.4; color: var(--fg-2); }
@media (max-width: 900px) { .case-lead, .case-facts { grid-column: 1 / -1; } }
@media (max-width: 420px) { .case-facts { grid-template-columns: minmax(0, 1fr); } }

/* Capa: imagem grande com cantos arredondados (render de estúdio, print ou vídeo) */
.case-cover { padding-bottom: var(--s-3); }
.case-cover figure { row-gap: 14px; }
.cover { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--r-xl); background: var(--bg-2); }
.cover > img, .cover > video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--focus, center); }
.cover-caption { display: flex; gap: 12px; align-items: baseline; font-size: 14px; line-height: 1.5; color: var(--fg-3); }
.cover-caption .label { flex: none; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2); }
@media (max-width: 600px) { .case-cover .cover { aspect-ratio: 4 / 3; } }
/* capa em filme de tela inteira (a jornada do Suporte Eventos): no celular mostra o quadro todo, sem cortar o editor nem a relação de itens */
@media (max-width: 600px) { .case-cover .cover.cover--wide { aspect-ratio: 16 / 9; } }

/* Resumo em quatro partes: problema, situação, solução e resultado */
.case-brief { padding-block: var(--s-4); }
.brief { row-gap: var(--s-3); }
.brief > .cell { grid-column: span 3; display: grid; gap: 12px; align-content: start; padding-top: var(--s-1); border-top: 1px solid var(--line-2); }
.brief p:last-child { font-size: clamp(1.05rem, 1.3vw, 1.22rem); line-height: 1.45; letter-spacing: -0.005em; color: var(--fg); text-wrap: pretty; }
.brief > .is-result { border-top: 2px solid var(--hl); padding-top: calc(var(--s-1) - 1px); }
.brief > .is-result .mono { color: var(--accent); }
@media (max-width: 1100px) { .brief > .cell { grid-column: span 6; } }
@media (max-width: 900px) { .brief > .cell { grid-column: span 1; } }
@media (max-width: 600px) { .brief > .cell { grid-column: 1 / -1; } }

/* Capítulo: número e nome à esquerda; título e uma ou duas frases à direita; imagens grandes embaixo */
.chapter { padding-block: var(--s-4); }
.chapter:where([data-theme="blue"]) { padding-bottom: var(--s-5); }
.chap-head { row-gap: var(--s-1); }
.chap-head > .cell { border-top: 1px solid var(--line-2); padding-top: var(--s-2); }
.chap-label { grid-column: 1 / span 4; display: grid; align-content: start; gap: 8px; }
.chap-label .mono { color: var(--accent); }
.chap-name { font-weight: 500; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1; letter-spacing: -0.025em; }
.chap-text { grid-column: 5 / -1; display: grid; gap: var(--s-1); align-content: start; }
.chap-text .t-xl { max-width: 20ch; }
.chap-text .t-body { max-width: 58ch; }
.chap-body { margin-top: var(--s-3); }
@media (max-width: 900px) {
  .chap-label, .chap-text { grid-column: 1 / -1; }
  .chap-head > .cell + .cell { border-top: 0; padding-top: 0; }
}

/* Blocos do capítulo: imagens na largura toda, textos curtos alinhados à direita */
.blocks { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-3); }
.blocks > * { grid-column: 1 / -1; min-width: 0; }
.blocks > :is(.defense, .findings, .prose, .ba) { grid-column: 5 / -1; }
.blocks > .fig--tall { width: min(100%, 440px); justify-self: center; }
/* Quadro estilo Figma: mesmo alto, ocupa a largura toda para os rótulos continuarem legíveis */
.blocks > .fig--board { width: 100%; justify-self: stretch; }
@media (max-width: 900px) {
  .blocks { grid-template-columns: minmax(0, 1fr); }
  .blocks > * { grid-column: 1 / -1 !important; }
}

/* Figuras */
.fig { display: grid; gap: 12px; align-content: start; }
.fig .frame { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--bg-2); outline: 1px solid var(--line); outline-offset: -1px; }
.fig img { width: 100%; }
.fig figcaption { display: flex; gap: 12px; align-items: baseline; max-width: 72ch; font-size: 14px; line-height: 1.5; color: var(--fg-3); }
.fig figcaption .label { flex: none; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2); }
.fig--pad .frame { padding: clamp(14px, 3vw, 48px); }
.fig--white .frame { background: #fff; }
.fig--narrow { width: 100%; max-width: 420px; }
.fig--tall .frame, .gallery--phones .frame { border-radius: var(--r-lg); }
.fig--board .frame { border-radius: var(--r-lg); background: #f5f5f5; }
.fig--crop .frame { aspect-ratio: var(--ratio, 16 / 10); }
.fig--crop .frame img { height: 100%; object-fit: cover; object-position: var(--focus, top center); }
.zoom { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; }
.zoom img { transition: scale 0.9s var(--ease); }
.zoom:hover img { scale: 1.018; }

.gallery { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: var(--s-2) var(--gutter); align-items: start; }
.gallery--center { align-items: center; }
.gallery--phones { width: 100%; max-width: calc(var(--cols, 2) * 360px + (var(--cols, 2) - 1) * var(--gutter)); justify-self: center; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery.gallery--keep { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Duas cenas de estúdio lado a lado com a mesma altura: 4:3 ao lado de 4:5 dá colunas de 5 para 3 (--a e --b) */
.gallery--scenes { grid-template-columns: minmax(0, var(--a, 1fr)) minmax(0, var(--b, 1fr)); }
.gallery--scenes .frame { border-radius: var(--r-lg); }
@media (max-width: 760px) { .gallery--scenes { grid-template-columns: minmax(0, 1fr); } }

/* Quadro de prints de painel (Clarity, auditorias): recortes reais lado a lado num fundo neutro */
.board {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-2) var(--gutter); align-items: start;
  padding: clamp(16px, 2.6vw, 40px); border-radius: var(--r-xl); background: var(--bg-2);
}
.board > * { grid-column: span var(--span, 4); min-width: 0; }
.board > .fig--tall { grid-row: span var(--rows, 2); }
.board .fig .frame { border-radius: var(--r-sm); background: #fff; outline: 0; }
@media (max-width: 900px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board > * { grid-column: span 1; }
  .board > .fig--tall { grid-row: auto; }
}
@media (max-width: 560px) { .board > * { grid-column: 1 / -1; } .board--celular > * { grid-column: span 1; } } /* telas de celular em pé: duas colunas até no celular */

/* Texto de defesa entre as imagens: uma frase que diz o que a imagem prova */
.defense { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 8px var(--gutter); align-items: baseline; }
.defense > .mono { color: var(--accent); }
.defense > p:last-child { font-weight: 480; font-size: clamp(1.25rem, 1.9vw, 1.7rem); line-height: 1.2; letter-spacing: -0.016em; max-width: 34ch; color: var(--fg); text-wrap: pretty; }
.gallery > .defense { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 700px) { .defense { grid-template-columns: 1fr; } }

/* Antes / depois */
.ba { border-top: 1px solid var(--line-2); }
.ba-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); padding: 14px 0; border-bottom: 1px solid var(--line); }
.ba-row--head > * { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }
.ba-row--head > :last-child { color: var(--accent); }
.ba-row .was { color: var(--fg-3); }
.ba-row .now { color: var(--fg); }
@media (max-width: 700px) {
  .ba-row { grid-template-columns: 1fr; gap: 6px; }
  .ba-row--head { display: none; }
  .ba-row .was::before, .ba-row .now::before { display: block; margin-bottom: 2px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
  .ba-row .was::before { content: "Antes"; }
  .ba-row .now::before { content: "Depois"; color: var(--accent); }
}

/* Números */
.metrics { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: var(--s-2) var(--gutter); }
.metric { display: flex; flex-direction: column; border-top: 1px solid var(--line-2); padding-top: 16px; }
.metric strong { font-weight: 500; font-size: clamp(2.6rem, 4.6vw, 4.4rem); line-height: 1; letter-spacing: -0.04em; }
.metric > span { margin-top: 12px; font-size: 15px; line-height: 1.45; color: var(--fg-2); max-width: 28ch; }
.metric > .mono { margin-top: 8px; font-size: 11px; color: var(--fg-3); }
.metric--hl { border-top: 2px solid var(--hl); padding-top: 15px; }
.metric--hl strong { color: var(--accent); }
@media (max-width: 900px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .metrics { grid-template-columns: 1fr; } }

/* Achados numerados, em uma ou duas linhas */
.findings { counter-reset: f; border-top: 1px solid var(--line-2); }
.findings > li { counter-increment: f; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px var(--gutter); padding: 16px 0; border-bottom: 1px solid var(--line); }
.findings > li::before { content: counter(f, decimal-leading-zero); font-family: var(--f-mono); font-size: 12px; color: var(--fg-3); padding-top: 0.35em; }
.findings h3 { font-weight: 560; font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.3; letter-spacing: -0.01em; }
.findings p { margin-top: 4px; color: var(--fg-2); max-width: 62ch; }

/* Comparador antes/depois */
.compare { --pos: 50%; position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--bg-2); touch-action: pan-y; outline: 1px solid var(--line); outline-offset: -1px; }
.compare img { width: 100%; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.compare .after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare .after img { height: 100%; object-fit: cover; object-position: top center; }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: #fff; pointer-events: none; }
.compare .handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; translate: -50% -50%;
  border-radius: 50%; background: #fff center / 20px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111112' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E");
  transition: scale 0.35s var(--ease);
}
.compare:hover .handle::after { scale: 1.08; }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare input[type="range"]:focus-visible ~ .handle::after { outline: 2px solid var(--hl); outline-offset: 3px; }
.compare .tag { position: absolute; top: 14px; z-index: 2; padding: 6px 12px; border-radius: var(--r-pill); background: #fff; color: var(--ink); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; pointer-events: none; }
.compare .tag--l { left: 14px; }
.compare .tag--r { right: 14px; }

/* Conceito em três partes */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.trio-item { display: flex; flex-direction: column; gap: 14px; }
.trio-item .ph { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--r-md); background: var(--bg-2); }
.trio-item .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, center); transition: scale 1s var(--ease); }
.trio-item:hover .ph img { scale: 1.03; }
.trio-item .tx { display: grid; gap: 6px; border-top: 3px solid var(--c, var(--fg)); padding-top: 12px; }
.trio-item .huge { font-size: clamp(1.8rem, 2.8vw, 2.5rem); }
@media (max-width: 900px) { .trio { grid-template-columns: 1fr; gap: var(--s-2); } }

/* Tabela de dados */
.table-scroll { overflow-x: auto; }
@media (max-width: 700px) {
  /* No celular a tabela mantém colunas legíveis e rola para o lado, com o aviso preso à esquerda */
  .table-scroll .table { min-width: 560px; }
  .table-scroll::after {
    content: "Deslize para o lado para ver a tabela inteira";
    position: sticky; left: 0; display: block; width: max-content; margin-top: 10px;
    font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3);
  }
}
.table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.table th, .table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { font-family: var(--f-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); border-top: 1px solid var(--line-2); border-bottom-color: var(--line-2); }
.table td.win { color: var(--accent); font-weight: 600; }

/* Próximo case: nome grande e a capa dele */
.next { display: block; padding-block: var(--s-4); }
.next-grid { row-gap: var(--s-2); align-items: stretch; }
.next-copy { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: var(--s-1); padding-top: var(--s-2); border-top: 1px solid var(--line-2); }
.next-name { margin-top: auto; font-weight: 500; font-size: clamp(3.2rem, 7.2vw, 7.4rem); line-height: 0.88; letter-spacing: -0.05em; text-wrap: balance; transition: color 0.45s var(--ease), translate 0.6s var(--ease); }
.next-line { color: var(--fg-2); max-width: 34ch; }
.next .link { margin-top: var(--s-1); }
.next-media { grid-column: 7 / -1; }
.next-media.cover { aspect-ratio: 16 / 10; border-radius: var(--r-lg); }
.next:hover .next-name { color: var(--accent); translate: 8px 0; }
.next:hover .link::after { transform: scaleX(1); transform-origin: left; }
.next:hover .link .arrow { translate: 3px 0; }
@media (max-width: 900px) {
  .next-copy, .next-media { grid-column: 1 / -1; }
  .next-media { order: -1; }
}

/* Lightbox */
.lightbox {
  padding: 0; border: 0; background: transparent; color: #f5f5f3;
  width: auto; max-width: min(96vw, 1880px); max-height: 96svh; overflow: visible;
  opacity: 0;
  transition-property: opacity, display, overlay;
  transition-duration: 0.3s;
  transition-timing-function: var(--ease);
  transition-behavior: allow-discrete;
}
.lightbox[open] { opacity: 1; }
@starting-style { .lightbox[open] { opacity: 0; } }
.lightbox::backdrop {
  background-color: rgb(9 9 11 / 0);
  transition: display 0.3s allow-discrete, overlay 0.3s allow-discrete, background-color 0.3s ease-out;
}
.lightbox[open]::backdrop { background-color: rgb(9 9 11 / 0.94); }
@starting-style { .lightbox[open]::backdrop { background-color: rgb(9 9 11 / 0); } }
.lightbox-img { max-width: min(96vw, 1880px); max-height: calc(96svh - 64px); width: auto; height: auto; margin-inline: auto; border-radius: var(--r-md); }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 14px; }
.lightbox-caption { font-size: 14px; line-height: 1.45; color: #c9c9c6; max-width: 90ch; }
.lightbox-close { flex: none; min-height: 38px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: rgb(245 245 243 / 0.12); color: #f5f5f3; font-size: 14px; cursor: pointer; transition: background-color 0.25s; }
.lightbox-close:hover { background: rgb(245 245 243 / 0.22); }
@media (prefers-reduced-motion: reduce) { .lightbox { transition-duration: 0.1s; } }

/* Aviso honesto sobre imagens ilustrativas e botão de pausa dos vídeos */
.media-note {
  position: absolute; left: 14px; top: 14px; z-index: 1; max-width: calc(100% - 28px);
  padding: 7px 12px; border-radius: var(--r-pill); background: rgb(9 9 11 / 0.66); color: #f5f5f3;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--f-mono); font-size: 11px; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase;
}
.media-note:has(~ .video-toggle) { max-width: calc(100% - 170px); }
.video-toggle {
  position: absolute; right: 14px; top: 14px; z-index: 1; min-height: 34px; padding: 0 16px; border: 0; border-radius: var(--r-pill);
  background: rgb(9 9 11 / 0.66); color: #f5f5f3; font-size: 13px; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color 0.25s;
}
.video-toggle:hover { background: rgb(9 9 11 / 0.9); }

/* =====================================================================
   Cases v8: pranchas, filmes e recursos (primeiro no case Suporte Eventos)
   ===================================================================== */
/* Resumo direto em duas partes: problema e solução */
.brief--2 > .cell { grid-column: span 6; }
.brief--2 p:last-child { font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.38; letter-spacing: -0.01em; max-width: 44ch; }
@media (max-width: 1100px) { .brief--2 > .cell { grid-column: span 6; } }
@media (max-width: 900px) { .brief--2 > .cell { grid-column: 1 / -1; } }

/* Versão da imagem só para o celular (ex.: sitemap em pé) */
.show-m { display: none !important; }
@media (max-width: 900px) { .fig.show-m, .film.show-m { display: grid !important; } }

/* Prancha: imagem com fundo próprio (identidade do cliente), sem moldura extra */
.fig--plate .frame { background: transparent; outline: 0; border-radius: var(--r-lg); }
.blocks > .fig--plate { width: 100%; justify-self: stretch; }

/* Filme: vídeo mudo em laço dentro de um quadro arredondado, com pôster e botão de pausa */
.film { display: grid; gap: 12px; align-content: start; }
.film-frame { position: relative; overflow: hidden; aspect-ratio: var(--ar, 16 / 9); border-radius: var(--r-lg); background: var(--bg-2); }
.film-frame > video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.film figcaption { display: flex; gap: 12px; align-items: baseline; max-width: 72ch; font-size: 14px; line-height: 1.5; color: var(--fg-3); }
.film figcaption .label { flex: none; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2); }
.films { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2) var(--gutter); align-items: start; }
@media (max-width: 760px) { .films { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .film figcaption { display: block; } .film figcaption .label { display: block; margin-bottom: 4px; } }

/* Recursos numerados: os números batem com os marcadores da prancha */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gutter); border-top: 1px solid var(--line-2); counter-reset: ft; }
.features > li { counter-increment: ft; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.features > li::before {
  content: counter(ft); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--fg); color: var(--bg);
  font-family: var(--f-mono); font-size: 13px; line-height: 1;
}
.features h3 { font-weight: 560; font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.3; letter-spacing: -0.01em; }
.features p { color: var(--fg-2); max-width: 52ch; }

/* Passeio pela página (v8, Agrow): a landing page inteira, reduzida, fica presa ao lado; os blocos passam à direita,
   cada um com a pergunta que responde, o dado do Clarity e as decisões. O bloco ativo acende no mapa e, no celular,
   o mapa desliza até ele. */
.walk { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.walk-map { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 12px); height: calc(100svh - var(--header-h) - 24px); }
.walk-frame { position: relative; display: inline-block; height: 100%; max-width: 100%; overflow: hidden; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--bg-2); }
.walk-frame img { display: block; height: 100%; width: auto; max-width: none; translate: 0 var(--pan, 0px); transition: translate 0.6s var(--ease); }
.walk-hl { position: absolute; left: 0; right: 0; top: 0; height: 0; border: 2px solid var(--hl); border-radius: 6px; box-shadow: 0 0 0 4000px rgb(0 0 0 / 0.36); pointer-events: none; transition: top 0.6s var(--ease), height 0.6s var(--ease); }
.walk-tag { position: absolute; display: flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--fg); transition: top 0.6s var(--ease); }
.walk-tag::before { content: ""; width: 18px; height: 1px; background: var(--line-2); }
.walk:not(.is-live) :is(.walk-hl, .walk-tag) { display: none; }
.walk-steps { grid-column: 7 / -1; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.walk-step { display: grid; gap: 10px; align-content: start; min-height: 44svh; padding: clamp(28px, 5vh, 56px) 0; border-bottom: 1px solid var(--line); transition: opacity 0.5s var(--ease); }
.walk.is-live .walk-step:not(.is-active) { opacity: 0.38; }
.walk-n { display: flex; align-items: baseline; gap: 12px; }
.walk-from { margin-left: auto; display: flex; gap: 6px; }
.walk-from span { border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 2px 9px; font-size: 11px; color: var(--fg-2); }
.walk-q { font-weight: 500; font-size: clamp(1.35rem, 2.1vw, 1.95rem); line-height: 1.15; letter-spacing: -0.022em; text-wrap: balance; }
.walk-why { color: var(--fg-2); max-width: 54ch; }
.walk-dec { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.walk-dec li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; max-width: 54ch; }
.walk-dec li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 0.62em; }
.walk-src { grid-column: 7 / -1; margin-top: 14px; color: var(--fg-3); }
@media (max-width: 900px) {
  .walk { display: block; }
  .walk-map { position: sticky; top: calc(var(--header-h) + 6px); z-index: 2; height: 36svh; padding-bottom: 10px; background: linear-gradient(var(--bg) 90%, transparent); }
  .walk-frame { display: block; width: 100%; height: calc(100% - 10px); }
  .walk-frame img { width: 100%; height: auto; }
  .walk-tag { top: 10px; right: 10px; padding: 5px 10px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-pill); }
  .walk-tag::before { display: none; }
  .walk-steps { border-top: 0; margin-top: var(--s-2); }
  .walk-step { min-height: 0; padding: 24px 0; }
  .walk-src { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .walk-frame img, .walk-hl, .walk-tag, .walk-step { transition: none; }
}
@media (max-width: 760px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   Movimento: discreto, sempre opcional
   ===================================================================== */
@keyframes fade-up { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes settle { from { scale: 1.06; } to { scale: 1; } }
@keyframes ch-in { from { opacity: 0; translate: 0 0.32em; } to { opacity: 1; translate: 0 0; } }
@keyframes ch-out { from { opacity: 1; translate: 0 0; } to { opacity: 0; translate: 0 -0.2em; } }
@keyframes word-lit { from { opacity: 0.16; } to { opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  .load-1 { animation: fade-up 0.9s var(--ease) both; }
  .load-2 { animation: fade-up 0.9s 0.08s var(--ease) both; }
  .load-3 { animation: fade-up 0.9s 0.16s var(--ease) both; }

  /* Palavra do título: letras sobem uma a uma */
  .rotator-word.is-in .ch { animation: ch-in 0.8s var(--ease) both; animation-delay: calc(0.3s + var(--i) * 26ms); }
  .rotator-word.is-out .ch { animation: ch-out 0.32s cubic-bezier(0.55, 0, 1, 0.45) both; animation-delay: calc(var(--i) * 10ms); }

  /* Revelação na rolagem (a classe .rv é posta pelo JS) */
  .rv { opacity: 0; translate: 0 32px; transition: opacity 0.9s var(--ease), translate 1.1s var(--ease); transition-delay: calc(var(--rv-i, 0) * 90ms); }
  .rv.is-in { opacity: 1; translate: 0 0; }

  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .hero-portrait img, .about-photo img {
      animation: settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 50%;
    }
    .manifesto-text.is-split { view-timeline: --manifesto block; }
    .manifesto-text.is-split .w {
      animation: word-lit linear both;
      animation-timeline: --manifesto;
      animation-range: cover calc(16% + var(--i) / var(--n) * 36%) cover calc(22% + var(--i) / var(--n) * 36%);
    }
    /* Mockups (capas, cenas e mockups vivos) ficam parados na rolagem */
  }
}
/* =====================================================================
   Toque e telas pequenas
   ===================================================================== */
/* No toque não existe "passar o mouse": nada fica deslocado, ampliado ou sublinhado depois de um toque */
@media (hover: none) {
  .btn:hover, .site-nav .nav-cta:hover { translate: none; }
  .btn:hover .arrow, .link:hover .arrow, .case-card a:hover .case-card-meta .arrow, .next:hover .link .arrow { translate: none; }
  .link:hover::after, .next:hover .link::after { transform: scaleX(0); }
  .case-card a:hover .case-card-media > img { scale: none; }
  .next:hover .next-name { color: var(--fg); translate: none; }
  .js .steps > .step:hover .step-word { translate: none; }
  .contact-links a:hover { padding-left: 0; color: inherit; }
  .zoom:hover img, .trio-item:hover .ph img { scale: none; }
  .svc:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
}
@media (max-width: 600px) {
  /* Aviso do vídeo inteiro embaixo e botão de pausa em cima: um não cobre o outro */
  .media-note, .media-note:has(~ .video-toggle) { left: 10px; right: 10px; top: auto; bottom: 10px; max-width: none; border-radius: var(--r-md); }
  .video-toggle { top: 10px; right: 10px; }
  /* Legenda com o rótulo em cima: o texto usa a largura inteira da figura */
  .fig figcaption, .device figcaption, .cover-caption { display: block; }
  .fig figcaption .label, .device figcaption .label, .cover-caption .label { display: block; margin-bottom: 4px; }
}
@media (max-width: 380px) {
  .gallery.gallery--keep { grid-template-columns: minmax(0, 1fr); }
}
/* Tablet em pé: aproveita a largura em vez de empilhar tudo como no celular */
@media (min-width: 601px) and (max-width: 900px) {
  .site-nav a.hide-m { display: revert !important; }
  .pillars > .cell { grid-column: span 1; }
  .pillars > .cell:last-child { grid-column: 1 / -1; }
}

@media print { .rv { opacity: 1 !important; translate: none !important; } }

/* Filmes e prints de celular em pé (430 × 932): quatro lado a lado no computador, dois por linha no celular */
.films--cel { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.films--cel .film-frame { --ar: 430 / 932; }
.films--cel .fig .frame { border-radius: var(--r-lg); }
@media (max-width: 760px) { .films--cel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
