@charset "utf-8";

:root {
  --site-page: #eef3f9;
  --site-page-top: #f8faff;
  --site-surface: #ffffff;
  --site-surface-soft: #f8faff;
  --site-primary: #2f57c8;
  --site-primary-strong: #1f3f99;
  --site-blue: #0369a1;
  --site-sky: #01cecd;
  --site-blue-soft: #eef4ff;
  --site-cyan-soft: #f0f9ff;
  --site-text: #1e293b;
  --site-text-secondary: #41536b;
  --site-text-muted: #64748b;
  --site-border: rgba(47, 87, 200, 0.10);
  --site-border-strong: rgba(47, 87, 200, 0.22);
  --site-focus: rgba(14, 165, 233, 0.28);
  --site-link-ink: #0b5fb8;
  --site-link-ink-strong: #1f3f99;
  --site-link-visited: #5b4f91;
  --site-link-highlight: rgba(14, 165, 233, 0.14);
  --site-link-highlight-visited: rgba(91, 79, 145, 0.12);
  --site-link-decoration: rgba(3, 105, 161, 0.58);
  --elevation-rgb: 47, 87, 200;
  --site-radius-control: 11px;
  --site-radius-row: 14px;
  --site-radius-card: 16px;
  --site-radius-panel: 18px;
  --site-radius-pill: 999px;
  --site-radius-sm: var(--site-radius-control);
  --site-radius-md: 15px;
  --site-radius-lg: var(--site-radius-panel);
  --site-shadow-xs: 0 2px 8px rgba(var(--elevation-rgb), 0.04);
  --site-shadow-low: 0 8px 22px rgba(var(--elevation-rgb), 0.055);
  --site-shadow-medium: 0 12px 30px rgba(var(--elevation-rgb), 0.075);
  --site-shadow-high: 0 18px 40px rgba(var(--elevation-rgb), 0.11);
  --motion-quick: 140ms;
  --motion-standard: 220ms;
  --motion-slow: 360ms;
  --motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --navbar-height: 64px;
  --font-ui: "Inter", "Noto Sans SC", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Inter", "Noto Sans SC", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --background-animation-color: 47, 87, 200;
  --background-animation-accent: 1, 206, 205;
  --background-animation-opacity: 0.54;
  --background-animation-count: 46;
  --background-animation-speed: 0.14;
  --background-animation-distance: 11500;
  --background-animation-mouse-distance: 57600;
  color-scheme: light;
}

body.page-home {
  --site-text-secondary: #3b4f66;
  --site-text-muted: #5d7087;
  --site-focus: #0369a1;
  --background-animation-opacity: 0.58;
}

html {
  scroll-padding-top: calc(var(--navbar-height) + 1rem);
}

body.bg-light {
  min-width: 320px;
  padding-top: calc(var(--navbar-height) + 0.75rem);
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.78) 0%, rgba(244, 247, 252, 0.72) 18%, rgba(238, 243, 249, 0.68) 100%) !important;
  color: var(--site-text);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.62;
  font-kerning: normal;
  font-optical-sizing: auto;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--site-text);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--site-blue);
  text-underline-offset: 0.16em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: var(--site-primary-strong);
}

/* Persistent editorial marker for textual hyperlinks. Component links such as
   navigation pills and action buttons keep their dedicated visual contracts. */
.profile-bio a[href]:not([style*="background-image"]),
.news-primary-link,
.news-more-link,
.inline-link,
.page-home .education-link,
.page-home .experience-link,
.page-home .talk-link,
.page-home .award-title a[href],
.page-home .service-item-pill a[href],
.footer a[href] {
  --text-link-highlight: var(--site-link-highlight);
  --text-link-decoration: var(--site-link-decoration);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0.015em 0.09em;
  border-radius: 0.28em;
  background-image: linear-gradient(var(--text-link-highlight), var(--text-link-highlight));
  background-position: 0 88%;
  background-repeat: no-repeat;
  background-size: 100% 0.38em;
  color: var(--site-link-ink) !important;
  font-weight: 600;
  text-decoration-line: underline !important;
  text-decoration-color: var(--text-link-decoration) !important;
  text-decoration-thickness: 0.1em !important;
  text-underline-offset: 0.18em;
  text-decoration-skip-ink: auto;
  transition: background-size var(--motion-quick) var(--motion-ease), color var(--motion-quick) var(--motion-ease), text-decoration-color var(--motion-quick) var(--motion-ease);
}

.profile-bio a[href]:not([style*="background-image"]):visited,
.news-primary-link:visited,
.news-more-link:visited,
.inline-link:visited,
.page-home .education-link:visited,
.page-home .experience-link:visited,
.page-home .talk-link:visited,
.page-home .award-title a[href]:visited,
.page-home .service-item-pill a[href]:visited,
.footer a[href]:visited {
  --text-link-highlight: var(--site-link-highlight-visited);
  --text-link-decoration: rgba(91, 79, 145, 0.56);
  color: var(--site-link-visited) !important;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 0.55rem;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.65rem 0.85rem;
  border-radius: var(--site-radius-sm);
  background: var(--site-primary-strong);
  color: #fff !important;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform var(--motion-quick) var(--motion-ease);
}

.skip-link:focus {
  transform: translateY(0);
}

#main-content {
  outline: none;
}

body.prompt-page {
  padding: 0;
  background: linear-gradient(180deg, #f8faff 0%, var(--site-page) 100%);
  color: var(--site-text);
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-optical-sizing: auto;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.prompt-main {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem 1rem;
}

.prompt-container {
  width: min(100%, 680px);
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius-lg);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--site-shadow-medium);
  text-align: center;
}

.prompt-container h1 {
  margin: 0 0 0.65rem;
  color: var(--site-primary-strong);
  font-size: clamp(2.8rem, 10vw, 5rem);
  font-weight: 700;
  line-height: 1;
}

.prompt-container .lead {
  color: var(--site-text-secondary);
}

.prompt-container a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--site-primary);
  border-radius: 10px;
  background: var(--site-primary);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}

.site-navbar {
  min-height: var(--navbar-height);
  padding: 0.48rem 0;
  border-bottom: 1px solid var(--site-border);
  background: rgba(250, 252, 254, 0.96) !important;
  box-shadow: 0 7px 24px rgba(18, 43, 67, 0.055) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-navbar > .container,
.site-navbar > .container-lg,
.site-navbar > .container-xl {
  align-items: center;
}

.site-navbar-brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.62rem;
  margin-right: 1rem;
  padding: 0;
  color: var(--site-text) !important;
  line-height: 1;
  text-decoration: none !important;
}

.site-navbar-logo {
  display: block;
  width: auto;
  height: 36px;
  max-width: 108px;
  object-fit: contain;
}

.site-navbar-name {
  font-family: var(--font-display);
  font-size: 1.03rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  white-space: nowrap;
}

.site-navbar .navbar-nav {
  gap: 0.22rem;
}

.site-nav-link {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0.52rem 0.78rem !important;
  border-radius: 999px;
  color: #4f6478 !important;
  font-size: 0.91rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color var(--motion-quick) var(--motion-ease), color var(--motion-quick) var(--motion-ease), transform var(--motion-quick) var(--motion-ease);
}

.site-nav-link::after {
  content: "";
  position: absolute;
  right: 0.78rem;
  bottom: 0.3rem;
  left: 0.78rem;
  height: 2px;
  border-radius: 999px;
  background: var(--site-blue);
  opacity: 0.28;
  transform: scaleX(0.7);
  transition: opacity var(--motion-quick) var(--motion-ease), transform var(--motion-quick) var(--motion-ease);
}

.site-navbar .nav-item.active .site-nav-link,
.site-nav-link[aria-current="page"] {
  background: var(--site-blue-soft);
  color: var(--site-primary-strong) !important;
}

.site-navbar .nav-item.active .site-nav-link::after,
.site-nav-link[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-navbar-toggle {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.5rem 0.68rem;
  border: 1px solid var(--site-border) !important;
  border-radius: 999px !important;
  color: var(--site-primary-strong);
}

.site-navbar-toggle-icon {
  display: inline-grid;
  width: 18px;
  gap: 3px;
}

.site-navbar-toggle-icon span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: opacity var(--motion-quick) var(--motion-ease), transform var(--motion-standard) var(--motion-ease);
}

.site-navbar-toggle[aria-expanded="true"] .site-navbar-toggle-icon span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.site-navbar-toggle[aria-expanded="true"] .site-navbar-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.site-navbar-toggle[aria-expanded="true"] .site-navbar-toggle-icon span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.site-navbar-toggle-label {
  font-size: 0.8rem;
  font-weight: 700;
}

.content-section,
.profile-card {
  margin-top: 1.25rem;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius-lg);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--site-shadow-low);
  backdrop-filter: saturate(1.02) blur(12px);
  -webkit-backdrop-filter: saturate(1.02) blur(12px);
}

.profile-card {
  margin-top: 0;
  overflow: hidden;
}

.profile-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(175px, 19.5%);
  gap: clamp(1.35rem, 2.6vw, 2rem);
  align-items: start;
  padding: clamp(1.2rem, 2.2vw, 1.65rem) clamp(1.3rem, 2.6vw, 1.9rem);
}

.profile-copy {
  min-width: 0;
}

.profile-eyebrow {
  margin: 0 0 0.35rem;
  color: var(--site-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.profile-name {
  margin: 0;
  color: var(--site-text) !important;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.45vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.06;
}

.profile-secondary-name {
  display: block;
  margin-top: 0.2rem;
  color: var(--site-text-muted);
  font-family: var(--font-ui);
  font-size: clamp(0.88rem, 1.2vw, 0.96rem);
  font-weight: 500;
  letter-spacing: 0;
}

.profile-positions {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.72rem;
}

.profile-position {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  color: var(--site-text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.46;
}

.profile-position-logo {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  object-fit: contain;
}

.profile-bio {
  max-width: 90ch;
  margin-top: 0.85rem;
  color: var(--site-text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.profile-bio[data-justify="true"] {
  text-align: justify;
  text-justify: inter-word;
}

.profile-bio p {
  margin-bottom: 0.62rem;
}

.profile-bio p:last-child {
  margin-bottom: 0;
}

.profile-quote {
  max-width: 66ch;
  margin: 0.88rem 0 0;
  padding: 0.5rem 0 0.5rem 0.82rem;
  border-left: 3px solid var(--site-sky);
  color: #3d5368;
}

.profile-quote p {
  margin: 0;
  font-size: 0.86rem;
  font-style: italic;
  line-height: 1.48;
}

.profile-quote footer {
  margin-top: 0.25rem;
  color: var(--site-text-muted);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 600;
}

.profile-media {
  margin: 0;
}

.profile-portrait {
  display: block;
  width: 100%;
  max-height: 285px;
  border: 1px solid rgba(47, 87, 200, 0.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--site-shadow-medium);
  object-fit: cover;
  transition: transform var(--motion-standard) var(--motion-ease), box-shadow var(--motion-standard) var(--motion-ease), border-color var(--motion-standard) var(--motion-ease);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.72rem clamp(1.3rem, 2.6vw, 1.9rem) 0.86rem;
  border-top: 1px solid var(--site-border);
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.9), rgba(237, 243, 248, 0.84));
}

.profile-action {
  --action-color: var(--site-blue);
  --action-soft: var(--site-cyan-soft);
  --action-border: rgba(3, 105, 161, 0.16);
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.48rem;
  justify-content: center;
  padding: 0.42rem 0.72rem;
  border: 1px solid var(--action-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #34465b !important;
  box-shadow: var(--site-shadow-xs);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--motion-quick) var(--motion-ease), background-color var(--motion-quick) var(--motion-ease), border-color var(--motion-quick) var(--motion-ease), box-shadow var(--motion-quick) var(--motion-ease);
}

.profile-action > i:first-child {
  display: inline-grid;
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 1.55rem;
  place-items: center;
  border: 1px solid var(--action-border);
  border-radius: 999px;
  background: var(--action-soft);
  color: var(--action-color);
  font-size: 0.82rem;
}

.profile-action-external {
  color: #718399;
  font-size: 0.55rem;
  transition: transform var(--motion-quick) var(--motion-ease);
}

.profile-action--email {
  flex: 0 1 auto;
}

.profile-action-label {
  overflow-wrap: anywhere;
}

.profile-modal {
  overflow: hidden;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius-card);
  box-shadow: var(--site-shadow-high);
}

.profile-modal .modal-body img {
  width: min(100%, 300px);
  border-radius: 10px;
}

.profile-modal-prompt {
  margin: 0.75rem 0 0;
  color: var(--site-text-secondary);
  font-size: 0.88rem;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem 1rem;
  border-bottom: 1px solid var(--site-border);
}

.section-kicker {
  margin: 0 0 0.18rem;
  color: var(--site-blue);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: var(--site-text);
  font-size: clamp(1.16rem, 2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.25;
}

.news-section {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88) !important;
}

.news-section-header {
  align-items: center;
  padding: 1.7rem 1.8rem 0.45rem;
  border-bottom: 0;
}

.news-section-header .section-title {
  color: #3D424B;
  font-size: clamp(1.45rem, 2.4vw, 1.72rem);
  font-weight: 600;
  letter-spacing: -0.018em;
}

.news-groups {
  padding: 0.15rem 1.8rem 1.55rem;
}

.news-year {
  padding-top: 0.85rem;
}

.news-year + .news-year {
  margin-top: 0.75rem;
}

.news-year-title {
  margin: 0 0 0.45rem;
  padding-bottom: 0.72rem;
  border-bottom: 1px solid #EEF1F4;
  color: #4A505A;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}

.news-list {
  display: grid;
  gap: 0.42rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-entry {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 0.78rem;
  align-items: center;
  min-height: 44px;
  padding: 0.62rem 0.72rem;
  border: 1px solid rgba(47, 87, 200, 0.06);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.96), rgba(244, 247, 252, 0.92));
  box-shadow: var(--site-shadow-xs);
  transition: background-color var(--motion-quick) var(--motion-ease), border-color var(--motion-quick) var(--motion-ease), box-shadow var(--motion-quick) var(--motion-ease), transform var(--motion-quick) var(--motion-ease);
}

.news-item--featured .news-entry {
  border-color: rgba(47, 87, 200, 0.10);
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.98), rgba(241, 246, 252, 0.95));
}

.news-date {
  display: inline-flex;
  width: max-content;
  min-width: 56px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.46rem;
  border: 1px solid rgba(47, 87, 200, 0.08);
  border-radius: 999px;
  background: rgba(239, 244, 255, 0.90);
  box-shadow: none;
  color: #607089;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transition: border-color var(--motion-quick) var(--motion-ease), background-color var(--motion-quick) var(--motion-ease), color var(--motion-quick) var(--motion-ease), box-shadow var(--motion-quick) var(--motion-ease);
}

.news-entry-content {
  min-width: 0;
}

.news-entry-copy {
  color: #606771;
  font-size: 0.9rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.news-primary-link,
.news-primary-text {
  color: #555C66;
  font-weight: 500;
}

.news-item--featured .news-primary-link,
.news-item--featured .news-primary-text {
  font-weight: 600;
}

.news-item--featured .news-date {
  border-color: rgba(47, 87, 200, 0.12);
  background: rgba(232, 240, 255, 0.96);
  color: #536783;
}

.news-primary-link {
  display: inline;
  text-decoration: none;
}

.news-primary-link i {
  margin-left: 0.22rem;
  color: #9298A1;
  font-size: 0.56rem;
  transition: transform var(--motion-quick) var(--motion-ease), color var(--motion-quick) var(--motion-ease);
}

.news-more-link {
  color: #596775;
  font-weight: 600;
}

.news-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  margin-top: 0.34rem;
}

.news-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0.16rem 0.42rem;
  border: 1px solid #E1E5E9;
  border-radius: 999px;
  background: #FAFBFC;
  color: #6B737D !important;
  font-size: 0.64rem;
  font-weight: 600;
  text-decoration: none !important;
}

.news-badge--featured {
  border-color: #E4E1D7;
  background: #FAF8F2;
  color: #756D5C !important;
}

.page-home > .row,
.page-home #main-content > .row {
  margin-top: 1.25rem;
}

.page-home .card.border-0.shadow-sm.bg-white.rounded-xl,
.page-home .card.border-0.shadow-sm.bg-white.rounded-3 {
  border: 1px solid var(--site-border) !important;
  border-radius: var(--site-radius-lg) !important;
  background: rgba(255, 255, 255, 0.84) !important;
  box-shadow: var(--site-shadow-low) !important;
  backdrop-filter: saturate(1.02) blur(12px);
  -webkit-backdrop-filter: saturate(1.02) blur(12px);
}

.page-home .card-body.p-4,
.page-home .card-body.p-5 {
  padding: clamp(1.2rem, 3vw, 1.6rem) !important;
}

.page-home > .row.mt-3,
.page-home #main-content > .row.mt-3 {
  margin-top: 1.25rem !important;
}

.page-home .card.border-0.shadow-sm.bg-white.rounded-xl,
.page-home .card.border-0.shadow-sm.bg-white.rounded-3 {
  overflow: hidden;
}

.page-home .education-heading,
.page-home .section-heading {
  margin: 0 0 1.1rem !important;
  color: var(--site-text) !important;
  font-family: var(--font-display) !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
  line-height: 1.3 !important;
}

.page-home .education-entry,
.page-home .experience-entry,
.page-home .award-entry,
.page-home .service-item-pill {
  padding: 1rem 1.05rem;
  border-color: rgba(47, 87, 200, 0.075) !important;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.88), rgba(244, 247, 252, 0.78)) !important;
  box-shadow: none;
}

.page-home .education-entry,
.page-home .experience-entry,
.page-home .award-entry {
  margin-bottom: 0.9rem !important;
}

.page-home .education-entry:last-child,
.page-home .experience-entry:last-child,
.page-home .award-entry:last-child {
  margin-bottom: 0 !important;
}

.page-home .service-group-title {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin-bottom: 0.8rem !important;
  padding: 0 0.9rem;
  border: 1px solid rgba(47, 87, 200, 0.08);
  border-radius: 999px;
  background: rgba(239, 244, 255, 0.86);
  color: var(--site-text-secondary);
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

.page-home .service-group + .service-group {
  margin-top: 1.35rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(47, 87, 200, 0.08);
}

.page-home .service-group > .row {
  margin-right: -0.3rem;
  margin-left: -0.3rem;
  row-gap: 0.6rem;
}

.page-home .service-group > .row > [class*="col-"] {
  display: flex;
  padding-right: 0.3rem;
  padding-left: 0.3rem;
}

.page-home .service-item-pill {
  width: 100%;
  padding: 0.78rem 0.9rem !important;
}

.page-home .education-logo,
.page-home .entry-logo {
  width: 4rem !important;
  min-width: 4rem;
  max-width: 4rem;
  height: 4rem !important;
  min-height: 4rem;
  max-height: 4rem;
  flex: 0 0 4rem;
  padding: 0;
  background: transparent;
  box-shadow: none;
  filter: none;
  object-fit: contain;
}

.page-home .education-date-pill,
.page-home .entry-date-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 0.8rem;
  border: 1px solid rgba(47, 87, 200, 0.08);
  border-radius: 999px;
  background: rgba(239, 244, 255, 0.92);
  color: #607089 !important;
  font-weight: 600;
}

.page-home .education-entry-title,
.page-home .experience-entry-title {
  margin: 0 0 0.25rem;
  color: var(--site-text);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.page-home .talk-title {
  color: var(--site-text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

.page-home .award-title {
  line-height: 1.55;
}

.page-home .education-link,
.page-home .experience-link,
.page-home .talk-link {
  color: var(--site-blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(3, 105, 161, 0.42);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.16em;
  transition: color var(--motion-quick) var(--motion-ease), text-decoration-color var(--motion-quick) var(--motion-ease);
}

.page-home .talks-scroll-container {
  padding: 0.72rem;
  overflow-x: hidden !important;
  border-color: rgba(47, 87, 200, 0.065);
  background: linear-gradient(180deg, rgba(246, 248, 253, 0.84), rgba(242, 246, 251, 0.74));
  scrollbar-color: #cbd5e1 #f1f5f9;
  scrollbar-width: thin;
}

.page-home .talk-media-card {
  border-radius: var(--site-radius-card) !important;
  box-shadow: var(--site-shadow-low) !important;
}

.page-home .talks-scroll-container::-webkit-scrollbar {
  width: 8px;
}

.page-home .talks-scroll-container::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #f1f5f9;
}

.page-home .talks-scroll-container::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbd5e1;
}

.page-home .talk-action-row {
  margin-top: -0.15rem;
}

.page-home .talk-action-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 0.85rem;
  border: 1px solid rgba(47, 87, 200, 0.08);
  border-radius: 999px;
  background: rgba(239, 244, 255, 0.92);
  box-shadow: var(--site-shadow-xs);
  color: #35557a;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--motion-quick) var(--motion-ease), border-color var(--motion-quick) var(--motion-ease), color var(--motion-quick) var(--motion-ease), transform var(--motion-quick) var(--motion-ease), box-shadow var(--motion-quick) var(--motion-ease);
}

.page-home .talk-media-overlay-pill {
  top: 0.75rem !important;
  z-index: 5;
  white-space: nowrap;
}

.page-home a.talk-media-overlay-pill {
  left: 0.75rem !important;
}

.page-home div.talk-media-overlay-pill {
  right: 0.75rem !important;
}

.site-navbar-toggle:focus-visible,
.site-nav-link:focus-visible,
.profile-action:focus-visible,
.profile-bio a[href]:focus-visible,
.inline-link:focus-visible,
.footer a[href]:focus-visible,
.news-primary-link:focus-visible,
.news-more-link:focus-visible,
.news-badge:focus-visible,
.page-home .education-link:focus-visible,
.page-home .experience-link:focus-visible,
.page-home .talk-link:focus-visible,
.page-home .talk-action-pill:focus-visible,
.skip-link:focus-visible {
  outline: 3px solid var(--site-focus);
  outline-offset: 3px;
}

body.page-home .site-navbar-toggle:focus-visible,
body.page-home .site-nav-link:focus-visible,
body.page-home .profile-action:focus-visible,
body.page-home .profile-bio a[href]:focus-visible,
body.page-home .inline-link:focus-visible,
body.page-home .news-primary-link:focus-visible,
body.page-home .news-more-link:focus-visible,
body.page-home .news-badge:focus-visible,
body.page-home .education-link:focus-visible,
body.page-home .experience-link:focus-visible,
body.page-home .talk-link:focus-visible,
body.page-home .talk-action-pill:focus-visible,
body.page-home .skip-link:focus-visible {
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.88);
}

@media (hover: hover) and (pointer: fine) {
  .site-nav-link:hover {
    background: var(--site-blue-soft);
    color: var(--site-primary-strong) !important;
  }

  .site-nav-link:hover::after {
    opacity: 0.72;
    transform: scaleX(1);
  }

  .profile-portrait:hover {
    border-color: var(--site-border-strong);
    box-shadow: var(--site-shadow-high);
    transform: translateY(-1px) scale(1.01);
  }

  .profile-action:hover {
    border-color: var(--action-border);
    background: var(--action-soft);
    box-shadow: var(--site-shadow-low);
    transform: translateY(-1px);
  }

  .profile-action:hover .profile-action-external {
    color: var(--site-sky);
    transform: translate(1px, -1px);
  }

  .profile-bio a[href]:not([style*="background-image"]):hover,
  .news-primary-link:hover,
  .news-more-link:hover,
  .inline-link:hover,
  .page-home .education-link:hover,
  .page-home .experience-link:hover,
  .page-home .talk-link:hover,
  .page-home .award-title a[href]:hover,
  .page-home .service-item-pill a[href]:hover,
  .footer a[href]:hover {
    background-size: 100% 100%;
    color: var(--site-link-ink-strong) !important;
    text-decoration-color: currentColor !important;
  }

  .news-primary-link:hover {
    text-decoration: underline;
  }

  .news-primary-link:hover i {
    color: var(--site-primary);
    transform: translate(1px, -1px);
  }

  .news-entry:hover {
    border-color: rgba(47, 87, 200, 0.12);
    background: rgba(239, 244, 255, 0.92);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    transform: translateY(-1px);
  }

  .news-entry:hover .news-date {
    border-color: rgba(47, 87, 200, 0.14);
    background: #F7F9FF;
    color: #526A87;
    box-shadow: inset 0 1px 0 #FFFFFF, 0 4px 10px rgba(15, 23, 42, 0.05);
  }

  .page-home .talk-action-pill:hover {
    border-color: rgba(47, 87, 200, 0.14);
    background: rgba(243, 247, 255, 0.98);
    box-shadow: var(--site-shadow-low);
    color: var(--site-primary-strong);
    text-decoration: none;
    transform: translateY(-1px);
  }
}

.profile-action:active,
.site-nav-link:active,
.news-badge:active {
  transform: translateY(0) scale(0.98);
}

@media (min-width: 768px) {
  .profile-hero-grid {
    padding: clamp(1.8rem, 2.4vw, 2.15rem) clamp(1.9rem, 2.8vw, 2.25rem);
  }

  .profile-position {
    font-size: 0.9rem;
  }

  .profile-bio {
    margin-top: 0.95rem;
    font-size: 0.97rem;
    line-height: 1.62;
  }

  .profile-bio p {
    margin-bottom: 0.72rem;
  }

  .profile-quote p {
    font-size: 0.89rem;
    line-height: 1.5;
  }

  .profile-quote footer {
    font-size: 0.79rem;
  }

  .profile-portrait {
    max-height: 300px;
  }

  .profile-actions {
    padding: 0.82rem clamp(1.9rem, 2.8vw, 2.25rem) 1rem;
  }

  .profile-action {
    padding: 0.46rem 0.78rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 767.98px) {
  :root {
    --navbar-height: 62px;
  }

  body.bg-light {
    padding-top: calc(var(--navbar-height) + 0.65rem);
  }

  body.page-home {
    font-size: 0.925rem;
  }

  .page-home > .row,
  .page-home #main-content > .row {
    margin-top: 0.95rem !important;
  }

  .site-navbar-logo {
    height: 31px;
    max-width: 92px;
  }

  .site-navbar-name {
    font-size: 0.96rem;
  }

  .site-navbar .navbar-collapse {
    margin-top: 0.52rem;
    padding: 0.5rem;
    border: 1px solid var(--site-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--site-shadow-low);
  }

  .site-navbar .navbar-nav {
    gap: 0.2rem;
  }

  .site-nav-link {
    width: 100%;
  }

  .profile-hero-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding: 1rem;
  }

  .profile-media {
    order: -1;
    width: min(40vw, 138px);
  }

  .profile-portrait {
    max-height: 168px;
  }

  .profile-name {
    font-size: clamp(1.65rem, 7.4vw, 1.95rem);
  }

  .profile-bio[data-justify="true"] {
    text-align: left;
  }

  .profile-actions {
    padding: 0.72rem 0.85rem 0.82rem;
  }

  .profile-action {
    flex: 1 1 132px;
  }

  .profile-action--email {
    flex-basis: 100%;
    justify-content: flex-start;
    min-width: 0;
    white-space: normal;
  }

  .section-header {
    padding: 1.1rem 1rem 0.85rem;
  }

  .news-section-header {
    padding: 1.35rem 1.15rem 0.35rem;
  }

  .news-groups {
    padding: 0.1rem 1.15rem 1.1rem;
  }

  .news-list {
    gap: 0.36rem;
  }

  .news-entry {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 0.62rem;
    padding: 0.58rem 0.6rem;
  }

  .news-date {
    width: auto;
  }
}

@media (max-width: 575.98px) {
  .page-home .card-body.p-4,
  .page-home .card-body.p-5 {
    padding: 1rem !important;
  }

  .page-home .education-entry-title,
  .page-home .experience-entry-title {
    font-size: 1.08rem;
  }

  .page-home .education-date-pill,
  .page-home .award-entry .entry-date-pill {
    align-self: flex-start;
    margin: 0.55rem 0 0 !important;
  }

  .page-home .award-title {
    max-width: 100% !important;
    flex-basis: 100% !important;
  }

  .page-home .experience-entry {
    flex-direction: column;
    align-items: flex-start !important;
    max-width: 100%;
  }

  .page-home .experience-entry .entry-logo {
    width: 3.25rem !important;
    min-width: 3.25rem;
    max-width: 3.25rem;
    height: 3.25rem !important;
    min-height: 3.25rem;
    max-height: 3.25rem;
    margin-right: 0 !important;
    margin-bottom: 0.7rem;
  }

  .page-home .experience-entry > .flex-grow-1,
  .page-home .experience-entry .d-flex.w-100,
  .page-home .experience-entry .min-w-0 {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .page-home .experience-entry .d-flex.w-100 {
    flex-direction: column;
  }

  .page-home .experience-entry .entry-date-pill {
    align-self: flex-start !important;
    max-width: 100%;
    margin-top: 0.6rem;
    white-space: normal !important;
  }
}

@media (max-width: 390px) {
  .site-navbar-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .profile-action {
    flex: 1 1 125px;
    justify-content: center;
  }

  .profile-action--email {
    flex-basis: 100%;
    justify-content: flex-start;
  }
}

/* ===== Bright identity refinement ===== */
body.page-home,
body.page-publications {
  position: relative;
  isolation: isolate;
}

body.page-home #main-content,
body.page-home footer,
body.page-publications #main-content,
body.page-publications footer {
  position: relative;
  z-index: 1;
}

#background-animation {
  opacity: var(--background-animation-opacity);
  mix-blend-mode: multiply;
}

.content-section,
.profile-card,
.page-home .card.border-0.shadow-sm.bg-white.rounded-xl,
.page-home .card.border-0.shadow-sm.bg-white.rounded-3 {
  border-color: var(--site-border) !important;
  background: rgba(255, 255, 255, 0.84) !important;
  box-shadow: var(--site-shadow-low) !important;
}

body.page-home .content-section,
body.page-home .profile-card,
body.page-home .card.border-0.shadow-sm.bg-white.rounded-xl,
body.page-home .card.border-0.shadow-sm.bg-white.rounded-3 {
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: var(--site-shadow-medium) !important;
}

.profile-action--email {
  --action-color: #4f46e5;
  --action-soft: #eef2ff;
  --action-border: rgba(79, 70, 229, 0.19);
}

.profile-action--cv {
  --action-color: #dc2626;
  --action-soft: #fff1f2;
  --action-border: rgba(220, 38, 38, 0.18);
}

.profile-action--scholar {
  --action-color: #4285f4;
  --action-soft: #eff6ff;
  --action-border: rgba(66, 133, 244, 0.20);
}

.profile-action--github,
.profile-action--x {
  --action-color: #24292f;
  --action-soft: #f3f4f6;
  --action-border: rgba(36, 41, 47, 0.17);
}

.profile-action--linkedin {
  --action-color: #0a66c2;
  --action-soft: #eff6ff;
  --action-border: rgba(10, 102, 194, 0.20);
}

.profile-action--orcid {
  --action-color: #6d9417;
  --action-soft: #f3fae7;
  --action-border: rgba(166, 206, 57, 0.28);
}

.profile-action--wechat {
  --action-color: #07a955;
  --action-soft: #ecfdf3;
  --action-border: rgba(7, 193, 96, 0.22);
}

.profile-action:hover > i:first-child {
  transform: scale(1.06);
}

.profile-action > i:first-child {
  transition: transform var(--motion-quick) var(--motion-ease), background-color var(--motion-quick) var(--motion-ease);
}

.news-scroll {
  max-height: 400px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #D1D5DB #F3F4F6;
  scrollbar-width: thin;
  scroll-padding-block: 0.75rem;
}

.news-scroll::-webkit-scrollbar {
  width: 8px;
}

.news-scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #F3F4F6;
}

.news-scroll::-webkit-scrollbar-thumb {
  min-height: 42px;
  border: 2px solid #F8FAFC;
  border-radius: 999px;
  background: #D1D5DB;
}

.news-scroll::-webkit-scrollbar-thumb:hover {
  background: #B8C0CB;
}

.news-scroll:focus-visible {
  outline: 3px solid var(--site-focus);
  outline-offset: -3px;
  border-radius: 0 0 var(--site-radius-lg) var(--site-radius-lg);
}

.news-badge,
.education-date-pill,
.entry-date-pill,
.talk-action-pill {
  border-radius: var(--site-radius-pill) !important;
}

.page-home .service-item-pill {
  border-radius: var(--site-radius-row) !important;
}

.news-date {
  border: 1px solid rgba(47, 87, 200, 0.08);
  border-radius: 999px;
  background: rgba(239, 244, 255, 0.90);
  color: #607089;
}

.news-item--featured .news-entry {
  border-color: rgba(47, 87, 200, 0.10);
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.98), rgba(241, 246, 252, 0.95));
}

.news-badge--featured {
  border-color: rgba(47, 87, 200, 0.12);
  background: rgba(239, 244, 255, 0.94);
  box-shadow: var(--site-shadow-xs);
  color: #536783 !important;
}

@media (max-width: 767.98px) {
  .news-scroll {
    max-height: none;
    overflow-y: visible;
  }
}

@media (hover: none), (pointer: coarse) {
  .page-home .talk-action-pill,
  .page-home a.news-badge {
    min-height: 44px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  #background-animation {
    opacity: 0.08 !important;
    mix-blend-mode: normal;
  }

  .content-section,
  .profile-card,
  .page-home .card.border-0.shadow-sm.bg-white.rounded-xl,
  .page-home .card.border-0.shadow-sm.bg-white.rounded-3,
  .news-section {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .page-home .education-entry,
  .page-home .experience-entry,
  .page-home .award-entry,
  .page-home .service-item-pill,
  .page-home .talks-scroll-container {
    background: rgba(248, 250, 255, 0.97) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .skip-link,
  .site-nav-link,
  .site-nav-link::after,
  .site-navbar-toggle-icon span,
  .profile-portrait,
  .profile-action,
  .profile-action-external,
  .news-entry,
  .news-primary-link i,
  .profile-bio a[href]:not([style*="background-image"]),
  .news-primary-link,
  .news-more-link,
  .inline-link,
  .page-home .education-link,
  .page-home .experience-link,
  .page-home .talk-link,
  .page-home .award-title a[href],
  .page-home .service-item-pill a[href],
  .footer a[href] {
    transition: none;
  }

  .site-nav-link:hover,
  .profile-portrait:hover,
  .profile-action:hover,
  .news-entry:hover {
    transform: none;
  }
}
