/* Nova Med Research Academy — navy and gold, premium academic.
   Layout: dark navy bands for the hero and statements, ivory and white for reading sections. */
:root {
  --navy: #0B1E3F;
  --navy-deep: #071630;
  --navy-soft: #13284F;
  --gold: #C9A24A;
  --gold-light: #E8CF8A;
  --gold-ink: #8A6A1F;
  --ivory: #FAF7F0;
  --paper: #FFFFFF;
  --ink: #0B1E3F;
  --text: #2E3B55;
  --muted: #5B6577;
  --line: #E7E2D6;
  --field: #CFC8B8;
  --on-navy: #D8DEEA;
  --on-navy-2: #A9B4C8;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: Manrope, "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--paper);
}
img, video { max-width: 100%; display: block; }
a { color: var(--gold-ink); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--ink); text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap {
  max-width: 1240px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--gold); }
.eyebrow.center { justify-content: center; }
.on-dark .eyebrow { color: var(--gold-light); }
.rule { width: 64px; height: 2px; background: var(--gold); margin: 18px auto 0; transform-origin: center; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 46px); line-height: 1.14; }
.section-head p { margin-top: 16px; font-size: 17px; color: var(--muted); }
.on-dark .section-head h2, .on-dark h2, .on-dark h3 { color: var(--paper); }
.on-dark .section-head p { color: var(--on-navy); }
.section { padding-block: clamp(72px, 9vw, 112px); }
.bg-ivory { background: var(--ivory); }
.bg-navy { background: var(--navy); color: var(--on-navy); }
em.gold { font-style: italic; color: var(--gold-light); }
em.gold-ink { font-style: italic; color: var(--gold-ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 4px;
  font: 700 14px/1 var(--body); letter-spacing: .07em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  color: var(--navy);
  background: linear-gradient(110deg, var(--gold) 0%, var(--gold) 38%, #F6E6B4 50%, var(--gold) 62%, var(--gold) 100%);
  background-size: 220% 100%;
  animation: glint 4.5s ease-in-out infinite;
  box-shadow: 0 10px 30px rgba(201, 162, 74, .25);
}
.btn-gold:hover { color: var(--navy); box-shadow: 0 14px 36px rgba(201, 162, 74, .38); }
.btn-ghost { color: var(--paper); border-color: rgba(232, 207, 138, .55); background: transparent; }
.btn-ghost:hover { color: var(--navy); background: var(--gold-light); }
.btn-navy { color: var(--paper); background: var(--navy); box-shadow: inset 0 -3px 0 var(--gold); }
.btn-navy:hover { color: var(--paper); background: var(--navy-soft); }
.btn-outline { color: var(--navy); border-color: var(--navy); background: var(--paper); }
.btn-outline:hover { color: var(--paper); background: var(--navy); }
@keyframes glint { 0% { background-position: 110% 0; } 60%, 100% { background-position: -110% 0; } }

/* Top bar and header */
.topbar { background: var(--navy-deep); color: var(--on-navy); font-size: 13px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 24px; padding-block: 9px; }
.topbar .contact { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.topbar .contact span { display: inline-flex; align-items: center; gap: 8px; }
.topbar .account { display: flex; gap: 20px; font-weight: 600; }
.topbar .account a { color: var(--paper); text-decoration: none; }
.topbar .account a + a { color: var(--gold-light); }

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(11, 30, 63, .08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--ink); }
.brand svg { flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.08; }
.brand-name b { font-family: var(--display); font-size: 21px; font-weight: 700; }
.brand-name small { font-size: 10.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-ink); }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--ink); text-decoration: none; position: relative; padding-block: 6px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--gold-ink); }
.menu-btn { display: none !important; }
.header-cta { flex: none; }
.nav .btn { display: none; }
.nav[hidden] { display: flex !important; }
@media (max-width: 1180px) {
  .site-header .wrap { flex-wrap: wrap; row-gap: 10px; }
  .nav { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; gap: 2px 26px; padding-top: 8px; border-top: 1px solid var(--line); }
}
@media (max-width: 700px) {
  .site-header .wrap { padding-block: 10px 0; }
  .brand svg { width: 38px; height: 38px; }
  .brand-name b { font-size: 18px; }
  .header-cta { min-height: 42px; padding: 0 16px; font-size: 12px; }
  .nav {
    justify-content: flex-start; flex-wrap: nowrap; gap: 8px;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
    padding: 10px max(16px, env(safe-area-inset-left, 0px)) 12px;
    width: calc(100% + 2 * max(16px, env(safe-area-inset-left, 0px)));
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; white-space: nowrap; }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { background: var(--navy); color: var(--paper); border-color: var(--navy); }
}

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(120% 90% at 75% 40%, #12305F 0%, var(--navy) 45%, var(--navy-deep) 100%); color: var(--paper); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; opacity: .75; transform-origin: 60% 50%; }
.bg-video[hidden] { display: none; }
.cta { isolation: isolate; }
.cta-video { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; z-index: -2; opacity: .6; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 50% 50%, rgba(11, 30, 63, .35) 0%, rgba(11, 30, 63, .9) 100%); pointer-events: none; }
.spec-groups h3 small { font-family: var(--body); font-size: 13px; font-weight: 700; color: var(--gold-ink); margin-left: 6px; }
.spec-note { margin-top: 40px; text-align: center; color: var(--muted); }
.hero canvas.particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 22, 48, .88) 0%, rgba(7, 22, 48, .55) 45%, rgba(7, 22, 48, 0) 75%); pointer-events: none; }
.hero .wrap { padding-block: clamp(88px, 11vw, 140px) calc(clamp(88px, 11vw, 140px) + 90px); display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.founders-band { position: relative; z-index: 2; margin-top: -96px; padding-bottom: 48px; }
.founders-band .founders-card { max-width: 820px; margin-inline: auto; background: rgba(11, 30, 63, .55); box-shadow: 0 30px 60px rgba(7, 22, 48, .25); }
.founders-band .duo { gap: clamp(12px, 4vw, 48px); }
.hero-copy { flex: 999 1 520px; min-width: 0; }
.hero h1 { color: var(--paper); font-size: clamp(42px, 6.2vw, 74px); line-height: 1.04; letter-spacing: -.01em; margin-bottom: 24px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; }
.hero .lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--on-navy); max-width: 580px; margin-bottom: 38px; }
.hero .hero-rule { width: 110px; height: 2px; background: var(--gold); margin-bottom: 26px; transform-origin: left; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.founders-card { flex: 1 1 380px; min-width: 0; max-width: 480px; border: 1px solid rgba(201, 162, 74, .5); padding: 10px; background: rgba(7, 22, 48, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.founders-card .inner { background: var(--paper); color: var(--ink); padding: 30px 26px 26px; text-align: center; }
.founders-card .label { font-size: 11.5px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 22px; }
.duo { display: flex; justify-content: center; gap: 18px; }
.duo > div { flex: 1 1 0; min-width: 0; }
.duo .sep { flex: none; width: 1px; background: var(--line); }
.avatar { width: 104px; height: 104px; margin: 0 auto 12px; border-radius: 50%; padding: 3px; border: 1.5px solid var(--gold); }
.avatar > div, .avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--navy); color: var(--gold-light); font-size: 10.5px; display: flex; align-items: center; justify-content: center; }
.duo .name { font-family: var(--display); font-size: 18px; font-weight: 600; }
.duo .role { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); }
.duo .title { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.big-num { font-family: var(--display); font-size: 40px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.big-num i { font-style: normal; color: var(--gold); }
.duo .cap { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.founders-card .foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--muted); }
.scroll-cue { position: absolute; left: 50%; bottom: 122px; transform: translateX(-50%); width: 24px; height: 38px; border: 1.5px solid rgba(232, 207, 138, .6); border-radius: 14px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold-light); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* Pathways */
.pathways { border-bottom: 1px solid var(--line); background: var(--paper); }
.pathways .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding-block: 28px; }
.pathways div { flex: 1 1 150px; text-align: center; }
.pathways b { display: block; font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--ink); }
.pathways span { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }

/* Pathways */
.founders-band { background: linear-gradient(transparent 0 96px, var(--navy-deep) 96px); }
.pathways-sec { padding-top: clamp(40px, 6vw, 72px); background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 40%); }
.paths-head { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; margin-bottom: 56px; }
.paths-copy { flex: 1 1 420px; min-width: 0; }
.paths-copy h2 { font-size: clamp(32px, 4.2vw, 46px); line-height: 1.14; color: var(--paper); margin-bottom: 18px; }
.paths-copy > p { font-size: 17px; color: var(--on-navy); max-width: 560px; }
.route-key { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.route-key li { padding: 6px 14px; border: 1px solid rgba(232, 207, 138, .4); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--gold-light); }
.globe-wrap { flex: 1 1 380px; min-width: 0; height: clamp(320px, 40vw, 470px); position: relative; }
.globe-wrap canvas, .dna-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pathways-sec .path-dark { background: var(--navy-soft); border-color: rgba(201, 162, 74, .35); border-top-color: var(--gold); }
.why { position: relative; isolation: isolate; overflow: hidden; }
.dna-wrap { position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none; }

/* Scrolling ticker */
.ticker { overflow: hidden; padding-block: 28px; background: var(--paper); border-block: 1px solid var(--line); }
.ticker-row { display: flex; align-items: center; gap: 28px; width: max-content; white-space: nowrap; font-family: var(--display); font-style: italic; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.25; color: var(--ink); will-change: transform; }
.ticker-row.alt { margin-top: 6px; color: transparent; -webkit-text-stroke: 1px var(--gold-ink); transform: translateX(-30%); }
.ticker-row i { font-style: normal; font-size: .5em; color: var(--gold); -webkit-text-stroke: 0; }

/* Motion helpers */
.w { display: inline-block; }
.types.is-h { display: flex; flex-wrap: nowrap; width: max-content; gap: 22px; }
.types.is-h .card { width: 340px; flex: none; }
#research { overflow: hidden; }
.steps .dot { transition: background-color .45s ease, color .45s ease, border-color .45s ease, transform .45s ease; }
.steps li.lit .dot { background: var(--navy); color: var(--gold-light); border-color: var(--navy); transform: scale(1.08); }

/* Video headers on inner pages */
.page-hero, .auth aside { isolation: isolate; }
.page-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .9; }
.auth aside > .page-video { position: absolute; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 30, 63, .25), rgba(11, 30, 63, .75)); pointer-events: none; }
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.path { display: flex; flex-direction: column; padding: 32px 30px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold); transition: transform .4s ease, box-shadow .4s ease; }
.path:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(11, 30, 63, .1); }
.path .where { font-size: 11.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 8px; }
.path h3 { font-size: 23px; margin-bottom: 12px; }
.path > p:not(.where):not(.focus) { font-size: 15px; color: var(--text); flex: 1; }
.path .focus { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.path .focus b { color: var(--ink); }
.path-dark { background: var(--navy); border-color: var(--navy); border-top-color: var(--gold); }
.path-dark h3 { color: var(--paper); }
.path-dark > p:not(.where):not(.focus) { color: var(--on-navy); }
.path-dark .where { color: var(--gold-light); }
.path-dark .focus { color: var(--on-navy-2); border-top-color: rgba(201, 162, 74, .3); }
.path-dark .focus b { color: var(--gold-light); }

/* About */
.mv { display: flex; flex-wrap: wrap; gap: 26px; }
.mv > div { flex: 1 1 420px; min-width: 0; padding: 46px 42px; border-top: 3px solid var(--gold); }
.mv .light { background: var(--paper); box-shadow: 0 12px 34px rgba(11, 30, 63, .06); }
.mv .dark { background: var(--navy); color: var(--on-navy); }
.mv .k { font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 14px; }
.mv .dark .k { color: var(--gold-light); }
.mv .statement { font-family: var(--display); font-size: clamp(22px, 2.3vw, 27px); line-height: 1.35; color: var(--ink); margin-bottom: 16px; }
.mv .dark .statement { color: var(--paper); }

/* Programs */
.featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 60px; }
.card { background: var(--paper); border: 1px solid var(--line); transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(11, 30, 63, .1); border-color: var(--gold); }
.featured .card { display: flex; flex-direction: column; padding: 32px 26px; text-decoration: none; color: var(--ink); }
.featured .num { font-family: var(--display); font-size: 32px; color: var(--gold); line-height: 1; margin-bottom: 18px; }
.featured h3 { font-size: 22px; margin-bottom: 8px; }
.featured p { font-size: 15px; color: var(--muted); }
.spec-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.spec-groups h3 { font-size: 21px; padding-bottom: 12px; border-bottom: 2px solid var(--gold); margin-bottom: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 8px 13px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
.tags span:hover { background: var(--navy); color: var(--paper); border-color: var(--navy); }

/* Research types */
.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.types .card { padding: 32px 26px; }
.types .std { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; color: var(--gold-ink); margin-bottom: 12px; text-transform: uppercase; }
.types h3 { font-size: 21px; margin-bottom: 8px; }
.types p { font-size: 15px; color: var(--muted); }
.types .card.feature { background: var(--navy); border-color: var(--navy); }
.types .card.feature h3 { color: var(--paper); }
.types .card.feature p { color: var(--on-navy); }
.types .card.feature .std { color: var(--gold-light); }
.skills { margin-top: 36px; padding: 24px 28px; background: var(--paper); border: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.skills b { font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--ink); }
.skills ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; font-weight: 600; }
.skills li::before { content: "✦ "; color: var(--gold); }

/* Why */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; }
.pillars .numeral { font-family: var(--display); font-size: 40px; color: var(--gold); line-height: 1; margin-bottom: 14px; }
.pillars h3 { font-size: 21px; color: var(--paper); margin-bottom: 8px; }
.pillars p { font-size: 15px; color: var(--on-navy-2); }

/* Founders */
.founders { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.founder { display: flex; flex-direction: column; }
.founder .photo { height: 400px; overflow: hidden; border-bottom: 3px solid var(--gold); background: var(--navy); }
.founder .photo > * { width: 100%; height: 118%; object-fit: cover; display: flex; align-items: center; justify-content: center; color: var(--gold-light); font-size: 13px; letter-spacing: .14em; background: var(--navy); transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.founder:hover .photo > * { transform: scale(1.06); }
.founder .body { padding: 34px 34px 32px; display: flex; flex-direction: column; flex: 1; }
.founder .role { font-size: 11.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 8px; }
.founder h3 { font-size: 30px; margin-bottom: 4px; }
.founder .degree { font-weight: 600; color: var(--text); margin-bottom: 12px; }
.founder .bio { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.founder .leads { padding: 14px 18px; background: var(--ivory); font-size: 14px; margin-bottom: 24px; flex: 1; }
.founder .leads b { color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); margin-bottom: 20px; }
.stats div { padding: 16px 6px; text-align: center; }
.stats div + div { border-left: 1px solid var(--line); }
.stats strong { display: block; font-family: var(--display); font-size: 30px; line-height: 1.1; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.stats span { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.profile-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.profile-links a { text-decoration: none; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px 24px; position: relative; }
.steps li { text-align: center; position: relative; }
.steps .dot { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; border: 1px solid var(--gold); background: var(--paper); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 24px; color: var(--ink); position: relative; z-index: 1; }
.steps li:last-child .dot { background: var(--navy); color: var(--gold-light); border-color: var(--navy); }
.steps h3 { font-size: 20px; margin-bottom: 6px; }
.steps p { font-size: 15px; color: var(--muted); }
.steps-wrap { position: relative; }
.steps-line { position: absolute; top: 32px; left: 10%; right: 10%; height: 1px; background: var(--gold); transform-origin: left; }
@media (max-width: 900px) { .steps-line { display: none; } }

/* Publications */
.pub-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 30px; }
.pub-head h2 { font-size: clamp(32px, 4.2vw, 46px); }
.pub-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pub-filters button { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); background: var(--paper); font: 600 13px var(--body); color: var(--ink); cursor: pointer; border-radius: 999px; }
.pub-filters button[aria-pressed="true"] { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.pubs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pubs li { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; padding: 24px 0; border-bottom: 1px solid var(--line); }
.pubs .meta { flex: 1 1 560px; min-width: 0; }
.pubs .t { font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.pubs .a { font-size: 14px; color: var(--muted); }
.pubs .doi { font-size: 14px; overflow-wrap: anywhere; }
.pubs .badges { display: flex; gap: 10px; align-items: center; }
.badge-type { padding: 4px 12px; background: var(--ivory); font-size: 12px; font-weight: 700; color: var(--text); }
.badge-q { padding: 4px 14px; border: 1px solid var(--gold); color: var(--gold-ink); font-size: 13px; font-weight: 700; letter-spacing: .1em; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.quotes figure { margin: 0; padding: 34px 30px; background: var(--ivory); border: 1px solid var(--line); }
.quotes .mark { font-family: var(--display); font-size: 60px; line-height: .6; color: var(--gold); margin-bottom: 6px; }
.quotes blockquote { margin: 0 0 20px; font-family: var(--display); font-size: 18px; font-style: italic; color: var(--ink); }
.quotes figcaption { font-size: 14px; font-weight: 700; color: var(--text); }
.quotes figcaption span { font-weight: 500; color: var(--muted); }

/* CTA */
.cta { position: relative; overflow: hidden; text-align: center; }
.cta h2 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; margin-bottom: 18px; }
.cta p { max-width: 600px; margin: 0 auto 34px; font-size: 18px; color: var(--on-navy); }
.cta .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cta .rings { position: absolute; right: -180px; top: -200px; width: 560px; opacity: .16; pointer-events: none; }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--on-navy-2); font-size: 14px; }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-block: 60px 34px; }
.site-footer .about { flex: 1 1 300px; max-width: 380px; }
.site-footer .about > b { display: block; font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--paper); margin: 14px 0 8px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 48px; }
.site-footer nav div { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav p { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 4px; }
.site-footer a { color: var(--on-navy-2); text-decoration: none; }
.site-footer a:hover { color: var(--paper); }
.site-footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 20px 30px; border-top: 1px solid rgba(201, 162, 74, .22); font-size: 13px; }

/* Inner pages */
.page-hero { background: var(--navy); color: var(--on-navy); text-align: center; position: relative; overflow: hidden; }
.page-hero .wrap { padding-block: 72px 64px; }
.page-hero h1 { color: var(--paper); font-size: clamp(36px, 5vw, 54px); line-height: 1.1; margin-bottom: 14px; }
.page-hero p { max-width: 620px; margin: 0 auto; font-size: 17px; }
.form-card { background: var(--paper); border-top: 3px solid var(--gold); padding: clamp(26px, 4vw, 42px); }
.form-card legend { font-family: var(--display); font-size: 25px; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 22px; float: left; width: 100%; }
.form-card legend span { color: var(--gold); margin-right: 6px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fields { clear: both; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink); }
.field .hint { font-size: 12px; color: var(--muted); }
.field input, .field select, .field textarea {
  min-height: 50px; padding: 0 14px; border: 1px solid var(--field); border-radius: 3px;
  font: inherit; color: var(--ink); background: var(--paper); width: 100%;
}
.field textarea { padding: 12px 14px; resize: vertical; min-height: 130px; }
.field input[type="file"] { padding: 12px 14px; border-style: dashed; border-color: var(--gold); background: var(--ivory); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #B3261E; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text); }
.check input { width: 19px; height: 19px; margin-top: 3px; accent-color: var(--navy); flex: none; }
.form-stack { display: flex; flex-direction: column; gap: 26px; }
.form-error { color: #B3261E; font-size: 14px; font-weight: 600; }
.success { text-align: center; padding: 48px 28px; background: var(--paper); border-top: 3px solid var(--gold); box-shadow: 0 12px 34px rgba(11, 30, 63, .08); }
.success .tick { width: 70px; height: 70px; margin: 0 auto 22px; border-radius: 50%; border: 1.5px solid var(--gold); display: flex; align-items: center; justify-content: center; }
.success h2 { font-size: 34px; margin-bottom: 10px; }
.success p { color: var(--text); margin-bottom: 26px; }
.success .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: -40px; position: relative; }
.info-cards .card { padding: 30px 26px; box-shadow: 0 10px 30px rgba(11, 30, 63, .06); }
.info-cards .k { margin: 14px 0 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }
.info-cards .v { font-family: var(--display); font-size: 19px; color: var(--ink); overflow-wrap: anywhere; }
.info-cards .n { font-size: 14px; color: var(--muted); margin-top: 4px; }
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split > :first-child { flex: 1 1 340px; min-width: 0; }
.split > :last-child { flex: 999 1 520px; min-width: 0; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { padding: 10px 16px; border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; }
.socials a:hover { border-color: var(--gold); }
details.faq { padding: 20px 24px; background: var(--paper); border: 1px solid var(--line); }
details.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--gold-ink); font-size: 22px; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin-top: 12px; color: var(--text); }

.auth { min-height: 100vh; display: flex; flex-wrap: wrap; background: var(--ivory); }
.auth aside { flex: 1 1 440px; position: relative; overflow: hidden; background: var(--navy); color: var(--on-navy); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: 44px max(24px, env(safe-area-inset-left, 0px)) 40px; }
.auth aside h1 { color: var(--paper); font-size: clamp(34px, 4vw, 46px); line-height: 1.12; margin-bottom: 16px; }
.auth aside .rings { position: absolute; right: -200px; bottom: -200px; width: 560px; opacity: .18; pointer-events: none; }
.auth aside > * { position: relative; }
.auth aside .brand { color: var(--paper); }
.auth aside .brand-name small { color: var(--gold-light); }
.auth main { flex: 1.2 1 520px; display: flex; align-items: center; justify-content: center; padding: 48px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px)); }
.auth .panel { width: 100%; max-width: 560px; }
.auth h2 { font-size: 36px; margin-bottom: 6px; }
.auth .sub { color: var(--muted); margin-bottom: 28px; }
.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li::before { content: "✓"; color: var(--gold); font-weight: 700; margin-right: 10px; }
.linklike { border: 0; background: none; padding: 6px 0; font: 700 13px var(--body); color: var(--gold-ink); cursor: pointer; }
.note { font-size: 13px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Portrait */
.founder .photo img { object-position: 50% 12%; }
.founder .metrics { margin: -8px 0 18px; font-size: 13px; color: var(--muted); text-align: center; }

/* Publication stats */
.pub-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold); margin-bottom: 14px; }
.pub-stats div { padding: 22px 12px; text-align: center; }
.pub-stats div + div { border-left: 1px solid var(--line); }
.pub-stats strong { display: block; font-family: var(--display); font-size: clamp(32px, 3.6vw, 42px); line-height: 1.05; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.pub-stats span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pub-stats.lifted { margin-top: -48px; position: relative; box-shadow: 0 16px 40px rgba(11, 30, 63, .1); }
.pub-source { font-size: 13px; color: var(--muted); text-align: center; margin-top: 18px; }
@media (max-width: 640px) { .pub-stats div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* Publication cards */
.paper-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; margin-top: 28px; }
.paper-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease; min-width: 0; }
.paper-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(11, 30, 63, .12); border-color: var(--gold); }
.pc-shot { position: relative; display: block; width: 100%; height: 240px; padding: 18px 18px 0; border: 0; border-bottom: 1px solid var(--line); background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); overflow: hidden; cursor: zoom-in; }
.pc-shot img { width: 100%; height: auto; border-radius: 12px 12px 0 0; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .8s cubic-bezier(.2, .7, .2, 1); transform-origin: 50% 0; }
.paper-card:hover .pc-shot img { transform: translateY(-14px) scale(1.02); }
.pc-zoom { position: absolute; right: 12px; bottom: 12px; padding: 6px 12px; background: rgba(7, 22, 48, .85); color: var(--gold-light); font-size: 12px; font-weight: 700; letter-spacing: .06em; border: 1px solid rgba(232, 207, 138, .5); opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease; }
.paper-card:hover .pc-zoom, .pc-shot:focus-visible .pc-zoom { opacity: 1; transform: none; }
.pc-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 20px; min-width: 0; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pc-tags span { font-size: 11.5px; }
.badge-role { padding: 4px 10px; background: var(--navy); color: var(--gold-light); font-size: 11.5px; font-weight: 700; }
.pc-tags .badge-q { padding: 3px 10px; font-size: 12px; }
.pc-title { font-size: 18px; line-height: 1.35; margin-bottom: 10px; }
.pc-authors { font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.pc-authors b { color: var(--ink); }
.pc-journal { font-size: 14px; color: var(--text); margin-bottom: 16px; flex: 1; }
.pc-journal i { color: var(--ink); font-weight: 600; }
.pc-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; }
.pc-doi { overflow-wrap: anywhere; color: var(--gold-ink); }
.pc-read { font-weight: 700; color: var(--ink); text-decoration: none; }
.pc-read:hover { color: var(--gold-ink); }

/* Publications page */
.pubs-hero .wrap { padding-bottom: 110px; }
.author-chip { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 26px; padding: 6px 20px 6px 6px; border: 1px solid rgba(232, 207, 138, .45); border-radius: 999px; background: rgba(7, 22, 48, .5); text-align: left; }
.author-chip img { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--gold); object-fit: cover; }
.author-chip b { display: block; color: var(--paper); font-family: var(--display); font-size: 18px; font-weight: 600; }
.author-chip small { font-size: 12px; color: var(--gold-light); letter-spacing: .06em; }
.pub-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 20px; padding: 22px; background: var(--paper); border: 1px solid var(--line); }
.pub-search { flex: 1 1 280px; }
.pub-select { flex: 0 1 220px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-row button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); background: var(--paper); font: 600 13px var(--body); color: var(--ink); cursor: pointer; border-radius: 999px; }
.chip-row button[aria-pressed="true"] { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.pub-count { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--muted); }
.pub-empty { margin-top: 30px; padding: 30px; text-align: center; background: var(--paper); border: 1px dashed var(--field); color: var(--muted); }

/* Lightbox */
.lightbox { width: min(560px, 94vw); max-height: 92vh; padding: 0; border: 1px solid rgba(201, 162, 74, .5); background: var(--navy-deep); color: var(--paper); }
.lightbox::backdrop { background: rgba(7, 22, 48, .82); backdrop-filter: blur(4px); }
.lightbox[open] { display: flex; flex-direction: column; }
.lb-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-bottom: 1px solid rgba(201, 162, 74, .3); }
.lb-title { font-size: 13px; font-weight: 600; color: var(--gold-light); min-width: 0; flex: 1 1 160px; }
.lb-actions { display: flex; gap: 6px; }
.lb-btn { min-width: 40px; min-height: 40px; padding: 0 12px; border: 1px solid rgba(232, 207, 138, .4); background: transparent; color: var(--paper); font: 700 15px var(--body); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.lb-btn:hover { background: var(--gold); color: var(--navy); }
.lb-link { font-size: 12.5px; letter-spacing: .04em; }
.lb-body { overflow-y: auto; background: var(--paper); }
.lb-body img { width: 100%; height: auto; }
.pub-stats strong span, .stats strong span { font: inherit; letter-spacing: inherit; text-transform: none; color: inherit; }
.pub-select { flex: 1 1 200px; }
.pub-select { max-width: 260px; }

.stats.single { grid-template-columns: 1fr; }
.pub-stats.single { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
.pub-stats.single div { padding: 26px 16px; }

/* Logo */
.logo-mark { width: 52px; height: 52px; flex: none; color: #35383D; }
.brand { gap: 10px; }
.brand-name { position: relative; padding-bottom: 5px; }
.brand-name::after { content: ""; position: absolute; left: 0; right: -6px; bottom: 0; height: 1.5px; background: #8CC6BF; }
.brand-name b { font-family: Lexend, "Segoe UI", system-ui, sans-serif; font-size: 24px; font-weight: 600; letter-spacing: -.01em; color: #35383D; line-height: 1; }
.brand-name small { font-family: Lexend, "Segoe UI", system-ui, sans-serif; font-size: 13.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: #35383D; margin-top: 3px; }
.on-dark .logo-mark, .auth aside .logo-mark, .site-footer .logo-mark { color: #EEF1F5; }
.on-dark .brand-name b, .auth aside .brand-name b, .site-footer .brand-name b,
.on-dark .brand-name small, .auth aside .brand-name small, .site-footer .brand-name small { color: #EEF1F5; }
.site-footer .about .brand-name { display: inline-flex; flex-direction: column; margin: 12px 0 14px; }
.site-footer .about .logo-mark { width: 48px; height: 48px; }
@media (max-width: 700px) { .logo-mark { width: 40px; height: 40px; } .brand-name b { font-size: 19px; } .brand-name small { font-size: 11.5px; } }
.site-footer .about .logo-mark { display: inline-block; vertical-align: middle; margin-right: 10px; }
.site-footer .about .brand-name { vertical-align: middle; margin: 0; }
.site-footer .about > p { margin-top: 16px; }

/* Founder tabs on the Publications page */
.person-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.person-tabs.lifted { margin-top: -48px; position: relative; }
.person-tab { display: flex; align-items: center; gap: 16px; padding: 18px 22px; text-align: left; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--line); cursor: pointer; font: inherit; color: var(--ink); box-shadow: 0 14px 34px rgba(11, 30, 63, .08); transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease; min-width: 0; }
.person-tab:hover { transform: translateY(-3px); }
.person-tab[aria-selected="true"] { border-top-color: var(--gold); background: var(--paper); box-shadow: 0 18px 40px rgba(11, 30, 63, .14); }
.person-tab[aria-selected="false"] { opacity: .78; }
.person-tab img { width: 60px; height: 60px; border-radius: 50%; border: 1.5px solid var(--gold); object-fit: cover; flex: none; }
.pt-text { flex: 1; min-width: 0; }
.pt-text b { display: block; font-family: var(--display); font-size: 19px; font-weight: 600; }
.pt-text small { font-size: 12.5px; color: var(--gold-ink); font-weight: 600; }
.pt-num { text-align: right; flex: none; max-width: 130px; }
.pt-num strong { display: block; font-family: var(--display); font-size: 34px; line-height: 1; font-weight: 600; }
.pt-num small { font-size: 11px; line-height: 1.3; color: var(--muted); display: block; margin-top: 4px; }
@media (max-width: 480px) { .pt-num { display: none; } }

/* Papers without a screenshot */
.pc-shot.pc-noimg { padding: 18px; cursor: pointer; text-decoration: none; }
.pc-ph { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 20px 22px; border: 1px solid rgba(201, 162, 74, .45); background: radial-gradient(120% 120% at 80% 0%, rgba(201, 162, 74, .18), transparent 60%); }
.pc-ph-type { font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
.pc-ph-venue { font-family: var(--display); font-size: 22px; line-height: 1.25; color: var(--paper); }
.pc-ph-year { font-size: 13px; color: var(--on-navy-2); }
.pub-stats a { display: block; padding: 22px 16px; text-align: center; text-decoration: none; transition: background-color .3s ease; }
.pub-stats a:hover { background: var(--ivory); }
.pub-stats a + a { border-left: 1px solid var(--line); }
.pub-stats a span:last-child { display: block; max-width: 280px; margin: 4px auto 0; line-height: 1.5; }
@media (max-width: 640px) { .pub-stats a + a { border-left: 0; border-top: 1px solid var(--line); } }
.hero h1.hero-title { font-size: clamp(36px, 5vw, 60px); line-height: 1.08; }
.pathways-sec .path h3 { color: var(--ink); }
.pathways-sec .path-dark h3 { color: var(--paper); }
.path h3, .types h3, .featured h3, .pillars h3, .steps h3 { line-height: 1.25; }

/* Page transition */
.page-veil { position: fixed; inset: 0; z-index: 300; pointer-events: none; display: flex; align-items: center; justify-content: center; background: radial-gradient(90% 90% at 50% 45%, #12305F 0%, var(--navy) 55%, var(--navy-deep) 100%); transform-origin: 0% 50%; animation: pv-out .8s cubic-bezier(.7, 0, .2, 1) .05s both; }
.page-veil.pv-in { pointer-events: auto; transform-origin: 100% 50%; animation: pv-in .48s cubic-bezier(.7, 0, .2, 1) both; }
.pv-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.page-veil .logo-mark { width: 92px; height: 92px; color: #EEF1F5; animation: pv-spin 2.4s linear infinite; }
.pv-word { font-family: Lexend, "Segoe UI", system-ui, sans-serif; font-size: 22px; font-weight: 600; color: #EEF1F5; letter-spacing: .02em; }
@keyframes pv-out { from { transform: perspective(1600px) rotateY(0deg); opacity: 1; visibility: visible; } to { transform: perspective(1600px) rotateY(-96deg); opacity: 0; visibility: hidden; } }
@keyframes pv-in { from { transform: perspective(1600px) rotateY(96deg); opacity: 0; visibility: visible; } to { transform: perspective(1600px) rotateY(0deg); opacity: 1; visibility: visible; } }
@keyframes pv-spin { to { transform: rotate(360deg); } }

/* Step circles spin as they light up */
.steps .dot { transition: background-color .45s ease, color .45s ease, border-color .45s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.steps li.lit .dot { transform: perspective(500px) rotateY(360deg) scale(1.08); }
.person-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.person-links a { padding: 9px 16px; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: none; transition: border-color .3s ease, color .3s ease; }
.person-links a:hover { border-color: var(--gold); color: var(--gold-ink); }

/* Profile buttons */
.social-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.person-links.social-btns { justify-content: center; margin-top: 22px; }
.sbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease; }
.sbtn svg { width: 20px; height: 20px; flex: none; }
.sbtn:hover { transform: translateY(-2px); border-color: currentColor; box-shadow: 0 8px 20px rgba(11, 30, 63, .1); }
.sbtn.sbtn-scholar { color: #4285F4; }
.sbtn.sbtn-researchgate { color: #00CCBB; }
.sbtn.sbtn-orcid { color: #A6CE39; }
.sbtn.sbtn-linkedin { color: #0A66C2; }
.sbtn.sbtn-instagram { color: #D6249F; }
.sbtn span { color: var(--ink); }
.person-links a { padding: 0 14px 0 10px; }
.topbar .tb-mail { color: var(--on-navy); text-decoration: none; }
.topbar .tb-mail:hover { color: var(--gold-light); }
.info-cards .v-link { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.info-cards .v-link:hover { color: var(--gold-ink); }
.sbtn.sbtn-email { color: var(--gold-ink); }
.sbtn.sbtn-email span { font-weight: 600; overflow-wrap: anywhere; }

/* Specialty program cards: each with its own colour and icon */
.featured .spec-card { position: relative; overflow: hidden; border-top: 3px solid var(--c); background: linear-gradient(160deg, var(--ct) 0%, var(--paper) 46%); }
.featured .spec-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, var(--cg), transparent 70%); transition: transform .6s ease; pointer-events: none; }
.featured .spec-card:hover { border-color: var(--c); box-shadow: 0 18px 40px var(--cg); }
.featured .spec-card:hover::after { transform: scale(1.6); }
.spec-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.spec-badge { width: 54px; height: 54px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: var(--paper); color: var(--c); box-shadow: 0 0 0 1px var(--cg), 0 8px 18px var(--ct); transition: transform .5s cubic-bezier(.2, .7, .2, 1), background-color .3s ease, color .3s ease; }
.spec-ico { width: 30px; height: 30px; }
.featured .spec-card:hover .spec-badge { transform: rotateY(180deg) scale(1.05); background: var(--c); color: #FFFFFF; }
.featured .spec-card .num { font-family: var(--display); font-size: 26px; line-height: 1; margin: 0; color: var(--c); opacity: .9; }
.featured .spec-card h3 { color: var(--ink); }
.featured .spec-more { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%); border-top-color: var(--gold); }
.featured .spec-more h3 { color: var(--paper); }
.featured .spec-more p { color: var(--on-navy); }
.featured .spec-more .spec-badge { background: rgba(255, 255, 255, .06); color: var(--gold-light); box-shadow: 0 0 0 1px rgba(232, 207, 138, .35); }
.featured .spec-more .num { color: var(--gold-light); }

/* Specialty cards with animated scenes */
.featured .spec-card.fx { min-height: 340px; justify-content: flex-end; background: #071630; border: 0; border-top: 3px solid var(--c); color: var(--paper); isolation: isolate; }
.featured .spec-card.fx::after { display: none; }
.featured .spec-card.fx::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 22, 48, .05) 0%, rgba(7, 22, 48, .2) 38%, rgba(7, 22, 48, .88) 72%, rgba(7, 22, 48, .97) 100%); pointer-events: none; }
.spec-media { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.featured .spec-card.fx:hover .spec-media { transform: scale(1.06); }
.featured .spec-card.fx .spec-top { position: absolute; top: 18px; left: 20px; right: 20px; margin: 0; }
.featured .spec-card.fx .spec-badge { width: 46px; height: 46px; border-radius: 14px; background: rgba(7, 22, 48, .55); color: var(--c); box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.featured .spec-card.fx .spec-ico { width: 26px; height: 26px; }
.featured .spec-card.fx:hover .spec-badge { background: var(--c); color: #FFFFFF; }
.featured .spec-card.fx .num { color: #FFFFFF; opacity: .85; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.featured .spec-card.fx h3 { color: #FFFFFF; position: relative; padding-top: 14px; }
.featured .spec-card.fx h3::before { content: ""; position: absolute; left: 0; top: 0; width: 36px; height: 3px; background: var(--c); border-radius: 2px; transition: width .4s ease; }
.featured .spec-card.fx:hover h3::before { width: 72px; }
.featured .spec-card.fx p { color: #D3DAE6; }
.featured .spec-card.fx:hover { box-shadow: 0 22px 46px rgba(7, 22, 48, .35), 0 0 0 1px var(--c); }

/* Keep founder titles on one line */
.duo .title, .duo .role, .founder .role, .pt-text small { white-space: nowrap; }
.founder .role { font-size: clamp(10px, 2.6vw, 11.5px); letter-spacing: .18em; }
@media (max-width: 480px) {
  .duo .title { font-size: 12px; }
  .duo .role { letter-spacing: .12em; }
  .founder .role { letter-spacing: .1em; }
  .pt-text small { font-size: 11.5px; }
}
.founder .role { font-size: 11px; letter-spacing: .12em; }

/* Specialty folders: program cards and tags link to the publications in that field */
.spec-card .spec-pubs { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 14px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #E8CF8A; }
.spec-card .spec-pubs span { transition: transform .3s ease; }
.spec-card:hover .spec-pubs span { transform: translateX(4px); }
.tags a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid var(--gold); background: rgba(201, 162, 74, .08); font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
.tags a small { font-size: 11px; font-weight: 800; min-width: 20px; padding: 2px 6px; text-align: center; background: var(--navy); color: var(--gold-soft, #E8CF8A); }
.tags a:hover, .tags a:focus-visible { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.tags a:hover small { background: var(--gold); color: var(--navy); }

/* Publications page: specialty view */
.spec-banner { margin-top: 36px; padding: 22px 26px; background: var(--navy); color: var(--paper); border-top: 3px solid var(--gold); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; box-shadow: 0 18px 40px rgba(11, 30, 63, .16); }
.spec-banner small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #E8CF8A; }
.spec-banner h2 { margin: 4px 0 0; font-size: clamp(22px, 3vw, 30px); color: var(--paper); }
.spec-banner p { margin: 6px 0 0; font-size: 14px; color: rgba(255, 255, 255, .78); }
.spec-banner button { font: inherit; font-size: 14px; font-weight: 700; padding: 11px 18px; background: transparent; color: #E8CF8A; border: 1px solid #E8CF8A; cursor: pointer; transition: background-color .3s ease, color .3s ease; }
.spec-banner button:hover { background: #E8CF8A; color: var(--navy); }
.pub-toolbar .pub-select select#pub-spec { max-width: 260px; }
.pc-owners { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pc-owner { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--ink); }
.pc-owner img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.pc-spec { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .03em; }
.spec-banner { scroll-margin-top: 110px; } .pc-spec { margin: 0 0 6px; }
@media (max-width: 760px) { .spec-banner { scroll-margin-top: 150px; } }
.hp { display: none !important; }

/* Policy pages */
.legal-wrap { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 56px; justify-content: center; padding-block: 64px 96px; }
.legal-nav { position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.legal-nav a { padding: 12px 16px; border-left: 3px solid var(--line); font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; transition: border-color .3s ease, background-color .3s ease; }
.legal-nav a:hover { border-left-color: var(--gold); background: rgba(201, 162, 74, .06); }
.legal-nav a[aria-current="page"] { border-left-color: var(--gold); background: var(--paper); box-shadow: 0 10px 26px rgba(11, 30, 63, .07); }
.legal { font-size: 16.5px; line-height: 1.75; color: var(--ink-2, #33415C); }
.legal .lede { font-size: 18.5px; line-height: 1.7; color: var(--ink); padding-bottom: 26px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.legal h2 { font-size: clamp(21px, 2.4vw, 25px); margin: 40px 0 12px; color: var(--ink); }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--gold-ink); font-weight: 700; }
.legal a { color: var(--gold-ink); font-weight: 600; }
.site-footer .legal-links a { color: inherit; }
@media (max-width: 860px) {
  .legal-wrap { grid-template-columns: 1fr; gap: 28px; padding-block: 36px 72px; }
  .legal-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .legal-nav a { border-left: 0; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 13.5px; }
  .legal-nav a[aria-current="page"] { border-color: var(--gold); }
}
.check a { color: var(--gold-ink); font-weight: 700; }

/* Student stories */
.quote-card { display: flex; flex-direction: column; margin: 0; padding: 34px 30px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold); box-shadow: 0 14px 34px rgba(11, 30, 63, .06); }
.quote-card .mark { font-family: var(--display); font-size: 60px; line-height: .6; color: var(--gold); margin-bottom: 6px; }
.quote-card blockquote { margin: 0 0 16px; font-family: var(--display); font-size: 18px; font-style: italic; line-height: 1.6; color: var(--ink); }
.quote-card .q-outcome { align-self: flex-start; margin: 0 0 18px; padding: 5px 10px; font-size: 12.5px; font-weight: 700; color: var(--gold-ink); background: rgba(201, 162, 74, .1); border: 1px solid rgba(201, 162, 74, .35); }
.quote-card figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.quote-card figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--gold); }
.quote-card .q-who b { display: block; font-size: 15px; color: var(--ink); }
.quote-card .q-who small { display: block; font-size: 13px; color: var(--muted); }
.quotes-empty { max-width: 640px; margin: 0 auto; text-align: center; padding: 48px 32px; border: 1px dashed rgba(201, 162, 74, .6); background: var(--paper); }
.quotes-empty .mark { font-family: var(--display); font-size: 80px; line-height: .6; color: var(--gold); margin: 10px 0 8px; }
.quotes-empty h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 12px; }
.quotes-empty p { color: var(--muted); margin-bottom: 24px; }

/* Running testimonials band on the homepage */
.marquee { display: flex; flex-direction: column; gap: 22px; overflow: hidden; margin-inline: calc(50% - 50vw); padding-block: 6px 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; gap: 22px; width: max-content; animation: nm-marquee var(--dur, 60s) linear infinite; }
.marquee-track.reverse { animation-direction: reverse; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee .quote-card { width: 380px; flex: none; }
.marquee .quote-card blockquote { font-size: 16.5px; }
@keyframes nm-marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 11px)); } }
@media (max-width: 760px) { .marquee .quote-card { width: 300px; padding: 26px 22px; } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; }
  .marquee-track [aria-hidden="true"] { display: none; }
}
.quote-card .q-who .q-place { color: var(--gold-ink); font-weight: 600; }
.quotes-all { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

/* Testimonials: initials badge, wall, stats, homepage band clamp, pop-up */
.quote-card .q-ini, .t-toast .q-ini { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #E8CF8A; font-family: var(--display); font-size: 16px; font-weight: 700; letter-spacing: .02em; border: 1.5px solid var(--gold); }
.marquee .quote-card { align-self: stretch; }
.marquee .quote-card blockquote { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.t-wall { columns: 3 320px; column-gap: 24px; }
.t-wall .quote-card { break-inside: avoid; margin: 0 0 24px; }
.t-note { text-align: center; color: var(--muted); font-size: 14px; margin: -8px 0 34px; }
.t-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 46px; margin-top: 34px; }
.t-stats span { display: flex; flex-direction: column; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.t-stats b { font-family: var(--display); font-size: clamp(34px, 4vw, 44px); line-height: 1.1; letter-spacing: 0; color: #E8CF8A; }
.t-toast { position: fixed; left: 18px; bottom: 18px; z-index: 950; width: min(300px, calc(100vw - 32px)); padding: 13px 34px 12px 15px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold); box-shadow: 0 16px 40px rgba(11, 30, 63, .2); cursor: pointer; opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .45s ease, transform .45s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.t-toast.show { opacity: 1; transform: none; pointer-events: auto; }
.t-toast blockquote { margin: 0 0 9px; font-family: var(--display); font-style: italic; font-size: 13.5px; line-height: 1.45; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t-toast figcaption { display: flex; align-items: center; gap: 9px; }
.t-toast .q-ini { width: 30px; height: 30px; font-size: 11.5px; border-width: 1px; }
.t-toast figcaption img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.t-toast .q-who b { display: block; font-size: 12.5px; line-height: 1.3; color: var(--ink); }
.t-toast .q-who small { display: block; font-size: 11px; line-height: 1.3; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.t-toast .q-who .q-place { color: var(--gold-ink); font-weight: 600; }
.t-toast .t-close { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: 0; background: none; font-size: 18px; line-height: 1; color: var(--muted); cursor: pointer; }
.t-toast .t-close:hover { color: var(--ink); }
@media (max-width: 760px) {
  .t-toast { left: 12px; bottom: 12px; width: min(270px, calc(100vw - 24px)); padding: 10px 30px 10px 12px; }
  .t-toast blockquote { font-size: 12.5px; margin-bottom: 7px; }
  .t-toast .q-who small { max-width: 190px; }
}
@media (prefers-reduced-motion: reduce) { .t-toast { transition: none; } }

/* Keep 3D entrance animations from widening the page on phones */
html, body { overflow-x: clip; }

/* Academy social links */
.academy-social { margin-top: 18px; }
.foot-social { display: inline-flex; gap: 10px; align-items: center; }
.foot-social a, .topbar-social a { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: inherit; opacity: .85; transition: opacity .2s ease, color .2s ease; }
.foot-social a:hover, .topbar-social a:hover { opacity: 1; color: #E8CF8A; }
.foot-social svg, .topbar-social svg { width: 18px; height: 18px; }
.topbar-social { display: inline-flex; gap: 4px; margin-left: 14px; vertical-align: middle; }
@media (max-width: 760px) { .topbar .contact .topbar-social { display: none; } }
.foot-social svg text, .topbar-social svg text { fill: #0B1E3F; }

/* New publication pop-up (homepage) and badges */
.badge-new { padding: 3px 10px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: var(--gold); color: var(--navy); }
.badge-idx { padding: 3px 10px; font-size: 12px; font-weight: 700; color: var(--navy); border: 1px solid rgba(11, 30, 63, .25); background: var(--paper); }
.np-wrap { position: fixed; inset: 0; z-index: 980; display: grid; place-items: center; padding: 24px; }
.np-wrap[hidden] { display: none; }
.np-wrap:not(.show) { pointer-events: none; }
.np-shade { position: absolute; inset: 0; background: rgba(7, 18, 40, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .45s ease; }
.np { position: relative; width: min(860px, 100%); max-height: calc(100vh - 48px); overflow: auto; display: grid; grid-template-columns: 250px 1fr; background: var(--paper); border-top: 5px solid var(--gold); box-shadow: 0 40px 100px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(28px) scale(.95) perspective(1200px) rotateX(6deg); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.np-wrap.show .np-shade { opacity: 1; }
.np-wrap.show .np { opacity: 1; transform: none; }
.np-thumb { display: block; background: linear-gradient(180deg, #10345c, #081630); }
.np-thumb { display: flex; align-items: center; justify-content: center; padding: 28px 22px; }
.np-thumb img { display: block; width: 100%; height: auto; max-height: 100%; object-fit: contain; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.np-body { padding: 36px 40px 34px; min-width: 0; }
.np-label { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }
.np-label::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--gold); vertical-align: 1px; box-shadow: 0 0 0 4px rgba(201, 162, 74, .22); animation: np-pulse 1.8s ease-in-out infinite; }
@keyframes np-pulse { 50% { box-shadow: 0 0 0 8px rgba(201, 162, 74, 0); } }
.np-title { margin: 0 0 14px; font-size: clamp(21px, 2.3vw, 27px); line-height: 1.3; color: var(--ink); }
.np-authors { margin: 0 0 10px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.np-authors b { color: var(--ink); }
.np-journal { margin: 0 0 16px; font-size: 15px; color: var(--text); }
.np-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.np-tags .badge-q { padding: 4px 12px; font-size: 13px; }
.np-tags .badge-idx, .np-tags .badge-type { padding: 4px 12px; font-size: 12.5px; }
.np-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.np-close { position: absolute; top: 10px; right: 12px; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); font-size: 26px; line-height: 1; color: var(--ink); cursor: pointer; }
.np-close:hover, .np-close:focus-visible { background: var(--ivory); }
@media (max-width: 760px) {
  .np-wrap { padding: 14px; }
  .np { grid-template-columns: 1fr; max-height: calc(100vh - 28px); }
  .np-thumb { padding: 14px; height: 130px; }
  .np-thumb img { width: auto; height: 100%; }
  .np-body { padding: 18px 18px 20px; }
  .np-label { font-size: 10.5px; margin-bottom: 8px; }
  .np-title { font-size: 17px; margin-bottom: 10px; }
  .np-authors { font-size: 12.5px; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .np-journal { font-size: 12.5px; margin-bottom: 12px; }
  .np-tags { gap: 6px; margin-bottom: 16px; }
  .np-tags .badge-q, .np-tags .badge-idx, .np-tags .badge-type { padding: 3px 9px; font-size: 11px; }
  .np-actions .btn { flex: 1 1 auto; text-align: center; padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) { .np, .np-shade { transition: none; } .np-label::before { animation: none; } }
