/* ================================================================
   V17.1 — "Scholar's Registry" · complete theme
   The ONLY theme stylesheet. Base: Bootstrap grid/utilities.
   Type: Newsreader (display) · Inter (body) · JetBrains Mono (records)
   Palette: oxford ink · cool paper · verdigris · brass
   ================================================================ */

:root {
  --ink: #112b4e;
  --ink-2: #1a3d6b;
  --paper: #f5f8fb;
  --paper-2: #e2ebf5;
  --card: #ffffff;
  --line: #d5e0eb;
  --line-2: #b9cadb;
  --text: #33495f;
  --muted: #5d7590;
  --accent: #2565ad;
  --accent-deep: #17457f;
  --accent-soft: rgba(37, 101, 173, 0.10);
  --brass: #d9a13b;
  --brass-soft: rgba(217, 161, 59, 0.16);
  --ok: #15803d;
  --ok-soft: rgba(21, 128, 61, 0.1);
  --shadow: 0 16px 44px rgba(11, 24, 38, 0.10);
  --shadow-sm: 0 6px 18px rgba(11, 24, 38, 0.07);
  --r: 16px;
  --r-sm: 12px;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --nav-h: 72px;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.84);
  --glass-line: rgba(255, 255, 255, 0.65);
  --glass-blur: 16px;
}

/* ---------------- Base ---------------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(56vw 44vh at 12% 8%, rgba(37, 101, 173, 0.10), transparent 62%),
    radial-gradient(48vw 40vh at 92% 30%, rgba(23, 69, 127, 0.08), transparent 60%),
    radial-gradient(44vw 38vh at 24% 88%, rgba(217, 161, 59, 0.07), transparent 58%),
    radial-gradient(40vw 34vh at 78% 96%, rgba(37, 101, 173, 0.06), transparent 58%);
}
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); letter-spacing: -0.012em; }
a { color: var(--accent); text-decoration: none; transition: color 0.16s ease; }
a:hover { color: var(--accent-deep); }
img { max-width: 100%; }
::selection { background: rgba(37, 101, 173, 0.16); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

section { padding: 84px 0; }
section.v17-alt, section.section-bg {
  background: linear-gradient(180deg, #dbe6f2 0%, var(--paper-2) 22%, var(--paper-2) 78%, #dbe6f2 100%);
  border-top: 1px solid #c3d5e8;
  border-bottom: 1px solid #c3d5e8;
}

/* Reveal-on-scroll (v17.js adds .v17-in) */
[data-reveal], [data-aos] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.v17-in[data-reveal], .v17-in[data-aos] { opacity: 1; transform: none; }
.no-observer [data-reveal], .no-observer [data-aos] { opacity: 1; transform: none; }

/* Unified section header */
.section-title { padding-bottom: 28px; }
.section-title h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 500;
  margin: 0 0 8px;
  position: relative;
  padding-bottom: 16px;
}
.section-title h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 38px; height: 3px;
  background: var(--brass);
  border-radius: 2px;
}
.section-title p { color: var(--text); max-width: 72ch; margin: 0; }
.section-title h3 { font-weight: 500; }

/* ---------------- Topbar ---------------- */
.v17-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(237, 241, 245, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.v17-topbar.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(13, 27, 42, 0.06);
}
.v17-topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 100%;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.v17-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.v17-brand-photo {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--card);
  box-shadow: 0 0 0 2px var(--accent-soft), var(--shadow-sm);
  flex: 0 0 auto;
  background: var(--card);
}
.v17-brand-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.v17-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.v17-nav-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 8px;
  background: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.16s ease, background 0.16s ease;
}
.v17-nav-link:hover { color: var(--ink); background: rgba(13, 27, 42, 0.05); }
.v17-nav-link.is-active { color: var(--accent-deep); background: var(--accent-soft); }
.v17-nav-drop { position: relative; }
.v17-drop-toggle i { font-size: 11px; transition: transform 0.18s ease; }
.v17-nav-drop.is-open .v17-drop-toggle i { transform: rotate(180deg); }
.v17-drop-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 230px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
}
.v17-nav-drop.is-open .v17-drop-menu { display: block; }
.v17-drop-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
}
.v17-drop-menu a i { color: var(--accent); font-size: 15px; }
.v17-drop-menu a:hover { background: var(--accent-soft); color: var(--accent-deep); }
.v17-topbar-actions { display: flex; align-items: center; gap: 8px; }
.v17-icon-link {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: var(--muted);
  border: 1px solid transparent;
  font-size: 16px;
}
.v17-icon-link:hover { color: var(--accent-deep); background: var(--accent-soft); }
.v17-cta-mini {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--brass);
  border-radius: 10px;
  padding: 9px 14px;
  font-weight: 600;
}
.v17-cta-mini:hover { background: #c78d28; color: var(--ink); }
.v17-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 0 10px;
}
.v17-nav-toggle span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.v17-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.v17-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.v17-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1099px) {
  .v17-brand-name { display: none; }
  .v17-nav {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 18px 18px;
    display: none;
  }
  .v17-nav.is-open { display: flex; }
  .v17-nav-link { justify-content: flex-start; font-size: 13px; padding: 12px 12px; }
  .v17-drop-menu {
    position: static;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    margin: 2px 0 6px 14px;
    padding: 0;
    min-width: 0;
  }
  .v17-nav-toggle { display: flex; }
  .v17-icon-link { display: none; }
}

/* ---------------- Hero ---------------- */
.v17-hero {
  position: relative;
  min-height: var(--app-height, 100vh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) 0 64px;
  overflow: hidden;
}
.v17-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 560px at 88% -10%, rgba(37, 101, 173, 0.16), transparent 58%),
    radial-gradient(720px 480px at -6% 110%, rgba(217, 161, 59, 0.10), transparent 55%),
    linear-gradient(180deg, #f2f6f9 0%, var(--paper) 100%);
}
.v17-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 24, 38, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 24, 38, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(720px 460px at 68% 12%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(720px 460px at 68% 12%, #000 0%, transparent 72%);
}
.v17-hero .container { position: relative; }
.v17-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 48px;
  align-items: center;
}
.v17-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid rgba(37, 101, 173, 0.22);
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 20px;
}
.v17-hero-name {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 500;
  line-height: 1.06;
  color: var(--ink);
  margin: 0 0 14px;
}
.v17-hero-typed {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--accent-deep);
  min-height: 24px;
  margin: 0 0 16px;
}
.v17-caret {
  display: inline-block;
  width: 9px; height: 18px;
  margin-left: 3px;
  background: var(--brass);
  vertical-align: text-bottom;
  animation: v17blink 1s steps(1) infinite;
}
@keyframes v17blink { 50% { opacity: 0; } }
.v17-hero-lead {
  color: var(--text);
  font-size: 17px;
  max-width: 60ch;
  margin: 0 0 26px;
}
.v17-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.v17-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 14.5px;
  border-radius: 11px;
  padding: 12px 20px;
  border: 1px solid transparent;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}
.v17-btn:hover { transform: translateY(-2px); }
.v17-btn-solid { background: var(--brass); color: var(--ink); box-shadow: 0 12px 26px rgba(217, 161, 59, 0.4); }
.v17-btn-solid:hover { background: #c78d28; color: var(--ink); }
.v17-btn-line { background: var(--card); border-color: var(--line-2); color: var(--ink); }
.v17-btn-line:hover { border-color: var(--accent); color: var(--accent-deep); }
.v17-btn-ghost { color: var(--ink); }
.v17-btn-ghost:hover { background: rgba(13, 27, 42, 0.05); color: var(--ink); }
.v17-hero-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.v17-hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}
.v17-hero-links a i { color: var(--accent); }
.v17-hero-links a:hover { color: var(--accent-deep); }

.v17-hero-side { display: flex; flex-direction: column; align-items: center; gap: 0; }
.v17-portrait {
  position: relative;
  width: min(320px, 78%);
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 12px;
}
.v17-portrait img { display: block; width: 100%; border-radius: 12px; }
.v17-portrait-corner {
  position: absolute;
  top: -10px; right: -10px;
  width: 46px; height: 46px;
  border-top: 3px solid var(--brass);
  border-right: 3px solid var(--brass);
  border-radius: 0 14px 0 0;
}
.v17-portrait-plate {
  margin-top: -18px;
  z-index: 2;
  background: var(--ink);
  color: #e8eef4;
  border-radius: 12px;
  padding: 12px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.v17-plate-role { font-family: var(--serif); font-size: 16px; }
.v17-plate-org { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #93a9bd; }

/* Registry ledger */
.v17-ledger {
  margin-top: clamp(30px, 4.5vh, 54px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  overflow: hidden;
}
.v17-ledger-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-right: -1px;
  margin-bottom: -1px;
  transition: background 0.16s ease;
}
.v17-ledger-cell:hover { background: var(--accent-soft); }
.v17-ledger-num { font-family: var(--mono); font-weight: 600; font-size: 26px; color: var(--ink); line-height: 1; }
.v17-ledger-cell:hover .v17-ledger-num { color: var(--accent-deep); }
.v17-ledger-lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: center; }
.v17-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--muted);
  background: var(--card);
  animation: v17bob 2.4s ease-in-out infinite;
}
@keyframes v17bob { 50% { transform: translate(-50%, 6px); } }

@media (max-width: 991px) {
  .v17-hero { padding-top: calc(var(--nav-h) + 40px); }
  .v17-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .v17-hero-side { order: -1; }
  .v17-portrait { width: min(260px, 70%); }
  .v17-scroll-hint { display: none; }
}

/* ---------------- About ---------------- */
.about-photo-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: 12px;
}
.about-photo-card img { border-radius: 10px; display: block; }
.about-kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 14px;
}
.about-summary .about-line, .about-summary p { color: var(--text); margin-bottom: 14px; }
.about-summary strong { color: var(--ink); }

/* ---------------- Shared board pattern (IP / Funding / Media / Academic) ---------------- */
.ip-profile-board, .funding-profile-board, .media-visibility-board, .academic-premium-board {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: clamp(22px, 3.4vw, 40px);
}
.ip-profile-head, .funding-profile-head, .media-visibility-head, .academic-board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.ip-profile-head h2, .funding-profile-head h2, .media-visibility-head h2, .academic-board-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  margin: 6px 0;
}
.ip-profile-head p, .funding-profile-head p, .media-visibility-head p, .academic-board-head p {
  color: var(--muted); margin: 0; max-width: 70ch;
}
.ip-profile-eyebrow, .funding-profile-eyebrow, .media-visibility-eyebrow, .academic-board-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.ip-profile-badge, .funding-profile-badge, .media-visibility-badge {
  background: var(--ink);
  color: #f2f6f9;
  border-radius: 12px;
  padding: 12px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 96px;
}
.ip-profile-badge span, .funding-profile-badge span, .media-visibility-badge span {
  font-family: var(--mono); font-weight: 600; font-size: 18px;
}
.ip-profile-badge small, .funding-profile-badge small, .media-visibility-badge small {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #93a9bd;
}
.ip-profile-stats, .funding-profile-stats, .academic-board-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.ip-profile-stats span, .funding-profile-stats span, .academic-board-stats > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 12px;
  border-right: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.ip-profile-stats span:last-child, .funding-profile-stats span:last-child, .academic-board-stats > span:last-child { border-right: 0; }
.ip-profile-stats strong, .funding-profile-stats strong, .academic-board-stats strong {
  font-size: 22px; color: var(--ink); font-weight: 600;
}

/* Board items */
.ip-profile-list, .funding-profile-list, .media-visibility-list { display: flex; flex-direction: column; gap: 16px; }
.ip-profile-item, .funding-profile-item, .media-visibility-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 220px;
  gap: 18px;
  background: #f2f6fa;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 20px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.ip-profile-item:hover, .funding-profile-item:hover, .media-visibility-item:hover {
  border-color: rgba(37, 101, 173, 0.4);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.ip-profile-item.is-featured, .funding-profile-item.is-featured, .media-visibility-item.is-featured {
  border-color: rgba(217, 161, 59, 0.55);
  background: linear-gradient(180deg, #fdf7ea 0%, #f2f6fa 62%);
}
.ip-profile-icon, .funding-profile-icon, .media-visibility-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(37, 101, 173, 0.2);
  color: var(--accent);
  font-size: 22px;
  overflow: hidden;
}
.ip-profile-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.ip-profile-main h3, .funding-profile-main h3, .media-visibility-main h3 {
  font-size: 19px; font-weight: 500; margin: 8px 0 8px; line-height: 1.35;
}
.ip-profile-main p, .funding-profile-main p, .media-visibility-main p { color: var(--text); font-size: 14.5px; margin-bottom: 8px; }
.ip-profile-type {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 8px;
}
.ip-profile-tags, .funding-profile-tags, .media-visibility-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* Pills */
.patent-status-pill, .funding-status-pill, .media-pill, .funding-program-pill, .funding-featured-pill, .ip-featured-pill, .academic-status-pill {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 11px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--muted);
}
.patent-status-pill.is-granted, .funding-status-pill.is-funded, .academic-status-pill { background: var(--ok-soft); color: var(--ok); border-color: rgba(21, 128, 61, 0.3); }
.patent-status-pill.is-published, .funding-status-pill.is-review { background: var(--accent-soft); color: var(--accent-deep); border-color: rgba(37, 101, 173, 0.3); }
.patent-status-pill.is-filed { background: var(--brass-soft); color: #8a6220; border-color: rgba(217, 161, 59, 0.35); }
.patent-status-pill.is-planned, .funding-status-pill.is-planned { background: rgba(91, 113, 134, 0.08); }
.patent-status-pill.is-rejected, .patent-status-pill.is-expired, .funding-status-pill.is-declined { background: rgba(220, 53, 69, 0.08); color: #b02a37; border-color: rgba(220, 53, 69, 0.3); }
.ip-featured-pill, .funding-featured-pill { background: var(--brass-soft); color: #8a6220; border-color: rgba(217, 161, 59, 0.4); }
.patent-jurisdiction { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 11px; background: #fff; color: var(--ink); }

/* Registry ledger chips — the signature */
.ip-profile-meta, .funding-profile-meta, .media-visibility-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: start;
}
.ip-profile-meta span, .funding-profile-meta span, .media-visibility-meta span {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-family: var(--mono);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 11px;
}
.ip-profile-meta small, .funding-profile-meta small, .media-visibility-meta small {
  font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.ip-profile-meta strong, .funding-profile-meta strong, .media-visibility-meta strong {
  font-size: 12.5px; color: var(--ink); font-weight: 600; word-break: break-word;
}
.ip-profile-link, .funding-profile-link, .media-visibility-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 13.5px;
  margin-top: 4px;
}
.ip-profile-keywords, .funding-chip-row, .academic-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ip-profile-keywords span, .funding-chip-row span, .academic-chip-row span {
  font-family: var(--mono);
  font-size: 10.5px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: 4px 10px;
}
.funding-outcomes, .media-visibility-points, .academic-ra-highlights { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.funding-outcomes span, .media-visibility-points span, .academic-ra-highlights span {
  display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--text);
}
.funding-outcomes i, .media-visibility-points i, .academic-ra-highlights i { color: var(--ok); margin-top: 3px; }
.funding-funder, .media-visibility-feature { font-size: 14px; }
.ip-profile-loadmore { text-align: center; margin-top: 20px; }
.ip-profile-loadmore-btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--card);
  border: 1px solid var(--line-2);
  color: var(--ink);
  border-radius: 10px;
  padding: 11px 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease;
}
.ip-profile-loadmore-btn:hover { border-color: var(--accent); color: var(--accent-deep); }
[data-patent-item][hidden] { display: none !important; }

@media (max-width: 899px) {
  .ip-profile-item, .funding-profile-item, .media-visibility-item { grid-template-columns: 48px minmax(0, 1fr); }
  .ip-profile-meta, .funding-profile-meta, .media-visibility-meta {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ---------------- Academic Roles ---------------- */
.academic-premium-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 18px;
}
.academic-service-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.academic-service-stack-full { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
.academic-premium-card {
  background: #f2f6fa;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 20px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.academic-premium-card:hover { border-color: rgba(37, 101, 173, 0.4); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.rp-link-card { cursor: pointer; }
.academic-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.academic-card-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid rgba(37, 101, 173, 0.2);
  color: var(--accent);
  font-size: 20px;
  overflow: hidden;
}
.academic-card-icon-lg { width: 58px; height: 58px; }
.academic-card-icon img { width: 100%; height: 100%; object-fit: contain; padding: 7px; background: transparent; }
.academic-card-number { font-family: var(--mono); font-weight: 600; font-size: 30px; color: var(--ink); line-height: 1; }
.academic-card-kicker { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 4px; }
.academic-premium-card h3 { font-size: 18px; font-weight: 500; margin: 0 0 6px; }
.academic-card-note { color: var(--text); font-size: 13.5px; margin-bottom: 8px; }
.academic-card-desc { color: var(--text); font-size: 14.5px; }
.academic-lab-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.academic-card-link {
  background: none; border: 0; padding: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 13.5px;
  display: inline-flex; align-items: center; gap: 4px;
  cursor: pointer;
}
.academic-card-link:hover { color: var(--accent-deep); }
.academic-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.academic-meta-grid span {
  display: flex; flex-direction: column; gap: 1px;
  font-family: var(--mono);
  background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px;
}
.academic-meta-grid small { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.academic-meta-grid strong { font-size: 12.5px; color: var(--ink); }
.academic-ra-highlights-title { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.rp-section-focus { animation: v17focus 1.4s ease; border-radius: 8px; }
@keyframes v17focus { 0%, 60% { box-shadow: 0 0 0 4px var(--accent-soft); } 100% { box-shadow: none; } }
.rp-back-btn {
  position: fixed;
  right: 22px; bottom: 84px;
  z-index: 900;
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 13px;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.rp-back-btn.show { display: inline-flex; }
@media (max-width: 991px) {
  .academic-premium-layout { grid-template-columns: 1fr; }
  .academic-service-stack-full { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) { .academic-service-stack, .academic-service-stack-full { grid-template-columns: 1fr; } }

/* ---------------- Publications shell ---------------- */
.dynamic-pub-shell .dynamic-toolbar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  margin-bottom: 26px;
}
.form-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.form-control, .form-select {
  border: 1px solid var(--line-2);
  border-radius: 9px;
  font-size: 14.5px;
  color: var(--ink);
  background-color: #fff;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.btn-primary, .btn.btn-primary {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
  border-radius: 10px;
  font-weight: 600;
}
.btn-primary:hover, .btn.btn-primary:hover { background: #c78d28; border-color: #c78d28; color: var(--ink); }
.btn-outline-secondary { border-radius: 10px; border-color: var(--line-2); color: var(--muted); }
.btn-outline-secondary:hover { background: var(--paper-2); border-color: var(--line-2); color: var(--ink); }

/* ---------------- Skills ---------------- */
.skills .skill-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  height: 100%;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.skills .skill-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.skills .skill-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.skills .skill-card-head i {
  font-size: 20px;
  width: 44px; height: 44px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(37, 101, 173, 0.2);
  color: var(--accent);
}
.skills .skill-card-head h3 { font-size: 19px; font-weight: 500; margin: 0; }
.skills .skill-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.skills .chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13.5px;
  border: 1px solid var(--line);
  background: #f2f6fa;
  color: var(--text);
  transition: border-color 0.16s ease, color 0.16s ease;
}
.skills .chip:hover { border-color: var(--accent); color: var(--accent-deep); }

/* ---------------- Resume / CV ---------------- */
.btn-resume-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--brass);
  color: var(--ink);
  font-weight: 600;
  border-radius: 11px;
  padding: 13px 24px;
  margin-bottom: 34px;
  transition: background 0.16s ease, transform 0.16s ease;
}
.btn-resume-primary:hover { background: #c78d28; color: var(--ink); transform: translateY(-2px); }
.cv-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 26px; align-items: start; }
.cv-nav-rail {
  position: sticky;
  top: calc(var(--nav-h) + 18px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  padding: 16px;
}
.cv-nav-eyebrow { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.cv-nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.cv-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  border-left: 2px solid transparent;
}
.cv-nav-link:hover { background: var(--paper-2); color: var(--ink); }
.cv-nav-link.is-active { background: var(--accent-soft); color: var(--accent-deep); border-left-color: var(--accent); }
.cv-nav-icon { font-size: 15px; display: grid; place-items: center; }
.cv-section { margin-bottom: 34px; }
.resume-title { font-size: 24px; font-weight: 500; margin-bottom: 16px; }
.resume-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
  margin-bottom: 14px;
}
.resume-item h4 { font-family: var(--sans); font-size: 16.5px; font-weight: 650; color: var(--ink); margin: 0 0 6px; }
.resume-item h5 {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 8px;
}
.resume-item em { color: var(--muted); }
.resume-item ul { padding-left: 18px; margin: 8px 0 0; }
.resume-item ul li { margin-bottom: 5px; font-size: 14.5px; }
.cv-review-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.cv-review-badges span {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border: 1px solid rgba(37, 101, 173, 0.25);
  border-radius: 999px;
  padding: 4px 11px;
  display: inline-block;
  margin: 4px 0;
}
.cv-review-anchor { scroll-margin-top: calc(var(--nav-h) + 20px); }
@media (max-width: 991px) { .cv-layout { grid-template-columns: 1fr; } .cv-nav-rail { position: static; } }

/* ---------------- Certifications CTA ---------------- */
.cert-cta-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 26px;
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 100%);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 44px);
  color: #dbe5ee;
  overflow: hidden;
  position: relative;
}
.cert-cta-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--brass); }
.cert-cta-card h3 { color: #fff; font-size: clamp(24px, 3vw, 32px); font-weight: 500; margin: 8px 0 10px; }
.cert-cta-copy p { color: #a9bccd; margin-bottom: 18px; }
.cert-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--brass);
  color: var(--ink);
  font-weight: 600;
  border-radius: 11px;
  padding: 12px 22px;
  transition: background 0.16s ease;
}
.cert-cta-card:hover .cert-cta-button { background: #c78d28; }
.cert-light-panel { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.cert-light-orb {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--brass);
  font-size: 24px;
}
.cert-light-stat strong { font-family: var(--mono); font-size: 30px; color: #fff; display: block; line-height: 1.1; }
.cert-light-stat span { color: #a9bccd; font-size: 13.5px; }
.cert-light-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cert-light-tags span {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 5px 12px;
  color: #cfdae4;
}
@media (max-width: 767px) { .cert-cta-card { grid-template-columns: 1fr; } }

/* ---------------- Services ---------------- */
.v17-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.v17-svc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  padding: 26px 24px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.v17-svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(37, 101, 173, 0.35); }
.v17-svc-icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--accent-soft);
  border: 1px solid rgba(37, 101, 173, 0.2);
  color: var(--accent);
  font-size: 22px;
  margin-bottom: 16px;
}
.v17-svc-card h3 { font-size: 19px; font-weight: 500; margin-bottom: 8px; }
.v17-svc-card p { color: var(--text); font-size: 14.5px; margin: 0; }
@media (max-width: 991px) { .v17-svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .v17-svc-grid { grid-template-columns: 1fr; } }

/* ---------------- Testimonials ---------------- */
.testimonials-slider { padding-bottom: 44px; }
.testimonial-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.testimonial-item p {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--text);
  font-style: italic;
}
.testimonial-img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent-soft); margin: 10px auto; display: block; }
.testimonial-item h3 { font-size: 17px; font-weight: 600; margin: 6px 0 2px; font-family: var(--sans); }
.testimonial-item h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.swiper-pagination-bullet { background: var(--line-2); opacity: 1; }
.swiper-pagination-bullet-active { background: var(--accent); }

/* ---------------- Contact ---------------- */
.contact .info {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  width: 100%;
}
.contact .info > div { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact .info i {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid rgba(37, 101, 173, 0.2);
  color: var(--accent);
  font-size: 18px;
}
.contact .info h4 { font-family: var(--sans); font-size: 15px; font-weight: 650; margin: 2px 0 2px; }
.contact .info p { color: var(--text); font-size: 14.5px; margin: 0; word-break: break-word; }
.contact .info iframe { border-radius: 10px; border: 1px solid var(--line); }
.contact .php-email-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  width: 100%;
}
.contact .php-email-form label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; display: block; }
.contact .php-email-form .form-group { margin-bottom: 16px; }
.contact .php-email-form button[type="submit"] {
  background: var(--brass);
  color: var(--ink);
  border: 0;
  border-radius: 11px;
  font-weight: 600;
  padding: 13px 30px;
  transition: background 0.16s ease, transform 0.16s ease;
}
.contact .php-email-form button[type="submit"]:hover { background: #c78d28; transform: translateY(-2px); }
.contact .php-email-form .loading { color: var(--muted); }
.contact .php-email-form .error-message { color: #b02a37; }
.contact .php-email-form .sent-message { color: var(--ok); }

/* ---------------- Footer ---------------- */
.v17-footer { background: var(--ink); color: #9db2c6; padding: 54px 0 26px; }
.v17-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.v17-footer-name { font-family: var(--serif); font-size: 22px; color: #fff; }
.v17-footer-tag { font-size: 13.5px; color: #7f96ab; margin: 6px 0 0; }
.v17-footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.v17-footer-nav a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; color: #9db2c6; }
.v17-footer-nav a:hover { color: #fff; }
.v17-footer-social { display: flex; gap: 8px; }
.v17-footer-social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #9db2c6;
  font-size: 16px;
}
.v17-footer-social a:hover { color: #fff; border-color: var(--accent); background: rgba(37, 101, 173, 0.2); }
.v17-footer-base { padding-top: 20px; text-align: center; }
.v17-footer-base p { font-size: 13px; color: #7f96ab; margin: 0; }
@media (max-width: 767px) { .v17-footer-grid { grid-template-columns: 1fr; } }

/* ---------------- Back to top ---------------- */
.back-to-top {
  position: fixed;
  right: 22px; bottom: 24px;
  z-index: 900;
  width: 44px; height: 44px;
  background: var(--brass);
  color: #fff;
  border-radius: 12px;
  font-size: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease, background 0.16s ease;
  box-shadow: 0 12px 26px rgba(217, 161, 59, 0.38);
}
.back-to-top.active { visibility: visible; opacity: 1; }
.back-to-top { color: var(--ink); }
.back-to-top:hover { background: #c78d28; color: var(--ink); }

/* ---------------- Dashboard harmonizing (components from dynamic-upgrade.css) ---------------- */
.dynamic-dashboard-shell, #research-dashboard { scroll-margin-top: calc(var(--nav-h) + 10px); }
section[id] { scroll-margin-top: calc(var(--nav-h) + 10px); }

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal], [data-aos] { opacity: 1; transform: none; }
}


/* ---------------- V17.3 mobile polish ---------------- */
@media (max-width: 991px) {
  .v17-hero { min-height: var(--app-height, 100svh); padding-bottom: 48px; }
  .v17-hero-grid { gap: 26px; }
  .v17-portrait { width: min(220px, 62%); }
  .v17-hero-name { font-size: clamp(34px, 9vw, 44px); }
  .v17-hero-lead { font-size: 15.5px; }
  .v17-ledger { grid-template-columns: repeat(3, 1fr); }
  .v17-ledger-cell { padding: 16px 8px; }
  .v17-ledger-num { font-size: 21px; }
}
@media (max-width: 575px) {
  .container { --bs-gutter-x: 2rem; }
  section { padding: 56px 0; }
  .v17-topbar-inner { padding: 0 16px; gap: 12px; }
  .v17-cta-mini span { display: none; }
  .v17-hero-ctas .v17-btn { flex: 1 1 auto; justify-content: center; }
  .v17-ledger { grid-template-columns: repeat(2, 1fr); }
  .ip-profile-board, .funding-profile-board, .media-visibility-board, .academic-premium-board { padding: 18px 14px; border-radius: 14px; }
  .ip-profile-item, .funding-profile-item, .media-visibility-item { padding: 16px 14px; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; }
  .ip-profile-icon, .funding-profile-icon, .media-visibility-icon { width: 40px; height: 40px; font-size: 18px; }
  .ip-profile-stats span, .funding-profile-stats span, .academic-board-stats > span { padding: 12px 8px; }
  .ip-profile-stats strong, .funding-profile-stats strong, .academic-board-stats strong { font-size: 18px; }
  .section-title h2 { font-size: 26px; }
  .cert-cta-card { padding: 22px 18px; }
  .contact .info, .contact .php-email-form { padding: 20px 16px; }
  .testimonial-item { padding: 22px 18px; }
  .v17-footer-grid { gap: 20px; }
}
/* Prevent accidental horizontal scroll WITHOUT breaking position:sticky
   (overflow-x:hidden creates a scroll container and disables sticky;
   overflow-x:clip does not) */
html, body { overflow-x: clip; }
@supports not (overflow-x: clip) {
  html, body { overflow-x: hidden; }
}


/* Lab / institution logos: ink plate so light-colored marks stay visible */
.academic-lab-logo-frame {
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  border-color: rgba(17, 43, 78, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}


/* ---------------- V17.4 Glass surfaces ---------------- */
.v17-ledger,
.ip-profile-board, .funding-profile-board, .media-visibility-board, .academic-premium-board,
.v17-svc-card, .skills .skill-card, .resume-item, .cv-nav-rail,
.testimonial-item, .contact .info, .contact .php-email-form,
.dynamic-pub-shell .dynamic-toolbar, .about-photo-card, .v17-portrait,
.v17-drop-menu {
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.35);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.35);
  border-color: var(--glass-line);
  box-shadow: 0 16px 44px rgba(11, 24, 38, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.ip-profile-item, .funding-profile-item, .media-visibility-item, .academic-premium-card {
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(10px) saturate(1.25);
  backdrop-filter: blur(10px) saturate(1.25);
  border-color: rgba(255, 255, 255, 0.6);
}
.ip-profile-item.is-featured, .funding-profile-item.is-featured, .media-visibility-item.is-featured {
  background: linear-gradient(180deg, rgba(253, 247, 234, 0.8) 0%, rgba(255, 255, 255, 0.55) 62%);
}
.ip-profile-meta span, .funding-profile-meta span, .media-visibility-meta span,
.academic-meta-grid span, .skills .chip, .patent-jurisdiction {
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.v17-topbar {
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}
.v17-topbar.is-scrolled {
  background: rgba(255, 255, 255, 0.72);
}
.ip-profile-stats, .funding-profile-stats, .academic-board-stats {
  border-color: rgba(17, 43, 78, 0.12);
}
.v17-ledger-cell { border-color: rgba(17, 43, 78, 0.10); }
.v17-ledger-cell:hover { background: rgba(37, 101, 173, 0.10); }

/* Hover lift keeps the glass edge lit */
.ip-profile-item:hover, .funding-profile-item:hover, .media-visibility-item:hover,
.academic-premium-card:hover, .v17-svc-card:hover, .skills .skill-card:hover {
  border-color: rgba(37, 101, 173, 0.45);
  background: rgba(255, 255, 255, 0.72);
}

/* Fallback: browsers without backdrop-filter get solid surfaces (contrast-safe) */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .v17-ledger,
  .ip-profile-board, .funding-profile-board, .media-visibility-board, .academic-premium-board,
  .v17-svc-card, .skills .skill-card, .resume-item, .cv-nav-rail,
  .testimonial-item, .contact .info, .contact .php-email-form,
  .dynamic-pub-shell .dynamic-toolbar, .about-photo-card, .v17-portrait,
  .v17-drop-menu, .v17-topbar, .v17-topbar.is-scrolled {
    background: #ffffff;
  }
  .ip-profile-item, .funding-profile-item, .media-visibility-item, .academic-premium-card {
    background: #f2f6fa;
  }
}
/* Reduced motion / low-power: blur is expensive; simplify */
@media (prefers-reduced-motion: reduce) {
  .v17-ledger, .ip-profile-board, .funding-profile-board, .media-visibility-board,
  .academic-premium-board, .v17-svc-card, .skills .skill-card, .resume-item,
  .cv-nav-rail, .testimonial-item, .contact .info, .contact .php-email-form {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #ffffff;
  }
}


/* ---------------- V17.5 mobile UX ---------------- */
body.nav-open { overflow: hidden; }
@media (max-width: 1099px) {
  .v17-nav { max-height: calc(100vh - var(--nav-h)); overflow-y: auto; padding-bottom: 26px; }
  .v17-nav-link { padding: 14px 14px; border-radius: 10px; }
  .v17-drop-menu a { padding: 13px 14px; }
}
@media (max-width: 991px) {
  /* CV rail becomes a sticky horizontal pill bar under the topbar */
  .cv-layout { display: block; }
  .cv-nav-rail {
    position: sticky;
    top: calc(var(--nav-h) + 8px);
    z-index: 50;
    margin-bottom: 18px;
    padding: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cv-nav-rail::-webkit-scrollbar { display: none; }
  .cv-nav-eyebrow { display: none; }
  .cv-nav-list { flex-direction: row; gap: 6px; width: max-content; }
  .cv-nav-link { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; border-radius: 999px; padding: 9px 14px; }
  .cv-nav-link.is-active { border-left: 0; }
  /* Registry meta chips scroll horizontally instead of stacking tall */
  .ip-profile-meta, .funding-profile-meta, .media-visibility-meta {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .ip-profile-meta::-webkit-scrollbar, .funding-profile-meta::-webkit-scrollbar, .media-visibility-meta::-webkit-scrollbar { display: none; }
  .ip-profile-meta span, .funding-profile-meta span, .media-visibility-meta span { flex: 0 0 auto; }
  /* Lighter blur on mobile GPUs */
  :root { --glass-blur: 10px; }
}
@media (max-width: 575px) {
  /* Prevent iOS input zoom */
  .form-control, .form-select, .contact .php-email-form input, .contact .php-email-form textarea { font-size: 16px; }
  .v17-hero-ctas { gap: 10px; }
  .v17-btn { padding: 13px 16px; font-size: 14px; }
  .v17-hero-links { gap: 8px 14px; }
  .v17-hero-links a { font-size: 12.5px; }
  .academic-meta-grid { grid-template-columns: 1fr; }
  .cert-light-tags span { font-size: 10px; }
  .v17-portrait-plate { padding: 10px 16px; }
  .dynamic-pub-shell .dynamic-toolbar { padding: 14px; }
}






/* ---------------- V17.9 one-screen mobile hero ---------------- */
@media (max-width: 767px) {
  :root { --nav-h: 60px; }   /* slimmer topbar on phones */
  /* Hero fills EXACTLY one screen: content is distributed evenly between
     the navbar and the bottom edge — no dead space top or bottom, and the
     next section starts precisely at the fold. */
  .v17-hero {
    min-height: var(--app-height, 100svh);
    padding: var(--nav-h) 0 0;
    justify-content: stretch;
  }
  .v17-hero > .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding-top: 8px;
    padding-bottom: 14px;
  }
  /* Centered composition — mirrors the balanced desktop layout */
  .v17-hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .v17-hero-side { justify-content: center; }
  .v17-hero-ctas { width: 100%; }
  .v17-hero-grid { gap: 10px; }

  /* Portrait card collapses into a compact identity row */
  .v17-hero-side {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
  }
  .v17-portrait {
    width: 76px;
    flex: 0 0 auto;
    padding: 4px;
    border-radius: 16px;
  }
  .v17-portrait img { border-radius: 12px; }
  .v17-portrait-corner { display: none; }
  .v17-portrait-plate {
    margin-top: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    text-align: left;
    align-items: flex-start;
  }
  .v17-plate-role { color: var(--ink); font-size: 15px; }
  .v17-plate-org { color: var(--muted); font-size: 9.5px; }

  /* Ledger is the must-keep element: decoration yields, stats stay */
  .v17-eyebrow { display: none; }              /* decorative tagline: cut */
  .v17-hero-lead { display: none; }            /* summary lives in About */
  .v17-hero-name { font-size: clamp(28px, 8vw, 36px); margin-bottom: 4px; }
  .v17-hero-typed { font-size: 12.5px; margin-bottom: 8px; min-height: 19px; }
  .v17-hero-ctas { gap: 8px; margin-bottom: 0; }
  .v17-hero-ctas .v17-btn { flex: 1 1 auto; justify-content: center; padding: 11px 10px; font-size: 13px; }
  /* Academic profile links: compact icon circles (labels collapse via font-size:0) */
  .v17-hero-links { display: flex; gap: 12px; margin: 6px 0 0; justify-content: center; width: 100%; }
  .v17-hero-links a {
    font-size: 0;              /* collapses the text label */
    position: relative;        /* icon centers absolutely — the hidden text
                                  node can no longer push it off-center */
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--accent-deep);
    overflow: hidden;
  }
  .v17-hero-links a i {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 17px;
    color: var(--accent);
    line-height: 1;
  }
  .v17-hero-links a:active, .v17-hero-links a:hover { border-color: var(--accent); background: var(--accent-soft); }

  /* Ledger: ALL stats visible at once — no swiping.
     flex-wrap with grow means 7 cells lay out as a 4+3 grid where the
     last row stretches to fill the width evenly (no empty slot). */
  .v17-ledger {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
    margin-top: 6px;
  }
  .v17-ledger-cell {
    flex: 1 1 21%;
    min-width: 76px;
    padding: 10px 4px 9px;
    gap: 2px;
  }
  .v17-ledger-num { font-size: 17px; }
  .v17-ledger-lbl { font-size: 8.5px; letter-spacing: 0.06em; }
}



/* ---------------- V17.10 subpages (certifications, details) ---------------- */
.v17-subpage .v17-topbar { position: sticky; }
.v17-page { padding-top: 0; }
.v17-pagehead { padding: 46px 0 8px; }
.v17-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.v17-crumbs a { color: var(--muted); }
.v17-crumbs a:hover { color: var(--accent-deep); }
.v17-crumbs i { font-size: 10px; }
.v17-crumbs span { color: var(--ink); }

/* Filter bar */
.v17-certs { padding: 12px 0 84px; }
.v17-filterbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.v17-filter {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--muted);
  cursor: pointer;
  transition: 0.16s ease;
}
.v17-filter:hover { color: var(--accent-deep); border-color: var(--accent); }
.v17-filter.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Certificate cards */
.v17-cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.v17-cert-card {
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
  border: 1px solid var(--glass-line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
}
.v17-cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(37, 101, 173, 0.35); }
.v17-cert-card.is-hidden { display: none; }
.v17-cert-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e7edf4; }
.v17-cert-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.v17-cert-card:hover .v17-cert-media img { transform: scale(1.045); }
.v17-cert-zoom {
  position: absolute;
  right: 10px; bottom: 10px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(17, 43, 78, 0.75);
  color: #fff;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.v17-cert-card:hover .v17-cert-zoom { opacity: 1; }
.v17-cert-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.v17-cert-cat {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid rgba(37, 101, 173, 0.22);
  border-radius: 999px;
  padding: 4px 10px;
}
.v17-cert-body h3 { font-size: 16.5px; font-weight: 500; margin: 2px 0 0; line-height: 1.4; }
.v17-cert-meta { font-size: 13px; color: var(--muted); margin: 0; }
.v17-cert-link {
  margin-top: auto;
  padding-top: 6px;
  font-weight: 600;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.v17-empty { color: var(--muted); }
@media (max-width: 991px) { .v17-cert-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .v17-cert-grid { grid-template-columns: 1fr; } .v17-pagehead { padding-top: 28px; } }

/* Details page */
.v17-details { padding: 12px 0 84px; }
.v17-details-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 22px; align-items: start; }
.v17-details-media {
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: 12px;
}
.v17-details-slider { border-radius: 10px; overflow: hidden; padding-bottom: 34px; }
.v17-details-slider img { width: 100%; display: block; border-radius: 10px; }
.v17-details-info {
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  position: sticky;
  top: calc(var(--nav-h) + 18px);
}
.v17-details-info h3 { font-size: 20px; font-weight: 500; margin-bottom: 14px; }
.v17-detail-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.v17-detail-rows span {
  display: flex; flex-direction: column; gap: 1px;
  font-family: var(--mono);
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
}
.v17-detail-rows small { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.v17-detail-rows strong { font-size: 13px; color: var(--ink); font-weight: 600; word-break: break-word; }
@media (max-width: 900px) {
  .v17-details-grid { grid-template-columns: 1fr; }
  .v17-details-info { position: static; }
}


/* ---------------- V17.17 Research Assistant: primary appointment ---------------- */
.academic-premium-card-feature {
  position: relative;
  border: 1px solid rgba(217, 161, 59, 0.55) !important;
  background:
    linear-gradient(180deg, rgba(253, 247, 234, 0.85) 0%, rgba(255, 255, 255, 0.6) 55%) !important;
  box-shadow: 0 18px 44px rgba(17, 43, 78, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  padding-top: 22px !important;
}
.academic-premium-card-feature::before {
  content: "";
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 3px;
  background: linear-gradient(180deg, var(--brass), rgba(217, 161, 59, 0.2));
  border-radius: 2px;
}
.academic-primary-pill {
  position: absolute;
  top: 0; left: 18px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  background: var(--brass);
  border-radius: 999px;
  padding: 6px 14px;
  box-shadow: 0 8px 18px rgba(217, 161, 59, 0.35);
  white-space: nowrap;
}
.academic-primary-pill i { font-size: 10px; }
.academic-premium-card-feature h3 { font-size: 21px; }
.academic-premium-card-feature .academic-card-icon-lg {
  background: var(--ink);
  border-color: rgba(17, 43, 78, 0.5);
  color: var(--brass);
}
.academic-premium-card-feature:hover {
  border-color: var(--brass) !important;
  transform: translateY(-3px);
}
@media (max-width: 575px) {
  .academic-primary-pill { left: 12px; font-size: 9px; padding: 5px 11px; }
}


/* Short phones (SE-class): compress so the hero still fits one screen */
@media (max-width: 767px) and (max-height: 660px) {
  .v17-portrait { width: 62px; }
  .v17-hero-name { font-size: clamp(25px, 7.4vw, 30px); }
  .v17-hero-typed { margin-bottom: 4px; }
  .v17-hero-ctas .v17-btn { padding: 9px 8px; font-size: 12px; }
  .v17-hero-links a { width: 38px; height: 38px; }
  .v17-ledger-cell { padding: 7px 3px 6px; }
  .v17-ledger-num { font-size: 15px; }
  .v17-ledger-lbl { font-size: 8px; }
}


/* ---------------- V17.18 RA appointment banner + section order ---------------- */
@media (min-width: 992px) {
  /* Feature (RA) card spans the full board width; the four service cards
     form a row beneath it — appointment first, service record second. */
  .academic-premium-layout { grid-template-columns: 1fr; }
  .academic-service-stack { grid-template-columns: repeat(4, 1fr); }
  .academic-premium-card-feature { padding: 44px 30px 26px !important; }
  .academic-premium-card-feature .academic-meta-grid { grid-template-columns: repeat(4, 1fr); }
  .academic-premium-card-feature .academic-ra-highlights {
    flex-direction: row;
    gap: 14px;
  }
  .academic-premium-card-feature .academic-ra-highlights span {
    flex: 1 1 0;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13.5px;
  }
  .academic-premium-card-feature .academic-ra-highlights-title { flex: 1 1 100%; }
  .academic-premium-card-feature h3 { font-size: 24px; }
}

/* ---- V17.19 fix: compact RA banner + understated badge ---- */

/* Achievements: back to compact stacked lines — no more equal-height
   tiles stretching to the longest text */
@media (min-width: 992px) {
  .academic-premium-card-feature { padding: 24px 30px 22px !important; }
  .academic-premium-card-feature .academic-ra-highlights {
    flex-direction: column !important;
    gap: 5px !important;
    margin: 10px 0 8px;
  }
  .academic-premium-card-feature .academic-ra-highlights span {
    flex: none !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    font-size: 14px;
    line-height: 1.5;
  }
  .academic-premium-card-feature h3 { font-size: 22px !important; }
}

/* Badge: glass chip with navy text — gold reduced to the star accent */
.academic-primary-pill {
  background: rgba(255, 255, 255, 0.92) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(217, 161, 59, 0.55) !important;
  color: var(--ink) !important;
  box-shadow: 0 6px 16px rgba(17, 43, 78, 0.10) !important;
}
.academic-primary-pill i { color: var(--brass) !important; }

/* Softer banner: fainter gold wash and border */
.academic-premium-card-feature {
  background: linear-gradient(180deg, rgba(253, 249, 240, 0.7) 0%,
              rgba(255, 255, 255, 0.62) 40%) !important;
  border-color: rgba(217, 161, 59, 0.4) !important;
}


/* ================================================================
   V17.20 — retire in-board stat rows + slimmer vertical rhythm
   ================================================================ */

/* The bordered number rows inside the IP, Funding and Academic boards
   duplicated figures the hero ledger already shows, and each cost ~70px
   plus two rules. Sections now open straight into the actual records. */
.ip-profile-stats,
.funding-profile-stats,
.academic-board-stats { display: none !important; }

/* Slimmer rhythm: 84px was tuned for a page with few sections; with
   thirteen it read as drift. 64px keeps clear separation without the
   cramped-dashboard feel that starts below ~56px. */
section { padding: 64px 0; }
.section-title { padding-bottom: 22px; }
.ip-profile-board,
.funding-profile-board,
.media-visibility-board,
.academic-premium-board { padding: clamp(20px, 2.6vw, 30px); }
.ip-profile-head,
.funding-profile-head,
.media-visibility-head,
.academic-board-head { margin-bottom: 18px; }
.ip-profile-list,
.funding-profile-list,
.media-visibility-list { gap: 12px; }

@media (max-width: 575px) {
  section { padding: 44px 0; }
}

/* The hero owns its own spacing (one-screen rule) — never let the
   generic section padding above reintroduce a gap there. */
.v17-hero { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 64px; }
@media (max-width: 767px) {
  .v17-hero { padding: var(--nav-h) 0 0; }
}


/* ================================================================
   V17.21 — "Primary Research Appointment" tag removed
   The badge markup is gone from index.php; this neutralises any
   leftover pill styling. The card keeps its gold border, spine and
   warm wash, so it still reads as the featured appointment.
   ================================================================ */
.academic-primary-pill { display: none !important; }
