:root {
  --bg: #09090b;
  --surface: #141417;
  --line: #222225;
  --text: #ffffff;
  --muted: #999999;
  --dim: #7c7c80;
  --orange: #ff8a1e;
  --green: #00ca61;
  --blue: #5fa7ff;
  --pink: #ff60d4;
  --serif: "Libre Caslon Condensed", "Times New Roman", serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --w: 1200px;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; }
ul, ol { padding: 0; }
.grid > *, .grid-mosaic > *, .row > *, .about-body > *, .about-hero > * { min-width: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
img { display: block; max-width: 100%; }
.wrap {
  max-width: calc(var(--w) + 32px); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- Header ---------- */
header.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 64px 0 0;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 13px; line-height: 1.15; }
.logo-mark {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 17px;
  background: var(--text); color: var(--bg);
}
nav.links { display: flex; gap: 48px; font-size: 13px; color: var(--muted); }
nav.links a { padding: 8px 0; transition: color .2s; }
nav.links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { padding: 120px 0 150px; }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 6.2vw, 86px);
  line-height: 1.04; letter-spacing: -0.025em;
}
.hero h1 em { font-style: italic; font-weight: 700; }
.ast { color: var(--orange); font-style: normal; }
.c-green { color: var(--green); }
.c-blue { color: var(--blue); }
.c-pink { color: var(--pink); }
.hero-meta {
  margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px 28px;
  font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: lowercase;
}

/* ---------- Work sections ---------- */
section.work { padding-bottom: 140px; }
.section-title {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(28px, 3.2vw, 45px); letter-spacing: -0.03em;
  color: var(--dim); margin-bottom: 20px;
}
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { display: block; }
.card .media {
  aspect-ratio: 1 / 1; overflow: hidden; position: relative;
  background: var(--tone, var(--surface));
}
.card .media > .ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px;
  padding: 32px; text-align: center;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
a.card:hover .media > .ph { transform: scale(1.04); }
.ph-frame {
  width: 72%; aspect-ratio: 4 / 3; border-radius: 10px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px; color: #fff;
}
.card .info { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0 0; }
.card .info h3 { font-size: 15px; font-weight: 500; }
.card .info p { font-size: 13px; color: var(--muted); margin-top: 2px; max-width: 46ch; }
.card .info .tag { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; padding-top: 3px; }

.grid-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mosaic-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; aspect-ratio: 1 / 1; }
.tile {
  background: var(--tone, var(--surface)); aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,.9);
}
.mosaic-4 .tile { aspect-ratio: auto; }

/* ---------- About / Resume ---------- */
.about { padding-bottom: 140px; }
.about-lead {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; max-width: 24ch;
}
.about-lead em { font-style: italic; font-weight: 700; }
.about-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px;
  margin-top: 48px; color: #c8c8c8; font-size: 15px;
}
.label {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  text-transform: lowercase; letter-spacing: .02em;
}

.resume { padding-bottom: 140px; }
.row {
  display: grid; grid-template-columns: 220px 1fr; gap: 32px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.row:last-child { border-bottom: 1px solid var(--line); }
.job h3, .job h4 { font-size: 17px; font-weight: 500; }
.job .where { color: var(--muted); font-size: 14px; margin-top: 2px; }
.job .ctx { color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 62ch; }
.job h5, .job h4.sub {
  font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--muted);
  margin: 24px 0 10px; text-transform: lowercase;
}
.job ul { list-style: none; display: grid; gap: 10px; }
.job li {
  font-size: 15px; color: #d6d6d6; padding-left: 18px; position: relative; max-width: 68ch;
}
.job li::before { content: "—"; position: absolute; left: 0; color: var(--dim); }
.job details { margin-top: 18px; }
.job summary {
  cursor: pointer; list-style: none;
  font-family: var(--mono); font-size: 12px; color: var(--blue);
}
.job summary::-webkit-details-marker { display: none; }
.job details[open] summary { margin-bottom: 4px; }

.skills { display: grid; gap: 22px; }
.skills h3, .skills h4 { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.skills p { font-size: 14px; color: var(--muted); max-width: 70ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono); font-size: 12px; color: #d6d6d6;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
}
.ph-text { color: var(--orange); }

/* ---------- Footer ---------- */
footer { padding: 40px 0 72px; }
.foot-row {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px;
  font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: lowercase;
}
.foot-row a:hover { color: var(--text); }
.cta {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 6vw, 84px); line-height: 1.05; margin-top: 18px;
}
.cta em {
  font-style: italic; font-weight: 700;
  background: linear-gradient(90deg, var(--orange), var(--pink) 50%, var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Inner pages ---------- */
.page-top { padding-top: 120px; }
.page-hero { padding-bottom: 120px; }
.page-hero .about-lead { max-width: 28ch; }
nav.links a[aria-current="page"] { color: var(--text); }
.hero-meta a:hover { color: var(--text); }
.text-link { color: var(--blue); font-family: var(--mono); font-size: 13px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.about-hero { display: grid; grid-template-columns: 1fr 300px; gap: 64px; align-items: end; }
.portrait {
  aspect-ratio: 4 / 5; background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
@media (max-width: 760px) {
  .page-top { padding-top: 72px; }
  .page-hero { padding-bottom: 80px; }
  .about-hero { grid-template-columns: 1fr; gap: 32px; }
  .portrait { max-width: 260px; }
}

/* card hover respects reduced motion */
@media (prefers-reduced-motion: reduce) {
  .card:hover .media > .ph { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  header.top { padding-top: 32px; }
  nav.links { gap: 24px; }
  .hero { padding: 72px 0 96px; }
  .grid, .grid-mosaic, .about-body { grid-template-columns: 1fr; }
  section.work, .about, .resume { padding-bottom: 96px; }
  .row { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Media & tiles (imagens enviadas) ---------- */
.card .media > img, .card .media > video,
.tile > img, .tile > video, .portrait > img, .portrait > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
a.card:hover .media > img, a.card:hover .media > video { transform: scale(1.04); }
.tile, .portrait { position: relative; overflow: hidden; }
.tile.ink-light { color: rgba(255,255,255,.9); }
.tile.ink-dark { color: #1d1d1f; }
.portrait-ph { position: relative; }
.meta-item, .para, .chip, .skills > div, .job li { position: relative; }
.selectable { user-select: text; text-transform: none; }
.muted-link { color: var(--dim); }
.more-link { margin-top: 40px; }
.lang { font-size: 15px; }
.groups { display: grid; }

/* ---------- Modo de edição ---------- */
:root { --edit: #5fa7ff; --edit-soft: rgba(95,167,255,.14); --bar: #17171b; --bar-line: #2b2b31; }
body.editing [contenteditable] {
  outline: 1px dashed rgba(95,167,255,.45); outline-offset: 3px; border-radius: 2px;
  cursor: text; min-width: 1ch;
}
body.editing span[contenteditable] { display: inline-block; }
body.editing h1 [contenteditable], body.editing .cta [contenteditable] { display: inline; }
body.editing [contenteditable]:hover { background: var(--edit-soft); }
body.editing [contenteditable]:focus { outline: 2px solid var(--edit); background: var(--edit-soft); }
body.editing [contenteditable]:empty::before { content: attr(data-ph); color: var(--muted); font-style: italic; }
body.editing .card { cursor: default; }
body.editing .card:hover .media > .ph, body.editing .card:hover .media > img { transform: none; }

.ed-btn {
  font: 500 12px/1 var(--mono); color: var(--text);
  background: var(--bar); border: 1px solid var(--bar-line); border-radius: 999px;
  padding: 8px 12px; cursor: pointer; min-height: 32px;
}
.ed-btn:hover:not([disabled]) { border-color: var(--edit); color: var(--edit); }
.ed-btn[disabled] { opacity: .45; cursor: not-allowed; }
.ed-btn:focus-visible, .ed-main:focus-visible { outline: 2px solid var(--edit); outline-offset: 2px; }
.ed-add { margin-top: 14px; color: var(--edit); border-style: dashed; background: transparent; }
.ed-rm {
  min-height: 0; width: 24px; height: 24px; padding: 0; margin-left: 6px;
  display: inline-grid; place-items: center; font-size: 14px; vertical-align: middle;
}
.job > .ed-rm, .skills > div > .ed-rm, .para > .ed-rm { margin: 10px 0 0; }
.hero-meta .ed-add { margin-top: 0; }

.ed-media {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.ed-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.ed-row-tile { position: absolute; right: 12px; top: 12px; margin: 0; z-index: 2; }
.ed-field {
  display: inline-flex; align-items: center; gap: 8px;
  font: 400 11px var(--mono); color: var(--muted);
  background: var(--bar); border: 1px solid var(--bar-line); border-radius: 999px; padding: 4px 6px 4px 12px;
}
.ed-field-wide { flex: 1 1 240px; min-width: 0; }
.ed-field input[type="url"] {
  flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text);
  font: 400 12px var(--mono); padding: 6px 4px;
}
.ed-field input[type="url"]:focus { outline: none; }
.ed-field:focus-within { border-color: var(--edit); }
.ed-field input[type="color"] { width: 28px; height: 22px; border: 0; padding: 0; background: none; cursor: pointer; }

.ed-bar {
  position: fixed; z-index: 50;
  right: max(16px, calc(env(safe-area-inset-right, 0px) + 16px));
  bottom: max(16px, calc(env(safe-area-inset-bottom, 0px) + 16px));
  max-width: min(420px, calc(100vw - 32px));
  display: grid; gap: 10px; justify-items: end;
}
body.editing .ed-bar {
  background: var(--bar); border: 1px solid var(--bar-line); border-radius: 14px;
  padding: 14px; justify-items: stretch; box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.ed-hint { font-size: 13px; color: var(--muted); }
.ed-status { font: 400 12px var(--mono); color: var(--text); min-height: 1.4em; }
.ed-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.ed-main {
  font: 600 13px/1 var(--sans); color: #0b1220; background: var(--edit);
  border: 0; border-radius: 999px; padding: 11px 18px; cursor: pointer; min-height: 40px;
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
}
.ed-main[disabled] { opacity: .45; cursor: not-allowed; }
body.editing { padding-bottom: 180px; }

/* ---------- Página de case ---------- */
.case-hero { display: grid; gap: 16px; padding-bottom: 56px; }
.case-back { margin-bottom: 24px; }
.case-title { font-size: clamp(40px, 6vw, 80px); line-height: 1.04; max-width: 18ch; text-wrap: balance; }
.case-lead { font-size: clamp(17px, 1.6vw, 20px); color: #c8c8c8; max-width: 52ch; }
.case-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px;
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line);
}
.case-meta > div { display: grid; gap: 6px; align-content: start; min-width: 0; }
.case-meta dd { margin: 0; font-size: 15px; }
.case-cover { aspect-ratio: 16 / 9; max-width: 100%; position: relative; overflow: hidden; background: var(--tone, var(--surface)); margin-bottom: 120px; }
.case-cover > .ph, .case-img > .ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.case-text { display: grid; gap: 14px; min-width: 0; }
.case-text p { font-size: 16px; color: #d6d6d6; max-width: 64ch; line-height: 1.65; }
.case-img { aspect-ratio: 16 / 10; max-width: 100%; position: relative; overflow: hidden; background: var(--surface); margin-top: 12px; }
.case-body .row > div:first-child { display: flex; align-items: flex-start; gap: 6px; }
.case-next {
  display: grid; gap: 10px; padding: 48px 0 32px; border-top: 1px solid var(--line); margin-bottom: 40px;
}
.case-next-title { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4vw, 52px); line-height: 1.05; transition: color .2s; }
.case-next:hover .case-next-title { color: var(--blue); }
.ed-note { font: 400 12px var(--mono); color: var(--muted); margin: -100px 0 100px; }
@media (max-width: 760px) {
  .case-cover { margin-bottom: 80px; }
  .ed-note { margin: -64px 0 64px; }
}
.case-text p.ph-text, .case-meta dd.ph-text, .case-lead.ph-text { color: var(--orange); }
.case-cover .ph-frame { width: 36%; }
.case-img .ph-frame { width: 44%; }

/* ---------- Case narrativo ---------- */
.case-tagline { font-size: clamp(17px, 1.7vw, 21px); color: #c8c8c8; max-width: 46ch; }
.case-title { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; }
.case-intro {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 48px 72px;
  padding-bottom: 120px;
}
.case-about { display: grid; gap: 14px; align-content: start; }
.case-intro .case-meta {
  grid-template-columns: 1fr; margin: 0; padding: 0; border: 0; gap: 22px; align-content: start;
}
.cparas { display: grid; gap: 14px; }
.cparas p { font-size: 16px; line-height: 1.7; color: #d6d6d6; max-width: 66ch; }
.cparas p.ph-text { color: var(--orange); }
.case-blocks { display: grid; }
.cblock { display: grid; gap: 18px; padding: 0 0 112px; position: relative; }
.ctitle {
  font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.08; letter-spacing: -0.015em; max-width: 22ch; text-wrap: balance;
}
.cbullets { list-style: none; display: grid; gap: 10px; max-width: 66ch; }
.cbullets li { position: relative; padding-left: 18px; color: #d6d6d6; font-size: 16px; line-height: 1.6; }
.cbullets li::before { content: "—"; position: absolute; left: 0; color: var(--dim); }
.cfig { display: grid; gap: 10px; margin-top: 12px; }
.cfig-media { aspect-ratio: 16 / 10; max-width: 100%; position: relative; overflow: hidden; background: var(--surface); }
.cfig-media > .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.cfig-media .ph-frame { width: 40%; }
.cfig figcaption { font: 400 12px var(--mono); color: var(--muted); max-width: 70ch; }
.cps {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 56px;
  border-top: 1px solid var(--line); padding-top: 40px;
}
.cps-col { display: grid; gap: 12px; align-content: start; }
.cps-title { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.12; text-wrap: balance; }
.cps-fig, .cps .ed-block-tools { grid-column: 1 / -1; }
.c-problem { color: var(--orange); }
.c-solution { color: var(--green); }
.ed-add-blocks { margin: -60px 0 80px; }
@media (max-width: 760px) {
  .case-intro, .cps { grid-template-columns: 1fr; }
  .case-intro { padding-bottom: 80px; }
  .cblock { padding-bottom: 80px; }
}
.case-title { max-width: 24ch; }

/* ---------- Seletor de idioma ---------- */
nav.links { align-items: center; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang-switch button {
  font: 500 11px/1 var(--mono); letter-spacing: .04em; color: var(--muted);
  background: transparent; border: 0; border-radius: 999px; padding: 7px 10px; min-height: 28px; cursor: pointer;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.lang-switch button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 760px) { nav.links { gap: 18px; } }
@media (max-width: 760px) { .hero-br { display: none; } }

/* ---------- Foco no card em hover ---------- */
.grid .card { transition: opacity .35s ease; }
@media (hover: hover) {
  body:not(.editing) .grid:has(a.card:hover) .card:not(:hover) { opacity: .3; }
}

/* ---------- Galeria ---------- */
.cgallery { columns: 2; column-gap: 20px; }
.cg-item { break-inside: avoid; margin: 0 0 20px; position: relative; background: var(--surface); }
.cg-item > img, .cg-item > video { display: block; width: 100%; height: auto; }
@media (max-width: 760px) { .cgallery { columns: 1; } }

/* ---------- Página de case (layout da referência) ---------- */
body.page-case #app.wrap { max-width: none; padding-left: 0; padding-right: 0; }
.case-back-btn {
  position: fixed; z-index: 40;
  top: calc(env(safe-area-inset-top, 0px) + 24px); left: max(24px, calc(env(safe-area-inset-left, 0px) + 24px));
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text);
  background: rgba(20, 20, 23, .78); border: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .2s;
}
.case-back-btn:hover { background: #222226; }
.case-lang {
  position: fixed; z-index: 40; background: rgba(20, 20, 23, .78);
  top: calc(env(safe-area-inset-top, 0px) + 28px); right: max(24px, calc(env(safe-area-inset-right, 0px) + 24px));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.case-marquee {
  position: fixed; left: 0; right: 0; z-index: 0; pointer-events: none; overflow: hidden;
  top: calc(env(safe-area-inset-top, 0px) + clamp(80px, 10vw, 170px));
}
.case-marquee p {
  display: flex; gap: .3em; white-space: nowrap; margin: 0;
  padding-left: max(24px, 6vw);
  font-family: var(--serif); font-weight: 400; color: var(--acc);
  font-size: clamp(96px, 13vw, 220px); line-height: 1.3; letter-spacing: -0.01em;
  will-change: transform;
}
.case-stage { position: relative; z-index: 1; padding-top: clamp(220px, 26vw, 440px); }
.case-split { display: grid; grid-template-columns: minmax(300px, 30%) minmax(0, 1fr); background: var(--bg); align-items: start; }
.case-side {
  position: sticky; top: 0; align-self: start;
  padding: 40px 48px 48px max(24px, 6vw);
  display: grid; gap: 28px; min-width: 0;
}
.cs-title { font-family: var(--sans); font-weight: 600; font-size: 24px; line-height: 1.5; letter-spacing: -0.01em; }
.cs-sub { font-size: 18px; line-height: 28px; font-weight: 500; color: #d9d9d9; margin-top: -24px; }
.cs-label { font: 400 14px/36px var(--mono); color: #888; text-transform: uppercase; letter-spacing: .02em; }
.case-side .cparas { gap: 14px; }
.case-side .cparas p { font-size: 14px; line-height: 23px; color: #fff; font-weight: 500; max-width: 40ch; }
.cs-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin: 0; }
.cs-meta > div { min-width: 0; position: relative; }
.cs-meta dd { margin: 0; font-size: 14px; line-height: 23px; font-weight: 500; }
.cs-links { display: flex; flex-wrap: wrap; gap: 10px; }
.cs-pill { font-size: 14px; font-weight: 600; border: 1px solid #3a3a3f; border-radius: 999px; padding: 10px 18px; transition: background .2s, border-color .2s; }
.cs-pill:hover { background: #1c1c20; border-color: #55555b; }
.case-side .ed-note { margin: 0; }
.case-panels { display: grid; min-width: 0; }
.case-panel { position: relative; overflow: hidden; background: var(--tone, var(--surface)); min-height: clamp(420px, 80vh, 820px); }
.case-panel > img, .case-panel > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-panel > .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.case-panel .ph-frame { width: 40%; }
.case-panels > .ed-row { padding: 16px; background: var(--bg); margin: 0; }
.case-body-outer { background: var(--bg); position: relative; }
.case-body {
  max-width: calc(1000px + 48px); margin: 0 auto;
  padding: 180px max(24px, env(safe-area-inset-right, 0px)) 40px max(24px, env(safe-area-inset-left, 0px));
}
.case-body .cblock { padding-bottom: 140px; gap: 0; }
.case-body .cblock.has-fig { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 0 90px; align-items: center; }
.case-body .cblock.has-fig > .ed-block-tools { grid-column: 1 / -1; }
.cb-text { display: grid; gap: 18px; min-width: 0; }
.case-body .ctitle { font-family: var(--sans); font-weight: 700; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.2; letter-spacing: -0.02em; max-width: none; }
.case-body .cparas p, .case-body .cbullets li { font-size: 16px; line-height: 28px; color: #fff; max-width: 70ch; }
.case-body .cfig { margin-top: 0; }
.case-body .cfig figcaption { text-align: center; }
.case-body .cps { border-top: 0; padding-top: 0; gap: 20px 72px; }
.case-body .cps-title { font-family: var(--sans); font-weight: 700; font-size: clamp(22px, 2vw, 28px); line-height: 1.25; letter-spacing: -0.015em; }
.case-body .label { font-size: 13px; }
.case-body .case-next { margin-top: 0; }
.case-footwrap { background: var(--bg); position: relative; z-index: 1; }
@media (max-width: 900px) {
  .case-split { grid-template-columns: 1fr; }
  .case-side { position: static; padding: 32px 24px 40px; }
  .case-panel { min-height: 62vw; }
  .case-body { padding-top: 96px; }
  .case-body .cblock.has-fig { grid-template-columns: 1fr; gap: 28px; }
  .case-body .cblock { padding-bottom: 96px; }
  .case-body .cps { grid-template-columns: 1fr; }
}

/* ---------- Aprendizados ---------- */
.case-body .cinsights, .case-body .coptions { gap: 32px; }
.ins-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.ins { background: var(--bg); padding: 24px 22px 22px; display: grid; gap: 8px; align-content: start; position: relative; min-width: 0; }
.ins-stat { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -0.01em; color: var(--green); }
.ins-text { font-size: 15px; line-height: 24px; color: #e2e2e2; }
.ins-src { font: 400 11px/1.5 var(--mono); color: var(--muted); text-transform: lowercase; letter-spacing: .02em; margin-top: 4px; }
.ins-stat.ph-text, .ins-text.ph-text { color: var(--orange); }

/* ---------- Opções exploradas ---------- */
.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.opt-grid-2x2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .opt-grid-2x2 { grid-template-columns: 1fr; } }
.opt {
  border: 1px solid var(--line); border-radius: 14px; padding: 20px 20px 22px;
  display: grid; gap: 10px; align-content: start; position: relative; min-width: 0; background: #0e0e11;
}
.opt-card-chosen { border-color: rgba(0, 202, 97, .55); background: rgba(0, 202, 97, .06); }
.opt-card-discarded { opacity: .78; }
.opt-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.opt-label { font: 400 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.opt-chip { font: 500 11px/1 var(--mono); padding: 6px 9px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.opt-chosen { color: var(--green); }
.opt-discarded { color: #8a8a90; }
.opt-testing { color: var(--blue); }
.opt-explored { color: var(--orange); }
.opt-title { font-family: var(--sans); font-weight: 600; font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
.opt-text { font-size: 14px; line-height: 22px; color: #d6d6d6; }
.opt-why { font-size: 14px; line-height: 22px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; }
.opt-select {
  font: 500 11px var(--mono); color: var(--text); background: var(--bar, #17171b);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px;
}
.opt-title.ph-text, .opt-text.ph-text, .opt-why.ph-text { color: var(--orange); }
.opt-later { color: var(--pink); }
.opt-card-later { opacity: .88; }

/* ---------- Mockups de aparelho ---------- */
.dv-stage { display: flex; align-items: flex-end; justify-content: center; gap: clamp(12px, 2.4vw, 32px); width: 100%; }
.dv { position: relative; flex: none; }
.dv-screen { position: relative; overflow: hidden; background: #fff; }
.dv-screen > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.dv-empty { position: absolute; inset: 0; display: grid; place-items: center; font: 12px var(--mono); color: #888; }
.dv-laptop { width: min(100%, 720px); }
.dv-lid { background: #1b1b1f; border-radius: 16px 16px 6px 6px; padding: 2.2% 2.2% 3%; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); }
.dv-laptop .dv-screen { aspect-ratio: 16 / 10; border-radius: 4px; }
.dv-base { height: 14px; margin: 0 -8%; background: linear-gradient(#cfd2d8, #9a9ea6); border-radius: 0 0 14px 14px; position: relative; }
.dv-base::after { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 6px; transform: translateX(-50%); background: #8a8e96; border-radius: 0 0 8px 8px; }
.dv-tablet { width: clamp(180px, 30%, 320px); background: #1b1b1f; border-radius: 26px; padding: 12px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); }
.dv-tablet .dv-screen { aspect-ratio: 820 / 1180; border-radius: 14px; }
.dv-phone { width: clamp(120px, 20%, 220px); background: #111114; border-radius: 34px; padding: 8px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.dv-phone .dv-screen { aspect-ratio: 390 / 844; border-radius: 27px; padding-top: 9%; }
.dv-phone .dv-screen > img { height: auto; }
.dv-island { position: absolute; top: 2.2%; left: 50%; transform: translateX(-50%); width: 30%; height: 3.4%; background: #111114; border-radius: 999px; z-index: 2; }
.dv-ed { left: 50%; bottom: 50%; transform: translate(-50%, 50%); }
/* combinações */
.dv-n2 .dv-laptop { width: min(72%, 680px); }
.dv-n2 .dv-laptop + .dv-phone { margin-left: -9%; margin-bottom: -2%; width: clamp(110px, 19%, 200px); z-index: 2; }
.dv-n3 .dv-tablet { width: clamp(140px, 24%, 260px); margin-right: -7%; z-index: 2; margin-bottom: -2%; }
.dv-n3 .dv-laptop { width: min(62%, 640px); }
.dv-n3 .dv-laptop + .dv-phone { margin-left: -7%; width: clamp(100px, 16%, 180px); z-index: 2; margin-bottom: -2%; }
.dv-n2 .dv-phone + .dv-phone { width: clamp(120px, 26%, 230px); }
/* onde aparecem */
.dv-figure { margin: 8px 0 0; display: grid; gap: 14px; }
.dv-figure > .dv-stage { background: var(--tone); padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 56px); border-radius: 0; }
.dv-figure figcaption { font: 400 12px/1.6 var(--mono); color: var(--muted); text-align: center; max-width: 70ch; margin: 0 auto; }
.case-body .cdevices.cblock { gap: 28px; }
.case-panel-dv { position: relative; min-height: clamp(420px, 80vh, 820px); background: var(--tone); display: grid; place-items: center; padding: clamp(28px, 5vw, 72px); overflow: hidden; }
.dv-in-panel .dv-laptop { width: min(92%, 760px); }
.dv-in-panel.dv-n1 .dv-tablet { width: clamp(220px, 42%, 380px); }
.dv-in-panel.dv-n2 .dv-phone { width: clamp(150px, 30%, 260px); }
.media-dv { display: grid; place-items: center; padding: 8%; }
.media-dv .dv-stage { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
a.card:hover .media-dv .dv-stage { transform: scale(1.03); }
.dv-in-card .dv-laptop { width: 86%; }
.dv-in-card .dv-lid { border-radius: 10px 10px 4px 4px; }
.dv-in-card .dv-base { height: 9px; }
.dv-in-card.dv-n2 .dv-laptop + .dv-phone { width: 22%; margin-left: -14%; }
.dv-in-card .dv-phone { border-radius: 18px; padding: 4px; }
.dv-in-card .dv-phone .dv-screen { border-radius: 14px; }
@media (prefers-reduced-motion: reduce) { a.card:hover .media-dv .dv-stage { transform: none; } }
@media (max-width: 760px) {
  .dv-tablet { padding: 6px; border-radius: 14px; }
  .dv-tablet .dv-screen { border-radius: 9px; }
  .dv-phone { padding: 4px; border-radius: 18px; }
  .dv-phone .dv-screen { border-radius: 14px; }
  .dv-lid { border-radius: 8px 8px 3px 3px; }
  .dv-base { height: 7px; }
  .dv-n2 .dv-laptop { width: 74%; }
  .dv-n2 .dv-laptop + .dv-phone { width: 22%; margin-left: -10%; }
  .dv-n3 .dv-tablet { width: 25%; margin-right: -6%; }
  .dv-n3 .dv-laptop { width: 58%; }
  .dv-n3 .dv-laptop + .dv-phone { width: 18%; margin-left: -6%; }
  .dv-n2 .dv-phone + .dv-phone, .dv-in-panel.dv-n2 .dv-phone { width: 40%; }
  .dv-in-panel.dv-n1 .dv-tablet { width: 60%; }
  .dv-figure > .dv-stage { padding: 24px 12px; }
}

/* Foto do Sobre: proporção da foto (2:3), sem cortar a cabeça, maior */
.about-hero { grid-template-columns: minmax(0, 1fr) clamp(300px, 34vw, 440px); align-items: center; }
.portrait { aspect-ratio: 2 / 3; }
.portrait > img { object-position: center top; }
@media (max-width: 760px) { .about-hero { grid-template-columns: 1fr; } .portrait { max-width: 340px; } }
/* três celulares lado a lado */
.dv-stage.dv-n3:not(:has(.dv-laptop)) .dv-phone { width: clamp(120px, 26%, 230px); }
@media (max-width: 760px) { .dv-stage.dv-n3:not(:has(.dv-laptop)) .dv-phone { width: 30%; } }

/* ---------- Suposições x achados ---------- */
.hyp-list { display: grid; border-top: 1px solid var(--line); }
.hyp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px 32px; padding: 24px 0; border-bottom: 1px solid var(--line); position: relative; }
.hyp-col { display: grid; gap: 8px; align-content: start; min-width: 0; }
.hyp-h { font: 400 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.hyp-belief { font-size: 17px; line-height: 1.45; font-weight: 600; color: var(--text); }
.hyp-text { font-size: 15px; line-height: 24px; color: #d6d6d6; }
.hyp-meaning { font-size: 15px; line-height: 24px; color: var(--text); }
.hyp-chip { justify-self: start; font: 500 11px/1 var(--mono); padding: 6px 9px; border-radius: 999px; border: 1px solid currentColor; }
.hyp-confirmed { color: var(--green); }
.hyp-partial { color: var(--orange); }
.hyp-inverted { color: var(--blue); }
@media (max-width: 760px) { .hyp { grid-template-columns: 1fr; } }

/* ---------- Impacto no topo do case ---------- */
.cs-impact { list-style: none; display: grid; gap: 8px; margin: 0; }
.cs-impact li { position: relative; padding-left: 18px; font-size: 14px; line-height: 21px; font-weight: 600; color: #fff; }
.cs-impact li::before { content: "↗"; position: absolute; left: 0; color: var(--green); font-weight: 400; }
.cs-impact-wrap { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #0f0f12; }
.cs-impact-wrap .cs-label { line-height: 1.4; margin-bottom: 6px; }
.opt-kept { color: var(--green); }

/* Card/painel sem imagem: tratamento tipográfico em vez de placeholder */
.ph.ph-type { justify-content: flex-end; align-items: flex-start; padding: 8%; }
.ph.ph-type span { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 5vw, 72px); line-height: 1; letter-spacing: -0.02em; color: rgba(255,255,255,.92); max-width: 10ch; text-wrap: balance; }
.case-panel .ph.ph-type span { font-size: clamp(48px, 7vw, 110px); }
/* dois laptops lado a lado */
.dv-stage.dv-n2:not(:has(.dv-phone)) { gap: 4%; }
.dv-stage.dv-n2:not(:has(.dv-phone)) .dv-laptop { width: 48%; }

/* ---------- Antes e depois ---------- */
.cmp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px) clamp(16px, 2.4vw, 32px); margin-top: 8px; }
.cmp-item { margin: 0; display: grid; gap: 12px; align-content: start; min-width: 0; }
.cmp-label { margin: 0; font: 400 12px var(--mono); text-transform: uppercase; letter-spacing: .03em; color: rgb(0, 202, 97); }
.cmp-before .cmp-label { color: var(--muted); }
.cmp-stage { background: var(--surface); padding: clamp(16px, 2.4vw, 28px); display: flex; justify-content: center; }
.cmp-stage .dv-laptop { width: 100%; }
.cmp-note { margin: 0; font: 400 13px/1.55 var(--mono); color: var(--muted); }
.cmp-caption { margin: 8px auto 0; font: 400 12px/1.6 var(--mono); color: var(--muted); text-align: center; max-width: 70ch; }
@media (max-width: 760px) { .cmp-grid { grid-template-columns: 1fr; } }
.edu-more { margin-top: 16px; }
