/* =========================================================
   Rachel Barbosa · site styles
   Edit tokens below to change colors, type and spacing.
   No rebuild needed for this file.
   ========================================================= */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --tint: #f1f1f1;
  --ink: #2b2c31;
  --ink-2: #4a4b52;
  --muted: #4f5056;           /* AAA: ≥ 7,1:1 em bg, surface e tint */
  --line: #e2e2e5;
  --line-strong: #c9c9ce;
  --accent: #0a5670;          /* primary actions: azul petróleo, a única cor do site (use com parcimônia) */
  --accent-ink: #ffffff;
  --accent-hover: #073f53;
  --title: #084a61;           /* títulos: contraste AAA (≥ 8.6:1 em bg, surface e tint) */
  --fill: #4a4b52;            /* filled elements: active states, tiles */
  --fill-ink: #ffffff;
  --dark: #35363c;            /* contact section */
  --dark-ink: #f4f4f5;
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1160px;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --glass-bg: rgba(255,255,255,.6); --glass-line: rgba(255,255,255,.75);
  /* Maré DS · cores de suporte (estados). Todas AAA (≥ 7:1) em bg, surface e tint */
  --success: #165a32; --error: #951a21; --warning: #6b4100; --info: var(--accent);
  /* Maré DS · espaçamento (base 4px) */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px;
  --space-7: 32px; --space-8: 40px; --space-9: 48px; --space-10: 64px; --space-11: 72px; --space-12: 96px;
  --radius-pill: 999px;
  /* Maré DS · movimento */
  --dur-fast: .15s; --dur-base: .2s; --dur-moderate: .3s; --dur-slow: .45s;
  --ease-standard: ease; --ease-emphasized: cubic-bezier(.22, .61, .36, 1);
  --target-min: 44px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1f2024; --surface: #28292e; --tint: #232428;
    --ink: #ededef; --ink-2: #cfd0d4; --muted: #b4b5bb;
    --line: #36373d; --line-strong: #4a4b52;
    --accent: #8cc6df; --accent-ink: #10181c; --accent-hover: #a8d4e7; --title: #8cc6df; /* AAA ≥ 7.7:1 */
    --fill: #4a4b52; --fill-ink: #ffffff;
    --dark: #2c2d32; --dark-ink: #f4f4f5;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    --glass-bg: rgba(40,41,46,.62); --glass-line: rgba(255,255,255,.12);
    --success: #86d7a5; --error: #ffb3b0; --warning: #f0c470;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #1f2024; --surface: #28292e; --tint: #232428;
    --ink: #ededef; --ink-2: #cfd0d4; --muted: #b4b5bb;
    --line: #36373d; --line-strong: #4a4b52;
    --accent: #8cc6df; --accent-ink: #10181c; --accent-hover: #a8d4e7; --title: #8cc6df; /* AAA ≥ 7.7:1 */
    --fill: #4a4b52; --fill-ink: #ffffff;
    --dark: #2c2d32; --dark-ink: #f4f4f5;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    --glass-bg: rgba(40,41,46,.62); --glass-line: rgba(255,255,255,.12);
    --success: #86d7a5; --error: #ffb3b0; --warning: #f0c470;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); transition: background .25s, color .25s;
  font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
.react-flow svg { max-width: none; display: inline; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.measure { max-width: 62ch; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--ink-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 12px/1.4 var(--font); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--surface); padding: 12px 16px; min-height: 44px; border-radius: 8px; }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
  font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--small { height: 36px; padding: 0 14px; font-size: 14px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.chips li { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; font-weight: 500; }
.chips--soft li { border-color: var(--line); background: var(--surface); font-size: 13px; color: var(--ink-2); }

/* ---------- header ---------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 400; font-size: 12px; white-space: nowrap; }
.brand__mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: var(--fill); color: var(--fill-ink); font-size: 12px; letter-spacing: .02em;
}
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav button { white-space: nowrap; background: none; border: 0; padding: 8px 12px; border-radius: 8px; font-size: 15px; color: var(--ink-2); }
.nav button:hover { background: var(--tint); color: var(--ink); }
.header__tools { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: none; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.lang button[aria-pressed="true"] { background: var(--fill); color: var(--fill-ink); }
.theme-btn {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
}
.theme-btn:hover { background: var(--tint); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 12px; }
.menu-btn span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(64px, 12vw, 140px); padding-bottom: clamp(56px, 9vw, 110px); }
.hero .dot { width: 8px; height: 8px; border-radius: 50%; background: #2fb36b; box-shadow: 0 0 0 4px color-mix(in srgb, #2fb36b 20%, transparent); }
.hero__text { container-type: inline-size; min-width: 0; }
.hero h1 { font-size: clamp(36px, 9vw, 112px); font-size: clamp(36px, 13cqi, 96px); font-weight: 400; letter-spacing: -0.04em; margin: 8px 0 24px; }
.hero__first { display: inline-block; font-weight: 700; line-height: 0.8; background: var(--accent); color: var(--accent-ink); padding: 0.079em 0.13em 0.051em 0.032em; border-radius: 0; margin-right: calc(0.01em - 16px); }
.hero__name { white-space: nowrap; }
.hero__role { display: block; color: var(--muted); font-weight: 500; font-size: 24px; letter-spacing: -0.01em; margin-top: 14px; line-height: 1.2; }
.hero__tagline { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 52ch; margin-bottom: 14px; }
.hero__proof { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; padding: 0; font-size: 14px; font-weight: 500; color: var(--muted); }
.hero__proof li:not(:last-child)::after { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin: 0 12px; vertical-align: middle; }
.hero__proof li:first-child { color: var(--ink); font-weight: 600; }
.hero__greeting { font-size: clamp(18px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.01em; color: var(--muted); margin: 0; }
.hero .chips { margin: 28px 0 36px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
/* Topo com foto: texto à esquerda, retrato à direita */
.hero--photo { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 30vw, 400px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero--photo h1 { font-size: clamp(36px, 6.6vw, 92px); font-size: clamp(36px, 13cqi, 92px); }
/* Foto em cartão arredondado com véu azul petróleo, brilho difuso e selos de vidro ("Original refinada") */
.hero__photo { position: relative; margin: 0; isolation: isolate; }
.hero__photo::before { content: ""; position: absolute; left: -14%; top: -10%; width: 120%; height: 115%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%); filter: blur(24px); }
.hero__photo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 1;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 55%, transparent) 0%, transparent 45%, transparent 70%, color-mix(in srgb, var(--accent) 35%, transparent) 100%); mix-blend-mode: soft-light; }
.hero__photo img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  filter: grayscale(1) contrast(1.06); box-shadow: 0 30px 60px -20px rgba(14,106,138,.35); background: var(--tint); }
.glass { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 16px; border-radius: 16px;
  background: var(--glass-bg); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--glass-line); box-shadow: 0 10px 30px rgba(20,30,40,.12); font: 500 14px/1.3 var(--font); color: var(--ink); }
.glass--stat { left: -28px; bottom: 6%; max-width: 220px; }
.glass--stat b { font: 700 24px var(--font-display); letter-spacing: -0.02em; color: var(--accent); }
.glass--loc { right: -24px; top: 12%; font-size: 13px; padding: 9px 14px; border-radius: 999px; }
.glass--loc i { width: 8px; height: 8px; border-radius: 50%; background: #2fb36b; box-shadow: 0 0 0 4px rgba(47,179,107,.2); }

/* ---------- sections ---------- */
.section { padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(64px, 9vw, 112px); }
.section--tint { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section__head h2 { margin-bottom: 12px; }
.section__head p { margin: 0; }

#work, #values { border-top: 1px solid var(--line); }
/* ---------- work grid ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { border: 1px solid var(--line-strong); background: transparent; border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--ink-2); }
.filters button { transition: border-color .2s, color .2s, background .2s; }
.filters button:hover { border-color: var(--accent); color: var(--accent); }
.filters button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
/* Outros trabalhos: lista compacta abaixo dos cards em destaque */
.others { margin-top: 64px; }
.others__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.others__head h3 { font-size: 22px; }
.others__head p { margin: 0; }
.others__list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.others__list li { border-bottom: 1px solid var(--line); }
.others__list a {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 120px 16px; align-items: center; gap: 16px;
  padding: 16px 4px; text-decoration: none; color: var(--ink); font-size: 15px; transition: background .2s, padding .2s;
}
.others__list a:hover { background: var(--surface); padding-inline: 12px; }
.others__list a:hover .others__title { text-decoration: underline; text-underline-offset: 3px; }
.others__title { font-weight: 600; }
.others__co { color: var(--ink-2); }
.others__year { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.others__list svg { color: var(--accent); }
.bio-toggle { display: inline-flex; gap: 6px; align-items: center; background: none; border: 0; padding: 4px 0; margin-top: -4px; font-size: 15px; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.bio-toggle:hover { color: var(--accent-hover); }
.card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card__media { aspect-ratio: 16/9; border-bottom: 1px solid var(--line); overflow: hidden; }
.card__img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: 10px; }
.card__body .muted { font-size: 15px; flex: 1; }
.card__meta { font-size: 13px; color: var(--muted); margin: 0 0 8px; font-weight: 500; }
.card__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--accent); }
.card:hover .card__link svg { transform: translateX(3px); }
.card__link svg { transition: transform .2s; }
.card:hover .card__link { color: var(--accent-hover); }

/* generated covers */
.cover-bg { fill: var(--tint); }
.cover-dot { fill: var(--line-strong); }
.cover-line { fill: none; stroke: var(--ink); stroke-width: 1.5; opacity: .5; }
.cover-node { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.cover-node.is-big { fill: var(--fill); }

/* ---------- process (React Flow) ---------- */
.process__canvas {
  position: relative; height: 360px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
/* Celular: faixa com rolagem lateral nativa (o arraste vertical continua rolando a página) */
.process__mobile { position: relative; }
.process__scroller {
  overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  scrollbar-width: thin;
}
.process__mobile::after {
  content: ""; position: absolute; top: 1px; right: 1px; bottom: 1px; width: 36px; pointer-events: none;
  border-radius: 0 var(--radius) var(--radius) 0; background: linear-gradient(to right, transparent, var(--surface));
}
.process__track { position: relative; }
.process__scroller .rf-ai { justify-content: flex-start; padding-left: 16px; }
.process__scroller .react-flow__pane, .process__scroller .react-flow__node { touch-action: pan-x pan-y; cursor: default; }
.process__scroller .react-flow__node { cursor: pointer; }
.process__hint { margin: 10px 2px 0; font-size: 13px; color: var(--muted); }
.process__hint span { display: inline-block; animation: hint-nudge 1.6s ease-in-out infinite; }
@keyframes hint-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
.process__reset {
  position: absolute; right: 12px; top: 12px; z-index: 5;
  border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px;
  padding: 4px 12px; font-size: 13px; color: var(--ink-2);
}
.process__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0; }
.process__tabs button {
  border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px;
  padding: 6px 14px; font-size: 14px; color: var(--ink-2);
}
.process__tabs button { transition: background .2s, color .2s, border-color .2s; }
.process__tabs button:not(.is-active):hover { border-color: var(--accent); color: var(--accent); }
.process__tabs button span { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 4px; }
.process__tabs button.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.process__tabs button.is-active span { color: inherit; }
.process__detail {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.process__detail h3 { font-size: 28px; margin-bottom: 8px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 6px 0 6px 26px; border-bottom: 1px solid var(--line); font-size: 15px; }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 12px; height: 7px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.ai-note { background: var(--tint); border-radius: var(--radius-sm); padding: 18px; align-self: start; }
.ai-note p:last-child { margin: 0; font-size: 15px; }

/* React Flow nodes */
.react-flow { --xy-background-pattern-dots-color-default: var(--line-strong); --xy-edge-stroke-default: var(--muted); --xy-background-color: var(--surface); }
.react-flow__handle { opacity: 0; width: 6px; height: 6px; min-width: 0; min-height: 0; border: 0; pointer-events: none; }
.rf-step {
  width: 176px; height: 124px; padding: 14px 16px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; overflow: hidden;
  box-shadow: 0 1px 2px rgba(20,20,30,.05);
  transition: border-color .2s, box-shadow .2s, background .2s;
  font-family: var(--font);
}
.rf-step:hover { border-color: var(--ink-2); box-shadow: 0 6px 16px rgba(20,20,30,.08); }
.rf-step.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 10px 24px rgba(0,0,0,.16); }
.rf-step__num { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.rf-step__title { display: block; font-size: 17px; margin: 2px 0 4px; }
.rf-step__sum { display: block; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.rf-step.is-active .rf-step__num, .rf-step.is-active .rf-step__sum, .rf-case.is-active .rf-case__num { color: inherit; }
.rf-ai {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--tint); color: var(--ink); border: 1px dashed var(--line-strong); border-radius: 12px; font-family: var(--font);
}
.rf-ai.is-vertical { flex-direction: column; justify-content: flex-start; padding: 14px 0; }
.rf-ai.is-vertical .rf-ai__text { writing-mode: vertical-rl; display: flex; gap: 6px; align-items: center; }
.rf-ai__icon { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--fill); color: var(--fill-ink); display: grid; place-items: center; }
.rf-ai__text { display: flex; align-items: baseline; gap: 10px; }
.rf-ai strong { font-size: 14px; }
.rf-ai small { font-size: 12.5px; color: var(--muted); }
.rf-edge path { stroke: var(--muted); stroke-width: 1.5; }
.rf-edge--ai path { stroke-dasharray: 3 4; stroke: var(--line-strong); stroke-width: 1.25; }
.rf-edge--ai.is-on path { stroke: var(--ink-2); stroke-width: 1.5; }
.rf-edge--loop path { stroke: var(--ink-2); stroke-dasharray: 5 4; }
.react-flow__edge-textbg { fill: var(--surface); }
.react-flow__edge-text { fill: var(--ink-2); font: 600 11px var(--font); text-transform: uppercase; letter-spacing: .06em; }
.react-flow__controls { box-shadow: none; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.react-flow__controls-button { background: var(--surface); border-bottom: 1px solid var(--line); fill: var(--ink); }

/* case flow nodes */
.caseflow { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 16px; }
.rf-case {
  width: 178px; padding: 12px 14px; border-radius: 10px; font-family: var(--font);
  background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-strong);
}
.rf-case strong { display: block; font-size: 14px; line-height: 1.35; margin-top: 4px; }
.rf-case__type { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rf-case--insight { border-style: dashed; border-color: var(--ink); }
.rf-case--test { background: var(--tint); }
.rf-case--outcome { background: var(--fill); color: var(--fill-ink); border-color: var(--fill); }
.rf-case--outcome .rf-case__type, .rf-case--outcome .rf-case__num { color: inherit; }

/* ---------- values ---------- */
.values {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.value {
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.value:hover { background: var(--surface); }
.value__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--ink); margin-bottom: 6px;
}
.value h3 { font-size: 19px; text-wrap: balance; }
.value p { margin: 0; color: var(--ink-2); font-size: 15px; }
.value .value__practice { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line-strong); color: var(--muted); font-size: 14px; }
.value__practice span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 2px; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 340px 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about__aside { position: sticky; top: 96px; }
.about__photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); filter: grayscale(1); }
.about__main h2 { margin-bottom: 24px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0 0; }
.stats div { border-top: 1px solid var(--line-strong); padding-top: 10px; }
.stats dt { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; }
.stats dd { margin: 2px 0 0; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.about--nophoto { grid-template-columns: minmax(0, 1fr); }
.about--nophoto .about__main { max-width: none; }
/* Textos corridos mantêm a largura de leitura; as listas (experiência, formação, competências) usam a largura toda */
.about--nophoto .about__main > h2, .about--nophoto .about__main > p, .about--nophoto .about__main > .stats { max-width: 900px; }
.stats--row { grid-template-columns: repeat(3, minmax(0, 200px)); gap: 24px; margin-top: 36px; }
.stats--row dt { font-size: 40px; }
.stats--row dd { font-size: 14px; }
.block { margin-top: 44px; }
.block--divided { padding-top: 44px; border-top: 1px solid var(--line); }
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.skills__group { font-weight: 600; margin-bottom: 4px; }
.skills__list { margin: 0; color: var(--ink); line-height: 1.7; }
.skills__list span { white-space: nowrap; }
.timeline { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: minmax(180px, 1fr) 1.4fr 110px; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 4px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

.timeline li span:last-child { text-align: right; }

/* ---------- accordion ---------- */
.acc { position: relative; }
.acc__all { position: absolute; right: 0; top: -38px; background: none; border: 0; padding: 4px 0; font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.acc__all:hover { color: var(--accent-hover); }
.acc__list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__h { margin: 0; font: inherit; }
.acc__btn {
  transition: color .2s;
  width: 100%; display: grid; grid-template-columns: 280px minmax(0, 1fr) 160px 24px; align-items: center; gap: 16px;
  padding: 16px 4px; background: none; border: 0; text-align: left; font-size: 15px; color: var(--ink);
}
.acc__btn:disabled { cursor: default; }
.acc__btn:not(:disabled):hover .acc__title { text-decoration: underline; text-underline-offset: 3px; }
.acc__btn:not(:disabled):hover .acc__icon { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.acc__item.is-open .acc__btn:hover .acc__icon { background: var(--accent-hover); border-color: var(--accent-hover); }
.acc__title { font-weight: 600; }
.acc__sub { color: var(--ink-2); }
.acc__meta { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.acc__icon { position: relative; width: 24px; height: 24px; border: 1px solid var(--accent); border-radius: 50%; justify-self: end; transition: transform .45s cubic-bezier(.22, .61, .36, 1), background .3s ease, border-color .3s ease; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--accent); transform: translate(-50%, -50%); }
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .45s cubic-bezier(.22, .61, .36, 1); }
.acc__icon::before, .acc__icon::after { transition-property: transform, background; }
.acc__item.is-open .acc__icon { background: var(--accent); border-color: var(--accent); transform: rotate(180deg); }
.acc__item.is-open .acc__icon::before, .acc__item.is-open .acc__icon::after { background: var(--accent-ink); }
.acc__item.is-open .acc__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .45s cubic-bezier(.22, .61, .36, 1);
}
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__clip { overflow: hidden; min-height: 0; }
.acc__inner {
  opacity: 0; transform: translateY(-6px);
  transition: opacity .3s ease, transform .45s cubic-bezier(.22, .61, .36, 1);
}
.acc__item.is-open .acc__inner { opacity: 1; transform: none; transition-delay: .08s; }
.acc__inner { padding: 0 44px 22px 300px; max-width: none; }
.acc__inner p { max-width: 80ch; }
.acc__bullets { columns: 2 260px; column-gap: 40px; }
.acc__bullets li { break-inside: avoid; }
.acc__inner p { font-size: 15px; line-height: 1.7; color: var(--ink-2); margin: 0 0 10px; }
.acc__bullets { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; line-height: 1.8; }

/* ---------- contact ---------- */
.section--dark { background: var(--dark); color: var(--dark-ink); padding-bottom: 32px; }
.contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; padding-bottom: 72px; }
.contact h2 { font-size: 24px; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 10px; }
.contact p { color: color-mix(in srgb, var(--dark-ink) 78%, transparent); }
.contact__mail { display: inline-block; font-size: 12px; font-weight: 500; text-underline-offset: 3px; text-decoration-thickness: 1px; margin-top: 8px; }
.contact__links { list-style: none; padding: 0; margin: 0; }
.contact__links a { display: flex; justify-content: space-between; align-items: center; padding: 18px 4px; border-bottom: 1px solid rgba(255,255,255,.16); text-decoration: none; font-size: 14px; font-weight: 500; }
.contact__links small { font-size: 12px; letter-spacing: .08em; color: color-mix(in srgb, var(--dark-ink) 84%, transparent); }
.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.16); padding-top: 24px; font-size: 13px; color: color-mix(in srgb, var(--dark-ink) 84%, transparent); }

/* ---------- case study ---------- */
.case { padding-top: 40px; }
.back { display: inline-block; text-decoration: none; color: var(--accent); font-weight: 500; font-size: 14px; margin-bottom: 40px; }
.back:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.case__title { font-size: clamp(36px, 6vw, 68px); letter-spacing: -0.035em; margin-bottom: 20px; max-width: 18ch; }
.case__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin: 36px 0 0; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case__meta dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.case__meta dd { margin: 4px 0 0; font-weight: 500; }
.nda { margin-top: 20px; font-size: 14px; color: var(--muted); border-left: 2px solid var(--line-strong); padding-left: 12px; }
.case__cover { margin-top: 48px; }
.case__cover .card__img { aspect-ratio: 21/7; border-radius: var(--radius); border: 1px solid var(--line); }
.case__body { min-width: 0; max-width: 820px; padding-bottom: 32px; }
.case__body section { margin-bottom: 72px; scroll-margin-top: 90px; }
.case__body section > p { font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.case__flow { max-width: none; }
.next {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px;
  margin: 24px 0 96px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; background: var(--surface); transition: border-color .2s;
}
.next:hover { border-color: var(--ink); }
.next .eyebrow { grid-column: 1; margin: 0; }
.next strong { grid-column: 1; font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.02em; }
.next svg { grid-column: 2; grid-row: 1 / span 2; width: 28px; height: 28px; }


/* ---------- rich case study ---------- */
.case__layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 64px; padding-top: 56px; align-items: start; }
.toc { position: sticky; top: calc(88px + env(safe-area-inset-top, 0px)); }
.toc ul { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc button {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  padding: 12.5px 0 12.5px 14px; margin-left: -1px; border-left: 2px solid transparent;
  font-size: 14px; color: var(--ink-2); line-height: 1.35;
}
.toc button:hover { color: var(--ink); }
.toc button.is-active { color: var(--ink); border-left-color: var(--fill); font-weight: 600; }
.case__h { font-size: clamp(24px, 3vw, 32px); margin-bottom: 24px; text-wrap: balance; }
.case__body h3.eyebrow { display: flex; margin-top: 8px; }
.case__p, .case__body section > p.case__p { font-size: 18px; line-height: 1.7; color: var(--ink-2); max-width: 68ch; }
.challenge { margin: 32px 0; padding: 24px 28px; border-left: 3px solid var(--fill); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.challenge .eyebrow { margin-bottom: 8px; }
.challenge p { margin: 0; font-family: var(--font-display); font-size: clamp(19px, 2.2vw, 23px); line-height: 1.45; letter-spacing: -0.01em; color: var(--ink); }
.checklist--lg li { font-size: 16px; padding: 10px 0 10px 28px; }
.checklist--lg li::before { top: 18px; }

.persona-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.persona { display: flex; gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.persona__avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tint); border: 1px solid var(--line-strong); font-weight: 600; font-family: var(--font-display);
}
.persona strong { display: block; margin-bottom: 4px; }
.persona p { margin: 0; font-size: 15px; color: var(--ink-2); }

.insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.insight { position: relative; padding: 22px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); }
.insight__tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.insight strong { display: block; font-family: var(--font-display); font-size: 18px; line-height: 1.3; margin-bottom: 6px; }
.insight p { margin: 0; font-size: 15px; color: var(--ink-2); }

.caseflow-wrap { margin-top: 16px; }
.rf-case { cursor: pointer; transition: box-shadow .2s, transform .2s; }
.rf-case:hover { box-shadow: 0 0 0 2px var(--line-strong); }

.phases { list-style: none; padding: 0; margin: 0; position: relative; }
.phases::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.phase { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; padding-bottom: 32px; }
.phase:last-child { padding-bottom: 0; }
.phase__num {
  position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 1.5px solid var(--ink); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.phase h3 { font-size: 19px; margin: 10px 0 8px; }
.phase p { margin: 0 0 8px; color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.phase .phase__deliv { font-size: 14px; color: var(--muted); }
.phase__deliv span { font-weight: 600; color: var(--ink); }

.decisions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.decision { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--line); }
.decision:nth-child(odd) { padding-right: 32px; border-right: 1px solid var(--line); }
.decision:nth-child(even) { padding-left: 32px; }
.decision strong { display: block; font-family: var(--font-display); font-size: 18px; margin-bottom: 6px; }
.decision p { margin: 0; font-size: 15px; color: var(--ink-2); }

.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin: 0 0 28px; }
.metrics div { padding: 20px; background: var(--fill); color: var(--fill-ink); border-radius: var(--radius); }
.metrics dt { font-family: var(--font-display); font-size: 44px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.metrics dd { margin: 8px 0 0; font-size: 14px; line-height: 1.4; }

.ai-note--case { padding: 26px 28px; }
.ai-note--case p { font-size: 17px; line-height: 1.65; }
.learning {
  font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 26px); line-height: 1.45; letter-spacing: -0.015em;
  color: var(--ink); margin: 0; max-width: none;
}
.case__foot { padding-top: 32px; border-top: 1px solid var(--line); }

.case__video { margin: 8px 0 28px; }
.case__video video { display: block; width: auto; max-width: 100%; max-height: 640px; margin: 0 auto; background: #1f2024; border-radius: var(--radius); border: 1px solid var(--line); }
.case__video figcaption { text-align: center; }
.case__video figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.principles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.principles[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.principle { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.principle strong { display: block; font-family: var(--font-display); font-size: 17px; margin-bottom: 6px; }
.principle p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gallery figure { margin: 0; min-width: 0; }
.gallery figure.is-wide { grid-column: 1 / -1; }
.gallery button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--tint); cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 1280 / 733; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.02); }
.gallery--portrait { grid-template-columns: repeat(auto-fill, minmax(200px, 260px)); }
.gallery--portrait img { aspect-ratio: 9 / 16; }
.gallery figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background: color-mix(in srgb, #1f2024 88%, transparent); backdrop-filter: blur(6px);
}
.lightbox figure { margin: 0; max-width: min(1280px, 100%); }
.lightbox img { max-height: 80vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: var(--radius-sm); }
.lightbox figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; color: #f4f4f5; font-size: 14px; }
.lightbox__nav { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.lightbox__nav button { height: 34px; min-width: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #f4f4f5; }
.lightbox__nav .lightbox__close { background: #f4f4f5; color: #2b2c31; border-color: #f4f4f5; font-weight: 600; }

@media (max-width: 1080px) {
  .case__layout { grid-template-columns: 1fr; gap: 0; padding-top: 48px; }
  .toc { display: none; }
}
@media (max-width: 760px) {
  .decisions { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .principles[data-count="4"] { grid-template-columns: 1fr; }
  .decision, .decision:nth-child(odd), .decision:nth-child(even) { padding: 18px 0; border-right: 0; }
    .challenge { padding: 20px; }
}

/* ---------- responsive ---------- */
/* Menu vira hambúrguer antes de faltar espaço para os itens */
@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.is-open { display: flex; }
  .nav button { text-align: left; padding: 12px; font-size: 17px; }
  .menu-btn { display: block; }
  .header__tools { margin-left: auto; }
}
@media (max-width: 960px) {
  .acc__btn { grid-template-columns: 220px minmax(0, 1fr) 150px 24px; }
  .acc__inner { padding-left: 240px; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process__detail { grid-template-columns: 1fr; gap: 20px; }
  .about { grid-template-columns: 1fr; }
  .about__aside { position: static; max-width: 420px; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.is-open { display: flex; }
  .nav button { text-align: left; padding: 12px; font-size: 17px; }
  .menu-btn { display: block; }
  .header__tools { margin-left: auto; gap: 6px; }
  .header__inner { gap: 8px; }
  .header .btn--small { padding: 0 10px; height: 32px; font-size: 13px; }
  .theme-btn { width: 32px; height: 32px; }
  .lang button { padding: 3px 7px; }
  .menu-btn { width: 32px; padding: 6px 4px; }
  .brand { font-size: 12px; }
  .grid { grid-template-columns: 1fr; }
  .hero--photo { grid-template-columns: 1fr; gap: 28px; }
  .hero--photo .hero__photo { order: -1; width: 136px; }
  .hero__photo::before { display: none; }
  .hero__photo::after, .hero__photo img { border-radius: 50%; }
  .hero__photo img { aspect-ratio: 1; box-shadow: 0 12px 30px -12px rgba(14,106,138,.35); }
  .glass { display: none; }
  .others__list a { grid-template-columns: minmax(0, 1fr) 16px; gap: 2px 12px; }
  .others__title, .others__co, .others__year { grid-column: 1; }
  .others__co, .others__year { font-size: 13px; text-align: left; }
  .others__list svg { grid-column: 2; grid-row: 1 / span 3; }
  .values { grid-template-columns: 1fr; }
  .value { padding: 22px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .acc__btn, .acc__btn:disabled { grid-template-columns: minmax(0, 1fr) 24px; gap: 2px 12px; }
  .acc__title { grid-column: 1; }
  .acc__sub { grid-column: 1; font-size: 14px; }
  .acc__meta { grid-column: 1; text-align: left; font-size: 13px; }
  .acc__icon { grid-column: 2; grid-row: 1 / span 3; }
  .acc__inner { padding-right: 4px; padding-left: 4px; }
  .acc__bullets { columns: 1; }
  .acc__all { position: static; display: block; margin: -6px 0 8px auto; }
  .two-col { grid-template-columns: 1fr; }
  .wrap { padding-inline: 16px; }
  .timeline li span:last-child { text-align: left; }
  .process__tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .process__tabs button { flex: none; }
  .case__cover .card__img { aspect-ratio: 16/9; }
}
@media (max-width: 374px) {
  .header .btn--small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- code block (prompt da skill) ---------- */
.case__code { margin-top: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.case__code-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); font: 500 13px/1 var(--font); color: var(--muted); letter-spacing: .02em; }
.case__code-copy { font: 500 13px/1 var(--font); color: var(--ink); background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.case__code-copy:hover { background: var(--tint); }
.case__code pre { margin: 0; padding: 20px 18px; max-height: 560px; overflow: auto; font: 13.5px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink-2); white-space: pre; tab-size: 2; }
.case__code pre:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (max-width: 640px) { .case__code pre { font-size: 12.5px; padding: 16px 14px; } }

/* IA no processo: lista de skills/automações dentro do bloco do case */
.ai-list { list-style: none; margin: 4px 0 0; padding: 0; }
.ai-list li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.ai-list li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.ai-list strong { color: var(--ink); font-weight: 600; }

/* Links de texto em azul petróleo (a cor do botão principal) */
main p a, main li a, .case p a, .case li a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
main p a:hover, main li a:hover, .case p a:hover, .case li a:hover { color: var(--accent-hover); }
.section--dark p a, .section--dark li a, .others__list a, .toc a, .toc li a, .contact__links a { color: inherit; text-decoration: none; }
.others__list a { color: var(--ink); }

/* Troca suave ao filtrar projetos: os itens entram com fade e leve deslocamento, em cascata */
@keyframes item-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.grid.is-animated > .card, .others__list.is-animated > li { animation: item-in .5s cubic-bezier(.22, .61, .36, 1) backwards; animation-delay: calc(min(var(--i, 0), 10) * 50ms); }
.grid, .others { transition: min-height .3s ease; }

/* Mapas de processo dos cases: mesma experiência de "Processos de trabalho" */
.caseflow.process__canvas { height: 340px; margin-top: 16px; }
.caseflow__detail { grid-template-columns: minmax(0, 1fr); }
.caseflow__detail .eyebrow svg { width: 12px; height: 12px; }
.caseflow__detail h3 { font-size: 24px; }
.caseflow__detail p:last-child { margin: 0; max-width: 72ch; }
.rf-case__num { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 2px; }
.rf-case.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 10px 24px rgba(0,0,0,.16); }
.rf-case.is-active .rf-case__type { color: inherit; }
.rf-edge.is-on path { stroke: var(--ink-2); stroke-width: 1.75; }

/* "Onde a IA ajuda" em Processos de trabalho: bloco largo com usos e resultados */
.process__detail .ai-note--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; padding: 24px 26px; }
.ai-note--wide .ai-list li:first-child { border-top: 0; }
.ai-results { border-left: 1px solid var(--line-strong); padding-left: 28px; }
.ai-results ul { list-style: none; margin: 4px 0 0; padding: 0; }
.ai-results li { position: relative; padding: 8px 0 8px 26px; font-size: 15px; line-height: 1.55; color: var(--ink); }
.ai-results li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
@media (max-width: 960px) {
  .process__detail .ai-note--wide { grid-template-columns: 1fr; gap: 20px; }
  .ai-results { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-strong); padding-top: 18px; }
}

/* Case: "Como se conecta ao meu processo" — 6 etapas de Processos de trabalho */
.stages { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; animation: item-in .45s ease backwards; animation-delay: calc(var(--i) * 50ms); }
.stage__top { display: flex; align-items: center; justify-content: space-between; min-height: 20px; }
.stage__num { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--accent); font-variant-numeric: tabular-nums; }
.stage__ai { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 1px 7px 1px 6px; }
.stage__title { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.stage__text { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.stage.is-off { background: transparent; border-style: dashed; }
.stage.is-off .stage__num, .stage.is-off .stage__title { color: var(--muted); }
.stage.is-off .stage__text { color: var(--muted); font-style: italic; }
@media (max-width: 760px) { .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stages { grid-template-columns: 1fr; gap: 8px; } .stage.is-off { padding-block: 10px; } }
.ai-note--case .ai-results { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-strong); margin-top: 18px; padding-top: 16px; }
.ai-note--case .ai-results p.eyebrow { font-size: 12px; line-height: 1.4; }
.ai-note--case .ai-list li { font-size: 16px; }

/* Ferramentas nos cases: texto corrido separado por ponto azul petróleo */
.tools-line { margin: 0 0 20px; color: var(--ink); font-size: 15px; line-height: 1.8; }
.tools-line__item { white-space: nowrap; }
.tools-line__dot { color: var(--accent); font-weight: 700; padding: 0 2px; }

/* Títulos de seção na cor da paleta (azul petróleo) */
h2:not(.eyebrow), .case__title { color: var(--title); }
.section--dark h2:not(.eyebrow) { color: #a8d4e7; } /* AAA: 7,6:1 no claro, 8,7:1 no escuro */

/* Acessibilidade AAA · tamanho de alvo (WCAG 2.5.5): todo controle tem área de toque ≥ 44×44px,
   sem mudar o visual. A área invisível é expandida por um pseudo-elemento centralizado. */
.nav button, .filters button, .process__tabs button, .lang button, .toc button, .theme-btn, .btn--small,
.bio-toggle, .case__code-copy, .lightbox__nav button, .back, .contact__mail, .brand, .menu-btn { position: relative; }
.nav button::after, .filters button::after, .process__tabs button::after, .lang button::after, .toc button::after, .theme-btn::after, .btn--small::after,
.acc__all::after, .bio-toggle::after, .process__reset::after, .case__code-copy::after, .lightbox__nav button::after, .back::after, .contact__mail::after, .brand::after, .menu-btn::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%);
}
.lang button { min-width: 44px; }
.filters, .process__tabs { row-gap: 12px; }
.case__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Cards: descrição limitada a 3 linhas com reticências (o texto completo continua acessível a leitores de tela) */
.card__body .muted { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; flex: none; margin-bottom: 16px; }
.card__body .card__link { margin-top: auto; }

/* Processos de trabalho: mapa e detalhamento da etapa no mesmo box (sem a linha de abas) */
.process__box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.process__box .process__canvas, .process__box .process__scroller { border: 0; border-radius: 0; }
.process__box .process__mobile::after { border-radius: 0; }
.process__box .process__hint { margin: 0; padding: 8px 20px 0; }
.process__box .process__detail { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.rf-step:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.hero__ctas { margin-top: 32px; }
