.section--latest {
  background: #0d0f0e !important;
}

.latest-list {
  border-top: 1px solid var(--line);
}

.latest-row {
  display: grid;
  grid-template-columns: minmax(116px, 0.24fr) minmax(0, 1fr) auto;
  gap: clamp(16px, 2.5vw, 32px);
  align-items: center;
  padding: clamp(18px, 2.2vw, 26px) 0;
  border-bottom: 1px solid var(--line);
}

.latest-row__meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.latest-row h3 {
  margin-bottom: 4px;
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
}

.latest-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.latest-row > .text-link {
  justify-self: end;
}

.academic-path {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.academic-path li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(132px, 0.42fr) minmax(0, 1fr);
  gap: 22px;
  padding: 20px 0 20px 24px;
  border-bottom: 1px solid var(--line);
}

.academic-path li::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  border: 0;
  border-radius: 50%;
  background: rgba(226, 207, 152, 0.56);
  transform: translateY(-50%);
}

.academic-path__item--current::before {
  left: -1px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  box-shadow: none;
}

.academic-path li > span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.academic-path strong,
.academic-path small {
  display: block;
}

.academic-path strong {
  color: var(--ivory);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.3;
}

.academic-path small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.section--research-trajectory {
  background: var(--near-black) !important;
}

.trajectory-accordion {
  border-top: 1px solid var(--line);
}

.trajectory-stage {
  border-bottom: 1px solid var(--line);
}

.trajectory-stage summary {
  display: grid;
  grid-template-columns: minmax(100px, 0.25fr) minmax(0, 1fr) 24px;
  gap: clamp(18px, 4vw, 50px);
  align-items: center;
  min-height: 96px;
  padding: 24px 0;
  color: var(--ivory);
  cursor: pointer;
  list-style: none;
}

.trajectory-stage summary::-webkit-details-marker {
  display: none;
}

.trajectory-stage summary:focus-visible {
  outline: 2px solid var(--gold-strong);
  outline-offset: 3px;
}

.trajectory-stage summary::marker {
  content: "";
}

.trajectory-stage__status {
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trajectory-stage summary strong {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: 1.25;
}

.trajectory-stage summary svg {
  color: var(--gold);
  transition: transform 280ms var(--ease);
}

.trajectory-stage[open] summary svg {
  transform: rotate(180deg);
}

.trajectory-stage__content {
  max-width: 760px;
  margin-left: calc(25% + 12px);
  padding: 0 0 38px;
  animation: trajectory-content-in 360ms var(--ease) both;
}

.trajectory-stage__content p {
  margin-bottom: 20px;
}

@keyframes trajectory-content-in {
  from { opacity: 0; transform: translateY(-7px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Orientation and interaction ------------------------------------------- */

.publication-list article,
.legacy-paper {
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.is-route-target {
  animation: route-target-pulse 900ms var(--ease) both;
}

.publication-list article:focus,
.legacy-paper:focus {
  outline: 1px solid rgba(226, 207, 152, 0.62);
  outline-offset: 6px;
}

@keyframes route-target-pulse {
  0% { background: rgba(226, 207, 152, 0.14); box-shadow: 0 0 0 1px rgba(226, 207, 152, 0.58); }
  100% { background: transparent; box-shadow: 0 0 0 1px rgba(226, 207, 152, 0); }
}

.reading-progress {
  --progress-offset: 106.814;
  position: fixed;
  z-index: 90;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  padding: 3px;
  border: 0;
  border-radius: 50%;
  transform: translateY(12px);
  background: rgba(8, 9, 9, 0.88);
  color: var(--gold);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  visibility: hidden;
  transition: opacity 180ms ease, transform 260ms var(--ease), visibility 180ms;
}

.reading-progress.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.reading-progress svg {
  display: block;
}

.reading-progress circle {
  fill: none;
  stroke-width: 1.35;
}

.reading-progress__track {
  stroke: rgba(226, 207, 152, 0.2);
}

.reading-progress__fill {
  transform: rotate(-90deg);
  transform-origin: 20px 20px;
  stroke: currentColor;
  stroke-dasharray: 106.814;
  stroke-dashoffset: var(--progress-offset);
  stroke-linecap: round;
}

.reading-progress__arrow {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

body.nav-open .reading-progress {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}


@media (hover: hover) and (pointer: fine) {
  .latest-row,
  .trajectory-stage summary,
  .publication-list article,
  .legacy-paper {
    transition: background-color 240ms ease, border-color 240ms ease;
  }

  .latest-row:hover,
  .trajectory-stage summary:hover,
  .publication-list article:hover,
  .legacy-paper:hover {
    background: rgba(226, 207, 152, 0.035);
  }

  .button {
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 220ms var(--ease);
  }

  .button:hover {
    transform: translateY(-1px);
  }

}

.latest-row:focus-within,
.trajectory-stage summary:focus-visible,
.publication-list article:focus-within,
.legacy-paper:focus-within {
  background: rgba(226, 207, 152, 0.045);
}

.text-link:focus-visible span {
  transform: translateX(5px);
}

body.nav-open {
  overflow: hidden;
}

/* Progressive motion enhancement ---------------------------------------- */

.motion-enabled .page {
  animation: none;
}

.motion-enabled .page.is-active > .hero .hero__image {
  animation: hero-media-in 850ms var(--ease) both;
}

.motion-enabled .page.is-active > .hero .hero__content > * {
  animation: hero-copy-in 620ms var(--ease) both;
}

.motion-enabled .page.is-active > .hero .hero__content > :nth-child(1) { animation-delay: 40ms; }
.motion-enabled .page.is-active > .hero .hero__content > :nth-child(2) { animation-delay: 90ms; }
.motion-enabled .page.is-active > .hero .hero__content > :nth-child(3) { animation-delay: 140ms; }
.motion-enabled .page.is-active > .hero .hero__content > :nth-child(4) { animation-delay: 190ms; }
.motion-enabled .page.is-active > .hero .hero__content > :nth-child(5) { animation-delay: 240ms; }

@keyframes hero-media-in {
  from { opacity: 0.86; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes hero-copy-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.motion-enabled [data-motion="reveal"] {
  opacity: 0;
  transform: translateY(14px);
}

.motion-enabled [data-motion="reveal"].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 600ms ease, transform 600ms var(--ease);
}

@media (max-width: 920px) {
  .latest-row {
    grid-template-columns: 104px minmax(0, 1fr) auto;
  }

  .latest-row > .text-link {
    grid-column: auto;
    justify-self: end;
  }

  .academic-path li {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .trajectory-stage__content {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .latest-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .latest-row__meta {
    flex-direction: row;
    gap: 12px;
  }

  .latest-row > .text-link {
    grid-column: 1;
  }

  .academic-path li {
    grid-template-columns: 1fr;
    gap: 7px;
    padding-left: 22px;
  }

  .trajectory-stage summary {
    grid-template-columns: 1fr 24px;
    gap: 9px 16px;
    min-height: 0;
    padding: 26px 0;
  }

  .trajectory-stage__status {
    grid-column: 1 / -1;
  }

  .trajectory-stage summary svg {
    grid-column: 2;
    grid-row: 2;
  }

  .reading-progress {
    right: 14px;
    bottom: 14px;
  }

  .motion-enabled [data-motion="reveal"] {
    transform: translateY(8px);
  }

  .motion-enabled [data-motion="reveal"].is-visible {
    transition-duration: 420ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-enabled .page.is-active > .hero .hero__image,
  .motion-enabled .page.is-active > .hero .hero__content > *,
  .motion-enabled [data-motion="reveal"],
  .motion-enabled [data-motion="reveal"].is-visible,
  .is-route-target,
  .trajectory-stage__content {
    animation: none !important;
    opacity: 1;
    transform: none;
    transition: none !important;
  }

  .trajectory-stage summary svg,
  .reading-progress,
  .reading-progress__fill {
    transition: none !important;
  }
}

@media print {
  .reading-progress {
    display: none !important;
  }
}
