:root {
  --brand: #24527a;
  --brand-dark: #173b59;
  --accent: #3aa6a0;
  --accent-bright: #63ddd0;
  --spark: #f2b84b;
  --surface: #ffffff;
  --surface-soft: #f4f7fa;
  --text: #263238;
  --muted: #60727d;
  --border: #dbe4ea;
  --shadow: 0 10px 30px rgba(25, 55, 75, .10);
}

html { scroll-behavior: smooth; background: #f4f7fa; }
html.dark { background: #0e1820; }
body {
  background:
    radial-gradient(circle at 8% 9%, rgba(58, 166, 160, .10), transparent 24rem),
    radial-gradient(circle at 92% 24%, rgba(36, 82, 122, .10), transparent 27rem),
    var(--surface-soft);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--brand); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.main-wrapper p { text-align: justify; text-justify: inter-word; }
.main-wrapper .eyebrow,
.main-wrapper .availability-status,
.main-wrapper .project-status,
.main-wrapper .verification-note,
.main-wrapper .visual-note,
.main-wrapper figcaption { text-align: left; }

.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 1000;
  padding: .7rem 1rem; background: #fff; color: #111; border-radius: .4rem;
}
.skip-link:focus { top: 1rem; }

.page-progress {
  position: fixed; inset: 0 0 auto; z-index: 1001; height: 3px;
  background: transparent; pointer-events: none;
}
.page-progress span {
  display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--spark), #66c7ee);
  box-shadow: 0 0 12px rgba(58, 166, 160, .55);
}

.site-header {
  position: sticky; top: 0; z-index: 100;
  min-height: 64px; display: flex; align-items: center; gap: 1rem;
  padding: .65rem max(1rem, calc((100vw - 1170px) / 2));
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--border);
  box-shadow: 0 3px 16px rgba(20,45,65,.06); backdrop-filter: blur(12px);
  transition: min-height .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { min-height: 58px; box-shadow: 0 8px 26px rgba(20,45,65,.13); }
.site-brand {
  flex: 0 0 46px; width: 46px; height: 46px;
  display: grid; place-items: center; text-decoration: none;
  border-radius: 14px; transition: transform .2s ease, filter .2s ease;
}
.site-brand img { display: block; width: 46px; height: 46px; }
.site-brand:hover { transform: translateY(-1px) scale(1.03); filter: drop-shadow(0 5px 8px rgba(20, 90, 125, .24)); }
.site-nav { display: flex; flex: 1; gap: .25rem; }
.site-nav a {
  position: relative;
  padding: .55rem .65rem; border-radius: .45rem; color: var(--text);
  font-weight: 600; text-decoration: none; transition: color .2s ease, background .2s ease, transform .2s ease;
}
.site-nav a::after {
  content: ""; position: absolute; left: .65rem; right: .65rem; bottom: .25rem; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--spark));
  transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.site-nav a:hover, .site-nav a.active { background: var(--surface-soft); color: var(--brand); transform: translateY(-1px); }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; gap: .35rem; }
.icon-button, .nav-toggle, .back-to-top {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: .5rem; cursor: pointer;
}
.icon-button, .nav-toggle { width: 42px; height: 42px; }
.nav-toggle { display: none; }

.wrapper { margin-top: 28px; box-shadow: var(--shadow); }
.main-wrapper { background: var(--surface); }
.sidebar-wrapper { background: var(--brand); }
.sidebar-wrapper .profile-container { background: var(--brand-dark); }
.sidebar-wrapper .tagline {
  max-width: 275px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255,255,255,.96);
  font-size: 1.08rem;
  font-weight: 550;
  line-height: 1.55;
  letter-spacing: .01em;
}
.sidebar-wrapper a { color: #fff; }
.sidebar-wrapper .container-block-title { color: #fff; }
.sidebar-wrapper .education-container .item, .sidebar-wrapper .interests-container .item { margin-bottom: 1rem; }

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 1.5rem; margin-bottom: 2rem; border-radius: .8rem;
  background: linear-gradient(125deg, var(--brand-dark), var(--brand), #167d82, var(--brand-dark));
  background-size: 260% 260%;
  color: #fff; box-shadow: var(--shadow);
  animation: heroGradient 14s ease infinite;
}
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  filter: blur(2px); opacity: .48;
}
.hero::before {
  width: 18rem; height: 18rem; right: -6rem; top: -9rem;
  background: radial-gradient(circle, rgba(99, 221, 208, .58), transparent 68%);
  animation: heroOrb 9s ease-in-out infinite alternate;
}
.hero::after {
  width: 13rem; height: 13rem; left: 36%; bottom: -9rem;
  background: radial-gradient(circle, rgba(242, 184, 75, .30), transparent 70%);
  animation: heroOrb 12s ease-in-out -3s infinite alternate-reverse;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { margin-top: 0; font-size: clamp(2rem, 5vw, 3.2rem); color: #fff; }
.hero p { font-size: 1.08rem; max-width: 760px; opacity: .94; }
.plain-language-line { padding-left: .9rem; border-left: 3px solid #65d4c9; }
.availability-status { display: flex; align-items: flex-start; gap: .55rem; font-size: .98rem !important; }
.availability-status i { margin-top: .42rem; color: #73dfb8; font-size: .55rem; animation: statusPulse 2.2s ease-out infinite; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.25rem; }
.button-link {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 1rem;
  border-radius: .5rem; background: #fff; color: var(--brand-dark);
  font-weight: 700; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button-link.secondary { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.65); }
.button-link:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(5, 31, 48, .22); text-decoration: none; }
.button-link.secondary:hover { background: rgba(255,255,255,.12); }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.content-card {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 1.2rem; border: 1px solid var(--border); border-radius: .75rem;
  background: var(--surface); box-shadow: 0 5px 20px rgba(20,45,65,.05);
}
.interactive-card { position: relative; isolation: isolate; overflow: hidden; }
.interactive-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(260px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(58, 166, 160, .16), transparent 70%);
  transition: opacity .25s ease;
}
.interactive-card:hover::before { opacity: 1; }
.content-card h3 {
  margin: 0 0 .8rem;
  color: var(--brand-dark);
  font-size: 1.55rem;
  line-height: 1.22;
  font-weight: 750;
  text-wrap: balance;
}
.collaboration-title a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: .08em;
  text-underline-offset: .16em;
}
.collaboration-title a:hover { color: var(--brand); }
.collaboration-title a::after {
  content: "\\2197";
  display: inline-block;
  margin-left: .22em;
  font-size: .62em;
  vertical-align: .2em;
}
.tag-list { display: flex; flex-wrap: wrap; gap: .45rem; margin: .75rem 0; }
.tag { padding: .54rem .86rem; border: 1px solid var(--border); border-radius: 2rem; background: var(--surface-soft); color: var(--brand-dark); font-size: 1rem; line-height: 1.25; font-weight: 700; }
.methods-section .section-title { font-size: 1.75rem; }
.methods-section .section-title .section-icon { flex-basis: 3.15rem; width: 3.15rem; height: 3.15rem; }
.methods-section .section-title .section-icon i { font-size: 1.62rem; }
.methods-section .tag-list { gap: .65rem; margin-top: 1rem; }
.methods-section .tag { padding: .62rem .98rem; font-size: 1.08rem; }
.page-intro { margin-bottom: 2rem; font-size: 1.05rem; color: var(--muted); }
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.5rem; }
.filter-button {
  padding: .45rem .8rem; border: 1px solid var(--border); border-radius: 2rem;
  background: var(--surface); color: var(--text); cursor: pointer;
}
.filter-button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.details-toggle { border: 0; background: none; color: var(--brand); font-weight: 700; padding: .25rem 0; cursor: pointer; }
.collapsible[hidden] { display: none; }
.results-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.result-card { padding: 1.2rem; border: 1px solid var(--border); border-radius: .75rem; background: var(--surface-soft); }
.result-card strong { display: block; margin-bottom: .45rem; color: var(--brand-dark); font-size: 1.65rem; line-height: 1.1; }
.result-card span { color: var(--text); line-height: 1.5; }
.case-study-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.case-study-grid > div { padding: 1rem; border-left: 4px solid var(--accent); background: var(--surface-soft); }
.case-study-grid strong { color: var(--brand-dark); font-size: 1.08rem; }
.publication-list { display: grid; gap: 1rem; }
.publication-item { padding: 1.2rem; border: 1px solid var(--border); border-radius: .75rem; background: var(--surface); }
.publication-item h3 { margin-top: 0; color: var(--brand-dark); }
.timeline-list { display: grid; gap: .75rem; }
.timeline-list article { display: grid; grid-template-columns: minmax(220px,1fr) minmax(220px,1fr); gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--border); }
.timeline-list span, .verification-note { color: var(--muted); }
.main-wrapper .upper-row,
.main-wrapper .second-upper-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: .75rem 1.5rem;
  overflow: visible;
}
.main-wrapper .upper-row .time,
.main-wrapper .second-upper-row .time {
  position: static;
  margin: 0;
  color: var(--muted);
  font-weight: 650;
  text-align: right;
  white-space: nowrap;
}
.industry-bridge { padding: 1.25rem; border: 1px solid var(--border); border-radius: .8rem; background: var(--surface-soft); }
html.dark body .result-card strong, html.dark body .case-study-grid strong, html.dark body .publication-item h3 { color: #f0f6f9; }
.sidebar-compact .education-container, .sidebar-compact .languages-container, .sidebar-compact .interests-container { display: none; }

.back-to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; width: 44px; height: 44px;
  opacity: 0; pointer-events: none; transition: .2s;
  box-shadow: var(--shadow);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }

html.dark body {
  --surface: #14212a; --surface-soft: #0e1820; --text: #e7eef2;
  --muted: #afbec7; --border: #2b3d48; --brand: #58b8df; --brand-dark: #1d536d;
  --shadow: 0 10px 30px rgba(0,0,0,.28);
}
html.dark body {
  background:
    radial-gradient(circle at 8% 9%, rgba(58, 166, 160, .10), transparent 24rem),
    radial-gradient(circle at 92% 24%, rgba(88, 184, 223, .08), transparent 27rem),
    var(--surface-soft);
}
html.dark body .site-header { background: rgba(14,24,32,.96); }
html.dark body .main-wrapper, html.dark body .content-card { color: var(--text); }
html.dark body .section-title, html.dark body .job-title, html.dark body .degree { color: var(--text); }
html.dark body .content-card h3 { color: #f0f6f9; }
html.dark body .content-card h3 i { color: #58c8c4; }
html.dark body .tag {
  color: #dff7ff;
  background: #183241;
  border-color: #426477;
  opacity: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
html.dark body .level-bar { background: #30424d; }

/* Keep the CV sidebar readable in dark mode */
html.dark body .site-header { background: #0e1820; }
html.dark body .sidebar-wrapper { background: #1d536d; color: #fff; }
html.dark body .sidebar-wrapper .profile-container { background: #102f43; }
html.dark body .sidebar-wrapper .name,
html.dark body .sidebar-wrapper .degree,
html.dark body .sidebar-wrapper .container-block-title,
html.dark body .sidebar-wrapper .contact-list,
html.dark body .sidebar-wrapper .languages-list,
html.dark body .sidebar-wrapper .interests-list { color: #fff; }
html.dark body .sidebar-wrapper .tagline,
html.dark body .sidebar-wrapper .education-container .meta,
html.dark body .sidebar-wrapper .education-container .time,
html.dark body .sidebar-wrapper .languages-container .lang-desc { color: #e3f1f6; opacity: 1; }
html.dark body .sidebar-wrapper a { color: #fff; text-decoration-color: rgba(255,255,255,.65); }

/* Clear, high-contrast section icons */
.main-wrapper .section-title {
  display: flex;
  align-items: center;
  gap: .75rem;
  line-height: 1.22;
  text-wrap: balance;
}
.section-title .fa-stack,
.section-title .section-icon {
  position: relative;
  flex: 0 0 2.65rem;
  width: 2.65rem;
  height: 2.65rem;
  display: inline-grid;
  place-items: center;
  border-radius: .72rem;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #287ca8, #3aa6a0);
  box-shadow: 0 5px 14px rgba(36, 82, 122, .22);
  font-size: 1rem;
  line-height: 1;
  transition: transform .25s ease, box-shadow .25s ease;
}
.section:hover .section-title .fa-stack,
.section:hover .section-title .section-icon { transform: rotate(-3deg) scale(1.05); box-shadow: 0 8px 18px rgba(36, 82, 122, .30); }
.section-title .fa-stack .fa-circle { display: none !important; }
.section-title .fa-stack .fa-stack-1x {
  position: static;
  width: auto;
  line-height: 1;
  color: #fff;
  transform: none;
  text-align: center;
}
.section-title .section-icon i { color: #fff; font-size: 1.42rem; line-height: 1; }
html.dark body .section-title .fa-stack,
html.dark body .section-title .section-icon {
  background: linear-gradient(145deg, #58b8df, #278f91);
  box-shadow: 0 5px 16px rgba(0, 0, 0, .35);
}

@media (max-width: 820px) {
  .site-header { flex-wrap: wrap; }
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; order: 4; flex: 0 0 100%; flex-direction: column; padding-bottom: .5rem; }
  .site-nav.open { display: flex; }
  .header-actions { margin-left: auto; }
  .card-grid { grid-template-columns: 1fr; }
  .results-grid, .case-study-grid { grid-template-columns: 1fr; }
  .timeline-list article { grid-template-columns: 1fr; gap: .25rem; }
  .main-wrapper .upper-row,
  .main-wrapper .second-upper-row { grid-template-columns: 1fr; gap: .2rem; }
  .main-wrapper .upper-row .time,
  .main-wrapper .second-upper-row .time { margin: 0; text-align: left; }
  .wrapper { margin-top: 14px; }
  .main-wrapper .section-title { align-items: center; font-size: 1.55rem; gap: .8rem; }
  .section-title .fa-stack, .section-title .section-icon { flex-basis: 3rem; width: 3rem; height: 3rem; border-radius: .8rem; font-size: 1.12rem; }
  .section-title .section-icon i { font-size: 1.58rem; }
}
@media (max-width: 480px) {
  .main-wrapper { padding-left: 22px; padding-right: 22px; }
  .main-wrapper .section-title { font-size: 1.38rem; line-height: 1.18; gap: .68rem; }
  .section-title .section-icon { flex-basis: 2.85rem; width: 2.85rem; height: 2.85rem; }
  .section-title .section-icon i { font-size: 1.52rem; }
  .summary { font-size: 1rem; line-height: 1.65; }
  .content-card h3 { font-size: 1.32rem; }
  .methods-section .section-title { font-size: 1.55rem; }
  .tag { padding: .52rem .8rem; font-size: .98rem; }
  .methods-section .tag { padding: .56rem .86rem; font-size: 1.02rem; }
  .main-wrapper p { hyphens: auto; }
  .sidebar-wrapper .tagline { max-width: 300px; font-size: 1.12rem; line-height: 1.58; }
}
@media print {
  body { background: #fff !important; color: #000 !important; }
  .wrapper { box-shadow: none; margin: 0; }
  .main-wrapper { padding-top: 0; }
  .content-card { break-inside: avoid; box-shadow: none; }
}


.profile-hero { display: grid; grid-template-columns: minmax(190px, 280px) 1fr; gap: 1.4rem; align-items: stretch; margin-bottom: 2rem; }
.profile-hero .hero { margin-bottom: 0; border-radius: .8rem .8rem 0 0; }
.profile-portrait { width: 100%; height: 100%; min-height: 370px; object-fit: cover; object-position: center 25%; border-radius: .8rem; box-shadow: var(--shadow); transition: transform .45s ease, box-shadow .45s ease, filter .45s ease; }
.profile-portrait:hover { transform: translateY(-4px) scale(1.012); box-shadow: 0 18px 42px rgba(25, 55, 75, .20); filter: saturate(1.06); }
.profile-hero-content { display: flex; flex-direction: column; }
.social-links { display: flex; flex-wrap: wrap; gap: .55rem; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 0 0 .8rem .8rem; }
.social-links a { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .7rem; border-radius: 2rem; background: var(--surface-soft); font-weight: 700; text-decoration: none; transition: transform .2s ease, color .2s ease, box-shadow .2s ease; }
.social-links a:hover { transform: translateY(-2px); color: var(--accent); box-shadow: 0 5px 14px rgba(20,45,65,.10); }
.research-feature { display: grid; grid-template-columns: minmax(220px, 290px) 1fr; gap: 1.5rem; align-items: stretch; margin: 0 0 2rem; }
.research-cover { width: 100%; margin: 0; display: flex; flex-direction: column; }
.research-cover img { width: 100%; border-radius: .75rem; box-shadow: var(--shadow); }
.research-hero { margin: 0; min-height: 100%; display: flex; flex-direction: column; justify-content: center; }
.research-hero h2 { margin-top: 0; color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.research-cover figcaption, .visual-note { margin-top: .55rem; color: var(--muted); font-size: .9rem; }
.visual-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0 .5rem; }
.visual-strip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: .75rem; box-shadow: var(--shadow); }
@media (max-width: 700px) { .profile-hero, .research-feature { grid-template-columns: 1fr; } .profile-portrait { height: 420px; min-height: 0; } .research-cover { max-width: 340px; margin: 0 auto; } .visual-strip { grid-template-columns: 1fr; } }
@media print { .profile-portrait { max-height: 250px; min-height: 0; } .research-cover, .visual-strip { display: none; } }


/* Competency-based skills */
.competency-intro { color: var(--muted); margin-bottom: 1.2rem; }
.competency-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.competency-card { padding: 1.2rem; border: 1px solid var(--border); border-radius: .75rem; background: var(--surface); box-shadow: 0 5px 20px rgba(20,45,65,.05); }
.competency-card h3 {
  display: flex; align-items: flex-start; gap: .55rem;
  margin: 0 0 1.05rem; color: var(--brand-dark);
  font-size: 1.15rem; line-height: 1.35; font-weight: 750;
}
.competency-card h3 i { flex: 0 0 1.25rem; margin-top: .12rem; color: #228f91; text-align: center; }
html.dark body .competency-card h3 { color: #f0f6f9; }
html.dark body .competency-card h3 i { color: #58c8c4; }
.competency-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; list-style: none; margin: 0; padding: 0; }
.competency-list li { position: relative; padding: .58rem .7rem .58rem 1.6rem; border: 1px solid var(--border); border-radius: .55rem; background: var(--surface-soft); color: var(--text); font-size: .98rem; line-height: 1.35; }
.competency-list li::before { content: "✓"; position: absolute; left: .58rem; color: var(--accent); font-weight: 800; }
.level-bar { display: none; }

/* Calls to action */
.opportunity-cta, .contact-hero { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem; margin: 2rem 0; border-radius: .8rem; color: #fff; background: linear-gradient(135deg, var(--brand-dark), #2d7998); box-shadow: var(--shadow); }
.opportunity-cta h2, .contact-hero h1 { color: #fff; margin-top: .2rem; }
.opportunity-cta p, .contact-hero p { max-width: 760px; }
.cv-download-dark { background: var(--brand); color: #fff; }
.nav-contact { background: var(--brand) !important; color: #fff !important; }
.nav-publications { box-shadow: inset 0 -2px 0 var(--accent); }

/* Photo slideshow */
.slideshow { position: relative; overflow: hidden; min-height: 500px; border-radius: .8rem; background: #0c1720; box-shadow: var(--shadow); }
.slide { display: none; margin: 0; height: 500px; }
.slide.active { display: block; animation: slideFade .45s ease; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.2rem 1rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.slide-control { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.88); color: #173b59; cursor: pointer; }
.slide-control.previous { left: 1rem; }
.slide-control.next { right: 1rem; }
.slide-dots { position: absolute; z-index: 4; left: 50%; bottom: .7rem; transform: translateX(-50%); display: flex; gap: .4rem; }
.slide-dot { width: 9px; height: 9px; border: 0; padding: 0; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; }
.slide-dot.active { background: #fff; transform: scale(1.25); }
@keyframes slideFade { from { opacity: .25; } to { opacity: 1; } }

/* Contact and footer */
.contact-hero { display: block; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.contact-card { display: flex; align-items: center; gap: 1rem; padding: 1.2rem; border: 1px solid var(--border); border-radius: .75rem; background: var(--surface); color: var(--text); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.contact-card > i { width: 42px; color: var(--brand); font-size: 1.7rem; text-align: center; }
.contact-card span { display: flex; flex-direction: column; min-width: 0; }
.contact-card small { color: var(--muted); overflow-wrap: anywhere; }
.contact-note { padding: 1.3rem; border-radius: .75rem; background: var(--surface-soft); }
.project-status { margin-top: .75rem; color: var(--muted); font-size: .9rem; }
.footer { padding: 2rem max(1rem, calc((100vw - 1170px) / 2)); background: #0d1b24; color: #dbe8ef; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; text-align: left; }
.footer-inner p { margin: .35rem 0 0; color: #a9bcc7; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .65rem 1rem; }
.footer-links a { color: #fff; }
.footer-bottom { margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid #29404e; color: #91a8b4; text-align: left; }

.content-card, .competency-card, .publication-item { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.content-card:hover, .competency-card:hover, .publication-item:hover { transform: translateY(-4px); border-color: rgba(58, 166, 160, .58); box-shadow: var(--shadow); }
.tag { font-weight: 700; opacity: 1; }

@keyframes heroGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes heroOrb {
  from { transform: translate3d(0, 0, 0) scale(.9); }
  to { transform: translate3d(-2rem, 2rem, 0) scale(1.12); }
}
@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(115, 223, 184, .65); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(115, 223, 184, 0); }
}

html.page-paused .hero,
html.page-paused .hero::before,
html.page-paused .hero::after,
html.page-paused .availability-status i { animation-play-state: paused; }

@media (max-width: 760px) {
  .competency-grid, .contact-grid { grid-template-columns: 1fr; }
  .competency-list { grid-template-columns: 1fr; }
  .competency-card h3 { font-size: 1.12rem; }
  .opportunity-cta, .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .slideshow, .slide { min-height: 420px; height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero, .hero::before, .hero::after, .availability-status i { animation: none !important; }
  .slide.active { animation: none; }
  .content-card, .competency-card, .contact-card, .publication-item, .profile-portrait, .site-nav a, .section-icon, .fa-stack { transition: none !important; }
}
@media print {
  .page-progress, .photo-story, .opportunity-cta, .contact-hero { display: none; }
  .competency-grid { display: block; }
  .competency-card { margin-bottom: .7rem; break-inside: avoid; }
}
