:root {
  /* Família visual compartilhada com quantumds.tech */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f8fc;
  --surface-alt: #f4f8fc;
  --surface-cyan: #eef9fc;
  --surface-green: #eefbf5;

  --navy: #12346b;
  --navy-deep: #0e2a5a;
  --accent: #12346b;        /* alias histórico → azul-marinho */
  --accent-2: #0e2a5a;
  --accent-soft: #e6eef9;

  --text: #2b405c;
  --muted: #607086;
  --line: #dfe8f1;

  --cyan: #0ea9d0;
  --cyan-dark: #087f9b;
  --cyan-soft: #dff5fa;

  --green: #24c96b;
  --green-dark: #087a50;
  --green-soft: #e1f8ec;

  --grad: linear-gradient(90deg, var(--cyan) 0%, var(--green) 100%);
  --font-h: Montserrat, Inter, ui-sans-serif, system-ui, sans-serif;
  --max: 1180px;
  --radius: 12px;
  --shadow-soft: 0 1px 2px rgba(18, 52, 107, 0.04);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

/* ============================================================
   Header & navigation
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  flex: 0 1 auto;
  text-decoration: none;
  font-family: var(--font-h);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.15rem;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 150ms ease;
}

.nav-links a:hover { color: var(--cyan-dark); }

.nav-links a[aria-current="page"] {
  position: relative;
  color: var(--navy);
  font-weight: 600;
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent-2);
  cursor: pointer;
}

.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-toggle:focus-visible,
.subnav a:focus-visible,
.back-to-top:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--font-h);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 170ms ease, border-color 170ms ease, color 170ms ease;
}

.btn-primary {
  color: white;
  background: var(--accent);
  box-shadow: 0 4px 14px rgba(18, 52, 107, 0.14);
}

.btn-primary:hover { background: var(--accent-2); }


.btn-secondary {
  color: var(--navy);
  background: var(--surface);
  border-color: var(--line);
}

.btn-secondary:hover { border-color: var(--cyan); }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: clamp(4rem, 6vw, 5.5rem) 0 clamp(3.5rem, 5vw, 5rem);
  background: #ffffff;
}

.hero-grid > div:first-child > * + * { margin-top: 1.15rem; }
.hero h1 { margin: 0.6rem 0 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-h);
  color: var(--cyan-dark);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: var(--font-h);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-top: 0;
  color: var(--accent);
}

h1 {
  margin: 0.9rem 0 0.9rem;
  font-size: clamp(2.3rem, 4.5vw, 3.5rem);
  max-width: 900px;
}

.hero-subtitle {
  font-family: var(--font-h);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 1rem;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 820px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 2.2rem;
  margin: 1.9rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-proof li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.5;
}

.hero-proof li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--cyan);
}

.hero-proof li:nth-child(even)::before { background: var(--green); }

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

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.65rem;
}

.portrait-placeholder {
  position: relative;
  min-height: 380px;
  border-radius: 14px;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

/* halo muito suave de ciano/verde atrás da fotografia */
.portrait-placeholder::before {
  content: "";
  position: absolute;
  inset: -12% -14% -6% -10%;
  background:
    radial-gradient(60% 55% at 70% 25%, rgba(14, 169, 208, 0.13), rgba(255, 255, 255, 0) 70%),
    radial-gradient(55% 50% at 25% 85%, rgba(36, 201, 107, 0.12), rgba(255, 255, 255, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

/* filete fino em degradê sob a fotografia */
.portrait-placeholder::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -14px;
  height: 3px;
  border-radius: 2px;
  background: var(--grad);
  opacity: 0.9;
}

.portrait-placeholder img {
  position: relative;
  z-index: 1;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(18, 52, 107, 0.07);
}

.portrait-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.micro-links {
  margin-top: 1.6rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}

.micro-links a { text-underline-offset: 4px; color: var(--cyan-dark); }
.micro-links a:hover { color: var(--navy); }

/* ============================================================
   Sections
   ============================================================ */

section { padding: clamp(4.5rem, 7vw, 6.5rem) 0; }
.section-alt { background: var(--surface-alt); border-block: 0; }
.section-alt-green { background: var(--surface-green); border-block: 0; }
.lead, .section-head p, .card p, .credential-body p { max-width: 68ch; }

.section-head {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: start;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 0;
}

.section-head p {
  color: var(--muted);
  margin-top: 0.35rem;
  max-width: 760px;
}

.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 1.2rem;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem 1.4rem;
  box-shadow: none;
  transition: border-color 160ms ease;
}

.card:hover { border-color: #cddcec; }

.card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.card p, .card li { color: var(--muted); }

/* ponto colorido acima do título dos cards de conteúdo */
.grid-4 > .card {
  border: 0;
  background: transparent;
  padding: 1.2rem 1.2rem 1.2rem 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}
.grid-4 > .card:hover { border-color: var(--line); }

.grid-4 > .card > h3::before,
.grid-3 > .card:not(.explore-card) > h3::before {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 0.85rem;
  background: var(--cyan);
}
.grid-4 > .card:nth-child(2) > h3::before { background: var(--green); }
.grid-4 > .card:nth-child(3) > h3::before { background: var(--navy); }
.grid-4 > .card:nth-child(4) > h3::before { background: var(--grad); }

.metric {
  padding: 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  min-height: 175px;
}

.metric strong {
  display: block;
  color: var(--accent-2);
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.metric span { color: var(--muted); font-size: 0.95rem; }

/* ============================================================
   Credentials: stacked list (no carousel)
   ============================================================ */

.credentials-list {
  display: grid;
  gap: 1.25rem;
}

.credential-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 1.9rem;
  padding: 1.9rem 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.credentials-list { gap: 0; }
.credentials-list > .credential-item:first-child { border-top: 0; padding-top: 0.4rem; }

.credential-doc {
  display: block;
  align-self: start;
  padding: 0.6rem;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 170ms ease, color 170ms ease;
}

.credential-doc:hover { border-color: var(--cyan); }

.credential-doc:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.credential-doc img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: contain;
  object-position: center top;
  border-radius: 6px;
  background: #ffffff;
}

.doc-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

.credential-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.credential-eyebrow {
  color: var(--cyan-dark);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ciano para o que é acadêmico e quantitativo; verde para reconhecimentos e memberships */
.credential-eyebrow.is-recognition { color: var(--green-dark); }

.credential-year {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.credential-body h3 {
  margin: 0.7rem 0 0.25rem;
  font-size: 1.35rem;
  line-height: 1.25;
}

.credential-institution {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 600;
}

.credential-body p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.credential-note {
  padding-left: 0.95rem;
  border-left: 3px solid var(--cyan-soft);
  color: var(--muted);
  font-size: 0.95rem;
}

.credential-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0 0 0.95rem;
}

.score-chip {
  padding: 0 1rem 0 0;
  border-radius: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--navy);
  line-height: 1.2;
}

.credential-scores .score-chip:last-child { border-right: 0; }

.score-chip strong {
  display: block;
  font-size: 1.25rem;
  color: var(--navy);
}

.score-chip span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-dark);
}

.credential-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
}

.credential-highlights li {
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--surface-alt);
  border: 1px solid #e4edf6;
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 500;
}

.credential-highlights li:nth-child(3n + 2) { background: var(--cyan-soft); border-color: #cdeef6; color: var(--cyan-dark); }
.credential-highlights li:nth-child(3n + 3) { background: var(--green-soft); border-color: #cdf0de; color: var(--green-dark); }

.credential-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.credential-actions .btn {
  min-height: 40px;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

.additional-distinctions {
  margin-top: 1.5rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.additional-distinctions h3 {
  margin-bottom: 0.9rem;
  font-size: 1.1rem;
}

.distinction-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.distinction-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
}

.distinction-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}
.distinction-list li:nth-child(even)::before { background: var(--green); }

.education-subhead {
  margin: 2.6rem 0 1.2rem;
  font-size: 1.35rem;
}

/* ============================================================
   Timelines, details, publications, tags
   ============================================================ */

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1.2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item:last-child { border-bottom: 0; }
.timeline-item time {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
}

.timeline-item h3 { margin-bottom: 0.4rem; }
.timeline-item p { margin: 0; color: var(--muted); }

details {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
}

details + details { margin-top: 0.75rem; }

summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.2rem;
  color: var(--navy);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--cyan-dark); font-size: 1.3rem; }
details[open] summary::after { content: "−"; }

.details-body {
  padding: 0 1.2rem 1.2rem;
  color: var(--muted);
}

.doi-link {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--cyan-dark);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 1px solid var(--cyan-soft);
  transition: color 170ms ease, border-color 170ms ease;
}

.doi-link:hover { color: var(--green-dark); border-bottom-color: var(--green); }

.pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.05rem;
}

.pub-list li { border-color: var(--line);
  padding-bottom: 1.05rem;
  border-bottom: 1px solid var(--line);
}

.pub-list li:last-child { border-bottom: none; padding-bottom: 0; }

.pub-title {
  display: block;
  color: var(--text);
  font-weight: 600;
  line-height: 1.45;
}

.pub-meta {
  display: block;
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.pub-authors {
  display: block;
  font-size: 0.86rem;
  margin-top: 0.15rem;
}

.tag-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.tag {
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--surface-alt);
  border: 1px solid #e4edf6;
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.tag-list .tag:nth-child(3n + 2) { background: var(--cyan-soft); border-color: #cdeef6; color: var(--cyan-dark); }
.tag-list .tag:nth-child(3n + 3) { background: var(--green-soft); border-color: #cdf0de; color: var(--green-dark); }

.tag-list { gap: 0.35rem; margin-top: 0.9rem; }

/* ============================================================
   Projects & featured
   ============================================================ */

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.project-media {
  min-height: 250px;
  height: 250px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--surface-2);
  margin-bottom: 1rem;
  text-align: center;
  padding: 1rem;
  overflow: hidden;
}

.project-card .btn { margin-top: auto; align-self: flex-start; }

.featured-project {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.9rem;
  align-items: center;
  padding: 1.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.featured-shot {
  display: block;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  overflow: hidden;
  transition: border-color 170ms ease, color 170ms ease;
}

.featured-shot:hover { border-color: var(--accent); }

.featured-shot:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.featured-shot img { width: 100%; height: auto; display: block; }

.featured-project h3 {
  margin: 0.85rem 0 0.3rem;
  font-size: 1.4rem;
  line-height: 1.25;
}

.featured-source {
  display: block;
  margin-bottom: 0.85rem;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
}

.featured-project p { color: var(--muted); margin: 0 0 0.85rem; }

.featured-project .tag-list { margin-bottom: 1.2rem; }

@media (max-width: 920px) {
  .featured-project {
    grid-template-columns: 1fr;
    gap: 1.3rem;
    padding: 1.3rem;
  }
}

/* ============================================================
   Experience page
   ============================================================ */

/* Experience: clean vertical timeline */
.experience-stack{
  position:relative;
  display:grid;
  gap:2.6rem;
  padding-left:1.9rem;
  border-left:0;
}
.experience-stack::before{
  content:"";
  position:absolute;
  left:0;
  top:0.5rem;
  bottom:0.5rem;
  width:2px;
  border-radius:2px;
  background:linear-gradient(180deg, var(--cyan) 0%, var(--green) 100%);
  opacity:0.55;
}

.institution-group{
  position:relative;
  background:transparent;
  border:0;
  border-radius:0;
  overflow:visible;
}
.institution-group::before{
  content:"";
  position:absolute;
  left:calc(-1.9rem - 8px);
  top:0.35rem;
  width:12px;
  height:12px;
  border-radius:50%;
  background:var(--cyan);
  border:3px solid var(--bg);
}
.experience-stack > .institution-group:nth-child(even)::before{ background:var(--green); }
.institution-header{
  display:block;
  padding:0 0 0.4rem;
  background:transparent;
  border:0;
}
.institution-period{
  display:block;
  color:var(--accent);
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.institution-header h3{margin:.3rem 0 .15rem;font-size:1.3rem;color:var(--text)}

.institution-header p{margin:0;color:var(--muted);font-size:.95rem}

.role{padding:1.05rem 0 0}

.role+.role{border-top:1px solid var(--line);margin-top:1.05rem}

.role-heading{display:flex;align-items:baseline;justify-content:space-between;gap:1.25rem;margin-bottom:.35rem}

.role-heading h4{margin:0;font-size:1.06rem;line-height:1.3;color:var(--navy)}

.role-dates{flex:0 0 auto;color:var(--muted);font-size:.85rem;font-weight:600;text-align:right}
.role-summary{max-width:860px;margin:0;color:var(--muted);font-size:.95rem}
.role .tag-list{margin-top:.65rem}
.role .tag{font-size:.75rem;padding:.22rem .55rem}
.role-details{margin-top:.55rem}
.role-details details{background:transparent;border:0;border-radius:0}
.role-details summary{
  display:inline-flex;
  padding:.3rem 0;
  background:transparent;
  color:var(--accent);
  font-size:.9rem;
  font-weight:600;
  gap:.45rem;
}
.role-details summary:hover{color:var(--cyan-dark)}
.role-details .details-body{
  padding:.7rem 1.1rem .9rem;
  margin-top:.35rem;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:10px;
}
.highlight-grid{display:grid;gap:1rem}
.role-highlight{padding:1rem 0 0;border-top:1px solid var(--line)}
.role-highlight:first-child{padding-top:0;border-top:0}
.role-highlight h5{margin:0 0 .4rem;color:var(--navy);font-size:1rem}
.role-highlight p{margin:0;color:var(--muted)}
.role-highlight p+p{margin-top:.65rem}
.confidentiality-note{margin-top:.9rem;padding:.85rem 1rem;border-left:3px solid var(--green);background:var(--green-soft);color:var(--navy);border-radius:0;font-size:.88rem}

@media(max-width:760px){
  .institution-header{grid-template-columns:1fr;gap:.35rem}
  .role-heading{display:block}
  .role-dates{display:block;margin-top:.3rem;text-align:left}
}

.highlight {
  padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--cyan);
  background: var(--surface-cyan);
  border-radius: 0;
  color: var(--navy);
}

.two-column-copy {
  columns: 2 320px;
  column-gap: 2.2rem;
}

.two-column-copy p { break-inside: avoid; margin-top: 0; }

/* ============================================================
   Beyond work
   ============================================================ */

#beyond .grid-3 {
  align-items: stretch;
}

#beyond .card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

#beyond .project-media {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  padding: 0;
  margin-bottom: 1rem;
  overflow: hidden;
  border: none;
  border-radius: 10px;
  background: var(--navy-deep);
  display: block;
}

#beyond .project-media img,
#beyond .project-media video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  border-radius: inherit;
}

#beyond .karate-media img {
  object-position: 50% 72%;
}

#beyond .music-media video {
  object-position: center;
}

#beyond .books-media img {
  object-position: 58% 55%;
}

#beyond .card h3 {
  margin-top: 0;
}

#beyond .card p {
  margin-bottom: 0;
}

/* ============================================================
   Contact & footer
   ============================================================ */

.contact-box {
  padding: 2.4rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface-cyan) 0%, #f5fbff 52%, var(--surface-green) 100%);
  border: 1px solid var(--line);
  box-shadow: none;
  color: var(--navy);
}

.contact-box h2 { color: var(--navy); }
.contact-box p { color: #50647e; }

.contact-box .btn-primary { background: var(--navy); color: #ffffff; }
.contact-box .btn-primary:hover { background: var(--navy-deep); }

.contact-box .btn-secondary {
  background: #ffffff;
  color: var(--navy);
  border-color: var(--cyan);
}
.contact-box .btn-secondary:hover { background: var(--cyan-soft); border-color: var(--cyan-dark); }

.contact-box .micro-links a { color: var(--cyan-dark); }
.contact-box .micro-links a:hover { color: var(--green-dark); }

.availability-note {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid #d6e4f0;
  color: #50647e;
  font-size: 0.92rem;
}

.availability-note strong { color: var(--navy); }

footer {
  position: relative;
  padding: 2.8rem 0;
  background: #ffffff;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 140px;
  height: 2px;
  background: var(--grad);
}

footer strong { color: var(--navy); font-family: var(--font-h); }
.footer-links a { color: var(--cyan-dark); text-decoration: none; text-underline-offset: 4px; }
.footer-links a:hover { color: var(--green-dark); text-decoration: underline; }
footer a { color: var(--cyan-dark); }
footer a:hover { color: var(--green-dark); }

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 1rem;
}

.footer-links a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 4px;
}

.footer-links a:hover { text-decoration: underline; }

.small { font-size: 0.9rem; color: var(--muted); }

/* ============================================================
   Multi-page chrome: page heads, sub-navigation
   ============================================================ */

.page-hero {
  padding: 3.2rem 0 2.4rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.page-hero h1 {
  margin: 0.9rem 0 0.7rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-hero .lead { font-size: 1.05rem; }

.breadcrumb {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.subnav {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.subnav-inner {
  display: flex;
  gap: 0.4rem;
  padding: 0.6rem 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.subnav a {
  flex: 0 0 auto;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 170ms ease, border-color 170ms ease, color 170ms ease;
}

.subnav a:hover { background: var(--surface-2); color: var(--accent); }

.subnav a.is-active {
  background: var(--accent-soft);
  color: var(--accent-2);
}

.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 95;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent-2);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}

.back-to-top svg { width: 18px; height: 18px; }
.back-to-top:hover { border-color: var(--accent); color: var(--accent); }

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

section[id],
.institution-group[id] { scroll-margin-top: 96px; }

/* ============================================================
   Home: recognition, explore/start-here cards
   ============================================================ */

.recognition-card {
  display: flex;
  flex-direction: column;
}

.recognition-card .credential-eyebrow { color: var(--cyan-dark); align-self: flex-start; }

.recognition-card h3 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.15rem;
}

.recognition-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin-top: auto;
  padding-top: 1rem;
}

.explore-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-top: 1.7rem;
  background: #ffffff;
  overflow: hidden;
}

.explore-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cyan);
}

#explore .grid-3 > .explore-card:nth-child(2)::before { background: var(--grad); }
#explore .grid-3 > .explore-card:nth-child(3)::before { background: var(--green); }

.explore-card .credential-eyebrow { color: var(--cyan-dark); margin-bottom: 0.5rem; }

.explore-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.explore-card .recognition-links { margin-top: auto; padding-top: 1rem; }

.secondary-note {
  margin-top: 1.4rem;
  padding: 1.2rem 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.secondary-note h3 {
  margin-bottom: 0.2rem;
  font-size: 1.05rem;
}

.secondary-note .secondary-meta {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--cyan-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

.secondary-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ============================================================
   Impact stories
   ============================================================ */

.impact-story {
  margin-top: 3.4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}

.impact-story:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.story-head { max-width: 900px; }

.story-head h2 {
  margin: 0.85rem 0 0.55rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.story-lead {
  max-width: 880px;
  color: var(--text);
  font-size: 1.04rem;
  font-weight: 600;
}

.story-statement {
  margin: 1.5rem 0;
  padding: 1.1rem 1.4rem;
  border-left: 3px solid var(--cyan);
  border-radius: 0;
  background: var(--surface-cyan);
  color: var(--navy);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.45;
}

.story-statement span {
  display: block;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.97rem;
  font-weight: 500;
}

.story-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 1.7rem;
  align-items: start;
}

.story-body p { color: var(--muted); }
.story-body > div > p:first-child { margin-top: 0; }

.story-note {
  padding-left: 0.95rem;
  border-left: 3px solid var(--green-soft);
  font-size: 0.96rem;
}

.story-aside {
  padding: 1.35rem 0 1.35rem 1.35rem;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.story-aside h3 {
  margin-bottom: 0.7rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.story-aside + .story-aside { margin-top: 1rem; }

.link-list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list a {
  display: inline-block;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
}

.link-list a:hover { border-bottom-color: var(--accent); }
.link-list li span { display: block; color: var(--muted); font-size: 0.84rem; }

.story-figure {
  display: block;
  margin: 1.4rem 0 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  overflow: hidden;
  transition: border-color 170ms ease, color 170ms ease;
}

.story-figure:hover { border-color: var(--accent); }

.story-figure img { width: 100%; height: auto; display: block; }

.paper-figure { background: #ffffff; }

.paper-figure img {
  max-height: 460px;
  object-fit: contain;
  padding: 0.9rem;
}

.figure-caption {
  margin: 0.6rem 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

/* ============================================================
   Publications page
   ============================================================ */

.pub-badge {
  display: inline-flex;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.pub-badge.is-peer { background: var(--cyan-soft); color: var(--cyan-dark); font-weight: 600; }
.pub-badge.is-preprint { background: var(--surface-alt); color: var(--muted); font-weight: 600; }

.pub-row {
  display: grid;
  gap: 0.3rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.pub-row:last-child { border-bottom: 0; }
.pub-row .pub-title { color: var(--navy); font-weight: 600; line-height: 1.45; }
.pub-row .pub-meta { color: var(--cyan-dark); font-size: 0.9rem; }
.pub-row .pub-authors { color: var(--muted); font-size: 0.86rem; }

.pub-row-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.affiliation-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.affiliation-item {
  flex: 1 1 220px;
  padding: 0.9rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-weight: 600;
}

.affiliation-item span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 1rem 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }

  .nav-links.is-open { display: flex; }

  .nav-links a {
    padding: 0.8rem 0.25rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a[aria-current="page"] { color: var(--accent); }
  .nav-links a[aria-current="page"]::after { display: none; }
}

@media (max-width: 920px) {
  .hero-grid, .section-head { grid-template-columns: 1fr; }
  .portrait-placeholder { min-height: 280px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-body { grid-template-columns: 1fr; }

  .credential-item {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .credential-doc { max-width: 300px; }
  .credential-doc img { max-height: 220px; }
}

@media (max-width: 640px) {
  .hero { padding-top: 3.5rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.3rem; }
  section { padding: 3.5rem 0; }
  .hero-actions .btn { width: 100%; }
  .distinction-list { grid-template-columns: 1fr; }
  .credential-item { padding: 1.2rem; }
  .credential-body h3 { font-size: 1.25rem; }
  .story-statement { padding: 1.1rem 1.2rem; font-size: 1rem; }
  .impact-story { margin-top: 2.4rem; padding-top: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .story-figure:hover, .back-to-top { transition: none; }
}


/* ============================================================
   Movimento reduzido (item 16)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .back-to-top { transform: none; }
}


/* ============================================================
   Publicações: lista acadêmica (item 12)
   ============================================================ */
#selected .grid-2 > .card,
#mentoring .grid-2 > .card,
#academic-service .grid-2 > .card,
#affiliations .grid-2 > .card {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 1.35rem 1.4rem 1.35rem 0;
}

#selected .grid-2 > .card:hover,
#mentoring .grid-2 > .card:hover,
#academic-service .grid-2 > .card:hover,
#affiliations .grid-2 > .card:hover { border-color: var(--line); }

#selected .grid-2 > .card h3 { color: var(--navy); font-size: 1.05rem; }
#selected .grid-2 > .card p strong { color: var(--cyan-dark); font-weight: 600; }
.pub-list li { border-bottom: 1px solid var(--line); }
.pub-title { color: var(--navy); font-weight: 600; }
.pub-meta { color: var(--cyan-dark); }
.pub-authors { color: var(--muted); }
.pub-list a, .publication-link { color: var(--cyan-dark); }
.pub-list a:hover, .publication-link:hover { color: var(--green-dark); }
