/* ==========================================================================
   Portfolio — UX Research
   ========================================================================== */

:root {
  /* Design system: ver DESIGN.md na raiz do projeto */
  color-scheme: light; /* um tema só: o claro */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f7f7f7;
  --ink: #222222;
  --ink-soft: #3f3f3f;
  --ink-faint: #6a6a6a;
  --line: #dddddd;
  --accent: #ff385c;        /* Airbnb Rausch */
  --accent-strong: #e00b41; /* Airbnb Rausch Active: texto em acento e hover */
  --on-accent: #ffffff;
  --accent-soft: #fff5f7;   /* Rausch a 5% sobre branco */

  --font-display: "DM Sans", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Helvetica Neue", sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 32px;
  --r-full: 9999px;
  --radius: var(--r-lg);

  --shadow: 0 0 0 1px rgba(0, 0, 0, .02), 0 2px 6px rgba(0, 0, 0, .04), 0 4px 8px rgba(0, 0, 0, .1);

  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(48px, 8vw, 96px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--accent); color: var(--on-accent); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  z-index: 100;
}
.skip-link:focus { left: 8px; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.1; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); letter-spacing: 0; }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent-strong);
  margin-bottom: 1rem;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 62ch;
}

em.serif {
  font-style: normal;
  font-weight: 600;
  color: var(--accent-strong);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 23px;
  border-radius: var(--r-sm);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.25;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--surface-soft); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */

.hero {
  padding: clamp(56px, 10vw, 112px) 0 clamp(48px, 7vw, 80px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
}
.hero h1 { margin-bottom: .35em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
}
.hero-card .status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 18px;
}
.hero-card .status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.hero-card dl { margin: 0; }
.hero-card dt {
  font-size: .8125rem;
  color: var(--ink-faint);
}
.hero-card dd { margin: 2px 0 16px; font-weight: 500; }
.hero-card dd:last-child { margin-bottom: 0; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat strong {
  display: block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat span { color: var(--ink-soft); font-size: .92rem; }

@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head h2 { margin: 0; max-width: 18ch; }
.section-head p { max-width: 44ch; color: var(--ink-soft); margin: 0; }

/* ---------- Cases ---------- */

.cases { display: grid; gap: 24px; }

.case-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow .25s;
}
.case-card:hover { box-shadow: var(--shadow); }
.case-visual {
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
.case-body {
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
}
.case-company { margin-bottom: 20px; }
.case-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.tag {
  font-size: .8125rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--r-full);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.case-body p { color: var(--ink-soft); }
.case-impact {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.case-impact strong {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent-strong);
}
.case-impact small { display: block; color: var(--ink-faint); font-size: .85rem; }
.arrow {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: background .3s, color .3s, transform .3s;
}
.arrow svg { width: 18px; height: 18px; }
.case-card:hover .arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

@media (max-width: 820px) {
  .case-card { grid-template-columns: 1fr; }
  .case-visual { min-height: 220px; }
}

/* Figuras dos cases (ver "Figuras Hairline") */
.viz {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  container-type: size;
}
.viz-1 { --figure-bg: var(--accent-soft); background: var(--accent-soft); }
.viz-2 { --figure-bg: var(--surface-soft); background: var(--surface-soft); }
.viz-3 { --figure-bg: var(--surface-soft); background: var(--surface-soft); }
/* Cabe na largura e na altura do bloco: 115cqh é 92% da altura em 5:4 */
.viz .figure { width: min(92cqw, 115cqh, 560px); }

/* ---------- Figuras Hairline ---------- */
/* Desenhadas só com traço (assets/js/hairline). Só tons de coral: o traço
   aceso é o acento forte; os outros são o acento misturado ao fundo do bloco, que
   cada bloco declara em --figure-bg (sem ela, --surface). */
.figure {
  --hairline-plate: var(--figure-bg, var(--surface));
  --hairline-hi: var(--accent-strong);
  --hairline-edge: color-mix(in srgb, var(--accent) 58%, var(--hairline-plate));
  --hairline-mid: color-mix(in srgb, var(--accent) 44%, var(--hairline-plate));
  --hairline-lo: color-mix(in srgb, var(--accent) 22%, var(--hairline-plate));
  --hairline-stroke: 1.2;
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
}
.figure-read {
  position: absolute;
  right: 4%;
  bottom: 3%;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  color: var(--accent-strong);
  pointer-events: none;
}

/* ---------- Process ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.step {
  background: var(--surface);
  padding: 32px 28px;
}
.step-num {
  font-size: .875rem;
  font-weight: 700;
  color: var(--accent-strong);
  margin-bottom: 40px;
  display: block;
}
.step p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

@media (max-width: 960px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ---------- Methods ---------- */

.methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.method-group h4 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.method-group ul { list-style: none; margin: 0; padding: 0; }
.method-group li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
}

@media (max-width: 820px) { .methods { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.portrait {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: sticky;
  top: 100px;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-placeholder {
  font-size: 5rem;
  font-weight: 700;
  color: var(--accent-strong);
}
.about-text p { color: var(--ink-soft); }
.about-text p:first-of-type {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
}

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .portrait { position: static; max-width: 360px; }
}

/* Trajetória: uma lista só, do evento mais recente para o mais antigo.
   Trabalho e estudo se intercalam; o tipo aparece escrito em cada item e
   na cor do marcador (acento para trabalho, cinza para estudo). */
.trajectory { margin-top: clamp(48px, 7vw, 80px); }
.trajectory h3 { margin-bottom: 24px; }
.tl {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 720px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tl::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 5px;
  border-left: 1px solid var(--line);
}
.tl-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 32px;
}
.tl-item::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: var(--r-full);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.tl-study::before { background: var(--ink-faint); }
.tl-minor::before { top: 7px; left: 2px; width: 7px; height: 7px; }
.tl-meta {
  display: flex;
  gap: 8px;
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-faint);
}
.tl-kind { font-weight: 600; color: var(--accent-strong); }
.tl-study .tl-kind { color: var(--ink-soft); }
.tl-kind::after { content: "·"; margin-left: 8px; font-weight: 500; color: var(--ink-faint); }
.tl-item strong { font-weight: 600; line-height: 1.3; }
.tl-item > span { color: var(--ink-soft); font-size: .95rem; }
.tl-minor strong { font-size: .95rem; font-weight: 500; }
.tl-minor > span { font-size: .9rem; }

/* ---------- Testimonials ---------- */

.quotes {
  columns: 2;
  column-gap: 24px;
}
.quote {
  break-inside: avoid;
  margin: 0 0 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 32px);
}
.quote blockquote {
  margin: 0 0 24px;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--ink);
}
.quote figcaption strong { display: block; }
.quote figcaption span { color: var(--ink-faint); font-size: .9rem; }

@media (max-width: 820px) { .quotes { columns: 1; } }

/* ---------- Contact ---------- */

.contact {
  background: var(--surface-soft);
  color: var(--ink);
  border-radius: var(--r-xl);
  padding: clamp(40px, 8vw, 88px) clamp(24px, 6vw, 80px);
  text-align: center;
}
.contact .eyebrow { justify-content: center; }
.contact h2 { max-width: 16ch; margin: 0 auto .5em; }
.contact p { color: var(--ink-soft); max-width: 48ch; margin: 0 auto 2rem; }
.contact-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: .95rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px 40px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a { display: inline-block; padding: 10px 0; text-decoration: none; font-weight: 500; }
.footer-links a:hover,
.footer-links a[aria-current="page"] { color: var(--ink); }
.footer-bottom {
  flex-basis: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.footer-copy { margin: 0; font-size: .9rem; }

/* ---------- Case study page ---------- */

.cs-hero { padding: clamp(48px, 9vw, 110px) 0 48px; }
.back-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .95rem;
  margin-bottom: 40px;
}
.back-link:hover { color: var(--ink); }
.back-link svg { width: 16px; height: 16px; }
.cs-hero h1 { font-size: clamp(2.3rem, 5.5vw, 4.2rem); max-width: 20ch; }

.cs-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 0;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cs-facts dt {
  font-size: .8125rem;
  color: var(--ink-faint);
  margin-bottom: 4px;
}
.cs-facts dd { margin: 0; font-weight: 500; }
.cs-company { display: flex; align-items: center; gap: 12px; }
.cs-company span:last-child { color: var(--ink-soft); }

@media (max-width: 820px) { .cs-facts { grid-template-columns: repeat(2, 1fr); } }

.cs-cover {
  position: relative;
  height: clamp(240px, 42vw, 480px);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 48px 0 0;
}

.cs-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(32px, 6vw, 80px);
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.cs-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .92rem;
}
.cs-toc a {
  display: block;
  padding: 8px 0 8px 14px;
  border-left: 2px solid var(--line);
  color: var(--ink-faint);
  text-decoration: none;
  transition: color .2s, border-color .2s;
}
.cs-toc a:hover,
.cs-toc a.active { color: var(--ink); border-left-color: var(--ink); }

.cs-content { max-width: 720px; }
.cs-content section { margin-bottom: clamp(56px, 7vw, 88px); scroll-margin-top: 24px; }
.cs-content h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cs-content p, .cs-content li { color: var(--ink-soft); }
.cs-content ul { padding-left: 1.2em; }
.cs-content li { margin-bottom: .5em; }

@media (max-width: 900px) {
  .cs-layout { grid-template-columns: 1fr; }
  .cs-toc { display: none; }
}

.callout {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 32px;
  margin: 32px 0;
}
.callout p { color: var(--ink); margin: 0; font-size: 1.15rem; font-weight: 500; line-height: 1.45; }
.callout small { display: block; margin-top: 12px; color: var(--ink-soft); font-size: .875rem; }

.method-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.method-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
}
.method-item strong { display: block; margin-bottom: 4px; color: var(--ink); }
.method-item span { font-size: .93rem; color: var(--ink-soft); }
@media (max-width: 560px) { .method-list { grid-template-columns: 1fr; } }

.insight {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.insight:last-of-type { border-bottom: 1px solid var(--line); }
.insight-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-strong);
  line-height: 1;
}
.insight h3 { font-size: 1.2rem; margin-bottom: .3em; }
.insight p { margin: 0; }

.results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.result {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
}
.result strong {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent-strong);
  margin-bottom: 8px;
}
.result span { font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 640px) { .results { grid-template-columns: 1fr; } }

.next-case {
  display: block;
  text-decoration: none;
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
}
.next-case small { color: var(--ink-faint); font-size: .875rem; font-weight: 500; }
.next-case h3 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: .3em 0 0;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: color .2s;
}
.next-case:hover h3 { color: var(--accent-strong); }

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* ---------- Clients strip ---------- */

.clients {
  display: flex;
  align-items: center;
  gap: 16px 40px;
  flex-wrap: wrap;
  padding: 28px 0;
}
.clients > span {
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-faint);
}
.clients ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.clients li { display: flex; align-items: center; }
/* Logos em uma cor só (máscara), no mesmo cinza do texto.
   Arquivos em assets/img/logos/ (ver README). */
.client-logo {
  display: block;
  height: 22px;
  background-color: var(--ink-faint);
  opacity: .7;
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}
.client-logo-gameram { --logo: url(../img/logos/gameram.svg); aspect-ratio: 131 / 33; height: 30px; }
.client-logo-turno { --logo: url(../img/logos/turno.webp); aspect-ratio: 600 / 174; height: 26px; }
.client-logo-yara { --logo: url(../img/logos/yara.svg); aspect-ratio: 45 / 46; height: 34px; }
.client-logo-unpress { --logo: url(../img/logos/unpress.svg); aspect-ratio: 147 / 30; height: 18px; }
.client-logo-materialize { --logo: url(../img/logos/materialize.svg); aspect-ratio: 208 / 31; }

/* ---------- More work ---------- */

.more-work {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.more-work ul {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
}
.more-work li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .98rem;
}
.more-work li strong { color: var(--ink); font-weight: 600; }
.more-work li span {
  display: block;
  margin-top: 6px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--accent-strong);
}
@media (max-width: 820px) { .more-work ul { grid-template-columns: 1fr; } }

/* ---------- Principles ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.principle {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
}
.principle-mark {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  line-height: .6;
  color: var(--accent-strong);
  margin-bottom: 16px;
}
.principle h3 { font-size: 1.2rem; }
.principle p { color: var(--ink-soft); margin: 0; font-size: .97rem; }
@media (max-width: 820px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Case study: notes ---------- */

.note {
  font-size: .88rem;
  color: var(--ink-faint);
  border-left: 2px solid var(--line);
  padding-left: 14px;
  margin-top: 32px;
}

/* ---------- Language switch ---------- */

.lang-link {
  height: 44px;
  min-width: 44px;
  padding: 0 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-full);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--ink);
}
.lang-link:hover { border-color: var(--ink-faint); }
.lang-switch { display: flex; gap: 6px; }

.quotes-more, .articles-more { margin: 28px 0 0; font-size: .95rem; }
.quotes-more a, .articles-more a { color: var(--ink-soft); text-underline-offset: 4px; }
.quotes-more a:hover, .articles-more a:hover { color: var(--accent-strong); }

/* Fotos dos depoimentos: assets/img/depoimentos/<nome>.jpg (quadrada, ~200px).
   Sem foto, aparecem as iniciais. */
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.avatar {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 1rem;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person strong { display: block; color: var(--ink); }
.person-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}
.person-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.in-icon { width: 14px; height: 14px; color: var(--ink-faint); flex-shrink: 0; transition: color .2s; }
.person-link:hover .in-icon { color: var(--accent-strong); }
.person span { color: var(--ink-faint); font-size: .9rem; }

/* ---------- Toolkit (cards de métodos) ---------- */

.toolkit-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 28px; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-label { font-size: .8125rem; font-weight: 500; color: var(--ink-faint); margin-right: 4px; }
.toolkit-empty { margin: 8px 0 0; color: var(--ink-soft); }
.chip {
  font: inherit;
  font-size: .9rem;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.toolkit {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
/* Card vira: frente com ilustração e título, verso com o resto.
   Hover em quem tem mouse, toque (classe via JS) e foco de teclado. */
.tool-card { perspective: 1200px; border-radius: var(--r-lg); cursor: pointer; }
.tool-card[hidden] { display: none; }
.tool-flip {
  display: grid;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.tool-face {
  grid-area: 1 / 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: box-shadow .25s;
}
.tool-front { position: relative; padding: 12px 12px 20px; }
.tool-front h3 { margin-bottom: 0; }
.tool-front::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 22px;
  width: 16px;
  height: 16px;
  background: var(--ink-faint);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-3-6.7L21 8'/%3E%3Cpath d='M21 3v5h-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-3-6.7L21 8'/%3E%3Cpath d='M21 3v5h-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tool-back { padding: 22px 12px 20px; transform: rotateY(180deg); }
.tool-card.is-flipped .tool-flip,
.tool-card:focus-visible .tool-flip { transform: rotateY(180deg); }
.tool-card:focus-visible { outline-offset: 4px; }
@media (hover: hover) {
  .tool-card:hover .tool-flip { transform: rotateY(180deg); }
  .tool-card:hover .tool-face { box-shadow: var(--shadow); }
}
.tool-ill {
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 18px;
}
.tool-ill-discover { --figure-bg: var(--accent-soft); background: var(--accent-soft); }
.tool-ill-evaluate,
.tool-ill-measure { --figure-bg: var(--surface-soft); background: var(--surface-soft); }
.tool-ill .figure-read { display: none; }
.tool-phase {
  padding: 0 6px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.tool-card h3 { padding: 0 6px; font-size: 1.15rem; margin-bottom: .4em; }
.tool-back > p { padding: 0 6px; color: var(--ink-soft); font-size: .93rem; margin: 0; }
.tool-card .tool-ev {
  margin-top: auto;
  padding: 14px 6px 0;
  font-size: .85rem;
  color: var(--ink);
}
.tool-back > p { margin-bottom: 16px; }
.tool-card .tool-ev { border-top: 1px solid var(--line); }
.tool-ev span {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--accent-strong);
  margin-bottom: 2px;
}

/* ---------- Ferramentas (agrupadas como no CV) ---------- */

.tool-groups {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.tool-group {
  padding: 22px 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.tool-group h3 { font-size: 1rem; margin-bottom: 14px; }
.tool-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tool-group li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .85rem;
  padding: 4px 12px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
/* Ícone de cada ferramenta em cinza, por máscara, como os logos das empresas.
   Arquivos em assets/img/ferramentas/. */
.tool-logo {
  flex: none;
  width: 14px;
  height: 14px;
  background-color: var(--ink-faint);
  opacity: .8;
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}
.tool-logo-userinterviews { --logo: url(../img/ferramentas/userinterviews.png); }
.tool-logo-lookback { --logo: url(../img/ferramentas/lookback.svg); }
.tool-logo-optimalworkshop { --logo: url(../img/ferramentas/optimalworkshop.svg); }
.tool-logo-uxtweak { --logo: url(../img/ferramentas/uxtweak.png); }
.tool-logo-surveymonkey { --logo: url(../img/ferramentas/surveymonkey.svg); }
.tool-logo-survicate { --logo: url(../img/ferramentas/survicate.png); }
.tool-logo-mixpanel { --logo: url(../img/ferramentas/mixpanel.svg); }
.tool-logo-metabase { --logo: url(../img/ferramentas/metabase.svg); }
.tool-logo-tableau { --logo: url(../img/ferramentas/tableau.svg); }
.tool-logo-firebase { --logo: url(../img/ferramentas/firebase.svg); }
.tool-logo-miro { --logo: url(../img/ferramentas/miro.svg); }
.tool-logo-notion { --logo: url(../img/ferramentas/notion.svg); }
.tool-logo-jira { --logo: url(../img/ferramentas/jira.svg); }
.tool-logo-confluence { --logo: url(../img/ferramentas/confluence.svg); }
.tool-logo-claude { --logo: url(../img/ferramentas/claude.svg); }
.tool-logo-notebooklm { --logo: url(../img/ferramentas/notebooklm.svg); }

@media (max-width: 1024px) {
  .toolkit { grid-template-columns: repeat(3, 1fr); }
  .tool-groups { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) { .toolkit { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .toolkit, .tool-groups { grid-template-columns: 1fr; } }

/* ---------- Artigos ---------- */

.articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 32px);
  text-decoration: none;
  transition: box-shadow .25s;
}
.article-card:hover { box-shadow: var(--shadow); }
.article-card .eyebrow { margin-bottom: .75rem; }
.article-card p { color: var(--ink-soft); }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--ink-faint);
}
.article-card .article-meta {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.article-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 22ch; }
.article-head .article-meta { margin-top: 24px; font-size: .9rem; }

.article-body {
  max-width: 680px;
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line);
}
.article-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-top: 48px; }
.article-body p, .article-body li { color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.7; }
.article-body ul { padding-left: 1.2em; }
.article-body li { margin-bottom: .5em; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body .callout p { font-size: 1.15rem; line-height: 1.45; }
