@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Montserrat:wght@600;700;800&display=swap");

:root {
  --jade-950: #063f3a;
  --jade-800: #0f645b;
  --jade-700: #15766b;
  --jade-200: #a8ddd2;
  --jade-75: #e9f5f2;
  --navy: #0b2635;
  --ink: #142421;
  --muted: #52635f;
  --line: #cad8d4;
  --paper: #ffffff;
  --canvas: #f2f6f4;
  --amber: #c98619;
  --font-body: "Manrope", "Segoe UI", Arial, sans-serif;
  --font-display: "Montserrat", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; }
.page-width,
.header-inner { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

/* The institutional header keeps the same structure on every route. */
.site-header { position: sticky; top: 0; z-index: 30; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-header .brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.site-header .brand-mark { width: 46px; height: 46px; display: grid; place-items: center; }
.site-header .brand-copy { display: grid; gap: 1px; line-height: 1.2; }
.site-header .brand-copy strong { font-size: 17px; }
.site-header .brand-copy span { font-size: 13px; }
.site-header .site-nav { display: flex; align-items: center; gap: 4px; }
.site-header .site-nav a { font-weight: 700; text-decoration: none; }
.site-header .site-nav a,
.site-header .site-nav > .nav-more > summary,
.site-header .site-nav .nav-menu a { font-size: 16px; }
.site-header .mobile-nav { display: none; }

/* The institutional hero pairs Puno's urban landscape with a cathedral detail. */
.page-hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}
.page-hero::before {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 auto;
  width: 36%;
  content: "";
  background: url("assets/hero-plaza-armas-puno-v2.webp") center 46% / cover no-repeat;
}
.page-hero::after {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 64%;
  width: 5px;
  content: "";
  background: var(--jade-200);
}
.page-hero .hero-grid {
  position: relative;
  z-index: 1;
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(0, 670px) 1fr;
  column-gap: 70px;
  align-items: center;
}
.page-hero .hero-copy { grid-column: 1; grid-row: 1; padding: 70px 0; }
.eyebrow,
.section-heading > span,
.feature-number,
.meta-label,
.legal-number {
  color: var(--jade-700);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  text-transform: none;
}
body .eyebrow,
body .meta-label { font-size: 16px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.eyebrow::before { width: 5px; height: 26px; background: currentColor; content: ""; }
.page-hero .eyebrow { color: var(--jade-200); }
.page-hero h1 {
  max-width: 15ch;
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 800;
  line-height: 1.07;
  text-wrap: balance;
}
.page-hero .hero-copy p {
  max-width: 62ch;
  margin: 24px 0 0;
  color: #e0efec;
  font-size: 19px;
  line-height: 1.65;
}
.page-hero .hero-aside {
  position: relative;
  z-index: 2;
  display: block;
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  justify-self: start;
  width: 210px;
  min-height: 0;
  aspect-ratio: 1;
  margin: 0 0 34px 28px;
  border: 5px solid #fff;
  border-radius: 6px;
  background: #c88e51 url("assets/hero-catedral-torre-puno.webp") center 30% / cover no-repeat;
  box-shadow: 0 16px 32px rgba(5, 31, 37, .24);
}

.section { padding: 88px 0; border-bottom: 1px solid var(--line); background: var(--paper); }
.section.is-canvas,
.section.is-soft { background: var(--canvas); }
.section-heading {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  margin-bottom: 48px;
}
.section-heading > span { padding-top: 8px; }
.section-heading h2 {
  max-width: 22ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}
.section-heading p {
  max-width: 68ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

/* About page: long-form institutional reading with one documentary image. */
.about-overview {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(480px, 1.18fr);
  gap: 64px;
  align-items: start;
}
.about-prose {
  padding-top: 26px;
  border-top: 3px solid var(--ink);
}
.about-prose p {
  max-width: 64ch;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}
.about-prose p + p { margin-top: 24px; }
.about-prose strong,
.origin-story strong { color: var(--ink); font-weight: 700; }
.about-photo { margin: 0; }
.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  background: #dfe9e6;
}
.about-photo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.about-photo figcaption strong { color: var(--ink); font-size: 16px; }
.about-photo figcaption span { text-align: right; }

.origin-story { border-top: 3px solid var(--ink); }
.origin-entry {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.origin-entry > span {
  color: var(--jade-700);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
.origin-entry p {
  max-width: 74ch;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}
.origin-entry p + p { margin-top: 20px; }
.origin-entry-lead p:first-child { color: var(--ink); font-size: 20px; }
.origin-conclusion {
  max-width: 850px;
  margin: 46px 0 0 220px;
  padding: 8px 0 8px 32px;
  border-left: 5px solid var(--jade-700);
}
.origin-conclusion p {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.65;
}

/* About: a readable ledger, not a row of repeated cards. */
.feature-grid { border-top: 3px solid var(--ink); }
.feature {
  display: grid;
  grid-template-columns: 190px minmax(250px, .8fr) minmax(320px, 1fr);
  gap: 34px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.feature h3 { margin: 0; font-family: var(--font-display); font-size: 24px; line-height: 1.3; }
.feature p { max-width: 58ch; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }

.page-links { border-top: 3px solid var(--ink); }
.page-link {
  min-height: 92px;
  display: grid;
  grid-template-columns: 190px 1fr 44px;
  gap: 30px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease;
}
.page-link span { color: var(--jade-700); font-size: 16px; font-weight: 700; }
.page-link strong { font-family: var(--font-display); font-size: 22px; line-height: 1.35; }
.page-link::after { content: "→"; color: var(--jade-700); font-size: 28px; text-align: right; }
.page-link:hover,
.page-link:focus-visible { color: var(--jade-800); background: var(--jade-75); }

/* Mission and vision are presented as two institutional statements. */
.statement-pair { border-top: 3px solid var(--ink); }
.statement {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}
.statement > strong { color: var(--jade-800); font-family: var(--font-display); font-size: 22px; }
.statement h3 { max-width: 24ch; margin: 0 0 14px; font-family: var(--font-display); font-size: 32px; line-height: 1.2; }
.statement p { max-width: 66ch; margin: 0; color: var(--muted); font-size: 19px; line-height: 1.7; }
.principles { border-top: 3px solid var(--ink); }
.principle {
  display: grid;
  grid-template-columns: 70px 260px 1fr;
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.principle h3 { margin: 0; font-family: var(--font-display); font-size: 23px; line-height: 1.3; }
.principle p { max-width: 58ch; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }

/* Methodology: one continuous academic workflow. */
.process-list { position: relative; border-top: 3px solid var(--ink); }
.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 72px 260px 1fr;
  gap: 30px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.process-step > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 2px solid var(--jade-700);
  border-radius: 50%;
  color: var(--jade-800);
  background: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
}
.process-step strong { font-family: var(--font-display); font-size: 23px; line-height: 1.35; }
.process-step p { max-width: 62ch; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.commitment-list { border-top: 3px solid var(--ink); }
.commitment {
  display: grid;
  grid-template-columns: 180px 310px 1fr;
  gap: 30px;
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
}
.commitment > strong { color: var(--jade-800); font-size: 17px; }
.commitment h3 { margin: 0; font-family: var(--font-display); font-size: 22px; line-height: 1.35; }
.commitment p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }

/* Research: a catalogue with visual markers, not icon cards. */
.line-list { border-top: 3px solid var(--ink); }
.research-line {
  display: grid;
  grid-template-columns: 72px 70px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.research-line::before { color: var(--jade-800); font-family: var(--font-display); font-size: 20px; font-weight: 800; }
.research-line:nth-child(1)::before { content: "01"; }
.research-line:nth-child(2)::before { content: "02"; }
.research-line:nth-child(3)::before { content: "03"; }
.research-line:nth-child(4)::before { content: "04"; }
.research-line:nth-child(5)::before { content: "05"; }
.research-line:nth-child(6)::before { content: "06"; }
.line-icon { width: 50px; height: 50px; display: grid; place-items: center; color: var(--jade-700); }
.line-icon svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.research-line h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 24px; line-height: 1.3; }
.research-line p { max-width: 66ch; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }

/* Organization: institutional roles first, compact people directory second. */
.org-structure { border-top: 3px solid var(--ink); }
.org-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 260px;
  gap: 34px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.org-role { display: grid; gap: 8px; }
.org-role strong { font-family: var(--font-display); font-size: 22px; line-height: 1.35; }
.org-role span,
.org-status { color: var(--muted); font-size: 16px; line-height: 1.65; }
.org-status { padding-left: 20px; border-left: 4px solid var(--line); }
.org-status.is-confirmed { border-color: var(--jade-700); color: var(--jade-800); font-weight: 700; }
.people-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 3px solid var(--ink); }
.person {
  min-height: 170px;
  margin: 0;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 20px;
  padding: 28px 30px 28px 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.person:nth-child(even) { padding-left: 30px; border-right: 0; }
.person-image { width: 86px; height: 108px; display: block; object-fit: cover; object-position: center top; background: #dfe9e6; filter: saturate(.9); }
.person strong { display: block; font-family: var(--font-display); font-size: 18px; line-height: 1.4; }
.person span { display: block; margin-top: 7px; color: var(--jade-700); font-size: 16px; font-weight: 700; line-height: 1.4; }
.person small { display: block; margin-top: 7px; color: var(--muted); font-size: 16px; line-height: 1.55; }

/* Reports and contact behave as institutional directories. */
.report-list { border-top: 3px solid var(--ink); }
.report-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 210px;
  gap: 34px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.report-copy { display: grid; gap: 8px; }
.report-copy strong { font-family: var(--font-display); font-size: 23px; line-height: 1.35; }
.report-copy span { color: var(--muted); font-size: 17px; line-height: 1.65; }
.report-state { color: var(--jade-700); font-size: 16px; font-weight: 700; }
.button-link {
  width: fit-content;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--jade-700);
  border-radius: 6px;
  color: var(--jade-800);
  background: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.button-link:hover,
.button-link:focus-visible { color: #fff; background: var(--jade-700); }
.button-link:active { transform: translateY(1px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(380px, 1.15fr); gap: 84px; }
.contact-copy .eyebrow { color: var(--jade-700); }
.contact-copy h2 { max-width: 12ch; margin: 0; font-family: var(--font-display); font-size: 46px; line-height: 1.12; }
.contact-copy p { max-width: 56ch; margin: 24px 0 30px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.contact-data { border-top: 3px solid var(--ink); }
.contact-data div { display: grid; grid-template-columns: 180px 1fr; gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.contact-data span { color: var(--jade-700); font-size: 16px; font-weight: 700; }
.contact-data strong { font-size: 17px; line-height: 1.6; }

/* Legal copy favors sustained reading and a visible document outline. */
.legal-section { padding-top: 0; }
.legal-summary { display: grid; grid-template-columns: 220px 1fr; gap: 56px; padding: 56px 0; border-bottom: 1px solid var(--line); }
.legal-summary span { color: var(--jade-700); font-size: 16px; font-weight: 700; }
.legal-summary p { max-width: 65ch; margin: 0; font-family: var(--font-display); font-size: 25px; font-weight: 700; line-height: 1.5; }
.legal-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 72px; align-items: start; padding-top: 54px; }
.legal-index { position: sticky; top: 104px; border-top: 3px solid var(--ink); }
.legal-index > span { display: block; padding: 20px 0 12px; color: var(--jade-700); font-size: 16px; font-weight: 700; }
.legal-index a { min-height: 50px; display: flex; align-items: center; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 16px; font-weight: 600; text-decoration: none; }
.legal-index a:hover,
.legal-index a:focus-visible { color: var(--jade-800); }
.legal-copy { border-top: 3px solid var(--ink); }
.legal-copy article { scroll-margin-top: 110px; display: grid; grid-template-columns: 66px 1fr; gap: 28px; padding: 44px 0; border-bottom: 1px solid var(--line); }
.legal-copy h2 { max-width: 24ch; margin: 0 0 20px; font-family: var(--font-display); font-size: 31px; line-height: 1.25; }
.legal-copy p { max-width: 70ch; margin: 0 0 17px; color: var(--muted); font-size: 17px; line-height: 1.78; }
.legal-copy a { color: var(--jade-700); font-weight: 700; text-underline-offset: 3px; }
.legal-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 26px; border-top: 1px solid var(--line); }
.legal-data div { padding: 20px 22px 20px 0; border-bottom: 1px solid var(--line); }
.legal-data div:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
.legal-data dt { color: var(--jade-700); font-size: 16px; font-weight: 700; }
.legal-data dd { margin: 8px 0 0; font-size: 16px; font-weight: 600; line-height: 1.6; }
.legal-update { padding: 18px 20px; border-left: 4px solid var(--amber); background: #fff8e8; color: var(--ink) !important; }

.site-footer { padding: 40px 0; color: #c3d0cd; background: var(--navy); }
.footer-inner { display: flex; justify-content: space-between; gap: 36px; font-size: 16px; line-height: 1.7; }
.footer-inner strong { display: block; color: #fff; font-family: var(--font-display); font-size: 17px; }
.footer-meta { text-align: right; }
.site-footer a { color: #fff; }

@media (max-width: 980px) {
  .site-header .desktop-nav { display: none; }
  .site-header .mobile-nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-header .mobile-nav::-webkit-scrollbar { display: none; }
  .site-header .mobile-nav > * { flex: 0 0 auto; }
  .page-hero::before { width: 22%; }
  .page-hero::after { left: 78%; }
  .page-hero .hero-grid { grid-template-columns: minmax(0, 620px) 1fr; }
  .page-hero .hero-aside { width: 170px; margin: 0 0 28px 14px; }
  .section-heading { grid-template-columns: 180px 1fr; gap: 38px; }
  .about-overview { grid-template-columns: 1fr; gap: 42px; }
  .origin-entry { grid-template-columns: 180px 1fr; gap: 38px; }
  .origin-conclusion { margin-left: 180px; }
  .feature { grid-template-columns: 160px 1fr; }
  .feature p { grid-column: 2; }
  .statement { grid-template-columns: 180px 1fr; gap: 38px; }
  .principle { grid-template-columns: 60px 220px 1fr; }
  .commitment { grid-template-columns: 150px 250px 1fr; }
  .people-grid { grid-template-columns: 1fr; }
  .person,
  .person:nth-child(even) { padding: 26px 0; border-right: 0; }
  .legal-layout { grid-template-columns: 1fr; gap: 40px; }
  .legal-index { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
  .legal-index > span { grid-column: 1 / -1; }
  .legal-index a:nth-child(even) { border-right: 1px solid var(--line); }
  .contact-grid { grid-template-columns: 1fr; gap: 54px; }
}

@media (max-width: 700px) {
  .page-width,
  .header-inner { width: min(100% - 32px, 1180px); }
  .site-header .brand-copy span { display: none; }
  .site-header .site-nav a,
  .site-header .site-nav > .nav-more > summary,
  .site-header .site-nav .nav-menu a { font-size: 16px; }
  .page-hero,
  .page-hero .hero-grid { min-height: 620px; }
  .page-hero { background: var(--navy) url("assets/hero-plaza-armas-puno-v2.webp") center 44% / cover no-repeat; }
  .page-hero::before { inset: 0; width: 100%; background: rgba(7, 42, 48, .88); }
  .page-hero::after { top: auto; right: 0; bottom: 0; left: 0; width: auto; height: 5px; }
  .page-hero .hero-grid { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; }
  .page-hero .hero-copy { padding: 52px 0 22px; }
  .page-hero h1 { max-width: 17ch; font-size: 38px; line-height: 1.08; }
  .page-hero .hero-copy p { font-size: 18px; line-height: 1.6; }
  .page-hero .hero-aside {
    align-self: flex-end;
    width: 112px;
    min-height: 112px;
    margin: 0 0 26px;
    border-width: 4px;
    background-position: center 28%;
  }
  .section { padding: 62px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 14px; margin-bottom: 36px; }
  .section-heading > span { padding-top: 0; }
  .section-heading h2 { font-size: 31px; }
  .section-heading p { font-size: 17px; }
  .about-photo figcaption { display: grid; gap: 5px; }
  .about-photo figcaption span { text-align: left; }
  .origin-entry { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .origin-entry-lead p:first-child { font-size: 19px; }
  .origin-conclusion { margin: 36px 0 0; padding-left: 20px; }
  .origin-conclusion p { font-size: 19px; }
  .feature,
  .statement,
  .principle,
  .process-step,
  .commitment,
  .research-line,
  .org-row,
  .report-row { grid-template-columns: 1fr; gap: 12px; }
  .feature { padding: 28px 0; }
  .feature p { grid-column: 1; }
  .statement { padding: 30px 0; }
  .statement h3 { font-size: 27px; }
  .principle { padding: 26px 0; }
  .process-step { padding: 28px 0; }
  .process-step > span { margin-bottom: 6px; }
  .commitment { padding: 26px 0; }
  .research-line { grid-template-columns: 54px 1fr; gap: 16px; }
  .research-line::before { grid-row: 1 / 3; }
  .line-icon { grid-column: 2; }
  .research-line > div { grid-column: 2; }
  .page-link { grid-template-columns: 1fr 44px; gap: 8px; padding: 22px 0; }
  .page-link span { grid-column: 1; }
  .page-link strong { grid-column: 1; }
  .page-link::after { grid-column: 2; grid-row: 1 / 3; }
  .org-status { padding: 10px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .person { grid-template-columns: 84px 1fr; gap: 16px; }
  .person-image { width: 84px; height: 106px; }
  .contact-copy h2 { font-size: 36px; }
  .contact-data div { grid-template-columns: 1fr; gap: 6px; }
  .legal-summary { grid-template-columns: 1fr; gap: 14px; padding: 42px 0; }
  .legal-summary p { font-size: 21px; }
  .legal-index { grid-template-columns: 1fr; }
  .legal-index a:nth-child(even) { border-right: 0; }
  .legal-copy article { grid-template-columns: 1fr; gap: 10px; padding: 36px 0; }
  .legal-copy h2 { font-size: 27px; }
  .legal-data { grid-template-columns: 1fr; }
  .legal-data div:nth-child(even) { padding-left: 0; border-left: 0; }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page-link { transition: none; }
}

/* Institutional narrative: Historia EPCCS, identity, legal framework and method. */
.institutional-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}
.institutional-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  background: var(--jade-200);
  content: "";
}
.institutional-hero__grid {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr);
  align-items: stretch;
}
.institutional-hero__copy {
  align-self: center;
  padding: 84px 72px 84px 0;
}
.institutional-hero__copy .eyebrow { color: var(--jade-200); }
.institutional-hero__copy h1 {
  max-width: 12ch;
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(48px, 5.2vw, 76px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}
.institutional-hero__copy p {
  max-width: 57ch;
  margin: 28px 0 0;
  color: #dcebe7;
  font-size: 20px;
  line-height: 1.65;
}
.hero-aside-sede {
  min-height: 520px;
  background: linear-gradient(rgba(6, 63, 58, .06), rgba(6, 63, 58, .06)), url("assets/sede-epccs.webp") center / cover no-repeat;
}
.institutional-hero--compact .institutional-hero__grid,
.institutional-hero--compact .hero-aside-sede { min-height: 410px; }
.institutional-hero--compact .institutional-hero__copy { padding-block: 68px; }
.institutional-hero--compact .institutional-hero__copy h1 { font-size: clamp(44px, 4.7vw, 66px); }

.institutional-nav {
  position: sticky;
  z-index: 20;
  top: 76px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
}
.institutional-nav__inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 34px;
  overflow-x: auto;
  scrollbar-width: none;
}
.institutional-nav__inner::-webkit-scrollbar { display: none; }
.institutional-nav a {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.institutional-nav a:hover { color: var(--jade-700); }

.institutional-section {
  padding: 104px 0;
  scroll-margin-top: 148px;
  background: var(--paper);
}
.institutional-section--jade { color: #fff; background: var(--jade-950); }
.institutional-section--paper { background: var(--canvas); }
.history-layout,
.observatory-statement,
.methodology-note__grid {
  display: grid;
  grid-template-columns: 190px minmax(0, 760px);
  gap: 72px;
  justify-content: space-between;
}
.section-index {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
}
.section-index span {
  color: var(--jade-700);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
}
.section-index strong {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.3;
}
.section-index--light { color: #fff; }
.section-index--light span { color: var(--jade-200); }
.section-index--horizontal {
  margin-bottom: 42px;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}
.section-kicker {
  display: block;
  margin-bottom: 20px;
  color: var(--jade-700);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}
.institutional-section--jade .section-kicker { color: var(--jade-200); }
.history-copy h2,
.observatory-statement__copy h2,
.section-heading-compact h2,
.methodology-note h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  text-wrap: balance;
}
.history-copy > p,
.observatory-statement__copy > p {
  max-width: 68ch;
  margin: 24px 0 0;
  color: #344844;
  font-size: 18px;
  line-height: 1.78;
}
.history-copy > p:first-of-type {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.65;
}
.history-copy .document-note {
  margin-top: 34px;
  padding: 18px 0 0 20px;
  border-top: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.observatory-statement__copy h2,
.methodology-note h2 { color: #fff; }
.observatory-statement__copy > p,
.methodology-note p { color: #d7e8e4; }
.observatory-statement__copy > p:first-of-type {
  color: #fff;
  font-size: 21px;
}

.identity-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.identity-statement {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 64px;
  padding: 42px 46px 48px;
  color: var(--ink);
  background: #fff;
}
.identity-statement + .identity-statement { border-left: 1px solid var(--line); }
.identity-statement--mission { color: #fff; background: var(--jade-800); }
.identity-statement span {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
}
.identity-statement p {
  max-width: 31ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.7vw, 34px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}
.identity-page { min-height: 610px; display: flex; align-items: center; }

.section-heading-compact {
  display: grid;
  grid-template-columns: 190px minmax(0, 760px);
  gap: 72px;
  justify-content: space-between;
  margin-bottom: 58px;
}
.legal-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.legal-summary-grid article {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 20px;
  padding: 32px 36px 36px 0;
  border-bottom: 1px solid var(--line);
}
.legal-summary-grid article:nth-child(even) {
  padding-right: 0;
  padding-left: 36px;
  border-left: 1px solid var(--line);
}
.legal-summary-grid article > span {
  color: var(--jade-700);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
}
.legal-summary-grid h2,
.legal-summary-grid h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.3;
}
.legal-summary-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
  color: var(--jade-800);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}
.text-link span { font-size: 22px; }
.legal-intro {
  display: grid;
  grid-template-columns: 190px minmax(0, 760px);
  gap: 72px;
  justify-content: space-between;
  margin-bottom: 58px;
}
.legal-intro span { color: var(--jade-700); font-weight: 800; }
.legal-intro p {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.65;
}
.legal-summary-grid--page article:last-child { grid-column: 1 / -1; }
.legal-update {
  max-width: 76ch;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.method-rail {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.method-rail li {
  display: grid;
  grid-template-columns: 150px minmax(220px, .62fr) minmax(0, 1.38fr);
  gap: 38px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.method-rail li > span {
  color: var(--jade-700);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
}
.method-rail li > div { display: contents; }
.method-rail h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.35;
}
.method-rail p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.method-rail--page li { padding-block: 34px; }
.method-rail--page p { font-size: 17px; }
.methodology-note p { max-width: 68ch; margin: 22px 0 0; font-size: 18px; line-height: 1.75; }

@media (max-width: 980px) {
  .institutional-hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); }
  .institutional-hero__copy { padding-right: 48px; }
  .history-layout,
  .observatory-statement,
  .methodology-note__grid,
  .section-heading-compact,
  .legal-intro { grid-template-columns: 150px minmax(0, 1fr); gap: 42px; }
  .method-rail li { grid-template-columns: 80px minmax(190px, .62fr) minmax(0, 1.38fr); gap: 26px; }
}

@media (max-width: 700px) {
  .institutional-hero__grid,
  .institutional-hero--compact .institutional-hero__grid { min-height: auto; display: flex; flex-direction: column; }
  .institutional-hero__copy,
  .institutional-hero--compact .institutional-hero__copy { padding: 56px 0 46px; }
  .institutional-hero__copy h1,
  .institutional-hero--compact .institutional-hero__copy h1 { font-size: 42px; line-height: 1.06; }
  .institutional-hero__copy p { margin-top: 20px; font-size: 18px; }
  .hero-aside-sede,
  .institutional-hero--compact .hero-aside-sede { min-height: 220px; margin-inline: -16px; background-position: center 44%; }
  .institutional-nav { top: 122px; }
  .institutional-nav__inner { gap: 24px; }
  .institutional-section { padding: 68px 0; scroll-margin-top: 190px; }
  .history-layout,
  .observatory-statement,
  .methodology-note__grid,
  .section-heading-compact,
  .legal-intro { grid-template-columns: 1fr; gap: 28px; }
  .section-index { flex-direction: row; align-items: center; gap: 12px; }
  .section-heading-compact { margin-bottom: 38px; }
  .history-copy h2,
  .observatory-statement__copy h2,
  .section-heading-compact h2,
  .methodology-note h2 { font-size: 34px; }
  .history-copy > p,
  .observatory-statement__copy > p { font-size: 17px; line-height: 1.72; }
  .history-copy > p:first-of-type,
  .observatory-statement__copy > p:first-of-type { font-size: 19px; }
  .identity-pair { grid-template-columns: 1fr; }
  .identity-statement { min-height: 300px; padding: 32px 24px 36px; gap: 48px; }
  .identity-statement + .identity-statement { border-top: 1px solid var(--line); border-left: 0; }
  .identity-statement p { max-width: none; font-size: 26px; }
  .identity-page { min-height: 0; }
  .legal-summary-grid { grid-template-columns: 1fr; }
  .legal-summary-grid article,
  .legal-summary-grid article:nth-child(even) { padding: 26px 0; border-left: 0; }
  .legal-summary-grid--page article:last-child { grid-column: auto; }
  .legal-intro p { font-size: 19px; }
  .method-rail li { grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: start; padding: 26px 0; }
  .method-rail li > div { display: block; }
  .method-rail h3 { font-size: 21px; }
  .method-rail p { margin-top: 8px; }
}

/* Timelines and organization hierarchy. */
.history-timeline,
.role-timeline {
  position: relative;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}
.history-timeline::before,
.role-timeline::before {
  position: absolute;
  top: 10px;
  bottom: 12px;
  left: 128px;
  width: 1px;
  background: var(--line);
  content: "";
}
.history-timeline li,
.role-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 48px;
  padding: 0 0 38px;
}
.history-timeline li:last-child,
.role-timeline li:last-child { padding-bottom: 0; }
.history-timeline li::before,
.role-timeline li::before {
  position: absolute;
  top: 7px;
  left: 123px;
  width: 11px;
  height: 11px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--jade-700);
  box-shadow: 0 0 0 1px var(--jade-700);
  content: "";
}
.history-timeline > li > span,
.role-timeline > li > span {
  color: var(--jade-700);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}
.history-timeline h3,
.role-timeline h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.35;
}
.history-timeline p,
.role-timeline p {
  max-width: 62ch;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.role-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.role-timeline::before { display: none; }
.role-timeline li {
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 30px 34px 34px 0;
  border-bottom: 1px solid var(--line);
}
.role-timeline li + li {
  padding-left: 34px;
  border-left: 1px solid var(--line);
}
.role-timeline li::before {
  top: -6px;
  left: 0;
  border-color: var(--paper);
}
.role-timeline li + li::before { left: 34px; }
.people-grid--organization { border-top-width: 1px; }
.people-grid--organization .person {
  min-height: 206px;
  grid-template-columns: 104px minmax(0, 1fr);
  padding-block: 34px;
}
.people-grid--organization .person-image { width: 104px; height: 132px; }
.people-grid--organization .person strong { font-size: 19px; }
.team-directory .section-heading-compact { margin-bottom: 46px; }

/* A continuous rule turns the methodology into a readable process timeline. */
.method-rail { position: relative; }
.method-rail li > span { position: relative; padding-left: 22px; }
.method-rail li > span::before {
  position: absolute;
  top: .4em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--jade-700);
  content: "";
}

@media (max-width: 700px) {
  .history-timeline::before { left: 6px; }
  .history-timeline li { grid-template-columns: 1fr; gap: 8px; padding: 0 0 32px 30px; }
  .history-timeline li::before { top: 5px; left: 1px; }
  .role-timeline { grid-template-columns: 1fr; }
  .role-timeline li,
  .role-timeline li + li { padding: 26px 0; border-left: 0; }
  .role-timeline li::before,
  .role-timeline li + li::before { top: -6px; left: 0; }
  .people-grid--organization .person { min-height: 0; grid-template-columns: 86px minmax(0, 1fr); padding: 28px 0; }
  .people-grid--organization .person:nth-child(even) { padding-left: 0; }
  .people-grid--organization .person-image { width: 86px; height: 108px; }
}
