:root {
  --bs-primary: #194c89;
  --bs-primary-rgb: 25, 76, 137;
  --site-ink: #10243a;
  --site-muted: #4f6479;
  --site-paper: #f5f2ec;
  --site-panel: #ffffff;
  --site-highlight: #f0d7a4;
  --site-shadow: 0 12px 32px rgba(16, 36, 58, 0.1);
  --site-radius: 1rem;
}

body {
  font-family: "Public Sans", "Segoe UI", sans-serif;
  color: var(--site-ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(25, 76, 137, 0.12), transparent 30%),
    radial-gradient(circle at 92% 85%, rgba(240, 215, 164, 0.35), transparent 26%),
    linear-gradient(180deg, #f8f5ef 0%, #f9fafb 100%);
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  color: var(--site-ink);
  letter-spacing: 0.005em;
}

a {
  color: #143f70;
}

a:hover {
  color: #0f2d4f;
}

.site-navbar {
  position: relative;
  z-index: 1030;
  isolation: isolate;
  background-color: rgba(248, 245, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(16, 36, 58, 0.08);
}

.brand-name {
  font-family: "Lora", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--site-ink);
}

.brand-tagline {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--site-muted);
}

.navbar .nav-link {
  color: var(--site-ink);
  font-weight: 500;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
  color: var(--bs-primary);
}

.dropdown-menu {
  z-index: 1035;
  border-radius: 0.85rem;
  border: 1px solid rgba(16, 36, 58, 0.08);
  box-shadow: var(--site-shadow);
}

.btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
}

.btn-primary {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #113761;
  border-color: #113761;
}

.btn-outline-primary {
  border-color: var(--bs-primary);
  color: var(--bs-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
}

.btn-highlight {
  background-color: var(--site-highlight);
  border-color: transparent;
  color: var(--site-ink);
}

.btn-highlight:hover,
.btn-highlight:focus {
  background-color: #e7ca8f;
  color: var(--site-ink);
}

.page-shell {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-header .eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--site-muted);
  font-weight: 700;
}

.section-card,
.profile-card,
.media-card,
.detail-panel {
  background: var(--site-panel);
  border: 1px solid rgba(16, 36, 58, 0.08);
  border-radius: var(--site-radius);
  box-shadow: var(--site-shadow);
}

.profile-card,
.media-card,
.detail-panel,
.section-card {
  padding: 1.5rem;
}

.profile-card {
  position: sticky;
  top: 1.5rem;
}

.muted-note {
  color: var(--site-muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background-color: rgba(25, 76, 137, 0.12);
  color: #153f70;
}

.chip-logo {
  padding: 0.3rem 0.5rem;
  background-color: #ffffff;
  border: 1px solid rgba(16, 36, 58, 0.08);
}

.chip-logo img {
  display: block;
  height: 1em;
  width: auto;
  max-width: 2.15em;
  object-fit: contain;
}

.home-hero {
  background: linear-gradient(125deg, rgba(25, 76, 137, 0.09) 0%, rgba(240, 215, 164, 0.45) 100%);
  border-radius: 1.25rem;
  border: 1px solid rgba(16, 36, 58, 0.08);
  padding: 2rem;
  margin-bottom: 2rem;
}

.current-roles-list {
  display: grid;
  gap: 0.85rem;
}

.current-role-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.current-role-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.8rem;
}

.current-role-item {
  padding: 1rem;
}

.current-role-chip {
  font-size: 0.82rem;
  padding: 0.38rem 0.75rem;
}

.current-role-button {
  align-self: center;
  padding: 0.38rem 0.75rem;
  font-size: 0.82rem;
  line-height: 1.2;
  border-radius: 999px;
}

.current-role-chip:first-child {
  background-color: rgba(21, 63, 112, 0.16);
  color: var(--site-ink);
}

.chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.academic-chip,
.skill-chip,
.skill-category-chip {
  font-size: 0.82rem;
  padding: 0.38rem 0.75rem;
}

.skill-category-chip {
  background-color: rgba(21, 63, 112, 0.16);
  color: var(--site-ink);
}

.academic-row,
.skill-row {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(16, 36, 58, 0.08);
  border-radius: 0.95rem;
  padding: 1.1rem 1.15rem;
}

.skill-category {
  margin-bottom: 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--site-muted);
}

.academic-highlights {
  list-style: none;
}

.academic-highlight-item {
  position: relative;
  padding-left: 1rem;
  color: var(--site-ink);
}

.academic-highlight-item + .academic-highlight-item {
  margin-top: 0.55rem;
}

.academic-highlight-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--bs-primary);
}

.role-label {
  font-weight: 700;
  color: var(--site-ink);
}

.role-company,
.role-start {
  font-weight: 600;
  color: var(--site-muted);
}

.academic-card,
.skill-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  padding: 1.1rem 1.15rem;
}

.headshot-img {
  width: 100%;
  max-width: 250px;
  border-radius: 1rem;
  border: 4px solid rgba(25, 76, 137, 0.14);
}

.resume-grid {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 1.25rem;
}

.resume-grid.detail-grid-single-column {
  grid-template-columns: minmax(0, 1fr);
}

.listing-grid .card {
  border-radius: var(--site-radius);
  border: 1px solid rgba(16, 36, 58, 0.08);
  box-shadow: var(--site-shadow);
}

.listing-grid .card-title {
  margin-bottom: 0.2rem;
}

.back-link {
  font-weight: 600;
  color: var(--site-ink);
  text-decoration: none;
}

.back-link:hover {
  color: var(--bs-primary);
}

.carousel-frame {
  border-radius: var(--site-radius);
  background-color: #f2f5f8;
  border: 1px solid rgba(16, 36, 58, 0.08);
  padding: 0.75rem;
}

.carousel .carousel-item img,
.single-media-image {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  border-radius: 0.75rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: none;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  background-color: var(--site-ink);
}

.carousel-control-prev-icon {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
}

.carousel-control-next-icon {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.carousel-control-prev,
.carousel-control-next {
  opacity: 0.4;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.footer-spacer {
  height: 2rem;
}

.fade-in-up {
  animation: fadeInUp 480ms ease-out both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .profile-card {
    position: static;
  }

  .home-hero,
  .profile-card,
  .media-card,
  .detail-panel,
  .section-card {
    padding: 1.2rem;
  }
}

@media (max-width: 575.98px) {
  .brand-tagline {
    display: none;
  }

  .brand-name {
    font-size: 1rem;
  }

  .home-hero {
    padding: 1.25rem;
  }

  .headshot-img {
    max-width: 170px;
  }
}
