/* Jocimar: the trust centerpiece. Dark grafite band, warm cream type. */
.sec-jocimar {
  --j-ink: var(--creme);
  --j-muted: rgba(251, 241, 230, .72);
  --j-line: rgba(251, 241, 230, .16);
  --j-accent: var(--caramelo-claro);
  position: relative;
  background: var(--grafite);
  color: var(--j-ink);
  padding: var(--section-y) 0;
  overflow: hidden;
  isolation: isolate;
}
/* soft warm glow behind the portrait */
.sec-jocimar::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(900px, 120vw);
  aspect-ratio: 1;
  left: -18%;
  top: -12%;
  background: radial-gradient(closest-side, rgba(185, 119, 58, .22), rgba(185, 119, 58, 0));
  pointer-events: none;
}

/* ---------- Intro: portrait + copy ---------- */
.jocimar-intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
}

.jocimar-portrait { margin: 0; position: relative; }
.jocimar-portrait-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--grafite-claro);
}
.jocimar-portrait-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease);
}
.jocimar-portrait:hover .jocimar-portrait-frame img { transform: scale(1.08); }

.jocimar-eyebrow { color: var(--j-accent); }
.jocimar-title {
  margin-top: 18px;
  font-size: var(--fs-h1);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--branco);
}
.jocimar-bio {
  margin-top: 28px;
  max-width: 56ch;
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--j-muted);
}

/* the copy column stretches to the photo's height; the quote fills what is left
   below the bio and sits centred in it */
.jocimar-copy { align-self: stretch; display: flex; flex-direction: column; }
.jocimar-quote {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 40px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--j-line);
  text-align: center;
}
.jocimar-quote-mark {
  width: 34px; height: 26px;
  color: var(--caramelo);
  margin-bottom: 14px;
}
.jocimar-quote-mark--close { margin: 14px 0 0; transform: rotate(180deg); }
.jocimar-quote p {
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--branco);
  max-width: 22ch;
}
.jocimar-quote footer {
  margin-top: 14px;
  font-size: var(--fs-small);
  color: var(--j-muted);
}
.jocimar-quote footer::before { content: "— "; }

/* the LinkedIn link drops to the bottom of the experience column, level with
   the last Senar publication on the right */
.jocimar-cv-col--exp { display: flex; flex-direction: column; }
.jocimar-linkedin.jocimar-cv-link { align-self: flex-start; margin-top: auto; min-height: 0; line-height: 1; background-position: 0 100%; }
/* when the columns stack, the link moves below Publicações instead */
.jocimar-cv-link--stacked { display: none !important; }

.jocimar-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 400;
  color: var(--j-ink);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 1px no-repeat;
  transition: background-size .35s var(--ease), color .25s var(--ease);
}
.jocimar-linkedin svg { width: 18px; height: 18px; flex: none; }
.jocimar-linkedin .jocimar-ext { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.jocimar-linkedin:hover { background-size: 100% 1px; color: var(--branco); }
.jocimar-linkedin:hover .jocimar-ext { transform: translate(2px, -2px); }

/* ---------- CV ---------- */
.jocimar-cv {
  margin-top: clamp(72px, 9vw, 128px);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
}
.jocimar-cv-side { display: grid; gap: clamp(48px, 5vw, 64px); align-content: start; }
/* group headings read as labels, so the items below them carry the weight */
.jocimar-cv-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--caramelo-claro);
  padding-bottom: 18px;
  border-bottom: 2px solid var(--caramelo);
}
.jocimar-cv-title::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--caramelo);
}
.jocimar-rows { list-style: none; margin: 0; padding: 0; }
.jocimar-rows li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--j-line);
  transition: padding-left .35s var(--ease);
}
.jocimar-rows li:hover { padding-left: 10px; }
.jocimar-row-label {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--j-muted);
}
.jocimar-row-name {
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--branco);
  overflow-wrap: anywhere;
}
.jocimar-row-name--sm { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.3; letter-spacing: -0.01em; }

/* Map of the countries Jocimar has worked in: full width, map beside the list */
.jocimar-map { margin-top: clamp(72px, 9vw, 128px); }
.jocimar-map-count {
  margin-left: auto;
  font-weight: 400;
  color: var(--j-muted);
}
.jocimar-map-body {
  margin-top: clamp(28px, 3vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.jocimar-map-img {
  display: block;
  width: 100%;
  height: auto;
  /* soften the clipped edges of the map */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent), linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent), linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
  mask-composite: intersect;
}
.jocimar-map-regions { display: grid; gap: 32px; }
.jocimar-map-region-name {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--j-line);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--branco);
}
.jocimar-map-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--j-muted);
}
.jocimar-map-list li { display: flex; align-items: baseline; gap: 10px; padding: 3px 0; break-inside: avoid; }
.jocimar-map-list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--caramelo);
  transform: translateY(-2px);
}
.jocimar-map-list--cols { columns: 2; column-gap: 24px; }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .jocimar-intro { grid-template-columns: 1fr; gap: 56px; }
  .jocimar-portrait { max-width: 520px; }
  .jocimar-cv { grid-template-columns: 1fr; }
  .jocimar-cv-link--side { display: none !important; }
  .jocimar-cv-link--stacked { display: inline-flex !important; margin-top: -16px; }
  .jocimar-map-body { grid-template-columns: 1fr; }
  .jocimar-map-regions { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .jocimar-portrait-frame { aspect-ratio: 1 / 1.08; }
  .jocimar-title { margin-top: 14px; }
  .jocimar-bio { margin-top: 22px; font-size: 17px; }
  .jocimar-quote { margin-top: 32px; }

  .jocimar-rows li { padding: 18px 0; }
  .jocimar-map-regions { grid-template-columns: 1fr; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .jocimar-portrait-frame img, .jocimar-rows li { transition: none; }
}

/* Section-level reveal: the whole section eases in once it enters view. */
.jocimar-js .jocimar-rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease) var(--jrd, 0s), transform .7s var(--ease) var(--jrd, 0s);
}
.jocimar-js.is-on .jocimar-rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .jocimar-js .jocimar-rv { opacity: 1; transform: none; transition: none; }
}
