:root {
  --ink: #14233d;
  --navy: #1f3864;
  --blue: #2e75b6;
  --sky: #dcebfa;
  --paper: #ffffff;
  --mist: #f5f7fa;
  --line: #d9e2ee;
  --muted: #5d6878;
  --gold: #d8aa55;
  --shadow: 0 24px 70px rgba(16, 42, 76, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 4%, rgba(46,117,182,.11), transparent 26rem),
    var(--mist);
  font-family: Inter, Aptos, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245,247,250,.92);
  border-bottom: 1px solid rgba(31,56,100,.12);
  backdrop-filter: blur(16px);
}
.header-inner {
  max-width: 1180px;
  min-height: 74px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--navy);
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  font: 800 17px/1 Georgia, serif;
  box-shadow: 0 8px 20px rgba(31,56,100,.22);
}
.brand-copy strong { display: block; font: 700 .94rem/1.15 Georgia, serif; }
.brand-copy span { display: block; color: var(--muted); font-size: .73rem; letter-spacing: .04em; }
.site-nav { display: flex; align-items: center; gap: 3px; }
.site-nav a {
  padding: 9px 10px;
  border-radius: 9px;
  color: #394960;
  font-size: .82rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--navy); background: white; box-shadow: 0 4px 16px rgba(31,56,100,.08); }
.menu-toggle {
  display: none;
  border: 0;
  padding: 9px 12px;
  border-radius: 9px;
  color: white;
  background: var(--navy);
  font: inherit;
  font-weight: 700;
}

.hero, .header {
  position: relative;
  overflow: hidden;
  padding: 76px 24px 68px;
  text-align: left;
  color: white;
  background:
    linear-gradient(105deg, rgba(18,40,75,.98) 0%, rgba(31,56,100,.97) 58%, rgba(46,117,182,.91) 100%);
}
.hero::after, .header::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -180px;
  top: -220px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(255,255,255,.025), 0 0 0 96px rgba(255,255,255,.018);
}
.hero > *, .header > * { position: relative; z-index: 1; }
.hero h1 {
  max-width: 1060px;
  margin: 0 auto 12px;
  font: 700 clamp(2.2rem, 5vw, 4.6rem)/1.04 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
}
.hero h2 {
  max-width: 1060px;
  margin: 0 auto 6px;
  color: #e6f2ff;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 500;
}
.hero .subtitle { max-width: 1060px; margin: 0 auto; color: #bcd7f4; }
.header { min-height: 260px; display: flex; flex-direction: column; justify-content: center; }
.header h1 { max-width: 1060px; margin: 0 auto 10px; font: 700 clamp(2.05rem, 5vw, 4rem)/1.05 Georgia, serif; letter-spacing: -.03em; }
.header p { max-width: 760px; margin: 0 auto; color: #cfe2f5; font-size: 1.03rem; }

.home-hero { padding: 76px 24px 54px; }
.hero-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  align-items: center;
  gap: 58px;
}
.eyebrow {
  margin: 0 0 18px;
  color: #9fd0ff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.home-hero h1 { margin: 0 0 22px; }
.positioning {
  margin: 0 0 18px;
  color: #e5f1ff;
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  font-weight: 650;
}
.hero-intro { max-width: 710px; margin: 0 0 30px; color: #d8e7f6; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button-primary, .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 19px;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
}
.button-primary { color: var(--navy); background: white; }
.button-secondary { color: white; border: 1px solid rgba(255,255,255,.42); background: rgba(255,255,255,.06); }
.portrait-frame {
  position: relative;
  max-width: 360px;
  margin-left: auto;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 180px 180px 22px 22px;
  background: rgba(255,255,255,.08);
}
.portrait-frame::before {
  content: "";
  position: absolute;
  left: -23px;
  bottom: 30px;
  width: 54px;
  height: 7px;
  border-radius: 10px;
  background: var(--gold);
}
.portrait-frame img { width: 100%; height: auto; aspect-ratio: .78; display: block; object-fit: cover; object-position: center 18%; border-radius: 168px 168px 14px 14px; }
.hero-quote { max-width: 1180px; margin: 44px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); color: #d8e7f6; font: italic 1rem/1.5 Georgia, serif; }

.container { max-width: 1120px; margin: 0 auto; padding: 58px 24px; }
.section {
  margin: 0 0 28px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(31,56,100,.10);
  border-radius: 18px;
  background: rgba(255,255,255,.93);
  box-shadow: var(--shadow);
}
.section h3 {
  margin: 0 0 22px;
  padding: 0 0 13px;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  font: 700 clamp(1.4rem, 3vw, 2rem)/1.18 Georgia, serif;
}
.section h3::after { content: ""; display: block; width: 54px; height: 3px; margin-top: 12px; background: var(--gold); border-radius: 3px; }
.section h4 { color: var(--navy); }
.section p { color: #3f4a59; line-height: 1.75; }
.section-lead { max-width: 790px; color: var(--muted); font-size: 1.08rem; }
.story-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 34px; align-items: start; }
.story-kicker { color: var(--blue); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .76rem; }
.story-title { margin: 9px 0 0; color: var(--navy); font: 700 2.05rem/1.15 Georgia, serif; }

.stats, .metrics-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0 0; }
.stat-card {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border-radius: 14px;
  color: white;
  text-align: left;
  background: linear-gradient(145deg, var(--navy), #294e83);
  box-shadow: none;
}
.stat-card:nth-child(even) { color: var(--navy); background: var(--sky); }
.stat-card .number { font: 700 2.8rem/1 Georgia, serif; letter-spacing: -.04em; }
.stat-card .label { margin-top: 10px; font-size: .88rem; line-height: 1.35; opacity: .92; }

.areas, .nav-pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.area-card, .nav-card {
  position: relative;
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: white;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.area-card:hover, .nav-card:hover { transform: translateY(-3px); border-color: #a9c9e8; box-shadow: 0 14px 34px rgba(31,56,100,.10); }
.area-card h4 { margin: 0 0 9px; color: var(--navy); font: 700 1.08rem/1.3 Georgia, serif; }
.area-card p { margin: 0; font-size: .94rem; }
.nav-card { min-height: 145px; display: flex; flex-direction: column; justify-content: flex-end; text-align: left; text-decoration: none; font-weight: 750; }
.nav-card:hover { color: var(--navy); background: white; }
.nav-card .icon { margin: 0 0 auto; font-size: 1.55rem; }
.nav-card small { margin-top: 5px; color: var(--muted); font-weight: 500; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.link-btn { padding: 10px 16px; border: 1px solid #b8d0e8; border-radius: 999px; color: var(--navy); background: #eef6fd; font-size: .9rem; font-weight: 750; text-decoration: none; }
.link-btn:hover { color: white; background: var(--navy); }

.summary-bar { margin: -28px auto 42px; padding: 0 24px; max-width: 1120px; position: relative; z-index: 2; }
.summary-inner { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: white; box-shadow: var(--shadow); }
.summary-item { padding: 20px; border-right: 1px solid var(--line); }
.summary-item:last-child { border-right: 0; }
.summary-item strong { display: block; color: var(--navy); font: 700 1.65rem/1 Georgia, serif; }
.summary-item span { display: block; margin-top: 7px; color: var(--muted); font-size: .78rem; line-height: 1.35; }

.thesis-item, .project-item, .event-card, .publication-card, .cert-card, .thesis-card {
  border: 1px solid var(--line) !important;
  border-left: 4px solid var(--blue) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: none !important;
}
.item { margin-bottom: 14px; padding: 18px 20px; border-left: 4px solid var(--blue); border-radius: 0 12px 12px 0; background: #f8fafc; }
.item h4 { margin: 4px 0 8px; color: var(--navy); }
.thesis-item:hover, .project-item:hover, .event-card:hover, .publication-card:hover, .cert-card:hover, .thesis-card:hover { border-left-color: var(--gold) !important; }
.date-group, .year-section { border-radius: 15px !important; background: #f7f9fc !important; border: 1px solid var(--line) !important; }
.date-header, .year-header { color: white !important; background: var(--navy) !important; }
.badge, .status, .acta { border-radius: 999px !important; }

.managed-activities-section { padding-top: 8px; }
.managed-activities-kicker {
  margin: 0 0 8px !important;
  color: var(--blue) !important;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.managed-activities-list { display: grid; gap: 12px; }
.managed-activity {
  overflow: hidden;
  border: 1px solid #c9d9ec;
  border-radius: 12px;
  background: white;
}
.managed-activity summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 15px 18px;
  color: var(--navy);
  background: #e8f0fe;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
  list-style: none;
}
.managed-activity summary::-webkit-details-marker { display: none; }
.managed-activity summary:hover { background: #dce9fa; }
.managed-activity summary:focus-visible { outline: 3px solid rgba(46,117,182,.35); outline-offset: -3px; }
.managed-activity-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--navy);
  font-size: 1.15rem;
  transition: transform .2s ease;
}
.managed-activity[open] .managed-activity-icon { transform: rotate(45deg); }
.managed-activity-body { padding: 18px; border-top: 1px solid #c9d9ec; }
.managed-activity-date { margin: 0 0 8px !important; color: var(--blue) !important; font-weight: 750; }
.managed-activity-content { margin: 0 !important; white-space: pre-wrap; }

footer {
  margin: 0;
  padding: 42px 24px;
  color: #dbe9f7;
  text-align: center;
  background: #122844;
}
footer p { margin: 6px 0; }
footer a { color: #a8d5ff; }
.footer-note { max-width: 700px; margin: 10px auto 0; color: #afc2d7; font-size: .84rem; }

.whatsapp-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 17px;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 999px;
  color: white;
  background: #178c4d;
  box-shadow: 0 14px 34px rgba(16,49,35,.28);
  font-size: .92rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.whatsapp-button:hover { color: white; background: #117641; transform: translateY(-2px); box-shadow: 0 18px 40px rgba(16,49,35,.34); }
.whatsapp-button svg { width: 25px; height: 25px; flex: 0 0 auto; }

.reveal { opacity: 0; transform: translateY(12px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; } }

@media (max-width: 1040px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 65px; left: 18px; right: 18px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 13px; }
  .hero-grid { grid-template-columns: 1fr .55fr; gap: 34px; }
  .areas, .nav-pages { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .header-inner { min-height: 66px; padding: 0 16px; }
  .brand-copy span { display: none; }
  .hero, .home-hero { padding: 58px 20px 48px; }
  .hero-grid { grid-template-columns: 1fr; }
  .portrait-frame { max-width: 280px; margin: 8px auto 0 0; }
  .hero-quote { margin-top: 30px; }
  .container { padding: 34px 16px; }
  .section { padding: 25px 20px; border-radius: 14px; }
  .stats, .metrics-strip, .areas, .nav-pages, .summary-inner, .story-grid { grid-template-columns: 1fr; }
  .summary-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .summary-item:last-child { border-bottom: 0; }
  .stat-card { min-height: 120px; }
  .whatsapp-button { right: 14px; bottom: 14px; width: 54px; height: 54px; padding: 0; justify-content: center; }
  .whatsapp-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
}
