:root {
  --bg: #f6f3ec;
  --bg-2: #ebe6dc;
  --surface: #fffdf8;
  --surface-2: #eee8dc;
  --tile: #fbf8f1;
  --text: #242321;
  --muted: #6f6a61;
  --line: #d8d0c2;
  --cream: #fffaf0;
  --shadow: 0 18px 50px rgba(52, 49, 45, .10);
  --radius: 22px;
  --max: 1120px;
  --accent: #b98a52;
  --name-accent: #b98a52;
  --tagline-accent: #8c6a3d;

}

body[data-theme="dark"] {
  --bg: #1f1e1c;
  --bg-2: #292724;
  --surface: #2b2925;
  --surface-2: #36332e;
  --tile: #302d29;
  --text: #f2ede3;
  --muted: #c3baaa;
  --line: #4b463f;
  --shadow: 0 18px 50px rgba(0, 0, 0, .34);
  --accent: #e4c28a;
  --name-accent: #efd2a0;
  --tagline-accent: #ccb289;

}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: linear-gradient(135deg, var(--bg), var(--bg-2));
  color: var(--text);
  line-height: 1.65;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  max-width: var(--max);
  margin: 18px auto 0;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 253, 248, .86);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

body[data-theme="dark"] .site-header {
  background: rgba(43, 41, 37, .9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #47423c;
  color: #fffaf0;
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

.site-nav a,
.theme-toggle,
.menu-toggle,
.btn,
.filter-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  text-decoration: none;
  padding: 10px 15px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color .45s ease,
    color .45s ease,
    border-color .45s ease,
    box-shadow .45s ease,
    transform .35s ease;
}

.site-nav a:hover,
.site-nav a.active,
.theme-toggle:hover,
.menu-toggle:hover,
.btn:hover,
.filter-btn:hover,
.filter-btn.active {
  background: #47423c;
  border-color: #47423c;
  color: #fffaf0;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(52, 49, 45, .2);
}

.theme-toggle,
.menu-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
}

.menu-toggle {
  display: none;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 22px;
}

.hero {
  min-height: 72vh;
  display: grid;
  grid-template-columns: 1.45fr .9fr;
  gap: 30px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  line-height: 1.08;
  margin: 0 0 16px;
  letter-spacing: -.045em;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.25rem;
}

.hero-subtitle,
.page-title p,
.section-note {
  max-width: 760px;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn-charcoal {
  background: #47423c;
  color: #fffaf0;
  border-color: #47423c;
}

.profile-card,
.tile,
.link-card,
.publication-card,
.timeline-card,
.service-card,
.credential-card {
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.profile-card {
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: visible;
  transition:
    background-color .45s ease,
    box-shadow .45s ease,
    transform .35s ease,
    border-color .45s ease;
}

.profile-card:hover {
  background: linear-gradient(145deg, var(--surface), var(--surface-2));
  transform: translateY(-8px) scale(1.012);
  box-shadow: 0 34px 90px rgba(52, 49, 45, .22);
  border-color: #b8aa95;
}

.profile-photo-frame {
  position: relative;
  width: 142px;
  height: 142px;
  margin: 0 auto 22px;
  border-radius: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ece6da, #fffaf0);
  isolation: isolate;
}

.profile-photo-frame img,
.profile-initials {
  width: 112px;
  height: 112px;
  border-radius: 28px;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: #47423c;
  color: #fffaf0;
  font-size: 2.6rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, .25);
  z-index: 2;
}

.profile-initials {
  display: none;
}

.corner-arrow {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  transition:
    transform .42s ease,
    opacity .42s ease,
    filter .42s ease;
}

.corner-arrow-major {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 8px 12px rgba(52, 49, 45, .22));
}

.corner-arrow-minor {
  width: 48px;
  height: 48px;
  opacity: 0;
  z-index: 1;
  filter: drop-shadow(0 6px 8px rgba(154, 107, 53, .18));
}

.corner-arrow-tl {
  top: -10px;
  left: -10px;
  background: #47423c;
  clip-path: polygon(0 0, 100% 0, 100% 19%, 38% 19%, 19% 38%, 19% 100%, 0 100%);
}

.corner-arrow-tl-minor {
  top: 3px;
  left: 3px;
  background: #b98a52;
  clip-path: polygon(0 0, 100% 0, 100% 11%, 34% 11%, 11% 34%, 11% 100%, 0 100%);
}

.corner-arrow-br {
  right: -10px;
  bottom: -10px;
  background: #47423c;
  clip-path: polygon(81% 0, 100% 0, 100% 100%, 0 100%, 0 81%, 62% 81%, 81% 62%);
}

.corner-arrow-br-minor {
  right: 3px;
  bottom: 3px;
  background: #b98a52;
  clip-path: polygon(89% 0, 100% 0, 100% 100%, 0 100%, 0 89%, 66% 89%, 89% 66%);
}

.profile-card:hover .corner-arrow-tl {
  transform: translate(-10px, -10px);
}

.profile-card:hover .corner-arrow-br {
  transform: translate(10px, 10px);
}

.profile-card:hover .corner-arrow-tl-minor {
  opacity: 1;
  transform: translate(-5px, -5px);
}

.profile-card:hover .corner-arrow-br-minor {
  opacity: 1;
  transform: translate(5px, 5px);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 22px;
}

.mini-stats span {
  padding: 12px 8px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: .78rem;
  transition:
    background-color .45s ease,
    color .45s ease,
    transform .35s ease,
    box-shadow .45s ease;
}

.mini-stats b {
  display: block;
  color: var(--text);
  transition: color .45s ease;
}

.profile-card:hover .mini-stats span {
  background: #47423c;
  color: #fffaf0;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(52, 49, 45, .22);
}

.profile-card:hover .mini-stats b {
  color: #fffaf0;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading.split {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tile {
  padding: 24px;
  min-height: 190px;
  transition:
    background-color .5s ease,
    color .5s ease,
    border-color .5s ease,
    transform .35s ease,
    box-shadow .5s ease;
}

.tile p {
  color: var(--muted);
  margin: 0;
  transition: color .5s ease;
}

.tile:hover,
.link-card:hover,
.publication-card:hover {
  background: #47423c;
  color: #fffaf0;
  border-color: #47423c;
  transform: translateY(-6px);
}

.tile:hover p,
.tile:hover li,
.link-card:hover small,
.publication-card:hover .pub-authors,
.publication-card:hover .pub-venue {
  color: rgba(255, 250, 240, .88);
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.chip-grid span {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--tile);
  box-shadow: var(--shadow);
  font-weight: 800;
  text-align: center;
  transition:
    background-color .5s ease,
    color .5s ease,
    transform .35s ease;
}

.chip-grid span:hover {
  background: #47423c;
  color: #fffaf0;
  transform: translateY(-4px);
}

.chip-grid span:nth-last-child(2):nth-child(3n + 1) {
  grid-column: 1;
}

.chip-grid span:last-child:nth-child(3n + 2) {
  grid-column: 3;
}

.chip-grid span:last-child:nth-child(3n + 1) {
  grid-column: 2;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.link-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  transition:
    background-color .5s ease,
    color .5s ease,
    transform .35s ease;
}

.link-card span {
  font-weight: 900;
}

.link-card small,
.pub-authors,
.pub-venue {
  color: var(--muted);
  transition: color .5s ease;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pub-total-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 24px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow);
}

.pub-total-block h3 {
  margin: 0;
}

.pub-total-block span,
.pub-category-heading span {
  display: inline-flex;
  padding: 10px 15px;
  border-radius: 999px;
  background: #47423c;
  color: #fffaf0;
  font-weight: 900;
}

.pub-category-block {
  display: grid;
  gap: 14px;
  margin: 0 0 34px;
}

.pub-category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.pub-category-heading h3 {
  margin: 0;
}

.publication-list,
.publication-list.nested {
  display: grid;
  gap: 14px;
}

.publication-card {
  padding: 24px;
  transition:
    background-color .5s ease,
    color .5s ease,
    border-color .5s ease,
    transform .35s ease;
}

.pub-topline {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.pub-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 900;
  transition:
    background-color .5s ease,
    color .5s ease;
}

.publication-card:hover .pub-number {
  background: rgba(255, 250, 240, .18);
  color: #fffaf0;
}

.pub-meta {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  transition:
    background-color .5s ease,
    color .5s ease;
}

.publication-card:hover .pub-meta {
  background: rgba(255, 250, 240, .18);
  color: #fffaf0;
}

.pub-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn-small {
  padding: 8px 12px;
  font-size: .86rem;
}

.bibtex {
  white-space: pre-wrap;
  overflow-x: auto;
  margin-top: 16px;
  background: #2a2723;
  color: #f6efe3;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid #514b43;
}

.clean-list {
  margin: 0;
  padding-left: 20px;
  color: inherit;
}

.clean-list li {
  margin-bottom: 10px;
}

.readable-list {
  margin-top: 14px;
  color: var(--muted);
}

.two-col-list {
  columns: 2;
  column-gap: 36px;
}

.timeline-modern {
  --timeline-progress: 0%;
  position: relative;
  display: grid;
  gap: 22px;
}

.timeline-modern::before {
  content: "";
  position: absolute;
  left: 170px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(#b8aa95, transparent);
}

.timeline-modern::after {
  content: "";
  position: absolute;
  left: 170px;
  top: 10px;
  width: 3px;
  height: var(--timeline-progress);
  max-height: calc(100% - 20px);
  border-radius: 999px;
  background: linear-gradient(180deg, #47423c, #b98a52, #47423c);
  box-shadow: 0 0 18px rgba(185, 138, 82, .35);
  transition: height .16s linear;
  z-index: 0;
}

.timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 140px 36px 1fr;
  gap: 16px;
}

.timeline-date {
  color: var(--muted);
  font-weight: 900;
  text-align: right;
  padding-top: 24px;
}

.timeline-node {
  position: relative;
  z-index: 2;
  width: 18px;
  height: 18px;
  margin: 27px auto 0;
  border-radius: 50%;
  background: #47423c;
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 2px #b8aa95;
  transition:
    transform .35s ease,
    background-color .35s ease,
    box-shadow .35s ease,
    border-color .35s ease;
}

.timeline-entry:hover .timeline-node,
.timeline-entry.open .timeline-node,
.timeline-entry.is-active .timeline-node,
.timeline-entry:has(.timeline-card:hover) .timeline-node {
  background: #b98a52;
  transform: scale(1.38);
  box-shadow:
    0 0 0 6px rgba(185, 138, 82, .20),
    0 0 24px rgba(185, 138, 82, .55);
  border-color: var(--surface);
}

.timeline-entry:hover .timeline-card,
.timeline-entry.open .timeline-card,
.timeline-entry.is-active .timeline-card,
.timeline-entry:has(.timeline-card:hover) .timeline-card {
  border-color: #b98a52;
}

.timeline-card {
  overflow: hidden;
}

.expand-summary {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  transition:
    background-color .5s ease,
    color .5s ease,
    border-radius .35s ease;
}

.expand-summary small {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
  font-size: .72rem;
  margin-bottom: 8px;
  transition: color .5s ease;
}

.expand-summary strong {
  display: block;
  font-size: 1.15rem;
}

.expand-summary em {
  display: block;
  color: var(--muted);
  font-style: normal;
  margin-top: 8px;
  transition: color .5s ease;
}

.accordion-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  font-size: 1.4rem;
  transition:
    transform .35s ease,
    background-color .5s ease,
    color .5s ease;
}

.expand-details {
  display: grid;
  grid-template-rows: 0fr;
  transition:
    grid-template-rows .38s ease,
    background-color .5s ease;
}

.expand-details > div {
  overflow: hidden;
  padding: 0 24px;
  color: var(--muted);
}

.expand-card:hover .expand-summary {
  background: #47423c;
  color: #fffaf0;
  border-radius: var(--radius);
}

.expand-card:hover .expand-summary small,
.expand-card:hover .expand-summary em {
  color: rgba(255, 250, 240, .78);
}

.expand-card.open .expand-summary {
  background: #47423c !important;
  color: #fffaf0 !important;
  border-radius: var(--radius) var(--radius) 0 0;
}

.expand-card.open .expand-summary small,
.expand-card.open .expand-summary em {
  color: rgba(255, 250, 240, .78) !important;
}

.expand-card.open .accordion-icon {
  background: rgba(255, 250, 240, .18);
  color: #fffaf0;
  transform: rotate(180deg);
}

.expand-card.open .expand-details {
  grid-template-rows: 1fr;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.expand-card.open .expand-details > div {
  padding: 20px 24px 24px;
  color: var(--text);
}

.numbered-list {
  list-style: decimal;
  padding-left: 1.4rem;
}

.numbered-list li::marker {
  font-weight: 900;
  color: #47423c;
}

.accordion-grid {
  column-count: 2;
  column-gap: 20px;
}

.service-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 20px;
  overflow: hidden;
  break-inside: avoid;
  transition:
    background-color .5s ease,
    border-color .5s ease;
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.credential-card {
  position: relative;
  min-height: 230px;
  padding: 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: linear-gradient(145deg, var(--tile), var(--surface));
  transition:
    background-color .5s ease,
    color .5s ease,
    border-color .5s ease,
    transform .35s ease,
    box-shadow .5s ease;
}

.credential-card::before {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -50px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(71, 66, 60, .08);
  transition:
    transform .45s ease,
    background-color .45s ease;
}

.credential-card:hover {
  background: #47423c;
  color: #fffaf0;
  border-color: #47423c;
  transform: translateY(-7px);
  box-shadow: 0 28px 70px rgba(52, 49, 45, .24);
}

.credential-card:hover::before {
  transform: scale(1.4);
  background: rgba(255, 250, 240, .12);
}

.credential-card h3 {
  font-size: 1.05rem;
  letter-spacing: -.025em;
  margin-top: 42px;
  margin-bottom: 14px;
}

.credential-card p {
  color: var(--muted);
  margin: 0;
  transition: color .45s ease;
}

.credential-card:hover p {
  color: rgba(255, 250, 240, .84);
}

.credential-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition:
    background-color .45s ease,
    color .45s ease;
}

.credential-card:hover .credential-badge {
  background: rgba(255, 250, 240, .18);
  color: #fffaf0;
}

.credential-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 800;
  transition: color .45s ease;
}

.credential-card:hover .credential-meta {
  color: #fffaf0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .7s ease,
    transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.publications-section {
  opacity: 1 !important;
  transform: none !important;
}

body[data-theme="dark"] .profile-card:hover {
  background: linear-gradient(145deg, #342f2a, #25231f);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .48);
  border-color: #756c60;
}

body[data-theme="dark"] .profile-photo-frame {
  background: linear-gradient(135deg, #352f29, #1f1e1c);
}

body[data-theme="dark"] .corner-arrow-major {
  background: #e1d7c6;
}

body[data-theme="dark"] .corner-arrow-minor {
  background: #d6b27f;
}

body[data-theme="dark"] .numbered-list li::marker {
  color: #fffaf0 !important;
}

body[data-theme="dark"] .expand-card.open .expand-details {
  background: #36332e;
  color: #f2ede3;
}

body[data-theme="dark"] .expand-card.open .expand-details > div,
body[data-theme="dark"] .expand-card.open li {
  color: #f2ede3;
}

body[data-theme="dark"] .credential-card {
  background: linear-gradient(145deg, var(--tile), var(--surface-2));
}

body[data-theme="dark"] .credential-card:hover {
  background: #4b453e;
}

@media (max-width: 980px) {
  .grid.four,
  .grid.three,
  .link-grid,
  .credential-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chip-grid span:nth-last-child(2):nth-child(2n + 1) {
    grid-column: 1;
  }

  .chip-grid span:last-child:nth-child(2n + 0) {
    grid-column: 2;
  }

  .chip-grid span:last-child:nth-child(2n + 1) {
    grid-column: 1 / -1;
    justify-self: center;
    min-width: min(320px, 100%);
  }
}

@media (max-width: 900px) {
  .site-header {
    margin: 10px;
    border-radius: 24px;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .theme-toggle {
    order: 3;
  }

  .site-nav {
    display: none;
    width: 100%;
    order: 4;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    text-align: center;
  }

  .hero,
  .grid.two,
  .grid.three,
  .grid.four,
  .link-grid,
  .credential-grid {
    grid-template-columns: 1fr;
  }

  .accordion-grid {
    column-count: 1;
  }

  .timeline-modern::before,
  .timeline-modern::after {
    left: 9px;
  }

  .timeline-entry {
    grid-template-columns: 22px 1fr;
  }

  .timeline-date {
    grid-column: 2;
    text-align: left;
    padding-top: 0;
  }

  .timeline-node {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-top: 7px;
  }

  .timeline-card {
    grid-column: 2;
  }

  .two-col-list {
    columns: 1;
  }

  .pub-total-block {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 2.7rem;
  }

  .section {
    padding: 52px 18px;
  }

  .brand-text {
    display: none;
  }

  .mini-stats {
    grid-template-columns: 1fr;
  }

  .chip-grid {
    grid-template-columns: 1fr;
  }

  .chip-grid span {
    grid-column: auto !important;
    justify-self: stretch !important;
  }

  .pub-category-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-photo-frame {
    width: 126px;
    height: 126px;
  }

  .profile-photo-frame img,
  .profile-initials {
    width: 102px;
    height: 102px;
  }
}

/* Better handling for long timeline dates like Decision Scientist Intern */

.timeline-date {
  line-height: 1.35;
}

@media (min-width: 901px) {
  .timeline-date {
    font-size: .88rem;
  }
}

/* Smooth open + close animation for all expandable cards
   Applies to:
   - Timeline cards in Experience/Education
   - Service tiles in Service page
*/

.expand-card {
  overflow: hidden;
}

.expand-details {
  display: grid !important;
  grid-template-rows: 0fr !important;
  height: auto !important;
  visibility: visible !important;
  opacity: 0;
  overflow: hidden;
  background: transparent;
  border-top: 0;
  transition:
    grid-template-rows .42s ease,
    opacity .28s ease,
    background-color .42s ease,
    border-color .42s ease;
}

.expand-details > div {
  min-height: 0;
  overflow: hidden;
  padding: 0 24px;
  transition:
    padding .42s ease,
    color .42s ease;
}

/* Open state */

.expand-card.open .expand-details {
  grid-template-rows: 1fr !important;
  opacity: 1;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.expand-card.open .expand-details > div {
  padding: 20px 24px 24px;
}

/* Closed state: keep it animatable instead of snapping shut */

.expand-card:not(.open) .expand-details {
  grid-template-rows: 0fr !important;
  opacity: 0;
  height: auto !important;
  visibility: visible !important;
  background: transparent !important;
  border-top: 0 !important;
}

.expand-card:not(.open) .expand-details > div {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Prevent trailing strip under hovered but unopened expandable cards */

.expand-card:not(.open):hover .expand-details {
  background: transparent !important;
  border-top: 0 !important;
}

/* Keep service numbering bold */

.numbered-list li::marker,
.service-card ol li::marker {
  font-weight: 900;
}

/* Make all expandable-card + / − icons consistently oval */

.expand-card .accordion-icon {
  width: 46px;
  min-width: 46px;
  max-width: 46px;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  border-radius: 999px;
  flex: 0 0 46px;
}

/* Emphasize my name in publication author lists */

.pub-authors strong {
  font-weight: 900;
  color: var(--text);
}

.publication-card:hover .pub-authors strong {
  color: #fffaf0;
}

/* Slightly larger homepage profile picture */

/* .profile-photo-frame {
  width: 162px;
  height: 162px;
}

.profile-photo-frame img,
.profile-initials {
  width: 130px;
  height: 130px;
} */

/* Larger homepage profile picture */

.profile-photo-frame {
  width: 174px;
  height: 174px;
}

.profile-photo-frame img,
.profile-initials {
  width: 140px;
  height: 140px;
}

/* Degree expanded-detail layout */

.degree-detail-panel {
  display: grid;
  gap: 18px;
}

.degree-detail-block {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--tile);
}

.degree-detail-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.degree-detail-block h4 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: -.025em;
  color: var(--text);
}

.degree-detail-block p {
  margin: 0;
  color: var(--muted);
}

.degree-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.disabled-link {
  pointer-events: none;
  opacity: .65;
}

/* People page */

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.person-card {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  min-height: 250px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tile);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    background-color .5s ease,
    color .5s ease,
    border-color .5s ease,
    transform .35s ease,
    box-shadow .5s ease;
}

.person-card:hover {
  background: #47423c;
  color: #fffaf0;
  border-color: #47423c;
  transform: translateY(-7px);
  box-shadow: 0 28px 70px rgba(52, 49, 45, .24);
}

.person-photo-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition:
    background-color .45s ease,
    border-color .45s ease,
    transform .35s ease;
}

.person-card:hover .person-photo-wrap {
  border-color: rgba(255, 250, 240, .36);
  transform: translateY(-3px);
}

.person-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* If image is missing, the initials remain visible behind it */
.person-initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #47423c;
  color: #fffaf0;
  font-weight: 900;
  font-size: 1.35rem;
  z-index: -1;
}

.person-photo-wrap img[src="#"],
.person-photo-wrap img:not([src]) {
  display: none;
}

.person-content {
  min-width: 0;
}

.person-role-tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition:
    background-color .45s ease,
    color .45s ease;
}

.person-card:hover .person-role-tag {
  background: rgba(255, 250, 240, .18);
  color: #fffaf0;
}

.person-card h3 {
  margin-bottom: 8px;
  font-size: 1.22rem;
}

.person-designation {
  margin: 0 0 6px;
  font-weight: 800;
  color: var(--text);
  transition: color .45s ease;
}

.person-organization,
.person-address {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: .94rem;
  transition: color .45s ease;
}

.person-card:hover .person-designation,
.person-card:hover .person-organization,
.person-card:hover .person-address {
  color: rgba(255, 250, 240, .86);
}

.person-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.person-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: .84rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    background-color .45s ease,
    color .45s ease,
    border-color .45s ease,
    transform .35s ease;
}

.person-links a:hover {
  background: #fffaf0;
  color: #47423c;
  border-color: #fffaf0;
  transform: translateY(-2px);
}

body[data-theme="dark"] .person-card:hover {
  background: #4b453e;
}

body[data-theme="dark"] .person-links a:hover {
  background: #f2ede3;
  color: #242321;
}

/* Responsive people cards */

@media (max-width: 1050px) {
  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .people-grid {
    grid-template-columns: 1fr;
  }

  .person-card {
    grid-template-columns: 1fr;
  }

  .person-photo-wrap {
    width: 104px;
    height: 104px;
  }
}

.person-placeholder {
  display: grid;
  place-items: center;
  background: #47423c;
  color: #fffaf0;
  font-size: 1.4rem;
  font-weight: 900;

  transition:
    background-color .45s ease,
    color .45s ease,
    transform .35s ease,
    box-shadow .35s ease;
}

.person-card:hover .person-placeholder {
  background: #fffaf0;
  color: #47423c;
  transform: scale(1.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

/* =========================
   PEOPLE PAGE LINK BUTTONS
   ========================= */

.person-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  min-height: 36px;
  padding: 8px 12px;

  border-radius: 999px;

  background: #47423c;
  color: #fffaf0;
  border: 1px solid #47423c;

  text-decoration: none;
  font-size: .84rem;
  font-weight: 800;

  transition:
    background-color .45s ease,
    color .45s ease,
    border-color .45s ease,
    transform .35s ease,
    box-shadow .35s ease;
}

.person-link-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: #fffaf0;
  color: #47423c;

  font-size: .74rem;
  font-weight: 900;

  transition:
    background-color .45s ease,
    color .45s ease,
    transform .35s ease;
}

.person-card:hover .person-links a {
  background: #fffaf0;
  color: #47423c;
  border-color: #fffaf0;
}

.person-card:hover .person-link-icon {
  background: #47423c;
  color: #fffaf0;
}

.person-links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(52,49,45,.18);
}

.person-links a:hover .person-link-icon {
  transform: scale(1.08);
}

.about-intro {
  margin-bottom: 36px;
}

/* .typing-line {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.1;
  margin-bottom: 6px;
}

.typing-name {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 900;
  color: #b98a52;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 14px;
} */

.typing-line {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.1;
  min-height: 2.2rem;
}

.typing-name {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1.05;
  letter-spacing: -.03em;
  min-height: 3.6rem;
  margin-bottom: 14px;
}

.about-tagline {
  margin-bottom: 22px;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--accent);
}

/* Single active typing cursor */

.typing-cursor::after {
  content: "";
  display: inline-block;

  width: .45em;
  height: 1em;

  margin-left: 4px;

  background: currentColor;

  vertical-align: middle;

  animation: cursorBlink .8s infinite;
}

@keyframes cursorBlink {
  0%, 49% {
    opacity: 1;
  }

  50%, 100% {
    opacity: 0;
  }
}


.page-title .eyebrow {
  font-size: .72rem;
  letter-spacing: .14em;
}

.page-title h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.05;
}

/* Secondary pages */

.page-title {
  padding-top: 24px;
  padding-bottom: 12px;
}

.page-title h1 {
  margin-bottom: 8px;
}

.page-title p {
  margin-top: 0;
}

.subsection-heading {
  margin-bottom: 24px;
}

.subsection-heading .eyebrow {
  margin-bottom: 6px;
}

.subsection-heading h2 {
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.15;
  letter-spacing: -.03em;
  margin: 0;
}

.subsection-heading.split h2,
.subsection-heading.split h3 {
  margin-bottom: 12px;
}

.hero-delayed {
  opacity: 0;
  transform: translateY(16px);

  transition:
    opacity .7s ease,
    transform .7s ease;
}

.hero-delayed.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero.section {
  padding-top: 12px;
}

/* Publication action buttons: only change hover shade, keep normal state unchanged */

.publication-card .pub-actions .btn:hover,
.publication-card:hover .pub-actions .btn:hover {
  background: #6a6054 !important;
  border-color: #8a7a68 !important;
  color: #fffaf0 !important;

  transform: translateY(-3px);

  box-shadow:
    0 10px 24px rgba(0, 0, 0, .20);
}

/* Profile card name size */

.profile-card h2 {
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  line-height: 1.1;
  letter-spacing: -.035em;
  margin-bottom: 10px;
}

/* Profile-card contact/profile buttons: content-sized buttons */

.profile-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;

  margin-top: 22px;
}

/* Each button sizes relative to its content */

.profile-link {
  width: auto;
  min-width: max-content;
  min-height: 38px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  padding: 8px 11px;

  border-radius: 999px;
  border: 1px solid var(--line);

  background: var(--surface);
  color: var(--text);

  text-decoration: none;

  font-size: .76rem;
  font-weight: 800;
  line-height: 1;

  white-space: nowrap;

  transition:
    background-color .45s ease,
    color .45s ease,
    border-color .45s ease,
    transform .35s ease,
    box-shadow .35s ease;
}

.profile-link-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;

  display: inline-grid;
  place-items: center;

  border-radius: 50%;

  color: #ffffff;

  font-size: .66rem;
  font-weight: 900;
  line-height: 1;

  transition:
    background-color .45s ease,
    color .45s ease,
    transform .35s ease;
}

.profile-link-text {
  display: inline-block;
  white-space: nowrap;
}

/* Brand-inspired icon colors */

.email-icon {
  background: #47423c;
}

.scholar-icon {
  background: linear-gradient(135deg, #4285f4, #34a853);
}

.orcid-icon {
  background: #a6ce39;
  color: #ffffff;
}

.researchgate-icon {
  background: #00ccbb;
  color: #ffffff;
}

.github-icon {
  background: #24292f;
  color: #ffffff;
}

.linkedin-icon {
  background: #0a66c2;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-weight: 900;
}

/* Hover behavior */

.profile-link:hover {
  background: #47423c;
  color: #fffaf0;
  border-color: #47423c;

  transform: translateY(-3px);

  box-shadow:
    0 12px 28px rgba(52, 49, 45, .20);
}

.profile-link:hover .profile-link-icon {
  background: #fffaf0;
  color: #47423c;

  transform: scale(1.08);
}

/* Keep ORCID readable on hover */

.profile-link:hover .orcid-icon {
  background: #fffaf0;
  color: #6d8f00;
}

/* Dark mode */

body[data-theme="dark"] .profile-link {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line);
}

body[data-theme="dark"] .profile-link:hover {
  background: #e4c28a;
  color: #242321;
  border-color: #e4c28a;
}

body[data-theme="dark"] .profile-link:hover .profile-link-icon {
  background: #242321;
  color: #fffaf0;
}

/* Small screens */

@media (max-width: 520px) {
  .profile-links {
    justify-content: center;
  }

  .profile-link {
    font-size: .74rem;
    padding: 8px 10px;
  }
}
/* Profile card links: content-sized buttons, arranged as 2 rows x 3 columns */

.profile-links {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  justify-content: center;
  align-items: center;

  column-gap: 6px;
  row-gap: 8px;

  /* gives the button area a little more lateral room inside the card */
  width: calc(100% + 32px);
  margin-left: -16px;
  margin-right: -16px;
  margin-top: 22px;
}

.profile-link {
  width: auto !important;
  min-width: max-content;
  min-height: 36px;

  padding: 7px 9px;

  gap: 6px;

  font-size: .72rem;
  white-space: nowrap;
}

.profile-link-icon {
  width: 21px;
  height: 21px;
  min-width: 21px;

  font-size: .62rem;
}

/* On very small screens, allow natural wrapping again */
@media (max-width: 520px) {
  .profile-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Homepage footer credit */

.home-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 24px;
}

.home-footer > div:first-child {
  min-width: 0;
}

.home-footer .footer-credit {
  justify-self: end;

  max-width: 380px;

  color: var(--muted);

  font-size: .84rem;
  font-weight: 700;
  line-height: 1.45;

  text-align: right;
}

/* Mobile / narrow screens */

@media (max-width: 900px) {
  .home-footer {
    grid-template-columns: 1fr;
    row-gap: 14px;
    align-items: flex-start;
  }

  .home-footer .footer-credit {
    justify-self: start;

    max-width: 100%;

    text-align: left;
  }
}


/* =========================
   FOOTER
   ========================= */

.site-footer {
  max-width: var(--max);
  margin: 40px auto 24px;
  padding: 26px 14px;

  display: grid;
  grid-template-columns: minmax(560px, 1fr) minmax(460px, 500px);
  column-gap: 8px;
  align-items: center;

  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer > div:first-child {
  min-width: 0;
}

.site-footer > div:first-child p {
  max-width: none;
  margin-bottom: 0;
}

/* Footer buttons container */

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;

  gap: 10px 12px;

  width: 100%;
  max-width: 500px;

  margin-left: auto;
  margin-right: -8px;
}

/* Footer buttons */

.site-footer .footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;

  gap: 8px;

  min-height: 44px;
  padding: 10px 12px;

  border-radius: 999px;
  border: 1px solid var(--line);

  background: var(--surface);
  color: var(--text);

  text-decoration: none;
  font-size: .84rem;
  font-weight: 800;
  line-height: 1;

  white-space: nowrap;

  transition:
    background-color .45s ease,
    color .45s ease,
    border-color .45s ease,
    transform .35s ease,
    box-shadow .35s ease;
}

/* Footer icons */

.site-footer .footer-icon {
  width: 23px;
  height: 23px;
  min-width: 23px;

  display: inline-grid;
  place-items: center;

  border-radius: 50%;

  color: #ffffff;

  font-size: .68rem;
  font-weight: 900;
  line-height: 1;

  transition:
    background-color .45s ease,
    color .45s ease,
    transform .35s ease;
}

/* Brand-inspired footer icon colors */

.site-footer .email-icon {
  background: #47423c;
}

.site-footer .scholar-icon {
  background: linear-gradient(135deg, #4285f4, #34a853);
}

.site-footer .researchgate-icon {
  background: #00ccbb;
  color: #ffffff;
}

.site-footer .github-icon {
  background: #24292f;
  color: #ffffff;
}

.site-footer .linkedin-icon {
  background: #0a66c2;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-weight: 900;
}

/* Hover behavior */

.site-footer .footer-link:hover {
  background: #47423c;
  color: #fffaf0;
  border-color: #47423c;

  transform: translateY(-3px);

  box-shadow:
    0 12px 28px rgba(52, 49, 45, .20);
}

.site-footer .footer-link:hover .footer-icon {
  background: #fffaf0;
  color: #47423c;

  transform: scale(1.08);
}

/* Footer order:
   Email, GitHub, LinkedIn, Scholar, ResearchGate
*/

/* .site-footer:not(.home-footer) .footer-link:nth-child(1) {
  order: 1;
}

.site-footer:not(.home-footer) .footer-link:nth-child(4) {
  order: 2;
}

.site-footer:not(.home-footer) .footer-link:nth-child(5) {
  order: 3;
}

.site-footer:not(.home-footer) .footer-link:nth-child(2) {
  order: 4;
}

.site-footer:not(.home-footer) .footer-link:nth-child(3) {
  order: 5;
} */

/* Homepage footer credit */

.home-footer {
  grid-template-columns: minmax(0, 1fr) auto;
}

.home-footer .footer-credit {
  justify-self: end;

  max-width: 360px;

  color: var(--muted);

  font-size: .84rem;
  font-weight: 700;
  line-height: 1.45;

  text-align: right;
}

/* Dark mode */

body[data-theme="dark"] .site-footer .footer-link {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line);
}

body[data-theme="dark"] .site-footer .footer-link:hover {
  background: #e4c28a;
  color: #242321;
  border-color: #e4c28a;
}

body[data-theme="dark"] .site-footer .footer-link:hover .footer-icon {
  background: #242321;
  color: #fffaf0;
}

/* Responsive footer */

@media (max-width: 1080px) {
  .site-footer {
    grid-template-columns: 1fr;
    row-gap: 18px;
    align-items: flex-start;
  }

  .site-footer .footer-links {
    max-width: 100%;
    justify-content: flex-start;
    margin-left: 0;
    margin-right: 0;
  }

  .home-footer .footer-credit {
    justify-self: start;
    max-width: 100%;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
}


/* Page scroll progress bar */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 4px;

  z-index: 9999;

  background: transparent;
  pointer-events: none;
}

.scroll-progress-bar {
  width: 0%;
  height: 100%;

  background: linear-gradient(
    90deg,
    #47423c 0%,
    #8a6740 55%,
    #b98a52 100%
  );

  box-shadow:
    0 0 10px rgba(71, 66, 60, .35),
    0 0 14px rgba(185, 138, 82, .35);

  transition: width .08s linear;
}


body[data-theme="dark"] .scroll-progress-bar {
  background: linear-gradient(
    90deg,
    #e4c28a,
    #b98a52,
    #fffaf0
  );

  box-shadow:
    0 0 14px rgba(228, 194, 138, .45);
}

/* Technical Expertise tiles */

.expertise-tile {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.expertise-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.expertise-heading h3 {
  margin: 0;
}

.expertise-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;

  display: inline-grid;
  place-items: center;

  border-radius: 14px;

  background: #47423c;
  color: #fffaf0;

  font-size: 1.05rem;

  transition:
    background-color .45s ease,
    color .45s ease,
    transform .35s ease,
    box-shadow .35s ease;
}

.expertise-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.expertise-pills span {
  display: inline-flex;
  align-items: center;

  min-height: 32px;
  padding: 7px 11px;

  border-radius: 999px;
  border: 1px solid var(--line);

  background: var(--surface);
  color: var(--text);

  font-size: .78rem;
  font-weight: 800;
  line-height: 1;

  transition:
    background-color .45s ease,
    color .45s ease,
    border-color .45s ease,
    transform .35s ease,
    box-shadow .35s ease;
}

/* Tile hover behavior */

.expertise-tile:hover .expertise-icon {
  background: #fffaf0;
  color: #47423c;

  transform: scale(1.08);

  box-shadow:
    0 8px 18px rgba(0, 0, 0, .16);
}

.expertise-tile:hover .expertise-pills span {
  background: rgba(255, 250, 240, .16);
  color: #fffaf0;
  border-color: rgba(255, 250, 240, .28);
}

/* Individual pill hover */

.expertise-pills span:hover {
  background: #d6b27f !important;
  color: #242321 !important;
  border-color: #d6b27f !important;

  transform: translateY(-2px);

  box-shadow:
    0 8px 18px rgba(0, 0, 0, .18);
}

/* Dark mode */

body[data-theme="dark"] .expertise-pills span {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line);
}

body[data-theme="dark"] .expertise-tile:hover .expertise-pills span {
  background: rgba(255, 250, 240, .14);
  color: #fffaf0;
  border-color: rgba(255, 250, 240, .24);
}

body[data-theme="dark"] .expertise-pills span:hover {
  background: #e4c28a !important;
  color: #242321 !important;
  border-color: #e4c28a !important;
}

/* =========================
   TECHNICAL EXPERTISE TILES
   ========================= */

.expertise-tile {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.expertise-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.expertise-heading h3 {
  margin: 0;
}

.expertise-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;

  display: inline-grid;
  place-items: center;

  border-radius: 14px;

  background: #47423c;
  color: #fffaf0;

  font-size: 1.08rem;

  transition:
    background-color .45s ease,
    color .45s ease,
    transform .35s ease,
    box-shadow .35s ease;
}

.expertise-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  min-height: 36px;
  padding: 7px 11px;

  border-radius: 999px;
  border: 1px solid var(--line);

  background: var(--surface);
  color: var(--text);

  font-size: .78rem;
  font-weight: 800;
  line-height: 1;

  transition:
    background-color .45s ease,
    color .45s ease,
    border-color .45s ease,
    transform .35s ease,
    box-shadow .35s ease;
}

/* Icon bubble: always light/off-white so thin dark icons remain visible */

.skill-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  max-width: 28px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #fffaf0 !important;
  color: #47423c;

  overflow: visible;

  font-size: .62rem;
  font-weight: 900;
  line-height: 1;

  transition:
    background-color .45s ease,
    color .45s ease,
    transform .35s ease,
    box-shadow .35s ease;
}

/* Official icon images */

.skill-icon img {
  width: 17px;
  height: 17px;

  display: block;

  object-fit: contain;
  object-position: center;

  max-width: 17px;
  max-height: 17px;

  margin: 0;
  padding: 0;

  filter: none;
}

/* Text fallback icons */

.skill-icon.is-text {
  background: #fffaf0 !important;
  color: #47423c;

  font-size: .58rem;
  font-weight: 900;
}

/* Tile hover */

.expertise-tile:hover .expertise-icon {
  background: #fffaf0;
  color: #47423c;

  transform: scale(1.08);

  box-shadow:
    0 8px 18px rgba(0, 0, 0, .16);
}

.expertise-tile:hover .skill-pill {
  background: rgba(255, 250, 240, .16);
  color: #fffaf0;
  border-color: rgba(255, 250, 240, .28);
}

/* Keep skill icon background light even when tile is hovered */

.expertise-tile:hover .skill-icon {
  background: #fffaf0 !important;
  color: #47423c;
}

.expertise-tile:hover .skill-icon img {
  filter: none;
}

/* Individual pill hover */

.skill-pill:hover {
  background: #d6b27f !important;
  color: #242321 !important;
  border-color: #d6b27f !important;

  transform: translateY(-2px);

  box-shadow:
    0 8px 18px rgba(0, 0, 0, .18);
}

/* Keep icon bubble light even on individual pill hover */

.skill-pill:hover .skill-icon {
  background: #fffaf0 !important;
  color: #47423c !important;

  transform: scale(1.08);

  box-shadow:
    0 4px 10px rgba(0, 0, 0, .16);
}

.skill-pill:hover .skill-icon img {
  filter: none;
}

/* Dark mode */

body[data-theme="dark"] .skill-pill {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line);
}

/* Keep dark-mode icons light too */

body[data-theme="dark"] .skill-icon {
  background: #fffaf0 !important;
  color: #47423c;
}

body[data-theme="dark"] .skill-icon.is-text {
  background: #fffaf0 !important;
  color: #47423c;
}

body[data-theme="dark"] .expertise-tile:hover .skill-pill {
  background: rgba(255, 250, 240, .14);
  color: #fffaf0;
  border-color: rgba(255, 250, 240, .24);
}

body[data-theme="dark"] .expertise-tile:hover .skill-icon {
  background: #fffaf0 !important;
  color: #47423c;
}

body[data-theme="dark"] .skill-pill:hover {
  background: #e4c28a !important;
  color: #242321 !important;
  border-color: #e4c28a !important;
}

body[data-theme="dark"] .skill-pill:hover .skill-icon {
  background: #fffaf0 !important;
  color: #47423c !important;
}

/* Technical Expertise title icons: always light/off-white */

.expertise-icon {
  background: #fffaf0 !important;
  color: #47423c !important;

  border: 1px solid rgba(71, 66, 60, .18);

  box-shadow:
    0 6px 16px rgba(52, 49, 45, .10);

  transition:
    background-color .45s ease,
    color .45s ease,
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease;
}

/* Keep title icon light even when the whole tile is hovered */

.expertise-tile:hover .expertise-icon {
  background: #fffaf0 !important;
  color: #47423c !important;

  border-color: rgba(255, 250, 240, .65);

  transform: scale(1.08);

  box-shadow:
    0 8px 20px rgba(0, 0, 0, .18);
}

/* Dark mode: still keep the title icon light for contrast */

body[data-theme="dark"] .expertise-icon {
  background: #fffaf0 !important;
  color: #47423c !important;

  border-color: rgba(255, 250, 240, .35);
}

body[data-theme="dark"] .expertise-tile:hover .expertise-icon {
  background: #fffaf0 !important;
  color: #47423c !important;

  border-color: rgba(255, 250, 240, .65);
}

/* Navbar custom icon */

.brand-image-mark {
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 1px solid var(--line);
}

.brand-image-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}