/* ==========================================================
   Portfólio – Rafaelly Rodrigues
   Visual "feito à mão": papel quente, contornos de caneta,
   sombras duras, post-its e letra manuscrita nos detalhes.
   ========================================================== */

:root {
  --paper: #fff8f1;
  --paper-2: #fdebdd;
  --white: #ffffff;
  --ink: #2a1a2e;
  --ink-soft: #5c4a60;
  --pink: #d6617d;  /* mistura do rosa antigo (#fc5185) com #b07175 */
  --pink-deep: #c4224f;
  --pink-soft: #ffdce8;
  --butter: #ffe08a;
  --mint: #cdefd8;
  --lilac: #e5dcff;
  --sky: #d6e8ff;
  --peach: #ffc9a8;

  /* apelidos usados em estilos inline antigos */
  --bg: var(--paper);
  --surface: var(--white);
  --surface-2: var(--paper-2);
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --line: var(--ink);
  --accent: var(--pink-deep);
  --accent-soft: var(--pink-soft);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Bricolage Grotesque", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;

  --radius: 22px;
  --radius-sm: 14px;
  --stroke: 2px solid var(--ink);
  --hard: 5px 5px 0 var(--ink);
  --hard-sm: 3px 3px 0 var(--ink);
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1160px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(rgb(42 26 46 / .07) 1px, transparent 1.2px);
  background-size: 22px 22px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; }
::selection { background: var(--butter); }
:focus-visible { outline: 3px solid var(--pink-deep); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { display: block; font-family: var(--font-hand); font-size: 1.7rem; line-height: 1; color: var(--pink-deep); margin-bottom: 10px; transform: rotate(-1.5deg); transform-origin: left; }
.section { padding-block: clamp(64px, 10vw, 120px); }
.section-title { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 18ch; }
.section-title::after, .about h2::after, .prose-grid > h2::after {
  content: ""; display: block; width: 96px; height: 11px; margin-top: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='11' viewBox='0 0 96 11'%3E%3Cpath d='M2 6 Q 10 0 18 6 T 34 6 T 50 6 T 66 6 T 82 6 T 94 5' fill='none' stroke='%23fc5185' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
}
.section-intro { color: var(--ink-soft); max-width: 54ch; margin-top: 16px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 14px;
  font: 700 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: var(--stroke); color: var(--ink); background: var(--white); box-shadow: var(--hard-sm);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--pink); color: var(--ink); }
.btn-ghost { background: var(--white); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: var(--stroke); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; text-decoration: none; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 8px; }
.logo-heart { color: var(--pink); font-size: 1.15em; display: inline-block; transition: transform .25s; }
.logo:hover .logo-heart { transform: scale(1.25) rotate(-8deg); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .98rem; padding: 10px 14px; border-radius: 10px; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { text-decoration: underline wavy var(--pink); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-links .btn { min-height: 44px; padding: 0 20px; font-size: .95rem; margin-left: 10px; }
.menu-toggle { display: none; width: 48px; height: 48px; border-radius: 14px; border: var(--stroke); background: var(--white); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; box-shadow: var(--hard-sm); }
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .nav-links { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 4px; background: var(--paper); border-bottom: var(--stroke); padding: 12px var(--gutter) 24px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 8px; font-size: 1.125rem; }
  .nav-links .btn { margin: 10px 0 0; min-height: 52px; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 84px) clamp(48px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hello { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-hand); font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1; color: var(--pink-deep); transform: rotate(-2.5deg); margin-bottom: 18px; }
.hello .wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.4s ease-in-out 1s 2; }
.hello svg { width: 54px; height: 30px; margin-top: 18px; flex: none; }
@keyframes wave { 0%,60%,100% { transform: rotate(0) } 10%,30% { transform: rotate(14deg) } 20%,40% { transform: rotate(-8deg) } 50% { transform: rotate(10deg) } }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.3rem); max-width: 16ch; }
.hl { background: linear-gradient(transparent 60%, var(--butter) 60%, var(--butter) 92%, transparent 92%); padding-inline: .1em; margin-inline: -.1em; }
.hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--ink-soft); max-width: 46ch; margin-top: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.portrait { position: relative; justify-self: center; width: min(100%, 340px); transform: rotate(2.5deg); }
.portrait-frame {
  background: var(--white); border: var(--stroke); border-radius: 6px; box-shadow: 8px 8px 0 var(--ink);
  padding: 14px 14px 64px;
}
.portrait-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); border: 1.5px solid var(--ink); }
.portrait-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 53% 68%; transform: scale(1.2); transform-origin: 53% 46%; }
.portrait::before {
  content: ""; position: absolute; z-index: 2; top: -16px; left: 50%; width: 110px; height: 30px; margin-left: -55px;
  background: rgb(255 224 138 / .85); border: 1.5px dashed rgb(42 26 46 / .45); transform: rotate(-4deg);
}
.portrait-tag { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-family: var(--font-hand); font-size: 1.7rem; line-height: 1; color: var(--ink); }
.sticker { position: absolute; z-index: 3; display: grid; place-items: center; font-weight: 800; font-family: var(--font-display); border: var(--stroke); box-shadow: var(--hard-sm); }
.sticker-heart { right: -22px; top: 34%; width: 62px; height: 62px; border-radius: 50%; background: var(--pink); font-size: 1.7rem; transform: rotate(12deg); }
.sticker-ux { left: -26px; bottom: 22%; padding: 6px 12px; border-radius: 10px; background: var(--butter); font-size: .95rem; transform: rotate(-9deg); }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { order: -1; width: min(72%, 280px); justify-self: start; margin-left: 10px; margin-bottom: 8px; }
  .sticker-heart { right: -14px; }
  .hello svg { display: none; }
}

/* ---------- números ---------- */
.stats { padding-block: 8px clamp(40px, 6vw, 72px); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { border: var(--stroke); border-radius: var(--radius-sm); padding: 24px 24px 22px; box-shadow: var(--hard-sm); }
.stat:nth-child(1) { background: var(--mint); transform: rotate(-1deg); }
.stat:nth-child(2) { background: var(--butter); transform: rotate(.8deg); }
.stat:nth-child(3) { background: var(--lilac); transform: rotate(-.6deg); }
.stat-num { font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.stat-num small { font-size: .5em; font-weight: 600; opacity: .7; }
.stat-label { font-size: .98rem; margin-top: 10px; max-width: 26ch; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: 1fr; } .stat { transform: none !important; } }

/* ---------- cases (cards) ---------- */
.cases-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.case-list { display: grid; gap: clamp(24px, 3.4vw, 40px); }
.case-card {
  display: grid; grid-template-columns: 1.05fr 1fr; background: var(--white);
  border: var(--stroke); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: 7px 7px 0 var(--ink);
  transition: transform .2s, box-shadow .2s;
}
.case-card:nth-child(even) { grid-template-columns: 1fr 1.05fr; }
.case-card:nth-child(even) .case-media { order: 2; border-right: 0; border-left: var(--stroke); }
.case-card:hover { transform: translate(-3px, -3px); box-shadow: 10px 10px 0 var(--ink); }
.case-media { position: relative; min-height: 320px; background: var(--paper-2); overflow: hidden; border-right: var(--stroke); }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.case-card:hover .case-media img { transform: scale(1.04); }
.case-body { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.case-num { font-family: var(--font-hand); color: var(--pink-deep); font-size: 1.9rem; line-height: 1; }
.case-title { font-size: clamp(1.6rem, 3vw, 2.35rem); }
.case-desc { color: var(--ink-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: .8125rem; font-weight: 600; padding: 4px 11px; border-radius: 8px; border: 1.5px solid var(--ink); background: var(--paper); }
.tag:nth-child(3n+1) { background: var(--butter); transform: rotate(-1.5deg); }
.tag:nth-child(3n+2) { background: var(--mint); transform: rotate(1deg); }
.tag:nth-child(3n) { background: var(--lilac); transform: rotate(-.5deg); }
.case-result { display: flex; align-items: baseline; gap: 12px; padding-top: 16px; border-top: 2px dashed var(--ink); }
.case-result b { font-family: var(--font-display); font-size: 2.1rem; color: var(--pink-deep); font-weight: 800; line-height: 1; }
.case-result span { color: var(--ink-soft); font-size: .95rem; }
.case-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-top: 4px; }
.case-link svg { width: 18px; height: 18px; transition: transform .2s; }
.case-card:hover .case-link svg { transform: translateX(6px); }

.media-stat { display: grid; place-items: center; height: 100%; padding: 32px; background: var(--pink); color: var(--ink); text-align: center; }
.media-stat .from { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; text-decoration: line-through; text-decoration-thickness: 3px; opacity: .75; }
.media-stat .to { font-family: var(--font-display); font-size: clamp(4.5rem, 12vw, 8rem); line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.media-stat .cap { font-family: var(--font-hand); font-size: 1.6rem; margin-top: 4px; }
.media-menu { display: flex; justify-content: center; align-items: flex-end; gap: 16px; height: 100%; padding: 28px 28px 0; background: var(--lilac); overflow: hidden; }
.media-menu img { width: 42%; max-width: 190px; height: auto !important; object-fit: contain; border: var(--stroke); border-bottom: 0; border-radius: 18px 18px 0 0; background: #fff; box-shadow: var(--hard-sm); align-self: flex-end; transition: none !important; }
.media-menu img:last-child { margin-bottom: -40px; }
.case-card:hover .media-menu img { transform: none; }

@media (max-width: 820px) {
  .case-card, .case-card:nth-child(even) { grid-template-columns: 1fr; }
  .case-card:nth-child(even) .case-media { order: 0; border-left: 0; }
  .case-media { min-height: 0; aspect-ratio: 16 / 10; border-right: 0; border-bottom: var(--stroke); }
}

.heart { color: var(--pink); display: inline-block; transform: translateY(-.04em); }

/* ---------- sobre ---------- */
.about { background: var(--paper-2); border-block: var(--stroke); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
.about-text { display: grid; gap: 20px; font-size: 1.125rem; }
.about-text strong { font-weight: 700; background: linear-gradient(transparent 62%, var(--butter) 62%); }
.skills { margin-top: 36px; }
.skills h3 { font-family: var(--font-hand); font-size: 1.8rem; font-weight: 700; color: var(--pink-deep); letter-spacing: 0; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 16px; border-radius: 10px; border: var(--stroke); font-weight: 600; font-size: .95rem; box-shadow: 2px 2px 0 var(--ink); background: var(--white); }
.chip:nth-child(5n+1) { background: var(--butter); transform: rotate(-1.5deg); }
.chip:nth-child(5n+2) { background: var(--mint); transform: rotate(1deg); }
.chip:nth-child(5n+3) { background: var(--lilac); transform: rotate(-.5deg); }
.chip:nth-child(5n+4) { background: var(--sky); transform: rotate(1.5deg); }
.chip:nth-child(5n) { background: var(--pink-soft); transform: rotate(-1deg); }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- currículo + contato ---------- */
.cv-box { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; border: var(--stroke); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); background: var(--lilac); box-shadow: var(--hard); }
.cv-box h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.cv-box p { margin-top: 10px; max-width: 48ch; }
@media (max-width: 720px) { .cv-box { grid-template-columns: 1fr; } }
.contact { padding-block: clamp(64px, 10vw, 128px); text-align: center; }
.contact h2 { font-size: clamp(2.4rem, 7vw, 5.4rem); max-width: 14ch; margin-inline: auto; }
.contact h2 em { color: var(--pink-deep); background: linear-gradient(transparent 62%, var(--butter) 62%); }
.contact-mail { display: inline-block; margin-top: 28px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 3vw, 2rem); text-decoration: underline wavy var(--pink); text-decoration-thickness: 2.5px; text-underline-offset: 8px; overflow-wrap: anywhere; }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.site-footer { border-top: var(--stroke); padding-block: 26px; font-size: .95rem; background: var(--paper); }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-row p:first-child { font-family: var(--font-hand); font-size: 1.5rem; line-height: 1; }

/* ---------- páginas de case ---------- */
.case-hero { padding-block: clamp(36px, 6vw, 80px) clamp(28px, 4vw, 48px); }
.back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; margin-bottom: 30px; }
.back:hover { text-decoration: underline wavy var(--pink); text-underline-offset: 5px; }
.back svg { width: 18px; height: 18px; }
.case-hero h1 { font-size: clamp(2.3rem, 6vw, 4.6rem); max-width: 18ch; }
.case-hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--ink-soft); max-width: 60ch; margin-top: 22px; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; margin-top: 44px; padding-block: 24px; border-block: 2px dashed var(--ink); }
.meta dt { font-family: var(--font-hand); font-size: 1.45rem; line-height: 1; color: var(--pink-deep); }
.meta dd { margin: 6px 0 0; font-weight: 600; }
@media (max-width: 720px) { .meta { grid-template-columns: 1fr 1fr; } }

.prose-section { padding-block: clamp(36px, 6vw, 72px); }
.prose-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); }
.prose-grid > h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.prose-grid > span[aria-hidden], .prose-grid > h2[aria-hidden] { display: none; }
.prose { display: grid; gap: 20px; }
.prose > p, .prose > ul, .prose > ol:not(.steps), .prose > h3 { max-width: 72ch; }
.prose h3 { font-size: clamp(1.35rem, 2.3vw, 1.8rem); margin-top: 10px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose ul { display: grid; gap: 12px; }
.prose ul li { padding-left: 28px; position: relative; }
.prose ul li::before { content: "♥"; position: absolute; left: 0; top: 0; color: var(--pink); font-size: .95em; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--white); border: var(--stroke); border-radius: 16px; box-shadow: var(--hard-sm); padding: 0; text-align: center; transition: transform .15s, box-shadow .15s, background .15s; }
.steps li::before { display: none; }

.big-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.big-stat { border: var(--stroke); border-radius: var(--radius-sm); padding: 24px; box-shadow: var(--hard-sm); background: var(--white); }
.big-stat:nth-child(3n+1) { background: var(--sky); }
.big-stat:nth-child(3n+2) { background: var(--butter); }
.big-stat:nth-child(3n) { background: var(--lilac); }
.big-stat .n { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.5rem); line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.big-stat .l { margin-top: 10px; color: var(--ink) !important; }
.big-stat .delta { display: inline-block; margin-top: 12px; font-size: .85rem; font-weight: 700; padding: 3px 12px; border-radius: 8px; border: 1.5px solid var(--ink); background: var(--white); }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare > div { border: var(--stroke); border-radius: var(--radius-sm); padding: clamp(20px, 3vw, 30px); box-shadow: var(--hard-sm); }
.compare .before { background: var(--paper-2); transform: rotate(-.5deg); }
.compare .after { background: var(--mint); transform: rotate(.5deg); }
.compare .label { font-family: var(--font-hand); font-size: 1.5rem; line-height: 1; display: block; margin-bottom: 10px; color: var(--pink-deep); }
.compare blockquote { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.35; color: var(--ink); }
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }
.compare.images > div { display: grid; gap: 12px; justify-items: center; }
.compare.images img { max-height: 520px; width: auto; border-radius: 10px; border: 1.5px solid var(--ink); }

.figure { margin: 0; }
.figure button { all: unset; box-sizing: border-box; display: block; cursor: zoom-in; width: 100%; border: var(--stroke); border-radius: var(--radius-sm); overflow: hidden; background: #fff; box-shadow: var(--hard-sm); transition: transform .15s, box-shadow .15s; }
.figure button:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.figure button:focus-visible { outline: 3px solid var(--pink-deep); outline-offset: 3px; }
.figure img { width: 100%; }
.figure figcaption { font-family: var(--font-hand); font-size: 1.3rem; line-height: 1.15; color: var(--ink); margin-top: 8px; }
.figure.card button { padding: 10px; }
.figure.card figcaption, .figure.bare figcaption { text-align: center; }
/* só o mockup, sem fundo nem moldura */
.figure.bare button { border: 0; background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
.figure.bare button:hover { transform: translateY(-4px); box-shadow: none; }
.figure.bare img { margin-inline: auto; }
.gallery { display: grid; gap: 22px; }
.gallery.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery.phones { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.gallery.phones .figure button { border: 0; background: transparent; box-shadow: none; border-radius: 0; }
.gallery.bench { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 18px; align-items: start; }
.gallery.shots { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px 20px; align-items: start; }
.gallery.shots .figure button { border-radius: 28px; padding: 0; }
.gallery > *, .split > *, .split-media > * { min-width: 0; }
@media (max-width: 720px) { .gallery.two { grid-template-columns: 1fr; } .gallery.bench { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.full-bleed { padding-block: clamp(24px, 4vw, 48px); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--media, 380px)); gap: clamp(24px, 4vw, 64px); align-items: start; }
.split.wide { --media: 460px; }
.split-media { display: grid; gap: 16px; }
.split-media.row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .split, .split.wide { grid-template-columns: 1fr; } }
.point { display: grid; gap: 6px; }
.point h4 { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; color: var(--ink); }

/* post-it de citação */
.quote { margin: 8px 0; padding: clamp(22px, 3vw, 34px); background: var(--butter); border: var(--stroke); box-shadow: var(--hard); transform: rotate(-1deg); max-width: 640px; position: relative; }
.quote::before { content: ""; position: absolute; top: -13px; left: 50%; width: 84px; height: 24px; margin-left: -42px; background: rgb(255 255 255 / .6); border: 1.5px dashed rgb(42 26 46 / .4); transform: rotate(3deg); }
.quote blockquote { margin: 0; font-family: var(--font-hand); font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.2; color: var(--ink); }
.quote figcaption { margin-top: 14px; font-size: .95rem; color: var(--ink-soft); }
.quote cite { font-style: normal; font-weight: 700; color: var(--ink); }

/* gráficos de barras */
.chart { background: var(--white); border: var(--stroke); border-radius: var(--radius-sm); padding: clamp(18px, 3vw, 28px); box-shadow: var(--hard-sm); }
.chart h4 { margin: 0 0 16px; font-family: var(--font-body); font-size: .95rem; font-weight: 600; line-height: 1.4; }
.bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: minmax(96px, 150px) 1fr 58px; gap: 12px; align-items: center; font-size: .95rem; }
.bar-row .name { font-weight: 600; }
.bar-track { height: 16px; background: var(--paper-2); border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; width: var(--v); background: var(--pink); border-right: 1.5px solid var(--ink); }
.bar-row:not(:first-child) .bar-fill { background: var(--lilac); }
.bar-row .val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.duo { display: grid; gap: 16px; }
.duo-row { display: grid; grid-template-columns: minmax(110px, 170px) 1fr; gap: 14px; align-items: center; font-size: .95rem; }
.duo-row .name { font-weight: 600; }
.duo-bars { display: grid; gap: 4px; }
.duo-bars span { display: flex; align-items: center; gap: 8px; }
.duo-bars i { display: block; height: 12px; width: var(--v); border: 1.5px solid var(--ink); border-radius: 999px; }
.duo-bars .b i { background: var(--lilac); }
.duo-bars .m i { background: var(--pink); }
.duo-bars em { font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: .85rem; font-weight: 600; }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border: 1.5px solid var(--ink); border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.legend .b::before { background: var(--lilac); } .legend .m::before { background: var(--pink); }
@media (max-width: 560px) { .duo-row { grid-template-columns: 1fr; gap: 6px; } }

/* matriz CSD (post-its) */
.csd { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.csd > div { border: var(--stroke); border-radius: 6px; padding: clamp(18px, 2.5vw, 26px); color: var(--ink); box-shadow: var(--hard-sm); }
.csd > div:nth-child(1) { transform: rotate(-.6deg); } .csd > div:nth-child(2) { transform: rotate(.5deg); } .csd > div:nth-child(3) { transform: rotate(-.4deg); }
.csd h4 { margin: 0 0 14px; font-family: var(--font-hand); font-size: 2rem; line-height: 1; font-weight: 700; }
.csd ul { display: grid; gap: 12px; }
.prose .csd ul li { font-size: .95rem; line-height: 1.5; padding-left: 18px; position: relative; color: var(--ink); }
.prose .csd ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.csd .c { background: var(--mint); } .csd .s { background: var(--butter); } .csd .d { background: var(--pink-soft); }
@media (max-width: 900px) { .csd { grid-template-columns: 1fr; } .csd > div { transform: none !important; } }

/* notas curtas (observações dos benchmarks) */
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.prose .notes { max-width: none; }
.notes li { position: relative; padding: 14px 14px 14px 40px !important; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--butter); font-size: .93rem; line-height: 1.45; color: var(--ink) !important; box-shadow: 3px 3px 0 var(--ink); }
.notes li:nth-child(odd) { transform: rotate(-.7deg); }
.notes li:nth-child(even) { transform: rotate(.6deg); }
.notes li::before { display: grid !important; place-items: center; position: absolute; left: 11px; top: 13px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--white); font-size: .72rem; font-weight: 800; line-height: 1; color: var(--ink); content: "i"; }
.notes li.good::before { content: "✓"; background: var(--mint); }
.notes li.bad::before, .notes li.warn::before { content: "!"; background: var(--pink-soft); }
.notes li b { font-weight: 700; }
@media (max-width: 560px) { .notes li { transform: none !important; } }

/* jogadores do benchmark */
.players { display: grid; gap: clamp(36px, 5vw, 64px); }
.player { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(24px, 4vw, 56px); align-items: start; }
.player:nth-child(even) { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); }
.player:nth-child(even) .player-media { order: -1; }
.player h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 4px; }
.player-body { display: grid; gap: 16px; }
.player-body > p { color: var(--ink-soft); }
.player-media figure { margin: 0; }
@media (max-width: 900px) { .player, .player:nth-child(even) { grid-template-columns: 1fr; } .player:nth-child(even) .player-media { order: 0; } }

/* análise heurística */
.sev-legend { display: flex; flex-wrap: wrap; gap: 10px; }
.sev-legend span { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 500; }
.sev { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border: 1.5px solid var(--ink); border-radius: 8px; font-weight: 800; font-size: .95rem; flex: none; }
.sev-0 { background: var(--mint); } .sev-1 { background: var(--sky); } .sev-2 { background: var(--butter); } .sev-3 { background: var(--peach); } .sev-4 { background: #ff9a9a; }
.heur { display: grid; gap: 14px; }
.heur-row { border: var(--stroke); border-radius: var(--radius-sm); background: var(--white); box-shadow: var(--hard-sm); overflow: hidden; }
.heur-row header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-bottom: var(--stroke); background: var(--paper-2); }
.heur-row h4 { margin: 0; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.heur-cols { display: grid; grid-template-columns: 1fr 1fr; }
.heur-cols > div { padding: 16px 18px; }
.heur-cols > div + div { border-left: 2px dashed var(--ink); }
.heur-cols h5 { margin: 0 0 8px; font-family: var(--font-hand); font-size: 1.45rem; line-height: 1; color: var(--pink-deep); font-weight: 700; }
.heur-cols ol { list-style: decimal; padding-left: 20px; display: grid; gap: 6px; font-size: .95rem; color: var(--ink); }
.heur-cols p { font-size: .95rem; color: var(--ink-soft); }
.heur-row.na { box-shadow: none; opacity: .75; }
@media (max-width: 720px) { .heur-cols { grid-template-columns: 1fr; } .heur-cols > div + div { border-left: 0; border-top: 2px dashed var(--ink); } }

/* canais (menu, banners, busca) */
.chan { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.prose .chan { max-width: none; }
.chan > div { border: var(--stroke); border-radius: var(--radius-sm); padding: 22px; box-shadow: var(--hard-sm); }
.chan h4 { margin: 0; font-family: var(--font-hand); font-size: 2rem; line-height: 1; }
.chan dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.chan dt { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.chan dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; line-height: 1.1; }
.chan p { font-size: .92rem; color: var(--ink) !important; }

/* anatomia do menu */
.anat { display: grid; gap: 14px; counter-reset: a; }
.anat li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; padding: 14px 16px; border: var(--stroke); border-radius: var(--radius-sm); background: var(--white); box-shadow: var(--hard-sm); }
.anat .dot { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: var(--stroke); font-weight: 800; }
.anat li:nth-child(1) .dot { background: #8fc9ff; } .anat li:nth-child(2) .dot { background: var(--pink); } .anat li:nth-child(3) .dot { background: #7fe0a0; }
.anat b { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.anat small { display: block; margin-top: 4px; font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.menu-stack { display: grid; gap: 22px; }

.next-case { border-top: var(--stroke); padding-block: clamp(48px, 8vw, 96px); background: var(--butter); }
.next-case a { display: flex; justify-content: space-between; align-items: center; gap: 24px; text-decoration: none; }
.next-case small { font-family: var(--font-hand); font-size: 1.7rem; line-height: 1; display: block; margin-bottom: 8px; }
.next-case strong { font-family: var(--font-display); font-size: clamp(1.75rem, 4.5vw, 3.4rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; }
.next-case a:hover strong { text-decoration: underline wavy var(--pink); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.next-case svg { width: 52px; height: 52px; flex: none; transition: transform .2s; }
.next-case a:hover svg { transform: translateX(8px); }

.conclusion { background: var(--pink-soft); border: var(--stroke); border-radius: var(--radius); padding: clamp(28px, 5vw, 52px); box-shadow: var(--hard); }
.conclusion p { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.35; color: var(--ink); max-width: 44ch; }

/* ---------- lightbox ---------- */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
dialog.lightbox::backdrop { background: rgb(26 14 30 / .92); }
.lightbox-inner { width: 100%; height: 100%; display: grid; place-items: center; padding: 56px 16px 24px; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 8px; background: #fff; }
.lightbox-close { position: fixed; top: 12px; right: 12px; width: 48px; height: 48px; border-radius: 14px; border: var(--stroke); background: var(--butter); color: var(--ink); font-size: 1.5rem; cursor: pointer; line-height: 1; box-shadow: var(--hard-sm); }

/* ---------- revelar ao rolar ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}


/* etapas de UX clicáveis */
.steps li { padding: 0; }
.steps li a { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; min-height: 170px; padding: 24px 14px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.02rem; line-height: 1.25; border-radius: 14px; }
.steps li a::before { content: counter(s); font-family: var(--font-display); font-size: 3.4rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--pink-deep); }
.steps li:hover { background: var(--butter); transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.steps li a::after { content: ""; }


/* topo do case 3: telas mobile */
.hero-phones { display: flex; justify-content: space-evenly; align-items: flex-end; gap: 16px; padding: clamp(20px, 3vw, 36px) clamp(16px, 3vw, 36px) 0; background: var(--lilac); border: var(--stroke); border-radius: var(--radius); box-shadow: var(--hard); overflow: hidden; }
.hero-phones .figure.phone button { border-radius: 22px 22px 0 0; border-bottom: 0; box-shadow: none; }
.hero-phones .figure.phone:nth-child(even) { transform: translateY(24px); }
@media (max-width: 720px) { .hero-phones { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero-phones .figure.phone:nth-child(n+3) { display: none; } .hero-phones { justify-content: center; } }

/* IA nas skills */
.ai-list { display: grid; gap: 10px; margin-bottom: 16px; }
.ai-list li { padding-left: 26px; position: relative; font-size: 1rem; }
.ai-list li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--pink); }

/* espaço-chave: 3 usos */
.keyspace { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 3vw, 32px); margin: 8px 0 4px; max-width: 760px; }
.ks { margin: 0; }
.ks-box { aspect-ratio: 272 / 330; border: var(--stroke); border-radius: 8px; background: var(--white); padding: 10px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--hard-sm); }
.ks-you { background: var(--lilac); border-radius: 6px; padding: 8px; flex: 1.55; display: flex; flex-direction: column; gap: 6px; }
.ks-you.tall { flex: 1; }
.ks-you b { font-family: var(--font-display); font-size: .78rem; line-height: 1; }
.ks-you span { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; flex: 1; align-content: space-around; }
.ks-you i { aspect-ratio: 1; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); }
.ks-banner { flex: 1; border-radius: 6px; background: var(--pink); border: 1.5px solid var(--ink); display: grid; place-items: center; font-family: var(--font-hand); font-size: 1.4rem; line-height: 1; }
.ks-banner.full { flex: 1; background: var(--butter); font-size: 1.8rem; }
.ks figcaption { text-align: center; margin-top: 10px; font-family: var(--font-hand); font-size: 1.3rem; line-height: 1.1; }
@media (max-width: 560px) { .keyspace { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .ks figcaption { font-size: 1.1rem; } .ks-banner { font-size: 1rem; } }

/* sitemap */
.sitemap { border: var(--stroke); border-radius: var(--radius); background: var(--white); box-shadow: var(--hard); padding: clamp(18px, 3vw, 36px); display: grid; gap: 22px; justify-items: center; }
.sm-root { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; padding: 10px 34px; border: var(--stroke); border-radius: 12px; background: var(--pink); box-shadow: var(--hard-sm); position: relative; }
.sm-root::after, .sm-label::before { content: ""; position: absolute; left: 50%; width: 2px; height: 22px; background: var(--ink); }
.sm-root::after { top: 100%; }
.sm-level { width: 100%; display: grid; justify-items: center; }
.sm-head { width: 100%; background: var(--butter); text-align: center; }
.sm-head h3 small { font-family: var(--font-hand); font-size: 1.3rem; font-weight: 700; letter-spacing: 0; margin-left: 6px; color: var(--pink-deep); }
.sm-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.sm-pills li { padding: 5px 13px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; font-size: .88rem; font-weight: 600; }
.sm-label { position: relative; padding-top: 22px; text-align: center; }
.sm-label span { display: inline-block; padding: 8px 26px; border: var(--stroke); border-radius: 12px; background: var(--lilac); font-family: var(--font-display); font-weight: 800; box-shadow: var(--hard-sm); }
.sm-label::before { top: -4px; left: 50%; }
.sm-grid { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sm-node { border: var(--stroke); border-radius: var(--radius-sm); padding: 18px; box-shadow: var(--hard-sm); background: #fff; }
.sm-node h3 { font-size: 1.3rem; margin-bottom: 12px; }
.sm-grid .c1 { background: var(--pink-soft); } .sm-grid .c2 { background: var(--sky); } .sm-grid .c3 { background: var(--mint); }
.sm-grid .c4 { background: var(--butter); } .sm-grid .c5 { background: var(--lilac); } .sm-grid .c6 { background: var(--peach); }
.sm-sec + .sm-sec { margin-top: 14px; }
.sm-sec h4 { margin: 0 0 6px; font-family: var(--font-hand); font-size: 1.45rem; line-height: 1; padding-bottom: 4px; border-bottom: 2px dashed var(--ink); }
.sm-sec ul { display: grid; gap: 3px; }
.sm-sec li { font-size: .9rem; line-height: 1.35; padding-left: 14px; position: relative; color: var(--ink); }
.sm-sec li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 2px; background: var(--ink); }
.sm-sec li.all { font-weight: 700; }
.sm-sec li.all::after { content: " →"; }
@media (max-width: 900px) { .sm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sm-grid { grid-template-columns: 1fr; } }

/* ==========================================================
   Tamanhos padronizados das telas (todos os cases)
   - telas mobile: sempre a mesma largura (--phone-w)
   - telas desktop: sempre na largura total da coluna
   ========================================================== */
:root { --phone-w: 200px; }
@media (max-width: 560px) { :root { --phone-w: calc(50% - 8px); } }

.figure.phone { width: var(--phone-w); max-width: 100%; flex: none; }
.figure.phone button, .figure.card.phone button { padding: 0; border-radius: 22px; }
.figure.phone img { width: 100%; height: auto; }
.figure.bare.phone button { border-radius: 0; }
.figure.desk { width: 100%; }
.figure.detail { width: 100%; }
.figure.desk img, .figure.detail img { width: 100%; height: auto; }

/* grupos de telas mobile */
.phones-row, .split-media.phones-row { display: flex; flex-wrap: wrap; gap: 20px 16px; align-items: flex-start; }
.phones-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 20px; max-width: 700px; margin-inline: auto; align-items: flex-start; }
.phones-grid.wide5 { max-width: none; justify-content: flex-start; gap: 24px 20px; }
.split-media.mixed { display: flex; gap: 20px; align-items: flex-start; }
.split-media.mixed .figure.desk { flex: 1; min-width: 0; width: auto; }
.compare.images > div { justify-items: center; }
.compare.images .figure.phone { width: var(--phone-w); min-width: 0; justify-self: center; }
.compare.images > div { padding-inline: 0; }
.compare.images img { max-height: none; width: 100%; border: 0; }
@media (max-width: 900px) { .split-media.mixed { flex-direction: column; } .split-media.mixed .figure.desk { width: 100%; } }

/* anatomia do menu: imagem grande e centralizada, 3 cards abaixo */
.anat-hero { display: flex; justify-content: center; margin-bottom: 28px; }
.anat-hero .figure.anat-fig { width: 100%; max-width: 1080px; }
.anat.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 820px) { .anat.three { grid-template-columns: 1fr; } }
/* cor semântica: verde só para resultado positivo; rosa/pêssego para dado negativo */
.big-stat.pos { background: var(--mint) !important; }
.big-stat.neg { background: var(--pink-soft) !important; }
.csd .c { background: var(--sky); }


/* ---- ajustes: espaçamento entre subtópicos, notas discretas, Certezas verdes, embed ---- */
.prose { gap: 22px; }
.prose > h3 { margin-top: 36px; }
.prose > h3:first-child { margin-top: 0; }
.prose > .point { margin-top: 8px; }
.prose > .point + .point { margin-top: 18px; }
.prose > .chan, .prose > .csd, .prose > .big-stats, .prose > .compare, .prose > .quote { margin-block: 6px; }

.csd .c { background: var(--mint); }

/* observações do benchmark: neutras, o destaque fica no ícone e na borda */
.notes li { background: var(--white) !important; transform: none !important; box-shadow: none !important; border: 1.5px solid var(--line, #d9cfd3); border-left: 5px solid var(--ink); }
.notes li.good { border-left-color: #2f9e62; }
.notes li.info { border-left-color: #3b82c4; }
.notes li.warn { border-left-color: #e08a1e; }
.notes li.bad  { border-left-color: #d63d4f; }
.notes li::before { width: 22px; height: 22px; top: 12px; left: 12px; color: #fff; border: 0; font-size: .78rem; }
.notes li.good::before { content: "✓"; background: #2f9e62; }
.notes li.info::before { content: "i"; background: #3b82c4; }
.notes li.warn::before { content: "!"; background: #e08a1e; }
.notes li.bad::before  { content: "✕"; background: #d63d4f; }
.notes li { padding-left: 44px !important; }

/* capa do menu: telas mobile todas do mesmo tamanho */
.hero-phones .figure.phone { width: var(--phone-w); }
.hero-phones .figure.phone img { aspect-ratio: 1080 / 1980; object-fit: cover; object-position: top; }
.hero-phones .figure.phone:nth-child(even) { transform: none; }

/* embed do Miro */
.embed { position: relative; width: 100%; max-width: 860px; aspect-ratio: 16 / 9; border: var(--stroke); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--hard-sm); background: #fff; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* CTAs */
.btn-primary:hover { background: #c4516d; }
.btn-primary:focus-visible { outline-color: #c4516d; }

/* métricas clicáveis */
a.stat { display: block; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
a.stat:hover { transform: translate(-2px,-2px) rotate(0) !important; box-shadow: 5px 5px 0 var(--ink); }
.stat-go { display: inline-block; margin-top: 12px; font-weight: 700; font-size: .9rem; }
a.stat:hover .stat-go { text-decoration: underline wavy var(--pink); text-underline-offset: 4px; }