:root {
  color-scheme: dark;
  --ink: #0d0d0d;
  --panel: #171614;
  --gold: #ffc52c;
  --gold-light: #ffe683;
  --gold-edge: #946418;
  --paper: #faf5e9;
  --muted: #cec4b2;
  --line: #433827;
}

h2.section-title {
  margin: 0 0 20px;
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4.1vw, 3.65rem);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.12;
  text-align: left;
}

#about .about-header {
  margin-bottom: 25px;
  text-align: left;
}

.profile-update {
  margin: 0;
  color: var(--muted);
  font-size: .875rem;
}

html {
  scroll-padding-top: 84px;
}

body {
  background: var(--ink);
  color: var(--paper);
}

a {
  color: var(--gold-light);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

.navbar-fixed nav,
.side-nav {
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}

.navbar-fixed nav > .container {
  height: 100%;
}

.language-picker {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 5;
  transform: translateY(-50%);
  color: var(--gold-light);
  font-size: .9rem;
  line-height: 1.3;
}

.language-picker summary,
.language-options a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 6px 9px;
}

.language-picker summary {
  border: 1px solid var(--gold-edge);
  border-radius: 6px;
  list-style: none;
  cursor: pointer;
}

.language-picker summary::-webkit-details-marker {
  display: none;
}

.language-picker summary:hover,
.language-picker[open] summary {
  border-color: var(--gold);
  background: #33250b;
}

.language-picker summary:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.language-chevron {
  width: 6px;
  height: 6px;
  margin-inline-start: 2px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: translateY(-1px) rotate(45deg);
}

.language-picker[open] .language-chevron {
  transform: translateY(2px) rotate(225deg);
}

.language-flag {
  display: block;
  flex: none;
  width: 19px;
  height: 13px;
  border-radius: 2px;
  outline: 1px solid #ffffff30;
}

.language-options {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 150px;
  overflow: hidden;
  padding: 4px;
  border: 1px solid var(--gold-edge);
  border-radius: 6px;
  background: var(--ink);
  box-shadow: 0 8px 24px #0009;
}

.language-options a {
  border-radius: 4px;
  color: var(--paper);
}

.language-options a:hover,
.language-options a:focus-visible,
.language-options a[aria-current="page"] {
  background: #33250b;
  color: var(--gold-light);
}

.language-options a:focus-visible {
  outline-offset: -2px;
}

.navbar-fixed .custom-nav {
  margin-inline-end: 125px;
}

@media (max-width: 400px) {
  .language-picker {
    font-size: .8rem;
  }

  .language-picker summary {
    gap: 5px;
    padding-inline: 6px;
  }

  #about .about-content-grid,
  #about .details-grid-modern,
  #about .about-footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #about .glass-card {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

html:not([lang="en"]) main,
html:not([lang="en"]) .site-footer {
  overflow-wrap: anywhere;
}

html:not([lang="en"]) .expertise-card .service-tags,
html:not([lang="en"]) .skill-meter-label,
html:not([lang="en"]) .service-tags li {
  min-width: 0;
  max-width: 100%;
}

nav .brand-logo,
.side-nav li a,
nav .button-collapse {
  color: var(--gold-light);
}

.custom-nav li a {
  padding-inline: clamp(7px, .9vw, 16px);
  color: var(--paper);
}

html:not([lang="en"]) .custom-nav li a {
  padding-inline: 9px;
}

.custom-nav li.active a,
.custom-nav li a:hover,
.side-nav li a:hover {
  color: var(--gold-light);
  background: var(--panel);
}

#home {
  height: auto;
  background: #0d0b09;
}

#home .overlay-section {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 82% 45%, #ffc52c24, transparent 47%),
    linear-gradient(#ffc52c14 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(90deg, #ffc52c14 1px, transparent 1px) 0 0 / 42px 42px;
}

#home .hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 4vw, 70px);
  width: min(90%, 1340px);
}

#home .home-inner {
  float: none;
  display: block;
  padding: clamp(70px, 9vw, 150px) 0;
  text-align: left;
}

#home .row {
  margin-bottom: 0;
}

#home .hero-role {
  color: var(--gold-light);
  margin: 0 0 18px;
  font-size: clamp(.85rem, 1.8vw, 1.08rem);
  font-weight: 600;
  letter-spacing: .13em;
}

#home .home-title {
  color: var(--paper);
  font-family: Georgia, serif;
  font-size: clamp(3rem, 7.1vw, 7.25rem);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: .98;
  margin: 0 0 24px;
  text-transform: none;
}

#home .home-title span {
  color: var(--gold-light);
}

@supports (background-clip: text) {
  #home .home-title span {
    background: linear-gradient(110deg, #ffcb32 15%, #fff0ab 37%, #ffb700 64%, #ffe888 88%) 0 0 / 175% 100%;
    background-clip: text;
    color: transparent;
    animation: gold-reflection 2.5s ease-out both;
  }
}

@keyframes gold-reflection {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

#home .hero-affiliations {
  display: grid;
  gap: 6px;
  margin: 22px 0 0;
  padding-left: 0;
  font-size: .94rem;
}

.hero-affiliations a {
  display: inline-block;
  border-left: 2px solid var(--gold);
  padding-left: 10px;
}

.hero-affiliations a:hover,
.source-links a:hover {
  text-decoration: underline;
  text-underline-offset: .25em;
}

.hero-instrument {
  display: grid;
  place-items: center;
  min-width: 0;
  padding-block: 14px;
  gap: 20px;
}

.radar-orbit {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(transparent 0 68%, #ffc52c88 76%, var(--gold-light) 80%, transparent 81%);
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), black calc(100% - 1px));
  animation: radar-turn 4.8s cubic-bezier(.23, .68, .42, 1) both;
}

.radar-replay {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px 12px;
  color: var(--gold-light);
  background: var(--ink);
  cursor: pointer;
  font-size: .85rem;
}

.radar-replay:hover {
  border-color: var(--gold);
}

.radar-frame {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1;
  padding: 8%;
  border-radius: 50%;
  outline: 1px dashed #ffc52c91;
  outline-offset: 5px;
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), #d8b15f60 50%, transparent calc(50% + .5px)),
    linear-gradient(transparent calc(50% - .5px), #d8b15f60 50%, transparent calc(50% + .5px));
  box-shadow: inset 0 0 42px #ffc52c21, 0 0 76px #ffc52c33;
}

.radar-scope {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  overflow: hidden;
  border: 1px solid #d8b15f7d;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 14%, #d8b15f45 14.4% 14.8%, transparent 15.2% 19%);
}

.radar-portrait {
  position: relative;
  width: 70%;
  aspect-ratio: 1;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: linear-gradient(145deg, #120d0626, #966c394f), url("../../img/YK.jpeg") center 36% / cover;
  box-shadow: 0 0 26px #d8b15f4d;
}

.radar-sweep {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 10deg, transparent 0 77%, #ffc52c0d 83%, #ffc52c85 99.5%, transparent);
  animation: radar-turn 4.8s linear both;
}

.radar-point {
  position: absolute;
  inset: 21% auto auto 15%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 14px var(--gold);
  animation: radar-pulse 2.4s ease-in-out 2 alternate both;
}

.radar-point:last-child {
  inset: auto 13% 29% auto;
}

@keyframes radar-turn {
  to { transform: rotate(360deg); }
}

@keyframes radar-pulse {
  from { opacity: .35; }
  to { opacity: 1; }
}

.reading-progress {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold-edge), var(--gold), #fff4bd);
  box-shadow: 0 0 10px var(--gold);
}

.skip-link {
  position: fixed;
  z-index: 2000;
  left: 12px;
  top: 12px;
  padding: 10px 14px;
  transform: translateY(-150%);
  color: var(--ink);
  background: var(--gold-light);
}

.skip-link:focus {
  transform: translateY(0);
}

#home .hero-summary {
  max-width: 61ch;
  color: var(--gold);
  margin: 0;
  font-size: clamp(1.04rem, 2vw, 1.35rem);
  line-height: 1.6;
  text-transform: none;
}

#home .hero-summary q {
  font-style: italic;
}

#home .hero-quote-signature {
  display: block;
  margin-top: .25em;
  text-align: right;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-link {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: var(--gold-light);
  font-weight: 600;
}

.hero-link-primary,
.hero-link:hover,
.up-btn {
  background: var(--gold);
  color: var(--ink);
}

.hero-link-primary {
  background: linear-gradient(120deg, #ffe886, #ffc52c 65%, #ffb400);
  box-shadow: 0 3px 18px #ffc52c26;
}

#skill.expertise-section {
  float: none;
  display: block;
  padding: clamp(44px, 7vw, 92px) 0;
  background: var(--ink);
  border-block: 1px solid var(--line);
}

#skill.expertise-section::before {
  content: none;
}

.skill-meter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
  margin-top: 24px;
}

.skill-meter-list {
  margin: 16px 0 0;
  padding: 0;
}

.skill-meter-list li + li {
  margin-top: 17px;
}

.skill-meter-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--paper);
}

.skill-meter-label span {
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}

.skill-meter-list meter {
  display: block;
  width: 100%;
  height: 7px;
  margin: 7px 0;
  border: 0;
  border-radius: 5px;
  overflow: hidden;
  background: #332919;
  appearance: none;
}

.skill-meter-list meter::-webkit-meter-bar {
  height: 100%;
  border: 0;
  background: #332919;
}

.skill-meter-list meter::-webkit-meter-optimum-value {
  background: linear-gradient(90deg, #ba801f, var(--gold), var(--gold-light));
}

.skill-meter-list meter::-moz-meter-bar {
  background: linear-gradient(90deg, #ba801f, var(--gold), var(--gold-light));
}

.skill-meter-list p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
}

.skills-applied {
  margin-top: 30px;
}

.skills-applied > h3 {
  margin: 0 0 10px;
  color: var(--gold-light);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
}

.skills-applied .skill-meter-label {
  flex-wrap: wrap;
  align-items: baseline;
}

.skills-applied .skill-meter-label a {
  color: var(--gold-light);
  font-size: .8rem;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.skill-evidence-bar {
  display: flex;
  gap: 3px;
  margin: 7px 0;
}

.skill-evidence-bar::before,
.skill-evidence-bar::after {
  flex: 1;
  height: 7px;
  border-radius: 5px;
  background: #332919;
  content: "";
}

.skill-evidence-bar::before,
.skill-evidence-bar.is-published::after {
  background: linear-gradient(90deg, #ba801f, var(--gold), var(--gold-light));
}

.expertise-disclosure {
  margin-top: 24px;
}

.expertise-count {
  display: inline-block;
  margin-inline-start: 6px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 400;
}

.expertise-disclosure > summary {
  padding: 14px 0;
  border-block: 1px solid var(--line);
  color: var(--gold-light);
  font-weight: 600;
  cursor: pointer;
}

.expertise-disclosure > summary:hover {
  color: var(--gold);
}

.expertise-disclosure > summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.expertise-detail-title {
  margin: 24px 0 10px;
  color: var(--gold-light);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.2;
}

.site-footer {
  clear: both;
}

.expertise-masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 3px 10px;
}

.expertise-masthead .section-intro {
  max-width: 59ch;
  margin-bottom: 0;
}

.expertise-flow {
  position: absolute;
  z-index: -1;
  inset: -70% -17% -65% 42%;
  transform: rotate(-19deg);
  mask-image: linear-gradient(90deg, transparent 22%, #000 72%);
  background: repeating-radial-gradient(ellipse at 65% 54%, transparent 0 24px, #ffc52c27 25px 26px);
}

.expertise-flow span {
  position: absolute;
  inset: 20% 5%;
  border: 1px solid #ffc52c65;
  border-radius: 50%;
  box-shadow: 0 0 24px #ffc52c20;
  animation: contour-surge 3.6s ease-out both;
}

.expertise-flow span:nth-child(2) {
  inset: 26% 13%;
  animation-delay: .24s;
}

.expertise-flow span:nth-child(3) {
  inset: 33% 21%;
  animation-delay: .48s;
}

@keyframes contour-surge {
  from { transform: translateX(-12%) scale(.82); opacity: .15; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}

.expertise-toolbar {
  margin: 24px 0 10px;
}

.expertise-toolbar label {
  display: block;
  color: var(--gold-light);
  font-weight: 600;
}

.expertise-toolbar input[type="search"] {
  box-sizing: border-box;
  width: min(100%, 520px);
  height: 46px;
  margin: 7px 0 12px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--paper);
  background: var(--panel);
}

.expertise-toolbar input[type="search"]:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.expertise-status {
  color: var(--muted);
  font-size: .9rem;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 15px;
  margin-top: 18px;
}

.expertise-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(17px, 2.25vw, 25px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, #211b12, var(--panel) 62%);
  color: var(--muted);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.expertise-card[hidden],
.expertise-toolbar[hidden] {
  display: none;
}

.expertise-card:hover,
.expertise-card:focus-within {
  border-color: var(--gold-edge);
  box-shadow: 0 0 26px #ffc52c21;
}

.expertise-card h3 {
  margin: 8px 0 10px;
  color: var(--gold-light);
  line-height: 1.24;
  font-size: 1.34rem;
}

.expertise-card p {
  margin: 0 0 14px;
  line-height: 1.6;
}

.expertise-card .expertise-category {
  margin: 0;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 600;
}

.expertise-card .service-tags {
  margin: 0 0 14px;
}

.expertise-evidence {
  margin-top: auto;
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.expertise-sources {
  margin-top: 18px;
}

.expertise-sources summary {
  color: var(--gold-light);
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
}

.expertise-sources summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .expertise-card:hover,
  .featured-grid .detail-card:hover {
    background:
      radial-gradient(220px circle at var(--light-x, 50%) var(--light-y, 0%), #ffc52c23, transparent),
      var(--panel);
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .expertise-card,
    .featured-grid .detail-card,
    .source-card {
      animation: card-arrival linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}

@keyframes card-arrival {
  from { opacity: .65; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 993px) and (max-width: 1380px) {
  nav .custom-nav.hide-on-med-and-down {
    display: none !important;
  }

  nav .button-collapse {
    display: block;
  }

  nav .brand-logo {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (min-width: 1381px) and (max-width: 1550px) {
  html:not([lang="en"]) nav .custom-nav.hide-on-med-and-down {
    display: none !important;
  }

  html:not([lang="en"]) nav .button-collapse {
    display: block;
  }

  html:not([lang="en"]) nav .brand-logo {
    left: 50%;
    transform: translateX(-50%);
  }
}

#services {
  clear: both;
  padding: clamp(46px, 7vw, 96px) 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 75% 0%, #332204, transparent 44%),
    var(--ink);
}

.service-heading,
.service-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.service-heading .section-intro {
  max-width: 64ch;
}

.service-filters {
  margin: 30px 0 15px;
}

.service-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-filter-buttons button {
  min-height: 42px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--paper);
  cursor: pointer;
}

.service-filter-buttons button:hover {
  border-color: var(--gold);
}

.service-filter-buttons button[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 0 16px #ffc52c2e;
}

.service-status {
  margin: 10px 0;
  color: var(--muted);
  font-size: .9rem;
}

.service-grid,
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}

.service-card,
.stack-card {
  min-width: 0;
  padding: clamp(16px, 2.2vw, 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: start;
  overflow: hidden;
  transition: border-color .24s ease, box-shadow .24s ease, transform .24s ease;
}

.service-card[hidden],
.service-filters[hidden] {
  display: none;
}

.service-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, #fff0aa, var(--gold), transparent);
  transform: scaleX(.2);
  opacity: .35;
  transition: transform .3s ease, opacity .3s ease;
}

.service-card:hover {
  border-color: var(--gold-edge);
  box-shadow: 0 8px 22px #ffc52c19;
  transform: translateY(-3px);
}

.service-card:hover::before {
  transform: scaleX(1);
  opacity: 1;
}

.service-card .service-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold-edge);
  border-radius: 7px;
  background: #ffc52c13;
  color: var(--gold);
  line-height: 40px;
  text-align: center;
}

.service-card h3,
.stack-card h3,
.methods-panel h3,
.stack-title,
.service-contact h3 {
  margin: 14px 0 8px;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.3;
  color: var(--gold-light);
}

.service-card p {
  margin: 0 0 16px;
  line-height: 1.6;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
  margin: auto 0 0;
  padding: 0;
}

.service-tags li {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--gold-light);
  font-size: .76rem;
}

.methods-panel,
.service-contact {
  margin: 36px 0;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--gold-edge);
  border-radius: 8px;
  background: linear-gradient(115deg, #211807, var(--panel) 70%);
}

.methods-panel h3,
.service-contact h3 {
  margin-top: 0;
}

.methods-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr));
  gap: 16px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.methods-flow li {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 15px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.methods-flow li::before {
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  content: "";
}

.methods-flow strong {
  color: var(--gold-light);
}

.stack-title {
  margin: 28px 0 15px;
}

.stack-card h3 {
  margin-top: 0;
}

.stack-card .service-tags {
  margin-top: 13px;
}

.stack-card .service-tags li {
  border-style: dashed;
  background: #ffc52c08;
  font-family: "Courier New", monospace;
  transition: border-color .16s ease, background .16s ease;
}

.stack-card .service-tags li:hover {
  border-color: var(--gold);
  background: #ffc52c1a;
}

.service-contact {
  margin-bottom: 0;
}

.service-contact p {
  margin: 0;
  color: var(--muted);
}

.source-card {
  transition: border-color .2s ease, background-color .2s ease;
}

.source-card:hover,
.source-card:focus-within {
  border-color: var(--gold-edge);
  background-color: #241a0b;
}

.gallery img {
  transition: filter .24s ease, transform .26s ease;
}

.gallery a:hover img,
.gallery a:focus-visible img {
  filter: saturate(1.18) contrast(1.05);
  transform: scale(1.035);
}

@supports (animation-timeline: view()) {
  .methods-flow li::before {
    animation: method-signal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 45%;
  }
}

@keyframes method-signal {
  0% { box-shadow: 0 0 0 0 #ffc52cbb; }
  60% { box-shadow: 0 0 0 9px #ffc52c00; }
  100% { box-shadow: 0 0 12px var(--gold); }
}

#portfolio,
#teaching,
#engagement,
#research-impact,
#featured-research {
  clear: both;
  background: var(--ink);
  border-block-start: 1px solid var(--line);
  padding: clamp(44px, 7vw, 94px) 0;
}

#research-impact {
  background:
    radial-gradient(ellipse at 40% 0%, #bf934820, transparent 56%),
    var(--ink);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 18px;
}

.impact-panel {
  position: relative;
  border-top: 2px solid var(--gold);
  background: linear-gradient(155deg, #241e15, var(--panel) 50%);
  transition: box-shadow .2s ease;
}

.impact-panel:hover,
.impact-panel:focus-within {
  box-shadow: 0 0 28px #d8b15f22;
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 105px), 1fr));
  gap: 8px;
  margin: 16px 0 0;
}

.impact-stats div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: start;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.impact-stats dt {
  font-size: .83rem;
}

.impact-stats dd {
  margin: 0;
  color: var(--gold-light);
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-variant-numeric: tabular-nums;
}

.impact-bars {
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.impact-bars li {
  margin: 0 0 13px;
}

.impact-bar-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.impact-bar-label strong {
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}

.impact-track,
.impact-track > span {
  display: block;
  height: 5px;
  border-radius: 10px;
}

.impact-track {
  background: #342b1e;
}

.impact-track > span {
  background: linear-gradient(90deg, #946123, var(--gold-light));
  transform: scaleX(var(--bar-size));
  transform-origin: left;
}

@supports (animation-timeline: view()) {
  .impact-track > span {
    animation: impact-fill linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@keyframes impact-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(var(--bar-size)); }
}

.impact-breakdown {
  display: grid;
  gap: 14px;
  align-content: start;
}

.impact-panel summary {
  color: var(--gold-light);
  font-size: 1.12rem;
  font-weight: 600;
  cursor: pointer;
}

.impact-sdg ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr));
  gap: 8px;
  margin-bottom: 0;
}

.impact-sdg li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.impact-sdg b {
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}

#featured-research {
  background: radial-gradient(ellipse at 50% 0%, #45311755, transparent 65%), var(--ink);
  padding-block: clamp(36px, 5vw, 68px);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin-top: 24px;
}

.featured-grid .detail-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.featured-grid .detail-card:hover,
.featured-grid .detail-card:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 26px #d8b15f19;
}

.featured-grid p {
  margin: 0 0 18px;
}

.featured-grid a {
  margin-top: auto;
}

#projects .portfolio-top,
.footer-top {
  background: var(--ink);
}

.publication-list {
  margin: 24px 0 32px;
  padding-left: 0;
  list-style: none;
}

.publication-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.55;
}

.publication-list li[hidden],
.publication-toolbar[hidden] {
  display: none;
}

.section-intro {
  color: var(--muted);
}

.section-intro a,
.metric-note a {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.publication-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(108px, 160px);
  align-items: end;
  gap: 8px 16px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.publication-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--gold-light);
  font-weight: 600;
}

.publication-toolbar input[type="search"],
.publication-toolbar select {
  box-sizing: border-box;
  width: 100%;
  height: 42px;
  margin: 0;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
}

.publication-toolbar p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
}

.press-coverage {
  display: grid;
  gap: 12px;
}

.press-coverage > h3 {
  margin: 0 0 4px;
  color: var(--paper);
  font-size: 1.5rem;
}

.source-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: var(--panel);
}

.source-card time,
.university-events time {
  color: var(--gold);
  font-size: .82rem;
}

.source-card h4 {
  margin: 6px 0;
  font-size: 1.12rem;
  color: var(--paper);
}

.source-card p {
  margin: 8px 0;
  color: var(--muted);
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
}

.source-links a {
  font-size: .88rem;
  color: var(--gold-light);
}

.publication-link {
  flex: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 9px;
  font-size: .86rem;
}

.project-groups,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  align-items: start;
  gap: 18px;
  margin: 24px 0;
  text-align: left;
}

.project-groups .europe-projects {
  grid-column: 1 / -1;
}

.detail-card {
  min-width: 0;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  text-align: left;
}

.detail-card h3,
.project-subtitle {
  margin: 0 0 16px;
  color: var(--gold-light);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  line-height: 1.25;
}

.detail-card a {
  text-decoration: underline;
  text-underline-offset: .16em;
}

.detail-list {
  margin-bottom: 0;
}

.detail-list li {
  padding: 9px 0;
  line-height: 1.6;
}

.detail-list li + li {
  border-top: 1px solid var(--line);
}

.metric-note {
  color: var(--muted);
  font-size: .85rem;
}

.gallery a,
.gallery .desc {
  display: block;
}

.gallery img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery a:hover .desc,
.publication-link:hover {
  color: var(--paper);
  text-decoration: underline;
}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 64px;
  }

  .publication-list li {
    flex-wrap: wrap;
    gap: 5px;
  }

  #home .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-bottom: 46px;
  }

  #home .home-inner {
    padding-block: 64px 34px;
  }

  .hero-instrument {
    width: min(66%, 250px);
    justify-self: center;
  }

  .impact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  #home .home-title span,
  .expertise-flow span,
  .radar-orbit,
  .radar-sweep,
  .radar-point,
  .impact-track > span,
  .methods-flow li::before {
    animation: none;
  }

  .service-card,
  .service-card::before,
  .gallery img {
    transition: none;
  }

  .service-card:hover,
  .gallery a:hover img,
  .gallery a:focus-visible img {
    transform: none;
  }

  .radar-replay {
    display: none;
  }
}
.hero-wind {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mask-image: linear-gradient(90deg, #0002 0%, #0006 38%, #000 70%);
}

.hero-wind path {
  --flow-period: 6.5s;
  --flow-phase: -1.2s;
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-dasharray: 48 18 10 99;
  vector-effect: non-scaling-stroke;
  opacity: .94;
  filter: drop-shadow(0 0 4px #ffc52cbd);
  animation: wind-flow var(--flow-period) linear var(--flow-phase) 1 both;
}

.hero-wind .wind-trajectory--south {
  stroke: var(--gold);
}

.hero-wind .wind-filament {
  --flow-period: 7.5s;
  --flow-phase: -2.6s;
  stroke-width: 1.25;
  stroke-dasharray: 30 21 7 117;
  opacity: .55;
  filter: none;
}

.hero-wind .wind-filament + .wind-filament:nth-child(odd) {
  --flow-phase: -4.1s;
  opacity: .38;
}

.hero-wind .wind-vortex {
  stroke-width: 1.4;
  stroke-dasharray: none;
  opacity: .56;
  filter: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: wind-vortex-turn 16s linear;
}

.wind-enabled .hero-wind path {
  animation-iteration-count: infinite;
}

.wind-paused .hero-wind path,
.wind-offscreen .hero-wind path {
  animation-play-state: paused;
}

@keyframes wind-flow {
  to { stroke-dashoffset: -350; }
}

@keyframes wind-vortex-turn {
  to { transform: rotate(1turn); }
}

#home .overlay-section {
  position: relative;
  isolation: isolate;
}

#home .hero-layout {
  position: relative;
}

.hero-motion-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.hero-motion-controls button:focus,
.hero-motion-controls button:hover {
  border-color: var(--gold);
  background: #33250b;
  color: var(--gold-light);
}

.motion-masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 3px;
  text-align: left;
}

.publication-chaos,
.project-isobars,
.impact-signal {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 58%;
  height: 100%;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 55%);
}

.publication-chaos {
  opacity: .74;
  transform: scale(1.65);
  transform-origin: 67% center;
}

.publication-chaos polyline {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
}

.project-isobars {
  width: 65%;
  background:
    repeating-radial-gradient(ellipse at 78% 23%, transparent 0 15px, #ffc52c7d 16px, transparent 18px 24px);
}

.impact-signal {
  background:
    repeating-linear-gradient(90deg, transparent 0 35px, #ffc52c64 36px 37px, transparent 38px 72px),
    repeating-linear-gradient(0deg, transparent 0 16px, #ffc52c24 17px 18px);
  transform: skewX(-19deg);
}

.expertise-related {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  width: 100%;
  margin-top: 12px;
}

.expertise-related a {
  padding: 4px 8px;
  border: 1px solid var(--gold-edge);
  border-radius: 4px;
  color: var(--gold-light);
  font-size: .8rem;
  line-height: 1.35;
}

.expertise-related a:hover,
.expertise-related a:focus-visible {
  background: var(--gold);
  color: var(--ink);
}

#portfolio .publication-list li {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

#portfolio .publication-list li + li {
  margin-top: 8px;
}

#portfolio .publication-list li[hidden] {
  display: none;
}

#projects .project-groups {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

#projects .publications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 16px;
  margin: 0;
}

#projects .publications-grid::after {
  display: none;
}

#projects .publications-grid > .col {
  display: flex;
  width: auto;
  min-width: 0;
  padding: 0;
}

#projects .publication-card {
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  text-align: left;
}

#projects .pub-header {
  flex-wrap: wrap;
  gap: 8px;
}

#projects .pub-title,
#projects .detail-list strong,
#projects .pub-year,
.press-coverage > h3,
.source-card h4 {
  color: var(--gold-light);
}

[id^="pub-"]:target,
[id^="project-"]:target {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  box-shadow: 0 0 23px #ffc52c35;
  animation: none !important;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .publication-list li {
      animation: publication-entry linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 82%;
    }

    .project-groups > .detail-card,
    #projects .publication-card {
      animation: project-entry linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 72%;
    }

    .project-isobars,
    .impact-signal {
      animation: motif-drift linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 55%;
    }
  }
}

@keyframes publication-entry {
  from { transform: translateX(-30px); opacity: .28; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes project-entry {
  from { transform: translateY(34px) scale(.96); opacity: .3; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes motif-drift {
  from { background-position: 64px 38px; opacity: .3; }
  to { background-position: 0 0; opacity: .85; }
}

@media (max-width: 600px) {
  #projects .project-groups {
    grid-template-columns: 1fr;
  }

  .hero-wind {
    mask-image: linear-gradient(180deg, #0003 5%, #0004 38%, #000 70%);
  }

  #portfolio .publication-list li {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-wind path,
  .hero-wind .wind-vortex {
    animation: none;
  }
}
