.research-jump-nav {
  position: sticky;
  top: 0.5rem;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin: 1.5rem 0 2.25rem;
  padding: 0.55rem 0.7rem;
  overflow-x: auto;
  border: 1px solid var(--portfolio-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--c-pageBackground) 92%, transparent);
  box-shadow: 0 0.65rem 1.8rem rgb(0 0 0 / 8%);
  backdrop-filter: blur(12px);
  scrollbar-width: thin;
}

.research-jump-nav__label {
  flex: 0 0 auto;
  padding-left: 0.3rem;
  color: var(--portfolio-muted);
  font-family: var(--f-header);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.research-jump-nav__links {
  display: flex;
  gap: 0.25rem;
  min-width: max-content;
}

.research-jump-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  color: var(--portfolio-text);
  font-family: var(--f-header);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.research-jump-nav a:hover,
.research-jump-nav a.is-active {
  color: #fff;
  background: var(--portfolio-accent);
}

.research-section,
.research-anchor {
  scroll-margin-top: 6.5rem;
}

.research-resource-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.25rem 0 1.75rem;
}

.research-resource-strip a,
.research-resource-strip button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--portfolio-border);
  border-radius: 999px;
  color: var(--portfolio-text);
  background: var(--c-pageBackground);
  font-family: var(--f-header);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.research-resource-strip a:hover,
.research-resource-strip button:hover {
  border-color: var(--portfolio-accent);
  color: var(--portfolio-accent);
}

.research-flow-figure,
.research-concept-map {
  margin: 2rem 0 2.5rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--portfolio-border);
  border-radius: 0.65rem;
  background: color-mix(in srgb, var(--portfolio-accent) 4%, var(--portfolio-surface));
}

.research-flow-figure__grid,
.research-concept-map__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.research-flow-step,
.research-concept-node {
  position: relative;
  min-height: 8rem;
  padding: 0.9rem;
  border: 1px solid var(--portfolio-border);
  border-radius: 0.5rem;
  background: var(--c-pageBackground);
}

.research-flow-step:not(:last-child)::after,
.research-concept-node:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -0.58rem;
  z-index: 2;
  color: var(--portfolio-accent);
  content: "→";
  font-family: var(--f-header);
  font-size: 1rem;
  font-weight: 700;
  transform: translateY(-50%);
}

.research-flow-step__index,
.research-concept-node__index {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--portfolio-accent);
  font-family: var(--f-header);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.research-flow-step strong,
.research-concept-node strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--f-header);
  line-height: 1.3;
}

.research-flow-step p,
.research-concept-node p {
  margin: 0;
  color: var(--portfolio-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.research-gallery-strip {
  display: grid !important;
  grid-auto-columns: minmax(18rem, 72%);
  grid-auto-flow: column;
  grid-template-columns: none !important;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.2rem 0 0.8rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.research-gallery-strip > figure {
  scroll-snap-align: start;
}

.research-gallery-strip img {
  width: 100%;
  max-height: 34rem;
  object-fit: contain;
  background: #fff;
}

.research-citation {
  margin-top: 2rem;
  padding: 1rem;
  border: 1px solid var(--portfolio-border);
  border-radius: 0.5rem;
  background: var(--portfolio-surface);
}

.research-citation pre {
  max-height: 18rem;
  margin: 0.75rem 0 0;
  overflow: auto;
  white-space: pre-wrap;
}

.research-citation__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.research-citation__copy {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--portfolio-border);
  border-radius: 999px;
  color: var(--portfolio-text);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.research-citation__copy:hover {
  border-color: var(--portfolio-accent);
  color: var(--portfolio-accent);
}

.research-visual-placeholder {
  display: grid;
  min-height: 17rem;
  place-items: center;
  margin: 1.5rem 0;
  padding: 1.5rem;
  border: 1px dashed color-mix(in srgb, var(--portfolio-accent) 65%, var(--portfolio-border));
  border-radius: 0.65rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--portfolio-accent) 10%, transparent), transparent 65%);
  text-align: center;
}

.research-visual-placeholder strong {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--f-header);
}

.research-visual-placeholder p {
  max-width: 42rem;
  margin: 0;
  color: var(--portfolio-muted);
}

@media (max-width: 800px) {
  .research-jump-nav {
    top: 0.25rem;
    margin: 1rem 0 1.5rem;
    border-radius: 0.5rem;
  }

  .research-jump-nav__label {
    display: none;
  }

  .research-flow-figure__grid,
  .research-concept-map__grid {
    grid-template-columns: 1fr 1fr;
  }

  .research-flow-step:not(:last-child)::after,
  .research-concept-node:not(:last-child)::after {
    display: none;
  }

  .research-gallery-strip {
    grid-auto-columns: 88%;
  }
}

@media (max-width: 520px) {
  .research-flow-figure__grid,
  .research-concept-map__grid {
    grid-template-columns: 1fr;
  }

  .research-flow-step,
  .research-concept-node {
    min-height: 0;
  }

  .research-gallery-strip {
    grid-auto-columns: 94%;
  }
}
