:root {
  --ink: #172328;
  --muted: #617078;
  --paper: #f8faf9;
  --soft: #eef3f3;
  --navy-950: #0b2c3a;
  --navy-900: #123d52;
  --navy-800: #174d65;
  --navy-700: #23637b;
  --green-800: #175944;
  --green-600: #258466;
  --green-300: #8ecab5;
  --red-700: #a80009;
  --red-600: #c0000a;
  --grey-700: #4e4e4e;
  --gold: #d8b45c;
  --line: rgba(23, 35, 40, .12);
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(11, 44, 58, .12);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link {
  position: fixed; z-index: 200; top: 12px; left: 12px; padding: 10px 14px;
  background: var(--white); border-radius: 10px; transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: fixed; z-index: 100; inset: 0 0 auto;
  background: rgba(248, 250, 249, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(23, 35, 40, .08);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(11, 44, 58, .09); background: rgba(248, 250, 249, .97); }
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; line-height: 1.1; min-width: 0; }
.brand-logo {
  width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 50%; background: #fff; padding: 4px; border: 1px solid rgba(23,35,40,.11);
  box-shadow: 0 8px 20px rgba(11,44,58,.10);
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-copy { min-width: 0; }
.brand strong { display: block; font-size: 1.02rem; letter-spacing: -.01em; white-space: nowrap; }
.brand small { display: block; color: var(--muted); margin-top: 5px; font-size: .70rem; letter-spacing: .04em; }
.primary-nav { display: flex; align-items: center; gap: 24px; font-size: .88rem; font-weight: 700; }
.primary-nav a { position: relative; }
.primary-nav > a:not(.nav-cta)::after {
  content: ""; position: absolute; height: 2px; left: 0; right: 100%; bottom: -8px;
  background: var(--red-600); transition: right .2s ease;
}
.primary-nav > a:hover::after { right: 0; }
.nav-cta { padding: 10px 17px; border-radius: 999px; color: var(--white); background: var(--navy-900); }
.nav-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s ease; }

.hero { min-height: 800px; padding: 146px 0 88px; overflow: hidden; position: relative; }
.hero::before {
  content: ""; position: absolute; width: 660px; height: 660px; right: -280px; top: -40px; border-radius: 50%;
  background: radial-gradient(circle, rgba(35,99,123,.15), rgba(35,99,123,0) 68%);
}
.hero::after {
  content: ""; position: absolute; width: 430px; height: 430px; left: -210px; bottom: -180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(192,0,10,.08), rgba(192,0,10,0) 70%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 76px; }
.eyebrow { margin: 0 0 16px; color: var(--navy-700); text-transform: uppercase; letter-spacing: .16em; font-size: .73rem; font-weight: 850; }
.hero h1, .section-heading h2, .contact h2 { margin: 0; letter-spacing: -.047em; line-height: 1.04; }
.hero h1 { max-width: 730px; font-size: clamp(3.1rem, 5.7vw, 5.35rem); }
.hero h1 span { color: var(--navy-700); }
.hero-lead { max-width: 650px; font-size: 1.16rem; color: var(--muted); margin: 28px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: 0 22px;
  border-radius: 999px; font-weight: 780; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--navy-900); box-shadow: 0 12px 24px rgba(18,61,82,.20); }
.button-primary:hover { background: var(--navy-800); box-shadow: 0 16px 30px rgba(18,61,82,.25); }
.button-secondary { border: 1px solid var(--line); background: rgba(255,255,255,.76); }
.button-secondary:hover { background: white; box-shadow: var(--shadow); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 31px; }
.hero-meta span { padding: 8px 12px; border-radius: 999px; background: var(--soft); color: var(--navy-800); font-size: .77rem; font-weight: 750; }

.portrait-stage { min-height: 580px; position: relative; display: grid; place-items: center; }
.portrait-card {
  width: min(100%, 470px); height: 610px; margin: 0; position: relative; overflow: hidden;
  border-radius: 34px 34px 110px 34px; background: var(--navy-950);
  box-shadow: 0 32px 78px rgba(11,44,58,.24);
}
.portrait-card::before {
  content: ""; position: absolute; z-index: 2; inset: 0; border: 1px solid rgba(255,255,255,.22);
  border-radius: inherit; pointer-events: none;
}
.portrait-image { width: 100%; height: 100%; object-fit: cover; object-position: center 26%; }
.portrait-shade {
  position: absolute; inset: 48% 0 0; background: linear-gradient(to bottom, transparent, rgba(7,30,40,.90));
}
.portrait-caption { position: absolute; z-index: 3; left: 30px; right: 30px; bottom: 29px; color: white; }
.caption-kicker {
  display: inline-block; margin-bottom: 9px; color: #fff; background: var(--red-600);
  border-radius: 999px; padding: 5px 9px; text-transform: uppercase; letter-spacing: .12em;
  font-size: .64rem; font-weight: 900;
}
.portrait-caption strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; line-height: 1.15; }
.portrait-caption small { display: block; margin-top: 7px; color: rgba(255,255,255,.72); }
.lab-seal {
  position: absolute; z-index: 5; width: 248px; right: -18px; top: 48px;
  display: flex; align-items: center; gap: 11px; padding: 13px 15px;
  border: 1px solid rgba(23,35,40,.10); border-radius: 18px; background: rgba(255,255,255,.94);
  box-shadow: 0 18px 40px rgba(11,44,58,.17); backdrop-filter: blur(12px);
}
.lab-seal img { width: 53px; height: 53px; object-fit: contain; }
.lab-seal strong { display: block; color: var(--navy-900); font-size: .9rem; }
.lab-seal small { display: block; color: var(--muted); font-size: .68rem; line-height: 1.25; margin-top: 3px; }

.identity-strip { border-block: 1px solid var(--line); background: white; }
.identity-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.identity-item {
  min-height: 140px; display: grid; grid-template-columns: 42px 1fr; gap: 18px; align-items: center;
  padding: 27px 32px; border-right: 1px solid var(--line);
}
.identity-item:last-child { border-right: 0; }
.identity-item > span { color: var(--red-600); font-size: .72rem; font-weight: 900; letter-spacing: .11em; }
.identity-item strong { display: block; font-size: 1.12rem; margin-bottom: 4px; color: var(--navy-900); }
.identity-item p { margin: 0; color: var(--muted); font-size: .88rem; }

.section { padding: 112px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--navy-950); color: white; }
.section-heading { max-width: 690px; }
.section-heading h2, .contact h2 { font-size: clamp(2.35rem, 4vw, 4rem); }
.section-heading > p:last-child { color: var(--muted); font-size: 1.03rem; }
.section-dark .section-heading > p:last-child { color: rgba(255,255,255,.66); }
.section-heading-row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 44px; }
.section-heading-row > p { max-width: 440px; margin: 0; }

.profile-grid { display: grid; grid-template-columns: .84fr 1.16fr; gap: 88px; align-items: start; }
.profile-copy { max-width: 720px; }
.profile-copy p { color: var(--muted); }
.lead-paragraph { margin-top: 0; color: var(--ink) !important; font-size: 1.28rem; line-height: 1.55; }
.profile-signature {
  display: inline-flex; align-items: center; gap: 13px; margin-top: 16px; padding: 14px 18px;
  border-radius: 17px; background: white; border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(11,44,58,.06);
}
.profile-signature img { width: 52px; height: 52px; object-fit: contain; }
.profile-signature strong { display: block; color: var(--navy-900); }
.profile-signature small { display: block; color: var(--muted); margin-top: 3px; }

.mission { padding: 72px 0; border-block: 1px solid var(--line); }
.mission-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.mission blockquote {
  margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.45rem, 2.5vw, 2.25rem);
  line-height: 1.35; color: var(--navy-900); border-left: 3px solid var(--red-600); padding-left: 32px;
}

.card-grid { display: grid; gap: 18px; }
.courses-grid { grid-template-columns: repeat(3, 1fr); }
.course-card {
  min-height: 190px; padding: 25px; border-radius: var(--radius); border: 1px solid var(--line);
  background: white; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start;
  box-shadow: 0 8px 24px rgba(11,44,58,.04); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(35,99,123,.34); }
.card-icon {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px;
  background: var(--soft); color: var(--navy-800); font-weight: 900; font-size: .82rem;
}
.course-card h3 { margin: 2px 0 8px; line-height: 1.2; font-size: 1.08rem; }
.course-card p { margin: 0; color: var(--muted); font-size: .91rem; }
.arrow { font-size: 1.2rem; color: var(--navy-700); }

.research-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 88px; align-items: start; }
.section-dark .eyebrow { color: var(--green-300); }
.text-link { display: inline-flex; gap: 10px; margin-top: 22px; color: var(--green-300); font-weight: 750; }
.research-list { border-top: 1px solid rgba(255,255,255,.16); }
.research-item { display: grid; grid-template-columns: 55px 1fr; gap: 20px; padding: 27px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.research-item > span { color: #ef858b; font-size: .78rem; font-weight: 900; letter-spacing: .1em; }
.research-item h3 { margin: 0 0 8px; font-size: 1.22rem; }
.research-item p { margin: 0; color: rgba(255,255,255,.62); }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card {
  min-height: 350px; padding: 28px; border-radius: var(--radius); display: flex; flex-direction: column;
  border: 1px solid var(--line); background: linear-gradient(160deg, #ffffff, #f4f7f7);
  transition: transform .22s ease, box-shadow .22s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-logo { width: 84px; height: 84px; object-fit: contain; margin-bottom: 15px; }
.invepar-logo { width: 120px; height: 96px; object-position: left center; }
.feature-number {
  width: 60px; height: 60px; display: grid; place-items: center; margin-bottom: 26px;
  border-radius: 18px; color: white; background: var(--navy-900); font-family: Georgia, serif;
  font-size: 1.7rem; font-weight: 700;
}
.feature-kicker { color: var(--navy-700); text-transform: uppercase; letter-spacing: .14em; font-size: .67rem; font-weight: 900; }
.feature-card h3 { font-size: 1.45rem; margin: 17px 0 12px; }
.feature-card p { color: var(--muted); margin: 0; }
.feature-link { margin-top: auto; color: var(--navy-700); font-weight: 800; }
.event-card { background: linear-gradient(155deg, var(--navy-900), var(--navy-950)); color: white; border-color: transparent; }
.event-card .feature-kicker { color: #a9d1c4; }
.event-card p { color: rgba(255,255,255,.66); }
.event-card .feature-link { color: white; }
.event-year {
  display: inline-flex; align-self: flex-start; margin-bottom: 28px; padding: 8px 12px;
  border-radius: 999px; color: white; background: var(--red-600); font-size: .9rem; font-weight: 900; letter-spacing: .08em;
}

.resource-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.resource-card {
  padding: 25px; border-radius: 20px; background: white; border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s ease;
}
.resource-card:hover { transform: translateY(-4px); border-color: rgba(35,99,123,.36); }
.resource-badge { font-size: .68rem; font-weight: 900; color: var(--navy-800); background: var(--soft); padding: 6px 9px; border-radius: 999px; }
.resource-card h3 { margin: 23px 0 10px; font-size: 1.1rem; }
.resource-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.profiles { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 30px; padding: 24px 0; border-top: 1px solid var(--line); }
.profiles > p { margin: 0; font-weight: 800; }
.profile-links { display: flex; flex-wrap: wrap; gap: 12px; }
.profile-links a { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.65); font-size: .84rem; font-weight: 700; }

.contact-card {
  border-radius: 34px; padding: 49px 54px; color: white;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-950));
  display: grid; grid-template-columns: 1.38fr .62fr; gap: 55px; align-items: center; box-shadow: 0 28px 70px rgba(11,44,58,.22);
}
.contact-identity { display: grid; grid-template-columns: 82px 1fr; gap: 23px; align-items: start; }
.contact-identity > img { width: 82px; height: 82px; padding: 6px; object-fit: contain; border-radius: 50%; background: white; }
.contact-card .eyebrow { color: var(--green-300); }
.contact-card p:last-child { color: rgba(255,255,255,.68); }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.button-light { background: white; color: var(--navy-900); }
.contact-email { color: rgba(255,255,255,.72); font-size: .88rem; word-break: break-word; }

.site-footer { padding: 58px 0 22px; background: #071f29; color: white; }
.footer-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 50px; }
.brand-footer .brand-logo { background: white; }
.brand-footer small, .site-footer p { color: rgba(255,255,255,.58); }
.site-footer p { margin: 22px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px 26px; color: rgba(255,255,255,.68); font-size: .9rem; }
.footer-links a:hover { color: white; }
.footer-bottom {
  margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 30px; color: rgba(255,255,255,.46); font-size: .78rem;
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1080px) {
  .primary-nav { gap: 17px; font-size: .82rem; }
  .brand strong { font-size: .92rem; }
}

@media (max-width: 1000px) {
  .hero-grid, .research-grid, .profile-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 125px; }
  .hero-copy { max-width: 790px; }
  .portrait-stage { min-height: auto; }
  .portrait-card { width: min(100%, 590px); height: min(760px, 128vw); }
  .lab-seal { right: max(0px, calc(50% - 315px)); }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .mission-grid { grid-template-columns: 1fr; gap: 30px; }
  .identity-grid { grid-template-columns: 1fr; }
  .identity-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .identity-item:last-child { border-bottom: 0; }
}

@media (max-width: 820px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .nav-wrap { min-height: 72px; }
  .brand small { display: none; }
  .brand strong { font-size: .88rem; }
  .brand-logo { width: 43px; height: 43px; }
  .nav-toggle { display: block; position: relative; z-index: 120; }
  .primary-nav {
    position: fixed; inset: 0; padding: 110px 28px 40px; background: var(--paper);
    flex-direction: column; align-items: flex-start; gap: 24px; font-size: 1.3rem;
    transform: translateX(100%); transition: transform .25s ease;
  }
  .primary-nav.open { transform: none; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { min-height: auto; padding: 114px 0 62px; }
  .hero-grid { gap: 50px; }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .hero-lead { font-size: 1.03rem; }
  .hero-actions .button { width: 100%; }
  .portrait-card { border-radius: 26px 26px 78px 26px; }
  .lab-seal { right: 8px; top: 28px; width: 220px; }
  .section { padding: 78px 0; }
  .section-heading-row { display: block; margin-bottom: 30px; }
  .section-heading-row > p { margin-top: 16px; }
  .mission { padding: 58px 0; }
  .mission blockquote { padding-left: 20px; }
  .courses-grid, .feature-grid, .resource-grid { grid-template-columns: 1fr; }
  .course-card { min-height: 160px; }
  .feature-card { min-height: 285px; }
  .profiles { align-items: flex-start; flex-direction: column; }
  .contact-card { grid-template-columns: 1fr; padding: 34px 24px; gap: 28px; border-radius: 26px; }
  .contact-identity { grid-template-columns: 62px 1fr; }
  .contact-identity > img { width: 62px; height: 62px; }
  .footer-grid, .footer-bottom { flex-direction: column; }
  .footer-bottom { gap: 8px; }
}

@media (max-width: 500px) {
  .brand strong { max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
  .portrait-caption { left: 21px; right: 21px; bottom: 22px; }
  .portrait-caption strong { font-size: 1.28rem; }
  .lab-seal { width: 190px; padding: 10px 12px; }
  .lab-seal img { width: 44px; height: 44px; }
  .lab-seal small { font-size: .61rem; }
  .feature-logo { width: 70px; height: 70px; }
  .invepar-logo { width: 110px; height: 88px; }
  .course-card { grid-template-columns: auto 1fr; }
  .course-card .arrow { display: none; }
  .profile-signature { align-items: flex-start; }
}
