:root {
  --ink: #26272b;
  --charcoal: #34363a;
  --charcoal-soft: #e5e5e2;
  --muted: #65666a;
  --paper: #faf9f6;
  --white: #ffffff;
  --grey: #eeeeeb;
  --line: #d9d9d5;
  --pink: #df537a;
  --pink-soft: #f8e1e8;
  --yellow: #f3cb43;
  --yellow-soft: #fff2bd;
  --page: min(1120px, calc(100% - 48px));
  --font: "Manrope", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration-color: var(--pink);
  text-underline-offset: 4px;
}

a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  background: var(--white);
  border: 1px solid var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

/* Home */

.home {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 14%, var(--yellow-soft) 0 8%, transparent 8.2%),
    radial-gradient(circle at 88% 82%, var(--pink-soft) 0 11%, transparent 11.2%),
    var(--paper);
}

.home::before,
.home::after {
  content: "";
  position: fixed;
  z-index: -1;
  border: 1px solid #b9b9b5;
  border-radius: 34px;
}

.home::before {
  top: 10%;
  right: 7%;
  width: 130px;
  aspect-ratio: 1;
  transform: rotate(17deg);
}

.home::after {
  bottom: 7%;
  left: 8%;
  width: 92px;
  aspect-ratio: 1;
  transform: rotate(-13deg);
}

.home-main {
  width: var(--page);
  min-height: 100vh;
  margin: 0 auto;
  padding: 60px 0;
  display: grid;
  place-items: center;
}

.home-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.portrait-wrap {
  position: relative;
  width: clamp(210px, 25vw, 300px);
  aspect-ratio: 1;
  margin-bottom: 30px;
}

.portrait-wrap::before {
  content: "";
  position: absolute;
  inset: -12px;
  border: 2px solid var(--yellow);
  border-radius: 50%;
}

.portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  border-radius: 50%;
  filter: saturate(.9);
}

.home h1 {
  margin: 0 0 38px;
  font-size: clamp(2.35rem, 5vw, 3.8rem);
  font-weight: 660;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.home-links {
  width: min(820px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.theme-button {
  min-height: 66px;
  padding: 14px 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.theme-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 rgba(38, 39, 43, .09);
}

.button-about { background: var(--charcoal); color: var(--white); }
.button-data { background: var(--pink); color: var(--white); }
.button-politics { background: var(--yellow); }

/* Interior pages */

.site-header {
  background: var(--charcoal);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: var(--page);
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.wordmark {
  color: var(--white);
  font-weight: 750;
  letter-spacing: -.02em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-about { background: var(--charcoal-soft); border: 1px solid var(--line); }
.nav-data { background: var(--pink-soft); }
.nav-politics { background: var(--yellow-soft); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--white); }

.page-main { overflow: hidden; }

.page-hero {
  position: relative;
  padding: clamp(68px, 8vw, 105px) 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -75px;
  bottom: -85px;
  width: 210px;
  aspect-ratio: 1;
  border: 28px solid var(--charcoal-soft);
  border-radius: 50%;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  width: var(--page);
  margin: 0 auto;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(55px, 10vw, 130px);
}

.about-photo {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: 4 / 5;
}

.about-photo::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 22px -22px -22px 22px;
  background: var(--yellow);
  border-radius: 36px;
  transform: rotate(2deg);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 36px;
}

.kicker {
  margin: 0 0 18px;
  color: var(--pink);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.page-hero .kicker {
  width: fit-content;
  padding: 5px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--charcoal);
  font-size: .8rem;
  font-weight: 750;
}

.page-hero .kicker-about { background: var(--charcoal-soft); border-color: var(--line); }
.page-hero .kicker-data { background: var(--pink-soft); border-color: #efc7d2; }
.page-hero .kicker-politics { background: var(--yellow-soft); border-color: #e5d58e; }

.page-title {
  max-width: 820px;
  margin: 0 0 22px;
  font-size: clamp(2.25rem, 4.4vw, 4rem);
  font-weight: 660;
  line-height: 1.08;
  letter-spacing: -.04em;
}

.lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.6;
}

.content-section {
  padding: clamp(68px, 8vw, 100px) 0;
}

.content-section:nth-child(odd) { background: var(--grey); }

.section-inner { width: var(--page); margin: 0 auto; }

.section-heading {
  margin-bottom: 36px;
}

.section-heading h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 660;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.bio-copy {
  max-width: 800px;
  font-size: 1.08rem;
}

.bio-copy p { margin: 0 0 1.35em; }

.profile-body .bio-copy { max-width: 920px; }

.profile-story {
  display: grid;
  gap: 28px;
}

.profile-point {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.profile-point p { margin: 0; }

.profile-icon {
  width: 48px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--yellow-soft);
  border: 1px solid #e5d58e;
  border-radius: 50%;
  color: var(--charcoal);
  transition: transform .2s ease;
}

.profile-point:nth-child(3n + 2) .profile-icon {
  background: var(--pink-soft);
  border-color: #ebbdca;
}

.profile-point:nth-child(3n) .profile-icon {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
}

.profile-point:hover .profile-icon { transform: translateY(-3px) rotate(-3deg); }

.profile-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language-section {
  padding: clamp(48px, 6vw, 72px) 0;
  background: var(--grey);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.language-showcase {
  width: 100%;
  max-width: none;
}

.language-title {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.language-stack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.language-card {
  min-height: 62px;
  padding: 9px 15px 9px 9px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: transform .2s ease, border-color .2s ease;
}

.language-card:hover {
  transform: translateY(-3px);
  border-color: #b9bab7;
}

.language-code {
  width: 44px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--charcoal);
  border-radius: 50%;
  color: var(--white);
  font-size: .62rem;
  font-weight: 750;
  letter-spacing: .04em;
}

.language-card:nth-child(2) .language-code { background: var(--pink); }
.language-card:nth-child(3) .language-code { background: var(--yellow); color: var(--ink); }
.language-card:nth-child(4) .language-code { background: #74767a; }

.language-details {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.language-details strong { font-size: .72rem; }

.language-details small {
  color: var(--muted);
  font-size: .6rem;
  font-weight: 450;
}

.language-dots {
  display: flex;
  gap: 4px;
}

.language-dot {
  width: 7px;
  aspect-ratio: 1;
  border: 1px solid #b9bab7;
  border-radius: 50%;
}

.language-dot.is-filled {
  background: var(--charcoal);
  border-color: var(--charcoal);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(480px, 1.2fr);
  align-items: center;
  gap: clamp(50px, 8vw, 100px);
}

.contact-intro { max-width: 520px; }

.contact-intro h2 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 660;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.contact-intro > p:last-child {
  margin: 0;
  color: var(--muted);
}

.contact-bubbles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 14px;
}

.contact-bubble {
  width: 100%;
  max-width: 190px;
  aspect-ratio: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  justify-self: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.contact-bubble:hover {
  transform: translateY(-5px) rotate(-2deg);
  box-shadow: 0 10px 0 rgba(38, 39, 43, .1);
}

.contact-bubble:nth-child(even):hover { transform: translateY(-5px) rotate(2deg); }

.contact-icon {
  position: relative;
  width: 58px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(38, 39, 43, .14);
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(38, 39, 43, .1);
  color: var(--charcoal);
}

.contact-icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px dashed currentColor;
  border-radius: 50%;
  opacity: .42;
  transition: transform .35s ease;
}

.contact-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-bubble:hover .contact-icon::after {
  transform: rotate(35deg) scale(1.05);
}

.contact-icon-linkedin {
  color: #0a66c2;
}

.contact-icon-linkedin svg { fill: currentColor; stroke: none; }

.contact-icon-whatsapp { color: #25a866; }
.contact-icon-whatsapp .whatsapp-mark { fill: currentColor; stroke: none; }
.contact-icon-whatsapp .whatsapp-phone { fill: none; stroke: var(--white); stroke-width: 1.45; }
.contact-icon-whatsapp::after { border-color: #16865f; }
.contact-email .contact-icon { color: #b83f63; }

.contact-whatsapp { background: var(--yellow-soft); }
.contact-email { background: var(--pink-soft); }
.contact-linkedin { background: var(--charcoal); color: var(--white); }

.interest-list,
.detail-grid,
.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.interest,
.detail-card,
.experience-card {
  position: relative;
  min-height: 240px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.interest::before,
.detail-card::before,
.experience-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  width: 48px;
  height: 5px;
  background: var(--yellow);
  border-radius: 0 0 999px 999px;
}

.interest:nth-child(even)::before,
.detail-card:nth-child(even)::before,
.experience-card:nth-child(even)::before { background: var(--pink); }

.interest:nth-child(3n)::before,
.detail-card:nth-child(3n)::before,
.experience-card:nth-child(3n)::before { background: var(--charcoal); }

.interest h3,
.detail-card h3,
.experience-card h3 {
  margin: 12px 0 16px;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.interest p,
.detail-card p,
.experience-card p { margin: 0; color: var(--muted); }

.card-label {
  color: var(--pink);
  font-size: .7rem;
  font-weight: 700;
}

.career-route {
  position: relative;
  padding-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.career-route::before {
  content: "";
  position: absolute;
  top: 13px;
  right: 7%;
  left: 7%;
  border-top: 2px dashed #aaaba8;
}

.career-stop {
  position: relative;
  min-height: 230px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.career-stop::before {
  content: "";
  position: absolute;
  top: -43px;
  left: 25px;
  width: 18px;
  aspect-ratio: 1;
  background: var(--yellow);
  border: 4px solid var(--grey);
  border-radius: 50%;
}

.career-stop:nth-child(2)::before { background: var(--pink); }
.career-stop:nth-child(3)::before { background: var(--charcoal); }

.career-stop h3,
.foundation-card h3 {
  margin: 12px 0 14px;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.career-stop p,
.foundation-card p { margin: 0; color: var(--muted); }

.foundation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.foundation-card {
  min-height: 225px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.foundation-toolkit { background: var(--charcoal-soft); }

.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tool-list span {
  padding: 6px 9px;
  background: var(--white);
  border: 1px solid #c9cac7;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 650;
}

.timeline {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 12px 0 12px 68px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 2px;
  width: 58px;
  background:
    radial-gradient(circle 10px at 40% 10%, var(--pink) 0 6px, var(--paper) 6.5px 10px, transparent 10.5px),
    radial-gradient(circle 10px at 64% 30%, var(--yellow) 0 6px, var(--paper) 6.5px 10px, transparent 10.5px),
    radial-gradient(circle 10px at 31% 50%, var(--charcoal) 0 6px, var(--paper) 6.5px 10px, transparent 10.5px),
    radial-gradient(circle 10px at 70% 70%, var(--pink) 0 6px, var(--paper) 6.5px 10px, transparent 10.5px),
    radial-gradient(circle 10px at 45% 90%, var(--yellow) 0 6px, var(--paper) 6.5px 10px, transparent 10.5px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 520' preserveAspectRatio='none'%3E%3Cpath d='M17 0 C17 72 43 80 43 135 S15 205 18 266 S45 329 40 390 S20 455 27 520' fill='none' stroke='%2334363a' stroke-width='3' stroke-linecap='round' stroke-dasharray='2 10'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: .78;
  pointer-events: none;
}

.timeline-item {
  position: relative;
  padding: 30px 34px;
  display: grid;
  grid-template-columns: minmax(210px, .55fr) minmax(0, 1.45fr);
  gap: 44px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.timeline-item h3 { margin: 5px 0 0; font-size: 1.35rem; line-height: 1.2; }
.timeline-item p { margin: 0; color: var(--muted); }

.politics-photo-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.politics-photo {
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.politics-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9);
  transition: transform .35s ease;
}

.politics-photo:hover img { transform: scale(1.025); }

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.article-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 0 rgba(38, 39, 43, .1);
}

.article-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--charcoal-soft);
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-photo-credit {
  position: absolute;
  right: 9px;
  bottom: 8px;
  padding: 3px 6px;
  background: rgba(38, 39, 43, .78);
  border-radius: 999px;
  color: var(--white);
  font-size: .48rem;
  line-height: 1.2;
}

.article-card-content {
  min-height: 190px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.article-card-content strong {
  margin-top: 12px;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.article-cta {
  margin-top: auto;
  padding-top: 24px;
  font-size: .7rem;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-underline-offset: 4px;
}

.page-footer {
  padding: 26px 0;
  background: var(--charcoal);
  border-top: 1px solid var(--charcoal);
}

.footer-inner {
  width: var(--page);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #d5d5d2;
  font-size: .7rem;
}

.footer-inner p { margin: 0; }

@media (max-width: 850px) {
  .about-layout,
  .contact-inner { grid-template-columns: 1fr; }

  .about-photo { width: min(80%, 390px); }
  .language-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-intro { max-width: 680px; }
  .contact-bubbles { width: min(100%, 620px); }
  .interest-list, .detail-grid, .experience-grid, .foundation-grid { grid-template-columns: 1fr; }
  .career-route { grid-template-columns: 1fr; gap: 16px; padding: 0 0 0 38px; }
  .career-route::before { top: 18px; bottom: 18px; left: 9px; right: auto; border-top: 0; border-left: 2px dashed #aaaba8; }
  .career-stop { min-height: 0; }
  .career-stop::before { top: 25px; left: -39px; }
  .politics-photo-grid { grid-template-columns: 1fr; }
  .interest, .detail-card, .experience-card { min-height: 0; }
}

@media (max-width: 640px) {
  :root { --page: min(calc(100% - 28px), 1120px); }
  body { font-size: 16px; }
  .home-main { padding: 45px 0; }
  .portrait-wrap { width: 200px; }
  .home h1 { margin-bottom: 30px; font-size: 2.45rem; }
  .home-links { gap: 7px; }
  .theme-button { min-height: 58px; padding: 10px 7px; font-size: .7rem; }
  .nav {
    min-height: 72px;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 12px 0;
  }
  .wordmark { font-size: .9rem; }
  .nav-links { justify-content: center; flex-wrap: wrap; gap: 4px; }
  .nav-links a { padding: 7px 8px; font-size: .62rem; }
  .about-photo { width: min(88%, 360px); }
  .about-photo::before { inset: 15px -15px -15px 15px; }
  .profile-story { gap: 24px; }
  .profile-point { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .profile-icon { width: 40px; }
  .profile-icon svg { width: 21px; height: 21px; }
  .language-stack { grid-template-columns: 1fr; max-width: 440px; }
  .contact-inner { gap: 36px; }
  .contact-bubbles { gap: 7px; }
  .contact-bubble { padding: 10px; font-size: .68rem; }
  .contact-icon { width: 43px; }
  .contact-icon::after { inset: -4px; }
  .contact-icon svg { width: 23px; height: 23px; }
  .timeline { padding-left: 43px; }
  .timeline::before { width: 36px; }
  .timeline-item { grid-template-columns: 1fr; gap: 18px; padding: 26px; }
  .article-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .theme-button,
  .contact-bubble,
  .contact-icon::after,
  .language-card,
  .profile-icon,
  .article-card,
  .politics-photo img { transition: none; }
}
